@parcha/agentrun-serve 0.1.0-beta.42 → 0.1.0-beta.44
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 +126 -0
- package/README.md +221 -31
- package/dist/cli.js +42 -8
- package/dist/composio-preset.d.ts +4 -3
- package/dist/composio-preset.js +12 -4
- package/dist/composio-triggers.d.ts +20 -2
- package/dist/composio-triggers.js +183 -17
- 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/console/assets/index-BUktRvS-.css +1 -0
- package/dist/console/assets/index-nB9kTfIN.js +711 -0
- package/dist/console/index.html +2 -2
- package/dist/decisions.js +0 -4
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +3 -0
- package/dist/harness-table.d.ts +51 -3
- package/dist/harness-table.js +101 -13
- package/dist/harness.d.ts +18 -1
- package/dist/harness.js +21 -9
- package/dist/host.d.ts +12 -10
- package/dist/host.js +18 -16
- package/dist/import-sources.js +25 -5
- 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/learn/audit.d.ts +123 -0
- package/dist/learn/audit.js +159 -0
- package/dist/learn/check.d.ts +3 -0
- package/dist/learn/check.js +1 -1
- package/dist/learn/compile.d.ts +50 -74
- package/dist/learn/compile.js +90 -124
- package/dist/learn/delete.d.ts +17 -0
- package/dist/learn/delete.js +44 -0
- package/dist/learn/folder.d.ts +9 -0
- package/dist/learn/folder.js +13 -2
- package/dist/learn/promote.d.ts +92 -200
- package/dist/learn/promote.js +65 -187
- package/dist/learn/replay-calls.d.ts +5 -0
- package/dist/learn/replay-calls.js +12 -1
- package/dist/learn/secrets.d.ts +8 -0
- package/dist/learn/secrets.js +12 -0
- package/dist/learn/skills.d.ts +4 -0
- package/dist/learn/skills.js +19 -5
- package/dist/learn/workflow-nodes.d.ts +23 -3
- package/dist/learn/workflow-nodes.js +30 -12
- package/dist/learned-nodes.d.ts +9 -34
- package/dist/learned-nodes.js +11 -23
- package/dist/learned-workflow.d.ts +6 -8
- package/dist/learned-workflow.js +18 -57
- package/dist/learning-batch.d.ts +13 -5
- package/dist/learning-batch.js +34 -8
- package/dist/learning-cost.d.ts +111 -4
- package/dist/learning-cost.js +120 -3
- package/dist/learning-evals.d.ts +2 -0
- package/dist/learning-evals.js +4 -3
- package/dist/learning-routes.d.ts +8 -0
- package/dist/learning-routes.js +18 -1
- package/dist/learning-setting.d.ts +16 -1
- package/dist/learning-setting.js +34 -2
- package/dist/learning.d.ts +1 -1
- package/dist/listen-first.d.ts +30 -0
- package/dist/listen-first.js +115 -0
- package/dist/llms.txt +2 -1
- package/dist/mcp-servers-store.d.ts +12 -12
- package/dist/model.d.ts +8 -4
- package/dist/model.js +16 -8
- package/dist/openapi.js +203 -87
- package/dist/owner.d.ts +8 -0
- package/dist/owner.js +11 -0
- package/dist/paid-calls.d.ts +6 -0
- package/dist/paid-calls.js +11 -1
- package/dist/place.d.ts +8 -3
- package/dist/place.js +13 -9
- package/dist/provider.js +15 -1
- package/dist/run-launch.d.ts +6 -3
- package/dist/run-launch.js +2 -0
- package/dist/run-learning-served.d.ts +1 -1
- package/dist/run-model-key.d.ts +64 -0
- package/dist/run-model-key.js +147 -0
- package/dist/runner/adapter-loop.d.ts +10 -0
- package/dist/runner/adapter-loop.js +26 -4
- package/dist/runner/adapter-run-spec.d.ts +6 -3
- package/dist/runner/adapter-run-spec.js +83 -25
- package/dist/runner/adapters/index.d.ts +4 -2
- package/dist/runner/adapters/index.js +13 -4
- package/dist/runner/audit.d.ts +68 -0
- package/dist/runner/audit.js +349 -0
- package/dist/runner/beside.d.ts +2 -1
- package/dist/runner/beside.js +6 -3
- package/dist/runner/claim-secrets.d.ts +49 -0
- package/dist/runner/claim-secrets.js +110 -1
- package/dist/runner/cli-run-spec.d.ts +2 -1
- package/dist/runner/cli-run-spec.js +44 -15
- package/dist/runner/commands.d.ts +3 -6
- package/dist/runner/feedback-round.d.ts +3 -2
- package/dist/runner/feedback-round.js +8 -7
- package/dist/runner/harness-loops.js +31 -23
- package/dist/runner/journal-kinds.d.ts +5 -7
- package/dist/runner/journal-kinds.js +0 -7
- package/dist/runner/learning-dispatch.d.ts +0 -16
- package/dist/runner/learning-dispatch.js +4 -47
- package/dist/runner/learning-end.d.ts +55 -13
- package/dist/runner/learning-end.js +128 -44
- package/dist/runner/learning-factory.d.ts +1 -1
- package/dist/runner/learning-factory.js +1 -4
- package/dist/runner/learning-loop.d.ts +2 -38
- package/dist/runner/learning-loop.js +8 -116
- package/dist/runner/loop-contract.d.ts +6 -0
- package/dist/runner/loop-contract.js +4 -0
- package/dist/runner/loop.js +6 -2
- package/dist/runner/main.d.ts +1 -0
- package/dist/runner/main.js +25 -8
- package/dist/runner/memory-claim.d.ts +9 -6
- package/dist/runner/memory-claim.js +12 -9
- package/dist/runner/promotion.d.ts +55 -54
- package/dist/runner/promotion.js +232 -585
- package/dist/runner/reflect-hook.d.ts +14 -0
- package/dist/runner/reflect-hook.js +28 -3
- package/dist/runner/runner.js +57 -4
- package/dist/runner/store-secrets.js +9 -5
- package/dist/runner/workflow-first.d.ts +6 -5
- package/dist/runner/workflow-first.js +17 -12
- package/dist/runner/workflow-spec.js +10 -2
- package/dist/runs-over-store.d.ts +5 -4
- package/dist/runs-over-store.js +13 -3
- package/dist/sdk/workflows.d.ts +1 -1
- package/dist/server.d.ts +64 -50
- package/dist/server.js +516 -134
- package/dist/store/index.d.ts +2 -2
- package/dist/store/index.js +1 -1
- package/dist/store/seal.d.ts +20 -2
- package/dist/store/seal.js +24 -8
- package/dist/store/sqlite/run-launch.d.ts +4 -1
- package/dist/store/sqlite/run-launch.js +12 -0
- package/dist/store/sqlite/store.d.ts +3 -2
- package/dist/store/sqlite/store.js +119 -16
- package/dist/store/store.d.ts +41 -3
- package/dist/store-reads/analytics.js +11 -1
- package/dist/store-reads/learning.d.ts +57 -7
- package/dist/store-reads/learning.js +194 -28
- package/dist/store-reads/loop.d.ts +4 -39
- package/dist/store-reads/loop.js +10 -79
- package/dist/store-reads/stats.js +13 -3
- package/dist/store-view.d.ts +5 -1
- package/dist/store-view.js +12 -1
- package/dist/telemetry.d.ts +59 -0
- package/dist/telemetry.js +153 -0
- package/dist/tool-keys-store.d.ts +1 -1
- package/dist/tool-keys.d.ts +2 -2
- package/dist/tool-plane.d.ts +12 -12
- package/dist/tools.d.ts +11 -11
- package/dist/tools.js +18 -5
- 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 +4 -0
- package/dist/triggers.js +22 -3
- package/dist/validate.d.ts +11 -7
- package/dist/validate.js +8 -7
- package/dist/workspace/computer-for-claim.d.ts +15 -5
- package/dist/workspace/computer-for-claim.js +228 -32
- package/dist/workspace/resolve-computer.d.ts +8 -2
- package/dist/workspace/resolve-computer.js +1 -1
- package/dist/workspace/run-tools.d.ts +1 -1
- package/dist/workspace/run-tools.js +14 -3
- package/package.json +10 -9
- package/dist/console/assets/index-C3gNPz58.css +0 -1
- package/dist/console/assets/index-DYJ_wj27.js +0 -711
- package/dist/learn/general.d.ts +0 -69
- package/dist/learn/general.js +0 -75
- package/dist/learn/refit.d.ts +0 -48
- package/dist/learn/refit.js +0 -264
- package/dist/runner/step-guard.d.ts +0 -62
- package/dist/runner/step-guard.js +0 -93
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";
|
|
@@ -68,6 +69,9 @@ export type ServeOptions = {
|
|
|
68
69
|
/** 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
70
|
* so one another process takes at the same moment is passed over. Without it a taken port fails the start. */
|
|
70
71
|
nextFreePort?: boolean;
|
|
72
|
+
/** A server already listening (listen-first.ts, the CLI's early bind), answering that it is warming: the start takes it
|
|
73
|
+
* over where it would have listened, and `port`, `nextFreePort` and `host` are then only what it was bound with. */
|
|
74
|
+
listener?: Server;
|
|
71
75
|
/** A read-only directory of documents a workflow's `pdf_pages` calls read by file name (`--documents`); default
|
|
72
76
|
* AGENTRUN_SERVE_DOCUMENTS. */
|
|
73
77
|
documents?: string;
|
|
@@ -129,6 +133,9 @@ export type ServeOptions = {
|
|
|
129
133
|
/** A module of harness table entries merged over the built-in ones (harness-table.ts HARNESS_TABLE_ENV): a test's
|
|
130
134
|
* stand-ins for the harnesses. */
|
|
131
135
|
harnessTable?: string;
|
|
136
|
+
/** The owner's harness modules (harness-table.ts HARNESS_MODULES_ENV): packages or paths, each exporting a
|
|
137
|
+
* HarnessTableModule whose entries add harnesses of their own, for this server and its runs. Never a built-in one. */
|
|
138
|
+
harnessModules?: readonly string[];
|
|
132
139
|
/** With `faux` only: Docker answers, so docker is available, and nothing asks Docker (place-offers.ts). */
|
|
133
140
|
fauxDocker?: boolean;
|
|
134
141
|
/** For tests: the lock each harness's first use installs by (harness-install.ts), by harness, with the package.json it
|
|
@@ -207,8 +214,9 @@ export type ServeOptions = {
|
|
|
207
214
|
* runner's resolver decides what a test sees. */
|
|
208
215
|
webhookLookup?: (host: string) => Promise<string[]>;
|
|
209
216
|
};
|
|
210
|
-
/** The
|
|
211
|
-
* takes the same (test/support.mjs
|
|
217
|
+
/** The switches a run's process gets, each module path resolved: the owner's harness modules (harnessModules), and the test
|
|
218
|
+
* switches, which are empty outside tests. A test's in-process runner takes the same (test/support.mjs
|
|
219
|
+
* startInProcessRunner). */
|
|
212
220
|
export declare function fauxEnvOf(options: ServeOptions): NodeJS.ProcessEnv;
|
|
213
221
|
/** `tokenFile` is null when `options.token` gave the token; `tokenMade` says this start made the token in it. */
|
|
214
222
|
/** `setupUrl`: with accounts and no password yet, the page that sets it (with its code when setup needs one);
|
|
@@ -306,7 +314,9 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
306
314
|
/** The harnesses a revision may name (`definition.harness`), whether this server runs each, and how many at once. */
|
|
307
315
|
harnesses: {
|
|
308
316
|
max_concurrent_runs: number;
|
|
309
|
-
id:
|
|
317
|
+
id: string;
|
|
318
|
+
label: string;
|
|
319
|
+
promises: import("./harness-table.js").HarnessPromises;
|
|
310
320
|
available: boolean;
|
|
311
321
|
steer: boolean;
|
|
312
322
|
reason?: string;
|
|
@@ -355,14 +365,14 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
355
365
|
providers?: string[] | undefined;
|
|
356
366
|
provider?: string | undefined;
|
|
357
367
|
default_provider?: string | undefined;
|
|
358
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
359
|
-
why?: Record<"opencode" | "codex" | "
|
|
360
|
-
default_permission: "
|
|
361
|
-
permissions: ("
|
|
368
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
369
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
370
|
+
default_permission: "ask" | "allow" | "deny";
|
|
371
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
362
372
|
fallback_allow_reads?: true | undefined;
|
|
363
373
|
allow_reads?: true | undefined;
|
|
364
|
-
permission: "
|
|
365
|
-
harnesses:
|
|
374
|
+
permission: "ask" | "allow" | "deny";
|
|
375
|
+
harnesses: string[];
|
|
366
376
|
missing?: string[] | undefined;
|
|
367
377
|
reason?: string | undefined;
|
|
368
378
|
available: boolean;
|
|
@@ -374,11 +384,11 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
374
384
|
name: string;
|
|
375
385
|
summary: string;
|
|
376
386
|
} | {
|
|
377
|
-
default_permission: "
|
|
378
|
-
permissions: ("
|
|
387
|
+
default_permission: "ask" | "allow" | "deny";
|
|
388
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
379
389
|
fallback_allow_reads?: true | undefined;
|
|
380
390
|
allow_reads?: true | undefined;
|
|
381
|
-
permission: "
|
|
391
|
+
permission: "ask" | "allow" | "deny";
|
|
382
392
|
name: string;
|
|
383
393
|
summary: string;
|
|
384
394
|
blurb: string;
|
|
@@ -386,20 +396,20 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
386
396
|
calls: boolean;
|
|
387
397
|
meta: true;
|
|
388
398
|
available: boolean;
|
|
389
|
-
harnesses:
|
|
399
|
+
harnesses: string[];
|
|
390
400
|
} | {
|
|
391
401
|
key: string | undefined;
|
|
392
402
|
providers?: string[] | undefined;
|
|
393
403
|
provider?: string | undefined;
|
|
394
404
|
default_provider?: string | undefined;
|
|
395
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
396
|
-
why?: Record<"opencode" | "codex" | "
|
|
397
|
-
default_permission: "
|
|
398
|
-
permissions: ("
|
|
405
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
406
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
407
|
+
default_permission: "ask" | "allow" | "deny";
|
|
408
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
399
409
|
fallback_allow_reads?: true | undefined;
|
|
400
410
|
allow_reads?: true | undefined;
|
|
401
|
-
permission: "
|
|
402
|
-
harnesses:
|
|
411
|
+
permission: "ask" | "allow" | "deny";
|
|
412
|
+
harnesses: string[];
|
|
403
413
|
missing?: string[] | undefined;
|
|
404
414
|
reason?: string | undefined;
|
|
405
415
|
available: boolean;
|
|
@@ -412,11 +422,11 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
412
422
|
summary: string;
|
|
413
423
|
} | {
|
|
414
424
|
key: string | undefined;
|
|
415
|
-
default_permission: "
|
|
416
|
-
permissions: ("
|
|
425
|
+
default_permission: "ask" | "allow" | "deny";
|
|
426
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
417
427
|
fallback_allow_reads?: true | undefined;
|
|
418
428
|
allow_reads?: true | undefined;
|
|
419
|
-
permission: "
|
|
429
|
+
permission: "ask" | "allow" | "deny";
|
|
420
430
|
name: string;
|
|
421
431
|
summary: string;
|
|
422
432
|
blurb: string;
|
|
@@ -424,7 +434,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
424
434
|
calls: boolean;
|
|
425
435
|
meta: true;
|
|
426
436
|
available: boolean;
|
|
427
|
-
harnesses:
|
|
437
|
+
harnesses: string[];
|
|
428
438
|
})[];
|
|
429
439
|
/** How this server holds its secrets (secrets.ts, the launcher), and what that does not cover. */
|
|
430
440
|
secrets: {
|
|
@@ -437,7 +447,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
437
447
|
* `models.default`, `models.strong`) with the tools it names of `node_tools`; a node that names no thinking level
|
|
438
448
|
* thinks at the run's effort, or medium. */
|
|
439
449
|
workflows: {
|
|
440
|
-
nodes: ("agent" | "
|
|
450
|
+
nodes: ("agent" | "extract" | "decide" | "report")[];
|
|
441
451
|
node_tools: string[];
|
|
442
452
|
adapters: string[];
|
|
443
453
|
decisions: {
|
|
@@ -532,12 +542,13 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
532
542
|
at_rest: string;
|
|
533
543
|
};
|
|
534
544
|
/** /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.
|
|
545
|
+
* which always exists (seal-key.ts), so MCP credentials are always kept sealed. Every harness of the table runs a
|
|
546
|
+
* grant (runnable.ts takes one on any), a module's among them. */
|
|
536
547
|
mcp_client: {
|
|
537
548
|
transports: string[];
|
|
538
549
|
auth: ("headers" | "none" | "oauth" | "bearer" | "github_app" | "per_run")[];
|
|
539
550
|
at_rest: string;
|
|
540
|
-
harnesses:
|
|
551
|
+
harnesses: string[];
|
|
541
552
|
};
|
|
542
553
|
/** This server's learning switch (`--learning`): on, a run learns when its agent says `learning: true`; off, none does. */
|
|
543
554
|
learning: "off" | "on";
|
|
@@ -611,7 +622,9 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
611
622
|
/** The harnesses a revision may name (`definition.harness`), whether this server runs each, and how many at once. */
|
|
612
623
|
harnesses: {
|
|
613
624
|
max_concurrent_runs: number;
|
|
614
|
-
id:
|
|
625
|
+
id: string;
|
|
626
|
+
label: string;
|
|
627
|
+
promises: import("./harness-table.js").HarnessPromises;
|
|
615
628
|
available: boolean;
|
|
616
629
|
steer: boolean;
|
|
617
630
|
reason?: string;
|
|
@@ -660,14 +673,14 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
660
673
|
providers?: string[] | undefined;
|
|
661
674
|
provider?: string | undefined;
|
|
662
675
|
default_provider?: string | undefined;
|
|
663
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
664
|
-
why?: Record<"opencode" | "codex" | "
|
|
665
|
-
default_permission: "
|
|
666
|
-
permissions: ("
|
|
676
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
677
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
678
|
+
default_permission: "ask" | "allow" | "deny";
|
|
679
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
667
680
|
fallback_allow_reads?: true | undefined;
|
|
668
681
|
allow_reads?: true | undefined;
|
|
669
|
-
permission: "
|
|
670
|
-
harnesses:
|
|
682
|
+
permission: "ask" | "allow" | "deny";
|
|
683
|
+
harnesses: string[];
|
|
671
684
|
missing?: string[] | undefined;
|
|
672
685
|
reason?: string | undefined;
|
|
673
686
|
available: boolean;
|
|
@@ -679,11 +692,11 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
679
692
|
name: string;
|
|
680
693
|
summary: string;
|
|
681
694
|
} | {
|
|
682
|
-
default_permission: "
|
|
683
|
-
permissions: ("
|
|
695
|
+
default_permission: "ask" | "allow" | "deny";
|
|
696
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
684
697
|
fallback_allow_reads?: true | undefined;
|
|
685
698
|
allow_reads?: true | undefined;
|
|
686
|
-
permission: "
|
|
699
|
+
permission: "ask" | "allow" | "deny";
|
|
687
700
|
name: string;
|
|
688
701
|
summary: string;
|
|
689
702
|
blurb: string;
|
|
@@ -691,20 +704,20 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
691
704
|
calls: boolean;
|
|
692
705
|
meta: true;
|
|
693
706
|
available: boolean;
|
|
694
|
-
harnesses:
|
|
707
|
+
harnesses: string[];
|
|
695
708
|
} | {
|
|
696
709
|
key: string | undefined;
|
|
697
710
|
providers?: string[] | undefined;
|
|
698
711
|
provider?: string | undefined;
|
|
699
712
|
default_provider?: string | undefined;
|
|
700
|
-
resolves?: Record<"opencode" | "codex" | "
|
|
701
|
-
why?: Record<"opencode" | "codex" | "
|
|
702
|
-
default_permission: "
|
|
703
|
-
permissions: ("
|
|
713
|
+
resolves?: Record<"opencode" | "codex" | "claude-agent" | "pi", import("./tool-plane.js").Resolution> | undefined;
|
|
714
|
+
why?: Record<"opencode" | "codex" | "claude-agent" | "pi", string> | undefined;
|
|
715
|
+
default_permission: "ask" | "allow" | "deny";
|
|
716
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
704
717
|
fallback_allow_reads?: true | undefined;
|
|
705
718
|
allow_reads?: true | undefined;
|
|
706
|
-
permission: "
|
|
707
|
-
harnesses:
|
|
719
|
+
permission: "ask" | "allow" | "deny";
|
|
720
|
+
harnesses: string[];
|
|
708
721
|
missing?: string[] | undefined;
|
|
709
722
|
reason?: string | undefined;
|
|
710
723
|
available: boolean;
|
|
@@ -717,11 +730,11 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
717
730
|
summary: string;
|
|
718
731
|
} | {
|
|
719
732
|
key: string | undefined;
|
|
720
|
-
default_permission: "
|
|
721
|
-
permissions: ("
|
|
733
|
+
default_permission: "ask" | "allow" | "deny";
|
|
734
|
+
permissions: ("ask" | "allow" | "deny")[];
|
|
722
735
|
fallback_allow_reads?: true | undefined;
|
|
723
736
|
allow_reads?: true | undefined;
|
|
724
|
-
permission: "
|
|
737
|
+
permission: "ask" | "allow" | "deny";
|
|
725
738
|
name: string;
|
|
726
739
|
summary: string;
|
|
727
740
|
blurb: string;
|
|
@@ -729,7 +742,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
729
742
|
calls: boolean;
|
|
730
743
|
meta: true;
|
|
731
744
|
available: boolean;
|
|
732
|
-
harnesses:
|
|
745
|
+
harnesses: string[];
|
|
733
746
|
})[];
|
|
734
747
|
/** How this server holds its secrets (secrets.ts, the launcher), and what that does not cover. */
|
|
735
748
|
secrets: {
|
|
@@ -742,7 +755,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
742
755
|
* `models.default`, `models.strong`) with the tools it names of `node_tools`; a node that names no thinking level
|
|
743
756
|
* thinks at the run's effort, or medium. */
|
|
744
757
|
workflows: {
|
|
745
|
-
nodes: ("agent" | "
|
|
758
|
+
nodes: ("agent" | "extract" | "decide" | "report")[];
|
|
746
759
|
node_tools: string[];
|
|
747
760
|
adapters: string[];
|
|
748
761
|
decisions: {
|
|
@@ -837,12 +850,13 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
837
850
|
at_rest: string;
|
|
838
851
|
};
|
|
839
852
|
/** /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.
|
|
853
|
+
* which always exists (seal-key.ts), so MCP credentials are always kept sealed. Every harness of the table runs a
|
|
854
|
+
* grant (runnable.ts takes one on any), a module's among them. */
|
|
841
855
|
mcp_client: {
|
|
842
856
|
transports: string[];
|
|
843
857
|
auth: ("headers" | "none" | "oauth" | "bearer" | "github_app" | "per_run")[];
|
|
844
858
|
at_rest: string;
|
|
845
|
-
harnesses:
|
|
859
|
+
harnesses: string[];
|
|
846
860
|
};
|
|
847
861
|
/** This server's learning switch (`--learning`): on, a run learns when its agent says `learning: true`; off, none does. */
|
|
848
862
|
learning: "off" | "on";
|