@parcha/agentrun-serve 0.1.0-beta.45 → 0.1.0-beta.47
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 +180 -0
- package/NOTICE +4 -0
- package/README.md +283 -47
- package/dist/acp-package.d.ts +35 -6
- package/dist/acp-package.js +3 -3
- package/dist/adapter-facts.d.ts +5 -2
- package/dist/adapter-facts.js +6 -3
- package/dist/adapters.d.ts +7 -0
- package/dist/adapters.js +39 -0
- package/dist/agents-store.d.ts +5 -3
- package/dist/agents-store.js +13 -8
- package/dist/api-only.d.ts +7 -10
- package/dist/api-only.js +7 -10
- package/dist/archil-routes.js +2 -1
- package/dist/cap.js +12 -2
- package/dist/chatgpt-plan.js +2 -1
- package/dist/cli.js +119 -44
- package/dist/composio-made.d.ts +19 -2
- package/dist/composio-made.js +17 -5
- package/dist/composio-preset.d.ts +42 -7
- package/dist/composio-preset.js +106 -70
- package/dist/composio-triggers.d.ts +9 -4
- package/dist/composio-triggers.js +20 -13
- package/dist/computer-attach.d.ts +11 -10
- package/dist/computer-attach.js +13 -14
- package/dist/computer-commands.d.ts +3 -0
- package/dist/computer-commands.js +3 -2
- package/dist/computer-lost.d.ts +4 -0
- package/dist/computer-lost.js +8 -3
- package/dist/computer-setting.d.ts +2 -0
- package/dist/computer-setting.js +2 -0
- package/dist/computers.d.ts +9 -75
- package/dist/computers.js +20 -66
- package/dist/console/assets/index-BBFzAxLB.js +715 -0
- package/dist/console/assets/index-BRi-Rgq6.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/cost-heal.d.ts +13 -0
- package/dist/cost-heal.js +27 -0
- package/dist/dial-relay.d.ts +6 -2
- package/dist/dial-relay.js +9 -12
- package/dist/email/routes.js +2 -1
- package/dist/errors.d.ts +2 -0
- package/dist/errors.js +5 -0
- package/dist/exa-keyless.d.ts +1 -1
- package/dist/exa-keyless.js +1 -1
- package/dist/faux-computers.d.ts +2 -3
- package/dist/faux-computers.js +9 -31
- package/dist/github-connection.js +2 -1
- package/dist/harness-archive.d.ts +19 -2
- package/dist/harness-archive.js +49 -15
- package/dist/harness-check.d.ts +73 -0
- package/dist/harness-check.js +489 -0
- package/dist/harness-cursor.d.ts +45 -0
- package/dist/harness-cursor.js +121 -0
- package/dist/harness-recipe.d.ts +127 -0
- package/dist/harness-recipe.js +357 -0
- package/dist/harness-table.d.ts +12 -0
- package/dist/harness-table.js +62 -2
- package/dist/harness.d.ts +2 -0
- package/dist/harness.js +3 -2
- package/dist/host-check.d.ts +6 -0
- package/dist/host-check.js +14 -0
- package/dist/host.d.ts +10 -3
- package/dist/host.js +17 -3
- package/dist/import-sources.d.ts +2 -0
- package/dist/import-sources.js +2 -0
- package/dist/import-summary.d.ts +15 -5
- package/dist/import-summary.js +24 -8
- package/dist/import.d.ts +34 -4
- package/dist/import.js +134 -32
- package/dist/key-refusal.d.ts +1 -0
- package/dist/key-refusal.js +8 -3
- package/dist/key-words.d.ts +1 -1
- package/dist/key-words.js +4 -4
- package/dist/learn/check.d.ts +3 -0
- package/dist/learn/check.js +31 -20
- package/dist/learn/compile.js +11 -4
- package/dist/learn/promote.d.ts +77 -4
- package/dist/learn/promote.js +123 -2
- package/dist/learned-nodes.d.ts +4 -3
- package/dist/learned-workflow.js +4 -1
- package/dist/learning-cost.d.ts +6 -16
- package/dist/learning-cost.js +6 -12
- package/dist/learning-setting.d.ts +17 -6
- package/dist/learning-setting.js +41 -5
- package/dist/learning-words.d.ts +2 -0
- package/dist/learning-words.js +1 -1
- package/dist/listen-first.d.ts +10 -0
- package/dist/listen-first.js +25 -1
- package/dist/llms.txt +1 -1
- package/dist/mcp-gateway.d.ts +2 -1
- package/dist/mcp-gateway.js +31 -15
- package/dist/mcp-probe.d.ts +18 -6
- package/dist/mcp-probe.js +41 -8
- package/dist/mcp-secret-writes.d.ts +8 -0
- package/dist/mcp-secret-writes.js +104 -4
- package/dist/mcp-servers-store.d.ts +11 -5
- package/dist/mcp-servers-store.js +46 -20
- package/dist/model-form.d.ts +2 -1
- package/dist/model-form.js +22 -8
- package/dist/model-gateway.d.ts +113 -0
- package/dist/model-gateway.js +433 -0
- package/dist/model.d.ts +2 -1
- package/dist/model.js +9 -7
- package/dist/monid.js +1 -1
- package/dist/native/binding.d.ts +4 -0
- package/dist/native/binding.js +9 -0
- package/dist/native/cli.d.ts +3 -2
- package/dist/native/cli.js +6 -5
- package/dist/openapi.d.ts +2 -0
- package/dist/openapi.js +326 -41
- package/dist/owner.d.ts +4 -2
- package/dist/owner.js +10 -4
- package/dist/page.d.ts +8 -0
- package/dist/page.js +9 -1
- package/dist/port-models.js +17 -10
- package/dist/provider.d.ts +3 -3
- package/dist/provider.js +12 -3
- package/dist/public-address.d.ts +28 -0
- package/dist/public-address.js +62 -0
- package/dist/run-launch.d.ts +1 -1
- package/dist/run-launch.js +1 -1
- package/dist/run-secrets.d.ts +3 -2
- package/dist/run-secrets.js +6 -4
- package/dist/runner/adapter-loop.d.ts +10 -7
- package/dist/runner/adapter-loop.js +57 -22
- package/dist/runner/adapter-run-spec.d.ts +12 -0
- package/dist/runner/adapter-run-spec.js +40 -6
- package/dist/runner/adapters/index.js +16 -0
- package/dist/runner/adapters/pi.d.ts +5 -2
- package/dist/runner/adapters/pi.js +7 -4
- package/dist/runner/audit.d.ts +7 -0
- package/dist/runner/audit.js +24 -6
- package/dist/runner/claim-secrets.js +5 -1
- package/dist/runner/cli-run-spec.js +15 -7
- package/dist/runner/compare-end.d.ts +43 -0
- package/dist/runner/compare-end.js +95 -0
- package/dist/runner/computer-journal.d.ts +3 -0
- package/dist/runner/computer-journal.js +22 -2
- package/dist/runner/conformance/harness.js +19 -8
- package/dist/runner/conformance/subject.d.ts +6 -0
- package/dist/runner/harness-loops.d.ts +6 -1
- package/dist/runner/harness-loops.js +94 -54
- package/dist/runner/held.d.ts +5 -4
- package/dist/runner/journal-kinds.d.ts +4 -1
- package/dist/runner/journal-kinds.js +3 -0
- package/dist/runner/loop-contract.d.ts +10 -0
- package/dist/runner/main.d.ts +5 -5
- package/dist/runner/main.js +81 -11
- package/dist/runner/mcp-claim.js +40 -12
- package/dist/runner/metrics.d.ts +26 -0
- package/dist/runner/metrics.js +44 -1
- package/dist/runner/presence.d.ts +41 -0
- package/dist/runner/presence.js +89 -0
- package/dist/runner/promotion.d.ts +10 -3
- package/dist/runner/promotion.js +42 -21
- package/dist/runner/run-child-host.js +52 -14
- package/dist/runner/runner.d.ts +5 -0
- package/dist/runner/runner.js +8 -0
- package/dist/runner/store-port.d.ts +3 -0
- package/dist/runner/store-secrets.js +19 -7
- package/dist/runner/workflow-first.d.ts +5 -2
- package/dist/runner/workflow-first.js +6 -3
- package/dist/runs-over-store.d.ts +6 -2
- package/dist/runs-over-store.js +14 -4
- package/dist/sdk/runs.d.ts +1 -1
- package/dist/sdk/runs.js +6 -1
- package/dist/sdk/schema.js +1 -1
- package/dist/secret-writes.d.ts +16 -3
- package/dist/secret-writes.js +28 -3
- package/dist/server-secrets-store.js +5 -0
- package/dist/server.d.ts +31 -2
- package/dist/server.js +326 -53
- package/dist/sign-ins-secrets.js +4 -1
- package/dist/skills/agentrun-serve/SKILL.md +11 -0
- package/dist/slack-url.d.ts +5 -0
- package/dist/slack-url.js +11 -0
- package/dist/slack.d.ts +107 -0
- package/dist/slack.js +292 -0
- package/dist/start-switches.d.ts +28 -0
- package/dist/start-switches.js +37 -0
- package/dist/stats.d.ts +1 -1
- package/dist/stats.js +2 -1
- package/dist/stop-signals.d.ts +11 -0
- package/dist/stop-signals.js +22 -0
- package/dist/store/agent-body.d.ts +1 -1
- package/dist/store/agent-body.js +2 -2
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js +1 -1
- package/dist/store/postgres/migrations/0020_runners.sql +18 -0
- package/dist/store/postgres/store.d.ts +1 -1
- package/dist/store/postgres/store.js +4 -2
- package/dist/store/schema.d.ts +13 -5
- package/dist/store/schema.js +20 -11
- package/dist/store/seal.d.ts +16 -4
- package/dist/store/sqlite/store.d.ts +1 -1
- package/dist/store/sqlite/store.js +106 -27
- package/dist/store/store.d.ts +75 -23
- package/dist/store/store.js +11 -0
- package/dist/store-reads/analytics.js +3 -2
- package/dist/store-reads/cap.d.ts +7 -0
- package/dist/store-reads/cap.js +11 -1
- package/dist/store-reads/journal.js +27 -1
- package/dist/store-reads/learning.d.ts +23 -2
- package/dist/store-reads/learning.js +29 -8
- package/dist/store-reads/runs.d.ts +9 -0
- package/dist/store-reads/runs.js +19 -6
- package/dist/store-reads/stats.d.ts +4 -1
- package/dist/store-reads/stats.js +15 -6
- package/dist/store-view.d.ts +123 -14
- package/dist/store-view.js +154 -21
- package/dist/telemetry.d.ts +7 -7
- package/dist/telemetry.js +38 -15
- package/dist/templates.d.ts +6 -3
- package/dist/templates.js +38 -3
- package/dist/timeline/timeline.js +18 -0
- package/dist/tool-keys-store.js +2 -2
- package/dist/tool-keys.js +2 -1
- package/dist/tool-plane.js +2 -2
- package/dist/trigger-adapter.d.ts +3 -4
- package/dist/trigger-adapter.js +2 -2
- package/dist/trigger-composio.js +3 -3
- package/dist/trigger-email.js +0 -2
- package/dist/trigger-feed.js +0 -2
- package/dist/trigger-schedule.js +3 -0
- package/dist/trigger-secrets-shown.d.ts +6 -3
- package/dist/trigger-secrets-shown.js +22 -13
- package/dist/trigger-targets.d.ts +1 -1
- package/dist/trigger-targets.js +19 -8
- package/dist/triggers.d.ts +7 -3
- package/dist/triggers.js +2 -1
- package/dist/webhooks.d.ts +85 -9
- package/dist/webhooks.js +129 -46
- package/dist/wires.d.ts +6 -1
- package/dist/wires.js +5 -0
- package/dist/workspace/attach.d.ts +3 -2
- package/dist/workspace/attach.js +2 -1
- package/dist/workspace/attached-computers.d.ts +6 -8
- package/dist/workspace/attached-computers.js +27 -24
- package/dist/workspace/computer-deps.d.ts +2 -3
- package/dist/workspace/computer-deps.js +3 -6
- package/dist/workspace/computer-for-claim.js +72 -96
- package/dist/workspace/computer-kept.d.ts +0 -7
- package/dist/workspace/computer-kept.js +0 -17
- package/dist/workspace/resolve-computer.d.ts +18 -14
- package/dist/workspace/resolve-computer.js +47 -60
- package/dist/workspace/synced-folder.d.ts +20 -15
- package/dist/workspace/synced-folder.js +33 -43
- package/launcher/agentrun-serve +4 -1
- package/package.json +10 -10
- package/skills/agentrun-serve/SKILL.md +11 -0
- package/templates/README.md +1 -1
- package/templates/inbound-lead/agent.md +2 -1
- package/templates/kyb/agent.md +2 -1
- package/dist/console/assets/index-3O2Yl6hZ.js +0 -701
- package/dist/console/assets/index-DaFsZuzQ.css +0 -1
package/dist/server.d.ts
CHANGED
|
@@ -232,6 +232,9 @@ export type ServeOptions = {
|
|
|
232
232
|
* (webhooks.ts), in place of the system resolver's. A test's server answers its example hosts here, so no CI
|
|
233
233
|
* runner's resolver decides what a test sees. */
|
|
234
234
|
webhookLookup?: (host: string) => Promise<string[]>;
|
|
235
|
+
/** A test's seam: the origin Slack's messages are posted to in place of https://hooks.slack.com, each URL's path kept
|
|
236
|
+
* (slack.ts sendTo), so no test reaches Slack. */
|
|
237
|
+
slackTarget?: string;
|
|
235
238
|
};
|
|
236
239
|
/** The switches a run's process gets, each module path resolved: the owner's harness modules (harnessModules), and the test
|
|
237
240
|
* switches, which are empty outside tests. A test's in-process runner takes the same (test/support.mjs
|
|
@@ -281,6 +284,10 @@ export type Serve = {
|
|
|
281
284
|
};
|
|
282
285
|
/** Resolves once every run's listing is current (run-listing.ts Lister.settled): for tests and benchmarks. */
|
|
283
286
|
listingSettled(): Promise<void>;
|
|
287
|
+
/** Says in the store, until the stop, that the runner beside this server refused to claim any run, in `words` (its run
|
|
288
|
+
* isolation refused, cli.ts): while no runner that claims is there, a start is refused in them and the runs queued
|
|
289
|
+
* fail (runner/presence.ts). Once; a second call keeps the first. */
|
|
290
|
+
refuseRuns(words: string): void;
|
|
284
291
|
};
|
|
285
292
|
/** A route: `name` is its operationId in the OpenAPI document (openapi.ts); `capability`, when this server turns it off;
|
|
286
293
|
* `raw`, a route whose body is bytes and not JSON, which the page's session may send with any content type, still only
|
|
@@ -345,6 +352,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
345
352
|
reason?: string;
|
|
346
353
|
default_model: string | null;
|
|
347
354
|
installs?: "on_first_use";
|
|
355
|
+
card?: string;
|
|
348
356
|
models: string[];
|
|
349
357
|
free_models: {
|
|
350
358
|
id: string;
|
|
@@ -458,6 +466,9 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
458
466
|
available: boolean;
|
|
459
467
|
harnesses: string[];
|
|
460
468
|
})[];
|
|
469
|
+
/** The switches only the operator sets, in the server's environment at its start (start-switches.ts): each one's state,
|
|
470
|
+
* the value it read and what it allows. Never a secret's value. */
|
|
471
|
+
switches: Record<string, import("./start-switches.js").StartSwitch>;
|
|
461
472
|
/** How this server holds its secrets (secrets.ts, the launcher), and what that does not cover. */
|
|
462
473
|
secrets: {
|
|
463
474
|
names: string[];
|
|
@@ -469,7 +480,7 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
469
480
|
* `models.default`, `models.strong`) with the tools it names of `node_tools`; a node that names no thinking level
|
|
470
481
|
* thinks at the run's effort, or medium. */
|
|
471
482
|
workflows: {
|
|
472
|
-
nodes: ("agent" | "
|
|
483
|
+
nodes: ("agent" | "report" | "extract" | "decide")[];
|
|
473
484
|
node_tools: string[];
|
|
474
485
|
adapters: string[];
|
|
475
486
|
decisions: {
|
|
@@ -582,6 +593,13 @@ export declare function readingOf(base: NodeJS.ProcessEnv, maxRuns: number, stor
|
|
|
582
593
|
signing: string;
|
|
583
594
|
at_rest: string;
|
|
584
595
|
};
|
|
596
|
+
/** /settings/slack: one Slack incoming-webhook URL each of `events` is posted to as a readable message (slack.ts); the
|
|
597
|
+
* URL kept sealed, never shown. */
|
|
598
|
+
slack: {
|
|
599
|
+
routes: boolean;
|
|
600
|
+
events: ("run.needs_input" | "run.ended" | "trigger.failed")[];
|
|
601
|
+
at_rest: string;
|
|
602
|
+
};
|
|
585
603
|
/** /triggers: what starts an agent's capped runs with no caller (triggers.ts). */
|
|
586
604
|
triggers: {
|
|
587
605
|
routes: boolean;
|
|
@@ -654,6 +672,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
654
672
|
reason?: string;
|
|
655
673
|
default_model: string | null;
|
|
656
674
|
installs?: "on_first_use";
|
|
675
|
+
card?: string;
|
|
657
676
|
models: string[];
|
|
658
677
|
free_models: {
|
|
659
678
|
id: string;
|
|
@@ -767,6 +786,9 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
767
786
|
available: boolean;
|
|
768
787
|
harnesses: string[];
|
|
769
788
|
})[];
|
|
789
|
+
/** The switches only the operator sets, in the server's environment at its start (start-switches.ts): each one's state,
|
|
790
|
+
* the value it read and what it allows. Never a secret's value. */
|
|
791
|
+
switches: Record<string, import("./start-switches.js").StartSwitch>;
|
|
770
792
|
/** How this server holds its secrets (secrets.ts, the launcher), and what that does not cover. */
|
|
771
793
|
secrets: {
|
|
772
794
|
names: string[];
|
|
@@ -778,7 +800,7 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
778
800
|
* `models.default`, `models.strong`) with the tools it names of `node_tools`; a node that names no thinking level
|
|
779
801
|
* thinks at the run's effort, or medium. */
|
|
780
802
|
workflows: {
|
|
781
|
-
nodes: ("agent" | "
|
|
803
|
+
nodes: ("agent" | "report" | "extract" | "decide")[];
|
|
782
804
|
node_tools: string[];
|
|
783
805
|
adapters: string[];
|
|
784
806
|
decisions: {
|
|
@@ -891,6 +913,13 @@ export declare function capabilities(env?: NodeJS.ProcessEnv, maxRuns?: number,
|
|
|
891
913
|
signing: string;
|
|
892
914
|
at_rest: string;
|
|
893
915
|
};
|
|
916
|
+
/** /settings/slack: one Slack incoming-webhook URL each of `events` is posted to as a readable message (slack.ts); the
|
|
917
|
+
* URL kept sealed, never shown. */
|
|
918
|
+
slack: {
|
|
919
|
+
routes: boolean;
|
|
920
|
+
events: ("run.needs_input" | "run.ended" | "trigger.failed")[];
|
|
921
|
+
at_rest: string;
|
|
922
|
+
};
|
|
894
923
|
/** /triggers: what starts an agent's capped runs with no caller (triggers.ts). */
|
|
895
924
|
triggers: {
|
|
896
925
|
routes: boolean;
|