@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,33 @@
|
|
|
1
|
+
import { Duration } from "../../../core/time/index.js";
|
|
2
|
+
import type { AgentFrame, AgentProcess, ProcessHandle } from "../agents";
|
|
3
|
+
import type { WorkerChannel } from "./channel";
|
|
4
|
+
import type { WorkerSession } from "./session";
|
|
5
|
+
/** How long a worker has to say anything of a process taken back, once it rejoins. */
|
|
6
|
+
export declare const ANSWER_WITHIN: Duration;
|
|
7
|
+
/**
|
|
8
|
+
* A process running on a worker, seen from the server as any
|
|
9
|
+
* `AgentProcess` is: writing `input` is its stdin, `output` its stdout, each
|
|
10
|
+
* frame in the seq its channel gave it, acked back to the worker once written
|
|
11
|
+
* down. Its pid is null until the worker says it started; one taken back
|
|
12
|
+
* after a restart asks again, since the word came before.
|
|
13
|
+
*/
|
|
14
|
+
export declare class WorkerProcess implements AgentProcess {
|
|
15
|
+
private readonly channel;
|
|
16
|
+
private readonly worker;
|
|
17
|
+
readonly input: WritableStream<Uint8Array>;
|
|
18
|
+
readonly output: ReadableStream<AgentFrame>;
|
|
19
|
+
readonly exited: Promise<number>;
|
|
20
|
+
private _pid;
|
|
21
|
+
private tail;
|
|
22
|
+
/** What takes it back after a server restart. */
|
|
23
|
+
get handle(): ProcessHandle;
|
|
24
|
+
constructor(channel: WorkerChannel, session: WorkerSession, worker: string, { resumed, answerWithin, }?: {
|
|
25
|
+
resumed?: boolean;
|
|
26
|
+
/** How long a worker has to answer for a process taken back, once it rejoins. */
|
|
27
|
+
answerWithin?: Duration;
|
|
28
|
+
});
|
|
29
|
+
get pid(): number | null;
|
|
30
|
+
stderr(): string;
|
|
31
|
+
ack(seq: number): void;
|
|
32
|
+
kill(): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turns frames into what a `WorkerSocket` carries and back, and settles which
|
|
3
|
+
* version two ends speak. A `WorkerSession` uses it for every frame; reach for
|
|
4
|
+
* it directly only to speak the protocol without one.
|
|
5
|
+
*/
|
|
6
|
+
export declare class WorkerProtocol {
|
|
7
|
+
private constructor();
|
|
8
|
+
/** The version this end speaks, sent in every hello and welcome. */
|
|
9
|
+
static readonly version = "1.5";
|
|
10
|
+
static readonly headerBytes = 8;
|
|
11
|
+
/**
|
|
12
|
+
* The most one frame may hold, encoded. Each frame is one WebSocket
|
|
13
|
+
* message and a message past the receiver's limit closes the socket, so
|
|
14
|
+
* a larger one is split by whoever makes it, or refused at send.
|
|
15
|
+
*/
|
|
16
|
+
static readonly maxFrameBytes: number;
|
|
17
|
+
/** The most a data frame carries; `write` splits what is longer. */
|
|
18
|
+
static readonly maxDataBytes: number;
|
|
19
|
+
/** What a server's WebSocket takes in a message, well above `maxFrameBytes`. */
|
|
20
|
+
static readonly maxPayloadBytes: number;
|
|
21
|
+
/** How many bytes `frame` takes encoded. */
|
|
22
|
+
static size(frame: Frame): number;
|
|
23
|
+
static encode(frame: Frame): string | Uint8Array;
|
|
24
|
+
/** Throws on anything that is not a frame, which ends the connection. */
|
|
25
|
+
static decode(encoded: string | Uint8Array): Frame;
|
|
26
|
+
/**
|
|
27
|
+
* Settles on the lower minor and the capabilities both ends have; another
|
|
28
|
+
* major cannot be read, so it is refused with a reason the server
|
|
29
|
+
* shows when it drains that worker.
|
|
30
|
+
*/
|
|
31
|
+
static negotiate(ours: {
|
|
32
|
+
protocol: string;
|
|
33
|
+
capabilities: string[];
|
|
34
|
+
}, theirs: {
|
|
35
|
+
protocol: string;
|
|
36
|
+
capabilities: string[];
|
|
37
|
+
}): Negotiated;
|
|
38
|
+
}
|
|
39
|
+
/** The capability of a worker that restarts on another build when its server sends `update`. */
|
|
40
|
+
export declare const UPDATE = "update";
|
|
41
|
+
/** The capability of a server that frees what a worker runs when the worker sends `leaving`, as a spot reclaim's notice does. */
|
|
42
|
+
export declare const LEAVING = "leaving";
|
|
43
|
+
/** A JSON value, as control frames carry them. */
|
|
44
|
+
export type Json = string | number | boolean | null | Json[] | {
|
|
45
|
+
[key: string]: Json;
|
|
46
|
+
};
|
|
47
|
+
/** Each channel's last seq one end holds, as `[channel, seq]` pairs. */
|
|
48
|
+
export type Held = [channel: number, seq: number][];
|
|
49
|
+
/**
|
|
50
|
+
* Every frame on the link between a server and a worker. Those naming a
|
|
51
|
+
* `channel` carry its seq and are kept until acked, so they survive a
|
|
52
|
+
* reconnect; the rest belong to one connection and are never replayed.
|
|
53
|
+
*/
|
|
54
|
+
export type Frame = {
|
|
55
|
+
type: "hello";
|
|
56
|
+
protocol: string;
|
|
57
|
+
capabilities: string[];
|
|
58
|
+
id: string;
|
|
59
|
+
info: {
|
|
60
|
+
[key: string]: Json;
|
|
61
|
+
};
|
|
62
|
+
/** The worker session's id, new each time a worker starts. */
|
|
63
|
+
session: string;
|
|
64
|
+
held: Held;
|
|
65
|
+
/**
|
|
66
|
+
* The key it joined with, sent only after the server proved
|
|
67
|
+
* itself, for a worker that kept the server's public key.
|
|
68
|
+
*/
|
|
69
|
+
key?: string;
|
|
70
|
+
} | {
|
|
71
|
+
type: "welcome";
|
|
72
|
+
protocol: string;
|
|
73
|
+
capabilities: string[];
|
|
74
|
+
/** The server session's id, new each time a server starts. */
|
|
75
|
+
session: string;
|
|
76
|
+
held: Held;
|
|
77
|
+
}
|
|
78
|
+
/** A worker's first frame when it keeps the server's public key: asks it to sign `nonce`. */
|
|
79
|
+
| {
|
|
80
|
+
type: "challenge";
|
|
81
|
+
nonce: string;
|
|
82
|
+
}
|
|
83
|
+
/** The server's answer: its signature over the nonce and its `session`. */
|
|
84
|
+
| {
|
|
85
|
+
type: "proof";
|
|
86
|
+
session: string;
|
|
87
|
+
signature: string;
|
|
88
|
+
} | {
|
|
89
|
+
type: "refuse";
|
|
90
|
+
reason: string;
|
|
91
|
+
/** The build the server runs, for a worker turned away for its major to restart on; absent from one before 1.3. */
|
|
92
|
+
update?: string;
|
|
93
|
+
}
|
|
94
|
+
/** Asks a worker that offers `update` to restart on the server's `build`, once nothing of its own runs on it. */
|
|
95
|
+
| {
|
|
96
|
+
type: "update";
|
|
97
|
+
build: string;
|
|
98
|
+
}
|
|
99
|
+
/** Tells the server the worker is about to be taken from under it, for it to carry its agents elsewhere at once. */
|
|
100
|
+
| {
|
|
101
|
+
type: "leaving";
|
|
102
|
+
reason: string;
|
|
103
|
+
} | {
|
|
104
|
+
type: "open";
|
|
105
|
+
channel: number;
|
|
106
|
+
seq: number;
|
|
107
|
+
kind: string;
|
|
108
|
+
params: Json;
|
|
109
|
+
} | {
|
|
110
|
+
type: "message";
|
|
111
|
+
channel: number;
|
|
112
|
+
seq: number;
|
|
113
|
+
body: Json;
|
|
114
|
+
} | {
|
|
115
|
+
type: "data";
|
|
116
|
+
channel: number;
|
|
117
|
+
seq: number;
|
|
118
|
+
bytes: Uint8Array;
|
|
119
|
+
} | {
|
|
120
|
+
type: "close";
|
|
121
|
+
channel: number;
|
|
122
|
+
seq: number;
|
|
123
|
+
} | {
|
|
124
|
+
type: "ack";
|
|
125
|
+
acks: Held;
|
|
126
|
+
} | {
|
|
127
|
+
type: "ping";
|
|
128
|
+
n: number;
|
|
129
|
+
} | {
|
|
130
|
+
type: "pong";
|
|
131
|
+
n: number;
|
|
132
|
+
};
|
|
133
|
+
/** A frame that belongs to a channel, so it has a seq and is replayed. */
|
|
134
|
+
export type ChannelFrame = Extract<Frame, {
|
|
135
|
+
channel: number;
|
|
136
|
+
}>;
|
|
137
|
+
/** What one end makes of the other's version, from its hello or welcome. */
|
|
138
|
+
export type Negotiated = {
|
|
139
|
+
ok: true;
|
|
140
|
+
protocol: string;
|
|
141
|
+
capabilities: string[];
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* `refused` when the other end turned this one away, rather than the
|
|
145
|
+
* link going; `update`, the build a server that refused a worker
|
|
146
|
+
* runs, for the worker to restart on.
|
|
147
|
+
*/
|
|
148
|
+
| {
|
|
149
|
+
ok: false;
|
|
150
|
+
reason: string;
|
|
151
|
+
refused: boolean;
|
|
152
|
+
update?: string;
|
|
153
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Resource } from "../../../core/disposable/index.js";
|
|
2
|
+
import type { Ps } from "../../../core/system/index.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import type { WorkerChannel } from "./channel";
|
|
5
|
+
import type { WorkerSession } from "./session";
|
|
6
|
+
/** What a server opens a `pty` channel with. */
|
|
7
|
+
export declare const PtyParams: z.ZodObject<{
|
|
8
|
+
argv: z.ZodArray<z.ZodString>;
|
|
9
|
+
cwd: z.ZodString;
|
|
10
|
+
cols: z.ZodNumber;
|
|
11
|
+
rows: z.ZodNumber;
|
|
12
|
+
env: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
/** How much of what the shell last wrote is kept, to redraw a terminal that comes back. */
|
|
15
|
+
export declare const SCREEN_BYTES: number;
|
|
16
|
+
/**
|
|
17
|
+
* One shell a `pty` channel started on the worker, for a page's terminal:
|
|
18
|
+
* the terminal's bytes both ways, a resize as a message, and its pid and
|
|
19
|
+
* exit code as messages back. It keeps the last `SCREEN_BYTES` the shell
|
|
20
|
+
* wrote, and says its pid and writes them again when asked to `describe`
|
|
21
|
+
* itself, for a terminal taken back after a server restart, or a page
|
|
22
|
+
* come back to it. Closing the channel hangs it up.
|
|
23
|
+
*/
|
|
24
|
+
export declare class WorkerPtyHost implements Resource {
|
|
25
|
+
readonly channel: WorkerChannel;
|
|
26
|
+
private readonly pty;
|
|
27
|
+
/** What the shell last wrote, oldest first, `SCREEN_BYTES` at most in all. */
|
|
28
|
+
private readonly screen;
|
|
29
|
+
private screenBytes;
|
|
30
|
+
constructor(channel: WorkerChannel, session: Pick<WorkerSession, "drained">, ps: Ps);
|
|
31
|
+
/** Says the pid again, then writes the screen kept, to redraw a terminal that came back. */
|
|
32
|
+
private describe;
|
|
33
|
+
private keep;
|
|
34
|
+
dispose(): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import type { Fs, Ps } from "../../../core/system/index.js";
|
|
3
|
+
import { type WallClock } from "../../../core/time/index.js";
|
|
4
|
+
import type { QueueEntry } from "./scheduler";
|
|
5
|
+
/** One agent waiting to start, as `GET /api/queue` and `splates worker queue list` give it. */
|
|
6
|
+
export interface QueueListing {
|
|
7
|
+
/** Its conversation's id. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** The main tree of its project. */
|
|
10
|
+
project: string;
|
|
11
|
+
task: string | null;
|
|
12
|
+
position: number;
|
|
13
|
+
/** When it joined the queue. */
|
|
14
|
+
since: string;
|
|
15
|
+
reason: string;
|
|
16
|
+
}
|
|
17
|
+
/** `entries` as `GET /api/queue` answers them. */
|
|
18
|
+
export declare function queueListing(entries: QueueEntry[]): QueueListing[];
|
|
19
|
+
/** What `splates worker queue` is run with. */
|
|
20
|
+
export interface QueueOptions {
|
|
21
|
+
/** The `splates server` to ask; empty for the one this agent runs under. */
|
|
22
|
+
dev: string;
|
|
23
|
+
json: boolean;
|
|
24
|
+
log: Logger;
|
|
25
|
+
fs?: Fs;
|
|
26
|
+
ps: Ps;
|
|
27
|
+
send?: typeof fetch;
|
|
28
|
+
wall?: WallClock;
|
|
29
|
+
}
|
|
30
|
+
/** `splates worker queue list`: the agents waiting for a slot on the running `splates server`. */
|
|
31
|
+
export declare function listQueue(opts: QueueOptions): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* `splates worker queue move`: puts the agent waiting for `which`, a task or a
|
|
34
|
+
* conversation's id, at `position` in the queue, from 1.
|
|
35
|
+
*/
|
|
36
|
+
export declare function moveQueued(opts: QueueOptions & {
|
|
37
|
+
which: string;
|
|
38
|
+
position: number;
|
|
39
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Document } from "../storage";
|
|
3
|
+
/** Settings for this machine's worker, kept across server restarts. */
|
|
4
|
+
declare const Record: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
draining: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
removing: z.ZodDefault<z.ZodBoolean>;
|
|
8
|
+
updating: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const Kept: z.ZodObject<{
|
|
11
|
+
workers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
draining: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
removing: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
updating: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
local: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
paused: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
type KeptFile = z.output<typeof Kept>;
|
|
21
|
+
export type WorkerRecord = z.output<typeof Record>;
|
|
22
|
+
export type WorkerSettings = Partial<Omit<WorkerRecord, "id">>;
|
|
23
|
+
/** Persists local worker settings, ignoring workers registered by older builds. */
|
|
24
|
+
export declare class WorkerRecords {
|
|
25
|
+
private readonly document;
|
|
26
|
+
private kept;
|
|
27
|
+
private writing;
|
|
28
|
+
private constructor();
|
|
29
|
+
static open(document: Document<KeptFile>): Promise<WorkerRecords>;
|
|
30
|
+
static memory(): WorkerRecords;
|
|
31
|
+
get all(): WorkerRecord[];
|
|
32
|
+
of(id: string): WorkerRecord | undefined;
|
|
33
|
+
get localOn(): boolean;
|
|
34
|
+
turnLocal(on: boolean): Promise<void>;
|
|
35
|
+
/** Whether everything splates starts on its own waits, as `pause` set. */
|
|
36
|
+
get paused(): boolean;
|
|
37
|
+
pause(on: boolean): Promise<void>;
|
|
38
|
+
set(id: string, settings: WorkerSettings): Promise<WorkerRecord>;
|
|
39
|
+
/** Forgets worker `id`'s settings, as for a handoff worker once it has stopped. */
|
|
40
|
+
drop(id: string): Promise<void>;
|
|
41
|
+
private change;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { Resource } from "../../../core/disposable/index.js";
|
|
2
|
+
import { type Eventful } from "../../../core/events/index.js";
|
|
3
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
4
|
+
import { type Clock, Duration, type Timer, type WallClock } from "../../../core/time/index.js";
|
|
5
|
+
import type { CoordinatorIdentity } from "./identity";
|
|
6
|
+
import { type WorkerSessionOptions } from "./session";
|
|
7
|
+
import type { WorkerSocket } from "./socket";
|
|
8
|
+
import { type CallBounds, ConnectedWorker, type WorkerKind } from "./worker";
|
|
9
|
+
/** A worker turned away, and why, so the server can drain it. */
|
|
10
|
+
export interface RefusedWorker {
|
|
11
|
+
id: string;
|
|
12
|
+
protocol: string;
|
|
13
|
+
reason: string;
|
|
14
|
+
}
|
|
15
|
+
/** What a `WorkerRegistry` hears. */
|
|
16
|
+
export interface WorkerRegistryEvents extends Record<string, unknown> {
|
|
17
|
+
/** A worker connected, for the first time or again. */
|
|
18
|
+
joined: ConnectedWorker;
|
|
19
|
+
refused: RefusedWorker;
|
|
20
|
+
/** A worker said its machine is about to be taken away. */
|
|
21
|
+
leaving: {
|
|
22
|
+
id: string;
|
|
23
|
+
reason: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** How a `WorkerRegistry` paces the sessions it keeps. */
|
|
27
|
+
export interface WorkerRegistryOptions {
|
|
28
|
+
/** How long a new connection has to say hello. */
|
|
29
|
+
helloWithin?: Duration;
|
|
30
|
+
/** How long each kind of call to a worker may go unanswered. */
|
|
31
|
+
calls?: Partial<CallBounds>;
|
|
32
|
+
session?: Omit<WorkerSessionOptions, "timer" | "clock" | "wall" | "capabilities">;
|
|
33
|
+
timer?: Timer;
|
|
34
|
+
clock?: Clock;
|
|
35
|
+
wall?: WallClock;
|
|
36
|
+
/** What proves this server to a worker that keeps its public key; none answers no challenge. */
|
|
37
|
+
identity?: CoordinatorIdentity;
|
|
38
|
+
/** Whether `key` is the one worker `id` joined with, for a worker that sends it in its hello. */
|
|
39
|
+
verify?: (id: string, key: string) => boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The server's roster of workers, in memory for now: it takes each
|
|
43
|
+
* connection, on whatever transport, reads its hello, and resumes the session
|
|
44
|
+
* of a worker it knows by its id, so what it was running carries on.
|
|
45
|
+
*/
|
|
46
|
+
export declare class WorkerRegistry implements Eventful<WorkerRegistryEvents>, Resource {
|
|
47
|
+
private readonly log;
|
|
48
|
+
private readonly opts;
|
|
49
|
+
private readonly dispatcher;
|
|
50
|
+
readonly events: import("../../../core/events/index.js").Events<WorkerRegistryEvents>;
|
|
51
|
+
private readonly byId;
|
|
52
|
+
private readonly refusals;
|
|
53
|
+
private readonly timer;
|
|
54
|
+
private readonly clock;
|
|
55
|
+
private readonly wall;
|
|
56
|
+
/**
|
|
57
|
+
* Detached for a restart, or disposed: a worker that redials now is hung
|
|
58
|
+
* up on, since a fresh session's welcome would have it end everything it
|
|
59
|
+
* kept for the next run.
|
|
60
|
+
*/
|
|
61
|
+
private closed;
|
|
62
|
+
/** What the server signs a worker's nonce with, new for each run unless its session is given. */
|
|
63
|
+
private readonly proofSession;
|
|
64
|
+
constructor(log: Logger, opts?: WorkerRegistryOptions);
|
|
65
|
+
get workers(): ConnectedWorker[];
|
|
66
|
+
/** Workers turned away for another major, by id, last word first. */
|
|
67
|
+
get refused(): RefusedWorker[];
|
|
68
|
+
worker(id: string): ConnectedWorker | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* The worker known by `id`, made now if it has yet to join, so work can be
|
|
71
|
+
* given it before it does: its session keeps what it is sent until then.
|
|
72
|
+
* `kind` is how it will connect.
|
|
73
|
+
*/
|
|
74
|
+
expect(id: string, kind?: WorkerKind): ConnectedWorker;
|
|
75
|
+
/**
|
|
76
|
+
* Takes a worker's new connection, hanging up on one that says nothing in
|
|
77
|
+
* time. `kind` is how it reached us: `local` over this machine's socket.
|
|
78
|
+
* `identity`, when a string, is the worker its key proved it to be, and a
|
|
79
|
+
* hello saying it is another is hung up on; when a function, it says
|
|
80
|
+
* which ids a hello may name, as this machine's socket takes its own
|
|
81
|
+
* workers alone; null, the worker proves
|
|
82
|
+
* itself in its hello, with the key it joined with, once it has had this
|
|
83
|
+
* server sign its nonce.
|
|
84
|
+
*/
|
|
85
|
+
accept(socket: WorkerSocket, kind?: WorkerKind, identity?: string | null | ((id: string) => boolean)): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Hangs up on worker `id` for good, ending what it runs, and forgets it;
|
|
88
|
+
* answers whether it was known.
|
|
89
|
+
*/
|
|
90
|
+
forget(id: string): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Hangs up on every worker for a restart, keeping what each runs for
|
|
93
|
+
* the next run to take back, once each holds everything it was sent, or
|
|
94
|
+
* `ACK_WAIT` is up.
|
|
95
|
+
*/
|
|
96
|
+
detach(): Promise<void>;
|
|
97
|
+
private bounds;
|
|
98
|
+
private session;
|
|
99
|
+
private serve;
|
|
100
|
+
dispose(): void;
|
|
101
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChannelFrame, Held } from "./protocol";
|
|
2
|
+
/**
|
|
3
|
+
* The channel frames one end has sent and the other has yet to ack, kept to
|
|
4
|
+
* send again on a reconnect. Its bound is in bytes: past it, `keep` still
|
|
5
|
+
* keeps the frame, so nothing is lost, but says the writer should stop.
|
|
6
|
+
*/
|
|
7
|
+
export declare class WorkerReplay {
|
|
8
|
+
readonly limit: number;
|
|
9
|
+
private readonly channels;
|
|
10
|
+
private nextOrder;
|
|
11
|
+
private _bytes;
|
|
12
|
+
constructor(limit: number);
|
|
13
|
+
get bytes(): number;
|
|
14
|
+
get full(): boolean;
|
|
15
|
+
/** Keeps a frame until acked, and says whether there is room for more. */
|
|
16
|
+
keep(frame: ChannelFrame, encoded: string | Uint8Array): boolean;
|
|
17
|
+
/** Lets go of every frame, for an other end that will never ack them. */
|
|
18
|
+
clear(): void;
|
|
19
|
+
/** Lets go of `channel`'s frames, once both ends have closed it: nothing will ask for them. */
|
|
20
|
+
drop(channel: number): void;
|
|
21
|
+
/** Drops every frame of each channel up to the seq the other end holds. */
|
|
22
|
+
ack(acks: Held): void;
|
|
23
|
+
/** Every frame still kept, in the order it was first sent. */
|
|
24
|
+
unacked(): (string | Uint8Array)[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { AsyncResource } from "../../../core/disposable/index.js";
|
|
2
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
3
|
+
import type { Fs } from "../../../core/system/index.js";
|
|
4
|
+
import { CoordinatorIdentity } from "./identity";
|
|
5
|
+
import { LocalWorkerUpdate } from "./local-update";
|
|
6
|
+
import { AgentPlacement } from "./placement";
|
|
7
|
+
import { WorkerRecords } from "./records";
|
|
8
|
+
import { WorkerRegistry } from "./registry";
|
|
9
|
+
import type { ConnectedWorker } from "./worker";
|
|
10
|
+
/** Accepts this machine's worker over its private Unix socket and places agents on it. */
|
|
11
|
+
export declare class DevWorkers implements AsyncResource {
|
|
12
|
+
private readonly log;
|
|
13
|
+
readonly registry: WorkerRegistry;
|
|
14
|
+
readonly records: WorkerRecords;
|
|
15
|
+
/** What proves this server to its workers. */
|
|
16
|
+
readonly identity: CoordinatorIdentity;
|
|
17
|
+
/** Where agents are placed on a worker, and where they wait while paused. */
|
|
18
|
+
readonly placement: AgentPlacement;
|
|
19
|
+
/**
|
|
20
|
+
* This machine's worker, which the page's shells and task ports run on,
|
|
21
|
+
* and agents too while it is on; work waits for it to join.
|
|
22
|
+
*/
|
|
23
|
+
readonly local: ConnectedWorker;
|
|
24
|
+
/** What brings this machine's worker to the server's build. */
|
|
25
|
+
readonly updater: LocalWorkerUpdate;
|
|
26
|
+
private listener;
|
|
27
|
+
/** Whether a worker may join: not while what the last run let go of is being taken back. */
|
|
28
|
+
private ready;
|
|
29
|
+
constructor(log: Logger, { session, protocol, records, identity, startWorker, }?: DevWorkersOptions);
|
|
30
|
+
/** What runs on each worker: the tasks its agents run, a conversation's id for one in no task. */
|
|
31
|
+
private used;
|
|
32
|
+
/** Whether this machine's worker takes agents, or one taking over while it updates. */
|
|
33
|
+
private pooled;
|
|
34
|
+
/** Hangs up on handoff worker `id`, once it is empty and told to stop, and forgets its record. */
|
|
35
|
+
private forgetHandoff;
|
|
36
|
+
/**
|
|
37
|
+
* Turns workers away until `serving`, while the conversations the last
|
|
38
|
+
* run let go of take their processes back, since a worker's hello
|
|
39
|
+
* settles which channels live on.
|
|
40
|
+
*/
|
|
41
|
+
takingBack(): void;
|
|
42
|
+
/** Lets workers join again. */
|
|
43
|
+
serving(): void;
|
|
44
|
+
/** Hangs up on every worker for a restart, keeping what each runs (see `WorkerRegistry.detach`). */
|
|
45
|
+
detach(): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Listens at `path`, logging rather than failing when it cannot, as when
|
|
48
|
+
* another `splates server` with the same home already does: the page works
|
|
49
|
+
* without workers.
|
|
50
|
+
*/
|
|
51
|
+
listen(path: string, fs: Fs): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* `GET /api/workers`: each worker and each refusal, as `splates worker
|
|
54
|
+
* list` shows them, the build this server runs, whether it is paused,
|
|
55
|
+
* and every agent placed.
|
|
56
|
+
*/
|
|
57
|
+
readonly list: () => Promise<Response>;
|
|
58
|
+
/**
|
|
59
|
+
* `PUT /api/workers/:id`: sets whether worker `id` drains, taking no new
|
|
60
|
+
* agents.
|
|
61
|
+
* Taking new agents again turns this machine's own back on, removed or
|
|
62
|
+
* being removed. `paused`, on this machine's own alone, holds back
|
|
63
|
+
* everything splates starts on its own, the person's agents still
|
|
64
|
+
* starting; it is set whether or not the worker is in the pool, since it
|
|
65
|
+
* stands for the server rather than the worker.
|
|
66
|
+
*/
|
|
67
|
+
readonly update: (request: Request) => Promise<Response>;
|
|
68
|
+
/**
|
|
69
|
+
* `DELETE /api/workers/:id`: removes worker `id`, revoking its key. One
|
|
70
|
+
* with agents on it drains and is removed once they end, unless
|
|
71
|
+
* `?force`, which ends them now and frees their places. This machine's
|
|
72
|
+
* own is only taken out of the pool, its process kept for the page's
|
|
73
|
+
* shells and task ports, until `PUT` turns it on again.
|
|
74
|
+
*/
|
|
75
|
+
readonly remove: (request: Request) => Promise<Response>;
|
|
76
|
+
/** Removes each worker waiting to be once its last agent has ended. */
|
|
77
|
+
private removeIdle;
|
|
78
|
+
/**
|
|
79
|
+
* Revokes worker `id`'s key and service token, hangs up on it, and frees
|
|
80
|
+
* what its agents held.
|
|
81
|
+
* This machine's own is turned off instead, keeping its settings for
|
|
82
|
+
* when it is back.
|
|
83
|
+
*/
|
|
84
|
+
private forget;
|
|
85
|
+
/**
|
|
86
|
+
* `GET /api/queue`: every agent waiting for a worker, first in line first,
|
|
87
|
+
* from every project, as `splates worker queue list` shows them.
|
|
88
|
+
*/
|
|
89
|
+
readonly queue: () => Promise<Response>;
|
|
90
|
+
/**
|
|
91
|
+
* `PUT /api/queue/:id/position`: moves the agent of conversation `id` to
|
|
92
|
+
* `position` in the queue, from 1, answering the queue as it stands.
|
|
93
|
+
*/
|
|
94
|
+
readonly moveQueued: (request: Request) => Promise<Response>;
|
|
95
|
+
/** Local worker settings, guarded like the page's other writes. */
|
|
96
|
+
readonly manage: (request: Request, guard: (handle: (request: Request) => Promise<Response>) => (request: Request) => Promise<Response>) => Promise<Response>;
|
|
97
|
+
disposeAsync(): Promise<void>;
|
|
98
|
+
}
|
|
99
|
+
/** Keep the local worker’s session and settings across server restarts. */
|
|
100
|
+
export interface DevWorkersOptions {
|
|
101
|
+
/**
|
|
102
|
+
* The session id every worker hears in its welcome: the same across
|
|
103
|
+
* restarts, so a worker keeps what it runs for the next run to take
|
|
104
|
+
* back; new by default, which ends what the worker held.
|
|
105
|
+
*/
|
|
106
|
+
session?: string;
|
|
107
|
+
/** The protocol the last run spoke, which a worker's channels are taken back by only when its major is this one's. */
|
|
108
|
+
protocol?: string;
|
|
109
|
+
/** The local worker’s settings; kept in memory alone by default. */
|
|
110
|
+
records?: WorkerRecords;
|
|
111
|
+
/** What signs a worker's challenge, so it knows this server from one answering for its host; new, and kept nowhere, by default. */
|
|
112
|
+
identity?: CoordinatorIdentity;
|
|
113
|
+
/**
|
|
114
|
+
* Starts a worker known by `id` beside this machine's own, to take new
|
|
115
|
+
* agents while its own updates, answering whether it could; with none,
|
|
116
|
+
* this machine's own takes none while it updates.
|
|
117
|
+
*/
|
|
118
|
+
startWorker?: (id: string) => boolean;
|
|
119
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import type { Fs, Ps } from "../../../core/system/index.js";
|
|
3
|
+
/** What `splates worker run` is run with. */
|
|
4
|
+
export interface WorkerRunOptions {
|
|
5
|
+
/** Empty for this machine's server, or `unix:<path>`. */
|
|
6
|
+
coordinator: string;
|
|
7
|
+
id: string;
|
|
8
|
+
log: Logger;
|
|
9
|
+
ps: Ps;
|
|
10
|
+
fs: Fs;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Ps } from "../../../core/system/index.js";
|
|
2
|
+
import type { WorkerRunOptions } from "./run-options";
|
|
3
|
+
/** Where the local worker finds the server on this machine. */
|
|
4
|
+
export declare function workerSocketPath(ps: Ps): string;
|
|
5
|
+
/**
|
|
6
|
+
* `splates worker run`: serves the server until a SIGINT or SIGTERM,
|
|
7
|
+
* restarting on the server's build when told it, and exiting
|
|
8
|
+
* `outdated` when refused without one.
|
|
9
|
+
*/
|
|
10
|
+
export declare function workerRun(opts: WorkerRunOptions): Promise<void>;
|