duckhunt-runner 0.25.1 → 0.27.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 +89 -5
- package/dist/announced-capabilities.d.ts.map +1 -1
- package/dist/announced-capabilities.js +3 -0
- package/dist/announced-capabilities.js.map +1 -1
- package/dist/backends/agent-driver.d.ts +91 -0
- package/dist/backends/agent-driver.d.ts.map +1 -0
- package/dist/backends/agent-driver.js +20 -0
- package/dist/backends/agent-driver.js.map +1 -0
- package/dist/backends/attestation-evidence.d.ts +52 -0
- package/dist/backends/attestation-evidence.d.ts.map +1 -0
- package/dist/backends/attestation-evidence.js +74 -0
- package/dist/backends/attestation-evidence.js.map +1 -0
- package/dist/backends/claude/claude-driver.d.ts +27 -0
- package/dist/backends/claude/claude-driver.d.ts.map +1 -0
- package/dist/backends/claude/claude-driver.js +227 -0
- package/dist/backends/claude/claude-driver.js.map +1 -0
- package/dist/backends/driver-registry.d.ts +15 -0
- package/dist/backends/driver-registry.d.ts.map +1 -0
- package/dist/backends/driver-registry.js +37 -0
- package/dist/backends/driver-registry.js.map +1 -0
- package/dist/backends/spawn-agent.d.ts +36 -0
- package/dist/backends/spawn-agent.d.ts.map +1 -0
- package/dist/backends/spawn-agent.js +117 -0
- package/dist/backends/spawn-agent.js.map +1 -0
- package/dist/claim.d.ts.map +1 -1
- package/dist/claim.js +18 -0
- package/dist/claim.js.map +1 -1
- package/dist/conformance/anthropic-dialect.d.ts +25 -0
- package/dist/conformance/anthropic-dialect.d.ts.map +1 -0
- package/dist/conformance/anthropic-dialect.js +140 -0
- package/dist/conformance/anthropic-dialect.js.map +1 -0
- package/dist/conformance/backend-registry.d.ts +6 -0
- package/dist/conformance/backend-registry.d.ts.map +1 -0
- package/dist/conformance/backend-registry.js +9 -0
- package/dist/conformance/backend-registry.js.map +1 -0
- package/dist/conformance/canary-home.d.ts +63 -0
- package/dist/conformance/canary-home.d.ts.map +1 -0
- package/dist/conformance/canary-home.js +175 -0
- package/dist/conformance/canary-home.js.map +1 -0
- package/dist/conformance/claude/claude-conformance.d.ts +4 -0
- package/dist/conformance/claude/claude-conformance.d.ts.map +1 -0
- package/dist/conformance/claude/claude-conformance.js +63 -0
- package/dist/conformance/claude/claude-conformance.js.map +1 -0
- package/dist/conformance/claude/claude-launch.d.ts +9 -0
- package/dist/conformance/claude/claude-launch.d.ts.map +1 -0
- package/dist/conformance/claude/claude-launch.js +153 -0
- package/dist/conformance/claude/claude-launch.js.map +1 -0
- package/dist/conformance/claude/claude-probes.d.ts +6 -0
- package/dist/conformance/claude/claude-probes.d.ts.map +1 -0
- package/dist/conformance/claude/claude-probes.js +201 -0
- package/dist/conformance/claude/claude-probes.js.map +1 -0
- package/dist/conformance/cli-binary.d.ts +5 -0
- package/dist/conformance/cli-binary.d.ts.map +1 -0
- package/dist/conformance/cli-binary.js +42 -0
- package/dist/conformance/cli-binary.js.map +1 -0
- package/dist/conformance/conformance-backend.d.ts +40 -0
- package/dist/conformance/conformance-backend.d.ts.map +1 -0
- package/dist/conformance/conformance-backend.js +10 -0
- package/dist/conformance/conformance-backend.js.map +1 -0
- package/dist/conformance/conformance-cache.d.ts +21 -0
- package/dist/conformance/conformance-cache.d.ts.map +1 -0
- package/dist/conformance/conformance-cache.js +66 -0
- package/dist/conformance/conformance-cache.js.map +1 -0
- package/dist/conformance/conformance-cli.d.ts +10 -0
- package/dist/conformance/conformance-cli.d.ts.map +1 -0
- package/dist/conformance/conformance-cli.js +91 -0
- package/dist/conformance/conformance-cli.js.map +1 -0
- package/dist/conformance/conformance-report.d.ts +9 -0
- package/dist/conformance/conformance-report.d.ts.map +1 -0
- package/dist/conformance/conformance-report.js +40 -0
- package/dist/conformance/conformance-report.js.map +1 -0
- package/dist/conformance/platform-stub.d.ts +13 -0
- package/dist/conformance/platform-stub.d.ts.map +1 -0
- package/dist/conformance/platform-stub.js +59 -0
- package/dist/conformance/platform-stub.js.map +1 -0
- package/dist/conformance/probe-worker.d.ts +5 -0
- package/dist/conformance/probe-worker.d.ts.map +1 -0
- package/dist/conformance/probe-worker.js +42 -0
- package/dist/conformance/probe-worker.js.map +1 -0
- package/dist/conformance/probe.d.ts +86 -0
- package/dist/conformance/probe.d.ts.map +1 -0
- package/dist/conformance/probe.js +44 -0
- package/dist/conformance/probe.js.map +1 -0
- package/dist/conformance/provider-dialect.d.ts +50 -0
- package/dist/conformance/provider-dialect.d.ts.map +1 -0
- package/dist/conformance/provider-dialect.js +14 -0
- package/dist/conformance/provider-dialect.js.map +1 -0
- package/dist/conformance/run-conformance.d.ts +40 -0
- package/dist/conformance/run-conformance.d.ts.map +1 -0
- package/dist/conformance/run-conformance.js +170 -0
- package/dist/conformance/run-conformance.js.map +1 -0
- package/dist/conformance/scripted-provider.d.ts +14 -0
- package/dist/conformance/scripted-provider.d.ts.map +1 -0
- package/dist/conformance/scripted-provider.js +77 -0
- package/dist/conformance/scripted-provider.js.map +1 -0
- package/dist/conformance/verdict.d.ts +41 -0
- package/dist/conformance/verdict.d.ts.map +1 -0
- package/dist/conformance/verdict.js +98 -0
- package/dist/conformance/verdict.js.map +1 -0
- package/dist/daemon.d.ts +35 -5
- package/dist/daemon.d.ts.map +1 -1
- package/dist/daemon.js +126 -302
- package/dist/daemon.js.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/paths.d.ts +2 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +7 -0
- package/dist/paths.js.map +1 -1
- package/dist/ptrace-scope.d.ts +7 -0
- package/dist/ptrace-scope.d.ts.map +1 -0
- package/dist/ptrace-scope.js +27 -0
- package/dist/ptrace-scope.js.map +1 -0
- package/dist/rewind-files.d.ts.map +1 -1
- package/dist/rewind-files.js +1 -12
- package/dist/rewind-files.js.map +1 -1
- package/dist/secret-paths.d.ts.map +1 -1
- package/dist/secret-paths.js +32 -2
- package/dist/secret-paths.js.map +1 -1
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +3 -0
- package/dist/status.js.map +1 -1
- package/dist/toolset/render.d.ts.map +1 -1
- package/dist/toolset/render.js +4 -2
- package/dist/toolset/render.js.map +1 -1
- package/dist/turn-changes.d.ts +6 -0
- package/dist/turn-changes.d.ts.map +1 -1
- package/dist/turn-changes.js +25 -0
- package/dist/turn-changes.js.map +1 -1
- package/dist/vendor/runner-protocol/agent-credentials.d.ts +2 -0
- package/dist/vendor/runner-protocol/agent-credentials.d.ts.map +1 -0
- package/dist/vendor/runner-protocol/agent-credentials.js +32 -0
- package/dist/vendor/runner-protocol/agent-credentials.js.map +1 -0
- package/dist/vendor/runner-protocol/approval-match.d.ts +7 -0
- package/dist/vendor/runner-protocol/approval-match.d.ts.map +1 -0
- package/dist/vendor/runner-protocol/approval-match.js +112 -0
- package/dist/vendor/runner-protocol/approval-match.js.map +1 -0
- package/dist/vendor/runner-protocol/autonomy.d.ts +1 -2
- package/dist/vendor/runner-protocol/autonomy.d.ts.map +1 -1
- package/dist/vendor/runner-protocol/autonomy.js +1 -2
- package/dist/vendor/runner-protocol/autonomy.js.map +1 -1
- package/dist/vendor/runner-protocol/backends.d.ts +86 -0
- package/dist/vendor/runner-protocol/backends.d.ts.map +1 -0
- package/dist/vendor/runner-protocol/backends.js +171 -0
- package/dist/vendor/runner-protocol/backends.js.map +1 -0
- package/dist/vendor/runner-protocol/capabilities.d.ts +1 -0
- package/dist/vendor/runner-protocol/capabilities.d.ts.map +1 -1
- package/dist/vendor/runner-protocol/capabilities.js +4 -0
- package/dist/vendor/runner-protocol/capabilities.js.map +1 -1
- package/dist/vendor/runner-protocol/changes.d.ts +25 -0
- package/dist/vendor/runner-protocol/changes.d.ts.map +1 -1
- package/dist/vendor/runner-protocol/changes.js +11 -1
- package/dist/vendor/runner-protocol/changes.js.map +1 -1
- package/dist/vendor/runner-protocol/index.d.ts +3 -0
- package/dist/vendor/runner-protocol/index.d.ts.map +1 -1
- package/dist/vendor/runner-protocol/index.js +6 -1
- package/dist/vendor/runner-protocol/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,9 +61,9 @@ A run from a duckhunt that does not send the neutral form yet launches exactly a
|
|
|
61
61
|
## Setup
|
|
62
62
|
|
|
63
63
|
```sh
|
|
64
|
-
npx duckhunt-runner@0.
|
|
65
|
-
npx duckhunt-runner@0.
|
|
66
|
-
npx duckhunt-runner@0.
|
|
64
|
+
npx duckhunt-runner@0.27.0 login
|
|
65
|
+
npx duckhunt-runner@0.27.0 repos discover ~/dev
|
|
66
|
+
npx duckhunt-runner@0.27.0 start
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
Pin the version: the daemon runs `claude -p` with a shell on your machine, so install the release you
|
|
@@ -156,7 +156,7 @@ already does for this — a `screen`/`tmux` session, a systemd user service, `la
|
|
|
156
156
|
Description=duckhunt runner
|
|
157
157
|
|
|
158
158
|
[Service]
|
|
159
|
-
ExecStart=/usr/bin/npx duckhunt-runner@0.
|
|
159
|
+
ExecStart=/usr/bin/npx duckhunt-runner@0.27.0 start
|
|
160
160
|
Restart=always
|
|
161
161
|
# 78: this machine was unpaired (or its credential expired); it needs a new `login`, not a restart.
|
|
162
162
|
RestartPreventExitStatus=78
|
|
@@ -413,6 +413,15 @@ including a platform added while the daemon runs (from its next step). Once a br
|
|
|
413
413
|
configured, every run, `edit` included, is also denied the browser vault (see
|
|
414
414
|
[Browser sessions](#browser-sessions-0130-or-later)).
|
|
415
415
|
|
|
416
|
+
Read runs also deny the credential and session stores of other agent CLIs (Codex, OpenCode, Amp,
|
|
417
|
+
Gemini, Copilot, Goose, Cursor) and the `.jsonl` transcripts of other Claude Code sessions and runs,
|
|
418
|
+
so a read run cannot read another conversation's transcript, even one from another workspace; the
|
|
419
|
+
native-memory `.md` files stay readable. The generic `~`-relative list comes from duckhunt and is
|
|
420
|
+
shared with the server; the daemon adds the real path behind any of these that is a symlink and the
|
|
421
|
+
relocated homes set by `CODEX_HOME`, `XDG_DATA_HOME` (OpenCode data), `OPENCODE_CONFIG_DIR`,
|
|
422
|
+
`GEMINI_CLI_HOME` and `COPILOT_HOME`. It also denies `<runner home>/backends/`, where per-conversation
|
|
423
|
+
agent homes will live.
|
|
424
|
+
|
|
416
425
|
Checked with Claude Code 2.1.296: `Read`, `Grep` and `Glob` honour these deny rules, through symlinks
|
|
417
426
|
and in recursive searches. The read-only shell approves nothing outside its working directory, and
|
|
418
427
|
inside it honours a denied path named directly but not a recursive read, which is why a committed
|
|
@@ -607,6 +616,14 @@ does it when the claim asks for it.
|
|
|
607
616
|
is listed with its counts but without its diff.
|
|
608
617
|
- It is uploaded after the feed and before the step's status. If git or the upload fails, the turn
|
|
609
618
|
just shows no changes; the run is never affected.
|
|
619
|
+
- A turn that moves `HEAD` to another line of history (`git checkout -b x origin/y`) is diffed from its
|
|
620
|
+
starting snapshot carried onto the new `HEAD`, so the distance between the two branches never counts as
|
|
621
|
+
the turn's changes (0.25.1 or later). Commits on top of the same line and a reset back still diff from
|
|
622
|
+
the snapshot.
|
|
623
|
+
- From 0.26.0, when duckhunt asks for it (`changes.run` in the claim), each step also uploads the net diff
|
|
624
|
+
of the whole conversation: from the conversation's base snapshot (the one duckhunt sends, or the first
|
|
625
|
+
turn of the process) to the end of the step, extra repos included. A base that `git gc` removed uploads
|
|
626
|
+
nothing; no changes upload an empty report.
|
|
610
627
|
- In the checkout (instead of a worktree), the snapshots also catch what you edit there while the turn
|
|
611
628
|
runs.
|
|
612
629
|
|
|
@@ -660,6 +677,33 @@ don't announce it).
|
|
|
660
677
|
snapshot, the step fails with `restore_failed` without launching Claude, and nothing is changed.
|
|
661
678
|
- What the agent did outside the worktree (in duckhunt, Jira, a push) stays done.
|
|
662
679
|
|
|
680
|
+
### Subagents and workflows (0.23.0 or later)
|
|
681
|
+
|
|
682
|
+
With a Claude Code that lists `--forward-subagent-text` in `--help`, the daemon announces subagents and
|
|
683
|
+
passes that flag, so the conversation shows what each subagent says and does, nested under the tool call
|
|
684
|
+
that started it. The feed carries the id of each tool call and of its parent, and the milestones of
|
|
685
|
+
subagents, workflows and background commands as `task` events. The tool lists grant `Agent`, `Task` and
|
|
686
|
+
`TaskStop` (and `Workflow` when duckhunt grants it) and deny `ListAgents` and `SendMessage`, which reach other
|
|
687
|
+
Claude Code sessions on the machine. A subagent inherits the step's permissions and tools, nothing more.
|
|
688
|
+
|
|
689
|
+
### Talking to a run while it works (0.24.0 or later)
|
|
690
|
+
|
|
691
|
+
With a Claude Code that lists `--input-format`, a step can keep Claude's stdin open (in stream-json): the
|
|
692
|
+
prompt goes in as the first message, and while the process lives the daemon long-polls the run's inbox in
|
|
693
|
+
duckhunt.
|
|
694
|
+
|
|
695
|
+
- **Stopping a task** (0.24.0). Stopping a subagent, workflow or background command from duckhunt becomes
|
|
696
|
+
Claude Code's own `stop_task` request. The daemon closes stdin on the first result that leaves no task
|
|
697
|
+
running (or on an error). If the main agent does not wake up within 60 seconds of its last task ending,
|
|
698
|
+
or the process says nothing for 15 minutes, stdin is closed anyway; the step's timeout still applies.
|
|
699
|
+
- **Messages** (0.25.0). With `--replay-user-messages` too, a message you send while the agent works is
|
|
700
|
+
written to stdin with its id, and Claude Code echoes it back when it takes it: that is the
|
|
701
|
+
acknowledgement. Taken while the agent is idle, it starts a new turn in the same process; taken mid-turn,
|
|
702
|
+
it joins that turn. A message not yet acknowledged keeps stdin open, like a task.
|
|
703
|
+
- Each new turn inside the process (a message, or Claude Code waking the main agent after a background
|
|
704
|
+
task) closes the previous one: its diff is uploaded with its own step number, the next turn's snapshot is
|
|
705
|
+
taken, and heartbeat, feed and inbox move to the new step.
|
|
706
|
+
|
|
663
707
|
## Platforms (0.13.0 or later)
|
|
664
708
|
|
|
665
709
|
duckhunt is the built-in platform: `login` and `logout` without an id are still the duckhunt ones,
|
|
@@ -671,7 +715,7 @@ worktrees (`<checkout>/.runner/worktrees/<id>/`), and sees only what you expose
|
|
|
671
715
|
### Adding one
|
|
672
716
|
|
|
673
717
|
```sh
|
|
674
|
-
npx duckhunt-runner@0.
|
|
718
|
+
npx duckhunt-runner@0.27.0 login https://platform.example --as acme --name "Acme"
|
|
675
719
|
```
|
|
676
720
|
|
|
677
721
|
`login <url> --as [id] [--name <name>] [--trusted]` reads the platform's discovery document and its
|
|
@@ -914,6 +958,46 @@ With the daemon running, `run` hands the run to it over `~/.duckhunt-runner/sock
|
|
|
914
958
|
lock while it works and `start` refuses to start meanwhile. Conversations live in
|
|
915
959
|
`~/.duckhunt-runner/platforms/local/`, so one can be resumed from either.
|
|
916
960
|
|
|
961
|
+
## Conformance: checking an agent CLI's guarantees
|
|
962
|
+
|
|
963
|
+
The daemon leans on the agent CLI to honour the sandbox it is launched with: that a read-only run
|
|
964
|
+
cannot run project code, that denied paths stay unreadable, that one run cannot reach another's token.
|
|
965
|
+
`conformance <backend>` checks those guarantees for the exact CLI you have installed, and **spends no
|
|
966
|
+
model tokens**: it runs the CLI against a local scripted model server, not the real API.
|
|
967
|
+
|
|
968
|
+
```sh
|
|
969
|
+
duckhunt-runner conformance claude_code
|
|
970
|
+
```
|
|
971
|
+
|
|
972
|
+
Each check (a *probe*) builds a throwaway home with random *canary* values seeded everywhere a run
|
|
973
|
+
should not be able to reach — other agent CLIs' credentials, another run's config, another session's
|
|
974
|
+
transcript, a repo that tries to plant a hook or load its own MCP server, symlinks that escape the
|
|
975
|
+
repo. It then launches the CLI exactly as the daemon would, with a scripted model that tells it to
|
|
976
|
+
try reading or writing each of those places. The probe passes or fails by whether a canary value
|
|
977
|
+
reaches the model or a file it should not — never by what the model says. The scripted server also
|
|
978
|
+
acts as the run's outbound proxy and refuses every connection, so nothing leaves your machine and the
|
|
979
|
+
report lists anything the CLI tried to contact.
|
|
980
|
+
|
|
981
|
+
The verdicts:
|
|
982
|
+
|
|
983
|
+
| verdict | meaning |
|
|
984
|
+
|---|---|
|
|
985
|
+
| `PASS` | the guarantee held |
|
|
986
|
+
| `FAIL` | a canary leaked: the guarantee did not hold |
|
|
987
|
+
| `XFAIL` | a *known* gap (a `t#…` target that will close it) is still open, as expected |
|
|
988
|
+
| `XPASS` | a known gap looks closed — check whether the expectation is stale |
|
|
989
|
+
| `ERROR` | the probe could not be measured (the CLI never ran, or a step went unanswered); never a pass |
|
|
990
|
+
| `SKIP` | the probe does not apply on this OS |
|
|
991
|
+
|
|
992
|
+
Results are cached under `~/.duckhunt-runner/conformance/` per CLI version, the binary's SHA-256 and
|
|
993
|
+
the OS, so a probe re-runs only when the CLI changes. `conformance <backend> --probe <id>` runs one
|
|
994
|
+
probe, `--keep` leaves its canary home and the recorded requests on disk to inspect, and `--json`
|
|
995
|
+
prints the machine-readable record. Later phases use this to let duckhunt admit a run class on a
|
|
996
|
+
backend only once the needed guarantees are proven for that exact version.
|
|
997
|
+
|
|
998
|
+
On Linux, `status` also prints `kernel.yama.ptrace_scope`: a host setting that one of those guarantees
|
|
999
|
+
(a run cannot read a sibling's process memory) depends on. `1` or higher is the hardened value.
|
|
1000
|
+
|
|
917
1001
|
## Licence
|
|
918
1002
|
|
|
919
1003
|
Copyright © 2026 miermontoto.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"announced-capabilities.d.ts","sourceRoot":"","sources":["../src/announced-capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAgD,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9F,MAAM,WAAW,UAAU;IAEzB,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAErC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;qHACqH;AACrH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,UAAU,GAAG,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"announced-capabilities.d.ts","sourceRoot":"","sources":["../src/announced-capabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAgD,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9F,MAAM,WAAW,UAAU;IAEzB,MAAM,EAAE,OAAO,CAAC;IAEhB,SAAS,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAErC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;qHACqH;AACrH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,UAAU,GAAG,gBAAgB,EAAE,CAiDzE"}
|
|
@@ -35,6 +35,9 @@ export function announcedCapabilities(kit) {
|
|
|
35
35
|
...(kit.browser && kit.toolsetRender !== false ? [RUNNER_CAPABILITY.browser] : []),
|
|
36
36
|
// el diff de cada turno (t#514, turn-changes.ts): solo lo calcula si el claim trae el bloque `changes`.
|
|
37
37
|
RUNNER_CAPABILITY.turnChanges,
|
|
38
|
+
// el diff neto de la conversación (t#642, turn-changes.ts::runChanges): solo lo calcula si el claim trae `changes.run`.
|
|
39
|
+
// no depende del cli: va antes de las que sí.
|
|
40
|
+
RUNNER_CAPABILITY.runChanges,
|
|
38
41
|
// varios repos por conversación (t#597): con prompt y un cli que acepta --add-dir; con ellos, su diff y su vuelta atrás.
|
|
39
42
|
...(prompt && kit.supported.has('--add-dir') ? [RUNNER_CAPABILITY.multiRepo, RUNNER_CAPABILITY.extraRepoChanges] : []),
|
|
40
43
|
// subagentes y workflows (t#636): con prompt y un cli que reenvía lo de los subagentes con su padre. no depende de la
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version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E,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;KAC7E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { Writable } from 'node:stream';
|
|
2
|
+
import type { AttemptFacts } from '../audit.js';
|
|
3
|
+
import type { ClaimResponse } from '../claim.js';
|
|
4
|
+
import type { EventUploader } from '../event-uploader.js';
|
|
5
|
+
import type { FeedContext } from '../feed.js';
|
|
6
|
+
import type { MaterializedRun, RunMcp } from '../resources/lifecycle.js';
|
|
7
|
+
import type { RunLease } from '../run-lease.js';
|
|
8
|
+
import type { SlashCommand } from '../vendor/runner-protocol/index.js';
|
|
9
|
+
import type { StatusReport } from '../status-report.js';
|
|
10
|
+
import type { RunInboxCommand, RunTurnReport } from '../vendor/runner-protocol/index.js';
|
|
11
|
+
/** lo que el daemon sabe de la máquina y de su config, de lo que dependen las capabilities de un driver. */
|
|
12
|
+
export interface HostFacts {
|
|
13
|
+
hasAws: boolean;
|
|
14
|
+
bypassPermissions: boolean;
|
|
15
|
+
remoteRepoEdits: boolean | undefined;
|
|
16
|
+
toolsetRender: boolean | undefined;
|
|
17
|
+
browser: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** lo que un `result` del agente principal cuenta de su turno (t#636, fase 3): el informe y el total de tool calls. */
|
|
20
|
+
export interface TurnEnded {
|
|
21
|
+
toolCallsTotal: number;
|
|
22
|
+
report: RunTurnReport;
|
|
23
|
+
}
|
|
24
|
+
/** los límites de turno dentro de un proceso vivo, del lado del daemon. */
|
|
25
|
+
export interface TurnHooks {
|
|
26
|
+
onTurnEnd(ended: TurnEnded): void;
|
|
27
|
+
onTurnStart(delivered: string[]): void;
|
|
28
|
+
onDelivered(ids: string[]): void;
|
|
29
|
+
}
|
|
30
|
+
/** a quién entrega el buzón del run sus órdenes mientras el proceso vive. */
|
|
31
|
+
export interface InboxTarget {
|
|
32
|
+
readonly open: boolean;
|
|
33
|
+
command(c: RunInboxCommand): boolean;
|
|
34
|
+
}
|
|
35
|
+
/** lo que el daemon pone a disposición del driver durante un segmento. */
|
|
36
|
+
export interface SegmentIo {
|
|
37
|
+
readonly log: string;
|
|
38
|
+
readonly feed: EventUploader | null;
|
|
39
|
+
readonly ctx: FeedContext;
|
|
40
|
+
note(text: string): void;
|
|
41
|
+
progress(toolCalls: number, workdir?: string): void;
|
|
42
|
+
serveInbox(target: InboxTarget, waitMs: number, signal: AbortSignal): void;
|
|
43
|
+
readonly verboseLog: (() => string) | null;
|
|
44
|
+
toolCallsAt(): number;
|
|
45
|
+
readonly turns: TurnHooks;
|
|
46
|
+
}
|
|
47
|
+
/** lo de un segmento que el driver necesita y no sale del claim. */
|
|
48
|
+
export interface SegmentSpec {
|
|
49
|
+
readonly claim: ClaimResponse;
|
|
50
|
+
readonly res: MaterializedRun;
|
|
51
|
+
readonly resourceMcp: RunMcp;
|
|
52
|
+
readonly lease: RunLease;
|
|
53
|
+
readonly platform: {
|
|
54
|
+
readonly id: string;
|
|
55
|
+
configured(): string[];
|
|
56
|
+
};
|
|
57
|
+
defaults(): {
|
|
58
|
+
model: string | undefined;
|
|
59
|
+
maxBudgetUsd: number | undefined;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/** cómo acabó un segmento, ya traducido por el driver. */
|
|
63
|
+
export interface SegmentOutcome {
|
|
64
|
+
report: StatusReport;
|
|
65
|
+
facts: AttemptFacts;
|
|
66
|
+
toolsByName: Record<string, number>;
|
|
67
|
+
commands(projectCwd: string | null): SlashCommand[] | null;
|
|
68
|
+
}
|
|
69
|
+
/** lo que el driver dejó preparado para un segmento y retira al cerrarlo. */
|
|
70
|
+
export interface PreparedSegment {
|
|
71
|
+
dispose(): void;
|
|
72
|
+
}
|
|
73
|
+
/** un cli de agente detrás del seam. */
|
|
74
|
+
export interface AgentDriver {
|
|
75
|
+
readonly id: string;
|
|
76
|
+
readonly command: string;
|
|
77
|
+
readonly version: string | null;
|
|
78
|
+
/** detecta el cli instalado (versión y flags). */
|
|
79
|
+
detect(): Promise<void>;
|
|
80
|
+
/** comprobaciones y cálculos del arranque del daemon; lanza si el driver no puede trabajar. */
|
|
81
|
+
start(): void;
|
|
82
|
+
/** las capabilities que este cli deja anunciar, en el orden del cable. */
|
|
83
|
+
capabilities(facts: HostFacts): string[];
|
|
84
|
+
/** lo de un segmento que vive en disco mientras corre (y que `dispose` borra); lanza si no se puede preparar. */
|
|
85
|
+
prepare(spec: SegmentSpec): PreparedSegment;
|
|
86
|
+
/** lanza el segmento (con los reintentos propios del cli) y lo traduce a su informe; nunca lanza. */
|
|
87
|
+
run(spec: SegmentSpec, prepared: PreparedSegment, io: SegmentIo): Promise<SegmentOutcome>;
|
|
88
|
+
}
|
|
89
|
+
/** el stdin de un proceso, si el driver lo pidió. */
|
|
90
|
+
export type AgentStdin = Writable | null;
|
|
91
|
+
//# sourceMappingURL=agent-driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-driver.d.ts","sourceRoot":"","sources":["../../src/backends/agent-driver.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EA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0E;IAC1E,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,EAAE,CAAC;IACzC,iHAAiH;IACjH,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe,CAAC;IAC5C,qGAAqG;IACrG,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,EAAE,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC3F;AAED,qDAAqD;AACrD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// el seam de drivers (t#440 P1): lo único que el daemon sabe de un cli de agente. executeRun hace lo neutral
|
|
2
|
+
// (recursos, turnos del cwd, fotos del diff, feed, latido, auditoría, informe) y delega en el driver del backend lo
|
|
3
|
+
// propio del cli: qué anuncia, qué prepara por segmento, cómo se lanza, cómo se lee su salida y cómo se cierra.
|
|
4
|
+
// decisiones:
|
|
5
|
+
// - claude es el driver #0 y se envuelve EN SU SITIO (backends/claude/claude-driver.ts): sus módulos (claude.ts,
|
|
6
|
+
// claude-args.ts, run-mcp-config.ts, live-session.ts, read-shell-guard.ts, user-permissions.ts, slash-commands.ts)
|
|
7
|
+
// no se mueven, así el plan de lanzamiento, la salida y el cable quedan iguales byte a byte (spawn-plan.json,
|
|
8
|
+
// claude-output.json, wire-legacy).
|
|
9
|
+
// - el proceso lo vigila spawn-agent.ts (grupo propio, latido del lease, timeout, stderr, log, progreso): la mitad
|
|
10
|
+
// neutral de lo que era spawnClaude. el driver solo abre la sesión que lee su stdout.
|
|
11
|
+
// - los turnos dentro de un proceso vivo (t#636, fase 3) son del daemon: el driver le avisa con TurnEnded neutral
|
|
12
|
+
// (`onTurnEnd`), nunca con el evento de su cli.
|
|
13
|
+
// - el informe sale del driver ya con la forma del status; recortarlo y enmascararlo es neutral (clampReport en la
|
|
14
|
+
// plataforma) y vale para todo driver.
|
|
15
|
+
// - el claim sigue siendo el del cable legacy (ClaimResponse): el RunSpec neutral con su `legacy` aparte llega con el
|
|
16
|
+
// cable de backends (P4), cuando un claim no-claude traiga solo su toolset.
|
|
17
|
+
// non-goals (P1): elegir driver por claim (todo va al de claude_code hasta P4), deny-paths neutral (P7, cuando codex
|
|
18
|
+
// necesite las rutas absolutas para su deny_read), vocabulario canónico de tools (P4/P7).
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=agent-driver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-driver.js","sourceRoot":"","sources":["../../src/backends/agent-driver.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,oHAAoH;AACpH,gHAAgH;AAChH,cAAc;AACd,iHAAiH;AACjH,qHAAqH;AACrH,gHAAgH;AAChH,sCAAsC;AACtC,mHAAmH;AACnH,wFAAwF;AACxF,kHAAkH;AAClH,kDAAkD;AAClD,mHAAmH;AACnH,yCAAyC;AACzC,sHAAsH;AACtH,8EAA8E;AAC9E,qHAAqH;AACrH,0FAA0F"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** garantías de seguridad que un backend demuestra para su versión (runner-protocol, t#440 P2). */
|
|
2
|
+
export declare const BACKEND_ATTESTATION: {
|
|
3
|
+
readonly closedPolicy: "closed_policy";
|
|
4
|
+
readonly strictMcp: "strict_mcp";
|
|
5
|
+
readonly tokenIsolation: "token_isolation";
|
|
6
|
+
readonly controlPrivate: "control_private";
|
|
7
|
+
readonly processContained: "process_contained";
|
|
8
|
+
readonly ownTokenPrivate: "own_token_private";
|
|
9
|
+
readonly isolatedConfig: "isolated_config";
|
|
10
|
+
readonly secretPaths: "secret_paths";
|
|
11
|
+
readonly ownCredentialConfined: "own_credential_confined";
|
|
12
|
+
readonly noRepoExec: "no_repo_exec";
|
|
13
|
+
readonly vcsPushDeny: "vcs_push_deny";
|
|
14
|
+
readonly netPolicy: "net_policy";
|
|
15
|
+
readonly subagentInherit: "subagent_inherit";
|
|
16
|
+
};
|
|
17
|
+
export type BackendAttestation = (typeof BACKEND_ATTESTATION)[keyof typeof BACKEND_ATTESTATION];
|
|
18
|
+
/** de dónde sale la evidencia de una atestación: estructural, la tabla VERIFIED por versión exacta o conformidad local. */
|
|
19
|
+
export declare const ATTESTATION_EVIDENCE: {
|
|
20
|
+
readonly structural: "structural";
|
|
21
|
+
readonly verified: "verified";
|
|
22
|
+
readonly conformance: "conformance";
|
|
23
|
+
};
|
|
24
|
+
export type AttestationEvidence = (typeof ATTESTATION_EVIDENCE)[keyof typeof ATTESTATION_EVIDENCE];
|
|
25
|
+
/** cómo quedó una atestación tras medir sus sondas. */
|
|
26
|
+
export declare const ATTESTATION_STATUS: {
|
|
27
|
+
readonly proven: "proven";
|
|
28
|
+
readonly refuted: "refuted";
|
|
29
|
+
readonly unmeasured: "unmeasured";
|
|
30
|
+
readonly unprobed: "unprobed";
|
|
31
|
+
};
|
|
32
|
+
export type AttestationStatus = (typeof ATTESTATION_STATUS)[keyof typeof ATTESTATION_STATUS];
|
|
33
|
+
/** lo que una sonda medida aporta a sus atestaciones. */
|
|
34
|
+
export interface MeasuredProbe {
|
|
35
|
+
id: string;
|
|
36
|
+
attestations: readonly BackendAttestation[];
|
|
37
|
+
outcome: 'held' | 'broken' | 'unmeasured';
|
|
38
|
+
}
|
|
39
|
+
/** una atestación, cómo quedó y qué sondas la decidieron. */
|
|
40
|
+
export interface AttestationVerdict {
|
|
41
|
+
id: BackendAttestation;
|
|
42
|
+
status: AttestationStatus;
|
|
43
|
+
probes: string[];
|
|
44
|
+
}
|
|
45
|
+
/** el estado de cada atestación según las sondas medidas (ver cabecera), en el orden de BACKEND_ATTESTATION. */
|
|
46
|
+
export declare function attestationVerdicts(measured: readonly MeasuredProbe[]): AttestationVerdict[];
|
|
47
|
+
/** las atestaciones demostradas por conformidad, con su evidencia: lo que un driver puede anunciar para esa versión. */
|
|
48
|
+
export declare const provenByConformance: (verdicts: readonly AttestationVerdict[]) => {
|
|
49
|
+
id: BackendAttestation;
|
|
50
|
+
by: AttestationEvidence;
|
|
51
|
+
}[];
|
|
52
|
+
//# sourceMappingURL=attestation-evidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestation-evidence.d.ts","sourceRoot":"","sources":["../../src/backends/attestation-evidence.ts"],"names":[],"mappings":"AAYA,mGAAmG;AACnG,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;CA2BtB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEhG,2HAA2H;AAC3H,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnG,uDAAuD;AACvD,eAAO,MAAM,kBAAkB;;;;;CASrB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE7F,yDAAyD;AACzD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAE5C,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAC;CAC3C;AAED,6DAA6D;AAC7D,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,kBAAkB,CAAC;IACvB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,gHAAgH;AAChH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,GAAG,kBAAkB,EAAE,CAa5F;AAED,wHAAwH;AACxH,eAAO,MAAM,mBAAmB,GAAI,UAAU,SAAS,kBAAkB,EAAE,KAAG;IAAE,EAAE,EAAE,kBAAkB,CAAC;IAAC,EAAE,EAAE,mBAAmB,CAAA;CAAE,EACA,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// las atestaciones de un backend y su evidencia (t#440 P6): qué garantía de seguridad aplica un cli de agente y con qué
|
|
2
|
+
// se demostró para SU versión exacta. el arnés de conformidad (src/conformance/) mide sondas contra el cli instalado;
|
|
3
|
+
// aquí se decide qué atestaciones quedan demostradas por esas medidas, que es lo que un driver anunciará (P7/P8).
|
|
4
|
+
// decisiones:
|
|
5
|
+
// - BACKEND_ATTESTATION y ATTESTATION_EVIDENCE tienen que ser IDÉNTICOS a los de runner-protocol (src/backends.ts del
|
|
6
|
+
// paquete, que añade la fase P2 del server en paralelo): mismos ids, mismos valores, mismo orden. es una copia
|
|
7
|
+
// provisional; al re-vendorizar el protocolo en P4 pasan a importarse de src/vendor/runner-protocol y aquí queda solo
|
|
8
|
+
// la lógica de evidencia. test/attestation-evidence.test.ts fija las listas exactas para que una deriva se note.
|
|
9
|
+
// - una atestación queda demostrada por conformidad solo si TODAS sus sondas pasan. una sola que filtra (o un hueco
|
|
10
|
+
// conocido que sigue abierto) la refuta; una sonda que no se pudo medir la deja en error, nunca demostrada.
|
|
11
|
+
// - sin sonda no hay evidencia de conformidad: «sin sonda», que para el server es lo mismo que no atestar.
|
|
12
|
+
/** garantías de seguridad que un backend demuestra para su versión (runner-protocol, t#440 P2). */
|
|
13
|
+
export const BACKEND_ATTESTATION = {
|
|
14
|
+
// política cerrada y explícita en cada arranque: nunca un bypass total.
|
|
15
|
+
closedPolicy: 'closed_policy',
|
|
16
|
+
// solo carga los servidores mcp que le da el daemon.
|
|
17
|
+
strictMcp: 'strict_mcp',
|
|
18
|
+
// el token per-run no es alcanzable desde otro run.
|
|
19
|
+
tokenIsolation: 'token_isolation',
|
|
20
|
+
// el canal de control y de aprobaciones es privado del segmento.
|
|
21
|
+
controlPrivate: 'control_private',
|
|
22
|
+
// un proceso privado por segmento, en su grupo, que muere entero al cancelar.
|
|
23
|
+
processContained: 'process_contained',
|
|
24
|
+
// el token per-run nunca en argv, env ni en reposo en un sitio compartido.
|
|
25
|
+
ownTokenPrivate: 'own_token_private',
|
|
26
|
+
// su config es la que escribe el daemon (ni la del usuario ni la del proyecto la amplían).
|
|
27
|
+
isolatedConfig: 'isolated_config',
|
|
28
|
+
// las rutas de secretos son ilegibles.
|
|
29
|
+
secretPaths: 'secret_paths',
|
|
30
|
+
// sus propias credenciales no salen de su home.
|
|
31
|
+
ownCredentialConfined: 'own_credential_confined',
|
|
32
|
+
// un run de lectura nunca ejecuta código, config ni hooks del repo.
|
|
33
|
+
noRepoExec: 'no_repo_exec',
|
|
34
|
+
// no puede hacer push.
|
|
35
|
+
vcsPushDeny: 'vcs_push_deny',
|
|
36
|
+
// sin red ni tools alojadas cuando el run no navega.
|
|
37
|
+
netPolicy: 'net_policy',
|
|
38
|
+
// sus subagentes heredan el sandbox y la política.
|
|
39
|
+
subagentInherit: 'subagent_inherit',
|
|
40
|
+
};
|
|
41
|
+
/** de dónde sale la evidencia de una atestación: estructural, la tabla VERIFIED por versión exacta o conformidad local. */
|
|
42
|
+
export const ATTESTATION_EVIDENCE = {
|
|
43
|
+
structural: 'structural',
|
|
44
|
+
verified: 'verified',
|
|
45
|
+
conformance: 'conformance',
|
|
46
|
+
};
|
|
47
|
+
/** cómo quedó una atestación tras medir sus sondas. */
|
|
48
|
+
export const ATTESTATION_STATUS = {
|
|
49
|
+
// todas sus sondas pasan: demostrada por conformidad.
|
|
50
|
+
proven: 'proven',
|
|
51
|
+
// alguna filtra (también un hueco conocido que sigue abierto).
|
|
52
|
+
refuted: 'refuted',
|
|
53
|
+
// ninguna filtra pero alguna no se pudo medir.
|
|
54
|
+
unmeasured: 'unmeasured',
|
|
55
|
+
// ninguna sonda la mide.
|
|
56
|
+
unprobed: 'unprobed',
|
|
57
|
+
};
|
|
58
|
+
/** el estado de cada atestación según las sondas medidas (ver cabecera), en el orden de BACKEND_ATTESTATION. */
|
|
59
|
+
export function attestationVerdicts(measured) {
|
|
60
|
+
return Object.values(BACKEND_ATTESTATION).map((id) => {
|
|
61
|
+
const mine = measured.filter((p) => p.attestations.includes(id));
|
|
62
|
+
const status = mine.length === 0
|
|
63
|
+
? ATTESTATION_STATUS.unprobed
|
|
64
|
+
: mine.some((p) => p.outcome === 'broken')
|
|
65
|
+
? ATTESTATION_STATUS.refuted
|
|
66
|
+
: mine.some((p) => p.outcome === 'unmeasured')
|
|
67
|
+
? ATTESTATION_STATUS.unmeasured
|
|
68
|
+
: ATTESTATION_STATUS.proven;
|
|
69
|
+
return { id, status, probes: mine.map((p) => p.id) };
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/** las atestaciones demostradas por conformidad, con su evidencia: lo que un driver puede anunciar para esa versión. */
|
|
73
|
+
export const provenByConformance = (verdicts) => verdicts.filter((v) => v.status === ATTESTATION_STATUS.proven).map((v) => ({ id: v.id, by: ATTESTATION_EVIDENCE.conformance }));
|
|
74
|
+
//# sourceMappingURL=attestation-evidence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attestation-evidence.js","sourceRoot":"","sources":["../../src/backends/attestation-evidence.ts"],"names":[],"mappings":"AAAA,wHAAwH;AACxH,sHAAsH;AACtH,kHAAkH;AAClH,cAAc;AACd,sHAAsH;AACtH,iHAAiH;AACjH,wHAAwH;AACxH,mHAAmH;AACnH,oHAAoH;AACpH,8GAA8G;AAC9G,2GAA2G;AAE3G,mGAAmG;AACnG,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,wEAAwE;IACxE,YAAY,EAAE,eAAe;IAC7B,qDAAqD;IACrD,SAAS,EAAE,YAAY;IACvB,oDAAoD;IACpD,cAAc,EAAE,iBAAiB;IACjC,iEAAiE;IACjE,cAAc,EAAE,iBAAiB;IACjC,8EAA8E;IAC9E,gBAAgB,EAAE,mBAAmB;IACrC,2EAA2E;IAC3E,eAAe,EAAE,mBAAmB;IACpC,2FAA2F;IAC3F,cAAc,EAAE,iBA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C,CAAC,OAAO,KAAK,YAAY,CAAC;oBAC5C,CAAC,CAAC,kBAAkB,CAAC,UAAU;oBAC/B,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC;QACpC,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,wHAAwH;AACxH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,QAAuC,EAAyD,EAAE,CACpI,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,oBAAoB,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ClaudeInfo, type StreamLine, type StreamState } from '../../claude.js';
|
|
2
|
+
import type { AgentDriver, HostFacts, PreparedSegment, SegmentIo, SegmentOutcome, SegmentSpec, TurnEnded } from '../agent-driver.js';
|
|
3
|
+
/** lo que un `result` cuenta de su turno (t#636, fase 3): el total de la sesión, sus vueltas y las tool calls desde `toolCallsAt`. */
|
|
4
|
+
export declare function turnEndedOf(ev: StreamLine, stream: StreamState, toolCallsAt: number): TurnEnded;
|
|
5
|
+
interface ClaudePrepared extends PreparedSegment {
|
|
6
|
+
readonly mcpFile: string;
|
|
7
|
+
}
|
|
8
|
+
/** claude code (`claude -p` con stream-json) como driver del daemon. */
|
|
9
|
+
export declare class ClaudeDriver implements AgentDriver {
|
|
10
|
+
readonly id: "claude_code";
|
|
11
|
+
readonly command = "claude";
|
|
12
|
+
info: ClaudeInfo;
|
|
13
|
+
secretDeny: string[];
|
|
14
|
+
get version(): string | null;
|
|
15
|
+
detect(): Promise<void>;
|
|
16
|
+
start(): void;
|
|
17
|
+
capabilities(facts: HostFacts): string[];
|
|
18
|
+
prepare(spec: SegmentSpec): ClaudePrepared;
|
|
19
|
+
run(spec: SegmentSpec, prepared: PreparedSegment, io: SegmentIo): Promise<SegmentOutcome>;
|
|
20
|
+
/** el deny de todo kit de un segmento de `platform` (por intento: una plataforma añadida en caliente queda cubierta). */
|
|
21
|
+
platformDeny(platform: SegmentSpec['platform']): string[];
|
|
22
|
+
private attempt;
|
|
23
|
+
private session;
|
|
24
|
+
private turnHooks;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=claude-driver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-driver.d.ts","sourceRoot":"","sources":["../../../src/backends/claude/claude-driver.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAgH,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAanM,OAAO,KAAK,EAAE,WAAW,EAAc,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AASjJ,sIAAsI;AACtI,wBAAgB,WAAW,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,GAAG,SAAS,CAiB/F;AAaD,UAAU,cAAe,SAAQ,eAAe;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AASD,wEAAwE;AACxE,qBAAa,YAAa,YAAW,WAAW;IAC9C,QAAQ,CAAC,EAAE,gBAAyB;IACpC,QAAQ,CAAC,OAAO,YAAkB;IAClC,IAAI,EAAE,UAAU,CAA2C;IAE3D,UAAU,EAAE,MAAM,EAAE,CAAM;IAE1B,IAAI,OAAO,IAAI,MAAM,GAAG,IAAI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