@parcha/agentrun-serve 0.1.0-beta.43 → 0.1.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +231 -0
- package/README.md +580 -320
- package/dist/acp-package.d.ts +28 -0
- package/dist/acp-package.js +23 -0
- package/dist/adapter-facts.d.ts +8 -1
- package/dist/adapter-facts.js +9 -1
- package/dist/adapters.d.ts +5 -0
- package/dist/adapters.js +36 -3
- package/dist/agent-delete.d.ts +50 -0
- package/dist/agent-delete.js +125 -0
- package/dist/agents-store.d.ts +9 -3
- package/dist/agents-store.js +22 -8
- package/dist/agents.d.ts +5 -1
- package/dist/agents.js +8 -4
- package/dist/api-only.d.ts +8 -3
- package/dist/api-only.js +10 -4
- package/dist/archil-routes.d.ts +5 -1
- package/dist/archil-routes.js +57 -2
- package/dist/browser-wait-ended.d.ts +2 -0
- package/dist/browser-wait-ended.js +2 -0
- package/dist/calendar/ics-faux.d.ts +3 -1
- package/dist/calendar/ics-faux.js +12 -2
- package/dist/calendar/tools.js +5 -2
- package/dist/chatgpt-plan.js +3 -1
- package/dist/claude-login.d.ts +135 -0
- package/dist/claude-login.js +244 -0
- package/dist/cli.js +92 -22
- package/dist/composio-preset.d.ts +4 -3
- package/dist/composio-preset.js +81 -11
- package/dist/composio-triggers.d.ts +34 -2
- package/dist/composio-triggers.js +261 -31
- package/dist/computer-attach.d.ts +40 -5
- package/dist/computer-attach.js +130 -15
- package/dist/computer-keys.d.ts +3 -0
- package/dist/computer-keys.js +7 -1
- package/dist/computer-live.js +3 -2
- package/dist/computer-lost.d.ts +11 -0
- package/dist/computer-lost.js +19 -0
- package/dist/computer-record.d.ts +10 -2
- package/dist/computer-record.js +50 -18
- package/dist/computer-setting.d.ts +1 -0
- package/dist/computer-setting.js +2 -2
- package/dist/computers.d.ts +21 -10
- package/dist/computers.js +39 -28
- package/dist/console/assets/index-3O2Yl6hZ.js +701 -0
- package/dist/console/assets/index-DaFsZuzQ.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/decisions.d.ts +1 -1
- package/dist/dial-relay.d.ts +29 -0
- package/dist/dial-relay.js +94 -0
- package/dist/email/tools.js +10 -5
- package/dist/env-proxy.d.ts +2 -0
- package/dist/env-proxy.js +35 -0
- package/dist/errors.d.ts +4 -1
- package/dist/errors.js +10 -4
- package/dist/faux-computers.d.ts +8 -2
- package/dist/faux-computers.js +83 -6
- package/dist/harness-archive.d.ts +67 -0
- package/dist/harness-archive.js +177 -0
- package/dist/harness-goose.d.ts +34 -0
- package/dist/harness-goose.js +87 -0
- package/dist/harness-install.d.ts +21 -0
- package/dist/harness-install.js +24 -11
- package/dist/harness-opencode/adapter.js +1 -1
- package/dist/harness-table.d.ts +59 -3
- package/dist/harness-table.js +119 -14
- package/dist/harness.d.ts +17 -1
- package/dist/harness.js +22 -11
- package/dist/host.d.ts +12 -10
- package/dist/host.js +19 -16
- package/dist/import-worker.d.ts +3 -0
- package/dist/import-worker.js +7 -5
- package/dist/import.d.ts +22 -1
- package/dist/import.js +141 -28
- package/dist/key-check.js +3 -0
- package/dist/learn/audit.d.ts +6 -6
- package/dist/learn/audit.js +3 -7
- package/dist/learn/check.d.ts +26 -89
- package/dist/learn/check.js +58 -336
- package/dist/learn/commit.d.ts +63 -90
- package/dist/learn/commit.js +124 -316
- package/dist/learn/compile.d.ts +53 -50
- package/dist/learn/compile.js +88 -103
- package/dist/learn/corrections.d.ts +13 -0
- package/dist/learn/corrections.js +23 -0
- package/dist/learn/delete.d.ts +17 -0
- package/dist/learn/delete.js +42 -0
- package/dist/learn/folder.d.ts +35 -47
- package/dist/learn/folder.js +118 -134
- package/dist/learn/index.d.ts +3 -5
- package/dist/learn/index.js +6 -9
- package/dist/learn/learning.sh +45 -15
- package/dist/learn/promote.d.ts +20 -2
- package/dist/learn/promote.js +17 -4
- package/dist/learn/{skills.d.ts → workflow-draft.d.ts} +34 -38
- package/dist/learn/{skills.js → workflow-draft.js} +65 -59
- package/dist/learn/workflow-nodes.d.ts +22 -1
- package/dist/learn/workflow-nodes.js +29 -10
- package/dist/learned-workflow.js +2 -2
- package/dist/learning-cost.d.ts +127 -13
- package/dist/learning-cost.js +142 -10
- package/dist/learning-routes.d.ts +99 -170
- package/dist/learning-routes.js +199 -420
- package/dist/learning-run.d.ts +19 -40
- package/dist/learning-run.js +23 -93
- package/dist/learning-setting.d.ts +4 -4
- package/dist/learning-setting.js +6 -6
- package/dist/learning-words.d.ts +28 -74
- package/dist/learning-words.js +64 -162
- package/dist/learning.d.ts +62 -393
- package/dist/learning.js +101 -651
- package/dist/listen-first.d.ts +30 -0
- package/dist/listen-first.js +115 -0
- package/dist/live-reach.d.ts +25 -2
- package/dist/live-reach.js +46 -4
- package/dist/llms.txt +2 -1
- package/dist/local-models.d.ts +3 -11
- package/dist/local-models.js +5 -6
- package/dist/mcp-servers-store.d.ts +16 -16
- package/dist/model-form.js +6 -5
- package/dist/model.d.ts +12 -4
- package/dist/model.js +41 -16
- package/dist/native/binding.js +1 -1
- package/dist/native/connection.js +1 -1
- package/dist/native/discovery.js +1 -1
- package/dist/native/instructions.d.ts +3 -0
- package/dist/native/instructions.js +5 -3
- package/dist/native/remote-worker-bridge.js +9 -43
- package/dist/native/remote.d.ts +8 -15
- package/dist/native/remote.js +3 -3
- package/dist/native/schema.js +1 -1
- package/dist/native/types.d.ts +2 -2
- package/dist/openapi.js +375 -347
- package/dist/owner.d.ts +8 -0
- package/dist/owner.js +11 -0
- package/dist/paid-calls.d.ts +14 -0
- package/dist/paid-calls.js +31 -1
- package/dist/particle-provider.d.ts +11 -0
- package/dist/particle-provider.js +135 -0
- package/dist/place.d.ts +8 -3
- package/dist/place.js +13 -9
- package/dist/port-models.d.ts +12 -4
- package/dist/port-models.js +28 -11
- package/dist/print.d.ts +27 -0
- package/dist/print.js +21 -0
- package/dist/provider.d.ts +7 -0
- package/dist/provider.js +30 -2
- package/dist/reflect-range.js +2 -3
- package/dist/run-launch.d.ts +14 -28
- package/dist/run-launch.js +9 -12
- package/dist/run-learning-served.d.ts +16 -90
- package/dist/run-listing.d.ts +34 -0
- package/dist/run-listing.js +128 -0
- package/dist/run-model-key.d.ts +64 -0
- package/dist/run-model-key.js +147 -0
- package/dist/run-timeline-served.js +5 -3
- package/dist/run-trace.d.ts +97 -0
- package/dist/run-trace.js +253 -0
- package/dist/run-view.d.ts +15 -0
- package/dist/run-view.js +9 -0
- package/dist/runnable.js +2 -1
- package/dist/runner/adapter-loop.d.ts +14 -6
- package/dist/runner/adapter-loop.js +25 -14
- package/dist/runner/adapter-run-spec.d.ts +22 -7
- package/dist/runner/adapter-run-spec.js +130 -77
- package/dist/runner/adapters/index.d.ts +4 -2
- package/dist/runner/adapters/index.js +35 -4
- package/dist/runner/adapters/pi.d.ts +4 -12
- package/dist/runner/adapters/pi.js +2 -2
- package/dist/runner/audit.d.ts +5 -1
- package/dist/runner/audit.js +31 -12
- package/dist/runner/beside.d.ts +7 -2
- package/dist/runner/beside.js +41 -9
- package/dist/runner/claim-secrets.d.ts +66 -1
- package/dist/runner/claim-secrets.js +136 -3
- package/dist/runner/cli-run-spec.d.ts +2 -1
- package/dist/runner/cli-run-spec.js +82 -59
- package/dist/runner/commands.d.ts +3 -6
- package/dist/runner/conformance/harness.d.ts +6 -0
- package/dist/runner/conformance/harness.js +16 -5
- package/dist/runner/dispatch.d.ts +2 -2
- package/dist/runner/end-of-run.d.ts +6 -14
- package/dist/runner/end-of-run.js +8 -33
- package/dist/runner/feedback-round.d.ts +5 -4
- package/dist/runner/feedback-round.js +14 -10
- package/dist/runner/github-app.js +3 -1
- package/dist/runner/harness-loops.d.ts +0 -8
- package/dist/runner/harness-loops.js +30 -56
- package/dist/runner/held.d.ts +170 -0
- package/dist/runner/held.js +57 -0
- package/dist/runner/journal-kinds.d.ts +7 -3
- package/dist/runner/journal-kinds.js +2 -3
- package/dist/runner/learned-first.d.ts +40 -0
- package/dist/runner/learned-first.js +32 -0
- package/dist/runner/learning-end.d.ts +77 -66
- package/dist/runner/learning-end.js +250 -299
- package/dist/runner/learning-seed.d.ts +15 -33
- package/dist/runner/learning-seed.js +24 -45
- package/dist/runner/loop-contract.d.ts +8 -3
- package/dist/runner/loop-contract.js +4 -0
- package/dist/runner/loop.js +6 -2
- package/dist/runner/main.d.ts +18 -9
- package/dist/runner/main.js +82 -22
- package/dist/runner/mcp-run.d.ts +11 -0
- package/dist/runner/mcp-run.js +67 -0
- package/dist/runner/memory-claim.d.ts +14 -6
- package/dist/runner/memory-claim.js +18 -9
- package/dist/runner/model-route.d.ts +7 -4
- package/dist/runner/model-route.js +22 -10
- package/dist/runner/native-loop.d.ts +0 -7
- package/dist/runner/native-loop.js +9 -101
- package/dist/runner/promotion.d.ts +13 -6
- package/dist/runner/promotion.js +63 -17
- package/dist/runner/reflect-hook.d.ts +64 -91
- package/dist/runner/reflect-hook.js +112 -206
- package/dist/runner/run-channel.d.ts +43 -0
- package/dist/runner/run-channel.js +467 -0
- package/dist/runner/run-child-host.d.ts +169 -0
- package/dist/runner/run-child-host.js +1222 -0
- package/dist/runner/run-child.d.ts +1 -0
- package/dist/runner/run-child.js +254 -0
- package/dist/runner/run-errors.d.ts +2 -0
- package/dist/runner/run-errors.js +20 -0
- package/dist/runner/runner.js +58 -9
- package/dist/runner/sdk-ask.d.ts +78 -0
- package/dist/runner/sdk-ask.js +158 -0
- package/dist/runner/sdk-loop.d.ts +2 -4
- package/dist/runner/sdk-loop.js +29 -49
- package/dist/runner/store-secrets.d.ts +5 -3
- package/dist/runner/store-secrets.js +14 -6
- package/dist/runner/workflow-first.d.ts +5 -0
- package/dist/runner/workflow-first.js +4 -0
- package/dist/runner/workflow-spec.js +17 -4
- package/dist/runs-over-store.d.ts +21 -32
- package/dist/runs-over-store.js +44 -41
- package/dist/sdk/runs.d.ts +6 -11
- package/dist/sdk/runs.js +20 -41
- package/dist/sdk/schema.js +3 -4
- package/dist/sdk/workflows.d.ts +1 -1
- package/dist/seal-key.d.ts +5 -0
- package/dist/seal-key.js +7 -0
- package/dist/secrets.d.ts +3 -0
- package/dist/secrets.js +16 -3
- package/dist/server.d.ts +119 -83
- package/dist/server.js +1121 -419
- package/dist/sign-ins-store.d.ts +8 -0
- package/dist/sign-ins-store.js +36 -1
- package/dist/skills.js +1 -1
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js +2 -2
- package/dist/store/journal/storage.js +3 -0
- package/dist/store/postgres/migrations/0017_run_listing.sql +83 -0
- package/dist/store/postgres/migrations/0018_trigger_template.sql +6 -0
- package/dist/store/postgres/migrations/0019_runner_relays.sql +28 -0
- package/dist/store/schema.d.ts +53 -4
- package/dist/store/schema.js +137 -6
- package/dist/store/seal.d.ts +20 -2
- package/dist/store/seal.js +24 -8
- package/dist/store/sqlite/connection.d.ts +2 -0
- package/dist/store/sqlite/connection.js +3 -1
- package/dist/store/sqlite/run-launch.d.ts +4 -1
- package/dist/store/sqlite/run-launch.js +12 -0
- package/dist/store/sqlite/run-patch.d.ts +0 -17
- package/dist/store/sqlite/run-patch.js +4 -33
- package/dist/store/sqlite/store.d.ts +3 -2
- package/dist/store/sqlite/store.js +360 -75
- package/dist/store/sqlite/worker.js +25 -0
- package/dist/store/store.d.ts +231 -39
- package/dist/store/store.js +25 -3
- package/dist/store-reads/analytics.js +11 -1
- package/dist/store-reads/learning.d.ts +131 -194
- package/dist/store-reads/learning.js +292 -301
- package/dist/store-reads/loop.d.ts +0 -1
- package/dist/store-reads/loop.js +1 -1
- package/dist/store-reads/stats.js +13 -3
- package/dist/store-view.d.ts +34 -2
- package/dist/store-view.js +108 -41
- package/dist/telemetry.d.ts +59 -0
- package/dist/telemetry.js +153 -0
- package/dist/template-eval.d.ts +3 -6
- package/dist/template-eval.js +22 -36
- package/dist/templates.d.ts +2 -1
- package/dist/templates.js +6 -3
- package/dist/timeline/index.d.ts +1 -1
- package/dist/timeline/index.js +1 -1
- package/dist/timeline/timeline.d.ts +5 -1
- package/dist/timeline/timeline.js +16 -0
- package/dist/tool-gate.d.ts +0 -7
- package/dist/tool-gate.js +1 -15
- package/dist/tool-keys-store.d.ts +1 -1
- package/dist/tool-keys.d.ts +6 -4
- package/dist/tool-keys.js +12 -6
- package/dist/tool-plane.d.ts +12 -12
- package/dist/tools.d.ts +13 -13
- package/dist/tools.js +29 -9
- package/dist/trigger-adapter.d.ts +3 -0
- package/dist/trigger-adapters.d.ts +4 -0
- package/dist/trigger-adapters.js +13 -0
- package/dist/trigger-composio.d.ts +58 -1
- package/dist/trigger-composio.js +160 -6
- package/dist/triggers.d.ts +64 -5
- package/dist/triggers.js +141 -17
- package/dist/validate.d.ts +11 -7
- package/dist/validate.js +9 -8
- package/dist/webhooks.d.ts +4 -1
- package/dist/webhooks.js +11 -4
- package/dist/workspace/agent-computer.d.ts +2 -0
- package/dist/workspace/agent-computer.js +2 -0
- package/dist/workspace/archil-claim.d.ts +7 -0
- package/dist/workspace/archil-claim.js +29 -0
- package/dist/workspace/archil.d.ts +9 -1
- package/dist/workspace/archil.js +165 -3
- package/dist/workspace/attach.d.ts +3 -1
- package/dist/workspace/attach.js +2 -0
- package/dist/workspace/attached-computers.d.ts +16 -5
- package/dist/workspace/attached-computers.js +25 -9
- package/dist/workspace/computer-deps.js +1 -1
- package/dist/workspace/computer-for-claim.d.ts +22 -8
- package/dist/workspace/computer-for-claim.js +339 -46
- package/dist/workspace/computer-hold.js +2 -1
- package/dist/workspace/computer-kept.d.ts +11 -1
- package/dist/workspace/computer-kept.js +24 -3
- package/dist/workspace/resolve-computer.d.ts +41 -21
- package/dist/workspace/resolve-computer.js +172 -64
- package/dist/workspace/revision-skills.d.ts +1 -2
- package/dist/workspace/revision-skills.js +3 -4
- package/dist/workspace/run-workspace.d.ts +1 -1
- package/dist/workspace/run-workspace.js +5 -0
- package/dist/workspace/synced-folder.d.ts +85 -0
- package/dist/workspace/synced-folder.js +230 -0
- package/dist/workspace/workspace.d.ts +4 -0
- package/launcher/agentrun-serve +1 -1
- package/package.json +10 -9
- package/templates/README.md +7 -7
- package/templates/inbound-lead/agent.md +3 -3
- package/templates/inbound-lead/evals/learned-correction/case.yaml +3 -3
- package/templates/inbound-lead/evals/learned-correction/fixtures/corrections.md +1 -0
- package/templates/inbound-lead/evals/learned-correction/graders/applies-correction.md +22 -0
- package/templates/inbound-lead/evals/learned-correction/graders/learned-origin.md +1 -1
- package/templates/inbound-lead/evals/learned-correction/prompt.md +1 -1
- package/templates/inbound-lead/lead.schema.json +6 -5
- package/templates/inbound-lead/rules/RUBRIC.md +4 -4
- package/templates/inbound-lead/skills/lead/SKILL.md +4 -4
- package/templates/market-monitor/evals/learned-preference/case.yaml +4 -4
- package/templates/market-monitor/evals/learned-preference/fixtures/corrections.md +1 -0
- package/templates/market-monitor/evals/learned-preference/graders/omits-junior-post.md +3 -3
- package/templates/market-monitor/evals/learned-preference/prompt.md +1 -1
- package/templates/release-notes/evals/learned-style/case.yaml +4 -4
- package/templates/release-notes/evals/learned-style/fixtures/corrections.md +1 -0
- package/templates/release-notes/evals/learned-style/graders/same-changes.md +2 -2
- package/templates/release-notes/evals/learned-style/prompt.md +1 -1
- package/dist/console/assets/index-BrcDSBD8.css +0 -1
- package/dist/console/assets/index-Bz6IWncl.js +0 -711
- package/dist/learn/grade.d.ts +0 -138
- package/dist/learn/grade.js +0 -682
- package/dist/learn/notes.d.ts +0 -81
- package/dist/learn/notes.js +0 -178
- package/dist/learn/reflect.d.ts +0 -77
- package/dist/learn/reflect.js +0 -228
- package/dist/learn/relevance.d.ts +0 -24
- package/dist/learn/relevance.js +0 -91
- package/dist/learn/seed-check.d.ts +0 -74
- package/dist/learn/seed-check.js +0 -103
- package/dist/learning-batch.d.ts +0 -291
- package/dist/learning-batch.js +0 -600
- package/dist/learning-evals.d.ts +0 -33
- package/dist/learning-evals.js +0 -98
- package/dist/native/context.d.ts +0 -6
- package/dist/native/context.js +0 -22
- package/dist/propose.d.ts +0 -52
- package/dist/propose.js +0 -224
- package/dist/runner/learning-ask.d.ts +0 -47
- package/dist/runner/learning-ask.js +0 -128
- package/dist/runner/learning-dispatch.d.ts +0 -45
- package/dist/runner/learning-dispatch.js +0 -99
- package/dist/runner/learning-factory.d.ts +0 -16
- package/dist/runner/learning-factory.js +0 -50
- package/dist/runner/learning-loop.d.ts +0 -273
- package/dist/runner/learning-loop.js +0 -521
- package/dist/usage.d.ts +0 -11
- package/dist/usage.js +0 -11
- package/templates/inbound-lead/evals/learned-correction/fixtures/learning/MEMORY.md +0 -1
- package/templates/inbound-lead/evals/learned-correction/fixtures/learning/no-agencies.md +0 -14
- package/templates/inbound-lead/evals/learned-correction/graders/applies-note.md +0 -21
- package/templates/market-monitor/evals/learned-preference/fixtures/learning/MEMORY.md +0 -1
- package/templates/market-monitor/evals/learned-preference/fixtures/learning/skip-junior-job-posts.md +0 -8
- package/templates/release-notes/evals/learned-style/fixtures/learning/MEMORY.md +0 -1
- package/templates/release-notes/evals/learned-style/fixtures/learning/say-agent-not-bot.md +0 -13
package/dist/server.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Server } from "node:http";
|
|
1
2
|
import { type ModelNeeds } from "./model.js";
|
|
2
3
|
import { type HarnessCapability } from "./harness.js";
|
|
3
4
|
import { type HarnessInstaller } from "./harness-install.js";
|
|
@@ -13,6 +14,9 @@ import type { TriggerAdapter } from "./trigger-adapter.js";
|
|
|
13
14
|
import { type TriggerClock } from "./triggers.js";
|
|
14
15
|
import { type ToolSettingsMap } from "./tool-plane.js";
|
|
15
16
|
import { AttachHub, type HostedDial } from "@parcha/agentrun-computer";
|
|
17
|
+
import { type AttachTiming } from "./computer-attach.js";
|
|
18
|
+
import { type ArchilRoutesOptions } from "./archil-routes.js";
|
|
19
|
+
import { type AgentDeleteStep, type DeleteLearning } from "./agent-delete.js";
|
|
16
20
|
export declare const CONTRACT = "agentrun.v2/0";
|
|
17
21
|
export { DEFAULT_PORT };
|
|
18
22
|
export type ServeOptions = {
|
|
@@ -68,6 +72,9 @@ export type ServeOptions = {
|
|
|
68
72
|
/** When the port is taken at the listen, the next one that is not, of the 100 from it: the port is found by listening,
|
|
69
73
|
* so one another process takes at the same moment is passed over. Without it a taken port fails the start. */
|
|
70
74
|
nextFreePort?: boolean;
|
|
75
|
+
/** A server already listening (listen-first.ts, the CLI's early bind), answering that it is warming: the start takes it
|
|
76
|
+
* over where it would have listened, and `port`, `nextFreePort` and `host` are then only what it was bound with. */
|
|
77
|
+
listener?: Server;
|
|
71
78
|
/** A read-only directory of documents a workflow's `pdf_pages` calls read by file name (`--documents`); default
|
|
72
79
|
* AGENTRUN_SERVE_DOCUMENTS. */
|
|
73
80
|
documents?: string;
|
|
@@ -80,12 +87,10 @@ export type ServeOptions = {
|
|
|
80
87
|
* (the console, sign-in, setup, settings, MCP, triggers, hooks, ...) with a 404 before anything reads the request.
|
|
81
88
|
* It has no owner: accounts and open setup are off, there being no page to sign in to. */
|
|
82
89
|
apiOnly?: boolean;
|
|
83
|
-
/** Another Archil control plane than the key's region's, and its fetch
|
|
84
|
-
* (a launch's disk read, the settings' test, an agent's disk removed
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
readonly fetch?: typeof fetch;
|
|
88
|
-
};
|
|
90
|
+
/** Another Archil control plane than the key's region's, and its fetch, and another maker of a disk's file API: a
|
|
91
|
+
* test's fakes, for the server's own Archil calls (a launch's disk read, the settings' test, an agent's disk removed,
|
|
92
|
+
* a deleted agent's run folder removed from a disk its launch named). */
|
|
93
|
+
archilControl?: ArchilRoutesOptions["control"];
|
|
89
94
|
/** Another Composio than the real one, and its fetch: a test's fake, for the Composio preset's calls (composio-preset.ts). */
|
|
90
95
|
composioControl?: ComposioControl;
|
|
91
96
|
/** With `faux` only: a module whose default export gives the `browser` tool's `{ provider, driver }` (the tests' fake
|
|
@@ -129,6 +134,9 @@ export type ServeOptions = {
|
|
|
129
134
|
/** A module of harness table entries merged over the built-in ones (harness-table.ts HARNESS_TABLE_ENV): a test's
|
|
130
135
|
* stand-ins for the harnesses. */
|
|
131
136
|
harnessTable?: string;
|
|
137
|
+
/** The owner's harness modules (harness-table.ts HARNESS_MODULES_ENV): packages or paths, each exporting a
|
|
138
|
+
* HarnessTableModule whose entries add harnesses of their own, for this server and its runs. Never a built-in one. */
|
|
139
|
+
harnessModules?: readonly string[];
|
|
132
140
|
/** With `faux` only: Docker answers, so docker is available, and nothing asks Docker (place-offers.ts). */
|
|
133
141
|
fauxDocker?: boolean;
|
|
134
142
|
/** For tests: the lock each harness's first use installs by (harness-install.ts), by harness, with the package.json it
|
|
@@ -147,6 +155,16 @@ export type ServeOptions = {
|
|
|
147
155
|
console?: string;
|
|
148
156
|
/** How long a run's process may finish its turn after SIGTERM (default 30s): `8s`, `500ms`, `1m`. */
|
|
149
157
|
drainTimeout?: string;
|
|
158
|
+
/** How often the runs' listings' builder looks again when it found nothing to build (run-listing.ts; default
|
|
159
|
+
* LISTER_IDLE_MS). `Infinity`: it builds only when Serve.listingSettled asks, so a test reads what a list builds alone. */
|
|
160
|
+
listerIdleMs?: number;
|
|
161
|
+
/** No runner beside this server in its process (the CLI's --no-runner, the image's server-and-runner): a paired
|
|
162
|
+
* computer's socket is held here, where no run reaches it, so a pairing code, the pair answer and each paired computer
|
|
163
|
+
* say so and how to start the server instead (attached-computers.ts RUNNER_APART_WORDS). */
|
|
164
|
+
runnerApart?: boolean;
|
|
165
|
+
/** For tests: the attach socket's liveness timing (computer-attach.ts AttachTiming), a relayed dial's included; the
|
|
166
|
+
* protocol's by default. */
|
|
167
|
+
attachTiming?: AttachTiming;
|
|
150
168
|
/** The most runs at once (default: AGENTRUN_MAX_RUNS, else as many pi runs as this host's memory holds: host.ts),
|
|
151
169
|
* beside the memory each run's harness reserves; over either, 429. */
|
|
152
170
|
maxRuns?: number;
|
|
@@ -157,21 +175,15 @@ export type ServeOptions = {
|
|
|
157
175
|
/** The lines a person reads about a stop on this data root: this server's, as its close begins and runs' processes are
|
|
158
176
|
* left to finish their turn. Default: standard error, after `agentrun-serve: `. */
|
|
159
177
|
notice?: (line: string) => void;
|
|
160
|
-
/** The model the grader runs on (`--grade-model`; default AGENTRUN_SERVE_GRADE_MODEL, else the strong tier,
|
|
161
|
-
* AGENT_MODEL_STRONG, else each run's agent's own model). */
|
|
162
|
-
gradeModel?: string;
|
|
163
178
|
/** Whether runs learn (`--learning`; default AGENTRUN_SERVE_LEARNING, else `on`). `on`: a run of an agent whose
|
|
164
179
|
* definition says `learning: true` starts from what its agent learned. `off`: no run this server starts does, whatever
|
|
165
180
|
* its agent's definition says, and its `learning` is null. */
|
|
166
181
|
learning?: LearningMode;
|
|
167
|
-
/** A test's seam: how often a learning batch's loop looks at its run, in ms (learning-batch.ts; default 1000). */
|
|
168
|
-
batchPollMs?: number;
|
|
169
|
-
/** How much of what a run learned its instructions hold under `# Learned`, in UTF-8 bytes (`--learning-budget`;
|
|
170
|
-
* default AGENTRUN_SERVE_LEARNING_BUDGET, else 8000): every note whole while they fit, else the notes that bear on
|
|
171
|
-
* the run's input whole and a line for each of the rest (learning.ts learnedParts, its note selector). */
|
|
172
|
-
learningBudget?: number;
|
|
173
182
|
/** A test's seam: the triggers' clock and timer (triggers.ts), in place of Date.now and setTimeout. */
|
|
174
183
|
triggerClock?: TriggerClock;
|
|
184
|
+
/** A test's seam: awaited by a template apply with agent_id right after it read that agent, inside its turn on the
|
|
185
|
+
* agent (applyTemplate), so a test can hold an update there and write meanwhile. */
|
|
186
|
+
templateApplyRead?: (agentId: string) => Promise<void>;
|
|
175
187
|
/** A test's and a template eval's seam: the URL a feed trigger's read of `url` goes to in its place (a fake feed on
|
|
176
188
|
* loopback, feed/feed-faux.ts); null when it serves no feed at `url` (read as unreachable, nothing sent); undefined
|
|
177
189
|
* to read it as it is. The trigger, its payload and its words keep `url`. */
|
|
@@ -192,6 +204,17 @@ export type ServeOptions = {
|
|
|
192
204
|
* command row is written, with the run's id and the message's text, so a test can hold a message at the run's door while
|
|
193
205
|
* the run's state changes under it (runs-over-store.ts message). */
|
|
194
206
|
beforeSubmit?: (runId: string, content: string) => Promise<void> | void;
|
|
207
|
+
/** A test's seam: step 2 of DELETE /agents/{id} (agent-delete.ts) in place of the learning module's deleteLearning over
|
|
208
|
+
* the agent's learning folder (learn/delete.ts), the server's own. */
|
|
209
|
+
deleteLearning?: DeleteLearning;
|
|
210
|
+
/** A test's seam: awaited at each step's point of DELETE /agents/{id} (agent-delete.ts AgentDeleteStep), so a throw
|
|
211
|
+
* there stops the delete as a crash would. */
|
|
212
|
+
agentDeleteAt?: (step: AgentDeleteStep, agentId: string) => void | Promise<void>;
|
|
213
|
+
/** A test's seam: awaited with a request's path and answer once its work under an Idempotency-Key is done, before the
|
|
214
|
+
* answer is kept, so a test can hold a request there while a DELETE /agents/{id} runs. */
|
|
215
|
+
beforeKeep?: (path: string, answer: unknown) => void | Promise<void>;
|
|
216
|
+
/** How long DELETE /agents/{id} waits for the agent's cancelled runs to end (default 30 s), then 409 runs_in_flight. */
|
|
217
|
+
agentDeleteWaitMs?: number;
|
|
195
218
|
/** A test's seam: the folder the template packages are read from, in place of the package's own (templates.ts). */
|
|
196
219
|
templates?: string;
|
|
197
220
|
/** A test's seam: the GitHub a template import reads, its API's origin and the one host it may be sent to, in place of
|
|
@@ -199,6 +222,9 @@ export type ServeOptions = {
|
|
|
199
222
|
templateImportApi?: string;
|
|
200
223
|
/** The waits before each try again of a webhook delivery (default 5 s, 5 min, 30 min, 2 h, 5 h and 10 h: webhooks.ts RETRY_MS). */
|
|
201
224
|
webhookRetryMs?: readonly number[];
|
|
225
|
+
/** The bound on one webhook try, whole milliseconds under the 60 s claim it holds its message by (default 15 s:
|
|
226
|
+
* webhooks.ts TIMEOUT_MS); any other value refuses the server's start. */
|
|
227
|
+
webhookTimeoutMs?: number;
|
|
202
228
|
/** Whether the outbound webhook may send to a private network or this machine: off by default, so no caller of the API
|
|
203
229
|
* can make the server POST inside its own network. The operator's AGENTRUN_WEBHOOK_PRIVATE_TARGETS=1 turns it on. */
|
|
204
230
|
webhookPrivateTargets?: boolean;
|
|
@@ -207,8 +233,9 @@ export type ServeOptions = {
|
|
|
207
233
|
* runner's resolver decides what a test sees. */
|
|
208
234
|
webhookLookup?: (host: string) => Promise<string[]>;
|
|
209
235
|
};
|
|
210
|
-
/** The
|
|
211
|
-
* takes the same (test/support.mjs
|
|
236
|
+
/** The switches a run's process gets, each module path resolved: the owner's harness modules (harnessModules), and the test
|
|
237
|
+
* switches, which are empty outside tests. A test's in-process runner takes the same (test/support.mjs
|
|
238
|
+
* startInProcessRunner). */
|
|
212
239
|
export declare function fauxEnvOf(options: ServeOptions): NodeJS.ProcessEnv;
|
|
213
240
|
/** `tokenFile` is null when `options.token` gave the token; `tokenMade` says this start made the token in it. */
|
|
214
241
|
/** `setupUrl`: with accounts and no password yet, the page that sets it (with its code when setup needs one);
|
|
@@ -252,6 +279,8 @@ export type Serve = {
|
|
|
252
279
|
runs: number;
|
|
253
280
|
boundMs: number;
|
|
254
281
|
};
|
|
282
|
+
/** Resolves once every run's listing is current (run-listing.ts Lister.settled): for tests and benchmarks. */
|
|
283
|
+
listingSettled(): Promise<void>;
|
|
255
284
|
};
|
|
256
285
|
/** A route: `name` is its operationId in the OpenAPI document (openapi.ts); `capability`, when this server turns it off;
|
|
257
286
|
* `raw`, a route whose body is bytes and not JSON, which the page's session may send with any content type, still only
|
|
@@ -288,9 +317,8 @@ export declare function offersEnvOf(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
|
288
317
|
* AGENTRUN_SERVE_LEARNING's when not given), its tool settings (`toolSettings`, what each web tool resolves to) and the
|
|
289
318
|
* box offers (`boxes`, what the server found at the start, place-offers.ts), with whether a revision that names no
|
|
290
319
|
* model runs (needsOf). The server makes it once at its start and then remakes only the parts a write changes
|
|
291
|
-
* (startHolding), so a key saved later can make a harness, a provider or the default model available with no restart.
|
|
292
|
-
|
|
293
|
-
export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stored?: StoredKeys, learning?: LearningMode, toolSettings?: ToolSettingsMap, boxes?: readonly BoxOffer[], gradeModel?: string): Promise<{
|
|
320
|
+
* (startHolding), so a key saved later can make a harness, a provider or the default model available with no restart. */
|
|
321
|
+
export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stored?: StoredKeys, learning?: LearningMode, toolSettings?: ToolSettingsMap, boxes?: readonly BoxOffer[]): Promise<{
|
|
294
322
|
env: NodeJS.ProcessEnv;
|
|
295
323
|
offers: HarnessCapability[];
|
|
296
324
|
caps: {
|
|
@@ -303,10 +331,15 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
303
331
|
};
|
|
304
332
|
/** What runs a run here (the contract's `runtimes`, informational): this server's runners, over its one store. */
|
|
305
333
|
runtimes: string[];
|
|
334
|
+
/** How a run is kept from another here (run-child-host.ts runIsolationOf): each a process of its own, and `uid`, each
|
|
335
|
+
* a user of its own too. */
|
|
336
|
+
run_isolation: "uid" | "process";
|
|
306
337
|
/** The harnesses a revision may name (`definition.harness`), whether this server runs each, and how many at once. */
|
|
307
338
|
harnesses: {
|
|
308
339
|
max_concurrent_runs: number;
|
|
309
|
-
id:
|
|
340
|
+
id: string;
|
|
341
|
+
label: string;
|
|
342
|
+
promises: import("./harness-table.js").HarnessPromises;
|
|
310
343
|
available: boolean;
|
|
311
344
|
steer: boolean;
|
|
312
345
|
reason?: string;
|
|
@@ -343,10 +376,9 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
343
376
|
fast: string | null;
|
|
344
377
|
strong: string | null;
|
|
345
378
|
};
|
|
346
|
-
/**
|
|
347
|
-
*
|
|
348
|
-
*
|
|
349
|
-
* password session (forCaller), and `approve_needs` when not. */
|
|
379
|
+
/** `pending`: a workflow draft with a call no price covers is kept to wait for its owner's OK, served to no run;
|
|
380
|
+
* `approve`: whether the caller can approve one, which takes the owner's password session (forCaller), and
|
|
381
|
+
* `approve_needs` when not. */
|
|
350
382
|
learning: LearningCaps;
|
|
351
383
|
/** Every tool a revision may name (the closed table in tools.ts): available here, or the variables it is missing; a
|
|
352
384
|
* web tool, what it resolves to on each harness under this server's tool settings; `key`, the tool key that unlocks
|
|
@@ -355,14 +387,14 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
355
387
|
providers?: string[] | undefined;
|
|
356
388
|
provider?: string | undefined;
|
|
357
389
|
default_provider?: string | undefined;
|
|
358
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
359
|
-
why?: Record<"opencode" | "codex" | "
|
|
360
|
-
default_permission: "
|
|
361
|
-
permissions: ("
|
|
390
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
391
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
392
|
+
default_permission: "ask" | "allow" | "deny";
|
|
393
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
362
394
|
fallback_allow_reads?: true | undefined;
|
|
363
395
|
allow_reads?: true | undefined;
|
|
364
|
-
permission: "
|
|
365
|
-
harnesses:
|
|
396
|
+
permission: "ask" | "allow" | "deny";
|
|
397
|
+
harnesses: string[];
|
|
366
398
|
missing?: string[] | undefined;
|
|
367
399
|
reason?: string | undefined;
|
|
368
400
|
available: boolean;
|
|
@@ -374,11 +406,11 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
374
406
|
name: string;
|
|
375
407
|
summary: string;
|
|
376
408
|
} | {
|
|
377
|
-
default_permission: "
|
|
378
|
-
permissions: ("
|
|
409
|
+
default_permission: "ask" | "allow" | "deny";
|
|
410
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
379
411
|
fallback_allow_reads?: true | undefined;
|
|
380
412
|
allow_reads?: true | undefined;
|
|
381
|
-
permission: "
|
|
413
|
+
permission: "ask" | "allow" | "deny";
|
|
382
414
|
name: string;
|
|
383
415
|
summary: string;
|
|
384
416
|
blurb: string;
|
|
@@ -386,20 +418,20 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
386
418
|
calls: boolean;
|
|
387
419
|
meta: true;
|
|
388
420
|
available: boolean;
|
|
389
|
-
harnesses:
|
|
421
|
+
harnesses: string[];
|
|
390
422
|
} | {
|
|
391
423
|
key: string | undefined;
|
|
392
424
|
providers?: string[] | undefined;
|
|
393
425
|
provider?: string | undefined;
|
|
394
426
|
default_provider?: string | undefined;
|
|
395
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
396
|
-
why?: Record<"opencode" | "codex" | "
|
|
397
|
-
default_permission: "
|
|
398
|
-
permissions: ("
|
|
427
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
428
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
429
|
+
default_permission: "ask" | "allow" | "deny";
|
|
430
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
399
431
|
fallback_allow_reads?: true | undefined;
|
|
400
432
|
allow_reads?: true | undefined;
|
|
401
|
-
permission: "
|
|
402
|
-
harnesses:
|
|
433
|
+
permission: "ask" | "allow" | "deny";
|
|
434
|
+
harnesses: string[];
|
|
403
435
|
missing?: string[] | undefined;
|
|
404
436
|
reason?: string | undefined;
|
|
405
437
|
available: boolean;
|
|
@@ -412,11 +444,11 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
412
444
|
summary: string;
|
|
413
445
|
} | {
|
|
414
446
|
key: string | undefined;
|
|
415
|
-
default_permission: "
|
|
416
|
-
permissions: ("
|
|
447
|
+
default_permission: "ask" | "allow" | "deny";
|
|
448
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
417
449
|
fallback_allow_reads?: true | undefined;
|
|
418
450
|
allow_reads?: true | undefined;
|
|
419
|
-
permission: "
|
|
451
|
+
permission: "ask" | "allow" | "deny";
|
|
420
452
|
name: string;
|
|
421
453
|
summary: string;
|
|
422
454
|
blurb: string;
|
|
@@ -424,7 +456,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
424
456
|
calls: boolean;
|
|
425
457
|
meta: true;
|
|
426
458
|
available: boolean;
|
|
427
|
-
harnesses:
|
|
459
|
+
harnesses: string[];
|
|
428
460
|
})[];
|
|
429
461
|
/** How this server holds its secrets (secrets.ts, the launcher), and what that does not cover. */
|
|
430
462
|
secrets: {
|
|
@@ -437,7 +469,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
437
469
|
* `models.default`, `models.strong`) with the tools it names of `node_tools`; a node that names no thinking level
|
|
438
470
|
* thinks at the run's effort, or medium. */
|
|
439
471
|
workflows: {
|
|
440
|
-
nodes: ("agent" | "
|
|
472
|
+
nodes: ("agent" | "extract" | "decide" | "report")[];
|
|
441
473
|
node_tools: string[];
|
|
442
474
|
adapters: string[];
|
|
443
475
|
decisions: {
|
|
@@ -532,15 +564,16 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
532
564
|
at_rest: string;
|
|
533
565
|
};
|
|
534
566
|
/** /settings/mcp-servers: remote MCP servers previewed and saved, each credential sealed under the server's seal key,
|
|
535
|
-
* which always exists (seal-key.ts), so MCP credentials are always kept sealed.
|
|
567
|
+
* which always exists (seal-key.ts), so MCP credentials are always kept sealed. Every harness of the table runs a
|
|
568
|
+
* grant (runnable.ts takes one on any), a module's among them. */
|
|
536
569
|
mcp_client: {
|
|
537
570
|
transports: string[];
|
|
538
571
|
auth: ("headers" | "none" | "oauth" | "bearer" | "github_app" | "per_run")[];
|
|
539
572
|
at_rest: string;
|
|
540
|
-
harnesses:
|
|
573
|
+
harnesses: string[];
|
|
541
574
|
};
|
|
542
575
|
/** This server's learning switch (`--learning`): on, a run learns when its agent says `learning: true`; off, none does. */
|
|
543
|
-
learning: "
|
|
576
|
+
learning: "on" | "off";
|
|
544
577
|
/** /settings/webhook: one URL POSTed, signed by the Standard Webhooks spec, when a run needs its person and when it
|
|
545
578
|
* ends (webhooks.ts); its secret kept sealed under the same seal key. */
|
|
546
579
|
webhooks: {
|
|
@@ -596,9 +629,8 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
596
629
|
* included (harnessOffers), and whether a revision that names no model runs here (`models.ready`, and what it `needs`
|
|
597
630
|
* when not), so what this returns is what the route serves and what the document's schema holds.
|
|
598
631
|
* `learning` is the server's learning switch (`--learning`), AGENTRUN_SERVE_LEARNING's when not given; with this
|
|
599
|
-
* server's tool settings, what each web tool resolves to (tool-plane.ts); `boxes`, the box offers its places show
|
|
600
|
-
|
|
601
|
-
export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number, learning?: LearningMode, toolSettings?: ToolSettingsMap, boxes?: readonly BoxOffer[], gradeModel?: string): Promise<{
|
|
632
|
+
* server's tool settings, what each web tool resolves to (tool-plane.ts); `boxes`, the box offers its places show. */
|
|
633
|
+
export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number, learning?: LearningMode, toolSettings?: ToolSettingsMap, boxes?: readonly BoxOffer[]): Promise<{
|
|
602
634
|
backend: string;
|
|
603
635
|
contract: string;
|
|
604
636
|
server: {
|
|
@@ -608,10 +640,15 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
608
640
|
};
|
|
609
641
|
/** What runs a run here (the contract's `runtimes`, informational): this server's runners, over its one store. */
|
|
610
642
|
runtimes: string[];
|
|
643
|
+
/** How a run is kept from another here (run-child-host.ts runIsolationOf): each a process of its own, and `uid`, each
|
|
644
|
+
* a user of its own too. */
|
|
645
|
+
run_isolation: "uid" | "process";
|
|
611
646
|
/** The harnesses a revision may name (`definition.harness`), whether this server runs each, and how many at once. */
|
|
612
647
|
harnesses: {
|
|
613
648
|
max_concurrent_runs: number;
|
|
614
|
-
id:
|
|
649
|
+
id: string;
|
|
650
|
+
label: string;
|
|
651
|
+
promises: import("./harness-table.js").HarnessPromises;
|
|
615
652
|
available: boolean;
|
|
616
653
|
steer: boolean;
|
|
617
654
|
reason?: string;
|
|
@@ -648,10 +685,9 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
648
685
|
fast: string | null;
|
|
649
686
|
strong: string | null;
|
|
650
687
|
};
|
|
651
|
-
/**
|
|
652
|
-
*
|
|
653
|
-
*
|
|
654
|
-
* password session (forCaller), and `approve_needs` when not. */
|
|
688
|
+
/** `pending`: a workflow draft with a call no price covers is kept to wait for its owner's OK, served to no run;
|
|
689
|
+
* `approve`: whether the caller can approve one, which takes the owner's password session (forCaller), and
|
|
690
|
+
* `approve_needs` when not. */
|
|
655
691
|
learning: LearningCaps;
|
|
656
692
|
/** Every tool a revision may name (the closed table in tools.ts): available here, or the variables it is missing; a
|
|
657
693
|
* web tool, what it resolves to on each harness under this server's tool settings; `key`, the tool key that unlocks
|
|
@@ -660,14 +696,14 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
660
696
|
providers?: string[] | undefined;
|
|
661
697
|
provider?: string | undefined;
|
|
662
698
|
default_provider?: string | undefined;
|
|
663
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
664
|
-
why?: Record<"opencode" | "codex" | "
|
|
665
|
-
default_permission: "
|
|
666
|
-
permissions: ("
|
|
699
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
700
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
701
|
+
default_permission: "ask" | "allow" | "deny";
|
|
702
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
667
703
|
fallback_allow_reads?: true | undefined;
|
|
668
704
|
allow_reads?: true | undefined;
|
|
669
|
-
permission: "
|
|
670
|
-
harnesses:
|
|
705
|
+
permission: "ask" | "allow" | "deny";
|
|
706
|
+
harnesses: string[];
|
|
671
707
|
missing?: string[] | undefined;
|
|
672
708
|
reason?: string | undefined;
|
|
673
709
|
available: boolean;
|
|
@@ -679,11 +715,11 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
679
715
|
name: string;
|
|
680
716
|
summary: string;
|
|
681
717
|
} | {
|
|
682
|
-
default_permission: "
|
|
683
|
-
permissions: ("
|
|
718
|
+
default_permission: "ask" | "allow" | "deny";
|
|
719
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
684
720
|
fallback_allow_reads?: true | undefined;
|
|
685
721
|
allow_reads?: true | undefined;
|
|
686
|
-
permission: "
|
|
722
|
+
permission: "ask" | "allow" | "deny";
|
|
687
723
|
name: string;
|
|
688
724
|
summary: string;
|
|
689
725
|
blurb: string;
|
|
@@ -691,20 +727,20 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
691
727
|
calls: boolean;
|
|
692
728
|
meta: true;
|
|
693
729
|
available: boolean;
|
|
694
|
-
harnesses:
|
|
730
|
+
harnesses: string[];
|
|
695
731
|
} | {
|
|
696
732
|
key: string | undefined;
|
|
697
733
|
providers?: string[] | undefined;
|
|
698
734
|
provider?: string | undefined;
|
|
699
735
|
default_provider?: string | undefined;
|
|
700
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
701
|
-
why?: Record<"opencode" | "codex" | "
|
|
702
|
-
default_permission: "
|
|
703
|
-
permissions: ("
|
|
736
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
737
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
738
|
+
default_permission: "ask" | "allow" | "deny";
|
|
739
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
704
740
|
fallback_allow_reads?: true | undefined;
|
|
705
741
|
allow_reads?: true | undefined;
|
|
706
|
-
permission: "
|
|
707
|
-
harnesses:
|
|
742
|
+
permission: "ask" | "allow" | "deny";
|
|
743
|
+
harnesses: string[];
|
|
708
744
|
missing?: string[] | undefined;
|
|
709
745
|
reason?: string | undefined;
|
|
710
746
|
available: boolean;
|
|
@@ -717,11 +753,11 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
717
753
|
summary: string;
|
|
718
754
|
} | {
|
|
719
755
|
key: string | undefined;
|
|
720
|
-
default_permission: "
|
|
721
|
-
permissions: ("
|
|
756
|
+
default_permission: "ask" | "allow" | "deny";
|
|
757
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
722
758
|
fallback_allow_reads?: true | undefined;
|
|
723
759
|
allow_reads?: true | undefined;
|
|
724
|
-
permission: "
|
|
760
|
+
permission: "ask" | "allow" | "deny";
|
|
725
761
|
name: string;
|
|
726
762
|
summary: string;
|
|
727
763
|
blurb: string;
|
|
@@ -729,7 +765,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
729
765
|
calls: boolean;
|
|
730
766
|
meta: true;
|
|
731
767
|
available: boolean;
|
|
732
|
-
harnesses:
|
|
768
|
+
harnesses: string[];
|
|
733
769
|
})[];
|
|
734
770
|
/** How this server holds its secrets (secrets.ts, the launcher), and what that does not cover. */
|
|
735
771
|
secrets: {
|
|
@@ -742,7 +778,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
742
778
|
* `models.default`, `models.strong`) with the tools it names of `node_tools`; a node that names no thinking level
|
|
743
779
|
* thinks at the run's effort, or medium. */
|
|
744
780
|
workflows: {
|
|
745
|
-
nodes: ("agent" | "
|
|
781
|
+
nodes: ("agent" | "extract" | "decide" | "report")[];
|
|
746
782
|
node_tools: string[];
|
|
747
783
|
adapters: string[];
|
|
748
784
|
decisions: {
|
|
@@ -837,15 +873,16 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
837
873
|
at_rest: string;
|
|
838
874
|
};
|
|
839
875
|
/** /settings/mcp-servers: remote MCP servers previewed and saved, each credential sealed under the server's seal key,
|
|
840
|
-
* which always exists (seal-key.ts), so MCP credentials are always kept sealed.
|
|
876
|
+
* which always exists (seal-key.ts), so MCP credentials are always kept sealed. Every harness of the table runs a
|
|
877
|
+
* grant (runnable.ts takes one on any), a module's among them. */
|
|
841
878
|
mcp_client: {
|
|
842
879
|
transports: string[];
|
|
843
880
|
auth: ("headers" | "none" | "oauth" | "bearer" | "github_app" | "per_run")[];
|
|
844
881
|
at_rest: string;
|
|
845
|
-
harnesses:
|
|
882
|
+
harnesses: string[];
|
|
846
883
|
};
|
|
847
884
|
/** This server's learning switch (`--learning`): on, a run learns when its agent says `learning: true`; off, none does. */
|
|
848
|
-
learning: "
|
|
885
|
+
learning: "on" | "off";
|
|
849
886
|
/** /settings/webhook: one URL POSTed, signed by the Standard Webhooks spec, when a run needs its person and when it
|
|
850
887
|
* ends (webhooks.ts); its secret kept sealed under the same seal key. */
|
|
851
888
|
webhooks: {
|
|
@@ -896,9 +933,8 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
896
933
|
free_model_requests: number;
|
|
897
934
|
};
|
|
898
935
|
}>;
|
|
899
|
-
/** capabilities.learning: whether the caller may approve a
|
|
936
|
+
/** capabilities.learning: whether the caller may approve a workflow draft that waits, and what that needs when not. */
|
|
900
937
|
type LearningCaps = {
|
|
901
|
-
grade_model: string | null;
|
|
902
938
|
pending: true;
|
|
903
939
|
approve: boolean;
|
|
904
940
|
approve_needs?: "password";
|