@stringsync/splates 0.0.61 → 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,176 @@
|
|
|
1
|
+
import { type MergeFailure, type RemoveReason } from "../tasks/browser";
|
|
2
|
+
import type { Judged } from "./adherence";
|
|
3
|
+
import { type Baseline } from "./baselines";
|
|
4
|
+
import type { Outcome } from "./outcomes";
|
|
5
|
+
/** What the Stats page shows: how tasks ended, bar by bar and by who did them. */
|
|
6
|
+
export interface Stats {
|
|
7
|
+
/**
|
|
8
|
+
* Each bar of the period, oldest first, those with nothing ended among
|
|
9
|
+
* them: `start` is when it starts, as an ISO time.
|
|
10
|
+
*/
|
|
11
|
+
buckets: ({
|
|
12
|
+
start: string;
|
|
13
|
+
} & Tally)[];
|
|
14
|
+
/**
|
|
15
|
+
* The as long a span before the period, summed, to compare it with; null
|
|
16
|
+
* for all time, which has nothing before it.
|
|
17
|
+
*/
|
|
18
|
+
previous: Tally | null;
|
|
19
|
+
/** By the model that ended each task in the period, the most first; null for unknown. */
|
|
20
|
+
models: ({
|
|
21
|
+
model: string | null;
|
|
22
|
+
} & Tally)[];
|
|
23
|
+
/**
|
|
24
|
+
* By where the person worked each task in the period from, the most
|
|
25
|
+
* first: null for none, as for an external agent, or one that ended
|
|
26
|
+
* before it was kept.
|
|
27
|
+
*/
|
|
28
|
+
devices: ({
|
|
29
|
+
device: WorkedFrom | null;
|
|
30
|
+
} & Tally)[];
|
|
31
|
+
/** By the main tree each task in the period was in, the most first. */
|
|
32
|
+
projects: ({
|
|
33
|
+
project: string;
|
|
34
|
+
} & Tally)[];
|
|
35
|
+
/** When the first outcome was written, the start of what there is to show. */
|
|
36
|
+
since: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* How conversations followed the splates skill, by the version each started
|
|
39
|
+
* on, newest first: over all time, since a version is its own span.
|
|
40
|
+
*/
|
|
41
|
+
skill: SkillVersion[];
|
|
42
|
+
/** Each project's recent merged tasks, to hold one against: over the week before now, whatever the period. */
|
|
43
|
+
baselines: Baseline[];
|
|
44
|
+
}
|
|
45
|
+
/** How a group of ended tasks went, summed. */
|
|
46
|
+
export interface Tally {
|
|
47
|
+
/** Merged tasks sharing a landing gate with at least one other task. */
|
|
48
|
+
batchedMerges: number;
|
|
49
|
+
/** Shared landing gates, counted when their leading task lands. Failed attempts are excluded. */
|
|
50
|
+
batchGates: number;
|
|
51
|
+
merged: number;
|
|
52
|
+
removed: number;
|
|
53
|
+
/** Of `merged`, those that landed without a person answering a question. */
|
|
54
|
+
clean: number;
|
|
55
|
+
/** Over every task in the group, merged and removed alike. */
|
|
56
|
+
questionRounds: number;
|
|
57
|
+
reviewRounds: number;
|
|
58
|
+
failedMerges: number;
|
|
59
|
+
/** Questions that offered the agent's pick and were answered with a choice. */
|
|
60
|
+
picksAsked: number;
|
|
61
|
+
/** Of `picksAsked`, those answered with another choice. */
|
|
62
|
+
picksOverturned: number;
|
|
63
|
+
/** Of `picksAsked`, those answered with the agent's choice and words added. */
|
|
64
|
+
picksAmended: number;
|
|
65
|
+
/** Tasks whose time waiting on a person was kept; older ones were not. */
|
|
66
|
+
timed: number;
|
|
67
|
+
/** Of the `timed` tasks, how long they waited on a person, in milliseconds. */
|
|
68
|
+
waitedMs: number;
|
|
69
|
+
/** Of the `timed` tasks, how long they took from add to end, in milliseconds. */
|
|
70
|
+
spentMs: number;
|
|
71
|
+
/** Merged tasks whose landing merge was timed; older ones were not. */
|
|
72
|
+
mergeTimed: number;
|
|
73
|
+
/** Of the `mergeTimed` tasks, how long their merges waited for the premerge lock. */
|
|
74
|
+
mergeQueuedMs: number;
|
|
75
|
+
/** Of the `mergeTimed` tasks, how long their merges ran once it was theirs. */
|
|
76
|
+
mergeRanMs: number;
|
|
77
|
+
/** Tasks whose own usage was kept; older ones and external agents' were not. */
|
|
78
|
+
used: number;
|
|
79
|
+
/** Of the `used` tasks, tokens read, those from cache among them, and written. */
|
|
80
|
+
inputTokens: number;
|
|
81
|
+
outputTokens: number;
|
|
82
|
+
/** Of the `used` tasks, those with a said or list-priced cost. */
|
|
83
|
+
costed: number;
|
|
84
|
+
/** Of the `costed` tasks, what they cost, summed. */
|
|
85
|
+
cost: number;
|
|
86
|
+
/** Of the `used` tasks, how long their agents worked, in milliseconds. */
|
|
87
|
+
workedMs: number;
|
|
88
|
+
/** Tasks that held slots on made workers, as far as it was kept. */
|
|
89
|
+
workerCosted: number;
|
|
90
|
+
/** Of the `workerCosted` tasks, those whose figure is the bill rather than list price. */
|
|
91
|
+
workerBilled: number;
|
|
92
|
+
/** Of the `workerCosted` tasks, what made workers cost them, summed. */
|
|
93
|
+
workerCost: number;
|
|
94
|
+
/** Of the `workerCosted` tasks, the slot-hours they held on made workers. */
|
|
95
|
+
workerSlotHours: number;
|
|
96
|
+
/** Tasks whose diff size was kept. */
|
|
97
|
+
sized: number;
|
|
98
|
+
/** Of the `sized` tasks, the files and lines they changed. */
|
|
99
|
+
filesChanged: number;
|
|
100
|
+
linesAdded: number;
|
|
101
|
+
linesRemoved: number;
|
|
102
|
+
/** Failed merges by why, where it was kept. */
|
|
103
|
+
failedBy: Record<MergeFailure, number>;
|
|
104
|
+
/** Each file merges conflicted in: how many conflicts, and in how many tasks. */
|
|
105
|
+
conflictedIn: Record<string, ConflictedFile>;
|
|
106
|
+
/** Removed tasks by why; `unsaid` for one removed without `--reason`, or before it was kept. */
|
|
107
|
+
removedFor: Record<RemoveReason | "unsaid", number>;
|
|
108
|
+
}
|
|
109
|
+
export interface ConflictedFile {
|
|
110
|
+
conflicts: number;
|
|
111
|
+
tasks: number;
|
|
112
|
+
}
|
|
113
|
+
/** Where the person spoke to a task's conversation from: a phone, a desktop, or both. */
|
|
114
|
+
export type WorkedFrom = "phone" | "desktop" | "both";
|
|
115
|
+
/** Where `outcome`'s prompts came from, or null when none was said from the page. */
|
|
116
|
+
export declare function workedFrom(outcome: Outcome): WorkedFrom | null;
|
|
117
|
+
/**
|
|
118
|
+
* The spans the page can look at, as `?period=` names them: how long each
|
|
119
|
+
* runs back from now, and how long each of its bars is.
|
|
120
|
+
*/
|
|
121
|
+
export declare const PERIODS: {
|
|
122
|
+
readonly "6h": {
|
|
123
|
+
readonly span: number;
|
|
124
|
+
readonly bucket: number;
|
|
125
|
+
};
|
|
126
|
+
readonly "1d": {
|
|
127
|
+
readonly span: number;
|
|
128
|
+
readonly bucket: number;
|
|
129
|
+
};
|
|
130
|
+
readonly "3d": {
|
|
131
|
+
readonly span: number;
|
|
132
|
+
readonly bucket: number;
|
|
133
|
+
};
|
|
134
|
+
readonly "7d": {
|
|
135
|
+
readonly span: number;
|
|
136
|
+
readonly bucket: number;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
/** A span in `PERIODS`, or `all` for all time, a bar a week. */
|
|
140
|
+
export type PeriodId = keyof typeof PERIODS | "all";
|
|
141
|
+
export declare function isPeriodId(value: string): value is PeriodId;
|
|
142
|
+
/** How long each bar of `period` is, in milliseconds: a week for all time. */
|
|
143
|
+
export declare function bucketOf(period: PeriodId): number;
|
|
144
|
+
export interface SummarizeOptions {
|
|
145
|
+
period?: PeriodId;
|
|
146
|
+
now?: Date;
|
|
147
|
+
/** Each conversation's skill checks as last judged. */
|
|
148
|
+
judged?: Judged[];
|
|
149
|
+
/** Narrows every figure but `Stats.projects` to the tasks of this main tree. */
|
|
150
|
+
project?: string;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Sums the outcomes written so far for the Stats page, over `period`. Parts
|
|
154
|
+
* are left out, since each is counted with the task that called it.
|
|
155
|
+
*/
|
|
156
|
+
export declare function summarize(outcomes: Outcome[], { period, now, judged, project, }?: SummarizeOptions): Stats;
|
|
157
|
+
/** Tallies added up, as for the bars of a period. */
|
|
158
|
+
export declare function combine(tallies: Tally[]): Tally;
|
|
159
|
+
/** How one check went over the conversations on one skill version. */
|
|
160
|
+
export interface CheckRate {
|
|
161
|
+
id: string;
|
|
162
|
+
rule: string;
|
|
163
|
+
/** The conversations it applied in. */
|
|
164
|
+
applied: number;
|
|
165
|
+
/** Of `applied`, those where it passed every time. */
|
|
166
|
+
passed: number;
|
|
167
|
+
}
|
|
168
|
+
/** How the conversations on one splates skill version followed it. */
|
|
169
|
+
export interface SkillVersion {
|
|
170
|
+
/** Null for conversations whose version is unknown. */
|
|
171
|
+
skill: string | null;
|
|
172
|
+
conversations: number;
|
|
173
|
+
checks: CheckRate[];
|
|
174
|
+
}
|
|
175
|
+
/** Each skill version's pass rates, the newest version first and unknown last. */
|
|
176
|
+
export declare function rates(judged: Judged[]): SkillVersion[];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Entry } from "../conversations";
|
|
2
|
+
import { type Catalog } from "../prices";
|
|
3
|
+
import type { Log } from "../storage";
|
|
4
|
+
/** What a task's turns used, apart from the rest of its conversation's. */
|
|
5
|
+
export interface TaskUsage {
|
|
6
|
+
/** Tokens read, those from cache among them. */
|
|
7
|
+
input: number;
|
|
8
|
+
cached: number;
|
|
9
|
+
output: number;
|
|
10
|
+
/**
|
|
11
|
+
* What it cost at the API's list price: as Claude says, or for Codex, Kimi
|
|
12
|
+
* and OpenCode, which say none or their plan's, its tokens at the model's
|
|
13
|
+
* public price. Null when neither is known.
|
|
14
|
+
*/
|
|
15
|
+
cost: {
|
|
16
|
+
amount: number;
|
|
17
|
+
currency: string;
|
|
18
|
+
/** True when splates priced its tokens, rather than the agent saying. */
|
|
19
|
+
listPrice?: boolean;
|
|
20
|
+
} | null;
|
|
21
|
+
}
|
|
22
|
+
/** What a task's stretch of its conversation shows of how the work went. */
|
|
23
|
+
export interface TaskLog {
|
|
24
|
+
/** What the task's turns used, when its agent reported any. */
|
|
25
|
+
usage: TaskUsage | undefined;
|
|
26
|
+
/** Each agent turn's span, start to last move, summed. */
|
|
27
|
+
workedMs: number;
|
|
28
|
+
/** The agent turns that ran in it, the one it ended in among them. */
|
|
29
|
+
turns: number;
|
|
30
|
+
/** When the person stopped the agent's turn, each time. */
|
|
31
|
+
stopped: string[];
|
|
32
|
+
/** When a lost connection cut the agent's turn short, each time. */
|
|
33
|
+
interrupted: string[];
|
|
34
|
+
/** How many times each command failed. */
|
|
35
|
+
failedCommands: Record<string, number>;
|
|
36
|
+
/** Lines the agent's edits took out and put in, its plan's aside. */
|
|
37
|
+
editedLines: number;
|
|
38
|
+
/** Turns that ended asking the person questions. */
|
|
39
|
+
questionRounds: number;
|
|
40
|
+
/** Turns that ended asking the person to review the work. */
|
|
41
|
+
reviewRounds: number;
|
|
42
|
+
/**
|
|
43
|
+
* How long those turns waited on the person, each until the next thing
|
|
44
|
+
* they said, or the task's end.
|
|
45
|
+
*/
|
|
46
|
+
waitedMs: number;
|
|
47
|
+
/** What the person set the model or effort to after Auto pick, in order. */
|
|
48
|
+
overrides: {
|
|
49
|
+
aspect: "model" | "effort";
|
|
50
|
+
value: string;
|
|
51
|
+
at: string;
|
|
52
|
+
}[];
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* What the conversation logged in `log` did for a task from `since` to
|
|
56
|
+
* `until`, since a conversation can outlive the task or come to it already
|
|
57
|
+
* under way; null when there is no such log. Turns of an agent that says no
|
|
58
|
+
* API cost of its own are priced from `opts.catalog`.
|
|
59
|
+
*/
|
|
60
|
+
export declare function taskLog(log: Log<Entry>, since: string, until: string, opts?: TaskLogOptions): Promise<TaskLog | null>;
|
|
61
|
+
export interface TaskLogOptions {
|
|
62
|
+
/**
|
|
63
|
+
* The API list prices to price an agent's turns at when it says no cost
|
|
64
|
+
* of its own, asked for only then; none prices nothing.
|
|
65
|
+
*/
|
|
66
|
+
catalog?: () => Promise<Catalog | null>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Fs } from "../../../core/system/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Writes `data` to `path` through a file beside it renamed into place, so a
|
|
4
|
+
* reader, or a crash mid-write, never leaves half of it there.
|
|
5
|
+
*/
|
|
6
|
+
export declare function replace(fs: Fs, path: string, data: string | Uint8Array): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* What `read` gives of `path`, or null when nothing is there: an error
|
|
9
|
+
* reading a file that is there is still thrown, so a store never takes an
|
|
10
|
+
* unreadable file for a missing one and writes over it. A file another
|
|
11
|
+
* writer moved into place after the read missed it is read again.
|
|
12
|
+
*/
|
|
13
|
+
export declare function readIfThere<T>(fs: Fs, path: string, read: (path: string) => Promise<T>): Promise<T | null>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Records and blobs kept by name, flat: a record is text, as a task's
|
|
3
|
+
* markdown, and a blob is bytes, as an attached file. A name holds one or
|
|
4
|
+
* the other, and never a `/`; what nests goes in a collection of its own.
|
|
5
|
+
*/
|
|
6
|
+
export interface Collection {
|
|
7
|
+
readonly key: string;
|
|
8
|
+
/** Makes the collection exist while empty, so a watch on it can start. */
|
|
9
|
+
ensure(): Promise<void>;
|
|
10
|
+
/** The record under `name`, or null when there is none. */
|
|
11
|
+
read(name: string): Promise<string | null>;
|
|
12
|
+
/** Keeps `text` under `name`; a reader never sees it half written. */
|
|
13
|
+
write(name: string, text: string): Promise<void>;
|
|
14
|
+
readBytes(name: string): Promise<Uint8Array | null>;
|
|
15
|
+
writeBytes(name: string, bytes: Uint8Array): Promise<void>;
|
|
16
|
+
/** Every name held, sorted. */
|
|
17
|
+
list(): Promise<string[]>;
|
|
18
|
+
/** Every name held with the bytes it takes, sorted by name. */
|
|
19
|
+
entries(): Promise<CollectionEntry[]>;
|
|
20
|
+
/** Removes what is under `name`; nothing there is no error. */
|
|
21
|
+
remove(name: string): Promise<void>;
|
|
22
|
+
/** Removes everything held. */
|
|
23
|
+
clear(): Promise<void>;
|
|
24
|
+
/** The bytes everything held takes, for a quota. */
|
|
25
|
+
size(): Promise<number>;
|
|
26
|
+
}
|
|
27
|
+
export interface CollectionEntry {
|
|
28
|
+
name: string;
|
|
29
|
+
size: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Schema } from "./schema";
|
|
2
|
+
/**
|
|
3
|
+
* One value kept whole, as JSON: a settings file, a registry. A reader never
|
|
4
|
+
* sees a write half done.
|
|
5
|
+
*/
|
|
6
|
+
export interface Document<T> {
|
|
7
|
+
readonly key: string;
|
|
8
|
+
/** The value, or null when none was ever written or it was removed. */
|
|
9
|
+
read(): Promise<T | null>;
|
|
10
|
+
write(value: T): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Writes what `edit` makes of the value, holding the document's lock, so
|
|
13
|
+
* two processes updating at once each build on the other's write.
|
|
14
|
+
*/
|
|
15
|
+
update(edit: (current: T | null) => T | Promise<T>): Promise<T>;
|
|
16
|
+
remove(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export interface DocumentOptions<T> {
|
|
19
|
+
/**
|
|
20
|
+
* Checks what is read, throwing on a value that is not a `T`; by default
|
|
21
|
+
* it is trusted as one.
|
|
22
|
+
*/
|
|
23
|
+
schema?: Schema<T>;
|
|
24
|
+
/** The lock `update` holds; `<key>.lock` by default. */
|
|
25
|
+
lock?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Fs } from "../../../core/system/index.js";
|
|
2
|
+
import type { Collection, CollectionEntry } from "./collection";
|
|
3
|
+
/**
|
|
4
|
+
* A collection kept as a directory, a file per name. Directories in it, as a
|
|
5
|
+
* task's folder of attachments beside its record, are another collection's
|
|
6
|
+
* and left out.
|
|
7
|
+
*/
|
|
8
|
+
export declare class FsCollection implements Collection {
|
|
9
|
+
readonly key: string;
|
|
10
|
+
readonly dir: string;
|
|
11
|
+
private readonly fs;
|
|
12
|
+
constructor(key: string, dir: string, fs: Fs);
|
|
13
|
+
ensure(): Promise<void>;
|
|
14
|
+
read(name: string): Promise<string | null>;
|
|
15
|
+
write(name: string, text: string): Promise<void>;
|
|
16
|
+
readBytes(name: string): Promise<Uint8Array | null>;
|
|
17
|
+
writeBytes(name: string, bytes: Uint8Array): Promise<void>;
|
|
18
|
+
list(): Promise<string[]>;
|
|
19
|
+
entries(): Promise<CollectionEntry[]>;
|
|
20
|
+
remove(name: string): Promise<void>;
|
|
21
|
+
clear(): Promise<void>;
|
|
22
|
+
size(): Promise<number>;
|
|
23
|
+
private at;
|
|
24
|
+
/** Each file held, sorted, leaving out directories and writes in flight. */
|
|
25
|
+
private files;
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Fs, Lock } from "../../../core/system/index.js";
|
|
2
|
+
import type { Document } from "./document";
|
|
3
|
+
import type { Schema } from "./schema";
|
|
4
|
+
/** A document kept as one JSON file, replaced whole on each write. */
|
|
5
|
+
export declare class FsDocument<T> implements Document<T> {
|
|
6
|
+
readonly key: string;
|
|
7
|
+
readonly path: string;
|
|
8
|
+
private readonly fs;
|
|
9
|
+
private readonly lock;
|
|
10
|
+
private readonly schema?;
|
|
11
|
+
constructor(key: string, path: string, fs: Fs, lock: Lock, schema?: Schema<T> | undefined);
|
|
12
|
+
read(): Promise<T | null>;
|
|
13
|
+
write(value: T): Promise<void>;
|
|
14
|
+
update(edit: (current: T | null) => T | Promise<T>): Promise<T>;
|
|
15
|
+
remove(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Fs } from "../../../core/system/index.js";
|
|
2
|
+
import type { Log, Segment } from "./log";
|
|
3
|
+
import type { Schema } from "./schema";
|
|
4
|
+
/** A log for `FsStorage`: open one with `FsStorage.log` and use it as any `Log`. */
|
|
5
|
+
export declare class FsLog<T> implements Log<T> {
|
|
6
|
+
readonly key: string;
|
|
7
|
+
readonly path: string;
|
|
8
|
+
/** The directory its segments are kept in. */
|
|
9
|
+
readonly segmentsDir: string;
|
|
10
|
+
private readonly fs;
|
|
11
|
+
private readonly schema?;
|
|
12
|
+
/** Whether the file's directory is known to be there. */
|
|
13
|
+
private made;
|
|
14
|
+
/** Whether the file last read back ended mid-line, as a crash mid-append leaves it. */
|
|
15
|
+
private torn;
|
|
16
|
+
constructor(key: string, path: string,
|
|
17
|
+
/** The directory its segments are kept in. */
|
|
18
|
+
segmentsDir: string, fs: Fs, schema?: Schema<T> | undefined);
|
|
19
|
+
exists(): Promise<boolean>;
|
|
20
|
+
append(...entries: T[]): Promise<void>;
|
|
21
|
+
replay(): Promise<T[]>;
|
|
22
|
+
first(): Promise<T | null>;
|
|
23
|
+
compact(merge: (entries: T[]) => T[]): Promise<void>;
|
|
24
|
+
rotate(): Promise<Segment | null>;
|
|
25
|
+
segments(): Promise<Segment[]>;
|
|
26
|
+
replaySegment(segment: Segment): Promise<T[]>;
|
|
27
|
+
dropSegment(segment: Segment): Promise<void>;
|
|
28
|
+
remove(): Promise<void>;
|
|
29
|
+
private at;
|
|
30
|
+
private read;
|
|
31
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Logger } from "../../../core/log/index.js";
|
|
2
|
+
import { type Fs, type Lock, type Ps } from "../../../core/system/index.js";
|
|
3
|
+
import type { Collection } from "./collection";
|
|
4
|
+
import type { Document, DocumentOptions } from "./document";
|
|
5
|
+
import type { Log, LogOptions } from "./log";
|
|
6
|
+
import type { Kept, Storage, Watch, WatchOptions } from "./storage";
|
|
7
|
+
/** What makes the lock at a path. */
|
|
8
|
+
export interface Locks {
|
|
9
|
+
at(path: string): Lock;
|
|
10
|
+
}
|
|
11
|
+
export interface FsStorageOptions {
|
|
12
|
+
/** `FileLock`s on `fs` by default. */
|
|
13
|
+
locks?: Locks;
|
|
14
|
+
}
|
|
15
|
+
export declare class FsStorage implements Storage {
|
|
16
|
+
readonly root: string;
|
|
17
|
+
private readonly fs;
|
|
18
|
+
private readonly locks;
|
|
19
|
+
constructor(root: string, fs: Fs, opts?: FsStorageOptions);
|
|
20
|
+
/**
|
|
21
|
+
* The storage every project on this machine shares, under the splates
|
|
22
|
+
* home: the registry, settings, the machine's workers.
|
|
23
|
+
*/
|
|
24
|
+
static ofMachine({ fs, ps, log, home, stalenessMs, }: {
|
|
25
|
+
fs: Fs;
|
|
26
|
+
ps: Ps;
|
|
27
|
+
log: Logger;
|
|
28
|
+
/** The machine's home, `SPLATES_HOME` by default. */
|
|
29
|
+
home?: string;
|
|
30
|
+
/** After how long a lock counts as stale. */
|
|
31
|
+
stalenessMs?: number;
|
|
32
|
+
}): FsStorage;
|
|
33
|
+
/** Where `key` is kept on disk. */
|
|
34
|
+
path(key: string): string;
|
|
35
|
+
locate(key: string): string;
|
|
36
|
+
materialize(key: string): Promise<string>;
|
|
37
|
+
document<T>(key: string, opts?: DocumentOptions<T>): Document<T>;
|
|
38
|
+
log<T>(key: string, opts?: LogOptions<T>): Log<T>;
|
|
39
|
+
collection(key: string): Collection;
|
|
40
|
+
lock(key: string): Lock;
|
|
41
|
+
watch(key: string, opts?: WatchOptions): Watch;
|
|
42
|
+
children(key: string): Promise<string[]>;
|
|
43
|
+
size(key: string): Promise<number>;
|
|
44
|
+
keys(key: string): Promise<string[]>;
|
|
45
|
+
copy(key: string, from?: number): Promise<Kept | null>;
|
|
46
|
+
remove(key: string): Promise<void>;
|
|
47
|
+
within(key: string): Storage;
|
|
48
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { replace } from "./atomic";
|
|
2
|
+
export type { Collection, CollectionEntry } from "./collection";
|
|
3
|
+
export type { Document, DocumentOptions } from "./document";
|
|
4
|
+
export type { FsStorageOptions, Locks } from "./fs";
|
|
5
|
+
export { FsStorage } from "./fs";
|
|
6
|
+
export { keyIn } from "./key";
|
|
7
|
+
export type { Log, LogOptions, Segment } from "./log";
|
|
8
|
+
export type { Schema } from "./schema";
|
|
9
|
+
export type { SqliteStorageOptions } from "./sqlite";
|
|
10
|
+
export { SqliteStorage } from "./sqlite";
|
|
11
|
+
export type { Kept, Storage, StorageChanges, Watch, WatchOptions, } from "./storage";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
replace2,
|
|
3
|
+
keyIn2,
|
|
4
|
+
FsStorage2,
|
|
5
|
+
SqliteStorage2
|
|
6
|
+
} from "../index-caep3sde.js";
|
|
7
|
+
import"../index-01z7ycdk.js";
|
|
8
|
+
import"../index-e9z7s5hh.js";
|
|
9
|
+
import"../index-kmzdvvt0.js";
|
|
10
|
+
import"../index-t9w5a8ed.js";
|
|
11
|
+
import"../index-0jttnv86.js";
|
|
12
|
+
import"../index-g18nxyn7.js";
|
|
13
|
+
export {
|
|
14
|
+
FsStorage2 as FsStorage,
|
|
15
|
+
SqliteStorage2 as SqliteStorage,
|
|
16
|
+
keyIn2 as keyIn,
|
|
17
|
+
replace2 as replace
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Schema } from "./schema";
|
|
2
|
+
/** `value` as a document keeps it: tab-indented, ending in a newline. */
|
|
3
|
+
export declare function documentText(value: unknown): string;
|
|
4
|
+
/** `entries` as a log keeps them, one JSON line each. */
|
|
5
|
+
export declare function logLines(entries: unknown[]): string;
|
|
6
|
+
/**
|
|
7
|
+
* The entries in `raw`, one per line, leaving out any line torn by a crash
|
|
8
|
+
* mid-append or that `schema` refuses.
|
|
9
|
+
*/
|
|
10
|
+
export declare function entriesOf<T>(raw: string, schema?: Schema<T>): T[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `key` under `base`, refusing one that would reach outside it, so a key
|
|
3
|
+
* built from what a user typed cannot name another storage's things.
|
|
4
|
+
*/
|
|
5
|
+
export declare function keyIn(base: string, key: string): string;
|
|
6
|
+
/** `name`, refusing one that is not a single part of a key. */
|
|
7
|
+
export declare function checkName(name: string): string;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Schema } from "./schema";
|
|
2
|
+
/**
|
|
3
|
+
* Entries a store keeps in order: `append` to it, even from two writers at
|
|
4
|
+
* once, `replay` it, `rotate` it once full, and `compact` it once its entries
|
|
5
|
+
* fold into fewer.
|
|
6
|
+
*/
|
|
7
|
+
export interface Log<T> {
|
|
8
|
+
readonly key: string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether anything was appended since the log was made, last rotated or
|
|
11
|
+
* removed, without reading it.
|
|
12
|
+
*/
|
|
13
|
+
exists(): Promise<boolean>;
|
|
14
|
+
/** Adds `entries` at the end, in one write. */
|
|
15
|
+
append(...entries: T[]): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* The entries since the last rotation, oldest first. A torn or unreadable
|
|
18
|
+
* entry is left out, so it loses one entry rather than the log, and the
|
|
19
|
+
* next append keeps clear of it.
|
|
20
|
+
*/
|
|
21
|
+
replay(): Promise<T[]>;
|
|
22
|
+
/** The first entry since the last rotation, as `replay` reads it, without reading the rest; null for none. */
|
|
23
|
+
first(): Promise<T | null>;
|
|
24
|
+
/**
|
|
25
|
+
* Rewrites the entries since the last rotation as `merge` folds them into
|
|
26
|
+
* fewer, in one write, for entries that say no more than fewer would:
|
|
27
|
+
* those appended meanwhile stay after them. Nothing changes when `merge`
|
|
28
|
+
* returns as many as it was given.
|
|
29
|
+
*/
|
|
30
|
+
compact(merge: (entries: T[]) => T[]): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Moves the entries since the last rotation aside as a segment, returning
|
|
33
|
+
* it, or null when there were none. Two rotating at once is harmless: the
|
|
34
|
+
* second moves nothing, or the few entries written since.
|
|
35
|
+
*/
|
|
36
|
+
rotate(): Promise<Segment | null>;
|
|
37
|
+
/** The segments rotated out, oldest first. */
|
|
38
|
+
segments(): Promise<Segment[]>;
|
|
39
|
+
/** The entries of one segment, as `replay` reads them. */
|
|
40
|
+
replaySegment(segment: Segment): Promise<T[]>;
|
|
41
|
+
dropSegment(segment: Segment): Promise<void>;
|
|
42
|
+
/** Removes the log and every segment of it. */
|
|
43
|
+
remove(): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
/** Entries rotated out of a log together. */
|
|
46
|
+
export interface Segment {
|
|
47
|
+
/** Unique within its log, and sorting by when it was rotated. */
|
|
48
|
+
name: string;
|
|
49
|
+
/** When it was rotated, as epoch ms. */
|
|
50
|
+
at: number;
|
|
51
|
+
}
|
|
52
|
+
export interface LogOptions<T> {
|
|
53
|
+
/** Checks each entry read, throwing on one that is not a `T`. */
|
|
54
|
+
schema?: Schema<T>;
|
|
55
|
+
/**
|
|
56
|
+
* The key its segments are kept under, as the journal keeps its in `log`;
|
|
57
|
+
* `<key>.segments` by default.
|
|
58
|
+
*/
|
|
59
|
+
segments?: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Collection, CollectionEntry } from "./collection";
|
|
2
|
+
import type { SqliteDb } from "./sqlite-db";
|
|
3
|
+
/**
|
|
4
|
+
* A collection for `SqliteStorage`: open one with `SqliteStorage.collection`,
|
|
5
|
+
* `list` to name what is in it, logs included, and `read` a log as its lines.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SqliteCollection implements Collection {
|
|
8
|
+
readonly key: string;
|
|
9
|
+
/** The collection's key in the whole database. */
|
|
10
|
+
readonly at: string;
|
|
11
|
+
private readonly db;
|
|
12
|
+
/** Drops the copy written out for an agent to read, when a record goes. */
|
|
13
|
+
private readonly forget;
|
|
14
|
+
constructor(key: string,
|
|
15
|
+
/** The collection's key in the whole database. */
|
|
16
|
+
at: string, db: SqliteDb,
|
|
17
|
+
/** Drops the copy written out for an agent to read, when a record goes. */
|
|
18
|
+
forget?: (key: string) => Promise<void>);
|
|
19
|
+
ensure(): Promise<void>;
|
|
20
|
+
read(name: string): Promise<string | null>;
|
|
21
|
+
write(name: string, text: string): Promise<void>;
|
|
22
|
+
readBytes(name: string): Promise<Uint8Array | null>;
|
|
23
|
+
writeBytes(name: string, bytes: Uint8Array): Promise<void>;
|
|
24
|
+
list(): Promise<string[]>;
|
|
25
|
+
entries(): Promise<CollectionEntry[]>;
|
|
26
|
+
remove(name: string): Promise<void>;
|
|
27
|
+
clear(): Promise<void>;
|
|
28
|
+
size(): Promise<number>;
|
|
29
|
+
private keyOf;
|
|
30
|
+
private put;
|
|
31
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Database } from "bun:sqlite";
|
|
2
|
+
import { type Resource } from "../../../core/disposable/index.js";
|
|
3
|
+
import { type Timer } from "../../../core/time/index.js";
|
|
4
|
+
import type { Watch, WatchOptions } from "./storage";
|
|
5
|
+
export interface SqliteDbOptions {
|
|
6
|
+
timer?: Timer;
|
|
7
|
+
/** How often a watch looks for what another process wrote. */
|
|
8
|
+
pollMs?: number;
|
|
9
|
+
}
|
|
10
|
+
/** What `SqliteDb.write` runs inside a transaction: the keys it changed, for the watches. */
|
|
11
|
+
export type Write = () => string[];
|
|
12
|
+
/**
|
|
13
|
+
* The database a `SqliteStorage` and every view `within` it share. Run each
|
|
14
|
+
* change through `write`, so the watches hear of it, and `dispose` the one
|
|
15
|
+
* opened to close the file.
|
|
16
|
+
*/
|
|
17
|
+
export declare class SqliteDb implements Resource {
|
|
18
|
+
readonly path: string;
|
|
19
|
+
readonly db: Database;
|
|
20
|
+
/** Which process's writes these are, so the poll skips what was told here already. */
|
|
21
|
+
readonly token: `${string}-${string}-${string}-${string}-${string}`;
|
|
22
|
+
private readonly watches;
|
|
23
|
+
private readonly timer;
|
|
24
|
+
private readonly pollMs;
|
|
25
|
+
private readonly open;
|
|
26
|
+
private poll;
|
|
27
|
+
/** The database's version as of the last poll, which only another connection's commit moves. */
|
|
28
|
+
private version;
|
|
29
|
+
/** The last change seq a poll took in. */
|
|
30
|
+
private seen;
|
|
31
|
+
private lastPruned;
|
|
32
|
+
constructor(path: string, opts?: SqliteDbOptions);
|
|
33
|
+
/**
|
|
34
|
+
* Runs `write` as one transaction, records each key it changed for other
|
|
35
|
+
* processes' watches, and tells this process's at once.
|
|
36
|
+
*/
|
|
37
|
+
write(write: Write): void;
|
|
38
|
+
watch(root: string, at: string, opts?: WatchOptions): Watch;
|
|
39
|
+
dispose(): void;
|
|
40
|
+
/** Polls for other processes' writes while any watch is open. */
|
|
41
|
+
private startPolling;
|
|
42
|
+
/** Tells the watches of what another process wrote since the last poll. */
|
|
43
|
+
private pollChanges;
|
|
44
|
+
private dataVersion;
|
|
45
|
+
private lastSeq;
|
|
46
|
+
/**
|
|
47
|
+
* Drops change notes older than any poll could still need, now and then,
|
|
48
|
+
* and gives the file's free pages back once they add up.
|
|
49
|
+
*/
|
|
50
|
+
private prune;
|
|
51
|
+
/**
|
|
52
|
+
* Turns a database made before it gave space back into one that does,
|
|
53
|
+
* shrinking it to what it holds. Rewriting the file holds every other
|
|
54
|
+
* writer off for as long, about a second for a few hundred megabytes, so
|
|
55
|
+
* it runs once, as the database first opens; a writer waiting longer than
|
|
56
|
+
* the busy timeout fails it, and it is tried at the next open.
|
|
57
|
+
*/
|
|
58
|
+
private reclaim;
|
|
59
|
+
private pragma;
|
|
60
|
+
/** Tells each watch whose reach `at` is in, as one on the disk would. */
|
|
61
|
+
private tell;
|
|
62
|
+
}
|