@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,9 @@
|
|
|
1
|
+
/** How far a release moves the version. */
|
|
2
|
+
export type Bump = "patch" | "minor" | "major";
|
|
3
|
+
/**
|
|
4
|
+
* The newest of `versions`, or `undefined` when none is major.minor.patch.
|
|
5
|
+
* Anything else is skipped, as a tag nobody cut with a release would be.
|
|
6
|
+
*/
|
|
7
|
+
export declare function newest(versions: readonly string[]): string | undefined;
|
|
8
|
+
/** Returns `version` moved by `type`. */
|
|
9
|
+
export declare function bump(version: string, type: Bump): string;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type Fs, type Ps } from "../../system/index.js";
|
|
2
|
+
import type { Package, Workspace } from "./workspace";
|
|
3
|
+
/**
|
|
4
|
+
* The package.json files a release reads and stamps. One version covers the
|
|
5
|
+
* whole workspace, and the root manifest is where it lives.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* What a `ManifestWorkspace` reads through and spawns `bun` with; the real
|
|
9
|
+
* filesystem and process by default.
|
|
10
|
+
*/
|
|
11
|
+
export interface ManifestWorkspaceOptions {
|
|
12
|
+
/**
|
|
13
|
+
* A top-level folder of the workspace root to narrow the workspace to: only
|
|
14
|
+
* its packages are listed and stamped, and its version is theirs, since the
|
|
15
|
+
* root manifest of a repository holding many projects has none. The root
|
|
16
|
+
* stays the repository's.
|
|
17
|
+
*/
|
|
18
|
+
project?: string;
|
|
19
|
+
fs?: Fs;
|
|
20
|
+
ps?: Ps;
|
|
21
|
+
}
|
|
22
|
+
export declare class ManifestWorkspace implements Workspace {
|
|
23
|
+
/** The directory whose package.json declares the workspaces. */
|
|
24
|
+
readonly root: string;
|
|
25
|
+
private readonly fs;
|
|
26
|
+
private readonly ps;
|
|
27
|
+
private readonly project;
|
|
28
|
+
constructor(
|
|
29
|
+
/** The directory whose package.json declares the workspaces. */
|
|
30
|
+
root: string, opts?: ManifestWorkspaceOptions);
|
|
31
|
+
/**
|
|
32
|
+
* Finds the workspace `from` sits in, climbing until a manifest claims one.
|
|
33
|
+
* A repo holding a single package declares no workspaces, so when nothing
|
|
34
|
+
* above claims any, the nearest named manifest is a workspace of one.
|
|
35
|
+
*/
|
|
36
|
+
static at(from: string, opts?: ManifestWorkspaceOptions): Promise<ManifestWorkspace>;
|
|
37
|
+
/** The version every package in the workspace, or its project, shares. */
|
|
38
|
+
version(): Promise<string>;
|
|
39
|
+
packages(): Promise<Package[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Stamps `version` into every package, `bun.lock`, and the root manifest,
|
|
42
|
+
* in lockstep. The root goes last, because it is the version a
|
|
43
|
+
* release reads: stamping it first would leave a run that died partway
|
|
44
|
+
* reading as the version it never finished, and send the next one past it.
|
|
45
|
+
*/
|
|
46
|
+
setVersion(version: string): Promise<void>;
|
|
47
|
+
private dirs;
|
|
48
|
+
/**
|
|
49
|
+
* The paths under `dir` that `segments` name, a `*` segment standing for
|
|
50
|
+
* every entry at that level, as in `packages/*` or `*\/packages/*`.
|
|
51
|
+
*/
|
|
52
|
+
private expand;
|
|
53
|
+
/**
|
|
54
|
+
* Brings `bun.lock` up to the versions just stamped, as the next
|
|
55
|
+
* `bun install` would; left behind, that install dirties the tree the
|
|
56
|
+
* release just committed. bun writes it, so its format stays bun's business.
|
|
57
|
+
*/
|
|
58
|
+
private lock;
|
|
59
|
+
private manifest;
|
|
60
|
+
private stamp;
|
|
61
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** One workspace package, as a release sees it. */
|
|
2
|
+
export interface Package {
|
|
3
|
+
name: string;
|
|
4
|
+
/** The directory holding its package.json. */
|
|
5
|
+
dir: string;
|
|
6
|
+
/** Private packages still get the version stamp; they just never go out. */
|
|
7
|
+
private: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The workspace packages this one needs, which is what puts it later in the
|
|
10
|
+
* order a release builds and publishes in. Only siblings appear here:
|
|
11
|
+
* everything from outside the workspace is already on the registry.
|
|
12
|
+
*/
|
|
13
|
+
dependencies: readonly string[];
|
|
14
|
+
/** The URL its manifest's `repository` names, if it names one. */
|
|
15
|
+
repository?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The packages a release stamps and publishes. One version covers the whole
|
|
19
|
+
* workspace.
|
|
20
|
+
*/
|
|
21
|
+
export interface Workspace {
|
|
22
|
+
/** The directory the workspace is rooted at. */
|
|
23
|
+
readonly root: string;
|
|
24
|
+
/** The version every package in the workspace shares. */
|
|
25
|
+
version(): Promise<string>;
|
|
26
|
+
packages(): Promise<Package[]>;
|
|
27
|
+
/** Stamps `version` into every package, in lockstep. */
|
|
28
|
+
setVersion(version: string): Promise<void>;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProjectSkills, type ProjectSkillsOptions, SKILLS_DIR, versionOf, } from "./project-skills";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// skills/project-skills.ts
|
|
2
|
+
import { color } from "../log/index.js";
|
|
3
|
+
var CLI = "skills@1";
|
|
4
|
+
var SKILLS_DIR = ".agents/skills";
|
|
5
|
+
function versionOf(md) {
|
|
6
|
+
const frontmatter = md.match(/^---\n([\s\S]*?)\n---/)?.[1] ?? "";
|
|
7
|
+
return frontmatter.match(/^version:\s*(.+)$/m)?.[1]?.trim() ?? null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ProjectSkills {
|
|
11
|
+
root;
|
|
12
|
+
opts;
|
|
13
|
+
constructor(root, opts) {
|
|
14
|
+
this.root = root;
|
|
15
|
+
this.opts = opts;
|
|
16
|
+
}
|
|
17
|
+
path(name) {
|
|
18
|
+
return `${SKILLS_DIR}/${name}`;
|
|
19
|
+
}
|
|
20
|
+
async installed() {
|
|
21
|
+
const { fs } = this.opts;
|
|
22
|
+
const names = await fs.readdir(`${this.root}/${SKILLS_DIR}`).catch(() => []);
|
|
23
|
+
const present = [];
|
|
24
|
+
for (const name of names.toSorted()) {
|
|
25
|
+
if (await fs.exists(this.file(name))) {
|
|
26
|
+
present.push(name);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return present;
|
|
30
|
+
}
|
|
31
|
+
async version(name) {
|
|
32
|
+
return this.opts.fs.read(this.file(name)).then(versionOf).catch(() => null);
|
|
33
|
+
}
|
|
34
|
+
async linked(name) {
|
|
35
|
+
const { fs } = this.opts;
|
|
36
|
+
const dir = `${this.root}/${this.path(name)}`;
|
|
37
|
+
return await fs.isSymlink(dir) || await fs.isSymlink(this.file(name));
|
|
38
|
+
}
|
|
39
|
+
async add(names, version) {
|
|
40
|
+
const { ps, log } = this.opts;
|
|
41
|
+
const wanted = [];
|
|
42
|
+
for (const name of names) {
|
|
43
|
+
const installed = await this.version(name);
|
|
44
|
+
if (await this.linked(name)) {
|
|
45
|
+
log.info(`${this.path(name)} links to your own copy; leaving it`);
|
|
46
|
+
} else if (installed === version) {
|
|
47
|
+
log.info(`${this.path(name)} is already ${name} ${version}`);
|
|
48
|
+
} else {
|
|
49
|
+
wanted.push(name);
|
|
50
|
+
log.info(`${color.green("installing")} ${name} ${installed === null ? "" : `${installed} to `}${version}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
if (wanted.length === 0) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const { exitCode } = await ps.spawn([
|
|
57
|
+
"bunx",
|
|
58
|
+
CLI,
|
|
59
|
+
"add",
|
|
60
|
+
`${this.opts.source}#v${version}`,
|
|
61
|
+
"--yes",
|
|
62
|
+
"--skill",
|
|
63
|
+
...wanted
|
|
64
|
+
], { cwd: this.root, env: { DISABLE_TELEMETRY: "1" } });
|
|
65
|
+
if (exitCode !== 0) {
|
|
66
|
+
throw new Error(`\`bunx ${CLI} add\` exited ${exitCode} installing ${wanted.join(", ")} ${version}`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
file(name) {
|
|
70
|
+
return `${this.root}/${this.path(name)}/SKILL.md`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
ProjectSkills,
|
|
75
|
+
SKILLS_DIR,
|
|
76
|
+
versionOf
|
|
77
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type Logger } from "../log/index.js";
|
|
2
|
+
import type { Fs, Ps } from "../system/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Where a project keeps its skills. `skills` writes each one here, which
|
|
5
|
+
* Codex and most agents read, and links the directories of the rest, such as
|
|
6
|
+
* Claude Code's `.claude/skills`, to it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SKILLS_DIR = ".agents/skills";
|
|
9
|
+
/** What `ProjectSkills` works through, and where its skills come from. */
|
|
10
|
+
export interface ProjectSkillsOptions {
|
|
11
|
+
fs: Fs;
|
|
12
|
+
ps: Ps;
|
|
13
|
+
log: Logger;
|
|
14
|
+
/**
|
|
15
|
+
* The GitHub repository the skills come from, as `owner/name`: each
|
|
16
|
+
* release is a `v<version>` tag in it, and each skill a
|
|
17
|
+
* `skills/<name>/SKILL.md` there, which `bunx skills add` finds.
|
|
18
|
+
*/
|
|
19
|
+
source: string;
|
|
20
|
+
}
|
|
21
|
+
/** The `version:` in a skill's frontmatter, or null when it has none. */
|
|
22
|
+
export declare function versionOf(md: string): string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The agent skills a project has, those from one repository installed through
|
|
25
|
+
* the `skills` CLI from the tag of one of its releases, so a project's copy is
|
|
26
|
+
* always some release's, whichever tool put it there. A skill whose copy is a
|
|
27
|
+
* symbolic link is one someone keeps by hand, as a repository links its own
|
|
28
|
+
* to the source it edits, so it is left as it is.
|
|
29
|
+
*/
|
|
30
|
+
export declare class ProjectSkills {
|
|
31
|
+
/** The project's root, where `.agents/skills` is. */
|
|
32
|
+
private root;
|
|
33
|
+
private opts;
|
|
34
|
+
constructor(
|
|
35
|
+
/** The project's root, where `.agents/skills` is. */
|
|
36
|
+
root: string, opts: ProjectSkillsOptions);
|
|
37
|
+
/** Where the project keeps `name`, under its root. */
|
|
38
|
+
path(name: string): string;
|
|
39
|
+
/** The skills the project has, ours or not, in name order. */
|
|
40
|
+
installed(): Promise<string[]>;
|
|
41
|
+
/** The release the project's copy of `name` came from; null when it has none. */
|
|
42
|
+
version(name: string): Promise<string | null>;
|
|
43
|
+
/** Whether the project's copy of `name` is a link to one kept by hand. */
|
|
44
|
+
linked(name: string): Promise<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Installs each of `names` as release `version` ships it, over whatever
|
|
47
|
+
* copy is there, or throws when `skills` fails. Skips a linked copy and
|
|
48
|
+
* one already at `version`, saying so, so running it again changes
|
|
49
|
+
* nothing and needs no network.
|
|
50
|
+
*/
|
|
51
|
+
add(names: string[], version: string): Promise<void>;
|
|
52
|
+
private file;
|
|
53
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Resource } from "../../disposable/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Fs is the filesystem seam. Typically, this is assigned the variable name `fs`.
|
|
4
|
+
*/
|
|
5
|
+
export interface Fs {
|
|
6
|
+
exists(path: string): Promise<boolean>;
|
|
7
|
+
mkdir(path: string, opts?: MkdirOptions): Promise<void>;
|
|
8
|
+
read(path: string): Promise<string>;
|
|
9
|
+
write(path: string, data: string): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Adds `data` to the end of the file, making it when it is missing, so a log
|
|
12
|
+
* grows without being rewritten whole.
|
|
13
|
+
*/
|
|
14
|
+
append(path: string, data: string): Promise<void>;
|
|
15
|
+
readBytes(path: string): Promise<Uint8Array>;
|
|
16
|
+
writeBytes(path: string, data: Uint8Array): Promise<void>;
|
|
17
|
+
rename(from: string, to: string): Promise<void>;
|
|
18
|
+
readdir(path: string): Promise<string[]>;
|
|
19
|
+
stat(path: string): Promise<StatResult>;
|
|
20
|
+
rm(path: string, opts?: RmOptions): Promise<void>;
|
|
21
|
+
/** Sets `path`'s permission bits, such as 0o600 for its owner alone. */
|
|
22
|
+
chmod(path: string, mode: number): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether `path` is itself a symbolic link, rather than what one points
|
|
25
|
+
* at; false when nothing is there.
|
|
26
|
+
*/
|
|
27
|
+
isSymlink(path: string): Promise<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Calls `onChange` with the path that changed, whenever something in
|
|
30
|
+
* `path` does, until the watch is disposed: a write, a rename, a removal.
|
|
31
|
+
* Throws when `path` cannot be watched, as when it does not exist.
|
|
32
|
+
*/
|
|
33
|
+
watch(path: string, onChange: (changed: string) => void, opts?: WatchOptions): Resource;
|
|
34
|
+
}
|
|
35
|
+
export interface MkdirOptions {
|
|
36
|
+
/**
|
|
37
|
+
* Defaults to true. Pass false for a create-or-throw: the failure is what
|
|
38
|
+
* makes `mkdir` usable as a mutex.
|
|
39
|
+
*/
|
|
40
|
+
recursive?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface WatchOptions {
|
|
43
|
+
/** Everything under `path` too, rather than its own entries alone. */
|
|
44
|
+
recursive?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface RmOptions {
|
|
47
|
+
recursive?: boolean;
|
|
48
|
+
force?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface StatResult {
|
|
51
|
+
isDirectory(): boolean;
|
|
52
|
+
/** Bytes on disk. Zero for a directory. */
|
|
53
|
+
size: number;
|
|
54
|
+
/** When it was last written, as epoch ms. */
|
|
55
|
+
mtimeMs: number;
|
|
56
|
+
/** Permission bits, such as 0o755; a file's executable bit is `mode & 0o111`. */
|
|
57
|
+
mode: number;
|
|
58
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Resource } from "../../disposable/index.js";
|
|
2
|
+
import type { Fs, MkdirOptions, RmOptions, StatResult, WatchOptions } from "./fs";
|
|
3
|
+
export declare class NodeFs implements Fs {
|
|
4
|
+
exists(path: string): Promise<boolean>;
|
|
5
|
+
mkdir(path: string, opts?: MkdirOptions): Promise<void>;
|
|
6
|
+
read(path: string): Promise<string>;
|
|
7
|
+
write(path: string, data: string): Promise<void>;
|
|
8
|
+
append(path: string, data: string): Promise<void>;
|
|
9
|
+
readBytes(path: string): Promise<Uint8Array>;
|
|
10
|
+
writeBytes(path: string, data: Uint8Array): Promise<void>;
|
|
11
|
+
rename(from: string, to: string): Promise<void>;
|
|
12
|
+
readdir(path: string): Promise<string[]>;
|
|
13
|
+
chmod(path: string, mode: number): Promise<void>;
|
|
14
|
+
stat(path: string): Promise<StatResult>;
|
|
15
|
+
rm(path: string, opts?: RmOptions): Promise<void>;
|
|
16
|
+
isSymlink(path: string): Promise<boolean>;
|
|
17
|
+
watch(path: string, onChange: (changed: string) => void, opts?: WatchOptions): Resource;
|
|
18
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Glob is the path-matching seam. Typically, this is assigned the variable
|
|
3
|
+
* name `glob`.
|
|
4
|
+
*
|
|
5
|
+
* The pattern comes per call rather than per instance, so a caller holding a
|
|
6
|
+
* rule and a path never has to keep a compiled matcher alongside it. An
|
|
7
|
+
* implementation that does compile patterns caches them itself.
|
|
8
|
+
*/
|
|
9
|
+
export interface Glob {
|
|
10
|
+
matches(pattern: string, path: string): boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Glob } from "./glob";
|
|
2
|
+
/**
|
|
3
|
+
* A `Glob` that runs anywhere Node's `node:path` API does, Bun included.
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* const glob = new NodeGlob();
|
|
7
|
+
* glob.matches("src/*.ts", "src/main.ts"); // true
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export declare class NodeGlob implements Glob {
|
|
11
|
+
matches(pattern: string, path: string): boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { Logger } from "../../log/index.js";
|
|
2
|
+
import type { Fs } from "../fs/fs";
|
|
3
|
+
import type { Lock } from "../lock/lock";
|
|
4
|
+
import type { Ps } from "../ps/ps";
|
|
5
|
+
/**
|
|
6
|
+
* A machine's heavy-job slots: `take` one before a test run or an install,
|
|
7
|
+
* and dispose of it after; `read` says who holds them and who waits. A holder
|
|
8
|
+
* that dies gives its slot back by dying. Every process that opens the same
|
|
9
|
+
* file shares one cap, whichever tool it runs in.
|
|
10
|
+
*/
|
|
11
|
+
export declare class HeavyJobs implements HeavyCap {
|
|
12
|
+
#private;
|
|
13
|
+
/**
|
|
14
|
+
* The slots kept in `dir`, as `heavy.json` beside the `heavy.lock` that
|
|
15
|
+
* guards it.
|
|
16
|
+
*/
|
|
17
|
+
static under(dir: string, { fs, ps, log, cap, held, }: Pick<HeavyJobsOptions, "log" | "cap" | "held"> & {
|
|
18
|
+
fs: Fs;
|
|
19
|
+
ps: Ps;
|
|
20
|
+
}): HeavyJobs;
|
|
21
|
+
constructor(
|
|
22
|
+
/** The file the slots are kept in, or a test's own. */
|
|
23
|
+
path: string, opts: HeavyJobsOptions);
|
|
24
|
+
take({ what, task, }: {
|
|
25
|
+
what: string;
|
|
26
|
+
task?: string | null;
|
|
27
|
+
}): Promise<HeavySlot>;
|
|
28
|
+
read(): Promise<HeavyJobsReading>;
|
|
29
|
+
}
|
|
30
|
+
/** A job that holds, or waits for, one of the machine's slots. */
|
|
31
|
+
export interface HeavyJob {
|
|
32
|
+
/** What it runs, as a waiter names it: "preMerge", "bun test". */
|
|
33
|
+
what: string;
|
|
34
|
+
/** The task it runs for, or null outside one. */
|
|
35
|
+
task: string | null;
|
|
36
|
+
/** The process that holds the slot, which frees it by exiting. */
|
|
37
|
+
pid: number;
|
|
38
|
+
/** When it started holding, or waiting. */
|
|
39
|
+
since: string;
|
|
40
|
+
}
|
|
41
|
+
/** Who holds the machine's slots, and who waits for one, first come first. */
|
|
42
|
+
export interface HeavyJobsReading {
|
|
43
|
+
cap: number;
|
|
44
|
+
running: HeavyJob[];
|
|
45
|
+
waiting: HeavyJob[];
|
|
46
|
+
}
|
|
47
|
+
/** A slot taken, which its holder gives back when the job is done. */
|
|
48
|
+
export interface HeavySlot extends AsyncDisposable {
|
|
49
|
+
/**
|
|
50
|
+
* What to add to the environment of what runs in it, so a heavy job it
|
|
51
|
+
* starts runs in this slot rather than waiting for another.
|
|
52
|
+
*/
|
|
53
|
+
readonly env: Record<string, string>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Caps the heavy jobs (test runs, installs, browser launches) running at
|
|
57
|
+
* once, so several agents testing together queue rather than pinning the CPU
|
|
58
|
+
* and running out of memory.
|
|
59
|
+
*/
|
|
60
|
+
export interface HeavyCap {
|
|
61
|
+
/** Waits for a free slot, saying what holds them all while it waits. */
|
|
62
|
+
take(job: {
|
|
63
|
+
what: string;
|
|
64
|
+
task?: string | null;
|
|
65
|
+
}): Promise<HeavySlot>;
|
|
66
|
+
read(): Promise<HeavyJobsReading>;
|
|
67
|
+
}
|
|
68
|
+
export interface HeavyJobsOptions {
|
|
69
|
+
fs: Fs;
|
|
70
|
+
/** Tells a holder that died from one still running, and whose job this is. */
|
|
71
|
+
ps: Pick<Ps, "pid" | "alive" | "env">;
|
|
72
|
+
/** Held while the file is read and rewritten, never while a job runs. */
|
|
73
|
+
lock: Lock;
|
|
74
|
+
log: Logger;
|
|
75
|
+
/** How many jobs run at once. */
|
|
76
|
+
cap: number;
|
|
77
|
+
/**
|
|
78
|
+
* The environment variable a slot sets for what runs in it; a job that
|
|
79
|
+
* finds it set already runs in its parent's slot, and takes none.
|
|
80
|
+
*/
|
|
81
|
+
held: string;
|
|
82
|
+
/** The current time; a test passes its own. */
|
|
83
|
+
now?: () => Date;
|
|
84
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Logger } from "../../log/index.js";
|
|
2
|
+
import type { Fs } from "../fs/fs";
|
|
3
|
+
import type { Ps } from "../ps/ps";
|
|
4
|
+
import type { HostMapper } from "./host-mapper";
|
|
5
|
+
/** What a `FileHostMapper` works through; the real ones by default. */
|
|
6
|
+
export interface FileHostMapperOptions {
|
|
7
|
+
fs?: Fs;
|
|
8
|
+
ps?: Ps;
|
|
9
|
+
log?: Logger;
|
|
10
|
+
}
|
|
11
|
+
export declare class FileHostMapper implements HostMapper {
|
|
12
|
+
private readonly path;
|
|
13
|
+
private readonly fs;
|
|
14
|
+
private readonly ps;
|
|
15
|
+
private readonly log;
|
|
16
|
+
constructor(path: string, opts?: FileHostMapperOptions);
|
|
17
|
+
static default(opts?: FileHostMapperOptions): FileHostMapper;
|
|
18
|
+
map(hostname: string, ip: string): Promise<void>;
|
|
19
|
+
private writeHostFileUnix;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HostMapper is the hostname-to-IP seam. Typically, this is assigned the
|
|
3
|
+
* variable name `hostMapper`.
|
|
4
|
+
*
|
|
5
|
+
* Mapping is idempotent: an implementation adds the entry, rewrites it when
|
|
6
|
+
* the IP has changed, and does nothing when it already matches. Writing the
|
|
7
|
+
* real hosts file needs elevated privileges, so `map` may prompt.
|
|
8
|
+
*/
|
|
9
|
+
export interface HostMapper {
|
|
10
|
+
map(hostname: string, ip: string): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type { Fs, MkdirOptions, RmOptions, StatResult, WatchOptions, } from "./fs/fs";
|
|
2
|
+
export { NodeFs } from "./fs/node-fs";
|
|
3
|
+
export type { Glob } from "./glob/glob";
|
|
4
|
+
export { NodeGlob } from "./glob/node-glob";
|
|
5
|
+
export { type HeavyCap, type HeavyJob, HeavyJobs, type HeavyJobsOptions, type HeavyJobsReading, type HeavySlot, } from "./heavy/heavy-jobs";
|
|
6
|
+
export { FileHostMapper, type FileHostMapperOptions, } from "./host-mapper/file-host-mapper";
|
|
7
|
+
export type { HostMapper } from "./host-mapper/host-mapper";
|
|
8
|
+
export { NoopHostMapper } from "./host-mapper/noop-host-mapper";
|
|
9
|
+
export { DarwinIpProvider } from "./ip-provider/darwin-ip-provider";
|
|
10
|
+
export type { IpProvider, IpProviderOptions, } from "./ip-provider/ip-provider";
|
|
11
|
+
export { LinuxIpProvider } from "./ip-provider/linux-ip-provider";
|
|
12
|
+
export { PlatformIpProvider } from "./ip-provider/platform-ip-provider";
|
|
13
|
+
export { SequentialIpProvider } from "./ip-provider/sequential-ip-provider";
|
|
14
|
+
export { StaticIpProvider } from "./ip-provider/static-ip-provider";
|
|
15
|
+
export { Win32IpProvider } from "./ip-provider/win32-ip-provider";
|
|
16
|
+
export { FileLock, type FileLockOptions } from "./lock/file-lock";
|
|
17
|
+
export type { Lock } from "./lock/lock";
|
|
18
|
+
export { MemoryLock } from "./lock/memory-lock";
|
|
19
|
+
export { MAX_PORT, OpenPortProvider, type PortRange, type PortSpan, } from "./port-provider/open-port-provider";
|
|
20
|
+
export type { PortProvider } from "./port-provider/port-provider";
|
|
21
|
+
export type { ProcessLike } from "./process-like/process-like";
|
|
22
|
+
export { NodePs, type NodePsOptions } from "./ps/node-ps";
|
|
23
|
+
export type { Child, ListeningEntry, OutputWatcher, ProcessEntry, Ps, SpawnCaptureResult, SpawnOptions, SpawnResult, StartOptions, TerminalChild, TerminalOptions, } from "./ps/ps";
|
|
24
|
+
export { type MakeUndumpableOptions, makeUndumpable, type Undumpable, } from "./undumpable";
|
|
25
|
+
export { type WalkOptions, walk } from "./walk";
|