HarborHarbor
DocumentationGuidesPlugins

Inspect and exec

Use inspect for discovery and exec for Harbor Cloud execution.

inspect is for local control-plane discovery. exec is for hosted runtime execution.

Inspect first

hrbr inspect 'return await hrbr.auth.status()'
hrbr inspect 'return await hrbr.sources.list()'
hrbr inspect 'return await hrbr.tools.search({ query: "workspace tools", limit: 5 })'

Execute code

hrbr exec 'return { ok: true, runtime: "harbor-cloud" }'
hrbr exec -f ./task.ts
cat task.ts | hrbr exec --stdin

Use --file or --stdin for real work. Inline code is best for small probes.

Publish runtime authoring files

hrbr inspect -f ./summarize-message.job.ts
hrbr inspect -f ./ops-console.app.ts

Use hrbr exec -f when publishing should itself create a traced execution run.