@stringsync/splates 0.0.60 → 1.13.3
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 +2 -2
- package/artifact.d.ts +2 -2
- package/blockers.d.ts +1 -1
- package/config.d.ts +12 -0
- package/config.js +0 -0
- package/creds.d.ts +2 -2
- package/evals.d.ts +2 -2
- package/flags.d.ts +4 -4
- package/handoff.d.ts +3 -4
- package/hook.d.ts +2 -2
- package/index.js +108 -108
- package/lane.d.ts +2 -2
- package/mirror.d.ts +14 -0
- package/mirror.js +22 -0
- package/package.json +12 -4
- package/projects.d.ts +2 -2
- package/queue.d.ts +2 -2
- package/replica.d.ts +2 -2
- package/server.d.ts +2 -2
- package/setup.d.ts +2 -2
- package/ship.d.ts +2 -2
- package/slots.d.ts +2 -2
- package/splates.d.ts +2 -2
- package/task.d.ts +2 -2
- package/tunnel.d.ts +2 -2
- package/vendor/@stringsync/splates-server/LICENSE +21 -0
- package/vendor/@stringsync/splates-server/age.d.ts +2 -0
- package/vendor/@stringsync/splates-server/agents/acp-extensions.d.ts +92 -0
- package/vendor/@stringsync/splates-server/agents/agents.d.ts +19 -0
- package/vendor/@stringsync/splates-server/agents/compaction.d.ts +17 -0
- package/vendor/@stringsync/splates-server/agents/connection.d.ts +191 -0
- package/vendor/@stringsync/splates-server/agents/errors.d.ts +8 -0
- package/vendor/@stringsync/splates-server/agents/fold.d.ts +45 -0
- package/vendor/@stringsync/splates-server/agents/index.d.ts +16 -0
- package/vendor/@stringsync/splates-server/agents/index.js +60 -0
- package/vendor/@stringsync/splates-server/agents/process.d.ts +67 -0
- package/vendor/@stringsync/splates-server/agents/scratch.d.ts +7 -0
- package/vendor/@stringsync/splates-server/agents/shared-browser.d.ts +47 -0
- package/vendor/@stringsync/splates-server/agents/start-lock.d.ts +24 -0
- package/vendor/@stringsync/splates-server/agents/stream.d.ts +91 -0
- package/vendor/@stringsync/splates-server/agents/tool-calls.d.ts +18 -0
- package/vendor/@stringsync/splates-server/agents/watch.d.ts +46 -0
- package/vendor/@stringsync/splates-server/agents/watched.d.ts +43 -0
- package/vendor/@stringsync/splates-server/artifacts/artifact.d.ts +33 -0
- package/vendor/@stringsync/splates-server/artifacts/artifacts.d.ts +162 -0
- package/vendor/@stringsync/splates-server/artifacts/attach.d.ts +31 -0
- package/vendor/@stringsync/splates-server/artifacts/attachments.d.ts +50 -0
- package/vendor/@stringsync/splates-server/artifacts/index.d.ts +8 -0
- package/vendor/@stringsync/splates-server/artifacts/index.js +38 -0
- package/vendor/@stringsync/splates-server/artifacts/room.d.ts +46 -0
- package/vendor/@stringsync/splates-server/artifacts/routes.d.ts +22 -0
- package/vendor/@stringsync/splates-server/artifacts/viewers.d.ts +6 -0
- package/vendor/@stringsync/splates-server/auto-pick/classes.d.ts +29 -0
- package/vendor/@stringsync/splates-server/auto-pick/classify.d.ts +60 -0
- package/vendor/@stringsync/splates-server/auto-pick/clef.d.ts +15 -0
- package/vendor/@stringsync/splates-server/auto-pick/decide.d.ts +78 -0
- package/vendor/@stringsync/splates-server/auto-pick/defaults.d.ts +3 -0
- package/vendor/@stringsync/splates-server/auto-pick/follow-up.d.ts +25 -0
- package/vendor/@stringsync/splates-server/auto-pick/index.d.ts +24 -0
- package/vendor/@stringsync/splates-server/auto-pick/jev.d.ts +38 -0
- package/vendor/@stringsync/splates-server/auto-pick/judge.d.ts +21 -0
- package/vendor/@stringsync/splates-server/auto-pick/judged.d.ts +33 -0
- package/vendor/@stringsync/splates-server/auto-pick/key.d.ts +6 -0
- package/vendor/@stringsync/splates-server/auto-pick/lift.d.ts +18 -0
- package/vendor/@stringsync/splates-server/auto-pick/queue.d.ts +30 -0
- package/vendor/@stringsync/splates-server/auto-pick/rank.d.ts +10 -0
- package/vendor/@stringsync/splates-server/auto-pick/record.d.ts +19 -0
- package/vendor/@stringsync/splates-server/auto-pick/routes.d.ts +25 -0
- package/vendor/@stringsync/splates-server/auto-pick/rule-names.d.ts +9 -0
- package/vendor/@stringsync/splates-server/auto-pick/rules-routes.d.ts +49 -0
- package/vendor/@stringsync/splates-server/auto-pick/rules.d.ts +97 -0
- package/vendor/@stringsync/splates-server/auto-pick/start.d.ts +79 -0
- package/vendor/@stringsync/splates-server/auto-pick/store.d.ts +25 -0
- package/vendor/@stringsync/splates-server/auto-pick/system-one.d.ts +60 -0
- package/vendor/@stringsync/splates-server/auto-pick/trial.d.ts +32 -0
- package/vendor/@stringsync/splates-server/board/backlog.d.ts +4 -0
- package/vendor/@stringsync/splates-server/board/blocked-warning.d.ts +7 -0
- package/vendor/@stringsync/splates-server/board/browser.d.ts +8 -0
- package/vendor/@stringsync/splates-server/board/change-lane.d.ts +12 -0
- package/vendor/@stringsync/splates-server/board/deferral.d.ts +87 -0
- package/vendor/@stringsync/splates-server/board/elsewhere-links.d.ts +26 -0
- package/vendor/@stringsync/splates-server/board/elsewhere.d.ts +119 -0
- package/vendor/@stringsync/splates-server/board/index.d.ts +21 -0
- package/vendor/@stringsync/splates-server/board/index.js +112 -0
- package/vendor/@stringsync/splates-server/board/lane.d.ts +69 -0
- package/vendor/@stringsync/splates-server/board/lanes-from-tags.d.ts +17 -0
- package/vendor/@stringsync/splates-server/board/lanes.d.ts +117 -0
- package/vendor/@stringsync/splates-server/board/routes.d.ts +54 -0
- package/vendor/@stringsync/splates-server/board/store.d.ts +74 -0
- package/vendor/@stringsync/splates-server/board/task-edit.d.ts +81 -0
- package/vendor/@stringsync/splates-server/board/task-file.d.ts +24 -0
- package/vendor/@stringsync/splates-server/board/task-journal.d.ts +9 -0
- package/vendor/@stringsync/splates-server/board/task-lanes.d.ts +95 -0
- package/vendor/@stringsync/splates-server/board/task-list.d.ts +40 -0
- package/vendor/@stringsync/splates-server/board/task.d.ts +301 -0
- package/vendor/@stringsync/splates-server/board/tasks.d.ts +172 -0
- package/vendor/@stringsync/splates-server/chunk-files-jkqj87yx.js +14 -0
- package/vendor/@stringsync/splates-server/chunk-maps-mnjqydx4.txt +1 -0
- package/vendor/@stringsync/splates-server/chunks-3jkzx1q9.txt +1 -0
- package/vendor/@stringsync/splates-server/comma-list.d.ts +2 -0
- package/vendor/@stringsync/splates-server/comma-list.js +6 -0
- package/vendor/@stringsync/splates-server/config/browser.d.ts +1 -0
- package/vendor/@stringsync/splates-server/config/config.d.ts +210 -0
- package/vendor/@stringsync/splates-server/config/index.d.ts +6 -0
- package/vendor/@stringsync/splates-server/config/index.js +42 -0
- package/vendor/@stringsync/splates-server/config/legacy-names.d.ts +70 -0
- package/vendor/@stringsync/splates-server/config/legacy-ps.d.ts +32 -0
- package/vendor/@stringsync/splates-server/config/load.d.ts +46 -0
- package/vendor/@stringsync/splates-server/config/source.d.ts +7 -0
- package/vendor/@stringsync/splates-server/config/type-config.d.ts +14 -0
- package/vendor/@stringsync/splates-server/conversations/answered.d.ts +7 -0
- package/vendor/@stringsync/splates-server/conversations/archive.d.ts +16 -0
- package/vendor/@stringsync/splates-server/conversations/background.d.ts +21 -0
- package/vendor/@stringsync/splates-server/conversations/browser.d.ts +12 -0
- package/vendor/@stringsync/splates-server/conversations/choice.d.ts +8 -0
- package/vendor/@stringsync/splates-server/conversations/compact.d.ts +6 -0
- package/vendor/@stringsync/splates-server/conversations/conversation.d.ts +420 -0
- package/vendor/@stringsync/splates-server/conversations/conversations.d.ts +181 -0
- package/vendor/@stringsync/splates-server/conversations/entry.d.ts +286 -0
- package/vendor/@stringsync/splates-server/conversations/events.d.ts +36 -0
- package/vendor/@stringsync/splates-server/conversations/files.d.ts +62 -0
- package/vendor/@stringsync/splates-server/conversations/given.d.ts +18 -0
- package/vendor/@stringsync/splates-server/conversations/heard.d.ts +8 -0
- package/vendor/@stringsync/splates-server/conversations/host.d.ts +176 -0
- package/vendor/@stringsync/splates-server/conversations/index.d.ts +22 -0
- package/vendor/@stringsync/splates-server/conversations/index.js +80 -0
- package/vendor/@stringsync/splates-server/conversations/listing.d.ts +15 -0
- package/vendor/@stringsync/splates-server/conversations/log.d.ts +117 -0
- package/vendor/@stringsync/splates-server/conversations/messages.d.ts +23 -0
- package/vendor/@stringsync/splates-server/conversations/name.d.ts +38 -0
- package/vendor/@stringsync/splates-server/conversations/options.d.ts +87 -0
- package/vendor/@stringsync/splates-server/conversations/outside.d.ts +14 -0
- package/vendor/@stringsync/splates-server/conversations/reference.d.ts +2 -0
- package/vendor/@stringsync/splates-server/conversations/routes.d.ts +109 -0
- package/vendor/@stringsync/splates-server/conversations/search.d.ts +15 -0
- package/vendor/@stringsync/splates-server/conversations/spent.d.ts +19 -0
- package/vendor/@stringsync/splates-server/conversations/state.d.ts +606 -0
- package/vendor/@stringsync/splates-server/conversations/stream.d.ts +34 -0
- package/vendor/@stringsync/splates-server/conversations/transcript.d.ts +9 -0
- package/vendor/@stringsync/splates-server/conversations/tree.d.ts +11 -0
- package/vendor/@stringsync/splates-server/conversations/turn-end.d.ts +30 -0
- package/vendor/@stringsync/splates-server/conversations/turns.d.ts +134 -0
- package/vendor/@stringsync/splates-server/conversations/updates.d.ts +21 -0
- package/vendor/@stringsync/splates-server/creds/creds.d.ts +86 -0
- package/vendor/@stringsync/splates-server/creds/index.d.ts +6 -0
- package/vendor/@stringsync/splates-server/creds/index.js +28 -0
- package/vendor/@stringsync/splates-server/creds/key-file.d.ts +21 -0
- package/vendor/@stringsync/splates-server/creds/requests.d.ts +54 -0
- package/vendor/@stringsync/splates-server/creds/routes.d.ts +16 -0
- package/vendor/@stringsync/splates-server/creds/stores.d.ts +37 -0
- package/vendor/@stringsync/splates-server/dictate/connection.d.ts +18 -0
- package/vendor/@stringsync/splates-server/dictate/dictate.d.ts +16 -0
- package/vendor/@stringsync/splates-server/dictate/index.d.ts +4 -0
- package/vendor/@stringsync/splates-server/dictate/personal.d.ts +26 -0
- package/vendor/@stringsync/splates-server/dictate/transcriber.d.ts +16 -0
- package/vendor/@stringsync/splates-server/dictate/vocabulary.d.ts +12 -0
- package/vendor/@stringsync/splates-server/evals/agents-routes.d.ts +27 -0
- package/vendor/@stringsync/splates-server/evals/agents.d.ts +25 -0
- package/vendor/@stringsync/splates-server/evals/contract.d.ts +73 -0
- package/vendor/@stringsync/splates-server/evals/done.d.ts +11 -0
- package/vendor/@stringsync/splates-server/evals/import.d.ts +10 -0
- package/vendor/@stringsync/splates-server/evals/index.d.ts +19 -0
- package/vendor/@stringsync/splates-server/evals/index.js +40 -0
- package/vendor/@stringsync/splates-server/evals/inspect.d.ts +66 -0
- package/vendor/@stringsync/splates-server/evals/launch-routes.d.ts +39 -0
- package/vendor/@stringsync/splates-server/evals/launch.d.ts +123 -0
- package/vendor/@stringsync/splates-server/evals/routes.d.ts +39 -0
- package/vendor/@stringsync/splates-server/evals/store.d.ts +17 -0
- package/vendor/@stringsync/splates-server/evals/target.d.ts +3 -0
- package/vendor/@stringsync/splates-server/evals/types.d.ts +105 -0
- package/vendor/@stringsync/splates-server/exit.d.ts +55 -0
- package/vendor/@stringsync/splates-server/exit.js +12 -0
- package/vendor/@stringsync/splates-server/git-identity.d.ts +17 -0
- package/vendor/@stringsync/splates-server/git-process.d.ts +8 -0
- package/vendor/@stringsync/splates-server/git.d.ts +168 -0
- package/vendor/@stringsync/splates-server/hooks/commands.d.ts +31 -0
- package/vendor/@stringsync/splates-server/hooks/edit.d.ts +24 -0
- package/vendor/@stringsync/splates-server/hooks/events.d.ts +20 -0
- package/vendor/@stringsync/splates-server/hooks/groomer.d.ts +8 -0
- package/vendor/@stringsync/splates-server/hooks/index.d.ts +17 -0
- package/vendor/@stringsync/splates-server/hooks/index.js +61 -0
- package/vendor/@stringsync/splates-server/hooks/now.d.ts +9 -0
- package/vendor/@stringsync/splates-server/hooks/routes.d.ts +39 -0
- package/vendor/@stringsync/splates-server/hooks/runner.d.ts +75 -0
- package/vendor/@stringsync/splates-server/hooks/runs.d.ts +38 -0
- package/vendor/@stringsync/splates-server/hooks/schedule.d.ts +10 -0
- package/vendor/@stringsync/splates-server/hooks/scheduler.d.ts +28 -0
- package/vendor/@stringsync/splates-server/hooks/store.d.ts +110 -0
- package/vendor/@stringsync/splates-server/index-01z7ycdk.js +6 -0
- package/vendor/@stringsync/splates-server/index-0jttnv86.js +1309 -0
- package/vendor/@stringsync/splates-server/index-5axhdy8c.js +692 -0
- package/vendor/@stringsync/splates-server/index-76t8y8h5.js +779 -0
- package/vendor/@stringsync/splates-server/index-7s01973c.js +2356 -0
- package/vendor/@stringsync/splates-server/index-acbcm66f.js +1468 -0
- package/vendor/@stringsync/splates-server/index-caep3sde.js +27140 -0
- package/vendor/@stringsync/splates-server/index-e9z7s5hh.js +641 -0
- package/vendor/@stringsync/splates-server/index-g18nxyn7.js +99 -0
- package/vendor/@stringsync/splates-server/index-kmzdvvt0.js +23 -0
- package/vendor/@stringsync/splates-server/index-raqrwzdq.js +952 -0
- package/vendor/@stringsync/splates-server/index-t9w5a8ed.js +60 -0
- package/vendor/@stringsync/splates-server/limited.d.ts +8 -0
- package/vendor/@stringsync/splates-server/log.d.ts +14 -0
- package/vendor/@stringsync/splates-server/log.js +32 -0
- package/vendor/@stringsync/splates-server/merge/attribution.d.ts +24 -0
- package/vendor/@stringsync/splates-server/merge/batch.d.ts +119 -0
- package/vendor/@stringsync/splates-server/merge/blame.d.ts +21 -0
- package/vendor/@stringsync/splates-server/merge/branches.d.ts +151 -0
- package/vendor/@stringsync/splates-server/merge/charge.d.ts +18 -0
- package/vendor/@stringsync/splates-server/merge/clear-gate.d.ts +7 -0
- package/vendor/@stringsync/splates-server/merge/cores.d.ts +60 -0
- package/vendor/@stringsync/splates-server/merge/estimates.d.ts +28 -0
- package/vendor/@stringsync/splates-server/merge/finish.d.ts +43 -0
- package/vendor/@stringsync/splates-server/merge/follow.d.ts +50 -0
- package/vendor/@stringsync/splates-server/merge/gate.d.ts +108 -0
- package/vendor/@stringsync/splates-server/merge/github-app.d.ts +99 -0
- package/vendor/@stringsync/splates-server/merge/github-refused.d.ts +5 -0
- package/vendor/@stringsync/splates-server/merge/groups.d.ts +8 -0
- package/vendor/@stringsync/splates-server/merge/index.d.ts +19 -0
- package/vendor/@stringsync/splates-server/merge/index.js +46 -0
- package/vendor/@stringsync/splates-server/merge/landed.d.ts +28 -0
- package/vendor/@stringsync/splates-server/merge/landing.d.ts +38 -0
- package/vendor/@stringsync/splates-server/merge/local-landing.d.ts +11 -0
- package/vendor/@stringsync/splates-server/merge/merge-state.d.ts +37 -0
- package/vendor/@stringsync/splates-server/merge/merge.d.ts +45 -0
- package/vendor/@stringsync/splates-server/merge/output.d.ts +19 -0
- package/vendor/@stringsync/splates-server/merge/phases.d.ts +27 -0
- package/vendor/@stringsync/splates-server/merge/pre-lock.d.ts +28 -0
- package/vendor/@stringsync/splates-server/merge/preflight.d.ts +16 -0
- package/vendor/@stringsync/splates-server/merge/queue-failures.d.ts +11 -0
- package/vendor/@stringsync/splates-server/merge/rebase.d.ts +34 -0
- package/vendor/@stringsync/splates-server/merge/recent-failures.d.ts +10 -0
- package/vendor/@stringsync/splates-server/merge/refusal.d.ts +58 -0
- package/vendor/@stringsync/splates-server/merge/split.d.ts +34 -0
- package/vendor/@stringsync/splates-server/merge/steps.d.ts +37 -0
- package/vendor/@stringsync/splates-server/merge/test-report.d.ts +29 -0
- package/vendor/@stringsync/splates-server/merge/timing.d.ts +20 -0
- package/vendor/@stringsync/splates-server/merge/trunk.d.ts +69 -0
- package/vendor/@stringsync/splates-server/models/codex-limits.d.ts +19 -0
- package/vendor/@stringsync/splates-server/models/effort.d.ts +22 -0
- package/vendor/@stringsync/splates-server/models/index.d.ts +13 -0
- package/vendor/@stringsync/splates-server/models/index.js +76 -0
- package/vendor/@stringsync/splates-server/models/kimi-limits.d.ts +37 -0
- package/vendor/@stringsync/splates-server/models/kimi-usage.d.ts +19 -0
- package/vendor/@stringsync/splates-server/models/kimi.d.ts +10 -0
- package/vendor/@stringsync/splates-server/models/limits.d.ts +32 -0
- package/vendor/@stringsync/splates-server/models/models.d.ts +36 -0
- package/vendor/@stringsync/splates-server/models/offered.d.ts +47 -0
- package/vendor/@stringsync/splates-server/models/opencode-usage.d.ts +37 -0
- package/vendor/@stringsync/splates-server/models/roster.d.ts +130 -0
- package/vendor/@stringsync/splates-server/plans/asked.d.ts +99 -0
- package/vendor/@stringsync/splates-server/plans/browser.d.ts +13 -0
- package/vendor/@stringsync/splates-server/plans/decided.d.ts +12 -0
- package/vendor/@stringsync/splates-server/plans/demo.d.ts +29 -0
- package/vendor/@stringsync/splates-server/plans/index.d.ts +16 -0
- package/vendor/@stringsync/splates-server/plans/index.js +137 -0
- package/vendor/@stringsync/splates-server/plans/needs.d.ts +131 -0
- package/vendor/@stringsync/splates-server/plans/permission.d.ts +64 -0
- package/vendor/@stringsync/splates-server/plans/plan.d.ts +223 -0
- package/vendor/@stringsync/splates-server/plans/prompts.d.ts +148 -0
- package/vendor/@stringsync/splates-server/plans/reply.d.ts +45 -0
- package/vendor/@stringsync/splates-server/plans/run-command.d.ts +21 -0
- package/vendor/@stringsync/splates-server/plans/store.d.ts +26 -0
- package/vendor/@stringsync/splates-server/plans/unanswered.d.ts +15 -0
- package/vendor/@stringsync/splates-server/ports/index.d.ts +8 -0
- package/vendor/@stringsync/splates-server/ports/index.js +36 -0
- package/vendor/@stringsync/splates-server/ports/list.d.ts +22 -0
- package/vendor/@stringsync/splates-server/ports/routes.d.ts +64 -0
- package/vendor/@stringsync/splates-server/ports/slot-tunnel.d.ts +24 -0
- package/vendor/@stringsync/splates-server/ports/slot.d.ts +28 -0
- package/vendor/@stringsync/splates-server/ports/slots.d.ts +150 -0
- package/vendor/@stringsync/splates-server/ports/socket.d.ts +26 -0
- package/vendor/@stringsync/splates-server/ports/task-ports.d.ts +39 -0
- package/vendor/@stringsync/splates-server/prices/index.d.ts +2 -0
- package/vendor/@stringsync/splates-server/prices/prices.d.ts +65 -0
- package/vendor/@stringsync/splates-server/projects/everywhere-routes.d.ts +110 -0
- package/vendor/@stringsync/splates-server/projects/everywhere.d.ts +43 -0
- package/vendor/@stringsync/splates-server/projects/general.d.ts +4 -0
- package/vendor/@stringsync/splates-server/projects/index.d.ts +10 -0
- package/vendor/@stringsync/splates-server/projects/index.js +36 -0
- package/vendor/@stringsync/splates-server/projects/init.d.ts +28 -0
- package/vendor/@stringsync/splates-server/projects/picker.d.ts +64 -0
- package/vendor/@stringsync/splates-server/projects/projects.d.ts +155 -0
- package/vendor/@stringsync/splates-server/projects/reaches.d.ts +26 -0
- package/vendor/@stringsync/splates-server/push/index.d.ts +2 -0
- package/vendor/@stringsync/splates-server/push/notices.d.ts +44 -0
- package/vendor/@stringsync/splates-server/push/push.d.ts +91 -0
- package/vendor/@stringsync/splates-server/queue/commands.d.ts +44 -0
- package/vendor/@stringsync/splates-server/queue/index.d.ts +7 -0
- package/vendor/@stringsync/splates-server/queue/index.js +44 -0
- package/vendor/@stringsync/splates-server/queue/moves.d.ts +15 -0
- package/vendor/@stringsync/splates-server/queue/name.d.ts +9 -0
- package/vendor/@stringsync/splates-server/queue/order.d.ts +50 -0
- package/vendor/@stringsync/splates-server/queue/runner.d.ts +129 -0
- package/vendor/@stringsync/splates-server/records/elsewhere.d.ts +27 -0
- package/vendor/@stringsync/splates-server/records/events.d.ts +556 -0
- package/vendor/@stringsync/splates-server/records/format.d.ts +92 -0
- package/vendor/@stringsync/splates-server/records/home.d.ts +72 -0
- package/vendor/@stringsync/splates-server/records/index.d.ts +10 -0
- package/vendor/@stringsync/splates-server/records/index.js +40 -0
- package/vendor/@stringsync/splates-server/records/journal.d.ts +65 -0
- package/vendor/@stringsync/splates-server/records/lease-lock.d.ts +29 -0
- package/vendor/@stringsync/splates-server/records/migration.d.ts +94 -0
- package/vendor/@stringsync/splates-server/records/one-task-store.d.ts +15 -0
- package/vendor/@stringsync/splates-server/records/repository.d.ts +137 -0
- package/vendor/@stringsync/splates-server/records/task-files.d.ts +8 -0
- package/vendor/@stringsync/splates-server/records/task-stages.d.ts +7 -0
- package/vendor/@stringsync/splates-server/records/to-sqlite.d.ts +3 -0
- package/vendor/@stringsync/splates-server/replica/aws-sign.d.ts +30 -0
- package/vendor/@stringsync/splates-server/replica/dir.d.ts +17 -0
- package/vendor/@stringsync/splates-server/replica/index.d.ts +14 -0
- package/vendor/@stringsync/splates-server/replica/index.js +29 -0
- package/vendor/@stringsync/splates-server/replica/layout.d.ts +45 -0
- package/vendor/@stringsync/splates-server/replica/place.d.ts +31 -0
- package/vendor/@stringsync/splates-server/replica/replica.d.ts +37 -0
- package/vendor/@stringsync/splates-server/replica/replicator.d.ts +102 -0
- package/vendor/@stringsync/splates-server/replica/restore.d.ts +40 -0
- package/vendor/@stringsync/splates-server/replica/s3.d.ts +45 -0
- package/vendor/@stringsync/splates-server/replica/shipped.d.ts +2 -0
- package/vendor/@stringsync/splates-server/replica/status.d.ts +18 -0
- package/vendor/@stringsync/splates-server/server/assets.d.ts +35 -0
- package/vendor/@stringsync/splates-server/server/automations.d.ts +26 -0
- package/vendor/@stringsync/splates-server/server/chunk-files.d.ts +4 -0
- package/vendor/@stringsync/splates-server/server/conflict-watch.d.ts +22 -0
- package/vendor/@stringsync/splates-server/server/early-warning.d.ts +7 -0
- package/vendor/@stringsync/splates-server/server/general.d.ts +53 -0
- package/vendor/@stringsync/splates-server/server/groomer.d.ts +53 -0
- package/vendor/@stringsync/splates-server/server/held.d.ts +10 -0
- package/vendor/@stringsync/splates-server/server/http.d.ts +76 -0
- package/vendor/@stringsync/splates-server/server/index.d.ts +16 -0
- package/vendor/@stringsync/splates-server/server/index.js +14342 -0
- package/vendor/@stringsync/splates-server/server/interrupt.d.ts +24 -0
- package/vendor/@stringsync/splates-server/server/loop-watch.d.ts +12 -0
- package/vendor/@stringsync/splates-server/server/migrations.d.ts +46 -0
- package/vendor/@stringsync/splates-server/server/options.d.ts +143 -0
- package/vendor/@stringsync/splates-server/server/pages.d.ts +35 -0
- package/vendor/@stringsync/splates-server/server/ports.d.ts +11 -0
- package/vendor/@stringsync/splates-server/server/premerge.d.ts +61 -0
- package/vendor/@stringsync/splates-server/server/project-watch.d.ts +94 -0
- package/vendor/@stringsync/splates-server/server/project.d.ts +239 -0
- package/vendor/@stringsync/splates-server/server/pulse.d.ts +8 -0
- package/vendor/@stringsync/splates-server/server/release.d.ts +41 -0
- package/vendor/@stringsync/splates-server/server/replicas.d.ts +23 -0
- package/vendor/@stringsync/splates-server/server/restart.d.ts +177 -0
- package/vendor/@stringsync/splates-server/server/runtime-deps.d.ts +19 -0
- package/vendor/@stringsync/splates-server/server/server.d.ts +19 -0
- package/vendor/@stringsync/splates-server/server/servers.d.ts +31 -0
- package/vendor/@stringsync/splates-server/server/serving.d.ts +28 -0
- package/vendor/@stringsync/splates-server/server/shared.d.ts +14 -0
- package/vendor/@stringsync/splates-server/server/skills.d.ts +16 -0
- package/vendor/@stringsync/splates-server/server/sockets.d.ts +13 -0
- package/vendor/@stringsync/splates-server/server/start-settings.d.ts +15 -0
- package/vendor/@stringsync/splates-server/server/start.d.ts +21 -0
- package/vendor/@stringsync/splates-server/server/suite-grant.d.ts +26 -0
- package/vendor/@stringsync/splates-server/server/supervise.d.ts +81 -0
- package/vendor/@stringsync/splates-server/server/ticketed-lock.d.ts +80 -0
- package/vendor/@stringsync/splates-server/server/update-records.d.ts +8 -0
- package/vendor/@stringsync/splates-server/server/update.d.ts +56 -0
- package/vendor/@stringsync/splates-server/server/versions.d.ts +53 -0
- package/vendor/@stringsync/splates-server/setup/area-auto-pick.d.ts +7 -0
- package/vendor/@stringsync/splates-server/setup/area-dictation.d.ts +3 -0
- package/vendor/@stringsync/splates-server/setup/area-droplet.d.ts +3 -0
- package/vendor/@stringsync/splates-server/setup/area-evals.d.ts +3 -0
- package/vendor/@stringsync/splates-server/setup/area-github.d.ts +8 -0
- package/vendor/@stringsync/splates-server/setup/area-native.d.ts +7 -0
- package/vendor/@stringsync/splates-server/setup/area-opencode.d.ts +5 -0
- package/vendor/@stringsync/splates-server/setup/area-remote.d.ts +3 -0
- package/vendor/@stringsync/splates-server/setup/area-replica.d.ts +3 -0
- package/vendor/@stringsync/splates-server/setup/area-workers.d.ts +5 -0
- package/vendor/@stringsync/splates-server/setup/areas.d.ts +7 -0
- package/vendor/@stringsync/splates-server/setup/checks.d.ts +8 -0
- package/vendor/@stringsync/splates-server/setup/fields.d.ts +69 -0
- package/vendor/@stringsync/splates-server/setup/index.d.ts +8 -0
- package/vendor/@stringsync/splates-server/setup/index.js +25 -0
- package/vendor/@stringsync/splates-server/setup/opencode-model-error.d.ts +3 -0
- package/vendor/@stringsync/splates-server/setup/opencode-models.d.ts +44 -0
- package/vendor/@stringsync/splates-server/setup/opencode-recipe.d.ts +33 -0
- package/vendor/@stringsync/splates-server/setup/opencode-routes.d.ts +17 -0
- package/vendor/@stringsync/splates-server/setup/opencode.d.ts +61 -0
- package/vendor/@stringsync/splates-server/setup/project.d.ts +10 -0
- package/vendor/@stringsync/splates-server/setup/routes.d.ts +31 -0
- package/vendor/@stringsync/splates-server/setup/setup.d.ts +235 -0
- package/vendor/@stringsync/splates-server/setup/step-problem.d.ts +3 -0
- package/vendor/@stringsync/splates-server/setup/undo.d.ts +80 -0
- package/vendor/@stringsync/splates-server/ship/approval-watch.d.ts +57 -0
- package/vendor/@stringsync/splates-server/ship/approval.d.ts +17 -0
- package/vendor/@stringsync/splates-server/ship/cascade-routes.d.ts +25 -0
- package/vendor/@stringsync/splates-server/ship/cascade.d.ts +70 -0
- package/vendor/@stringsync/splates-server/ship/commands.d.ts +26 -0
- package/vendor/@stringsync/splates-server/ship/git.d.ts +31 -0
- package/vendor/@stringsync/splates-server/ship/graph.d.ts +60 -0
- package/vendor/@stringsync/splates-server/ship/history.d.ts +51 -0
- package/vendor/@stringsync/splates-server/ship/index.d.ts +28 -0
- package/vendor/@stringsync/splates-server/ship/live.d.ts +40 -0
- package/vendor/@stringsync/splates-server/ship/mechanical.d.ts +30 -0
- package/vendor/@stringsync/splates-server/ship/npm-terminal.d.ts +14 -0
- package/vendor/@stringsync/splates-server/ship/plan.d.ts +90 -0
- package/vendor/@stringsync/splates-server/ship/progress.d.ts +3 -0
- package/vendor/@stringsync/splates-server/ship/published-notice.d.ts +29 -0
- package/vendor/@stringsync/splates-server/ship/record.d.ts +55 -0
- package/vendor/@stringsync/splates-server/ship/registry.d.ts +13 -0
- package/vendor/@stringsync/splates-server/ship/release-events.d.ts +47 -0
- package/vendor/@stringsync/splates-server/ship/release-steps.d.ts +66 -0
- package/vendor/@stringsync/splates-server/ship/routes.d.ts +14 -0
- package/vendor/@stringsync/splates-server/ship/run.d.ts +132 -0
- package/vendor/@stringsync/splates-server/ship/selection.d.ts +36 -0
- package/vendor/@stringsync/splates-server/ship/served.d.ts +4 -0
- package/vendor/@stringsync/splates-server/ship/stages.d.ts +69 -0
- package/vendor/@stringsync/splates-server/ship/steps.d.ts +69 -0
- package/vendor/@stringsync/splates-server/ship/token-request.d.ts +11 -0
- package/vendor/@stringsync/splates-server/ship/token.d.ts +21 -0
- package/vendor/@stringsync/splates-server/spend/adapters.d.ts +5 -0
- package/vendor/@stringsync/splates-server/spend/billing.d.ts +38 -0
- package/vendor/@stringsync/splates-server/spend/index.d.ts +15 -0
- package/vendor/@stringsync/splates-server/spend/plans.d.ts +45 -0
- package/vendor/@stringsync/splates-server/spend/providers.d.ts +45 -0
- package/vendor/@stringsync/splates-server/spend/rates.d.ts +23 -0
- package/vendor/@stringsync/splates-server/spend/report.d.ts +39 -0
- package/vendor/@stringsync/splates-server/spend/routes.d.ts +46 -0
- package/vendor/@stringsync/splates-server/spend/spend.d.ts +15 -0
- package/vendor/@stringsync/splates-server/spend/totals.d.ts +63 -0
- package/vendor/@stringsync/splates-server/spend/turn.d.ts +39 -0
- package/vendor/@stringsync/splates-server/stats/adherence.d.ts +40 -0
- package/vendor/@stringsync/splates-server/stats/baselines.d.ts +55 -0
- package/vendor/@stringsync/splates-server/stats/budget-routes.d.ts +21 -0
- package/vendor/@stringsync/splates-server/stats/fact-tasks.d.ts +19 -0
- package/vendor/@stringsync/splates-server/stats/finding-facts.d.ts +37 -0
- package/vendor/@stringsync/splates-server/stats/findings.d.ts +89 -0
- package/vendor/@stringsync/splates-server/stats/index.d.ts +12 -0
- package/vendor/@stringsync/splates-server/stats/index.js +30 -0
- package/vendor/@stringsync/splates-server/stats/landed.d.ts +14 -0
- package/vendor/@stringsync/splates-server/stats/outcomes.d.ts +207 -0
- package/vendor/@stringsync/splates-server/stats/overrides.d.ts +19 -0
- package/vendor/@stringsync/splates-server/stats/routes.d.ts +23 -0
- package/vendor/@stringsync/splates-server/stats/scry-models.d.ts +22 -0
- package/vendor/@stringsync/splates-server/stats/skill-checks.d.ts +59 -0
- package/vendor/@stringsync/splates-server/stats/stats.d.ts +176 -0
- package/vendor/@stringsync/splates-server/stats/task-log.d.ts +67 -0
- package/vendor/@stringsync/splates-server/storage/atomic.d.ts +13 -0
- package/vendor/@stringsync/splates-server/storage/collection.d.ts +30 -0
- package/vendor/@stringsync/splates-server/storage/document.d.ts +26 -0
- package/vendor/@stringsync/splates-server/storage/fs-collection.d.ts +26 -0
- package/vendor/@stringsync/splates-server/storage/fs-document.d.ts +16 -0
- package/vendor/@stringsync/splates-server/storage/fs-log.d.ts +31 -0
- package/vendor/@stringsync/splates-server/storage/fs.d.ts +48 -0
- package/vendor/@stringsync/splates-server/storage/index.d.ts +11 -0
- package/vendor/@stringsync/splates-server/storage/index.js +18 -0
- package/vendor/@stringsync/splates-server/storage/json.d.ts +10 -0
- package/vendor/@stringsync/splates-server/storage/key.d.ts +7 -0
- package/vendor/@stringsync/splates-server/storage/log.d.ts +60 -0
- package/vendor/@stringsync/splates-server/storage/schema.d.ts +7 -0
- package/vendor/@stringsync/splates-server/storage/sqlite-collection.d.ts +31 -0
- package/vendor/@stringsync/splates-server/storage/sqlite-db.d.ts +62 -0
- package/vendor/@stringsync/splates-server/storage/sqlite-document.d.ts +20 -0
- package/vendor/@stringsync/splates-server/storage/sqlite-import.d.ts +11 -0
- package/vendor/@stringsync/splates-server/storage/sqlite-keys.d.ts +17 -0
- package/vendor/@stringsync/splates-server/storage/sqlite-lock.d.ts +25 -0
- package/vendor/@stringsync/splates-server/storage/sqlite-log.d.ts +31 -0
- package/vendor/@stringsync/splates-server/storage/sqlite.d.ts +53 -0
- package/vendor/@stringsync/splates-server/storage/storage.d.ts +87 -0
- package/vendor/@stringsync/splates-server/table.d.ts +5 -0
- package/vendor/@stringsync/splates-server/tasks/add.d.ts +45 -0
- package/vendor/@stringsync/splates-server/tasks/browser.d.ts +5 -0
- package/vendor/@stringsync/splates-server/tasks/checkpoint.d.ts +39 -0
- package/vendor/@stringsync/splates-server/tasks/claim.d.ts +14 -0
- package/vendor/@stringsync/splates-server/tasks/conflicts.d.ts +19 -0
- package/vendor/@stringsync/splates-server/tasks/diff.d.ts +29 -0
- package/vendor/@stringsync/splates-server/tasks/dispatched.d.ts +15 -0
- package/vendor/@stringsync/splates-server/tasks/editors.d.ts +22 -0
- package/vendor/@stringsync/splates-server/tasks/finished.d.ts +81 -0
- package/vendor/@stringsync/splates-server/tasks/follow.d.ts +48 -0
- package/vendor/@stringsync/splates-server/tasks/index.d.ts +30 -0
- package/vendor/@stringsync/splates-server/tasks/index.js +90 -0
- package/vendor/@stringsync/splates-server/tasks/landings.d.ts +17 -0
- package/vendor/@stringsync/splates-server/tasks/list.d.ts +18 -0
- package/vendor/@stringsync/splates-server/tasks/merge-output.d.ts +13 -0
- package/vendor/@stringsync/splates-server/tasks/open.d.ts +15 -0
- package/vendor/@stringsync/splates-server/tasks/overlaps.d.ts +16 -0
- package/vendor/@stringsync/splates-server/tasks/path.d.ts +13 -0
- package/vendor/@stringsync/splates-server/tasks/recommend.d.ts +30 -0
- package/vendor/@stringsync/splates-server/tasks/remove.d.ts +47 -0
- package/vendor/@stringsync/splates-server/tasks/retry.d.ts +35 -0
- package/vendor/@stringsync/splates-server/tasks/routes.d.ts +23 -0
- package/vendor/@stringsync/splates-server/tasks/show.d.ts +137 -0
- package/vendor/@stringsync/splates-server/tasks/snapshot.d.ts +86 -0
- package/vendor/@stringsync/splates-server/tasks/started-records.d.ts +71 -0
- package/vendor/@stringsync/splates-server/tasks/wait.d.ts +47 -0
- package/vendor/@stringsync/splates-server/tasks/worktree-checkouts.d.ts +10 -0
- package/vendor/@stringsync/splates-server/tasks/worktree-service.d.ts +151 -0
- package/vendor/@stringsync/splates-server/tasks/worktree.d.ts +342 -0
- package/vendor/@stringsync/splates-server/terminal/connection.d.ts +19 -0
- package/vendor/@stringsync/splates-server/terminal/held.d.ts +22 -0
- package/vendor/@stringsync/splates-server/terminal/index.d.ts +7 -0
- package/vendor/@stringsync/splates-server/terminal/pty.d.ts +45 -0
- package/vendor/@stringsync/splates-server/terminal/remote-pty.d.ts +34 -0
- package/vendor/@stringsync/splates-server/terminal/shell.d.ts +70 -0
- package/vendor/@stringsync/splates-server/terminal/spawn.d.ts +22 -0
- package/vendor/@stringsync/splates-server/terminal/terminal.d.ts +52 -0
- package/vendor/@stringsync/splates-server/tunnel/access.d.ts +61 -0
- package/vendor/@stringsync/splates-server/tunnel/cloudflare-api.d.ts +25 -0
- package/vendor/@stringsync/splates-server/tunnel/cloudflare-error.d.ts +5 -0
- package/vendor/@stringsync/splates-server/tunnel/cloudflared.d.ts +43 -0
- package/vendor/@stringsync/splates-server/tunnel/index.d.ts +14 -0
- package/vendor/@stringsync/splates-server/tunnel/index.js +70 -0
- package/vendor/@stringsync/splates-server/tunnel/machine.d.ts +18 -0
- package/vendor/@stringsync/splates-server/tunnel/provider.d.ts +37 -0
- package/vendor/@stringsync/splates-server/tunnel/remove.d.ts +35 -0
- package/vendor/@stringsync/splates-server/tunnel/saved-ports-host.d.ts +26 -0
- package/vendor/@stringsync/splates-server/tunnel/saved.d.ts +63 -0
- package/vendor/@stringsync/splates-server/tunnel/setup.d.ts +123 -0
- package/vendor/@stringsync/splates-server/tunnel/tunnel.d.ts +38 -0
- package/vendor/@stringsync/splates-server/workers/admin.d.ts +37 -0
- package/vendor/@stringsync/splates-server/workers/call-host.d.ts +68 -0
- package/vendor/@stringsync/splates-server/workers/channel.d.ts +90 -0
- package/vendor/@stringsync/splates-server/workers/connection.d.ts +24 -0
- package/vendor/@stringsync/splates-server/workers/coordinator-state.d.ts +44 -0
- package/vendor/@stringsync/splates-server/workers/daemon.d.ts +128 -0
- package/vendor/@stringsync/splates-server/workers/darwin-footprint.d.ts +7 -0
- package/vendor/@stringsync/splates-server/workers/darwin-temperature.d.ts +7 -0
- package/vendor/@stringsync/splates-server/workers/frame-too-large.d.ts +5 -0
- package/vendor/@stringsync/splates-server/workers/git.d.ts +11 -0
- package/vendor/@stringsync/splates-server/workers/gone.d.ts +36 -0
- package/vendor/@stringsync/splates-server/workers/identity.d.ts +30 -0
- package/vendor/@stringsync/splates-server/workers/index.d.ts +40 -0
- package/vendor/@stringsync/splates-server/workers/index.js +90 -0
- package/vendor/@stringsync/splates-server/workers/lifecycle.d.ts +14 -0
- package/vendor/@stringsync/splates-server/workers/list.d.ts +93 -0
- package/vendor/@stringsync/splates-server/workers/load.d.ts +55 -0
- package/vendor/@stringsync/splates-server/workers/local-id.d.ts +11 -0
- package/vendor/@stringsync/splates-server/workers/local-update.d.ts +81 -0
- package/vendor/@stringsync/splates-server/workers/log-file.d.ts +24 -0
- package/vendor/@stringsync/splates-server/workers/machine.d.ts +47 -0
- package/vendor/@stringsync/splates-server/workers/orphan.d.ts +31 -0
- package/vendor/@stringsync/splates-server/workers/os-sensors.d.ts +49 -0
- package/vendor/@stringsync/splates-server/workers/placement.d.ts +39 -0
- package/vendor/@stringsync/splates-server/workers/process-host.d.ts +60 -0
- package/vendor/@stringsync/splates-server/workers/process.d.ts +33 -0
- package/vendor/@stringsync/splates-server/workers/protocol.d.ts +153 -0
- package/vendor/@stringsync/splates-server/workers/pty-host.d.ts +35 -0
- package/vendor/@stringsync/splates-server/workers/queue.d.ts +39 -0
- package/vendor/@stringsync/splates-server/workers/records.d.ts +43 -0
- package/vendor/@stringsync/splates-server/workers/registry.d.ts +101 -0
- package/vendor/@stringsync/splates-server/workers/replay.d.ts +25 -0
- package/vendor/@stringsync/splates-server/workers/routes.d.ts +119 -0
- package/vendor/@stringsync/splates-server/workers/run-options.d.ts +11 -0
- package/vendor/@stringsync/splates-server/workers/run.d.ts +10 -0
- package/vendor/@stringsync/splates-server/workers/scheduler.d.ts +171 -0
- package/vendor/@stringsync/splates-server/workers/server-of.d.ts +23 -0
- package/vendor/@stringsync/splates-server/workers/server-socket.d.ts +25 -0
- package/vendor/@stringsync/splates-server/workers/session.d.ts +240 -0
- package/vendor/@stringsync/splates-server/workers/socket.d.ts +21 -0
- package/vendor/@stringsync/splates-server/workers/unix-listener.d.ts +23 -0
- package/vendor/@stringsync/splates-server/workers/unix-socket.d.ts +30 -0
- package/vendor/@stringsync/splates-server/workers/websocket-socket.d.ts +24 -0
- package/vendor/@stringsync/splates-server/workers/worker.d.ts +98 -0
- package/vendor/core/LICENSE +21 -0
- package/vendor/core/abort/aborts.d.ts +10 -0
- package/vendor/core/abort/index.d.ts +1 -0
- package/vendor/core/abort/index.js +24 -0
- package/vendor/core/assert/assert-error.d.ts +4 -0
- package/vendor/core/assert/assert.d.ts +24 -0
- package/vendor/core/assert/ensure.d.ts +18 -0
- package/vendor/core/assert/index.d.ts +3 -0
- package/vendor/core/assert/index.js +75 -0
- package/vendor/core/cmd/cli.d.ts +70 -0
- package/vendor/core/cmd/command.d.ts +96 -0
- package/vendor/core/cmd/deps.d.ts +12 -0
- package/vendor/core/cmd/help.d.ts +16 -0
- package/vendor/core/cmd/index.d.ts +6 -0
- package/vendor/core/cmd/index.js +477 -0
- package/vendor/core/cmd/middleware.d.ts +15 -0
- package/vendor/core/cmd/timed.d.ts +15 -0
- package/vendor/core/creds/credential-proxy.d.ts +55 -0
- package/vendor/core/creds/credential-source.d.ts +19 -0
- package/vendor/core/creds/credentials.d.ts +28 -0
- package/vendor/core/creds/dotenv-file.d.ts +22 -0
- package/vendor/core/creds/environment.d.ts +18 -0
- package/vendor/core/creds/index.d.ts +8 -0
- package/vendor/core/creds/index.js +337 -0
- package/vendor/core/creds/memory-secret-store.d.ts +33 -0
- package/vendor/core/creds/secret-store.d.ts +14 -0
- package/vendor/core/creds/system-secret-store.d.ts +49 -0
- package/vendor/core/dictate/buffered-sink.d.ts +9 -0
- package/vendor/core/dictate/cue.d.ts +10 -0
- package/vendor/core/dictate/dictation-failure.d.ts +5 -0
- package/vendor/core/dictate/dictation-link.d.ts +18 -0
- package/vendor/core/dictate/dictation-message.d.ts +24 -0
- package/vendor/core/dictate/dictation-relay.d.ts +28 -0
- package/vendor/core/dictate/index.d.ts +10 -0
- package/vendor/core/dictate/index.js +132 -0
- package/vendor/core/dictate/microphone.d.ts +42 -0
- package/vendor/core/dictate/openai-transcriber.d.ts +22 -0
- package/vendor/core/dictate/openai-transcription.d.ts +27 -0
- package/vendor/core/dictate/pcm.d.ts +5 -0
- package/vendor/core/dictate/pcm16-encoder.d.ts +20 -0
- package/vendor/core/dictate/server.d.ts +1 -0
- package/vendor/core/dictate/server.js +153 -0
- package/vendor/core/dictate/transcriber.d.ts +23 -0
- package/vendor/core/disposable/async-disposer.d.ts +15 -0
- package/vendor/core/disposable/async-resource.d.ts +4 -0
- package/vendor/core/disposable/disposables.d.ts +8 -0
- package/vendor/core/disposable/disposer.d.ts +13 -0
- package/vendor/core/disposable/index.d.ts +5 -0
- package/vendor/core/disposable/index.js +96 -0
- package/vendor/core/disposable/resource.d.ts +4 -0
- package/vendor/core/events/dispatcher.d.ts +18 -0
- package/vendor/core/events/eventful.d.ts +7 -0
- package/vendor/core/events/events.d.ts +14 -0
- package/vendor/core/events/index.d.ts +4 -0
- package/vendor/core/events/index.js +75 -0
- package/vendor/core/events/noop-events.d.ts +6 -0
- package/vendor/core/id/counter-id-provider.d.ts +6 -0
- package/vendor/core/id/id-provider.d.ts +7 -0
- package/vendor/core/id/index.d.ts +3 -0
- package/vendor/core/id/index.js +17 -0
- package/vendor/core/id/uuid-provider.d.ts +11 -0
- package/vendor/core/index-qk5dj664.js +4 -0
- package/vendor/core/log/color.d.ts +22 -0
- package/vendor/core/log/composite-logger.d.ts +7 -0
- package/vendor/core/log/console-logger.d.ts +6 -0
- package/vendor/core/log/index.d.ts +8 -0
- package/vendor/core/log/index.js +154 -0
- package/vendor/core/log/level-prefix-logger.d.ts +12 -0
- package/vendor/core/log/logger.d.ts +12 -0
- package/vendor/core/log/mdc-logger.d.ts +14 -0
- package/vendor/core/log/memory-logger.d.ts +8 -0
- package/vendor/core/log/prefix-logger.d.ts +12 -0
- package/vendor/core/md/index.d.ts +2 -0
- package/vendor/core/md/index.js +182 -0
- package/vendor/core/md/markdown.d.ts +56 -0
- package/vendor/core/md/writer.d.ts +22 -0
- package/vendor/core/push/base64url.d.ts +2 -0
- package/vendor/core/push/encrypt.d.ts +12 -0
- package/vendor/core/push/index.d.ts +4 -0
- package/vendor/core/push/index.js +137 -0
- package/vendor/core/push/push-failure.d.ts +7 -0
- package/vendor/core/push/pusher.d.ts +24 -0
- package/vendor/core/push/vapid.d.ts +18 -0
- package/vendor/core/push/web-pusher.d.ts +20 -0
- package/vendor/core/ship/artifact/artifact.d.ts +52 -0
- package/vendor/core/ship/bundle/bun-bundle.d.ts +71 -0
- package/vendor/core/ship/bundle/bundle-artifact.d.ts +21 -0
- package/vendor/core/ship/bundle/bundle.d.ts +13 -0
- package/vendor/core/ship/bundle/published.d.ts +45 -0
- package/vendor/core/ship/bundle/reach.d.ts +43 -0
- package/vendor/core/ship/bundle/vendor-bundle.d.ts +47 -0
- package/vendor/core/ship/cut.d.ts +64 -0
- package/vendor/core/ship/dry-run.d.ts +63 -0
- package/vendor/core/ship/git/cli-git.d.ts +25 -0
- package/vendor/core/ship/git/git-artifact.d.ts +23 -0
- package/vendor/core/ship/git/git.d.ts +19 -0
- package/vendor/core/ship/github/cli-github.d.ts +31 -0
- package/vendor/core/ship/github/cli-workflows.d.ts +25 -0
- package/vendor/core/ship/github/github-artifact.d.ts +18 -0
- package/vendor/core/ship/github/github.d.ts +10 -0
- package/vendor/core/ship/github/login.d.ts +3 -0
- package/vendor/core/ship/github/workflows.d.ts +27 -0
- package/vendor/core/ship/index.d.ts +26 -0
- package/vendor/core/ship/index.js +3203 -0
- package/vendor/core/ship/mirror/agent-files.d.ts +6 -0
- package/vendor/core/ship/mirror/mirror-build.d.ts +63 -0
- package/vendor/core/ship/mirror/mirror-guard.d.ts +10 -0
- package/vendor/core/ship/mirror/mirror-options.d.ts +75 -0
- package/vendor/core/ship/mirror/mirror-step.d.ts +109 -0
- package/vendor/core/ship/mirror/mirror-tooling.d.ts +59 -0
- package/vendor/core/ship/mirror/source-manifest.d.ts +27 -0
- package/vendor/core/ship/order.d.ts +15 -0
- package/vendor/core/ship/publish-workflow.d.ts +32 -0
- package/vendor/core/ship/registry/github-actions.d.ts +76 -0
- package/vendor/core/ship/registry/npm-registry.d.ts +70 -0
- package/vendor/core/ship/registry/registry-artifact.d.ts +31 -0
- package/vendor/core/ship/registry/registry.d.ts +85 -0
- package/vendor/core/ship/release-file.d.ts +22 -0
- package/vendor/core/ship/release-options.d.ts +122 -0
- package/vendor/core/ship/release.d.ts +61 -0
- package/vendor/core/ship/releases.d.ts +119 -0
- package/vendor/core/ship/shipped.d.ts +54 -0
- package/vendor/core/ship/skill-artifact.d.ts +27 -0
- package/vendor/core/ship/step-events.d.ts +91 -0
- package/vendor/core/ship/step-runner.d.ts +16 -0
- package/vendor/core/ship/step.d.ts +49 -0
- package/vendor/core/ship/trust.d.ts +11 -0
- package/vendor/core/ship/version.d.ts +9 -0
- package/vendor/core/ship/workspace/manifest-workspace.d.ts +61 -0
- package/vendor/core/ship/workspace/workspace.d.ts +29 -0
- package/vendor/core/skills/index.d.ts +1 -0
- package/vendor/core/skills/index.js +77 -0
- package/vendor/core/skills/project-skills.d.ts +53 -0
- package/vendor/core/system/fs/fs.d.ts +58 -0
- package/vendor/core/system/fs/node-fs.d.ts +18 -0
- package/vendor/core/system/glob/glob.d.ts +11 -0
- package/vendor/core/system/glob/node-glob.d.ts +12 -0
- package/vendor/core/system/heavy/heavy-jobs.d.ts +84 -0
- package/vendor/core/system/host-mapper/file-host-mapper.d.ts +20 -0
- package/vendor/core/system/host-mapper/host-mapper.d.ts +11 -0
- package/vendor/core/system/host-mapper/noop-host-mapper.d.ts +4 -0
- package/vendor/core/system/index.d.ts +25 -0
- package/vendor/core/system/index.js +1385 -0
- package/vendor/core/system/ip-provider/darwin-ip-provider.d.ts +6 -0
- package/vendor/core/system/ip-provider/ip-provider.d.ts +8 -0
- package/vendor/core/system/ip-provider/linux-ip-provider.d.ts +6 -0
- package/vendor/core/system/ip-provider/platform-ip-provider.d.ts +6 -0
- package/vendor/core/system/ip-provider/sequential-ip-provider.d.ts +6 -0
- package/vendor/core/system/ip-provider/static-ip-provider.d.ts +8 -0
- package/vendor/core/system/ip-provider/win32-ip-provider.d.ts +6 -0
- package/vendor/core/system/lock/file-lock.d.ts +50 -0
- package/vendor/core/system/lock/lock.d.ts +11 -0
- package/vendor/core/system/lock/memory-lock.d.ts +13 -0
- package/vendor/core/system/port-provider/open-port-provider.d.ts +38 -0
- package/vendor/core/system/port-provider/port-provider.d.ts +14 -0
- package/vendor/core/system/process-like/process-like.d.ts +22 -0
- package/vendor/core/system/ps/file-process.d.ts +40 -0
- package/vendor/core/system/ps/listening.d.ts +20 -0
- package/vendor/core/system/ps/node-ps.d.ts +39 -0
- package/vendor/core/system/ps/ps.d.ts +161 -0
- package/vendor/core/system/ps/reap.d.ts +22 -0
- package/vendor/core/system/undumpable.d.ts +32 -0
- package/vendor/core/system/walk.d.ts +10 -0
- package/vendor/core/time/clock/clock.d.ts +5 -0
- package/vendor/core/time/clock/system-clock.d.ts +5 -0
- package/vendor/core/time/debouncer.d.ts +25 -0
- package/vendor/core/time/duration.d.ts +38 -0
- package/vendor/core/time/index.d.ts +13 -0
- package/vendor/core/time/index.js +271 -0
- package/vendor/core/time/sleep.d.ts +2 -0
- package/vendor/core/time/stopwatch.d.ts +34 -0
- package/vendor/core/time/throttler.d.ts +26 -0
- package/vendor/core/time/time-ago.d.ts +14 -0
- package/vendor/core/time/timeouts.d.ts +12 -0
- package/vendor/core/time/timer/system-timer.d.ts +7 -0
- package/vendor/core/time/timer/timer.d.ts +11 -0
- package/vendor/core/time/wall-clock/system-wall-clock.d.ts +4 -0
- package/vendor/core/time/wall-clock/wall-clock.d.ts +14 -0
- package/waiting.d.ts +2 -2
- package/worker.d.ts +2 -2
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import type { Resource } from "../../../core/disposable/index.js";
|
|
2
|
+
import { type Eventful } from "../../../core/events/index.js";
|
|
3
|
+
import type { Agent, ProcessHandle } from "../agents";
|
|
4
|
+
import { Artifacts } from "../artifacts";
|
|
5
|
+
import type { ConversationDeps, ConversationEvents, ConversationHost } from "./host";
|
|
6
|
+
import { ConversationLog } from "./log";
|
|
7
|
+
import { type Answer, type Attached, type AutoPickSet, type ConversationState, type Device, type Limit, type QueueSpot, type Upload } from "./state";
|
|
8
|
+
import { type PromptOptions } from "./turns";
|
|
9
|
+
/**
|
|
10
|
+
* One conversation with one agent. Live, it holds the agent's process; read
|
|
11
|
+
* back from its log, it is what was said, and resumes on the next prompt.
|
|
12
|
+
*/
|
|
13
|
+
export declare class Conversation implements Eventful<ConversationEvents>, Resource, ConversationHost {
|
|
14
|
+
readonly state: ConversationState;
|
|
15
|
+
readonly log: ConversationLog;
|
|
16
|
+
private readonly deps;
|
|
17
|
+
/** What to run to resume it; null when its agent is no longer known. */
|
|
18
|
+
private ran;
|
|
19
|
+
/** Where it runs; null for a log too old to say. */
|
|
20
|
+
private dir;
|
|
21
|
+
private readonly dispatcher;
|
|
22
|
+
readonly events: import("../../../core/events/index.js").Events<ConversationEvents>;
|
|
23
|
+
private readonly files;
|
|
24
|
+
/** The files its agent kept as its outputs, read and changed here. */
|
|
25
|
+
readonly artifacts: Artifacts;
|
|
26
|
+
private readonly connection;
|
|
27
|
+
private readonly turns;
|
|
28
|
+
private readonly background;
|
|
29
|
+
/** Under way while the agent starts or comes back, for a prompt to wait on. */
|
|
30
|
+
opening: Promise<void> | null;
|
|
31
|
+
/** Stops the agent once it has sat idle `IDLE_STOP`; null while it works. */
|
|
32
|
+
private resting;
|
|
33
|
+
/** Set when it left its task's worktree mid-turn: stop once the turn ends. */
|
|
34
|
+
private leftWorktree;
|
|
35
|
+
/** Says `[SPLATES RECONNECT]` once its wait is up; null while none is due. */
|
|
36
|
+
private reconnecting;
|
|
37
|
+
/** How many times in a row it has reconnected by itself. */
|
|
38
|
+
private reconnects;
|
|
39
|
+
/** Let go of its process for a restart: nothing here ends it now. */
|
|
40
|
+
private detached;
|
|
41
|
+
/**
|
|
42
|
+
* Read back with what was said while it started still unheard, the
|
|
43
|
+
* server having gone down first: `sayUnsaid` starts it again to say it.
|
|
44
|
+
*/
|
|
45
|
+
private unsaid;
|
|
46
|
+
/** The place its agent holds on a worker; null while it has none. */
|
|
47
|
+
private grant;
|
|
48
|
+
/** Takes its agent out of the queue for a place; null while it waits in none. */
|
|
49
|
+
private placing;
|
|
50
|
+
/**
|
|
51
|
+
* Lets a held one go, to open its agent, or not, once stopped; null
|
|
52
|
+
* while it is not held.
|
|
53
|
+
*/
|
|
54
|
+
private latch;
|
|
55
|
+
/**
|
|
56
|
+
* What its next prompt is to follow, for an agent taken off a worker
|
|
57
|
+
* while idle: its new session knows nothing of the task. Null for none.
|
|
58
|
+
*/
|
|
59
|
+
private carry;
|
|
60
|
+
/**
|
|
61
|
+
* The question its agent was asking when a drain freed its place, kept
|
|
62
|
+
* on the page for the person to answer (`free`); null for none.
|
|
63
|
+
*/
|
|
64
|
+
private kept;
|
|
65
|
+
/** Stops hearing of workers that start draining; null with no placer. */
|
|
66
|
+
private readonly unlistenDrain;
|
|
67
|
+
private constructor();
|
|
68
|
+
/**
|
|
69
|
+
* A conversation as its log at `key` left it: stopped, whatever it was
|
|
70
|
+
* doing, unless its agent still runs on a worker, which the launcher
|
|
71
|
+
* takes back, and the conversation carries on where the log leaves off.
|
|
72
|
+
*/
|
|
73
|
+
static read(key: string, agents: Agent[], deps: ConversationDeps): Promise<Conversation | null>;
|
|
74
|
+
/**
|
|
75
|
+
* The agent `live` names, taken back on the worker it runs on, holding
|
|
76
|
+
* its place there; null when nothing here runs it any more, stopped as
|
|
77
|
+
* any dead process is.
|
|
78
|
+
*/
|
|
79
|
+
private static takeBack;
|
|
80
|
+
/** Starts `agent` in `cwd` and opens a session with it. */
|
|
81
|
+
static start({ settings, model, picking, ...opening }: Opening & {
|
|
82
|
+
/** Values to set, by setting id, once the session offers them. */
|
|
83
|
+
settings?: Record<string, string>;
|
|
84
|
+
/**
|
|
85
|
+
* The model to pick, by its value or name in the session's model
|
|
86
|
+
* setting, over what `settings` says. An unavailable choice fails.
|
|
87
|
+
*/
|
|
88
|
+
model?: string;
|
|
89
|
+
/**
|
|
90
|
+
* What Auto pick decides, once it has, to open on in place of
|
|
91
|
+
* `agent`, `settings` and `model`, which it shows meanwhile.
|
|
92
|
+
*/
|
|
93
|
+
picking?: Promise<Picked>;
|
|
94
|
+
}, deps: ConversationDeps): Promise<Conversation>;
|
|
95
|
+
/**
|
|
96
|
+
* Brings in `session`, one `agent` holds outside splates, such as from its
|
|
97
|
+
* CLI: loads it in `cwd`, writing what the agent replays of it to a new
|
|
98
|
+
* log, from which it resumes like any other.
|
|
99
|
+
*/
|
|
100
|
+
static bring({ session, title, ...opening }: Opening & {
|
|
101
|
+
session: string;
|
|
102
|
+
/** What the agent listed it as, until the replay says otherwise. */
|
|
103
|
+
title: string | null;
|
|
104
|
+
}, deps: ConversationDeps): Promise<Conversation>;
|
|
105
|
+
/** A new conversation with `agent` in `cwd`, its log begun, not yet opened. */
|
|
106
|
+
private static begin;
|
|
107
|
+
get id(): string;
|
|
108
|
+
/** What runs it; null when its agent is no longer known. */
|
|
109
|
+
get agent(): Agent | null;
|
|
110
|
+
/** Whether the agent takes images, as it said connecting; null while not connected. */
|
|
111
|
+
get sees(): boolean | null;
|
|
112
|
+
/** The agent's pid while it runs, for the commands it left running. */
|
|
113
|
+
get pid(): number | null;
|
|
114
|
+
/**
|
|
115
|
+
* The handle for reattaching after a server restart, or null when
|
|
116
|
+
* this process cannot survive a restart.
|
|
117
|
+
*/
|
|
118
|
+
get handle(): ProcessHandle | null;
|
|
119
|
+
/** The agent's session, once it has opened one. */
|
|
120
|
+
get sessionId(): string | null;
|
|
121
|
+
/** Where it runs; null for a log too old to say. */
|
|
122
|
+
get cwd(): string | null;
|
|
123
|
+
/**
|
|
124
|
+
* When it was archived, or when it started for a log too old to say; null
|
|
125
|
+
* while it is not archived.
|
|
126
|
+
*/
|
|
127
|
+
get archivedSince(): string | null;
|
|
128
|
+
/** Whether a checkpoint has ended and nothing has been said since. */
|
|
129
|
+
get stoppedByCheckpoint(): boolean;
|
|
130
|
+
now(): string;
|
|
131
|
+
/** Says `text` to the agent, with `files` (see `ConversationTurns`). */
|
|
132
|
+
prompt(text: string, files?: Upload[], from?: Device, opts?: PromptOptions): Promise<void>;
|
|
133
|
+
/** Takes back the `index`th queued message, answering with its words and files. */
|
|
134
|
+
unqueue(index: number): {
|
|
135
|
+
text: string;
|
|
136
|
+
files: Attached[];
|
|
137
|
+
};
|
|
138
|
+
/** Sends what is queued now, stopping the running turn first. */
|
|
139
|
+
sendNow(): Promise<void>;
|
|
140
|
+
/** Stops the agent's turn for the person, and stays open for the next. */
|
|
141
|
+
cancel(): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* Asks the agent to bring its `SPLATES.md` up to date and stop (see
|
|
144
|
+
* `ConversationTurns`), for `budget`, a worker budget hard stop's reason,
|
|
145
|
+
* when that is what asks.
|
|
146
|
+
*/
|
|
147
|
+
checkpoint(merging: boolean, budget?: string | null): Promise<void>;
|
|
148
|
+
/**
|
|
149
|
+
* Checkpoints the agent for the person, as `checkpoint` does, and leaves
|
|
150
|
+
* it stopped there: nothing resumes a pause, and Power leaves it alone.
|
|
151
|
+
*/
|
|
152
|
+
pause(merging: boolean): Promise<void>;
|
|
153
|
+
/** Forgets the checkpoint, done or not, so the next starts afresh. */
|
|
154
|
+
dismissCheckpoint(): void;
|
|
155
|
+
/** Settles once the checkpoint asked is no longer under way. */
|
|
156
|
+
answered(): Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* Settles the agent's pending ask, if `id` is still the one it is on.
|
|
159
|
+
* One kept from an agent a drain freed carries it on instead, the
|
|
160
|
+
* answer said as the person's words after its task (`free`).
|
|
161
|
+
*/
|
|
162
|
+
answer(id: string, answer: Answer): void;
|
|
163
|
+
/** The file `name` the person sent, or null when they sent none by that name. */
|
|
164
|
+
attachment(name: string): Promise<{
|
|
165
|
+
bytes: Uint8Array;
|
|
166
|
+
mimeType: string;
|
|
167
|
+
} | null>;
|
|
168
|
+
/** Keeps the plan's windows in `limits`, asked of the agent's maker. */
|
|
169
|
+
hear(limits: Limit[]): void;
|
|
170
|
+
/** Stops background command `id`, leaving the agent's turn as it is. */
|
|
171
|
+
stopBackground(id: string): Promise<void>;
|
|
172
|
+
/** What background command `id` has printed, then more as it prints it. */
|
|
173
|
+
backgroundOutput(id: string): ReadableStream<Uint8Array>;
|
|
174
|
+
/**
|
|
175
|
+
* Sets the session's setting `id` to `value`, one the agent offers: at once
|
|
176
|
+
* while the agent runs, or, while it is stopped, when it next resumes.
|
|
177
|
+
*/
|
|
178
|
+
choose(id: string, value: string): Promise<void>;
|
|
179
|
+
/** Keeps what Auto pick set it to, as it started. */
|
|
180
|
+
autoPicked(pick: AutoPickSet): void;
|
|
181
|
+
/**
|
|
182
|
+
* Switches Auto pick `on` for its model and effort, to judge what the
|
|
183
|
+
* person says next, or off, leaving them as they are.
|
|
184
|
+
*/
|
|
185
|
+
switchAutoPick(on: boolean): void;
|
|
186
|
+
lift(settings: Record<string, string>, pick: AutoPickSet): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Brings a stopped conversation back: a new process, the same session, or
|
|
189
|
+
* a new one when its agent died before opening one.
|
|
190
|
+
*/
|
|
191
|
+
resume(): Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* Follows the agent into a task's worktree, or back to the main tree.
|
|
194
|
+
* A running session stays where it opened; a resumed one opens in the new.
|
|
195
|
+
*/
|
|
196
|
+
move(task: string | null, cwd: string, base?: string | null, caller?: string | null): void;
|
|
197
|
+
/**
|
|
198
|
+
* Holds it for its queued task, out of the line for a place, until
|
|
199
|
+
* `release` gives it the task: what is said to it meanwhile waits for
|
|
200
|
+
* its agent, as while any agent starts. A stopped one, as a held one
|
|
201
|
+
* reads back after a restart, is held again; one held already, or under
|
|
202
|
+
* way, is left as it is.
|
|
203
|
+
*/
|
|
204
|
+
hold(): void;
|
|
205
|
+
/** Whether it is held for its queued task now (`hold`). */
|
|
206
|
+
get held(): boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Gives a held one its task, the queue having started it in `cwd`: it
|
|
209
|
+
* follows the task there and takes its place in the line for a place.
|
|
210
|
+
*/
|
|
211
|
+
release(task: string, cwd: string, base?: string | null, caller?: string | null): void;
|
|
212
|
+
/** Keeps where a held one stands in the queue of tasks, as the queue says it. */
|
|
213
|
+
waitsAt(spot: QueueSpot): void;
|
|
214
|
+
/** Lets a held one go, to open its agent or to stop. */
|
|
215
|
+
private letGo;
|
|
216
|
+
/** Stops the agent; the next prompt resumes where it left off. */
|
|
217
|
+
stop({ idle }?: {
|
|
218
|
+
idle?: boolean;
|
|
219
|
+
}): Promise<void>;
|
|
220
|
+
/**
|
|
221
|
+
* Stops it as the server goes down. One still starting, as while it
|
|
222
|
+
* waits for a place, keeps that unsaid, with whatever was said to it yet
|
|
223
|
+
* to reach its agent, so the next run starts it again and says it, as
|
|
224
|
+
* though the server had stayed up.
|
|
225
|
+
*/
|
|
226
|
+
shutDown(): Promise<void>;
|
|
227
|
+
/**
|
|
228
|
+
* Starts it again when it was read back with what was said while it
|
|
229
|
+
* started still unheard (`shutDown`), saying it once the session opens;
|
|
230
|
+
* one read back any other way waits for the person.
|
|
231
|
+
*/
|
|
232
|
+
sayUnsaid(): void;
|
|
233
|
+
/** Stops the agent, leaving what it was told `unsaid` for the next run or not. */
|
|
234
|
+
private halt;
|
|
235
|
+
/** Keeps `picks`, to set once the session opens, through a restart before it does. */
|
|
236
|
+
private request;
|
|
237
|
+
/**
|
|
238
|
+
* Moves its agent to a new worker once the one it ran on is gone, as a
|
|
239
|
+
* forced remove or a drain does, so the task carries on from its last
|
|
240
|
+
* checkpoint. One in no task stays stopped.
|
|
241
|
+
*/
|
|
242
|
+
requeue(): Promise<void>;
|
|
243
|
+
/**
|
|
244
|
+
* Starts its agent again in a new session on its task, for one stuck or
|
|
245
|
+
* dead there: the old session ends, and the new one is told to claim the
|
|
246
|
+
* task, with what the old one said last kept for it to read.
|
|
247
|
+
*/
|
|
248
|
+
restart(): Promise<void>;
|
|
249
|
+
/** Keeps what was said so far for another agent to read, answering where it opens. */
|
|
250
|
+
keepTranscript(): Promise<string>;
|
|
251
|
+
/**
|
|
252
|
+
* Lets go of its task for another agent to take on: stops its agent and
|
|
253
|
+
* moves it to the main tree, where it resumes if prompted again, and
|
|
254
|
+
* answers the prompt that has the next agent claim the task, with what
|
|
255
|
+
* this one said last kept for it to read.
|
|
256
|
+
*/
|
|
257
|
+
handOff(): Promise<string>;
|
|
258
|
+
/** Its task, for `doing` that needs one; refused when it is in none. */
|
|
259
|
+
private onTask;
|
|
260
|
+
/**
|
|
261
|
+
* Lets go of the place of an agent asking the person something on a
|
|
262
|
+
* worker that drains, rather than keep the worker up until they answer,
|
|
263
|
+
* which may be hours: ends it, its worktree left as it stands, and keeps
|
|
264
|
+
* its question on the page. The answer, or whatever the person says
|
|
265
|
+
* instead, places it again in a new session, told `[SPLATES TASK <task>]`
|
|
266
|
+
* first, as `requeue` does for an idle one. One in no task has nothing
|
|
267
|
+
* to carry on from, so it keeps its place until answered.
|
|
268
|
+
*/
|
|
269
|
+
private free;
|
|
270
|
+
/**
|
|
271
|
+
* Moves its agent off a worker being replaced, at its next pause, so the
|
|
272
|
+
* worker can update without waiting on the person: one asking does as
|
|
273
|
+
* `free` says; one idle, nothing running in the background, ends and
|
|
274
|
+
* frees its place, and the person's next words place it again in a new
|
|
275
|
+
* session told `[SPLATES TASK <task>]` first, as `requeue` does for an
|
|
276
|
+
* idle one. One at work moves once its turn ends. One in no task has
|
|
277
|
+
* nothing to carry on from, so it keeps its place until it ends.
|
|
278
|
+
*/
|
|
279
|
+
private moveOff;
|
|
280
|
+
/** Lets go of the question kept by `free`, its session gone. */
|
|
281
|
+
private unkeep;
|
|
282
|
+
/**
|
|
283
|
+
* Lets go of the agent's process without ending it, for a server
|
|
284
|
+
* started again to take back from the worker: its log, flushed, says
|
|
285
|
+
* where it stopped. Answers whether there was one to let go of; a
|
|
286
|
+
* conversation with none, or one nothing could take back, stops as ever.
|
|
287
|
+
*/
|
|
288
|
+
detach(): Promise<boolean>;
|
|
289
|
+
/**
|
|
290
|
+
* Stops it and puts it away, off the list of conversations; `with`, the
|
|
291
|
+
* conversation whose archiving takes it along, which brings it back;
|
|
292
|
+
* `rest`, a persistent agent's run ended with its role still on.
|
|
293
|
+
* Its artifacts keep only what their panel shows.
|
|
294
|
+
*/
|
|
295
|
+
archive(withConversation?: string, { rest }?: {
|
|
296
|
+
rest?: boolean;
|
|
297
|
+
}): Promise<void>;
|
|
298
|
+
/** Names it `name` over the agent's title; blank goes back to the title. */
|
|
299
|
+
rename(name: string): Promise<void>;
|
|
300
|
+
/** Back on the list, stopped until the next prompt. */
|
|
301
|
+
unarchive(): Promise<void>;
|
|
302
|
+
/** Keeps it atop the list, or lets it go back among the rest. */
|
|
303
|
+
pin(pinned: boolean): Promise<void>;
|
|
304
|
+
/**
|
|
305
|
+
* Nests it in the list under the conversation `id`, or at the top for
|
|
306
|
+
* null, over where its task would, cutting it loose from the conversation
|
|
307
|
+
* that started it or added its task: that one no longer tells it, hears
|
|
308
|
+
* from it, or archives it along. Never for a subagent, which stays with
|
|
309
|
+
* the one it answers to.
|
|
310
|
+
*/
|
|
311
|
+
reparent(id: string | null): Promise<void>;
|
|
312
|
+
/** Settles once everything said so far is in its log, for a reader of the file. */
|
|
313
|
+
saved(): Promise<void>;
|
|
314
|
+
/** Marks it seen, or unseen again for the person to come back to. */
|
|
315
|
+
markUnread(unread: boolean): Promise<void>;
|
|
316
|
+
/**
|
|
317
|
+
* Keeps that the person has read `read` of its messages, never fewer than
|
|
318
|
+
* before nor more than went out.
|
|
319
|
+
*/
|
|
320
|
+
markRead(read: number): Promise<void>;
|
|
321
|
+
/** Stops it and deletes its log and files, for good. */
|
|
322
|
+
delete(): Promise<void>;
|
|
323
|
+
dispose(): void;
|
|
324
|
+
/** Marks it `unread` or not, keeping how much was seen when it was read. */
|
|
325
|
+
flag(unread: boolean): void;
|
|
326
|
+
/** Marks whether a run its eval card started is going. */
|
|
327
|
+
evaluate(running: boolean): void;
|
|
328
|
+
/** Back to idle once a turn ends, then on to what was queued meanwhile. */
|
|
329
|
+
ended(error: string | null): void;
|
|
330
|
+
/**
|
|
331
|
+
* Ends the agent's process, with `error` for one that failed, and keeps
|
|
332
|
+
* that it stopped, and whether what it was told is left `unsaid`, for the
|
|
333
|
+
* next run to say.
|
|
334
|
+
*/
|
|
335
|
+
close(error: string | null, { unsaid, idle }?: {
|
|
336
|
+
unsaid?: boolean;
|
|
337
|
+
idle?: boolean;
|
|
338
|
+
}): Promise<void>;
|
|
339
|
+
/**
|
|
340
|
+
* Carries on with the turn a lost connection cut short, as the page's
|
|
341
|
+
* Reconnect button would, once `RECONNECT_WAIT` is up: a worker that comes
|
|
342
|
+
* back without the agent's process loses it just as it reconnects. After
|
|
343
|
+
* `RECONNECTS` tries in a row with no turn ending between them, the
|
|
344
|
+
* button is left to the person.
|
|
345
|
+
*/
|
|
346
|
+
private reconnect;
|
|
347
|
+
set(next: Partial<ConversationState>): void;
|
|
348
|
+
changed(): void;
|
|
349
|
+
/**
|
|
350
|
+
* Stops an agent left idle `IDLE_STOP`, with no command running in the background,
|
|
351
|
+
* no question open and no checkpoint, so its process exits and takes what
|
|
352
|
+
* it started along, MCP servers and browsers included. The next prompt
|
|
353
|
+
* resumes the same session.
|
|
354
|
+
*/
|
|
355
|
+
private rest;
|
|
356
|
+
/** Whether `dir` is still there. */
|
|
357
|
+
private there;
|
|
358
|
+
/**
|
|
359
|
+
* Opens on what Auto pick decides once it has, or, when the pick fails,
|
|
360
|
+
* on what the conversation started on; opens nothing when it was stopped
|
|
361
|
+
* meanwhile. The model is asked for only now, so a log read back mid-pick
|
|
362
|
+
* asks for none the pick may not keep.
|
|
363
|
+
*/
|
|
364
|
+
private pick;
|
|
365
|
+
/**
|
|
366
|
+
* Opens the agent in `cwd` once it has a place, clearing `opening` once it
|
|
367
|
+
* has, failed to, or was stopped while it waited for one.
|
|
368
|
+
*/
|
|
369
|
+
private wake;
|
|
370
|
+
/**
|
|
371
|
+
* Waits in the queue for a worker for its agent, keeping where it waits
|
|
372
|
+
* in its state: its placement on the worker it was placed on, undefined
|
|
373
|
+
* with no queue, or null once a stop takes it out of line. An automatic
|
|
374
|
+
* one also waits while starts are paused; the person's own wait only
|
|
375
|
+
* while no worker they can run on is up.
|
|
376
|
+
*/
|
|
377
|
+
private place;
|
|
378
|
+
/** Keeps where its agent waits for a place, saying so only when that changed. */
|
|
379
|
+
private queued;
|
|
380
|
+
}
|
|
381
|
+
/** What a conversation is opened with, started afresh or brought in. */
|
|
382
|
+
interface Opening {
|
|
383
|
+
id: string;
|
|
384
|
+
agent: Agent;
|
|
385
|
+
task: string | null;
|
|
386
|
+
/** The branch `task` was cut from. */
|
|
387
|
+
base?: string | null;
|
|
388
|
+
/** The conversation whose agent added `task`. */
|
|
389
|
+
caller?: string | null;
|
|
390
|
+
cwd: string;
|
|
391
|
+
/** Runs projectless in its own scratch workspace. */
|
|
392
|
+
scratch?: boolean;
|
|
393
|
+
/** Started on what a queued task or `splates add --agent` assigned. */
|
|
394
|
+
assigned?: boolean;
|
|
395
|
+
/** The lane orchestrator that handed it its task, which hears when it stops. */
|
|
396
|
+
startedBy?: string | null;
|
|
397
|
+
/** Whether the server's queue or a hook starts it, so it waits while starts are paused. */
|
|
398
|
+
automatic?: boolean;
|
|
399
|
+
/** The project's splates skill version as it starts; null when it has none. */
|
|
400
|
+
skill?: string | null;
|
|
401
|
+
/** The queued task it is held for until the queue starts it (`hold`). */
|
|
402
|
+
heldForTask?: number;
|
|
403
|
+
/** What to call it until its agent names it. */
|
|
404
|
+
title?: string | null;
|
|
405
|
+
/** The persistent agent's role it is started for, as `"groomer"`. */
|
|
406
|
+
persistent?: string;
|
|
407
|
+
/** The automation that starts it, by its id. */
|
|
408
|
+
automation?: string;
|
|
409
|
+
/** The ship whose adoption task it runs, by its id. */
|
|
410
|
+
ship?: string;
|
|
411
|
+
}
|
|
412
|
+
/** What Auto pick decided for a conversation to open on, its agent as `A` names it. */
|
|
413
|
+
export interface Picked<A = Agent> {
|
|
414
|
+
agent: A;
|
|
415
|
+
/** The model to pick, as `Conversation.start` takes it; none for the agent's default. */
|
|
416
|
+
model?: string;
|
|
417
|
+
/** Values to set, by setting id, once the session offers them. */
|
|
418
|
+
settings: Record<string, string>;
|
|
419
|
+
}
|
|
420
|
+
export {};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { Resource } from "../../../core/disposable/index.js";
|
|
2
|
+
import { type Eventful } from "../../../core/events/index.js";
|
|
3
|
+
import { type Agent, type Session } from "../agents";
|
|
4
|
+
import { Conversation, type Picked } from "./conversation";
|
|
5
|
+
import type { ConversationsEvents, Lift } from "./host";
|
|
6
|
+
import type { ConversationsOptions } from "./options";
|
|
7
|
+
import type { Limit, Setting } from "./state";
|
|
8
|
+
/** How many archived conversations are kept; older archived ones are deleted. */
|
|
9
|
+
export declare const ARCHIVED_KEPT = 200;
|
|
10
|
+
/**
|
|
11
|
+
* Every conversation in the repo: the live ones this process started, and
|
|
12
|
+
* the stopped ones read back from their logs.
|
|
13
|
+
*/
|
|
14
|
+
export declare class Conversations implements Eventful<ConversationsEvents>, Resource {
|
|
15
|
+
readonly dir: string;
|
|
16
|
+
readonly agents: Agent[];
|
|
17
|
+
private readonly dispatcher;
|
|
18
|
+
readonly events: import("../../../core/events/index.js").Events<ConversationsEvents>;
|
|
19
|
+
private readonly known;
|
|
20
|
+
private readonly fs;
|
|
21
|
+
private readonly kimiHome;
|
|
22
|
+
/** Where the conversations are kept, each log `<id>.jsonl` in it. */
|
|
23
|
+
private readonly storage;
|
|
24
|
+
private readonly ids;
|
|
25
|
+
private readonly launcher;
|
|
26
|
+
private readonly placer;
|
|
27
|
+
private readonly machine;
|
|
28
|
+
private readonly starting;
|
|
29
|
+
private readonly timer;
|
|
30
|
+
private readonly clock;
|
|
31
|
+
private readonly watch;
|
|
32
|
+
private readonly offered;
|
|
33
|
+
private readonly limited;
|
|
34
|
+
private readonly adherence;
|
|
35
|
+
private readonly outcomes;
|
|
36
|
+
private readonly spend;
|
|
37
|
+
private readonly readLimits;
|
|
38
|
+
private readonly root;
|
|
39
|
+
private readonly projects;
|
|
40
|
+
private readonly servers;
|
|
41
|
+
private readonly artifacts;
|
|
42
|
+
/** What every conversation's artifacts make room through, across the project. */
|
|
43
|
+
private readonly room;
|
|
44
|
+
/** The read of the records on disk, shared by every caller until it settles. */
|
|
45
|
+
private loaded;
|
|
46
|
+
/** The last deletion of archived conversations past `ARCHIVED_KEPT`, so they run one at a time. */
|
|
47
|
+
private pruning;
|
|
48
|
+
/** When each agent's limits were last asked for, by its id, in epoch ms. */
|
|
49
|
+
private readonly asked;
|
|
50
|
+
/** Where `splates server` answers, once it does, for the agents' CLI. */
|
|
51
|
+
url: string | null;
|
|
52
|
+
/** What looks again at what the person says in a conversation Auto pick started; null for nothing. */
|
|
53
|
+
lift: Lift | null;
|
|
54
|
+
/** Replaces the agents new conversations can start with; running ones keep theirs. */
|
|
55
|
+
refreshRoster(agents: Agent[]): void;
|
|
56
|
+
constructor(dir: string, agents: Agent[], opts?: ConversationsOptions);
|
|
57
|
+
/** What each conversation is made with. */
|
|
58
|
+
private get deps();
|
|
59
|
+
/**
|
|
60
|
+
* What each agent's sessions last offered, from any project, by its id:
|
|
61
|
+
* what a first conversation with one shows before it starts.
|
|
62
|
+
*/
|
|
63
|
+
settings(): Promise<Record<string, Setting[]>>;
|
|
64
|
+
/** Whether each agent that connected here last said it takes images. */
|
|
65
|
+
sights(): Promise<Record<string, boolean>>;
|
|
66
|
+
/**
|
|
67
|
+
* Saves `value` as what `agent`'s new conversations start with for its
|
|
68
|
+
* setting `id`, one the agent offers, as picked before any is started.
|
|
69
|
+
*/
|
|
70
|
+
chooseDefault(agent: string, id: string, value: string): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Each agent's plan limits as it last said, from any project, by its id:
|
|
73
|
+
* what a new conversation shows before one here says.
|
|
74
|
+
*/
|
|
75
|
+
limits(): Promise<Record<string, Limit[]>>;
|
|
76
|
+
/**
|
|
77
|
+
* Asks each agent that does not send its limits for them, unless it was
|
|
78
|
+
* asked within `LIMITS_FRESH`, and keeps what it says for every project.
|
|
79
|
+
*/
|
|
80
|
+
refreshLimits(): Promise<void>;
|
|
81
|
+
/** Every conversation, newest first. */
|
|
82
|
+
list(): Promise<Conversation[]>;
|
|
83
|
+
/**
|
|
84
|
+
* The newest conversation started for persistent agent `role`, archived
|
|
85
|
+
* or not, or null before one started.
|
|
86
|
+
*/
|
|
87
|
+
persistent(role: string): Promise<Conversation | null>;
|
|
88
|
+
/** `id`, as a page picked it for a new conversation: a UUID none has. */
|
|
89
|
+
private unused;
|
|
90
|
+
find(id: string): Promise<Conversation>;
|
|
91
|
+
/**
|
|
92
|
+
* Starts a conversation with `agent` in `cwd`, for `task` if it is one's,
|
|
93
|
+
* with `settings` set once the session offers them; for `queued`, held
|
|
94
|
+
* for that queued task until the queue starts it.
|
|
95
|
+
*/
|
|
96
|
+
start(agent: string, { id: given, task, base, caller, cwd, scratch, settings, model, assigned, startedBy, automatic, heldForTask, title, persistent, automation, ship, picking, }: {
|
|
97
|
+
/**
|
|
98
|
+
* The id the page picked, so it opens the conversation before the
|
|
99
|
+
* server answers; a new one when not given.
|
|
100
|
+
*/
|
|
101
|
+
id?: string;
|
|
102
|
+
task: string | null;
|
|
103
|
+
/** The branch `task` was cut from. */
|
|
104
|
+
base?: string | null;
|
|
105
|
+
/** The conversation whose agent added `task`. */
|
|
106
|
+
caller?: string | null;
|
|
107
|
+
cwd: string | ((id: string) => string | Promise<string>);
|
|
108
|
+
/** Runs projectless in its own scratch workspace. */
|
|
109
|
+
scratch?: boolean;
|
|
110
|
+
settings?: Record<string, string>;
|
|
111
|
+
/** The model to start on, by its value or name in the model setting. */
|
|
112
|
+
model?: string;
|
|
113
|
+
/** Whether a queued task or `splates add --agent` assigned the agent and model. */
|
|
114
|
+
assigned?: boolean;
|
|
115
|
+
/** The lane orchestrator that handed it its task, which hears when it stops. */
|
|
116
|
+
startedBy?: string | null;
|
|
117
|
+
/** Whether the server's queue or a hook starts it, to hold a place on a worker. */
|
|
118
|
+
automatic?: boolean;
|
|
119
|
+
/** The queued task it is held for, its agent unopened until `release`. */
|
|
120
|
+
heldForTask?: number;
|
|
121
|
+
/** What to call it until its agent names it. */
|
|
122
|
+
title?: string;
|
|
123
|
+
/** The persistent agent's role it is started for, as `"groomer"`. */
|
|
124
|
+
persistent?: string;
|
|
125
|
+
/** The automation that starts it, by its id. */
|
|
126
|
+
automation?: string;
|
|
127
|
+
/** The ship whose adoption task it runs, by its id. */
|
|
128
|
+
ship?: string;
|
|
129
|
+
/**
|
|
130
|
+
* What Auto pick decides, once it has, to open on in place of
|
|
131
|
+
* `agent`, `model` and `settings`, which it shows meanwhile.
|
|
132
|
+
*/
|
|
133
|
+
picking?: Promise<Picked<string>>;
|
|
134
|
+
}): Promise<Conversation>;
|
|
135
|
+
/** The agent `id` names, failing for one splates does not run. */
|
|
136
|
+
private agentOf;
|
|
137
|
+
/**
|
|
138
|
+
* The sessions each agent holds in `cwd` that splates does not, such as ones
|
|
139
|
+
* started in its CLI, to bring in: newest first, from every agent that
|
|
140
|
+
* lists and loads sessions.
|
|
141
|
+
*/
|
|
142
|
+
sessions(cwd: string): Promise<Session[]>;
|
|
143
|
+
/**
|
|
144
|
+
* Brings in `session`, one `agent` holds outside splates, as a conversation
|
|
145
|
+
* in `cwd`, for `task` if it is one's.
|
|
146
|
+
*/
|
|
147
|
+
bring(agent: string, session: string, { task, base, caller, cwd, title, }: {
|
|
148
|
+
task: string | null;
|
|
149
|
+
/** The branch `task` was cut from. */
|
|
150
|
+
base?: string | null;
|
|
151
|
+
/** The conversation whose agent added `task`. */
|
|
152
|
+
caller?: string | null;
|
|
153
|
+
cwd: string;
|
|
154
|
+
title?: string | null;
|
|
155
|
+
}): Promise<Conversation>;
|
|
156
|
+
/**
|
|
157
|
+
* Deletes the archived conversations past the `ARCHIVED_KEPT` archived
|
|
158
|
+
* most recently, so their logs do not pile up, their artifacts and
|
|
159
|
+
* attached files going with them.
|
|
160
|
+
*/
|
|
161
|
+
prune(): Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* Stops every live conversation, so no agent outlives the server; one
|
|
164
|
+
* still starting says what it was told once the next run reads it back.
|
|
165
|
+
*/
|
|
166
|
+
disposeAsync(): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* Lets go of every agent a worker runs, for a server started again
|
|
169
|
+
* to take back, and says whether there was any: the rest stop as ever.
|
|
170
|
+
*/
|
|
171
|
+
detachAsync(): Promise<boolean>;
|
|
172
|
+
dispose(): void;
|
|
173
|
+
private track;
|
|
174
|
+
/** Asks for `conversation`'s agent's limits, when it does not send them. */
|
|
175
|
+
private askLimits;
|
|
176
|
+
/** Takes in the logs written since it read them, as an import adds, leaving each it holds as it is. */
|
|
177
|
+
reread(): Promise<void>;
|
|
178
|
+
private load;
|
|
179
|
+
private trim;
|
|
180
|
+
private read;
|
|
181
|
+
}
|