@intentic/sandbox-contract 1.240.0 → 1.242.0
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/README.md +52 -16
- package/dist/agent-catalog.d.ts +5 -28
- package/dist/agent-catalog.d.ts.map +1 -1
- package/dist/agent-catalog.js +21 -157
- package/dist/agent-catalog.js.map +1 -1
- package/dist/agent-run-model.d.ts +3 -2
- package/dist/agent-run-model.d.ts.map +1 -1
- package/dist/agent-run-model.js +9 -6
- package/dist/agent-run-model.js.map +1 -1
- package/dist/agent-runtimes.d.ts +27 -0
- package/dist/agent-runtimes.d.ts.map +1 -0
- package/dist/agent-runtimes.js +113 -0
- package/dist/agent-runtimes.js.map +1 -0
- package/dist/approvals-execution.d.ts +11 -0
- package/dist/approvals-execution.d.ts.map +1 -0
- package/dist/approvals-execution.js +44 -0
- package/dist/approvals-execution.js.map +1 -0
- package/dist/arrival.d.ts +151 -0
- package/dist/arrival.d.ts.map +1 -0
- package/dist/arrival.js +56 -0
- package/dist/arrival.js.map +1 -0
- package/dist/card-status.d.ts +5 -0
- package/dist/card-status.d.ts.map +1 -0
- package/dist/card-status.js +74 -0
- package/dist/card-status.js.map +1 -0
- package/dist/chores/chores.d.ts.map +1 -1
- package/dist/chores/chores.js +1 -1
- package/dist/chores/chores.js.map +1 -1
- package/dist/command-classes.d.ts +0 -1
- package/dist/command-classes.d.ts.map +1 -1
- package/dist/command-classes.js +9 -2
- package/dist/command-classes.js.map +1 -1
- package/dist/command-run.d.ts +10 -0
- package/dist/command-run.d.ts.map +1 -0
- package/dist/command-run.js +46 -0
- package/dist/command-run.js.map +1 -0
- package/dist/contracts/agent.contract.d.ts +991 -771
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +345 -337
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +20 -2
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/approvals.contract.d.ts +99 -0
- package/dist/contracts/approvals.contract.d.ts.map +1 -0
- package/dist/contracts/approvals.contract.js +32 -0
- package/dist/contracts/approvals.contract.js.map +1 -0
- package/dist/contracts/ci.contract.d.ts +1 -4
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/ci.contract.js +1 -9
- package/dist/contracts/ci.contract.js.map +1 -1
- package/dist/contracts/claude.contract.d.ts +9 -0
- package/dist/contracts/claude.contract.d.ts.map +1 -1
- package/dist/contracts/cursor.contract.d.ts +6 -0
- package/dist/contracts/cursor.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.d.ts +63 -1
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.js +22 -4
- package/dist/contracts/git.contract.js.map +1 -1
- package/dist/contracts/grok.contract.d.ts +3 -0
- package/dist/contracts/grok.contract.d.ts.map +1 -1
- package/dist/contracts/keys.contract.d.ts +81 -0
- package/dist/contracts/keys.contract.d.ts.map +1 -0
- package/dist/contracts/keys.contract.js +51 -0
- package/dist/contracts/keys.contract.js.map +1 -0
- package/dist/contracts/panels.contract.d.ts +7 -0
- package/dist/contracts/panels.contract.d.ts.map +1 -1
- package/dist/contracts/prepush.contract.js +2 -2
- package/dist/contracts/providers.contract.d.ts +2 -0
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +84 -86
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/safety.contract.d.ts +35 -0
- package/dist/contracts/safety.contract.d.ts.map +1 -0
- package/dist/contracts/safety.contract.js +32 -0
- package/dist/contracts/safety.contract.js.map +1 -0
- package/dist/contracts/sessions.contract.d.ts +73 -337
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +30 -32
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +139 -337
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/translator.contract.d.ts +31 -3
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.d.ts +29 -20
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.js +13 -0
- package/dist/contracts/usage.contract.js.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +8 -0
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/conversation-ids.d.ts +2 -0
- package/dist/conversation-ids.d.ts.map +1 -1
- package/dist/conversation-ids.js +8 -0
- package/dist/conversation-ids.js.map +1 -1
- package/dist/credential-material.d.ts +1 -0
- package/dist/credential-material.d.ts.map +1 -1
- package/dist/credential-material.js +24 -2
- package/dist/credential-material.js.map +1 -1
- package/dist/definition.d.ts +51 -93
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +6 -28
- package/dist/definition.js.map +1 -1
- package/dist/events.d.ts +1831 -2285
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +155 -55
- package/dist/events.js.map +1 -1
- package/dist/history-state.d.ts.map +1 -1
- package/dist/history-state.js +1 -0
- package/dist/history-state.js.map +1 -1
- package/dist/index.d.ts +1959 -1903
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/ingress-protocol.d.ts +13 -1
- package/dist/ingress-protocol.d.ts.map +1 -1
- package/dist/ingress-protocol.js +19 -0
- package/dist/ingress-protocol.js.map +1 -1
- package/dist/mentions.d.ts +3 -0
- package/dist/mentions.d.ts.map +1 -0
- package/dist/mentions.js +13 -0
- package/dist/mentions.js.map +1 -0
- package/dist/needs-action.d.ts +7 -0
- package/dist/needs-action.d.ts.map +1 -0
- package/dist/needs-action.js +3 -0
- package/dist/needs-action.js.map +1 -0
- package/dist/overlay-lint.d.ts +7 -0
- package/dist/overlay-lint.d.ts.map +1 -0
- package/dist/overlay-lint.js +68 -0
- package/dist/overlay-lint.js.map +1 -0
- package/dist/owner-ticket.d.ts +18 -0
- package/dist/owner-ticket.d.ts.map +1 -0
- package/dist/owner-ticket.js +51 -0
- package/dist/owner-ticket.js.map +1 -0
- package/dist/plan-pools.d.ts +12 -0
- package/dist/plan-pools.d.ts.map +1 -0
- package/dist/plan-pools.js +30 -0
- package/dist/plan-pools.js.map +1 -0
- package/dist/provider-specs.d.ts +228 -0
- package/dist/provider-specs.d.ts.map +1 -0
- package/dist/provider-specs.js +124 -0
- package/dist/provider-specs.js.map +1 -0
- package/dist/quick-model.d.ts.map +1 -1
- package/dist/quick-model.js +2 -1
- package/dist/quick-model.js.map +1 -1
- package/dist/runner-protocol.js +2 -2
- package/dist/runner-protocol.js.map +1 -1
- package/dist/runtime-state.d.ts +2 -2
- package/dist/runtime-state.d.ts.map +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/runtime-state.js.map +1 -1
- package/dist/safety-policy.d.ts +49 -0
- package/dist/safety-policy.d.ts.map +1 -0
- package/dist/safety-policy.js +52 -0
- package/dist/safety-policy.js.map +1 -0
- package/dist/schemas/agent.d.ts +21 -3
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +18 -8
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents.d.ts +19 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +15 -0
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/approvals.d.ts +241 -0
- package/dist/schemas/approvals.d.ts.map +1 -0
- package/dist/schemas/approvals.js +63 -0
- package/dist/schemas/approvals.js.map +1 -0
- package/dist/schemas/automations.d.ts +5 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/ci.d.ts +5 -9
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +3 -10
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/computers.d.ts +31 -5
- package/dist/schemas/computers.d.ts.map +1 -1
- package/dist/schemas/computers.js +7 -5
- package/dist/schemas/computers.js.map +1 -1
- package/dist/schemas/environment.d.ts +11 -131
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +5 -42
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/git-history.d.ts +4 -0
- package/dist/schemas/git-history.d.ts.map +1 -1
- package/dist/schemas/git.d.ts +179 -0
- package/dist/schemas/git.d.ts.map +1 -1
- package/dist/schemas/git.js +39 -1
- package/dist/schemas/git.js.map +1 -1
- package/dist/schemas/panels.d.ts +21 -0
- package/dist/schemas/panels.d.ts.map +1 -1
- package/dist/schemas/panels.js +5 -0
- package/dist/schemas/panels.js.map +1 -1
- package/dist/schemas/plan-limits.d.ts +50 -3
- package/dist/schemas/plan-limits.d.ts.map +1 -1
- package/dist/schemas/plan-limits.js +11 -6
- package/dist/schemas/plan-limits.js.map +1 -1
- package/dist/schemas/provider-oauth.d.ts +6 -0
- package/dist/schemas/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/provider-subscriptions.d.ts +2 -1
- package/dist/schemas/provider-subscriptions.d.ts.map +1 -1
- package/dist/schemas/provider-subscriptions.js +2 -1
- package/dist/schemas/provider-subscriptions.js.map +1 -1
- package/dist/schemas/settings.d.ts +29 -16
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +13 -20
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +3 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +5 -1
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/workspace-repos.d.ts +14 -0
- package/dist/schemas/workspace-repos.d.ts.map +1 -1
- package/dist/schemas/workspace-repos.js +5 -0
- package/dist/schemas/workspace-repos.js.map +1 -1
- package/dist/schemas/workspace-tree.d.ts +1 -0
- package/dist/schemas/workspace-tree.d.ts.map +1 -1
- package/dist/schemas/workspace-tree.js +3 -0
- package/dist/schemas/workspace-tree.js.map +1 -1
- package/dist/transcript-fold.d.ts +31 -0
- package/dist/transcript-fold.d.ts.map +1 -0
- package/dist/transcript-fold.js +457 -0
- package/dist/transcript-fold.js.map +1 -0
- package/dist/workspace-state.d.ts +20 -3
- package/dist/workspace-state.d.ts.map +1 -1
- package/dist/workspace-state.js +22 -2
- package/dist/workspace-state.js.map +1 -1
- package/package.json +27 -5
- package/src/agent-catalog.test.ts +1 -1
- package/src/agent-catalog.ts +76 -555
- package/src/agent-run-model.test.ts +31 -15
- package/src/agent-run-model.ts +26 -12
- package/src/agent-runtimes.ts +419 -0
- package/src/approvals-execution.ts +96 -0
- package/src/arrival.ts +160 -0
- package/src/capability-ledger.test.ts +6 -4
- package/src/card-status.ts +93 -0
- package/src/chores/chores.ts +6 -3
- package/src/command-classes.test.ts +25 -0
- package/src/command-classes.ts +47 -5
- package/src/command-run.ts +78 -0
- package/src/contract-lock.test.ts +1 -1
- package/src/contract-lock.ts +2 -2
- package/src/contracts/agents.contract.ts +35 -2
- package/src/contracts/approvals.contract.ts +37 -0
- package/src/contracts/ci.contract.ts +0 -13
- package/src/contracts/git.contract.ts +28 -3
- package/src/contracts/keys.contract.ts +79 -0
- package/src/contracts/prepush.contract.ts +3 -3
- package/src/contracts/safety.contract.ts +48 -0
- package/src/contracts/usage.contract.ts +22 -0
- package/src/conversation-ids.test.ts +31 -1
- package/src/conversation-ids.ts +37 -3
- package/src/credential-material.test.ts +69 -1
- package/src/credential-material.ts +86 -5
- package/src/definition.ts +25 -53
- package/src/events.ts +374 -173
- package/src/history-state.ts +6 -0
- package/src/index.ts +24 -5
- package/src/ingress-protocol.ts +52 -1
- package/src/mentions.test.ts +22 -0
- package/src/mentions.ts +25 -0
- package/src/needs-action.ts +14 -0
- package/src/overlay-lint.test.ts +89 -0
- package/src/overlay-lint.ts +116 -0
- package/src/owner-ticket.test.ts +54 -0
- package/src/owner-ticket.ts +102 -0
- package/src/plan-pools.test.ts +71 -0
- package/src/plan-pools.ts +82 -0
- package/src/provider-specs.test.ts +130 -0
- package/src/provider-specs.ts +352 -0
- package/src/quick-model.ts +9 -5
- package/src/runner-protocol.ts +2 -2
- package/src/runtime-state.ts +6 -6
- package/src/safety-policy.ts +165 -0
- package/src/schemas/agent.ts +62 -17
- package/src/schemas/agents.ts +71 -0
- package/src/schemas/approvals.ts +174 -0
- package/src/schemas/ci.ts +19 -26
- package/src/schemas/computers.ts +52 -11
- package/src/schemas/environment.ts +21 -100
- package/src/schemas/git.ts +121 -6
- package/src/schemas/issues.ts +1 -1
- package/src/schemas/panels.ts +20 -0
- package/src/schemas/plan-limits.ts +58 -11
- package/src/schemas/provider-subscriptions.ts +7 -2
- package/src/schemas/settings.ts +67 -93
- package/src/schemas/system.ts +12 -1
- package/src/schemas/workspace-repos.ts +9 -0
- package/src/schemas/workspace-tree.ts +11 -0
- package/src/transcript-fold.test.ts +493 -0
- package/src/transcript-fold.ts +655 -0
- package/src/workspace-state.test.ts +77 -29
- package/src/workspace-state.ts +99 -31
- package/dist/contracts/drafts.contract.d.ts +0 -57
- package/dist/contracts/drafts.contract.d.ts.map +0 -1
- package/dist/contracts/drafts.contract.js +0 -32
- package/dist/contracts/drafts.contract.js.map +0 -1
- package/dist/definition-action.d.ts +0 -7
- package/dist/definition-action.d.ts.map +0 -1
- package/dist/definition-action.js +0 -3
- package/dist/definition-action.js.map +0 -1
- package/dist/publish-drafts.d.ts +0 -7
- package/dist/publish-drafts.d.ts.map +0 -1
- package/dist/publish-drafts.js +0 -20
- package/dist/publish-drafts.js.map +0 -1
- package/dist/schemas/drafts.d.ts +0 -84
- package/dist/schemas/drafts.d.ts.map +0 -1
- package/dist/schemas/drafts.js +0 -44
- package/dist/schemas/drafts.js.map +0 -1
- package/src/contracts/drafts.contract.ts +0 -35
- package/src/definition-action.ts +0 -8
- package/src/publish-drafts.ts +0 -59
- package/src/schemas/drafts.ts +0 -108
package/README.md
CHANGED
|
@@ -10,9 +10,13 @@ mismatch is a type error rather than a runtime surprise.
|
|
|
10
10
|
|
|
11
11
|
- Declare the contracts, one file per subject area (`src/contracts/`).
|
|
12
12
|
- Declare the wire shapes those contracts are built from, one module per subject area (`src/schemas/`).
|
|
13
|
-
- Declare the event union the daemon pushes over SSE (`src/events.ts`)
|
|
13
|
+
- Declare the event union the daemon pushes over SSE (`src/events.ts`), and the transcript a turn becomes: the
|
|
14
|
+
rows, the patches that change them and the facts about a turn that `/agent/attach` carries.
|
|
14
15
|
- Hold the small pieces of logic that BOTH sides must agree on rather than each deciding: the chore book,
|
|
15
|
-
hostname and tunnel-id rules, session naming, terminal protocol, workspace state, runtime state
|
|
16
|
+
hostname and tunnel-id rules, session naming, terminal protocol, workspace state, runtime state, and the two
|
|
17
|
+
things every surface that waits on a daemon-run command needs (`src/command-run.ts`): the loop that follows a
|
|
18
|
+
`CommandRun` to its verdict, and the words over a settled one, so the card in the app and the notification on
|
|
19
|
+
a phone say the same thing about the same push.
|
|
16
20
|
- Define workflow designs and immutable run snapshots, including full model/account/harness pins, per-step spend
|
|
17
21
|
ceilings, pinned repository bases, bounded report previews, and complete-report artifact paths.
|
|
18
22
|
|
|
@@ -25,14 +29,26 @@ mismatch is a type error rather than a runtime surprise.
|
|
|
25
29
|
proximity in a shared file. `schemas/internal.ts` is the exception and is not re-exported from the index: it
|
|
26
30
|
holds the id and ref primitives several modules are written in, which are vocabulary rather than shapes either
|
|
27
31
|
side of the wire sends.
|
|
28
|
-
- [src/events.ts](src/events.ts): what the daemon pushes, and when.
|
|
32
|
+
- [src/events.ts](src/events.ts): what the daemon pushes, and when. It also holds the transcript wire: a
|
|
33
|
+
`TranscriptRow` (a speaker's bubble, a notice, a card), a `TranscriptPatch` (append, replace, drop, more text or
|
|
34
|
+
thinking, a tool's progress), a `TurnFact` (the event kinds that are about the turn rather than its words:
|
|
35
|
+
session, worktree, usage, error...) and the `AttachFrame` union a window follows a run through.
|
|
36
|
+
- [src/transcript-fold.ts](src/transcript-fold.ts), its own entry point (`@intentic/sandbox-contract/transcript-fold`):
|
|
37
|
+
THE fold from a turn's frames to its rows, and the patches each frame is worth. The daemon runs it inside every
|
|
38
|
+
run, the demo runs it over its recording, and the browser only applies the patches it emits, so there is one
|
|
39
|
+
opinion about what a turn looks like. Its notices (a stop, a refusal, a landing, a routed tier) are written
|
|
40
|
+
here too. [src/card-status.ts](src/card-status.ts) is how a card settles: raised `pending`, and given its
|
|
41
|
+
status by the reply that released it or by the stop that cancelled it.
|
|
29
42
|
- [src/workspace-state.ts](src/workspace-state.ts) and [src/runtime-state.ts](src/runtime-state.ts): which
|
|
30
43
|
changed file, and which moved runtime thing, makes which browser view stale. The workspace table also assigns
|
|
31
44
|
each daemon-owned path its export lifecycle (`carry`, `secret`, `identity`, or `derived`), including the
|
|
32
45
|
auth/session/cache/artifact roots, and marks the configuration slice the root repo TRACKS (`versioned`: the
|
|
33
46
|
allowlist the git exclude rules are derived from, so a store added later is untracked until someone says
|
|
34
47
|
otherwise) and the authored-content slice a workspace SEARCH may surface (`versioned` + `authored` →
|
|
35
|
-
`SEARCHABLE_STATE_PATHS`, which iq's floor denies the rest of `.intentic` against by default).
|
|
48
|
+
`SEARCHABLE_STATE_PATHS`, which iq's floor denies the rest of `.intentic` against by default). The same flag
|
|
49
|
+
decides what an isolated turn shares LIVE with the main tree (`SHARED_STATE_PATHS`: every untracked group, bound
|
|
50
|
+
in over the worktree) and what is the worktree's own checkout that reaches the main tree by landing (the
|
|
51
|
+
tracked `config/` slice). Extensions name
|
|
36
52
|
their scratch home through `extensionRuntimeDir` rather than spelling the layout themselves. The daemon
|
|
37
53
|
publishes the cause and the browser derives the consequence, so neither side keeps its own copy of the
|
|
38
54
|
other's list.
|
|
@@ -41,29 +57,49 @@ mismatch is a type error rather than a runtime surprise.
|
|
|
41
57
|
that document to the question or plan card the turn parks on (so a choice can be read beside the write-up it
|
|
42
58
|
is about), and the browser draws the write's own card as prose rather than as a diff stat. Two copies of the
|
|
43
59
|
rule would let a card carry a document the transcript never drew.
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
60
|
+
- The provider vocabulary, three modules, bottom-up, and the arrow between them only points one way:
|
|
61
|
+
- [src/agent-runtimes.ts](src/agent-runtimes.ts): what each agentic LOOP can do, one record per runtime: its
|
|
62
|
+
permission axis, its MCP reach, whether it steers, and how much of the owner's system prompt it will take
|
|
63
|
+
(`instructions`: replace, add, or nothing at all), plus whether it discovers loaded skills natively or
|
|
64
|
+
needs their catalogue in its opening prompt. It names no providers at all.
|
|
65
|
+
- [src/provider-specs.ts](src/provider-specs.ts): **one row per provider**, and the source every other list
|
|
66
|
+
of providers in this repo derives from — the wire vocabulary (`NATIVE_PROVIDERS`), the picker's labels, the
|
|
67
|
+
access and vendor tables, the plan-limit list, the routed-provider enum and its accounts schema, the
|
|
68
|
+
daemon's CLIProxyAPI id map, and the web's account tabs and readiness rules. A row carries the two axes it
|
|
69
|
+
deliberately keeps apart: what a turn COSTS (`access`) and what the user CONNECTS (`auth`: an OAuth account
|
|
70
|
+
this daemon stores, a subscription the bundled translator holds, or an API key pasted into a field).
|
|
71
|
+
`brand` is typed against the marks in `@intentic/constants`, so a provider added without a logo does not
|
|
72
|
+
compile. **Adding a provider is a row here**, its brand path, and (daemon-side) one line in the provider
|
|
73
|
+
registry; `provider-specs.test.ts` walks the table rather than a list, so the guard covers a provider the
|
|
74
|
+
day it is added.
|
|
75
|
+
- [src/agent-catalog.ts](src/agent-catalog.ts): the shapes each surface reads that table in, plus the rules
|
|
76
|
+
that are about something other than a provider (the trial, the endpoint namespace, the effort and fast-mode
|
|
77
|
+
gates). Shared because both sides act on it: the daemon composes a turn's instructions and skill discovery
|
|
78
|
+
against it and the browser both discloses what a pair cannot do (`limitationsOf`) and names which models
|
|
79
|
+
the system-prompt setting reaches.
|
|
50
80
|
- [src/chores](src/chores), the chore book: definitions, applicability gates and verdicts, shared because the
|
|
51
81
|
daemon computes the signals and the browser renders the judgement.
|
|
52
|
-
- [src/
|
|
53
|
-
|
|
82
|
+
- [src/approvals-execution.ts](src/approvals-execution.ts): how an approved item gets done, the hold every
|
|
83
|
+
approval starts with, which platforms the daemon posts to by code, and the prompts the executing turns are
|
|
84
|
+
handed, shared because the daemon acts on them and the Approvals page counts the same seconds down.
|
|
54
85
|
- [src/workflow-faults.ts](src/workflow-faults.ts) and [src/output-fields.ts](src/output-fields.ts): graph and
|
|
55
86
|
structured-output invariants shared by the designer and daemon, including duplicate field-name rejection.
|
|
56
87
|
- [src/definition.ts](src/definition.ts): the SANDBOX DEFINITION, the declarable shape of a sandbox
|
|
57
88
|
(`sandbox.toml`): repositories by remote, connections by shape, secret names, the overlay as source, the
|
|
58
89
|
non-default agent settings — plus the bundle manifest that embeds it, since a bundle is definition + state.
|
|
59
|
-
Shared because the daemon derives
|
|
60
|
-
|
|
61
|
-
|
|
90
|
+
Shared because the daemon derives definitions and the browser renders them and their diffs; the definition
|
|
91
|
+
never carries a credential value or an approval hash, so it is the export that is safe to publish. Only the
|
|
92
|
+
OUTBOUND half lives here; applying one is an arrival.
|
|
93
|
+
- [src/arrival.ts](src/arrival.ts): the ARRIVAL PIPELINE, one plan → apply → report for every artifact that can
|
|
94
|
+
come into a sandbox — a definition, an environment bundle, a Hermes or OpenClaw home directory. There were
|
|
95
|
+
three of these once, one per artifact, and the differences between them were drift rather than design (only
|
|
96
|
+
two of the three previewed; the credential consent was asked on opposite sides). The artifact is a parser
|
|
97
|
+
now and everything after it is shared, which is what lets one card render all four.
|
|
62
98
|
- [src/index.ts](src/index.ts): the public surface.
|
|
63
99
|
- [src/contract-lock.ts](src/contract-lock.ts) and [contract.lock.json](contract.lock.json): every exported
|
|
64
100
|
schema serialized to one committed, comparable document. Regenerate with `pnpm --filter
|
|
65
101
|
@intentic/sandbox-contract lock` whenever a schema changes; the test beside it fails until you do, and the
|
|
66
|
-
repo-level
|
|
102
|
+
repo-level `contract-shrink` check refuses a push whose lock *lost or changed* an existing surface without a declared
|
|
67
103
|
breaking change (COMPATIBILITY.md at the repo root has the whole story).
|
|
68
104
|
|
|
69
105
|
## How it fits
|
package/dist/agent-catalog.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type AgentCapabilities } from "./agent-runtimes.js";
|
|
2
|
+
import { type NativeProvider, type ProviderAccess } from "./provider-specs.js";
|
|
3
|
+
import type { AgentHarness, AgentProvider, PermissionMode } from "./schemas/agent.js";
|
|
2
4
|
import type { Model, ModelBadge } from "./schemas/provider-oauth.js";
|
|
3
5
|
export interface CatalogOption {
|
|
4
6
|
readonly label: string;
|
|
@@ -8,17 +10,10 @@ export declare const PROVIDERS: readonly {
|
|
|
8
10
|
label: string;
|
|
9
11
|
value: NativeProvider;
|
|
10
12
|
}[];
|
|
11
|
-
export type AccessKind = "free" | "subscription" | "key";
|
|
12
|
-
export interface ProviderAccess {
|
|
13
|
-
readonly kind: AccessKind;
|
|
14
|
-
readonly requirement: string;
|
|
15
|
-
readonly runs: string;
|
|
16
|
-
}
|
|
17
13
|
export declare const PROVIDER_ACCESS: Record<NativeProvider, ProviderAccess>;
|
|
18
14
|
export declare const FREE_PROVIDERS: readonly NativeProvider[];
|
|
19
15
|
export declare const isFreeProvider: (provider: AgentProvider) => boolean;
|
|
20
16
|
export declare const PROVIDER_VENDOR: Record<NativeProvider, string>;
|
|
21
|
-
export declare const ACCESS_COST: Record<AccessKind, number>;
|
|
22
17
|
export declare const TRIAL_ENDPOINT_ID = "free-trial";
|
|
23
18
|
export declare const TRIAL_PROVIDER = "endpoint/free-trial";
|
|
24
19
|
export declare const isTrialProvider: (provider: AgentProvider) => boolean;
|
|
@@ -37,27 +32,9 @@ export declare const HARNESSES: readonly {
|
|
|
37
32
|
label: string;
|
|
38
33
|
value: AgentHarness;
|
|
39
34
|
}[];
|
|
40
|
-
export
|
|
41
|
-
export interface AgentCapabilities {
|
|
42
|
-
readonly runtime: "claude-code" | "codex" | "opencode" | "opencode-gemini" | "acp" | "pi" | "cursor";
|
|
43
|
-
readonly steering: boolean;
|
|
44
|
-
readonly permissions: "modes" | "plan";
|
|
45
|
-
readonly questions: boolean;
|
|
46
|
-
readonly mcp: "full" | "tools" | "browser" | "http" | "none";
|
|
47
|
-
readonly execution: readonly ExecutionBackend[];
|
|
48
|
-
readonly effort: boolean;
|
|
49
|
-
readonly fastMode: boolean;
|
|
50
|
-
readonly isolation: "namespace" | "cwd";
|
|
51
|
-
readonly commands: boolean;
|
|
52
|
-
readonly terminals: boolean;
|
|
53
|
-
readonly recovery: boolean;
|
|
54
|
-
readonly instructions: "replace" | "append" | "none";
|
|
55
|
-
readonly skillDiscovery: "native" | "prompt";
|
|
56
|
-
readonly rulebook: "hooks" | "approval" | "refuse-only" | "none";
|
|
57
|
-
readonly secrets: "masked" | "none";
|
|
58
|
-
}
|
|
59
|
-
export declare const PI_PROVIDER = "pi";
|
|
35
|
+
export declare const harnessChoosable: (provider: AgentProvider) => boolean;
|
|
60
36
|
export declare const capabilitiesOf: (provider: AgentProvider, harness: AgentHarness) => AgentCapabilities;
|
|
37
|
+
export declare const PI_PROVIDER = "pi";
|
|
61
38
|
export declare const modesFor: (capabilities: AgentCapabilities) => readonly PermissionMode[];
|
|
62
39
|
export declare const clampMode: (mode: PermissionMode, capabilities: AgentCapabilities) => PermissionMode;
|
|
63
40
|
export declare const limitationsOf: (capabilities: AgentCapabilities) => string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-catalog.d.ts","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"agent-catalog.d.ts","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,iBAAiB,EAAmB,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,KAAK,cAAc,EAAkB,KAAK,cAAc,EAAgB,MAAM,qBAAqB,CAAC;AAC7G,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,C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AAM,SAAS,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,EAGtE,CAAC;AAKF,eAAO,MAAM,gBAAgB,aAAc,aAAa,KAAG,OAG1D,CAAC;AAaF,eAAO,MAAM,cAAc,aAAc,aAAa,WAAW,YAAY,KAAG,iBAY/E,CAAC;AAOF,eAAO,MAAM,WAAW,OAAO,CAAC;AAIhC,eAAO,MAAM,QAAQ,iBAAkB,iBAAiB,KAAG,SAAS,cAAc,EACgD,CAAC;AAInI,eAAO,MAAM,SAAS,SAAU,cAAc,gBAAgB,iBAAiB,KAAG,cACZ,CAAC;AAUvE,eAAO,MAAM,aAAa,iBAAkB,iBAAiB,KAAG,MAAM,EAyBrE,CAAC;AASF,eAAO,MAAM,kBAAkB,EAAE,SAAS,KAAK,EAI9C,CAAC;AAOF,eAAO,MAAM,SAAS,aAAc,aAAa,KAAG,aAAa,EAQhE,CAAC;AASF,eAAO,MAAM,aAAa,WAAY,MAAM,YAAY,aAAa,YAAY,OAAO,KAAG,OAChC,CAAC;AAc5D,eAAO,MAAM,cAAc,WAAY,MAAM,GAAG,SAAS,YAAY,OAAO,GAAG,SAAS,KAAG,MAAM,GAAG,SACzC,CAAC;AAkB5D,eAAO,MAAM,WAAW,iBAAkB,iBAAiB,YAAY,aAAa,UAAU,SAAS,UAAU,EAAE,GAAG,SAAS,KAAG,OAC7C,CAAC"}
|
package/dist/agent-catalog.js
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
];
|
|
10
|
-
export const PROVIDER_ACCESS = {
|
|
11
|
-
claude: { kind: "subscription", requirement: "Claude subscription", runs: "Claude Code" },
|
|
12
|
-
codex: { kind: "subscription", requirement: "ChatGPT subscription", runs: "Codex" },
|
|
13
|
-
grok: { kind: "subscription", requirement: "SuperGrok subscription", runs: "Grok" },
|
|
14
|
-
kimi: { kind: "subscription", requirement: "Kimi Code subscription", runs: "Kimi Code" },
|
|
15
|
-
gemini: { kind: "free", requirement: "Google sign-in", runs: "Gemini, Claude and GPT-OSS under Claude Code" },
|
|
16
|
-
cursor: { kind: "subscription", requirement: "Cursor Pro subscription", runs: "Cursor Agent" },
|
|
17
|
-
};
|
|
18
|
-
export const FREE_PROVIDERS = NATIVE_PROVIDERS.filter((provider) => PROVIDER_ACCESS[provider].kind === "free");
|
|
1
|
+
import { ACP, CLAUDE_CODE, PI } from "./agent-runtimes.js";
|
|
2
|
+
import { PROVIDER_SPECS, providerSpec } from "./provider-specs.js";
|
|
3
|
+
export const PROVIDERS = PROVIDER_SPECS.map((spec) => ({
|
|
4
|
+
label: spec.label,
|
|
5
|
+
value: spec.id,
|
|
6
|
+
}));
|
|
7
|
+
export const PROVIDER_ACCESS = Object.fromEntries(PROVIDER_SPECS.map((spec) => [spec.id, spec.access]));
|
|
8
|
+
export const FREE_PROVIDERS = PROVIDER_SPECS.filter((spec) => spec.access.kind === "free").map((spec) => spec.id);
|
|
19
9
|
export const isFreeProvider = (provider) => FREE_PROVIDERS.includes(provider);
|
|
20
|
-
export const PROVIDER_VENDOR =
|
|
21
|
-
claude: "Claude",
|
|
22
|
-
codex: "ChatGPT",
|
|
23
|
-
grok: "xAI",
|
|
24
|
-
kimi: "Kimi Code",
|
|
25
|
-
gemini: "Google",
|
|
26
|
-
cursor: "Cursor",
|
|
27
|
-
};
|
|
28
|
-
export const ACCESS_COST = { free: 0, subscription: 1, key: 2 };
|
|
10
|
+
export const PROVIDER_VENDOR = Object.fromEntries(PROVIDER_SPECS.map((spec) => [spec.id, spec.vendor]));
|
|
29
11
|
export const TRIAL_ENDPOINT_ID = "free-trial";
|
|
30
12
|
export const TRIAL_PROVIDER = "endpoint/free-trial";
|
|
31
13
|
export const isTrialProvider = (provider) => provider === TRIAL_PROVIDER;
|
|
@@ -36,139 +18,22 @@ export const ENDPOINT_PROVIDER_PREFIX = "endpoint/";
|
|
|
36
18
|
export const endpointProvider = (id) => `${ENDPOINT_PROVIDER_PREFIX}${id}`;
|
|
37
19
|
export const isEndpointProvider = (provider) => provider.startsWith(ENDPOINT_PROVIDER_PREFIX);
|
|
38
20
|
export const endpointIdOf = (provider) => isEndpointProvider(provider) ? provider.slice(ENDPOINT_PROVIDER_PREFIX.length) : undefined;
|
|
39
|
-
export const accessFor = (provider) =>
|
|
40
|
-
export const providerLabel = (provider) =>
|
|
41
|
-
export const PLAN_LIMIT_PROVIDERS =
|
|
21
|
+
export const accessFor = (provider) => providerSpec(provider)?.access;
|
|
22
|
+
export const providerLabel = (provider) => providerSpec(provider)?.label ?? provider;
|
|
23
|
+
export const PLAN_LIMIT_PROVIDERS = PROVIDER_SPECS.filter((spec) => spec.planLimits).map((spec) => spec.id);
|
|
42
24
|
export const reportsPlanLimits = (provider) => PLAN_LIMIT_PROVIDERS.includes(provider);
|
|
43
25
|
export const HARNESSES = [
|
|
44
26
|
{ label: "Native", value: "native" },
|
|
45
27
|
{ label: "Claude Code", value: "claude-code" },
|
|
46
28
|
];
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
permissions: "modes",
|
|
51
|
-
questions: true,
|
|
52
|
-
mcp: "full",
|
|
53
|
-
execution: ["shell", "js"],
|
|
54
|
-
effort: true,
|
|
55
|
-
fastMode: true,
|
|
56
|
-
isolation: "namespace",
|
|
57
|
-
commands: true,
|
|
58
|
-
terminals: true,
|
|
59
|
-
recovery: true,
|
|
60
|
-
instructions: "replace",
|
|
61
|
-
skillDiscovery: "native",
|
|
62
|
-
rulebook: "hooks",
|
|
63
|
-
secrets: "masked",
|
|
64
|
-
};
|
|
65
|
-
const CODEX = {
|
|
66
|
-
runtime: "codex",
|
|
67
|
-
steering: true,
|
|
68
|
-
permissions: "plan",
|
|
69
|
-
questions: true,
|
|
70
|
-
mcp: "browser",
|
|
71
|
-
execution: ["shell"],
|
|
72
|
-
effort: true,
|
|
73
|
-
fastMode: false,
|
|
74
|
-
isolation: "namespace",
|
|
75
|
-
commands: true,
|
|
76
|
-
terminals: false,
|
|
77
|
-
recovery: false,
|
|
78
|
-
instructions: "replace",
|
|
79
|
-
skillDiscovery: "native",
|
|
80
|
-
rulebook: "approval",
|
|
81
|
-
secrets: "none",
|
|
82
|
-
};
|
|
83
|
-
const OPENCODE = {
|
|
84
|
-
runtime: "opencode",
|
|
85
|
-
steering: false,
|
|
86
|
-
permissions: "plan",
|
|
87
|
-
questions: false,
|
|
88
|
-
mcp: "none",
|
|
89
|
-
execution: ["shell"],
|
|
90
|
-
effort: false,
|
|
91
|
-
fastMode: false,
|
|
92
|
-
isolation: "cwd",
|
|
93
|
-
commands: false,
|
|
94
|
-
terminals: false,
|
|
95
|
-
recovery: false,
|
|
96
|
-
instructions: "append",
|
|
97
|
-
skillDiscovery: "prompt",
|
|
98
|
-
rulebook: "refuse-only",
|
|
99
|
-
secrets: "none",
|
|
100
|
-
};
|
|
101
|
-
const OPENCODE_GEMINI = {
|
|
102
|
-
...OPENCODE,
|
|
103
|
-
runtime: "opencode-gemini",
|
|
104
|
-
};
|
|
105
|
-
const ACP = {
|
|
106
|
-
runtime: "acp",
|
|
107
|
-
steering: false,
|
|
108
|
-
permissions: "plan",
|
|
109
|
-
questions: false,
|
|
110
|
-
mcp: "http",
|
|
111
|
-
execution: ["shell"],
|
|
112
|
-
effort: false,
|
|
113
|
-
fastMode: false,
|
|
114
|
-
isolation: "cwd",
|
|
115
|
-
commands: true,
|
|
116
|
-
terminals: true,
|
|
117
|
-
recovery: false,
|
|
118
|
-
instructions: "none",
|
|
119
|
-
skillDiscovery: "prompt",
|
|
120
|
-
rulebook: "approval",
|
|
121
|
-
secrets: "none",
|
|
122
|
-
};
|
|
123
|
-
export const PI_PROVIDER = "pi";
|
|
124
|
-
const PI = {
|
|
125
|
-
runtime: "pi",
|
|
126
|
-
steering: true,
|
|
127
|
-
permissions: "plan",
|
|
128
|
-
questions: false,
|
|
129
|
-
mcp: "none",
|
|
130
|
-
execution: ["shell"],
|
|
131
|
-
effort: true,
|
|
132
|
-
fastMode: false,
|
|
133
|
-
isolation: "cwd",
|
|
134
|
-
commands: true,
|
|
135
|
-
terminals: false,
|
|
136
|
-
recovery: false,
|
|
137
|
-
instructions: "none",
|
|
138
|
-
skillDiscovery: "prompt",
|
|
139
|
-
rulebook: "none",
|
|
140
|
-
secrets: "none",
|
|
141
|
-
};
|
|
142
|
-
const CURSOR = {
|
|
143
|
-
runtime: "cursor",
|
|
144
|
-
steering: false,
|
|
145
|
-
permissions: "plan",
|
|
146
|
-
questions: true,
|
|
147
|
-
mcp: "tools",
|
|
148
|
-
execution: ["shell"],
|
|
149
|
-
effort: true,
|
|
150
|
-
fastMode: false,
|
|
151
|
-
isolation: "cwd",
|
|
152
|
-
commands: false,
|
|
153
|
-
terminals: false,
|
|
154
|
-
recovery: true,
|
|
155
|
-
instructions: "append",
|
|
156
|
-
skillDiscovery: "prompt",
|
|
157
|
-
rulebook: "hooks",
|
|
158
|
-
secrets: "none",
|
|
29
|
+
export const harnessChoosable = (provider) => {
|
|
30
|
+
const spec = providerSpec(provider);
|
|
31
|
+
return spec !== undefined && spec.runtimes.native.runtime !== spec.runtimes.claudeCode.runtime;
|
|
159
32
|
};
|
|
160
33
|
export const capabilitiesOf = (provider, harness) => {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if (provider === "grok") {
|
|
165
|
-
return harness === "claude-code" ? CLAUDE_CODE : OPENCODE;
|
|
166
|
-
}
|
|
167
|
-
if (provider === "gemini") {
|
|
168
|
-
return OPENCODE_GEMINI;
|
|
169
|
-
}
|
|
170
|
-
if (provider === "cursor") {
|
|
171
|
-
return CURSOR;
|
|
34
|
+
const spec = providerSpec(provider);
|
|
35
|
+
if (spec !== undefined) {
|
|
36
|
+
return harness === "claude-code" ? spec.runtimes.claudeCode : spec.runtimes.native;
|
|
172
37
|
}
|
|
173
38
|
if (isEndpointProvider(provider)) {
|
|
174
39
|
return CLAUDE_CODE;
|
|
@@ -176,8 +41,9 @@ export const capabilitiesOf = (provider, harness) => {
|
|
|
176
41
|
if (provider === PI_PROVIDER) {
|
|
177
42
|
return PI;
|
|
178
43
|
}
|
|
179
|
-
return
|
|
44
|
+
return ACP;
|
|
180
45
|
};
|
|
46
|
+
export const PI_PROVIDER = "pi";
|
|
181
47
|
export const modesFor = (capabilities) => capabilities.permissions === "modes" ? ["default", "acceptEdits", "plan", "bypassPermissions"] : ["plan", "bypassPermissions"];
|
|
182
48
|
export const clampMode = (mode, capabilities) => modesFor(capabilities).includes(mode) ? mode : "bypassPermissions";
|
|
183
49
|
export const limitationsOf = (capabilities) => [
|
|
@@ -202,9 +68,7 @@ export const limitationsOf = (capabilities) => [
|
|
|
202
68
|
...(capabilities.instructions === "append" ? ["system prompt appended, not replaced"] : []),
|
|
203
69
|
...(capabilities.instructions === "none" ? ["system prompt not applied"] : []),
|
|
204
70
|
...(capabilities.rulebook === "approval" ? ["command rules apply only to calls this agent raises"] : []),
|
|
205
|
-
...(capabilities.rulebook === "refuse-only"
|
|
206
|
-
? ["command rules can refuse but not hold"]
|
|
207
|
-
: []),
|
|
71
|
+
...(capabilities.rulebook === "refuse-only" ? ["command rules can refuse but not hold"] : []),
|
|
208
72
|
...(capabilities.rulebook === "none" ? ["command rules not applied"] : []),
|
|
209
73
|
...(capabilities.secrets === "none" ? ["secrets reach the model unmasked"] : []),
|
|
210
74
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-catalog.js","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"agent-catalog.js","sourceRoot":"","sources":["../src/agent-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAA0B,WAAW,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAuB,cAAc,EAAuB,YAAY,EAAE,MA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jE,CAAC;AAOF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAuB,EAAmB,EAAE;IAClE,IAAI,QAAQ,KAAK,QAAQ,EAAE,CAAC;QACxB,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACxF,CAAC;IAID,OAAO,EAAE,CAAC;AACd,CAAC,CAAC;AASF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAc,EAAE,QAAuB,EAAE,QAAiB,EAAW,EAAE,CACjG,MAAM,KAAK,KAAK,IAAI,CAAC,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,CAAC;AAc5D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,MAA0B,EAAE,QAA6B,EAAsB,EAAE,CAC5G,MAAM,KAAK,KAAK,IAAI,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;AAkB5D,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,YAA+B,EAAE,QAAuB,EAAE,MAAyC,EAAW,EAAE,CACxI,YAAY,CAAC,QAAQ,IAAI,QAAQ,KAAK,QAAQ,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
1
|
+
import { type QuickModelSource } from "./quick-model.js";
|
|
2
|
+
import type { AgentRunPin } from "./schemas/agent.js";
|
|
3
|
+
export declare const resolveAgentRunModels: (sources: readonly QuickModelSource[], pinned: readonly AgentRunPin[]) => readonly AgentRunPin[];
|
|
3
4
|
//# sourceMappingURL=agent-run-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-run-model.d.ts","sourceRoot":"","sources":["../src/agent-run-model.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"agent-run-model.d.ts","sourceRoot":"","sources":["../src/agent-run-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AA2CtD,eAAO,MAAM,qBAAqB,YAAa,SAAS,gBAAgB,EAAE,UAAU,SAAS,WAAW,EAAE,KAAG,SAAS,WAAW,EAoBhI,CAAC"}
|
package/dist/agent-run-model.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { quickModelKey } from "./quick-model.js";
|
|
2
2
|
export const resolveAgentRunModels = (sources, pinned) => {
|
|
3
3
|
const ready = new Set(sources.filter((source) => source.ready).map((source) => source.provider));
|
|
4
|
-
const requested = pinned.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
const requested = pinned.filter((pin) => ready.has(pin.provider));
|
|
5
|
+
const chain = [];
|
|
6
|
+
for (const pin of requested) {
|
|
7
|
+
if (!chain.some((held) => quickModelKey(held) === quickModelKey(pin))) {
|
|
8
|
+
chain.push(pin);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
return chain;
|
|
9
12
|
};
|
|
10
13
|
//# sourceMappingURL=agent-run-model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-run-model.js","sourceRoot":"","sources":["../src/agent-run-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"agent-run-model.js","sourceRoot":"","sources":["../src/agent-run-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAyB,MAAM,kBAAkB,CAAC;AA4CxE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,OAAoC,EAAE,MAA8B,EAA0B,EAAE;IAClI,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAIjG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC;IAQlE,MAAM,KAAK,GAAkB,EAAE,CAAC;IAChC,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;QAC1B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YACpE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACpB,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type ExecutionBackend = "shell" | "js";
|
|
2
|
+
export interface AgentCapabilities {
|
|
3
|
+
readonly runtime: "claude-code" | "codex" | "opencode" | "opencode-gemini" | "acp" | "pi" | "cursor";
|
|
4
|
+
readonly steering: boolean;
|
|
5
|
+
readonly permissions: "modes" | "plan";
|
|
6
|
+
readonly questions: boolean;
|
|
7
|
+
readonly mcp: "full" | "tools" | "browser" | "http" | "none";
|
|
8
|
+
readonly execution: readonly ExecutionBackend[];
|
|
9
|
+
readonly effort: boolean;
|
|
10
|
+
readonly fastMode: boolean;
|
|
11
|
+
readonly isolation: "namespace" | "cwd";
|
|
12
|
+
readonly commands: boolean;
|
|
13
|
+
readonly terminals: boolean;
|
|
14
|
+
readonly recovery: boolean;
|
|
15
|
+
readonly instructions: "replace" | "append" | "none";
|
|
16
|
+
readonly skillDiscovery: "native" | "prompt";
|
|
17
|
+
readonly rulebook: "hooks" | "approval" | "refuse-only" | "none";
|
|
18
|
+
readonly secrets: "masked" | "none";
|
|
19
|
+
}
|
|
20
|
+
export declare const CLAUDE_CODE: AgentCapabilities;
|
|
21
|
+
export declare const CODEX: AgentCapabilities;
|
|
22
|
+
export declare const OPENCODE: AgentCapabilities;
|
|
23
|
+
export declare const OPENCODE_GEMINI: AgentCapabilities;
|
|
24
|
+
export declare const ACP: AgentCapabilities;
|
|
25
|
+
export declare const PI: AgentCapabilities;
|
|
26
|
+
export declare const CURSOR: AgentCapabilities;
|
|
27
|
+
//# sourceMappingURL=agent-runtimes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-runtimes.d.ts","sourceRoot":"","sources":["../src/agent-runtimes.ts"],"names":[],"mappings":"AAwBA,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,iBAAiB;IAS9B,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,iBAAiB,GAAG,KAAK,GAAG,IAAI,GAAG,QAAQ,CAAC;IAErG,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAI3B,QAAQ,CAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAAC;IAEvC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAc5B,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;IAW7D,QAAQ,CAAC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAEhD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAOzB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAK3B,QAAQ,CAAC,SAAS,EAAE,WAAW,GAAG,KAAK,CAAC;IAExC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAE3B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAG5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAsB3B,QAAQ,CAAC,YAAY,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IAUrD,QAAQ,CAAC,cAAc,EAAE,QAAQ,GAAG,QAAQ,CAAC;IA2B7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,CAAC;IAiBjE,QAAQ,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC;CACvC;AAKD,eAAO,MAAM,WAAW,EAAE,iBAqBzB,CAAC;AAWF,eAAO,MAAM,KAAK,EAAE,iBA0BnB,CAAC;AAIF,eAAO,MAAM,QAAQ,EAAE,iBA4BtB,CAAC;AAeF,eAAO,MAAM,eAAe,EAAE,iBAG7B,CAAC;AAKF,eAAO,MAAM,GAAG,EAAE,iBAuBjB,CAAC;AAOF,eAAO,MAAM,EAAE,EAAE,iBAuBhB,CAAC;AAmBF,eAAO,MAAM,MAAM,EAAE,iBA8DpB,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export const CLAUDE_CODE = {
|
|
2
|
+
runtime: "claude-code",
|
|
3
|
+
steering: true,
|
|
4
|
+
permissions: "modes",
|
|
5
|
+
questions: true,
|
|
6
|
+
mcp: "full",
|
|
7
|
+
execution: ["shell", "js"],
|
|
8
|
+
effort: true,
|
|
9
|
+
fastMode: true,
|
|
10
|
+
isolation: "namespace",
|
|
11
|
+
commands: true,
|
|
12
|
+
terminals: true,
|
|
13
|
+
recovery: true,
|
|
14
|
+
instructions: "replace",
|
|
15
|
+
skillDiscovery: "native",
|
|
16
|
+
rulebook: "hooks",
|
|
17
|
+
secrets: "masked",
|
|
18
|
+
};
|
|
19
|
+
export const CODEX = {
|
|
20
|
+
runtime: "codex",
|
|
21
|
+
steering: true,
|
|
22
|
+
permissions: "plan",
|
|
23
|
+
questions: true,
|
|
24
|
+
mcp: "browser",
|
|
25
|
+
execution: ["shell"],
|
|
26
|
+
effort: true,
|
|
27
|
+
fastMode: false,
|
|
28
|
+
isolation: "namespace",
|
|
29
|
+
commands: true,
|
|
30
|
+
terminals: false,
|
|
31
|
+
recovery: false,
|
|
32
|
+
instructions: "replace",
|
|
33
|
+
skillDiscovery: "native",
|
|
34
|
+
rulebook: "approval",
|
|
35
|
+
secrets: "none",
|
|
36
|
+
};
|
|
37
|
+
export const OPENCODE = {
|
|
38
|
+
runtime: "opencode",
|
|
39
|
+
steering: false,
|
|
40
|
+
permissions: "plan",
|
|
41
|
+
questions: false,
|
|
42
|
+
mcp: "none",
|
|
43
|
+
execution: ["shell"],
|
|
44
|
+
effort: false,
|
|
45
|
+
fastMode: false,
|
|
46
|
+
isolation: "cwd",
|
|
47
|
+
commands: false,
|
|
48
|
+
terminals: false,
|
|
49
|
+
recovery: false,
|
|
50
|
+
instructions: "append",
|
|
51
|
+
skillDiscovery: "prompt",
|
|
52
|
+
rulebook: "refuse-only",
|
|
53
|
+
secrets: "none",
|
|
54
|
+
};
|
|
55
|
+
export const OPENCODE_GEMINI = {
|
|
56
|
+
...OPENCODE,
|
|
57
|
+
runtime: "opencode-gemini",
|
|
58
|
+
};
|
|
59
|
+
export const ACP = {
|
|
60
|
+
runtime: "acp",
|
|
61
|
+
steering: false,
|
|
62
|
+
permissions: "plan",
|
|
63
|
+
questions: false,
|
|
64
|
+
mcp: "http",
|
|
65
|
+
execution: ["shell"],
|
|
66
|
+
effort: false,
|
|
67
|
+
fastMode: false,
|
|
68
|
+
isolation: "cwd",
|
|
69
|
+
commands: true,
|
|
70
|
+
terminals: true,
|
|
71
|
+
recovery: false,
|
|
72
|
+
instructions: "none",
|
|
73
|
+
skillDiscovery: "prompt",
|
|
74
|
+
rulebook: "approval",
|
|
75
|
+
secrets: "none",
|
|
76
|
+
};
|
|
77
|
+
export const PI = {
|
|
78
|
+
runtime: "pi",
|
|
79
|
+
steering: true,
|
|
80
|
+
permissions: "plan",
|
|
81
|
+
questions: false,
|
|
82
|
+
mcp: "none",
|
|
83
|
+
execution: ["shell"],
|
|
84
|
+
effort: true,
|
|
85
|
+
fastMode: false,
|
|
86
|
+
isolation: "cwd",
|
|
87
|
+
commands: true,
|
|
88
|
+
terminals: false,
|
|
89
|
+
recovery: false,
|
|
90
|
+
instructions: "none",
|
|
91
|
+
skillDiscovery: "prompt",
|
|
92
|
+
rulebook: "none",
|
|
93
|
+
secrets: "none",
|
|
94
|
+
};
|
|
95
|
+
export const CURSOR = {
|
|
96
|
+
runtime: "cursor",
|
|
97
|
+
steering: false,
|
|
98
|
+
permissions: "plan",
|
|
99
|
+
questions: true,
|
|
100
|
+
mcp: "tools",
|
|
101
|
+
execution: ["shell"],
|
|
102
|
+
effort: true,
|
|
103
|
+
fastMode: false,
|
|
104
|
+
isolation: "cwd",
|
|
105
|
+
commands: false,
|
|
106
|
+
terminals: false,
|
|
107
|
+
recovery: true,
|
|
108
|
+
instructions: "append",
|
|
109
|
+
skillDiscovery: "prompt",
|
|
110
|
+
rulebook: "hooks",
|
|
111
|
+
secrets: "none",
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=agent-runtimes.js.map
|