@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,24 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import type { Ps } from "../../../core/system/index.js";
|
|
3
|
+
import { type Timer } from "../../../core/time/index.js";
|
|
4
|
+
/** Stops the server command on Ctrl-C, even when a child ignores its stop signal. */
|
|
5
|
+
export declare class ServerInterrupt {
|
|
6
|
+
private readonly ps;
|
|
7
|
+
private readonly opts;
|
|
8
|
+
private readonly stopping;
|
|
9
|
+
private readonly forced;
|
|
10
|
+
private deadline;
|
|
11
|
+
private forcing;
|
|
12
|
+
constructor(ps: Ps, opts: ServerInterruptOptions);
|
|
13
|
+
get signal(): AbortSignal;
|
|
14
|
+
interrupt(): void;
|
|
15
|
+
/** A child that ignores SIGTERM must not hold the command open forever. */
|
|
16
|
+
wait<T>(running: Promise<T>): Promise<T>;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
private force;
|
|
19
|
+
}
|
|
20
|
+
interface ServerInterruptOptions {
|
|
21
|
+
timer: Timer;
|
|
22
|
+
log: Logger | null;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Resource } from "../../../core/disposable/index.js";
|
|
2
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
3
|
+
import { type Clock, type Timer } from "../../../core/time/index.js";
|
|
4
|
+
/** Leaves evidence of a delayed event loop beside the worker's missed heartbeats. */
|
|
5
|
+
export declare class LoopWatch implements Resource {
|
|
6
|
+
private readonly interval;
|
|
7
|
+
constructor(log: Logger, { clock, timer, }?: {
|
|
8
|
+
clock?: Clock;
|
|
9
|
+
timer?: Timer;
|
|
10
|
+
});
|
|
11
|
+
dispose(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import type { Fs, Ps } from "../../../core/system/index.js";
|
|
3
|
+
import type { Projects } from "../projects";
|
|
4
|
+
/** What `Migrations` works with. */
|
|
5
|
+
export interface MigrationsHome {
|
|
6
|
+
fs: Fs;
|
|
7
|
+
ps: Ps;
|
|
8
|
+
log: Logger;
|
|
9
|
+
projects: Projects;
|
|
10
|
+
/** Opens the project at `root` again, as its next request would. */
|
|
11
|
+
reopen(root: string): Promise<unknown>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* What `splates server` does about each project's records being older than it
|
|
15
|
+
* reads: moves them all forward before it listens, and, for one whose
|
|
16
|
+
* migration failed, says why to the page, tries again when asked, and
|
|
17
|
+
* names the root its terminal opens in. A failure is never tried again on
|
|
18
|
+
* its own, so the server comes up once and stays up, however often it is
|
|
19
|
+
* started.
|
|
20
|
+
*/
|
|
21
|
+
export declare class Migrations {
|
|
22
|
+
private readonly home;
|
|
23
|
+
constructor(home: MigrationsHome);
|
|
24
|
+
/**
|
|
25
|
+
* Moves every registered project's records forward, all at once, each
|
|
26
|
+
* within the limit `Migration` keeps: a failure is kept for its page and
|
|
27
|
+
* never stops the others, or the server.
|
|
28
|
+
*/
|
|
29
|
+
startAll(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* The project `request` names with `?project=`, or the focused one, read
|
|
32
|
+
* from the registry alone, so it is found with records that do not open.
|
|
33
|
+
*/
|
|
34
|
+
rootFor(request: Request): Promise<string>;
|
|
35
|
+
/**
|
|
36
|
+
* The failure kept for the project `request` names, with what the page's
|
|
37
|
+
* Fix with an agent types into its terminal and the branch it opens on;
|
|
38
|
+
* `failure` null for none.
|
|
39
|
+
*/
|
|
40
|
+
readonly read: (request: Request) => Promise<Response>;
|
|
41
|
+
/** Forgets the failure kept for the project `request` names, and opens it again. */
|
|
42
|
+
readonly retry: (request: Request) => Promise<Response>;
|
|
43
|
+
private of;
|
|
44
|
+
/** The command that starts an agent told what failed and how to try again. */
|
|
45
|
+
private fix;
|
|
46
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { Pusher, VapidKeys } from "../../../core/push/index.js";
|
|
2
|
+
import type { PortProvider } from "../../../core/system/index.js";
|
|
3
|
+
import type { Duration } from "../../../core/time/index.js";
|
|
4
|
+
import type { Config } from "../config";
|
|
5
|
+
import type { Conversations } from "../conversations";
|
|
6
|
+
import type { Creds } from "../creds";
|
|
7
|
+
import type { TranscriberFor } from "../dictate";
|
|
8
|
+
import type { Git } from "../git";
|
|
9
|
+
import type { Slot } from "../ports";
|
|
10
|
+
import type { Journal } from "../records";
|
|
11
|
+
import type { Storage } from "../storage";
|
|
12
|
+
import type { WorktreeService } from "../tasks";
|
|
13
|
+
import type { AccessConfig, TunnelConfig } from "../tunnel";
|
|
14
|
+
import type { CoordinatorState, DevWorkers, MachineSensors, WorkerMachine } from "../workers";
|
|
15
|
+
import type { GeneralOptions } from "./general";
|
|
16
|
+
import type { Project } from "./project";
|
|
17
|
+
import type { ServerChoice } from "./servers";
|
|
18
|
+
/** What `dev` lets a caller choose. */
|
|
19
|
+
export interface DevOptions {
|
|
20
|
+
/**
|
|
21
|
+
* Where the local worker dials in, a Unix socket path; without it, workers
|
|
22
|
+
* reach this server only through `/api/workers`.
|
|
23
|
+
*/
|
|
24
|
+
workerSocket?: string | null;
|
|
25
|
+
/** Where workers are taken in; one of its own by default. */
|
|
26
|
+
workers?: DevWorkers | null;
|
|
27
|
+
/**
|
|
28
|
+
* What this server keeps across its restarts: the roots of the
|
|
29
|
+
* projects whose agents the last run let go of, served before the worker
|
|
30
|
+
* joins so they are taken back, and written again at the next restart;
|
|
31
|
+
* null keeps nothing, and a restart ends every agent.
|
|
32
|
+
*/
|
|
33
|
+
coordinator?: CoordinatorState | null;
|
|
34
|
+
/**
|
|
35
|
+
* The worker agents and terminals run on, whose process table a restart
|
|
36
|
+
* reads; this machine, read directly, by default.
|
|
37
|
+
*/
|
|
38
|
+
worker?: WorkerMachine | null;
|
|
39
|
+
/**
|
|
40
|
+
* The wildcard base host task ports are served under, as
|
|
41
|
+
* `<task>-<port>.<base>`, behind `access`; null serves them only on
|
|
42
|
+
* loopback ports here. Refused without `access`.
|
|
43
|
+
*/
|
|
44
|
+
portsHost?: string | null;
|
|
45
|
+
/** Where to listen; the port `--port` asked for, and the span above it. */
|
|
46
|
+
ports?: PortProvider;
|
|
47
|
+
/**
|
|
48
|
+
* Host names besides this machine's own that the page may be reached by,
|
|
49
|
+
* like the hostname of a tunnel. Anything else is refused, which is what
|
|
50
|
+
* stops another site from reading the repo through a browser pointed at
|
|
51
|
+
* localhost. Who may use those names is the Access policy's business, not
|
|
52
|
+
* splates's.
|
|
53
|
+
*/
|
|
54
|
+
hosts?: string[];
|
|
55
|
+
/**
|
|
56
|
+
* The Cloudflare Access application in front of `hosts`, or null for none.
|
|
57
|
+
* Given one, a request to those hosts must carry a token it signed, and
|
|
58
|
+
* then may use conversations and terminals too. Anything that exposes the
|
|
59
|
+
* page beyond this machine refuses to without it.
|
|
60
|
+
*/
|
|
61
|
+
access?: AccessConfig | null;
|
|
62
|
+
/**
|
|
63
|
+
* The Cloudflare tunnel to run once listening, whose host `hosts` also
|
|
64
|
+
* lets in. Refused without `access`.
|
|
65
|
+
*/
|
|
66
|
+
tunnel?: TunnelConfig | null;
|
|
67
|
+
/**
|
|
68
|
+
* Makes the conversations a project's page may hold with agents, its
|
|
69
|
+
* records in `storage`, its commands watched through `git`, its limits
|
|
70
|
+
* from `config`, its agents placed on a remote worker in its tasks'
|
|
71
|
+
* clones that `service` records; without it no page has any to show, and the routes
|
|
72
|
+
* say they are off.
|
|
73
|
+
*/
|
|
74
|
+
conversations?: ((project: {
|
|
75
|
+
dir: string;
|
|
76
|
+
storage: Storage;
|
|
77
|
+
git: Git;
|
|
78
|
+
config: Config;
|
|
79
|
+
creds: Creds;
|
|
80
|
+
/** Its tasks, for where its agents start on a remote worker. */
|
|
81
|
+
service: WorktreeService;
|
|
82
|
+
/** Where what its agents do is logged. */
|
|
83
|
+
journal: Journal;
|
|
84
|
+
}) => Conversations) | null;
|
|
85
|
+
/** The machine's projectless conversations; none when omitted. */
|
|
86
|
+
general?: GeneralOptions | null;
|
|
87
|
+
/**
|
|
88
|
+
* The shell a page's terminal runs, as argv, in the main tree or a task's
|
|
89
|
+
* worktree; without it, the page has no terminal and the route says so.
|
|
90
|
+
*/
|
|
91
|
+
shell?: string[] | null;
|
|
92
|
+
/**
|
|
93
|
+
* What a project's dictations transcribe with, by default OpenAI on the
|
|
94
|
+
* key its creds keep; a test hands in a fake.
|
|
95
|
+
*/
|
|
96
|
+
transcriber?: TranscriberFor;
|
|
97
|
+
/** Opens a registered project by its root; `openRepository` by default. */
|
|
98
|
+
open?: (root: string) => Promise<Project>;
|
|
99
|
+
/**
|
|
100
|
+
* The latest splates on npm, or null when it cannot say, asked as the server
|
|
101
|
+
* starts and hourly after; the page hints at a restart once it is past
|
|
102
|
+
* `running`. Without it, nothing is checked.
|
|
103
|
+
*/
|
|
104
|
+
newest?: () => Promise<string | null>;
|
|
105
|
+
/** The version serving; the one installed by default. */
|
|
106
|
+
running?: string;
|
|
107
|
+
/** How often `newest` is asked after the first time: hourly by default. */
|
|
108
|
+
checkEvery?: Duration;
|
|
109
|
+
/**
|
|
110
|
+
* The last commit to splates's own source, or null when it does not run
|
|
111
|
+
* from a checkout. Asked as the server starts, then every `sourceEvery`;
|
|
112
|
+
* once it moves on, the page hints at a restart. A server started from a
|
|
113
|
+
* checkout asks this in place of `newest`, since a restart runs the
|
|
114
|
+
* checkout again. Without it, nothing is checked.
|
|
115
|
+
*/
|
|
116
|
+
source?: () => Promise<string | null>;
|
|
117
|
+
/** How often `source` is asked after the first time. */
|
|
118
|
+
sourceEvery?: Duration;
|
|
119
|
+
/**
|
|
120
|
+
* Whether building the page failed before this start, so what it serves
|
|
121
|
+
* is the page built before; the page says so.
|
|
122
|
+
*/
|
|
123
|
+
unbuilt?: boolean;
|
|
124
|
+
/** The slot `splates server --slot` serves under, which the page shows; null for none. */
|
|
125
|
+
slot?: Slot | null;
|
|
126
|
+
/**
|
|
127
|
+
* Every `splates server` on this machine, the machine's own and each slot's,
|
|
128
|
+
* which the page's switcher lists beside the projects; none by default.
|
|
129
|
+
*/
|
|
130
|
+
servers?: () => Promise<ServerChoice[]>;
|
|
131
|
+
/**
|
|
132
|
+
* Ends the process with `RESTART` or `UPDATE` once the server has
|
|
133
|
+
* stopped, for its supervisor to start another; without it, the page
|
|
134
|
+
* cannot restart `splates server`.
|
|
135
|
+
*/
|
|
136
|
+
exit?: ((code: number) => void) | null;
|
|
137
|
+
/** How long a restart or shutdown waits on checkpoints and on stopping before going on without them; five minutes for none. */
|
|
138
|
+
deadlineMs?: number;
|
|
139
|
+
/** Where the page's machine stats come from; this machine's OS for none. */
|
|
140
|
+
sensors?: MachineSensors | null;
|
|
141
|
+
/** What pushes notices to the devices that subscribed; the Web Push services by default. */
|
|
142
|
+
pusher?: (keys: VapidKeys) => Pusher;
|
|
143
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Assets } from "./assets";
|
|
2
|
+
/**
|
|
3
|
+
* The page the server hands to browsers: the files built as this run
|
|
4
|
+
* started. It changes only with a restart, which builds it again before the
|
|
5
|
+
* server comes back, so the page always matches the server it talks to.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Pages {
|
|
8
|
+
readonly assets: Assets;
|
|
9
|
+
/** The shell, naming the script and styles by what they hold. */
|
|
10
|
+
readonly page: string;
|
|
11
|
+
/**
|
|
12
|
+
* Each file by its path: the small ones made as the server starts, the
|
|
13
|
+
* chunks and their maps only on the first ask for one.
|
|
14
|
+
*/
|
|
15
|
+
private readonly files;
|
|
16
|
+
constructor(assets: Assets);
|
|
17
|
+
/** The server's routes for the page's own files, spread into its `routes`. */
|
|
18
|
+
routes(): Record<string, (request: Request) => Promise<Response>>;
|
|
19
|
+
/** What each body gzips to, made on first ask and kept for the run. */
|
|
20
|
+
private readonly gzipped;
|
|
21
|
+
/**
|
|
22
|
+
* What each body compresses to under brotli, which takes seconds at its
|
|
23
|
+
* best setting: started on the first ask and kept once done, while that
|
|
24
|
+
* ask and any before it is done are answered with gzip.
|
|
25
|
+
*/
|
|
26
|
+
private readonly brotlied;
|
|
27
|
+
/**
|
|
28
|
+
* `file`, or a 304 for a request that holds this very build. A request for
|
|
29
|
+
* the stamped `?v=` name of a body it holds may keep it for good, since a
|
|
30
|
+
* new build is a new name.
|
|
31
|
+
*/
|
|
32
|
+
private respond;
|
|
33
|
+
/** `file` under brotli once that is made, else null, starting to make it. */
|
|
34
|
+
private brotli;
|
|
35
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type PortProvider } from "../../../core/system/index.js";
|
|
2
|
+
/** Preferred, not required: `dev` moves up from here when it is taken. */
|
|
3
|
+
export declare const DEFAULT_PORT = 4269;
|
|
4
|
+
/** How far above the port asked for `dev` will look before giving up. */
|
|
5
|
+
export declare const PORT_SPAN = 20;
|
|
6
|
+
/**
|
|
7
|
+
* Where `dev` will listen, given the port asked for. A flag is outside input,
|
|
8
|
+
* so a port that cannot exist is a refusal with an exit code rather than the
|
|
9
|
+
* assertion `OpenPortProvider` would raise for a bug in here.
|
|
10
|
+
*/
|
|
11
|
+
export declare function devPorts(from: number): PortProvider;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import { type Fs, type Ps } from "../../../core/system/index.js";
|
|
3
|
+
import { type PlacedAcquireOptions, type PlacedLock } from "./ticketed-lock";
|
|
4
|
+
/** Set for what a merge's gate runs: a `bin/mono premerge` that sees it runs without waiting for the premerge lock, which the gate holds. */
|
|
5
|
+
export declare const PREMERGE_HELD = "SPLATES_PREMERGE";
|
|
6
|
+
/** The commit the `preLock` checks passed on, set for the gate's `bin/mono premerge`. */
|
|
7
|
+
export declare const CHECKED_COMMIT = "SPLATES_CHECKED";
|
|
8
|
+
/**
|
|
9
|
+
* The nice for anything an agent runs beside a merge gate that is not the
|
|
10
|
+
* gate, so the gate keeps the CPU: pass it to `nice -n` or `os.setPriority`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const BESIDE_GATE_NICE = 10;
|
|
13
|
+
/**
|
|
14
|
+
* Set for a merge's gate to the test files that failed recent gates, one
|
|
15
|
+
* path a line, which `bin/mono premerge` runs before the whole suite.
|
|
16
|
+
*/
|
|
17
|
+
export declare const RECENT_FAILED_FILES = "SPLATES_RECENT_FAILED_FILES";
|
|
18
|
+
/**
|
|
19
|
+
* Set for a merge's gate to a file its command may append the phases it
|
|
20
|
+
* timed to, one `{"phase": "<name>", "ms": <n>}` line each, which the merge's
|
|
21
|
+
* log entry keeps as its `gate`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const GATE_PHASES = "SPLATES_GATE_PHASES";
|
|
24
|
+
/** How long a merge's gate may run before it is killed, on a machine whose cores it fits. */
|
|
25
|
+
export declare const PREMERGE_TIMEOUT_MS: number;
|
|
26
|
+
/** Set for a merge's gate to its deadline in milliseconds, which `bin/mono premerge` stops its tests by. */
|
|
27
|
+
export declare const GATE_DEADLINE = "SPLATES_GATE_DEADLINE_MS";
|
|
28
|
+
/** How long one holder may keep the premerge lock before it is let go of; a gate given a longer deadline renews it for that long. */
|
|
29
|
+
export declare const PREMERGE_HOLD_MS: number;
|
|
30
|
+
/**
|
|
31
|
+
* A lock that lets its holder go after `holdMs`. `renew` it before each
|
|
32
|
+
* bounded step of work, with the step's own bound when that is longer.
|
|
33
|
+
*/
|
|
34
|
+
export declare class TimedLock implements PlacedLock {
|
|
35
|
+
#private;
|
|
36
|
+
private readonly inner;
|
|
37
|
+
private readonly holdMs;
|
|
38
|
+
private readonly log;
|
|
39
|
+
constructor(inner: PlacedLock, holdMs: number, log: Logger);
|
|
40
|
+
acquire(onPlace?: (place: number) => void | Promise<void>, signal?: AbortSignal, opts?: PlacedAcquireOptions): Promise<void>;
|
|
41
|
+
renew(holdMs?: number): void;
|
|
42
|
+
release(): Promise<void>;
|
|
43
|
+
releaseIfOurs(): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A project's one premerge: every task's merge gate in that project, and a
|
|
47
|
+
* `bin/mono premerge` run by hand there, holds it while the whole suite
|
|
48
|
+
* runs, so a project's full suite runs one at a time. Projects take theirs
|
|
49
|
+
* apart, since they cannot stomp on each other's checkouts. Waiters take it
|
|
50
|
+
* in the order they asked, told their place in line meanwhile, and a holder
|
|
51
|
+
* keeps it at most `PREMERGE_HOLD_MS`. `root` is the project's main tree.
|
|
52
|
+
*/
|
|
53
|
+
export declare function premergeLockOfProject({ fs, ps, log, root, holdMs, }: {
|
|
54
|
+
fs: Fs;
|
|
55
|
+
ps: Ps;
|
|
56
|
+
log: Logger;
|
|
57
|
+
root: string;
|
|
58
|
+
holdMs?: number;
|
|
59
|
+
}): PlacedLock;
|
|
60
|
+
/** The main tree of the project `cwd` is in, whichever worktree that is. */
|
|
61
|
+
export declare function projectRootOf(ps: Ps, cwd: string): Promise<string>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Resource } from "../../../core/disposable/index.js";
|
|
2
|
+
import { Duration } from "../../../core/time/index.js";
|
|
3
|
+
import { type Snapshot } from "../tasks";
|
|
4
|
+
import { type StreamWatcher } from "./http";
|
|
5
|
+
import type { DevContext, Project } from "./project";
|
|
6
|
+
/** How long changes to a repo's files settle before it is read again. */
|
|
7
|
+
export declare const SETTLE: Duration;
|
|
8
|
+
/**
|
|
9
|
+
* What one project's pages hear of its repo: its records, read whole and kept
|
|
10
|
+
* until something in them moves, and a stream that says `changed` whenever
|
|
11
|
+
* what they show moved.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ProjectWatch implements StreamWatcher {
|
|
14
|
+
private readonly project;
|
|
15
|
+
private readonly context;
|
|
16
|
+
/** The streams of the pages listening. */
|
|
17
|
+
private readonly open;
|
|
18
|
+
/** What else listens as a page does, such as the every-project feed. */
|
|
19
|
+
private readonly heard;
|
|
20
|
+
private last;
|
|
21
|
+
/** Bumped by every sign the repo moved, so a read from before it is stale. */
|
|
22
|
+
private moves;
|
|
23
|
+
/** The last read, kept while no move has come since it began. */
|
|
24
|
+
private kept;
|
|
25
|
+
/** The read under way, which every caller at its move count shares. */
|
|
26
|
+
private reading;
|
|
27
|
+
/** Whether the records are watched, without which nothing kept is trusted. */
|
|
28
|
+
private watching;
|
|
29
|
+
private disposed;
|
|
30
|
+
private watches;
|
|
31
|
+
private readonly trees;
|
|
32
|
+
private poll;
|
|
33
|
+
/**
|
|
34
|
+
* Reads each task, keeping what git said of it until a ref or a
|
|
35
|
+
* worktree's file moves, so a board write re-reads only the records.
|
|
36
|
+
*/
|
|
37
|
+
private readonly details;
|
|
38
|
+
private readonly settle;
|
|
39
|
+
private readonly edits;
|
|
40
|
+
/** Watches `project`, read once now so the first page opens on it. */
|
|
41
|
+
static start(project: Project, context: DevContext): Promise<ProjectWatch>;
|
|
42
|
+
private constructor();
|
|
43
|
+
/**
|
|
44
|
+
* The whole repo, as a page shows it. A worktree's edits may lag by as
|
|
45
|
+
* long as they take to settle.
|
|
46
|
+
*/
|
|
47
|
+
current(): Promise<Snapshot>;
|
|
48
|
+
/**
|
|
49
|
+
* Call it after a page's own write: the repo is read again behind the
|
|
50
|
+
* answer, and its pages told.
|
|
51
|
+
*/
|
|
52
|
+
tick(): void;
|
|
53
|
+
/** Reads the repo again soon, telling its pages if anything moved. */
|
|
54
|
+
readonly changed: () => void;
|
|
55
|
+
/** As {@link changed}, for a move that git may say something new of. */
|
|
56
|
+
private readonly moved;
|
|
57
|
+
private readonly edited;
|
|
58
|
+
/** The stream a page listens to for `changed`. */
|
|
59
|
+
events(): Response;
|
|
60
|
+
/**
|
|
61
|
+
* Calls `changed` whenever what a page shows moved, listening as a page
|
|
62
|
+
* does, so worktrees' edits move it too, until disposed.
|
|
63
|
+
*/
|
|
64
|
+
listen(changed: () => void): Resource;
|
|
65
|
+
opened(): void;
|
|
66
|
+
closed(): void;
|
|
67
|
+
/** How many pages, and whatever else, listen. */
|
|
68
|
+
private get listening();
|
|
69
|
+
dispose(): void;
|
|
70
|
+
/** The repo read whole, the server's own facts aside. */
|
|
71
|
+
private read;
|
|
72
|
+
/** `snapshot` with what the server says of itself now, which it may have learned since. */
|
|
73
|
+
private live;
|
|
74
|
+
/** A read begun at the current move count, kept once it lands. */
|
|
75
|
+
private fresh;
|
|
76
|
+
/** Tells the pages listening, if what they show moved since they last heard. */
|
|
77
|
+
private push;
|
|
78
|
+
/**
|
|
79
|
+
* Reads again behind what is kept, which still answers meanwhile, and
|
|
80
|
+
* tells the pages listening if it moved.
|
|
81
|
+
*/
|
|
82
|
+
private revalidate;
|
|
83
|
+
private tell;
|
|
84
|
+
private watchRecords;
|
|
85
|
+
private arm;
|
|
86
|
+
private disarm;
|
|
87
|
+
/**
|
|
88
|
+
* Watches each worktree in `paths`, and no other: its SPLATES.md always,
|
|
89
|
+
* and while a page listens, its files as they are edited, which move its
|
|
90
|
+
* counts. A recursive watch costs a watch per directory
|
|
91
|
+
* on some systems, so none is kept for a page that is not open.
|
|
92
|
+
*/
|
|
93
|
+
private follow;
|
|
94
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import type { Deps } from "../../../core/cmd/index.js";
|
|
2
|
+
import type { Transcriber } from "../../../core/dictate/index.js";
|
|
3
|
+
import type { AsyncResource, Resource } from "../../../core/disposable/index.js";
|
|
4
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
5
|
+
import type { Fs, Ps } from "../../../core/system/index.js";
|
|
6
|
+
import type { ElsewhereBoards, LaneRecord, TaskRecord } from "../board";
|
|
7
|
+
import type { ConversationState, Conversations, ConversationsHeard } from "../conversations";
|
|
8
|
+
import type { SecretStores } from "../creds";
|
|
9
|
+
import type { TranscriberFor } from "../dictate";
|
|
10
|
+
import { type Needing } from "../plans";
|
|
11
|
+
import type { PortOwners, Slot } from "../ports";
|
|
12
|
+
import type { Everywhere, Projects } from "../projects";
|
|
13
|
+
import type { Format, Journal, Repository } from "../records";
|
|
14
|
+
import { type ReplicaStatus } from "../replica";
|
|
15
|
+
import { Shipping } from "../ship";
|
|
16
|
+
import type { Details, Snapshot } from "../tasks";
|
|
17
|
+
import type { Assets } from "./assets";
|
|
18
|
+
import type { Behind, Release } from "./release";
|
|
19
|
+
import type { Replicas } from "./replicas";
|
|
20
|
+
/**
|
|
21
|
+
* Everything one project's page talks to: its records, its stream of
|
|
22
|
+
* changes and its conversations, kept from the first request for it until
|
|
23
|
+
* the server stops.
|
|
24
|
+
*/
|
|
25
|
+
export declare function serveProject(project: Project, context: DevContext): Promise<Served>;
|
|
26
|
+
/** What `dev` serves a project with: its own records, read and written. */
|
|
27
|
+
export type Project = Pick<Repository, "service" | "config" | "journal" | "tasks" | "format" | "dir" | "storage" | "git" | "creds" | "slots" | "trunk" | "branches" | "lock"> & {
|
|
28
|
+
fs: Fs;
|
|
29
|
+
ps: Ps;
|
|
30
|
+
log: Logger;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* What `dev` runs with: the machine's, not any project's, since it serves
|
|
34
|
+
* every registered project wherever it was started.
|
|
35
|
+
*/
|
|
36
|
+
export type DevMachine = Deps & {
|
|
37
|
+
fs: Fs;
|
|
38
|
+
/** Where each project's creds are kept; the system's stores by default. */
|
|
39
|
+
secrets?: SecretStores;
|
|
40
|
+
/** How setup's checks reach the network; the global fetch by default. */
|
|
41
|
+
fetch?: typeof fetch;
|
|
42
|
+
/** The built page. */
|
|
43
|
+
assets: Assets;
|
|
44
|
+
/** Every splates project on this machine. */
|
|
45
|
+
projects: Projects;
|
|
46
|
+
/**
|
|
47
|
+
* Projects opened already, served as they are rather than opened again:
|
|
48
|
+
* a test's own, with its fakes.
|
|
49
|
+
*/
|
|
50
|
+
opened?: Project[];
|
|
51
|
+
};
|
|
52
|
+
/** What the server as a whole tells each project it serves. */
|
|
53
|
+
export interface DevContext {
|
|
54
|
+
/** Where the agents' own `splates` reaches this server, once it listens. */
|
|
55
|
+
readonly url: string | null;
|
|
56
|
+
/** A newer splates on npm, once a check has found one; every page says so. */
|
|
57
|
+
readonly release: Release | null;
|
|
58
|
+
/** Commits to splates's own source since this run started, once seen. */
|
|
59
|
+
readonly behind: Behind | null;
|
|
60
|
+
/** Whether building the page failed, so it serves the one built before. */
|
|
61
|
+
readonly unbuilt: boolean;
|
|
62
|
+
/** The slot `splates server --slot` serves under, or null. */
|
|
63
|
+
readonly slot: Slot | null;
|
|
64
|
+
/** The replicators of every project, which `serveProject` leaves to run on. */
|
|
65
|
+
readonly replicas: Replicas;
|
|
66
|
+
/** The conversations `project`'s page may hold, or null when they are off. */
|
|
67
|
+
conversationsFor(project: Project): Conversations | null;
|
|
68
|
+
/** Every served project's conversations, where a caller of one may be. */
|
|
69
|
+
readonly everywhere: Everywhere;
|
|
70
|
+
/**
|
|
71
|
+
* The other projects' boards, which its tasks may wait on; absent, as in
|
|
72
|
+
* a test of one project, none is read.
|
|
73
|
+
*/
|
|
74
|
+
readonly boards?: ElsewhereBoards;
|
|
75
|
+
/** Calls `listener` whenever the workers' slots change, until the call it gives back. */
|
|
76
|
+
onWorkerRoom(listener: () => void): () => void;
|
|
77
|
+
/** Whether everything splates starts on its own waits, the person's own agents alone starting. */
|
|
78
|
+
paused(): boolean;
|
|
79
|
+
/** What `project`'s dictations transcribe with. */
|
|
80
|
+
readonly transcriberFor: TranscriberFor;
|
|
81
|
+
}
|
|
82
|
+
/** A route's work once its project is known. */
|
|
83
|
+
export type Handler = (request: Request) => Promise<Response>;
|
|
84
|
+
/** One project as the server holds it: what each of its routes does. */
|
|
85
|
+
export interface Served extends AsyncResource {
|
|
86
|
+
root: string;
|
|
87
|
+
/** Its config's `afterBump`, for the bump tasks of a ship's cascade. */
|
|
88
|
+
afterBump: string | null;
|
|
89
|
+
/** Its journal, for the events the server logs on its behalf. */
|
|
90
|
+
journal: Journal;
|
|
91
|
+
format: Format;
|
|
92
|
+
conversations: Conversations | null;
|
|
93
|
+
/** Reads the repo again soon, telling its pages if anything moved. */
|
|
94
|
+
refresh: () => void;
|
|
95
|
+
snapshot: Handler;
|
|
96
|
+
/**
|
|
97
|
+
* Everything its page shows, cheap enough to read for every project at
|
|
98
|
+
* once: a read while nothing in the repo moved answers the last one.
|
|
99
|
+
*/
|
|
100
|
+
current: () => Promise<Snapshot>;
|
|
101
|
+
/** How many of its agents wait on the person. */
|
|
102
|
+
waiting: () => Promise<number>;
|
|
103
|
+
/** What each of its agents needs, and the lanes that name an orchestrator. */
|
|
104
|
+
needing: () => Promise<{
|
|
105
|
+
rows: Needing[];
|
|
106
|
+
lanes: LaneRecord[];
|
|
107
|
+
}>;
|
|
108
|
+
/** Every lane there has been, to name an orchestrator after. */
|
|
109
|
+
lanes: () => Promise<LaneRecord[]>;
|
|
110
|
+
/** Its tasks' worktrees and agents, whose processes' ports are the tasks'. */
|
|
111
|
+
portOwners: () => Promise<PortOwners>;
|
|
112
|
+
events: Handler;
|
|
113
|
+
/**
|
|
114
|
+
* Tells `heard` of each move its pages would hear, listening as a page
|
|
115
|
+
* does, until disposed.
|
|
116
|
+
*/
|
|
117
|
+
listen: (heard: ProjectHeard) => Resource;
|
|
118
|
+
file: Handler;
|
|
119
|
+
open: Handler;
|
|
120
|
+
paths: Handler;
|
|
121
|
+
diff: Handler;
|
|
122
|
+
finishedTasks: Handler;
|
|
123
|
+
mergeEstimates: Handler;
|
|
124
|
+
mergeOutput: Handler;
|
|
125
|
+
finishedTask: Handler;
|
|
126
|
+
retryTask: Handler;
|
|
127
|
+
removeTask: Handler;
|
|
128
|
+
addQueued: Handler;
|
|
129
|
+
updateQueued: Handler;
|
|
130
|
+
moveQueued: Handler;
|
|
131
|
+
linkQueued: Handler;
|
|
132
|
+
elsewhereTasks: Handler;
|
|
133
|
+
arrangeQueued: Handler;
|
|
134
|
+
assignQueued: Handler;
|
|
135
|
+
queueQueued: Handler;
|
|
136
|
+
answerDeferred: Handler;
|
|
137
|
+
doneOutside: Handler;
|
|
138
|
+
moveInQueue: Handler;
|
|
139
|
+
/** Tries a queued task's refused start again. */
|
|
140
|
+
retryQueued: Handler;
|
|
141
|
+
joinLane: Handler;
|
|
142
|
+
addLane: Handler;
|
|
143
|
+
updateLane: Handler;
|
|
144
|
+
dropLane: Handler;
|
|
145
|
+
removeQueued: Handler;
|
|
146
|
+
restoreQueued: Handler;
|
|
147
|
+
/** The project's latest ship. */
|
|
148
|
+
ship: Handler;
|
|
149
|
+
/** Runs the project's ship, as a cascade's step. */
|
|
150
|
+
shipping: Shipping;
|
|
151
|
+
/** The project's bump tasks in a cascade. */
|
|
152
|
+
/** What its latest ship printed, as it prints. */
|
|
153
|
+
shipOutput: Handler;
|
|
154
|
+
listCreds: Handler;
|
|
155
|
+
saveCred: Handler;
|
|
156
|
+
removeCred: Handler;
|
|
157
|
+
dismissCred: Handler;
|
|
158
|
+
/** Where its replica stands now, or as last recorded; null when none has run. */
|
|
159
|
+
replica: () => Promise<ReplicaStatus | null>;
|
|
160
|
+
/** Whether its creds, the project's then the device's, keep `name`. */
|
|
161
|
+
kept: (name: string) => Promise<boolean>;
|
|
162
|
+
listBudgets: Handler;
|
|
163
|
+
setBudget: Handler;
|
|
164
|
+
raiseBudget: Handler;
|
|
165
|
+
endRaise: Handler;
|
|
166
|
+
pauseBudget: Handler;
|
|
167
|
+
resumeBudget: Handler;
|
|
168
|
+
listAutomations: Handler;
|
|
169
|
+
addAutomation: Handler;
|
|
170
|
+
editAutomation: Handler;
|
|
171
|
+
removeAutomation: Handler;
|
|
172
|
+
pauseAutomation: Handler;
|
|
173
|
+
resumeAutomation: Handler;
|
|
174
|
+
runAutomation: Handler;
|
|
175
|
+
listConversations: Handler;
|
|
176
|
+
searchConversations: Handler;
|
|
177
|
+
showConversation: Handler;
|
|
178
|
+
refreshLimits: Handler;
|
|
179
|
+
chooseDefault: Handler;
|
|
180
|
+
startShipTask(task: string, ship: string): Promise<void>;
|
|
181
|
+
startConversation: Handler;
|
|
182
|
+
startAutoPick: Handler;
|
|
183
|
+
tryAutoPick: Handler;
|
|
184
|
+
listSessions: Handler;
|
|
185
|
+
bringSession: Handler;
|
|
186
|
+
/**
|
|
187
|
+
* Asks every live conversation here to bring its SPLATES.md up to date,
|
|
188
|
+
* answering with what settles as each answers; with `budget`, those
|
|
189
|
+
* `only` names, for a worker budget hard stop.
|
|
190
|
+
*/
|
|
191
|
+
checkpoint: (only?: string[], budget?: string | null) => Promise<Promise<void>[]>;
|
|
192
|
+
moveConversation: Handler;
|
|
193
|
+
promptConversation: Handler;
|
|
194
|
+
approveSuite: Handler;
|
|
195
|
+
addArtifact: Handler;
|
|
196
|
+
removeArtifact: Handler;
|
|
197
|
+
deleteArtifactVersion: Handler;
|
|
198
|
+
conversationAttachment: Handler;
|
|
199
|
+
conversationArtifact: Handler;
|
|
200
|
+
answerConversation: Handler;
|
|
201
|
+
cancelConversation: Handler;
|
|
202
|
+
pauseConversation: Handler;
|
|
203
|
+
restartConversation: Handler;
|
|
204
|
+
handOffConversation: Handler;
|
|
205
|
+
stopBackground: Handler;
|
|
206
|
+
backgroundOutput: Handler;
|
|
207
|
+
unqueueConversation: Handler;
|
|
208
|
+
sendQueuedNow: Handler;
|
|
209
|
+
chooseSetting: Handler;
|
|
210
|
+
switchAutoPick: Handler;
|
|
211
|
+
renameConversation: Handler;
|
|
212
|
+
markUnread: Handler;
|
|
213
|
+
markRead: Handler;
|
|
214
|
+
pinConversation: Handler;
|
|
215
|
+
reparentConversation: Handler;
|
|
216
|
+
archiveConversation: Handler;
|
|
217
|
+
conversationEvents: Handler;
|
|
218
|
+
terminalTree: (request: Request) => Promise<string>;
|
|
219
|
+
/**
|
|
220
|
+
* What a dictation transcribes with, read afresh for each take; null,
|
|
221
|
+
* after asking for the key on the Creds page, without one.
|
|
222
|
+
*/
|
|
223
|
+
transcriber: () => Promise<Transcriber | null>;
|
|
224
|
+
}
|
|
225
|
+
/** What a listener other than a page hears of one project. */
|
|
226
|
+
export interface ProjectHeard extends ConversationsHeard {
|
|
227
|
+
/** Something its snapshot holds moved, such as a task. */
|
|
228
|
+
board(): void;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* How many agents wait on the person, counted as the page's waiting line
|
|
232
|
+
* counts them: only conversations, and questions only while unanswered.
|
|
233
|
+
*/
|
|
234
|
+
export declare function waitingOn(tasks: Details[], conversations: ConversationState[], todos?: readonly TaskRecord[]): number;
|
|
235
|
+
/**
|
|
236
|
+
* How many tasks wait on the person where no conversation is known, as for a
|
|
237
|
+
* project not opened, whose conversations are not loaded.
|
|
238
|
+
*/
|
|
239
|
+
export declare function waitingTasks(tasks: Details[]): number;
|