@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,69 @@
|
|
|
1
|
+
import { Duration } from "../../../core/time/index.js";
|
|
2
|
+
import type { ReleaseStep } from "./release-steps";
|
|
3
|
+
/** A step not begun, expected to take `expected` ms, from ships before when `known`. */
|
|
4
|
+
export declare function pendingStage(key: StageKey, { expected, known }?: {
|
|
5
|
+
expected: number;
|
|
6
|
+
known: boolean;
|
|
7
|
+
}): Stage;
|
|
8
|
+
/**
|
|
9
|
+
* Where one step of a project's part in a ship stands, for the page to show:
|
|
10
|
+
* not begun, under way, waiting on a check, waiting on the person, hung
|
|
11
|
+
* (under way past its deadline, and still going), done, failed, or skipped.
|
|
12
|
+
*/
|
|
13
|
+
export type StageState = "pending" | "running" | "checking" | "asking" | "hung" | "done" | "failed" | "skipped";
|
|
14
|
+
/**
|
|
15
|
+
* The steps a project's part in a ship takes: its bump task, that task's
|
|
16
|
+
* merge gate and its merge, then signing in to npm, the publishes' second
|
|
17
|
+
* factor, the ship command, the approval of what it staged, and the versions it published checked against
|
|
18
|
+
* the plan.
|
|
19
|
+
*/
|
|
20
|
+
export type StageKey = "upstream" | "adopt" | "publish" | "live" | "bump" | "gate" | "merged" | "push" | "remote" | "login" | "otp" | "command" | "approve" | "versions";
|
|
21
|
+
/** What splates last asked of a step, and what it heard. */
|
|
22
|
+
export interface StageCheck {
|
|
23
|
+
at: string;
|
|
24
|
+
result: string;
|
|
25
|
+
/** When the next check runs, while the step polls; absent once it stops. */
|
|
26
|
+
next?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Where a step's output is in its project's ship log: bytes `from` to `to`, null while it prints. */
|
|
29
|
+
export interface StageLog {
|
|
30
|
+
from: number;
|
|
31
|
+
to: number | null;
|
|
32
|
+
}
|
|
33
|
+
/** One step of a project's part in a ship, in one shape for every step. */
|
|
34
|
+
export interface Stage {
|
|
35
|
+
key: StageKey;
|
|
36
|
+
/** What the page calls it. */
|
|
37
|
+
name: string;
|
|
38
|
+
state: StageState;
|
|
39
|
+
started: string | null;
|
|
40
|
+
ended: string | null;
|
|
41
|
+
/** How long it is expected to take, in milliseconds. */
|
|
42
|
+
expected: number;
|
|
43
|
+
/** Whether {@link expected} comes from ships before, rather than a default. */
|
|
44
|
+
known: boolean;
|
|
45
|
+
/** When it shows hung, once started. */
|
|
46
|
+
deadline: string | null;
|
|
47
|
+
check: StageCheck | null;
|
|
48
|
+
log: StageLog | null;
|
|
49
|
+
/** On the ship command: the steps the project's own Release reports, as they stand; absent when it reports none. */
|
|
50
|
+
releaseSteps?: ReleaseStep[];
|
|
51
|
+
}
|
|
52
|
+
/** When a step that started at `started` shows hung. */
|
|
53
|
+
export declare function deadlineOf(stage: Stage, started: string): string;
|
|
54
|
+
/** `stage` begun at `at` in `state`, unless it began already. */
|
|
55
|
+
export declare function begun(stage: Stage, at: string, state?: StageState): Stage;
|
|
56
|
+
/** `stage` ended at `at` in `state`, begun then too when it never began. */
|
|
57
|
+
export declare function ended(stage: Stage, at: string, state: StageState): Stage;
|
|
58
|
+
/** `stage` as the page shows it at `now`: hung when under way past its deadline. */
|
|
59
|
+
export declare function shownStage(stage: Stage, now: number): Stage;
|
|
60
|
+
/** How long a step took, in milliseconds, once done. */
|
|
61
|
+
export declare function took(stage: Stage): number | null;
|
|
62
|
+
/** What each step is called. */
|
|
63
|
+
export declare const STAGE_NAMES: Record<StageKey, string>;
|
|
64
|
+
/** How long each step is expected to take before any ship of it says. */
|
|
65
|
+
export declare const STAGE_DEFAULTS: Record<StageKey, Duration>;
|
|
66
|
+
/** How long a step goes before it shows hung the first time, with no ship before to say. */
|
|
67
|
+
export declare const FIRST_DEADLINE: Duration;
|
|
68
|
+
/** The states a step ends in. */
|
|
69
|
+
export declare const STAGE_ENDED: StageState[];
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { AsyncResource } from "../../../core/disposable/index.js";
|
|
2
|
+
import type { Fs } from "../../../core/system/index.js";
|
|
3
|
+
import { type WallClock } from "../../../core/time/index.js";
|
|
4
|
+
import type { Storage } from "../storage";
|
|
5
|
+
import { type Cascade, type CascadeStep, Cascades } from "./cascade";
|
|
6
|
+
import type { Pin, ShipGraph } from "./graph";
|
|
7
|
+
import { type ShipLive } from "./live";
|
|
8
|
+
import type { ShipRegistry } from "./registry";
|
|
9
|
+
import type { Ship, Shipping } from "./run";
|
|
10
|
+
import { type ShipSelection } from "./selection";
|
|
11
|
+
/** A project’s publisher and adoption operations, including cleanup after Abandon. */
|
|
12
|
+
export interface StepProject {
|
|
13
|
+
shipping: Pick<Shipping, "start" | "resume" | "settled" | "current" | "stop">;
|
|
14
|
+
adopt(ship: Cascade, step: CascadeStep, pins: Pin[], log: (text: string) => Promise<void>, signal: AbortSignal, assigned?: () => Promise<void>): Promise<boolean | undefined>;
|
|
15
|
+
discard?(ship: Cascade, step: CascadeStep): Promise<void>;
|
|
16
|
+
/** Whether the release's tag reached the remote, which a release that died after publishing lacks. */
|
|
17
|
+
released?(version: string): Promise<boolean>;
|
|
18
|
+
}
|
|
19
|
+
export interface ShipStepsOptions {
|
|
20
|
+
graph(): Promise<ShipGraph>;
|
|
21
|
+
project(slug: string): Promise<StepProject>;
|
|
22
|
+
live: Pick<ShipLive, "check">;
|
|
23
|
+
registry: Pick<ShipRegistry, "published">;
|
|
24
|
+
clock?: WallClock;
|
|
25
|
+
pause?: () => Promise<void>;
|
|
26
|
+
/** Reports a background storage or runner failure. */
|
|
27
|
+
error(error: unknown): void;
|
|
28
|
+
}
|
|
29
|
+
/** Ship selected projects in release order, with Retry and Abandon for a stopped release. */
|
|
30
|
+
export declare class ShipSteps extends Cascades implements AsyncResource {
|
|
31
|
+
private readonly storage;
|
|
32
|
+
private readonly fs;
|
|
33
|
+
private readonly opts;
|
|
34
|
+
private readonly record;
|
|
35
|
+
private readonly clock;
|
|
36
|
+
private going;
|
|
37
|
+
private closing;
|
|
38
|
+
private controller;
|
|
39
|
+
private publisher;
|
|
40
|
+
constructor(storage: Storage, fs: Fs, opts: ShipStepsOptions);
|
|
41
|
+
current(): Promise<Cascade | null>;
|
|
42
|
+
shown(): Promise<{
|
|
43
|
+
cascade: Cascade | null;
|
|
44
|
+
ship: Ship | null;
|
|
45
|
+
}>;
|
|
46
|
+
/** Start only after validating every choice; a stopped ship still owns the machine. */
|
|
47
|
+
start(input: ShipSelection): Promise<Cascade>;
|
|
48
|
+
/** A failed stage is retried in place; completed stages stay complete. */
|
|
49
|
+
retry(): Promise<Cascade>;
|
|
50
|
+
/** Give a failed mechanical adoption to an agent, retaining its prepared tree. */
|
|
51
|
+
handToAgent(): Promise<Cascade>;
|
|
52
|
+
/** Ends the plan, retaining every completed publication. No later stage may start. */
|
|
53
|
+
abandon(): Promise<Cascade>;
|
|
54
|
+
/** Continue an interrupted ship, rechecking its unfinished stage before doing more work. */
|
|
55
|
+
resume(): Promise<void>;
|
|
56
|
+
settled(): Promise<void>;
|
|
57
|
+
/** Leave the durable stage running for the next server to recheck. */
|
|
58
|
+
disposeAsync(): Promise<void>;
|
|
59
|
+
private run;
|
|
60
|
+
private execute;
|
|
61
|
+
private perform;
|
|
62
|
+
private waitLive;
|
|
63
|
+
private discard;
|
|
64
|
+
private active;
|
|
65
|
+
private save;
|
|
66
|
+
private stamp;
|
|
67
|
+
private bytes;
|
|
68
|
+
private log;
|
|
69
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** The creds name a ship publishes under when the store keeps one. */
|
|
2
|
+
export declare const NPM_TOKEN = "NPM_TOKEN";
|
|
3
|
+
/** Asks for the `NPM_TOKEN` in `creds`' device store, and nothing when it is kept. */
|
|
4
|
+
export declare function requestNpmToken(creds: {
|
|
5
|
+
request: (name: string, options: {
|
|
6
|
+
scope: "device";
|
|
7
|
+
purpose: string;
|
|
8
|
+
instructions: string;
|
|
9
|
+
task: null;
|
|
10
|
+
}) => Promise<unknown>;
|
|
11
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Fs, Ps } from "../../../core/system/index.js";
|
|
2
|
+
/** Why a ship stopped on a token npm turned away. */
|
|
3
|
+
export declare const TOKEN_REFUSED = "npm refused the NPM_TOKEN in the creds store: it may have expired, been revoked, or be limited to IP ranges this machine is outside of; make a new granular token and replace it on the Creds page";
|
|
4
|
+
/**
|
|
5
|
+
* What `npm whoami` says under the environment a ship's npm runs in, with
|
|
6
|
+
* `token` signed in when there is one, and that environment.
|
|
7
|
+
*/
|
|
8
|
+
export declare function checkNpm({ fs, ps, dir, root }: {
|
|
9
|
+
fs: Fs;
|
|
10
|
+
ps: Ps;
|
|
11
|
+
dir: string;
|
|
12
|
+
root: string;
|
|
13
|
+
}, token: string | undefined): Promise<{
|
|
14
|
+
env: Record<string, string>;
|
|
15
|
+
whoami: import("../../../core/system/index.js").SpawnCaptureResult;
|
|
16
|
+
}>;
|
|
17
|
+
/** What a ship records of its `npm whoami` check. */
|
|
18
|
+
export declare function whoamiResult(whoami: {
|
|
19
|
+
exitCode: number;
|
|
20
|
+
stdout: string;
|
|
21
|
+
}, token: string | undefined): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Expected } from "./plans";
|
|
2
|
+
import { type Provider } from "./providers";
|
|
3
|
+
import type { Spend } from "./spend";
|
|
4
|
+
/** How a provider's row on the Billing page reads after a pull. */
|
|
5
|
+
export interface ProviderStatus {
|
|
6
|
+
provider: string;
|
|
7
|
+
/**
|
|
8
|
+
* `ok` pulled, `missing` has no cred, `unreachable` failed, `untracked`
|
|
9
|
+
* not counted yet, `counted` counted by splates as it is used,
|
|
10
|
+
* `estimated` estimated by splates from list prices, with no bill to pull.
|
|
11
|
+
*/
|
|
12
|
+
state: "ok" | "missing" | "unreachable" | "untracked" | "counted" | "estimated";
|
|
13
|
+
/** What to tell the user; for `ok`, only a note that the bill trails use. */
|
|
14
|
+
message: string;
|
|
15
|
+
/** How many new charges the pull added. */
|
|
16
|
+
added: number;
|
|
17
|
+
/** What the provider says it will charge next, not billed yet. */
|
|
18
|
+
expected?: Expected[];
|
|
19
|
+
}
|
|
20
|
+
export interface BillingOptions {
|
|
21
|
+
cred(name: string): Promise<string | undefined>;
|
|
22
|
+
/** The display currency; USD unsaid. */
|
|
23
|
+
currency?: string;
|
|
24
|
+
fetcher?: typeof fetch;
|
|
25
|
+
/** The date now, `2026-10-21`. */
|
|
26
|
+
today: string;
|
|
27
|
+
/** How far back to pull; 90 days unsaid. */
|
|
28
|
+
days?: number;
|
|
29
|
+
providers?: readonly Provider[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Pulls what each provider billed into the ledger, converted to the display
|
|
33
|
+
* currency, once per charge however often it runs. A provider that cannot be
|
|
34
|
+
* reached is reported, never recorded as zero.
|
|
35
|
+
*/
|
|
36
|
+
export declare function pullBilling(spend: Spend, opts: BillingOptions): Promise<ProviderStatus[]>;
|
|
37
|
+
/** How the row of a provider splates never pulls reads; null for one it does. */
|
|
38
|
+
export declare function unpulledStatus(provider: Provider): ProviderStatus | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type { BillingOptions, ProviderStatus } from "./billing";
|
|
2
|
+
export { pullBilling } from "./billing";
|
|
3
|
+
export type { Expected, Plan, PlansOptions } from "./plans";
|
|
4
|
+
export { readPlans, renewals } from "./plans";
|
|
5
|
+
export { PROVIDERS } from "./providers";
|
|
6
|
+
export { Rates } from "./rates";
|
|
7
|
+
export type { SpendReport } from "./report";
|
|
8
|
+
export { spendReport } from "./report";
|
|
9
|
+
export type { BillingRoutesOptions, BillingView } from "./routes";
|
|
10
|
+
export { BillingRoutes, CURRENCIES } from "./routes";
|
|
11
|
+
export { Spend } from "./spend";
|
|
12
|
+
export type { Period, ProjectTotal, SpendEntry, SpendKind, SpendQuery, SpendTotal, } from "./totals";
|
|
13
|
+
export { periodStart, projectTotals, totals } from "./totals";
|
|
14
|
+
export type { TurnSpend, TurnTokens, Used } from "./turn";
|
|
15
|
+
export { KINDS, turnSpend } from "./turn";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Fs } from "../../../core/system/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A charge on the bill that no provider has billed yet as splates sees it:
|
|
4
|
+
* an agent plan's renewal, priced at its list price since no plan has a
|
|
5
|
+
* billing API, or a subscription a provider says it will invoice.
|
|
6
|
+
*/
|
|
7
|
+
export interface Expected {
|
|
8
|
+
provider: string;
|
|
9
|
+
service: string;
|
|
10
|
+
/** The day it is charged, `2026-10-30`. */
|
|
11
|
+
day: string;
|
|
12
|
+
amount: number;
|
|
13
|
+
currency: string;
|
|
14
|
+
}
|
|
15
|
+
/** A plan and how much it charges each renewal. */
|
|
16
|
+
export interface Plan {
|
|
17
|
+
provider: string;
|
|
18
|
+
/** The plan's name, as the Billing page shows it: `Max 20x plan`. */
|
|
19
|
+
service: string;
|
|
20
|
+
amount: number;
|
|
21
|
+
currency: string;
|
|
22
|
+
/** How many months pass between renewals. */
|
|
23
|
+
everyMonths: number;
|
|
24
|
+
/** When it began, or the earliest renewal its source confirms, as an ISO timestamp. */
|
|
25
|
+
since: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The agent plans this machine is signed in to, read from their own logins;
|
|
29
|
+
* one that cannot be read or fully priced is left out.
|
|
30
|
+
*/
|
|
31
|
+
export declare function readPlans(fs: Fs, home: string, opts?: PlansOptions): Promise<Plan[]>;
|
|
32
|
+
export interface PlansOptions {
|
|
33
|
+
/** Where Kimi Code keeps its login and how to ask for its subscription. */
|
|
34
|
+
kimi?: {
|
|
35
|
+
home: string;
|
|
36
|
+
baseUrl?: string;
|
|
37
|
+
fetcher?: typeof fetch;
|
|
38
|
+
now?: () => number;
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Each renewal of `plans` from `since` to `until` (`2026-10-01`, exclusive),
|
|
43
|
+
* at each plan's own interval, on its anchor day or that month's last day.
|
|
44
|
+
*/
|
|
45
|
+
export declare function renewals(plans: readonly Plan[], since: string, until: string): Expected[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Expected } from "./plans";
|
|
2
|
+
/** One amount a provider billed, in its own currency. */
|
|
3
|
+
export interface Charge {
|
|
4
|
+
/** The day it was billed, `2026-10-20`. */
|
|
5
|
+
day: string;
|
|
6
|
+
service: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
currency: string;
|
|
9
|
+
/** Unique within the provider, so the same charge pulled twice is kept once. */
|
|
10
|
+
ref: string;
|
|
11
|
+
}
|
|
12
|
+
/** What an adapter needs: a way to read a cred, and the network. */
|
|
13
|
+
export interface Sources {
|
|
14
|
+
cred(name: string): Promise<string | undefined>;
|
|
15
|
+
fetcher: typeof fetch;
|
|
16
|
+
/** The date now (`2026-10-21`). */
|
|
17
|
+
today: string;
|
|
18
|
+
/** The earliest day to pull. */
|
|
19
|
+
since: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Provider {
|
|
22
|
+
id: string;
|
|
23
|
+
/** The cred it reads, for the Creds page to ask for. */
|
|
24
|
+
cred: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Set for a provider splates does not count yet: what to say on its row.
|
|
27
|
+
*/
|
|
28
|
+
untracked?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Set for a provider splates counts itself as it uses it, with nothing to
|
|
31
|
+
* pull: what to say on its row.
|
|
32
|
+
*/
|
|
33
|
+
counted?: string;
|
|
34
|
+
/** Set for a provider with no bill to pull, estimated from list prices: what to say on its row. */
|
|
35
|
+
estimated?: string;
|
|
36
|
+
/** Set when the bill trails use: what to say on the pulled row. */
|
|
37
|
+
lags?: string;
|
|
38
|
+
/** Where the provider's own billing page is, for a row to link to. */
|
|
39
|
+
dashboard?: string;
|
|
40
|
+
pull?(sources: Sources, token: string): Promise<Charge[]>;
|
|
41
|
+
/** What the provider says it will charge next and has not billed yet. */
|
|
42
|
+
upcoming?(sources: Sources, token: string): Promise<Expected[]>;
|
|
43
|
+
}
|
|
44
|
+
/** Every provider billed outside splates, those not counted yet said so. */
|
|
45
|
+
export declare const PROVIDERS: readonly Provider[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** An amount in the display currency, with what it was converted from. */
|
|
2
|
+
export interface Converted {
|
|
3
|
+
dollars: number;
|
|
4
|
+
original: {
|
|
5
|
+
amount: number;
|
|
6
|
+
currency: string;
|
|
7
|
+
rate: number;
|
|
8
|
+
rateDate: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Converts amounts to one display currency at the rate of the day each was
|
|
13
|
+
* billed, fetched once per currency and day. Throws when a rate cannot be had,
|
|
14
|
+
* so the caller can say so rather than show a wrong figure.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Rates {
|
|
17
|
+
readonly currency: string;
|
|
18
|
+
private readonly fetcher;
|
|
19
|
+
private readonly known;
|
|
20
|
+
constructor(currency?: string, fetcher?: typeof fetch);
|
|
21
|
+
convert(amount: number, from: string, day: string): Promise<Converted>;
|
|
22
|
+
private fetchRate;
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Expected } from "./plans";
|
|
2
|
+
import type { Rates } from "./rates";
|
|
3
|
+
import type { Spend } from "./spend";
|
|
4
|
+
import { type ProjectTotal, type SpendTotal } from "./totals";
|
|
5
|
+
/** What the Billing page shows of a range: totals by service and by day. */
|
|
6
|
+
export interface SpendReport {
|
|
7
|
+
/** When it was read, as an ISO timestamp. */
|
|
8
|
+
updated: string;
|
|
9
|
+
/** The currency the amounts are in. */
|
|
10
|
+
currency: string;
|
|
11
|
+
/** The latest day whose rate was used, or null when nothing was converted. */
|
|
12
|
+
rateDate: string | null;
|
|
13
|
+
/** Why the amounts are in dollars rather than `currency`, when no rate could be had. */
|
|
14
|
+
rateError: string | null;
|
|
15
|
+
/** Each provider's services in the range. */
|
|
16
|
+
services: SpendTotal[];
|
|
17
|
+
/** Each provider's day, oldest first. */
|
|
18
|
+
days: SpendTotal[];
|
|
19
|
+
/** Each project's share of the range, with what no project's work is recorded against as `null`. */
|
|
20
|
+
projects: ProjectTotal[];
|
|
21
|
+
/**
|
|
22
|
+
* What is expected after the range and before the end of the month it
|
|
23
|
+
* ends in, by service: a plan's renewal or a subscription not invoiced.
|
|
24
|
+
*/
|
|
25
|
+
upcoming: SpendTotal[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The ledger's totals from `since` to `until` (ISO timestamps, either may be
|
|
29
|
+
* left off), with each `expected` charge on its day, in the currency of
|
|
30
|
+
* `rates`, each entry at the rate of the day it was spent. When a rate cannot
|
|
31
|
+
* be had the dollars are shown as dollars.
|
|
32
|
+
*/
|
|
33
|
+
export declare function spendReport(ledger: Spend, range: {
|
|
34
|
+
since?: string;
|
|
35
|
+
until?: string;
|
|
36
|
+
now: string;
|
|
37
|
+
rates?: Rates;
|
|
38
|
+
expected?: readonly Expected[];
|
|
39
|
+
}): Promise<SpendReport>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Storage } from "../storage";
|
|
2
|
+
import { type ProviderStatus } from "./billing";
|
|
3
|
+
import { type Plan } from "./plans";
|
|
4
|
+
import type { Spend } from "./spend";
|
|
5
|
+
/** The currencies the Billing page offers, the European Central Bank's most traded. */
|
|
6
|
+
export declare const CURRENCIES: string[];
|
|
7
|
+
/** What the Billing page shows of its sources. */
|
|
8
|
+
export interface BillingView {
|
|
9
|
+
currency: string;
|
|
10
|
+
currencies: string[];
|
|
11
|
+
/** When providers were last pulled, or null before the first pull. */
|
|
12
|
+
pulledAt: string | null;
|
|
13
|
+
/** Each provider, with the cred it reads and how its last pull went. */
|
|
14
|
+
providers: (ProviderStatus & {
|
|
15
|
+
cred: string | null;
|
|
16
|
+
/** Where the provider's own billing page is; null for none. */
|
|
17
|
+
dashboard: string | null;
|
|
18
|
+
})[];
|
|
19
|
+
}
|
|
20
|
+
/** What a `BillingRoutes` reads beyond the ledger. */
|
|
21
|
+
export interface BillingRoutesOptions {
|
|
22
|
+
fetcher?: typeof fetch;
|
|
23
|
+
/** The agent plans this machine is signed in to, whose renewals the bill expects; none unsaid. */
|
|
24
|
+
plans?: () => Promise<Plan[]>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The Billing page's sources: the display currency, kept on the machine, and
|
|
28
|
+
* a pull of what each provider billed, whose results the page reads back.
|
|
29
|
+
*/
|
|
30
|
+
export declare class BillingRoutes {
|
|
31
|
+
#private;
|
|
32
|
+
private readonly ledger;
|
|
33
|
+
private readonly cred;
|
|
34
|
+
private readonly fetcher;
|
|
35
|
+
private readonly plans;
|
|
36
|
+
constructor(storage: Storage, ledger: Spend, cred: (name: string) => Promise<string | undefined>, opts?: BillingRoutesOptions);
|
|
37
|
+
currency(): Promise<string>;
|
|
38
|
+
private view;
|
|
39
|
+
/** The sources as last pulled. */
|
|
40
|
+
readonly read: () => Promise<Response>;
|
|
41
|
+
/** Pulls every provider's billing, once at a time, and answers as `read` does. */
|
|
42
|
+
readonly pull: () => Promise<Response>;
|
|
43
|
+
readonly setCurrency: (request: Request) => Promise<Response>;
|
|
44
|
+
/** The spend in the display currency. */
|
|
45
|
+
readonly spend: (request: Request) => Promise<Response>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Storage } from "../storage";
|
|
2
|
+
import { type SpendEntry, type SpendQuery } from "./totals";
|
|
3
|
+
/**
|
|
4
|
+
* Every amount spent, in dollars, kept in `spend.jsonl` on the machine so it
|
|
5
|
+
* survives restarts and any project's agents add to the one ledger. Nothing
|
|
6
|
+
* else does the pricing: the Billing page reads totals from here.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Spend {
|
|
9
|
+
private readonly log;
|
|
10
|
+
constructor(storage: Storage);
|
|
11
|
+
record(...entries: SpendEntry[]): Promise<void>;
|
|
12
|
+
/** Amounts spent, oldest first; historical runner rows stay in storage. */
|
|
13
|
+
entries(): Promise<SpendEntry[]>;
|
|
14
|
+
totals(query?: SpendQuery): Promise<import("./totals").SpendTotal[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/** Money billed; plan use at API list prices; or a charge expected with no bill yet, which only the report adds. */
|
|
2
|
+
export type SpendKind = "billed" | "equivalent" | "expected";
|
|
3
|
+
/** One amount spent, in dollars, as the ledger keeps it. */
|
|
4
|
+
export interface SpendEntry {
|
|
5
|
+
/** When it was spent, as an ISO timestamp. */
|
|
6
|
+
at: string;
|
|
7
|
+
/** Who was paid or whose plan was used: `claude`, `codex`, `kimi`, `opencode`, `openai`, `cloudflare`. */
|
|
8
|
+
provider: string;
|
|
9
|
+
/** What of the provider's was used: a model, or a product such as `transcription`. */
|
|
10
|
+
service: string;
|
|
11
|
+
kind: SpendKind;
|
|
12
|
+
dollars: number;
|
|
13
|
+
/** The project's slug, task and conversation it was spent for, when one was. */
|
|
14
|
+
project: string | null;
|
|
15
|
+
task: string | null;
|
|
16
|
+
conversation: string | null;
|
|
17
|
+
/** For an amount a provider billed: a stable key, so pulling it again adds nothing. */
|
|
18
|
+
ref?: string;
|
|
19
|
+
/** For an amount billed in another currency: what was billed and the rate it was converted at. */
|
|
20
|
+
original?: {
|
|
21
|
+
amount: number;
|
|
22
|
+
currency: string;
|
|
23
|
+
rate: number;
|
|
24
|
+
rateDate: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/** Totals `entries` as `query` asks, oldest period first, then by provider and service. */
|
|
28
|
+
export declare function totals(entries: readonly SpendEntry[], query?: SpendQuery): SpendTotal[];
|
|
29
|
+
/** One project's spend, the kinds apart. */
|
|
30
|
+
export interface ProjectTotal {
|
|
31
|
+
/** The project's slug, or null for what no project's work is recorded against: provider bills and plan fees. */
|
|
32
|
+
project: string | null;
|
|
33
|
+
billed: number;
|
|
34
|
+
equivalent: number;
|
|
35
|
+
expected: number;
|
|
36
|
+
}
|
|
37
|
+
/** Totals `entries` by project, in slug order, what has no project last. */
|
|
38
|
+
export declare function projectTotals(entries: readonly SpendEntry[]): ProjectTotal[];
|
|
39
|
+
export type Period = "day" | "week" | "month";
|
|
40
|
+
export interface SpendQuery {
|
|
41
|
+
/** What to total by; unsaid, everything is one row. */
|
|
42
|
+
by?: "provider" | "service";
|
|
43
|
+
/** Split by this span too; unsaid, all time at once. */
|
|
44
|
+
per?: Period;
|
|
45
|
+
/** Entries from this ISO timestamp (inclusive) to `until` (exclusive). */
|
|
46
|
+
since?: string;
|
|
47
|
+
until?: string;
|
|
48
|
+
provider?: string;
|
|
49
|
+
project?: string;
|
|
50
|
+
task?: string;
|
|
51
|
+
}
|
|
52
|
+
/** One row of totals, the kinds apart. */
|
|
53
|
+
export interface SpendTotal {
|
|
54
|
+
provider: string | null;
|
|
55
|
+
service: string | null;
|
|
56
|
+
/** The span's first day (`2026-10-21`, a Monday for a week, the 1st for a month); null for all time. */
|
|
57
|
+
period: string | null;
|
|
58
|
+
billed: number;
|
|
59
|
+
equivalent: number;
|
|
60
|
+
expected: number;
|
|
61
|
+
}
|
|
62
|
+
/** The start of the span `at` falls in, as a UTC date. */
|
|
63
|
+
export declare function periodStart(at: string, per: Period): string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type Catalog } from "../prices";
|
|
2
|
+
import type { SpendKind } from "./totals";
|
|
3
|
+
/** What a conversation had used by some moment, as its state tallies it. */
|
|
4
|
+
export interface Used {
|
|
5
|
+
/** Tokens read over every turn, those from cache among them. */
|
|
6
|
+
input: number;
|
|
7
|
+
cached: number;
|
|
8
|
+
output: number;
|
|
9
|
+
/** What the agent says the session cost, in dollars; null for one that never says. */
|
|
10
|
+
cost: number | null;
|
|
11
|
+
/** Tokens in the context window; null until said. */
|
|
12
|
+
context: number | null;
|
|
13
|
+
}
|
|
14
|
+
/** An agent turn's tokens in the shape OpenCode observes them, one per turn. */
|
|
15
|
+
export interface TurnTokens {
|
|
16
|
+
model: string | null;
|
|
17
|
+
input: number;
|
|
18
|
+
cachedRead: number;
|
|
19
|
+
cachedWrite: number;
|
|
20
|
+
output: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* How each agent's use is paid for: Claude, Codex and Kimi are used through a
|
|
24
|
+
* subscription, so their dollars are what the API would have charged;
|
|
25
|
+
* OpenCode bills by use.
|
|
26
|
+
*/
|
|
27
|
+
export declare const KINDS: Record<string, SpendKind>;
|
|
28
|
+
/** What one turn cost in dollars, and the kind of money it is; null when unpriceable. */
|
|
29
|
+
export interface TurnSpend {
|
|
30
|
+
dollars: number;
|
|
31
|
+
kind: SpendKind;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Prices the turn that took a conversation from `before` to `after`: at the
|
|
35
|
+
* cost the agent said it ran up in between, else its tokens at the model's
|
|
36
|
+
* API list price in `catalog`. Null when the turn cost nothing, or nothing
|
|
37
|
+
* is known to price it by.
|
|
38
|
+
*/
|
|
39
|
+
export declare function turnSpend(agent: string, model: string | null, before: Used, after: Used, catalog: Catalog | null, observed?: readonly TurnTokens[], kinds?: Record<string, SpendKind>): TurnSpend | null;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ConversationState } from "../conversations";
|
|
2
|
+
import type { Log, Storage } from "../storage";
|
|
3
|
+
import { type Transcript } from "./skill-checks";
|
|
4
|
+
/**
|
|
5
|
+
* How closely `splates server`'s conversations follow the splates skill, across
|
|
6
|
+
* projects, in `~/.splates/adherence.jsonl`: a line each time a turn ends and
|
|
7
|
+
* changes how a conversation's checks went, the last one standing for it. It
|
|
8
|
+
* outlives the conversations' logs, which go as archived ones are pruned.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Adherence {
|
|
11
|
+
/** The scores last written for each conversation, so a turn that changes none writes nothing. */
|
|
12
|
+
private readonly written;
|
|
13
|
+
readonly log: Log<Judged>;
|
|
14
|
+
constructor(
|
|
15
|
+
/** The machine's storage, or a test's own. */
|
|
16
|
+
storage: Storage);
|
|
17
|
+
/** Judges `state` as it stands, and keeps the result when it changed. */
|
|
18
|
+
judge(state: ConversationState, project: string, at: string): Promise<void>;
|
|
19
|
+
/** Each conversation's checks as last judged. */
|
|
20
|
+
list(): Promise<Judged[]>;
|
|
21
|
+
}
|
|
22
|
+
/** How each check went over one conversation: the places it applied, passed and failed. */
|
|
23
|
+
export type Scores = Record<string, {
|
|
24
|
+
passed: number;
|
|
25
|
+
failed: number;
|
|
26
|
+
}>;
|
|
27
|
+
/** A conversation's checks as last judged, a line of `~/.splates/adherence.jsonl`. */
|
|
28
|
+
export interface Judged {
|
|
29
|
+
conversation: string;
|
|
30
|
+
/** The main tree of the repository it ran in. */
|
|
31
|
+
project: string;
|
|
32
|
+
agent: string;
|
|
33
|
+
/** The splates skill version it started on; null when unknown. */
|
|
34
|
+
skill: string | null;
|
|
35
|
+
/** When it was judged, as an ISO timestamp. */
|
|
36
|
+
at: string;
|
|
37
|
+
scores: Scores;
|
|
38
|
+
}
|
|
39
|
+
/** A conversation as `skill-checks` reads it: what it said and ran, in order. */
|
|
40
|
+
export declare function condense(state: ConversationState): Transcript;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { Finding } from "./findings";
|
|
2
|
+
import type { Outcome } from "./outcomes";
|
|
3
|
+
/** Each project's baseline, over the merged tasks that ended in the window before `now`. */
|
|
4
|
+
export declare function baselines(outcomes: Outcome[], now: Date): Baseline[];
|
|
5
|
+
/**
|
|
6
|
+
* What a project's recent merged tasks were like, so one task can be held
|
|
7
|
+
* against them: each measure's median and 90th percentile, and how often each
|
|
8
|
+
* kind of finding came up.
|
|
9
|
+
*/
|
|
10
|
+
export interface Baseline {
|
|
11
|
+
/** The main tree of the repository. */
|
|
12
|
+
project: string;
|
|
13
|
+
/** Its merged tasks in the window. */
|
|
14
|
+
tasks: number;
|
|
15
|
+
/** Each measure over the tasks that kept it; null with too few to compare against. */
|
|
16
|
+
measures: Record<Measure, Spread | null>;
|
|
17
|
+
/** How many of its tasks had each finding, by `findingKeys`. */
|
|
18
|
+
findings: Record<string, number>;
|
|
19
|
+
}
|
|
20
|
+
/** Where a measure's values fall among a project's tasks. */
|
|
21
|
+
export interface Spread {
|
|
22
|
+
/** The tasks that kept it. */
|
|
23
|
+
tasks: number;
|
|
24
|
+
median: number;
|
|
25
|
+
p90: number;
|
|
26
|
+
}
|
|
27
|
+
/** What a task is held against its project's on. */
|
|
28
|
+
export type Measure =
|
|
29
|
+
/** From add to merge, in milliseconds. */
|
|
30
|
+
"spentMs"
|
|
31
|
+
/** What its own turns cost; Codex says none. */
|
|
32
|
+
| "cost"
|
|
33
|
+
/** Lines added and removed. */
|
|
34
|
+
| "lines"
|
|
35
|
+
/** Questions put to the person. */
|
|
36
|
+
| "decidedByYou" | "failedMerges";
|
|
37
|
+
export declare const MEASURES: readonly Measure[];
|
|
38
|
+
/** Each tuned here, so a comparison that cries wolf is one number to change. */
|
|
39
|
+
export declare const BASELINE: {
|
|
40
|
+
/** How far back the tasks compared against ended. */
|
|
41
|
+
readonly windowMs: number;
|
|
42
|
+
/** Fewer tasks than this keeping a measure, and it gives no comparison. */
|
|
43
|
+
readonly minTasks: 10;
|
|
44
|
+
/** A value is an outlier past the 90th percentile, or this many medians. */
|
|
45
|
+
readonly timesMedian: 2;
|
|
46
|
+
};
|
|
47
|
+
/** What `outcome` shows of each measure; null for one it did not keep. */
|
|
48
|
+
export declare function measured(outcome: Outcome): Record<Measure, number | null>;
|
|
49
|
+
/** Whether `value` stands out from `spread`: never against no spread. */
|
|
50
|
+
export declare function outlier(value: number, spread: Spread | null): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* What a finding counts toward: its kind, and, for one that names what
|
|
53
|
+
* failed, that too, so the same failing test is counted apart from others.
|
|
54
|
+
*/
|
|
55
|
+
export declare function findingKeys(finding: Finding): string[];
|