@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,60 @@
|
|
|
1
|
+
// exit.ts
|
|
2
|
+
var EXIT2 = {
|
|
3
|
+
usage: 1,
|
|
4
|
+
conflict: 2,
|
|
5
|
+
tests_failed: 3,
|
|
6
|
+
lease_lost: 4,
|
|
7
|
+
budget_exhausted: 5,
|
|
8
|
+
lease_held: 6,
|
|
9
|
+
dirty: 7,
|
|
10
|
+
not_found: 8,
|
|
11
|
+
hook_failed: 9,
|
|
12
|
+
exists: 10,
|
|
13
|
+
orphaned: 11,
|
|
14
|
+
merge_failed: 12,
|
|
15
|
+
already_removed: 13,
|
|
16
|
+
timeout: 14,
|
|
17
|
+
blocked: 16,
|
|
18
|
+
cycle: 18,
|
|
19
|
+
outdated: 19,
|
|
20
|
+
uninitialized: 20,
|
|
21
|
+
too_large: 21,
|
|
22
|
+
dismissed: 22,
|
|
23
|
+
no_secret_store: 23,
|
|
24
|
+
cloudflare: 24,
|
|
25
|
+
requested: 25,
|
|
26
|
+
slots_full: 26,
|
|
27
|
+
slot_running: 27,
|
|
28
|
+
not_granted: 28,
|
|
29
|
+
migration_failed: 30,
|
|
30
|
+
no_runner: 31
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
class Exit2 extends Error {
|
|
34
|
+
reason;
|
|
35
|
+
data;
|
|
36
|
+
constructor(reason, message, data = {}) {
|
|
37
|
+
super(message);
|
|
38
|
+
this.reason = reason;
|
|
39
|
+
this.data = data;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function fail2(reason, message, data = {}) {
|
|
43
|
+
throw new Exit2(reason, message, data);
|
|
44
|
+
}
|
|
45
|
+
function exits2() {
|
|
46
|
+
return async (ctx, next) => {
|
|
47
|
+
try {
|
|
48
|
+
await next(ctx);
|
|
49
|
+
} catch (e) {
|
|
50
|
+
if (!(e instanceof Exit2)) {
|
|
51
|
+
throw e;
|
|
52
|
+
}
|
|
53
|
+
ctx.log.info(JSON.stringify({ reason: e.reason, ...e.data }));
|
|
54
|
+
ctx.log.error(e.message);
|
|
55
|
+
ctx.ps.exit(EXIT2[e.reason]);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export { EXIT2, Exit2, fail2, exits2 };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `each` of `items`, in their order, with at most `concurrency` under way at
|
|
3
|
+
* once: `Promise.all` for work that starts processes, which a long list would
|
|
4
|
+
* otherwise start all together.
|
|
5
|
+
*/
|
|
6
|
+
export declare function limited<T, R>(items: readonly T[], concurrency: number, each: (item: T) => Promise<R>): Promise<R[]>;
|
|
7
|
+
/** How many tasks to read at once, each read running several git processes. */
|
|
8
|
+
export declare const READ_CONCURRENCY = 8;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Logger } from "../../core/log/index.js";
|
|
2
|
+
import type { Journal } from "./records";
|
|
3
|
+
/** Enough to cover a session's worth of work without scrolling. */
|
|
4
|
+
export declare const DEFAULT_COUNT = 20;
|
|
5
|
+
export interface LogOptions {
|
|
6
|
+
/** How many of the most recent entries to show. */
|
|
7
|
+
count?: number;
|
|
8
|
+
/** Print the entries as JSON instead of a table. */
|
|
9
|
+
json?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function log({ journal, log }: {
|
|
12
|
+
journal: Journal;
|
|
13
|
+
log: Logger;
|
|
14
|
+
}, { count, json }?: LogOptions): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {
|
|
2
|
+
table,
|
|
3
|
+
age
|
|
4
|
+
} from "./index-kmzdvvt0.js";
|
|
5
|
+
|
|
6
|
+
// log.ts
|
|
7
|
+
import { color } from "../../core/log/index.js";
|
|
8
|
+
var DEFAULT_COUNT = 20;
|
|
9
|
+
async function log({ journal, log }, { count = DEFAULT_COUNT, json = false } = {}) {
|
|
10
|
+
const entries = await journal.tail(count);
|
|
11
|
+
if (json) {
|
|
12
|
+
log.info(JSON.stringify(entries, null, "\t"));
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
if (entries.length === 0) {
|
|
16
|
+
log.info("nothing recorded yet");
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
log.info(table(["WHEN", "ACTION", "TASK", "RESULT"], entries.map(row)));
|
|
20
|
+
}
|
|
21
|
+
function row(entry) {
|
|
22
|
+
return [
|
|
23
|
+
age(entry.at),
|
|
24
|
+
entry.action,
|
|
25
|
+
entry.task ?? "-",
|
|
26
|
+
entry.reason === null ? color.green("ok") + (entry.action === "merge" && (entry.batch?.length ?? 0) > 1 ? ` · gated with ${entry.batch?.filter((task) => task !== entry.task).join(", ")}` : "") : color.red(entry.reason)
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
DEFAULT_COUNT,
|
|
31
|
+
log
|
|
32
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FailedTest } from "../tasks";
|
|
2
|
+
import type { GateRun, MergeGate } from "./gate";
|
|
3
|
+
/**
|
|
4
|
+
* Why a failing gate stopped, independent of whether its task eventually lands.
|
|
5
|
+
* `inconclusive` is a gate no retest could judge (no usable report, or a retest
|
|
6
|
+
* that did not finish): it shows nothing about the environment.
|
|
7
|
+
*/
|
|
8
|
+
export type FailureAttribution = "task" | "trunk" | "flake" | "environment" | "inconclusive";
|
|
9
|
+
export interface AttributedFailure {
|
|
10
|
+
kind: FailureAttribution;
|
|
11
|
+
failed: FailedTest[];
|
|
12
|
+
why: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Attributes one gate failure without moving the task's checkout. A future
|
|
16
|
+
* merge queue can call this against a batch's tip and its exact base commit.
|
|
17
|
+
*/
|
|
18
|
+
export declare function attributeFailure({ gate }: {
|
|
19
|
+
gate: MergeGate;
|
|
20
|
+
}, run: GateRun, { cwd, task, onto }: {
|
|
21
|
+
cwd: string;
|
|
22
|
+
task: string;
|
|
23
|
+
onto: string;
|
|
24
|
+
}): Promise<AttributedFailure>;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import type { Ps } from "../../../core/system/index.js";
|
|
3
|
+
import type { Storage } from "../storage";
|
|
4
|
+
import type { FailedTest } from "../tasks";
|
|
5
|
+
import type { FailureAttribution } from "./attribution";
|
|
6
|
+
/** How many merges one batch gates at most, its leader included. */
|
|
7
|
+
export declare const MERGE_BATCH_CAP = 4;
|
|
8
|
+
/** How long a leader waits for a follower it invited to stack its branch. */
|
|
9
|
+
export declare const STACK_REPLY_MS = 30000;
|
|
10
|
+
/**
|
|
11
|
+
* Lets merges waiting for the premerge lock land on one gate run. The merge
|
|
12
|
+
* that takes the lock leads; the others follow and read their result here.
|
|
13
|
+
*/
|
|
14
|
+
export declare class MergeBatch {
|
|
15
|
+
private readonly storage;
|
|
16
|
+
private readonly ps;
|
|
17
|
+
private readonly log;
|
|
18
|
+
private readonly pollMs;
|
|
19
|
+
private readonly replyMs;
|
|
20
|
+
private readonly cap;
|
|
21
|
+
/** Followers this leader asked that did not stack, not asked again. */
|
|
22
|
+
private readonly declined;
|
|
23
|
+
constructor(storage: Storage, ps: Ps, log: Logger, opts?: MergeBatchOptions);
|
|
24
|
+
private get records();
|
|
25
|
+
/** Offers `task`'s merge onto `base` to whichever merge leads next. */
|
|
26
|
+
offer(task: string, base: string): Promise<void>;
|
|
27
|
+
/** Takes `task` out of any batch, leaving no record of it. */
|
|
28
|
+
clear(task: string): Promise<void>;
|
|
29
|
+
/** The invitation `task` has yet to answer, if any. */
|
|
30
|
+
invited(task: string): Promise<Invite | null>;
|
|
31
|
+
/** Answers an invitation: the branch's head on `onto`, or null for a conflict. */
|
|
32
|
+
stacked(task: string, onto: string, head: string | null): Promise<void>;
|
|
33
|
+
/** What the batch came to for `task`, once its leader has said. */
|
|
34
|
+
result(task: string): Promise<BatchResult | null>;
|
|
35
|
+
/**
|
|
36
|
+
* Forms `leader`'s batch: invites the merges waiting to land on `base`,
|
|
37
|
+
* oldest first and up to the cap, each onto the tip the one before it
|
|
38
|
+
* made, and returns those that stacked. A follower that declines, or
|
|
39
|
+
* does not answer in time, is left out of this leader's batches.
|
|
40
|
+
*/
|
|
41
|
+
form(leader: string, base: string, tip: string): Promise<Member[]>;
|
|
42
|
+
/** Leaves `task` out of this leader's later batches, as a culprit is. */
|
|
43
|
+
exclude(task: string): void;
|
|
44
|
+
/** Drops `task`'s answer and result, as a follower a batch let go does. */
|
|
45
|
+
unstack(task: string): Promise<void>;
|
|
46
|
+
/** Tells `member` what its batch came to. */
|
|
47
|
+
tell(member: Member, result: BatchResult): Promise<void>;
|
|
48
|
+
/** Sends every member of `members` on its way alone, back on its own head. */
|
|
49
|
+
dissolve(members: Member[]): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* The live offers for `base`, oldest first, the leader's own and those it
|
|
52
|
+
* has given up on left out; an offer whose process is gone is dropped.
|
|
53
|
+
*/
|
|
54
|
+
private waiting;
|
|
55
|
+
/** The head `task` stacked on `onto`, or null once it declined or ran out of time. */
|
|
56
|
+
private awaitStacked;
|
|
57
|
+
private read;
|
|
58
|
+
private write;
|
|
59
|
+
}
|
|
60
|
+
export interface MergeBatchOptions {
|
|
61
|
+
/** How often a follower looks for an invitation or result. */
|
|
62
|
+
pollMs?: number;
|
|
63
|
+
/** How long a leader waits for an invited follower to stack. */
|
|
64
|
+
replyMs?: number;
|
|
65
|
+
/** How many merges a batch gates at most, the leader included. */
|
|
66
|
+
cap?: number;
|
|
67
|
+
}
|
|
68
|
+
/** A merge waiting for the premerge lock that a leader may take into its batch. */
|
|
69
|
+
export interface Offer {
|
|
70
|
+
task: string;
|
|
71
|
+
pid: number;
|
|
72
|
+
hostname: string;
|
|
73
|
+
/** The branch it lands on; a batch holds one base's merges only. */
|
|
74
|
+
base: string;
|
|
75
|
+
/** When it began waiting, which orders the batch first come, first served. */
|
|
76
|
+
since: string;
|
|
77
|
+
}
|
|
78
|
+
/** A leader's ask of a follower: put your branch on `onto`. */
|
|
79
|
+
export interface Invite {
|
|
80
|
+
leader: string;
|
|
81
|
+
/** The stack's tip to rebase onto. */
|
|
82
|
+
onto: string;
|
|
83
|
+
}
|
|
84
|
+
/** A follower stacked on a leader's `onto`, or declined it. */
|
|
85
|
+
export interface Stacked {
|
|
86
|
+
onto: string;
|
|
87
|
+
/** The branch's tip once on `onto`; null for a rebase that conflicted. */
|
|
88
|
+
head: string | null;
|
|
89
|
+
}
|
|
90
|
+
/** A follower's head, stacked on the batch's tip before it. */
|
|
91
|
+
export interface Member {
|
|
92
|
+
task: string;
|
|
93
|
+
onto: string;
|
|
94
|
+
head: string;
|
|
95
|
+
}
|
|
96
|
+
/** What a batch came to for one of its followers. */
|
|
97
|
+
export type BatchResult = {
|
|
98
|
+
kind: "landed";
|
|
99
|
+
head: string;
|
|
100
|
+
batch: string[];
|
|
101
|
+
} | {
|
|
102
|
+
kind: "failed";
|
|
103
|
+
attribution: FailureAttribution;
|
|
104
|
+
failedTests: FailedTest[];
|
|
105
|
+
/** What the batch gate printed. */
|
|
106
|
+
output: string;
|
|
107
|
+
exitCode: number;
|
|
108
|
+
/** The commit the follower's branch was stacked on when it was gated. */
|
|
109
|
+
rebasedOnto: string;
|
|
110
|
+
/** The stack's commit holding the follower's commits, to reproduce on. */
|
|
111
|
+
at: string;
|
|
112
|
+
batch: string[];
|
|
113
|
+
} | {
|
|
114
|
+
kind: "dissolved";
|
|
115
|
+
};
|
|
116
|
+
/** A batch's result that ends the follower's merge: landed, or refused. */
|
|
117
|
+
export type Settled = Exclude<BatchResult, {
|
|
118
|
+
kind: "dissolved";
|
|
119
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Git } from "../git";
|
|
2
|
+
import type { FailedTest } from "../tasks";
|
|
3
|
+
import type { Member } from "./batch";
|
|
4
|
+
import type { MergeGate } from "./gate";
|
|
5
|
+
/**
|
|
6
|
+
* Which member of a batch the failing `failed` tests first fail with: the
|
|
7
|
+
* stack is walked from the bottom, the failing files run on each member's
|
|
8
|
+
* head in turn, and the first head they fail on names it; the tip's member
|
|
9
|
+
* when none below does, since the whole gate failed there. Null when a run
|
|
10
|
+
* fails without naming a test, which tells nothing.
|
|
11
|
+
*/
|
|
12
|
+
export declare function blame({ gate, git }: {
|
|
13
|
+
gate: MergeGate;
|
|
14
|
+
git: Git;
|
|
15
|
+
}, { cwd, task }: {
|
|
16
|
+
cwd: string;
|
|
17
|
+
task: string;
|
|
18
|
+
}, stack: Member[], failed: FailedTest[]): Promise<{
|
|
19
|
+
member: Member;
|
|
20
|
+
failed: FailedTest[];
|
|
21
|
+
} | null>;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import type { Config } from "../config";
|
|
2
|
+
import type { Creds } from "../creds";
|
|
3
|
+
import type { Git } from "../git";
|
|
4
|
+
import { type PlanStore } from "../plans";
|
|
5
|
+
import type { Worktree } from "../tasks";
|
|
6
|
+
import { GitHubApp, type InstallationToken } from "./github-app";
|
|
7
|
+
/** What a task's branch is pushed as on the central remote: `splates/<task>`. */
|
|
8
|
+
export declare const PUSHED_PREFIX = "splates/";
|
|
9
|
+
/** How a push or a delete of a task's branch went. */
|
|
10
|
+
export type Pushed =
|
|
11
|
+
/** The remote has the branch as it stands, or has it no more for a delete. */
|
|
12
|
+
{
|
|
13
|
+
status: "pushed";
|
|
14
|
+
branch: string;
|
|
15
|
+
}
|
|
16
|
+
/** No central remote is configured, so nothing was pushed. */
|
|
17
|
+
| {
|
|
18
|
+
status: "off";
|
|
19
|
+
}
|
|
20
|
+
/** Refused before git was asked, for `why`. */
|
|
21
|
+
| {
|
|
22
|
+
status: "refused";
|
|
23
|
+
why: string;
|
|
24
|
+
}
|
|
25
|
+
/** Git or GitHub refused it, saying `why`. */
|
|
26
|
+
| {
|
|
27
|
+
status: "failed";
|
|
28
|
+
why: string;
|
|
29
|
+
};
|
|
30
|
+
/** What mints a task's tokens: the GitHub App, or a server that keeps it. */
|
|
31
|
+
export type TokenMinter = Pick<GitHubApp, "token">;
|
|
32
|
+
/** Where `TaskBranches` finds what it mints tokens with. */
|
|
33
|
+
export interface AppSource {
|
|
34
|
+
/** The App, or null when its creds are not kept. */
|
|
35
|
+
app(): Promise<TokenMinter | null>;
|
|
36
|
+
}
|
|
37
|
+
/** Where `TaskBranches` reads a task's branch, for a push, a delete or a sign-in. */
|
|
38
|
+
export interface BranchOptions {
|
|
39
|
+
/** The repository the branch is in: the main tree's by default, or a clone's. */
|
|
40
|
+
at?: Git;
|
|
41
|
+
/** Push to `splates/<as>` rather than `splates/<task>`; a `push` only. */
|
|
42
|
+
as?: string;
|
|
43
|
+
}
|
|
44
|
+
/** What `TaskBranches.of` reaches GitHub through; the global `fetch` by default. */
|
|
45
|
+
export interface TaskBranchesOptions {
|
|
46
|
+
fetch?: typeof fetch;
|
|
47
|
+
}
|
|
48
|
+
/** Where a push goes and what it signs in with. */
|
|
49
|
+
export interface Target {
|
|
50
|
+
/** A remote's name, or a URL. */
|
|
51
|
+
to: string;
|
|
52
|
+
/** The URL it fetches from, which a clone is made from. */
|
|
53
|
+
url: string;
|
|
54
|
+
/** Added to git's environment, carrying a token when there is one. */
|
|
55
|
+
env: Record<string, string>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Each task's branch on the project's central remote, `config.remote`, as
|
|
59
|
+
* `splates/<task>`: pushed after every commit and at every checkpoint, so a
|
|
60
|
+
* task outlives the machine it runs on, and deleted once it merges or is
|
|
61
|
+
* removed. Nothing here ever pushes anything but a `splates/*` branch, and
|
|
62
|
+
* a branch that tracks `SPLATES.md` is never pushed at all.
|
|
63
|
+
*
|
|
64
|
+
* With the GitHub App's creds kept, it pushes with a token the App mints per
|
|
65
|
+
* task, good for an hour and for this repository's contents alone; without
|
|
66
|
+
* them, with this machine's own git credentials.
|
|
67
|
+
*/
|
|
68
|
+
export declare class TaskBranches {
|
|
69
|
+
private readonly git;
|
|
70
|
+
/** Names the remote, `remote`, read at each push; null pushes nothing. */
|
|
71
|
+
private readonly config;
|
|
72
|
+
private readonly apps;
|
|
73
|
+
/** Where a pushed task's plan is kept beside its branch; none keeps no plans. */
|
|
74
|
+
private readonly plans;
|
|
75
|
+
/** By task, the token it pushes with until it nears its expiry. */
|
|
76
|
+
private readonly tokens;
|
|
77
|
+
/**
|
|
78
|
+
* By task, its last push or delete, which the next waits for: two pushes
|
|
79
|
+
* racing could leave the older last, and the remote behind.
|
|
80
|
+
*/
|
|
81
|
+
private readonly last;
|
|
82
|
+
constructor(git: Git,
|
|
83
|
+
/** Names the remote, `remote`, read at each push; null pushes nothing. */
|
|
84
|
+
config: Pick<Config, "remote">, apps: AppSource,
|
|
85
|
+
/** Where a pushed task's plan is kept beside its branch; none keeps no plans. */
|
|
86
|
+
plans?: PlanStore | null);
|
|
87
|
+
/** The project's, pushing to its configured remote with its kept creds. */
|
|
88
|
+
static of({ git, config, creds, plans, }: {
|
|
89
|
+
git: Git;
|
|
90
|
+
config: Config;
|
|
91
|
+
creds: Creds;
|
|
92
|
+
plans?: PlanStore;
|
|
93
|
+
}, opts?: TaskBranchesOptions): TaskBranches;
|
|
94
|
+
/** The remote's name, or null when none is configured. */
|
|
95
|
+
remote(): string | null;
|
|
96
|
+
/** The branch `task` is pushed as. */
|
|
97
|
+
pushedBranch(task: string): string;
|
|
98
|
+
/**
|
|
99
|
+
* Pushes `branch`, the task's own, to the remote as `splates/<task>`,
|
|
100
|
+
* replacing what is there, since a task's branch is rebased and squashed
|
|
101
|
+
* as it goes. Run while a rebase is under way, it pushes the branch as it
|
|
102
|
+
* stood before the rebase.
|
|
103
|
+
*/
|
|
104
|
+
push(task: string, branch: string, opts?: BranchOptions): Promise<Pushed>;
|
|
105
|
+
/** Writes the plan kept for `tree`'s task into it when it has none: false when nothing was written. */
|
|
106
|
+
restorePlan(tree: Pick<Worktree, "task" | "path">): Promise<boolean>;
|
|
107
|
+
/** Pushes a task's own branch from its checkout, a worktree or a clone, as `push` does. */
|
|
108
|
+
pushTree(tree: Pick<Worktree, "task" | "branch" | "git">): Promise<Pushed>;
|
|
109
|
+
/** Deletes `splates/<task>` from the remote; one already gone is deleted too. */
|
|
110
|
+
delete(task: string, opts?: BranchOptions): Promise<Pushed>;
|
|
111
|
+
/**
|
|
112
|
+
* Fetches the remote's `trunk` into `refs/remotes/<remote>/<trunk>`,
|
|
113
|
+
* signing in as `task`'s pushes do, and gives the commit it is at: what a
|
|
114
|
+
* merge rebases onto, since only the server moves trunk there.
|
|
115
|
+
*/
|
|
116
|
+
fetchTrunk(task: string, trunk: string, cwd: string): Promise<{
|
|
117
|
+
status: "fetched";
|
|
118
|
+
commit: string;
|
|
119
|
+
} | Exclude<Pushed, {
|
|
120
|
+
status: "pushed";
|
|
121
|
+
}>>;
|
|
122
|
+
/**
|
|
123
|
+
* Where `task`'s branch is pushed and fetched, signing in with a token
|
|
124
|
+
* of its own when the App is kept; null when no remote is configured.
|
|
125
|
+
* Read in `at`, the repository the task's branch is in. A null `task`
|
|
126
|
+
* signs in for the project's own checkout, with a token minted afresh.
|
|
127
|
+
*/
|
|
128
|
+
signIn(task: string | null, opts?: BranchOptions): Promise<Target | null>;
|
|
129
|
+
/**
|
|
130
|
+
* A token of the App's for the project's own repository, as the
|
|
131
|
+
* server mints one for a worker's git; null when the App is not
|
|
132
|
+
* kept or the remote is not on github.com. Never for any other
|
|
133
|
+
* repository, whatever the worker asks.
|
|
134
|
+
*/
|
|
135
|
+
mint(): Promise<InstallationToken | null>;
|
|
136
|
+
private run;
|
|
137
|
+
private runNow;
|
|
138
|
+
/**
|
|
139
|
+
* The App's https URL for the remote, signing in with a token of `task`'s,
|
|
140
|
+
* when the App is kept and the remote is on github.com; the remote itself
|
|
141
|
+
* otherwise, signing in as this machine does.
|
|
142
|
+
*/
|
|
143
|
+
private target;
|
|
144
|
+
}
|
|
145
|
+
/** Where `remote`'s `trunk` is kept once fetched. */
|
|
146
|
+
export declare function trackingRef(remote: string, trunk: string): string;
|
|
147
|
+
/**
|
|
148
|
+
* The line a command's report gives a push or a delete, `what` saying which:
|
|
149
|
+
* none when no remote is configured, and what stopped it when it failed.
|
|
150
|
+
*/
|
|
151
|
+
export declare function pushedLine(pushed: Pushed, what: "pushed" | "deleted"): string | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { FailedTest, GateFailure } from "../tasks";
|
|
2
|
+
/**
|
|
3
|
+
* Whether a failing gate repeats the task's last `tests_failed`: on the same
|
|
4
|
+
* base commit, or with the same failing tests on any base. A repeat spends a
|
|
5
|
+
* merge attempt; a failure on a base the task was never gated on is new
|
|
6
|
+
* information and spends none.
|
|
7
|
+
*/
|
|
8
|
+
export declare function repeatsFailure(last: GateFailure | undefined, rebasedOnto: string, failed: FailedTest[] | undefined): "base" | "tests" | null;
|
|
9
|
+
/** The line of a `tests_failed` saying whether it spent a merge attempt, and why. */
|
|
10
|
+
export declare function chargeLine(of: {
|
|
11
|
+
charged: boolean;
|
|
12
|
+
taskFailed: boolean;
|
|
13
|
+
repeat: "base" | "tests" | null;
|
|
14
|
+
first: boolean;
|
|
15
|
+
base: string;
|
|
16
|
+
onto: string;
|
|
17
|
+
attribution: string | undefined;
|
|
18
|
+
}): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorktreeService } from "../tasks";
|
|
2
|
+
/**
|
|
3
|
+
* Takes `gate`, `mergeSince`, `mergePlace` and `mergeSteps` off the task's record once its merge ends, landed or not, so
|
|
4
|
+
* a later lease on it shows no merge under way. A landed task has no record
|
|
5
|
+
* left to change.
|
|
6
|
+
*/
|
|
7
|
+
export declare function clearGate(service: WorktreeService, task: string): Promise<void>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Fs, Ps } from "../../../core/system/index.js";
|
|
2
|
+
import { Duration, type WallClock } from "../../../core/time/index.js";
|
|
3
|
+
/** How long a load that has ended goes on showing in the one-minute load average, at 1/e of its height after this. */
|
|
4
|
+
export declare const LOAD_LAG: Duration;
|
|
5
|
+
/**
|
|
6
|
+
* The test workers to give a merge's gate on a machine of `cores` with
|
|
7
|
+
* `load` the person's: the cores it leaves idle, at most all but two and at
|
|
8
|
+
* least half.
|
|
9
|
+
*/
|
|
10
|
+
export declare function gateCores(cores: number, load: number): number;
|
|
11
|
+
/** The most a gate's deadline may stretch to under load, as a multiple of its base. */
|
|
12
|
+
export declare const DEADLINE_STRETCH = 2;
|
|
13
|
+
/**
|
|
14
|
+
* How long a gate of `workers` may run on `cores` with `load` the person's:
|
|
15
|
+
* `baseMs` when they all fit the cores, and longer by the share they
|
|
16
|
+
* oversubscribe them, up to `DEADLINE_STRETCH` times.
|
|
17
|
+
*/
|
|
18
|
+
export declare function gateDeadline(baseMs: number, { cores, load, workers }: GateSizing): number;
|
|
19
|
+
/** What a gate starting now is sized by. */
|
|
20
|
+
export interface GateSizing {
|
|
21
|
+
/** The test workers it may run. */
|
|
22
|
+
workers: number;
|
|
23
|
+
cores: number;
|
|
24
|
+
/** The one-minute load average less what the gate before still adds to it. */
|
|
25
|
+
load: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* What a run of `workers` that took `ran`, and ended `since` ago, still adds
|
|
29
|
+
* to the one-minute load average: the share it had built up by its end,
|
|
30
|
+
* decayed since.
|
|
31
|
+
*/
|
|
32
|
+
export declare function lingering({ workers, ran, since, }: {
|
|
33
|
+
workers: number;
|
|
34
|
+
ran: Duration;
|
|
35
|
+
since: Duration;
|
|
36
|
+
}): number;
|
|
37
|
+
/**
|
|
38
|
+
* Sizes each merge gate by the person's load on the machine, leaving out
|
|
39
|
+
* what the gate before it still adds to the one-minute average. Make one
|
|
40
|
+
* with `ofMachine`, ask `sizing` for a gate about to run and tell `ran`
|
|
41
|
+
* once it has.
|
|
42
|
+
*/
|
|
43
|
+
export declare class GateTrail {
|
|
44
|
+
#private;
|
|
45
|
+
private readonly fs;
|
|
46
|
+
private readonly path;
|
|
47
|
+
private readonly sensors;
|
|
48
|
+
private readonly wall;
|
|
49
|
+
constructor(fs: Fs, path: string, sensors: {
|
|
50
|
+
cores(): number;
|
|
51
|
+
loadavg(): number[];
|
|
52
|
+
}, wall?: WallClock);
|
|
53
|
+
static ofMachine(fs: Fs, ps: Ps): GateTrail;
|
|
54
|
+
/** The workers a gate starting now may run. */
|
|
55
|
+
size(): Promise<number>;
|
|
56
|
+
/** The workers a gate starting now may run, with the cores and load they were sized by. */
|
|
57
|
+
sizing(): Promise<GateSizing>;
|
|
58
|
+
/** Keeps a run of `workers` that took `ran` and has just ended, for the next gate to size by. */
|
|
59
|
+
ran(workers: number, ran: Duration): Promise<void>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Event } from "../records";
|
|
2
|
+
import { type MergeStep } from "../tasks";
|
|
3
|
+
/** How many of the project's last landed merges the typical times come from. */
|
|
4
|
+
export declare const ESTIMATED_FROM = 20;
|
|
5
|
+
/** How long each step and premerge phase of a merge usually takes here. */
|
|
6
|
+
export interface MergeEstimates {
|
|
7
|
+
/** The median milliseconds of each step; a step no recent merge timed is left out. */
|
|
8
|
+
steps: Partial<Record<MergeStep, number>>;
|
|
9
|
+
/**
|
|
10
|
+
* The median milliseconds of each phase the premerge times, in the order
|
|
11
|
+
* the last gate ran them, each with the phase it runs inside of, if any.
|
|
12
|
+
*/
|
|
13
|
+
phases: {
|
|
14
|
+
phase: string;
|
|
15
|
+
ms: number;
|
|
16
|
+
within?: string;
|
|
17
|
+
}[];
|
|
18
|
+
/** How many landed merges they come from. */
|
|
19
|
+
merges: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The typical times of the last `ESTIMATED_FROM` merges that landed among
|
|
23
|
+
* `events`, oldest first. The wait for the premerge lock is what each gated
|
|
24
|
+
* merge kept of it, and a merge from before steps were timed still gives its
|
|
25
|
+
* gate's time. `setup`, the time a
|
|
26
|
+
* gate's phases leave, is no phase the page sees start, so it is left out.
|
|
27
|
+
*/
|
|
28
|
+
export declare function mergeEstimates(events: readonly Event[]): MergeEstimates;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type Logger } from "../../../core/log/index.js";
|
|
2
|
+
import type { Tasks } from "../board";
|
|
3
|
+
import type { Config } from "../config";
|
|
4
|
+
import type { Git } from "../git";
|
|
5
|
+
import { type Slots } from "../ports";
|
|
6
|
+
import type { Facts } from "../records";
|
|
7
|
+
import type { DiffSize, Worktree, WorktreeService } from "../tasks";
|
|
8
|
+
import { type TaskBranches } from "./branches";
|
|
9
|
+
import type { TimedTest } from "./test-report";
|
|
10
|
+
import type { MergeTiming } from "./timing";
|
|
11
|
+
import type { Landed } from "./trunk";
|
|
12
|
+
/** What a merge landed, as `finishLanding` ends it with. */
|
|
13
|
+
export interface Landing {
|
|
14
|
+
/** The task's checkout, about to go. */
|
|
15
|
+
current: Worktree;
|
|
16
|
+
/** The commit the task landed as, short. */
|
|
17
|
+
head: string;
|
|
18
|
+
/** The checkout the base is checked out in, where it moved. */
|
|
19
|
+
landing: string;
|
|
20
|
+
/** The remote landing, or null for a local one. */
|
|
21
|
+
landed: Extract<Landed, {
|
|
22
|
+
status: "landed";
|
|
23
|
+
}> | null;
|
|
24
|
+
changed: string[];
|
|
25
|
+
commits: string[] | undefined;
|
|
26
|
+
size: DiffSize | undefined;
|
|
27
|
+
testTimes: TimedTest[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Ends a merge whose work is on the base: discards the worktree, frees its
|
|
31
|
+
* slot, drops any pushed branch, takes the queued tasks it took off the list
|
|
32
|
+
* and says what to report. A batch's followers end here as its leader does.
|
|
33
|
+
*/
|
|
34
|
+
export declare function finishLanding({ service, git, config, log, tasks, slots, branches, timing, }: {
|
|
35
|
+
service: WorktreeService;
|
|
36
|
+
git: Git;
|
|
37
|
+
config: Config;
|
|
38
|
+
log: Logger;
|
|
39
|
+
tasks: Tasks;
|
|
40
|
+
slots: Slots;
|
|
41
|
+
branches: TaskBranches;
|
|
42
|
+
timing: MergeTiming;
|
|
43
|
+
}, landing: Landing, facts: Partial<Facts["merge"]>): Promise<void>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import type { Git } from "../git";
|
|
3
|
+
import type { MergeBatch, Settled } from "./batch";
|
|
4
|
+
/** What following came to: the lock, to lead, or a batch's result. */
|
|
5
|
+
export type Followed = {
|
|
6
|
+
capacity: AsyncDisposable;
|
|
7
|
+
} | {
|
|
8
|
+
result: Settled;
|
|
9
|
+
} | {
|
|
10
|
+
doomed: true;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Waits for the premerge lock as a merge offered to any batch, and says
|
|
14
|
+
* what came of it: the result of a batch that landed or refused the branch,
|
|
15
|
+
* `{ doomed: true }` once `doomed` answers true while the branch is on no
|
|
16
|
+
* stack, or the lock, which makes this merge the next leader. The branch is
|
|
17
|
+
* left on `ownHead` unless a batch landed it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function follow({ batch, git, log, pollMs, doomed, }: {
|
|
20
|
+
batch: MergeBatch;
|
|
21
|
+
git: Git;
|
|
22
|
+
log: Logger;
|
|
23
|
+
pollMs?: number;
|
|
24
|
+
doomed?: () => Promise<boolean>;
|
|
25
|
+
}, { task, path, ownHead, requireLease, onStacked, onUnstacked, }: {
|
|
26
|
+
task: string;
|
|
27
|
+
path: string;
|
|
28
|
+
/** The branch's tip rebased on the base alone, which every stacking starts from. */
|
|
29
|
+
ownHead: string;
|
|
30
|
+
requireLease: () => Promise<unknown>;
|
|
31
|
+
/** Called once the branch is on a batch's stack, whose gate is this merge's. */
|
|
32
|
+
onStacked: () => Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Called when a batch let the branch go, back on `ownHead`: to wait
|
|
35
|
+
* on once the batch `dissolved`, or refused by its result otherwise.
|
|
36
|
+
*/
|
|
37
|
+
onUnstacked: (dissolved: boolean) => Promise<void>;
|
|
38
|
+
}, reserve: (signal: AbortSignal) => Promise<AsyncDisposable>): Promise<Followed>;
|
|
39
|
+
/**
|
|
40
|
+
* Waits for the premerge lock as a merge offered to no batch. `doomed`,
|
|
41
|
+
* asked every `pollMs`, ends the wait with `{ doomed: true }` once it
|
|
42
|
+
* answers true.
|
|
43
|
+
*/
|
|
44
|
+
export declare function waitAlone(reserve: (signal: AbortSignal) => Promise<AsyncDisposable>, doomed?: () => Promise<boolean>, pollMs?: number): Promise<Followed>;
|
|
45
|
+
/**
|
|
46
|
+
* Asks whether `base`, once it moves past `seen`, conflicts with the
|
|
47
|
+
* branch's tip `head`: true only for a merge that would conflict, so a
|
|
48
|
+
* wait it ends never lets anything through.
|
|
49
|
+
*/
|
|
50
|
+
export declare function conflictsOnBase(git: Git, base: string, seen: string | null, head: string): () => Promise<boolean>;
|