@reticlehq/server 2.13.0 → 2.14.0
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/SKILL.md +8 -18
- package/bin/reticle.js +3 -0
- package/dist/bridge/auth-failure-reason.js +12 -1
- package/dist/bridge/bridge-security.d.ts +8 -0
- package/dist/bridge/bridge-security.js +6 -1
- package/dist/bridge/bridge.d.ts +3 -0
- package/dist/bridge/bridge.js +23 -1
- package/dist/bridge/bridge.test-harness.d.ts +10 -1
- package/dist/bridge/bridge.test-harness.js +7 -1
- package/dist/bridge/pairing-token.d.ts +17 -0
- package/dist/bridge/pairing-token.js +26 -0
- package/dist/bridge/token-auth.d.ts +7 -0
- package/dist/bridge/token-auth.js +7 -1
- package/dist/capsule/capsule-store.d.ts +4 -4
- package/dist/capsule/capsule.d.ts +1 -1
- package/dist/capsule/capsule.js +3 -3
- package/dist/capsule/causal-summary.d.ts +21 -1
- package/dist/capsule/causal-summary.js +8 -6
- package/dist/capsule/divergence.d.ts +1 -1
- package/dist/capsule/divergence.js +26 -10
- package/dist/chromium-launch-options.d.ts +2 -1
- package/dist/cli/adhoc-verdict.d.ts +58 -0
- package/dist/cli/adhoc-verdict.js +115 -0
- package/dist/cli/chromium-hint.d.ts +18 -4
- package/dist/cli/chromium-hint.js +54 -6
- package/dist/cli/cli-doctor.js +1 -2
- package/dist/cli/cli-flow-commands.d.ts +16 -2
- package/dist/cli/cli-flow-commands.js +28 -9
- package/dist/cli/cli-parse-feedback.js +1 -1
- package/dist/cli/cli-parse.d.ts +2 -1
- package/dist/cli/cli-parse.js +38 -0
- package/dist/cli/cli-port.d.ts +5 -13
- package/dist/cli/cli-port.js +5 -38
- package/dist/cli/cli-update-commands.js +4 -4
- package/dist/cli/cli-verify.d.ts +24 -7
- package/dist/cli/cli-verify.js +87 -13
- package/dist/cli/cloud-keystore.d.ts +2 -1
- package/dist/cli/cloud-login.d.ts +2 -1
- package/dist/cli/cloud-session.d.ts +2 -1
- package/dist/cli/cloud-session.js +1 -1
- package/dist/cli/daemon-start-options.d.ts +2 -1
- package/dist/cli/device-flow.d.ts +2 -2
- package/dist/cli/doctor-daemon-line.d.ts +2 -1
- package/dist/cli/doctor-project-line.d.ts +2 -1
- package/dist/cli/doctor-rows.d.ts +2 -1
- package/dist/cli/drive-attach.d.ts +4 -3
- package/dist/cli/gate-hook-message.d.ts +2 -1
- package/dist/cli/status-next-action.js +10 -11
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +21 -9
- package/dist/cloud/account-state.d.ts +20 -0
- package/dist/cloud/account-state.js +65 -0
- package/dist/cloud/cloud-sync.d.ts +46 -3
- package/dist/cloud/cloud-sync.js +116 -0
- package/dist/cloud/sync-cycle.d.ts +5 -4
- package/dist/cloud/sync-cycle.js +1 -1
- package/dist/cloud/sync-daemon.d.ts +3 -19
- package/dist/cloud/sync-daemon.js +2 -2
- package/dist/crawl/crawl-tools.js +1 -1
- package/dist/crawl/crawl.d.ts +5 -5
- package/dist/crawl/crawl.js +138 -4
- package/dist/daemon/daemon-resilience.d.ts +3 -2
- package/dist/daemon/daemon-resilience.js +43 -4
- package/dist/daemon/daemon-resolve.d.ts +0 -9
- package/dist/daemon/daemon-resolve.js +2 -2
- package/dist/daemon/dev-servers.d.ts +1 -1
- package/dist/daemon/dev-servers.js +1 -1
- package/dist/daemon/loopback-alias.d.ts +2 -1
- package/dist/daemon/startup-failure.d.ts +11 -0
- package/dist/daemon/startup-failure.js +46 -0
- package/dist/events/contradictions.d.ts +10 -16
- package/dist/events/contradictions.js +149 -17
- package/dist/events/declared.d.ts +13 -1
- package/dist/events/declared.js +59 -3
- package/dist/events/echo-mismatch.js +75 -6
- package/dist/events/lineage.d.ts +52 -0
- package/dist/events/lineage.js +122 -0
- package/dist/events/net-evidence.d.ts +21 -0
- package/dist/events/net-evidence.js +81 -0
- package/dist/events/predicate-console.d.ts +13 -0
- package/dist/events/predicate-console.js +138 -0
- package/dist/events/predicate-element.d.ts +13 -0
- package/dist/events/predicate-element.js +214 -0
- package/dist/events/predicate-eval.d.ts +15 -3
- package/dist/events/predicate-eval.js +128 -110
- package/dist/events/predicate-parse.js +34 -1
- package/dist/events/predicate-request-body.d.ts +50 -0
- package/dist/events/predicate-request-body.js +120 -0
- package/dist/events/predicate-route.d.ts +21 -1
- package/dist/events/predicate-route.js +149 -21
- package/dist/events/predicate-schema.d.ts +8 -1
- package/dist/events/predicate-schema.js +34 -0
- package/dist/events/predicate.d.ts +2 -0
- package/dist/events/predicate.js +52 -159
- package/dist/events/split-text-miss.d.ts +6 -4
- package/dist/events/split-text-miss.js +12 -5
- package/dist/flows/affected-tools.js +22 -9
- package/dist/flows/annotate.d.ts +2 -1
- package/dist/flows/annotate.js +19 -1
- package/dist/flows/coverage.d.ts +2 -2
- package/dist/flows/flake.d.ts +3 -3
- package/dist/flows/flow-expect-grammar.d.ts +33 -0
- package/dist/flows/flow-expect-grammar.js +155 -0
- package/dist/flows/flow-replay-run.d.ts +1 -1
- package/dist/flows/flow-replay-run.js +28 -15
- package/dist/flows/flow-replay.d.ts +10 -0
- package/dist/flows/flow-replay.js +57 -22
- package/dist/flows/flow-secret-field.d.ts +14 -0
- package/dist/flows/flow-secret-field.js +22 -0
- package/dist/flows/flow-step-runners.d.ts +1 -0
- package/dist/flows/flow-step-runners.js +91 -34
- package/dist/flows/flow-success.js +22 -0
- package/dist/flows/flow-tools.js +27 -8
- package/dist/flows/flow-upload-resolve.d.ts +23 -0
- package/dist/flows/flow-upload-resolve.js +46 -0
- package/dist/flows/flows.d.ts +15 -0
- package/dist/flows/flows.js +17 -14
- package/dist/flows/git-changed.d.ts +23 -4
- package/dist/flows/git-changed.js +32 -6
- package/dist/flows/heal-run.js +2 -2
- package/dist/flows/predicate-to-expect.d.ts +3 -2
- package/dist/flows/predicate-to-expect.js +11 -5
- package/dist/flows/recording-backtrack.d.ts +24 -0
- package/dist/flows/recording-backtrack.js +73 -0
- package/dist/flows/recordings.d.ts +6 -0
- package/dist/flows/replay-halt.d.ts +26 -0
- package/dist/flows/replay-halt.js +30 -0
- package/dist/flows/replay.d.ts +0 -8
- package/dist/flows/replay.js +15 -3
- package/dist/flows/suite-flakes.d.ts +2 -1
- package/dist/flows/verify-change-tools.js +16 -4
- package/dist/honesty/already-true.d.ts +14 -0
- package/dist/honesty/already-true.js +47 -4
- package/dist/honesty/blind-spots.d.ts +3 -1
- package/dist/honesty/blind-spots.js +24 -1
- package/dist/honesty/body-capture-remedy.d.ts +42 -0
- package/dist/honesty/body-capture-remedy.js +95 -0
- package/dist/honesty/feature-capture.d.ts +3 -2
- package/dist/honesty/feature-capture.js +1 -1
- package/dist/honesty/gap-ledger.d.ts +1 -1
- package/dist/honesty/gap-ledger.js +1 -1
- package/dist/honesty/instrumentation-gaps.d.ts +8 -1
- package/dist/honesty/instrumentation-gaps.js +12 -2
- package/dist/honesty/observability.d.ts +4 -3
- package/dist/honesty/tool-hit-rate.d.ts +3 -2
- package/dist/honesty/uncaptured-bodies.d.ts +3 -1
- package/dist/honesty/uncaptured-bodies.js +6 -2
- package/dist/honesty/unsettled.d.ts +9 -0
- package/dist/honesty/unsettled.js +45 -0
- package/dist/honesty/verified.d.ts +32 -1
- package/dist/honesty/verified.js +37 -10
- package/dist/impact/impact-store.d.ts +5 -14
- package/dist/impact/impact-store.js +49 -6
- package/dist/index.js +1 -1
- package/dist/input/network-detail.d.ts +26 -1
- package/dist/input/network-detail.js +44 -12
- package/dist/input/network-mock-tools.js +24 -17
- package/dist/input/real-input.js +1 -1
- package/dist/input/viewport-tools.js +25 -13
- package/dist/intent/inline-intent.d.ts +0 -10
- package/dist/intent/inline-intent.js +1 -1
- package/dist/intent/intent-shard-store.d.ts +3 -2
- package/dist/intent/intent-shard-store.js +1 -1
- package/dist/intent/intent-shard.d.ts +14 -14
- package/dist/intent/intent-shard.js +4 -4
- package/dist/intent/intent-store.d.ts +1 -1
- package/dist/intent/intent-store.js +1 -1
- package/dist/intent/intent-subject.d.ts +2 -1
- package/dist/intent/open-intents.d.ts +3 -2
- package/dist/license/license.d.ts +4 -4
- package/dist/license/license.js +1 -1
- package/dist/mcp/attach-memory.d.ts +2 -1
- package/dist/mcp/client-identity.d.ts +2 -1
- package/dist/mcp/mcp-outage.d.ts +1 -1
- package/dist/mcp/mcp-outage.js +1 -1
- package/dist/mcp/mcp-proxy.d.ts +3 -1
- package/dist/mcp/mcp-proxy.js +32 -7
- package/dist/mcp/mcp.js +3 -1
- package/dist/mcp/proxy-handshake.d.ts +2 -1
- package/dist/mcp/proxy-idle-exit.d.ts +45 -0
- package/dist/mcp/proxy-idle-exit.js +94 -0
- package/dist/mcp/server-instructions.d.ts +2 -1
- package/dist/memory/project-memory.d.ts +2 -3
- package/dist/memory/project-memory.js +1 -1
- package/dist/oracles/propose-consequences.js +5 -5
- package/dist/oracles/self-instrument.d.ts +2 -2
- package/dist/oracles/self-instrument.js +1 -1
- package/dist/platform.d.ts +3 -5
- package/dist/platform.js +3 -5
- package/dist/pool/browser-pool.d.ts +92 -0
- package/dist/pool/browser-pool.js +119 -5
- package/dist/pool/playwright-launcher.js +29 -2
- package/dist/pool/storage-seed.d.ts +23 -0
- package/dist/pool/storage-seed.js +198 -0
- package/dist/project/artifact-root.d.ts +2 -1
- package/dist/project/memory-fs.d.ts +2 -1
- package/dist/project/reticle-dir.js +1 -1
- package/dist/project/session-root.d.ts +8 -0
- package/dist/project/session-root.js +9 -2
- package/dist/runs/reticle-runner.d.ts +14 -1
- package/dist/runs/reticle-runner.js +39 -2
- package/dist/session/attachment-history.d.ts +2 -1
- package/dist/session/fake-session.d.ts +37 -0
- package/dist/session/fake-session.js +81 -0
- package/dist/session/lease-visibility.d.ts +2 -1
- package/dist/session/live-control-tools.js +6 -0
- package/dist/session/no-session-diagnosis.d.ts +17 -1
- package/dist/session/no-session-diagnosis.js +32 -6
- package/dist/session/no-session-next-action.d.ts +14 -0
- package/dist/session/no-session-next-action.js +18 -0
- package/dist/session/no-session-watch.js +46 -3
- package/dist/session/registered-projects.d.ts +54 -0
- package/dist/session/registered-projects.js +73 -0
- package/dist/session/review-store.d.ts +2 -1
- package/dist/session/session-health.d.ts +62 -1
- package/dist/session/session-health.js +82 -2
- package/dist/session/session-manager.d.ts +11 -1
- package/dist/session/session-manager.js +18 -3
- package/dist/session/session-replaced.d.ts +24 -0
- package/dist/session/session-replaced.js +29 -0
- package/dist/session/session-successor.js +20 -4
- package/dist/session/session.d.ts +13 -5
- package/dist/session/session.js +31 -23
- package/dist/setup/agent-configs.d.ts +3 -2
- package/dist/setup/agent-writer.d.ts +3 -2
- package/dist/setup/approval-migration.d.ts +2 -1
- package/dist/setup/approval-migration.js +1 -1
- package/dist/setup/auto-approve.d.ts +11 -19
- package/dist/setup/auto-approve.js +15 -12
- package/dist/{init → setup}/confirm.js +1 -1
- package/dist/setup/desktop-shape.d.ts +3 -2
- package/dist/setup/dev-server-wait.d.ts +8 -0
- package/dist/setup/dev-server-wait.js +3 -1
- package/dist/setup/drive-agent.d.ts +2 -3
- package/dist/setup/drive-agent.js +1 -1
- package/dist/setup/drive-plan.d.ts +3 -2
- package/dist/setup/ensure-daemon.d.ts +2 -1
- package/dist/setup/existing-app.d.ts +12 -0
- package/dist/setup/existing-app.js +13 -0
- package/dist/setup/init-host.d.ts +11 -0
- package/dist/setup/init-host.js +26 -0
- package/dist/setup/init-runtime.d.ts +4 -10
- package/dist/setup/init-runtime.js +23 -16
- package/dist/setup/license-key.d.ts +2 -1
- package/dist/setup/listeners.d.ts +2 -1
- package/dist/setup/loopback-probe-urls.d.ts +18 -0
- package/dist/setup/loopback-probe-urls.js +52 -0
- package/dist/setup/node-effects.d.ts +3 -0
- package/dist/setup/node-effects.js +26 -11
- package/dist/setup/page-probe.d.ts +5 -0
- package/dist/setup/relaunch.d.ts +2 -1
- package/dist/setup/run-setup.d.ts +5 -1
- package/dist/setup/run-setup.js +155 -48
- package/dist/setup/setup-command.d.ts +3 -2
- package/dist/setup/setup-command.js +8 -0
- package/dist/setup/setup-options.d.ts +5 -3
- package/dist/setup/setup-options.js +3 -2
- package/dist/setup/wait-progress.d.ts +28 -0
- package/dist/setup/wait-progress.js +43 -0
- package/dist/telemetry/app-instrumented.d.ts +2 -1
- package/dist/telemetry/app-instrumented.js +1 -1
- package/dist/telemetry/automation-hint.d.ts +1 -1
- package/dist/telemetry/automation-hint.js +1 -1
- package/dist/telemetry/cli-telemetry.js +1 -1
- package/dist/telemetry/connect-failure.d.ts +1 -1
- package/dist/telemetry/connect-failure.js +1 -1
- package/dist/telemetry/crash-cause.d.ts +3 -2
- package/dist/telemetry/crash-cause.js +1 -1
- package/dist/telemetry/daemon-telemetry.d.ts +3 -2
- package/dist/telemetry/daemon-telemetry.js +1 -1
- package/dist/telemetry/error-class.d.ts +3 -2
- package/dist/telemetry/error-class.js +1 -1
- package/dist/telemetry/feedback-cli.js +1 -1
- package/dist/telemetry/feedback-context.d.ts +3 -2
- package/dist/telemetry/feedback-context.js +5 -4
- package/dist/telemetry/feedback-local.d.ts +3 -2
- package/dist/telemetry/feedback.d.ts +4 -3
- package/dist/telemetry/feedback.js +1 -1
- package/dist/telemetry/git-facts.d.ts +2 -2
- package/dist/telemetry/git-facts.js +1 -1
- package/dist/telemetry/identify.d.ts +1 -1
- package/dist/telemetry/identify.js +1 -1
- package/dist/telemetry/init-telemetry.d.ts +2 -14
- package/dist/telemetry/init-telemetry.js +4 -13
- package/dist/telemetry/install-source.d.ts +7 -13
- package/dist/telemetry/install-source.js +7 -29
- package/dist/telemetry/license-activation.d.ts +3 -2
- package/dist/telemetry/license-activation.js +1 -1
- package/dist/telemetry/machine-snapshot.d.ts +1 -1
- package/dist/telemetry/mcp-connection.js +1 -1
- package/dist/telemetry/project-profile.d.ts +0 -14
- package/dist/telemetry/project-profile.js +1 -1
- package/dist/telemetry/proxy-telemetry.js +1 -1
- package/dist/telemetry/session-metrics.d.ts +1 -1
- package/dist/telemetry/session-metrics.js +1 -1
- package/dist/telemetry/telemetry.d.ts +1 -17
- package/dist/telemetry/telemetry.js +4 -4
- package/dist/telemetry/tool-refused.d.ts +1 -1
- package/dist/telemetry/tool-refused.js +1 -1
- package/dist/tools/act-observation.d.ts +3 -2
- package/dist/tools/act-preflight.js +8 -3
- package/dist/tools/act-target.d.ts +4 -0
- package/dist/tools/act-target.js +14 -5
- package/dist/tools/act-tools.d.ts +0 -2
- package/dist/tools/act-tools.js +45 -15
- package/dist/tools/assert-source.d.ts +30 -0
- package/dist/tools/assert-source.js +21 -0
- package/dist/tools/assert-verdict.d.ts +1 -1
- package/dist/tools/assert-verdict.js +14 -4
- package/dist/tools/browser-tools.js +28 -8
- package/dist/tools/complete-snapshot.d.ts +3 -2
- package/dist/tools/dynamic-tools.js +8 -0
- package/dist/tools/error-recovery.d.ts +10 -0
- package/dist/tools/error-recovery.js +23 -0
- package/dist/tools/feedback-tools.js +1 -1
- package/dist/tools/invoke-tool.js +2 -0
- package/dist/tools/lease-tools.d.ts +48 -20
- package/dist/tools/lease-tools.js +311 -76
- package/dist/tools/lineage-tools.d.ts +14 -0
- package/dist/tools/lineage-tools.js +64 -0
- package/dist/tools/merge-tools.js +1 -3
- package/dist/tools/navigate-arrival.d.ts +45 -1
- package/dist/tools/navigate-arrival.js +39 -6
- package/dist/tools/navigate-result.d.ts +8 -1
- package/dist/tools/navigate-result.js +14 -4
- package/dist/tools/numeric-bounds.d.ts +0 -11
- package/dist/tools/numeric-bounds.js +4 -4
- package/dist/tools/observe-tools.js +22 -26
- package/dist/tools/observed-nothing.d.ts +9 -0
- package/dist/tools/observed-nothing.js +2 -1
- package/dist/tools/read-tools.js +12 -17
- package/dist/tools/real-input-attempt.d.ts +14 -6
- package/dist/tools/real-input-attempt.js +75 -18
- package/dist/tools/reconcile-tools.js +2 -1
- package/dist/tools/reload-result.d.ts +6 -1
- package/dist/tools/reload-result.js +7 -2
- package/dist/tools/resolve-target.d.ts +7 -1
- package/dist/tools/resolve-target.js +72 -9
- package/dist/tools/settle-in-flight.d.ts +1 -1
- package/dist/tools/settle-in-flight.js +9 -2
- package/dist/tools/snapshot-delta.d.ts +24 -1
- package/dist/tools/snapshot-delta.js +66 -7
- package/dist/tools/tool-names.d.ts +1 -0
- package/dist/tools/tool-names.js +1 -0
- package/dist/tools/tool-surface.js +20 -2
- package/dist/tools/tools.js +120 -11
- package/dist/tools/verify-next-baton.d.ts +2 -1
- package/dist/update/sdk-sync.d.ts +1 -1
- package/dist/update/sdk-sync.js +1 -1
- package/dist/update/updater.js +1 -1
- package/dist/version/sdk-fix.d.ts +2 -1
- package/dist/version/version-skew.d.ts +0 -8
- package/dist/version/version-skew.js +1 -1
- package/docs/README.md +8 -6
- package/docs/actions.mdx +1 -1
- package/docs/agent-cheatsheet.md +4 -2
- package/docs/architecture.md +1 -1
- package/docs/cli/mcp.mdx +3 -1
- package/docs/cli/watch.mdx +1 -1
- package/docs/cli.mdx +1 -1
- package/docs/desktop.mdx +1 -1
- package/docs/docs.json +8 -3
- package/docs/faq.mdx +9 -0
- package/docs/first-drive.md +136 -0
- package/docs/frameworks.mdx +29 -7
- package/docs/gate-plan.md +2 -2
- package/docs/gates.md +19 -11
- package/docs/getting-started.md +7 -1
- package/docs/http-transport.md +164 -0
- package/docs/index.mdx +5 -3
- package/docs/install-manual.mdx +1 -1
- package/docs/packages/tauri.mdx +1 -1
- package/docs/packages.mdx +15 -3
- package/docs/platform-integration.md +1 -1
- package/docs/predicates.mdx +2 -0
- package/docs/system-map.md +2 -2
- package/docs/telemetry-contract.md +4 -4
- package/docs/telemetry-events.mdx +1 -1
- package/docs/telemetry.md +3 -3
- package/docs/tools-navigate.mdx +14 -6
- package/docs/usage.md +4 -4
- package/package.json +7 -4
- package/dist/init/agent-rules.d.ts +0 -116
- package/dist/init/agent-rules.js +0 -279
- package/dist/init/app-choice.d.ts +0 -20
- package/dist/init/app-choice.js +0 -25
- package/dist/init/astro-host.d.ts +0 -21
- package/dist/init/astro-host.js +0 -27
- package/dist/init/astro-patch.d.ts +0 -33
- package/dist/init/astro-patch.js +0 -300
- package/dist/init/capabilities.d.ts +0 -40
- package/dist/init/capabilities.js +0 -150
- package/dist/init/closing-hint.d.ts +0 -36
- package/dist/init/closing-hint.js +0 -120
- package/dist/init/connect-steps.d.ts +0 -2
- package/dist/init/connect-steps.js +0 -50
- package/dist/init/cra.d.ts +0 -79
- package/dist/init/cra.js +0 -178
- package/dist/init/csp-check.d.ts +0 -38
- package/dist/init/csp-check.js +0 -107
- package/dist/init/csp-doctor.d.ts +0 -32
- package/dist/init/csp-doctor.js +0 -54
- package/dist/init/desktop-doctor.d.ts +0 -41
- package/dist/init/desktop-doctor.js +0 -198
- package/dist/init/detect.d.ts +0 -96
- package/dist/init/detect.js +0 -209
- package/dist/init/dev-script.d.ts +0 -50
- package/dist/init/dev-script.js +0 -66
- package/dist/init/format-generated.d.ts +0 -18
- package/dist/init/format-generated.js +0 -39
- package/dist/init/install-hint.d.ts +0 -9
- package/dist/init/install-hint.js +0 -29
- package/dist/init/mcp-clients.d.ts +0 -89
- package/dist/init/mcp-clients.js +0 -299
- package/dist/init/mcp-registered.d.ts +0 -12
- package/dist/init/mcp-registered.js +0 -14
- package/dist/init/mcp.d.ts +0 -89
- package/dist/init/mcp.js +0 -129
- package/dist/init/next-patch.d.ts +0 -39
- package/dist/init/next-patch.js +0 -196
- package/dist/init/node-io.d.ts +0 -7
- package/dist/init/node-io.js +0 -117
- package/dist/init/non-js-project.d.ts +0 -27
- package/dist/init/non-js-project.js +0 -84
- package/dist/init/patch-kind.d.ts +0 -20
- package/dist/init/patch-kind.js +0 -10
- package/dist/init/plan-framework.d.ts +0 -64
- package/dist/init/plan-framework.js +0 -565
- package/dist/init/plan.d.ts +0 -242
- package/dist/init/plan.js +0 -703
- package/dist/init/preflight.d.ts +0 -28
- package/dist/init/preflight.js +0 -38
- package/dist/init/project-id.d.ts +0 -12
- package/dist/init/project-id.js +0 -25
- package/dist/init/refresh-rules.d.ts +0 -39
- package/dist/init/refresh-rules.js +0 -51
- package/dist/init/run.d.ts +0 -117
- package/dist/init/run.js +0 -806
- package/dist/init/slash-command.d.ts +0 -27
- package/dist/init/slash-command.js +0 -132
- package/dist/init/snippets.d.ts +0 -134
- package/dist/init/snippets.js +0 -572
- package/dist/init/vite-config.d.ts +0 -18
- package/dist/init/vite-config.js +0 -114
- package/dist/init/windows-quote.d.ts +0 -38
- package/dist/init/windows-quote.js +0 -70
- package/dist/init/workspace-apps.d.ts +0 -30
- package/dist/init/workspace-apps.js +0 -178
- package/dist/project/remember-project.d.ts +0 -24
- package/dist/project/remember-project.js +0 -40
- /package/dist/{init → setup}/confirm.d.ts +0 -0
package/dist/init/plan.d.ts
DELETED
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure assembly of the `reticle init` action plan. Given the detection result and the relevant file
|
|
3
|
-
* contents, produce an ordered list of steps — each marked apply / manual / already / skip. The
|
|
4
|
-
* runner performs the `write` side-effects; this module decides *what* should happen.
|
|
5
|
-
*/
|
|
6
|
-
import { Framework, UiLibrary, type Detection } from './detect.js';
|
|
7
|
-
import type { FoundStore } from './capabilities.js';
|
|
8
|
-
import { McpClient } from './mcp-clients.js';
|
|
9
|
-
/**
|
|
10
|
-
* The dev-dependencies `reticle init` installs — kit (or sensor) first, build plugin next.
|
|
11
|
-
*
|
|
12
|
-
* `uiLibrary` matters because the framework does not always name the renderer. The rule below was
|
|
13
|
-
* already written for Nuxt, correctly, and applied only there: a Vue app on plain Vite is
|
|
14
|
-
* `Framework.VITE` and a SvelteKit app renders Svelte, and both were being handed the React kit
|
|
15
|
-
* right after `init` had detected the real UI library and said so on screen.
|
|
16
|
-
*/
|
|
17
|
-
export declare function frameworkPackages(framework: Framework, uiLibrary?: UiLibrary): readonly string[];
|
|
18
|
-
/** Exported so the init telemetry can tell an MCP-registration failure from a dependency install. */
|
|
19
|
-
export declare const MCP_TARGET = "global (claude user scope)";
|
|
20
|
-
/** The step that runs the package manager — the other thing that commonly fails on a user's machine. */
|
|
21
|
-
export declare const DEPS_TARGET = "package.json";
|
|
22
|
-
export declare const RETICLE_CONFIG_FILE = ".reticle.json";
|
|
23
|
-
export declare const StepStatus: {
|
|
24
|
-
readonly APPLY: "apply";
|
|
25
|
-
readonly MANUAL: "manual";
|
|
26
|
-
readonly ALREADY: "already";
|
|
27
|
-
readonly SKIP: "skip";
|
|
28
|
-
/**
|
|
29
|
-
* Something the user should KNOW, not something they must DO. The UNVERIFIED lines are the case:
|
|
30
|
-
* a Preact or SvelteKit app is wired and working, it just isn't covered by a gate. Reporting those
|
|
31
|
-
* as `manual` made "steps left to do" a number that could never reach zero, and made a release gate
|
|
32
|
-
* read two regressions that were not regressions.
|
|
33
|
-
*/
|
|
34
|
-
readonly NOTICE: "notice";
|
|
35
|
-
};
|
|
36
|
-
export type StepStatus = (typeof StepStatus)[keyof typeof StepStatus];
|
|
37
|
-
export interface Step {
|
|
38
|
-
title: string;
|
|
39
|
-
target: string;
|
|
40
|
-
status: StepStatus;
|
|
41
|
-
detail: string;
|
|
42
|
-
/** Present only when status is APPLY and a file must be written. */
|
|
43
|
-
write?: {
|
|
44
|
-
path: string;
|
|
45
|
-
content: string;
|
|
46
|
-
};
|
|
47
|
-
/** Present only when status is APPLY and a subprocess must run (the dependency install). */
|
|
48
|
-
exec?: {
|
|
49
|
-
command: string;
|
|
50
|
-
args: string[];
|
|
51
|
-
fallback: string;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* A second, weaker attempt to run when `exec` fails, with what to tell the user if it succeeds.
|
|
55
|
-
*
|
|
56
|
-
* The pinned install is refused outright by pnpm's `minimumReleaseAge` for as long as its window
|
|
57
|
-
* lasts — so for ~48 hours after every release, a project with that setting could not install
|
|
58
|
-
* Reticle at all. An unpinned install still works there (it resolves the newest MATURE version), so
|
|
59
|
-
* the fallback trades an exact version for a working install and says which it did. It must never
|
|
60
|
-
* be silent: an older SDK against a newer daemon is the skew this pin exists to prevent.
|
|
61
|
-
*/
|
|
62
|
-
retry?: {
|
|
63
|
-
command: string;
|
|
64
|
-
args: string[];
|
|
65
|
-
note: string;
|
|
66
|
-
};
|
|
67
|
-
/**
|
|
68
|
-
* This step wires the app to a package the install step provides. If that install fails, applying
|
|
69
|
-
* it anyway leaves the app importing a module that is not there — `next.config.ts` importing
|
|
70
|
-
* `@reticlehq/next` took a dev server down exactly this way. Installing Reticle must never be the
|
|
71
|
-
* reason an app stops booting.
|
|
72
|
-
*/
|
|
73
|
-
dependsOnInstall?: boolean;
|
|
74
|
-
}
|
|
75
|
-
export interface Plan {
|
|
76
|
-
framework: Framework;
|
|
77
|
-
/**
|
|
78
|
-
* The renderer this app actually uses, carried so every consumer agrees on WHICH packages the
|
|
79
|
-
* plan installed. The retry guard checks node_modules for exactly those names; without this it
|
|
80
|
-
* looked for `@reticlehq/react` in a Vue app that had correctly been given the sensor, decided the
|
|
81
|
-
* install had failed, and skipped every wiring step on the retry.
|
|
82
|
-
*/
|
|
83
|
-
uiLibrary: UiLibrary;
|
|
84
|
-
steps: Step[];
|
|
85
|
-
}
|
|
86
|
-
export interface PlanInput {
|
|
87
|
-
detection: Detection;
|
|
88
|
-
/**
|
|
89
|
-
* Write `captureNetworkBodies: true` into the app's config. Off unless the caller asked (#705).
|
|
90
|
-
*
|
|
91
|
-
* Optional so every existing caller and test keeps the safe default without naming it — the one
|
|
92
|
-
* direction a default about somebody else's data should be wrong in.
|
|
93
|
-
*/
|
|
94
|
-
captureBodies?: boolean | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* The CSP-bearing files this project actually has, keyed by path — read once in `gatherPlanInput`.
|
|
97
|
-
*
|
|
98
|
-
* Pre-read rather than given a reader, because `PlanInput` is the pure input to a pure planner and
|
|
99
|
-
* handing it an io would let any later step reach the disk from inside `buildPlan`.
|
|
100
|
-
*/
|
|
101
|
-
cspSources?: Readonly<Record<string, string | undefined>> | undefined;
|
|
102
|
-
/** Whether the `claude` CLI is installed (so we can register the MCP server globally). */
|
|
103
|
-
claudeCli: boolean;
|
|
104
|
-
/** Whether an `reticle` MCP server is already registered with Claude (any scope) — idempotency. */
|
|
105
|
-
mcpExists: boolean;
|
|
106
|
-
/** `process.platform`. Injected so this module stays pure. Windows is the only branch. */
|
|
107
|
-
platform?: string;
|
|
108
|
-
/** Whether THIS project has a .cursor/ directory — the signal that Cursor works on this repo. */
|
|
109
|
-
cursorProjectPresent?: boolean | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* Every OTHER MCP client detected on this machine, with its config path and current content.
|
|
112
|
-
*
|
|
113
|
-
* Claude Code and Cursor keep their own steps — Claude registers through its CLI, and Cursor's
|
|
114
|
-
* predates this. Everything else is uniform: read the file, merge, write.
|
|
115
|
-
*/
|
|
116
|
-
detectedClients?: readonly {
|
|
117
|
-
id: McpClient;
|
|
118
|
-
configPath: string;
|
|
119
|
-
existing: string | null;
|
|
120
|
-
}[] | undefined;
|
|
121
|
-
/** Discovered Vite config: its path + source, or null if none found. */
|
|
122
|
-
viteConfig: {
|
|
123
|
-
path: string;
|
|
124
|
-
source: string;
|
|
125
|
-
} | null;
|
|
126
|
-
/** Discovered Astro config: its path + source, or null if none found. */
|
|
127
|
-
astroConfig?: {
|
|
128
|
-
path: string;
|
|
129
|
-
source: string;
|
|
130
|
-
} | null | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* The single layout to instrument, or null when the choice is not obvious.
|
|
133
|
-
*
|
|
134
|
-
* WHICH page or layout to instrument is a real decision — so `init` only makes it when there is
|
|
135
|
-
* exactly one candidate. Zero or several falls back to the printed recipe rather than guessing at
|
|
136
|
-
* the file every page of the user's site inherits from.
|
|
137
|
-
*/
|
|
138
|
-
astroLayout?: {
|
|
139
|
-
path: string;
|
|
140
|
-
source: string;
|
|
141
|
-
} | null | undefined;
|
|
142
|
-
/**
|
|
143
|
-
* Existing `src/env.d.ts` content, when present — where the Vite-define ambient declarations go
|
|
144
|
-
* so `astro check` can see `__RETICLE_TOKEN__` / `__RETICLE_ROOT__` (#677).
|
|
145
|
-
*/
|
|
146
|
-
astroEnvDts?: string | null | undefined;
|
|
147
|
-
/** Discovered Next config filename (e.g. 'next.config.mjs'), or null. */
|
|
148
|
-
nextConfigFile: string | null;
|
|
149
|
-
/** Source of that Next config, so the export can be wrapped in withReticle. */
|
|
150
|
-
nextConfigSource?: string | null | undefined;
|
|
151
|
-
/** Discovered Next root layout: its path + source, or null (App Router only). */
|
|
152
|
-
nextLayout?: {
|
|
153
|
-
path: string;
|
|
154
|
-
source: string;
|
|
155
|
-
} | null | undefined;
|
|
156
|
-
/** Where the dev-only connect component goes — never inside `pages/`, which routes on presence. */
|
|
157
|
-
nextReticleDevPath?: string | undefined;
|
|
158
|
-
/** What the mount file should import — a sibling for App Router, `../components/…` for Pages. */
|
|
159
|
-
nextReticleDevImport?: string | undefined;
|
|
160
|
-
/** Whether the ReticleDev component file already exists. */
|
|
161
|
-
nextReticleDevExists: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* The existing ReticleDev component's source, when there is one.
|
|
164
|
-
*
|
|
165
|
-
* Read so an install predating daemon discovery can be told apart from a current one. Undefined
|
|
166
|
-
* means NOT READ, and an unread file is reported as already-wired rather than as stale: inventing
|
|
167
|
-
* work from missing information is how a plan grows steps that can never be completed.
|
|
168
|
-
*/
|
|
169
|
-
nextReticleDevSource?: string | null | undefined;
|
|
170
|
-
/** `data-testid` values scanned from the app's source, for the generated capabilities block. */
|
|
171
|
-
testids?: readonly string[] | undefined;
|
|
172
|
-
/** Ready-to-uncomment `registerStore` lines for the state libraries the app actually depends on. */
|
|
173
|
-
storeHints?: readonly string[] | undefined;
|
|
174
|
-
/** Store instances found in the app's own source — imported and registered outright, not hinted. */
|
|
175
|
-
foundStores?: readonly FoundStore[] | undefined;
|
|
176
|
-
/** The same stores, with specifiers resolved from Next's dev-module directory instead of `src/`. */
|
|
177
|
-
nextFoundStores?: readonly FoundStore[] | undefined;
|
|
178
|
-
/** Whether src/reticle-dev.ts already exists — it is the one generated file users are meant to edit. */
|
|
179
|
-
viteDevModuleExists?: boolean | undefined;
|
|
180
|
-
/** Whether src/hooks.client.ts already exists (SvelteKit idempotency). */
|
|
181
|
-
svelteKitHooksExists?: boolean;
|
|
182
|
-
/** CRA's bundled entry (src/index.tsx or .js) — where the connect import has to go. */
|
|
183
|
-
craEntry?: {
|
|
184
|
-
path: string;
|
|
185
|
-
source: string;
|
|
186
|
-
} | null;
|
|
187
|
-
/** Existing .env.development.local, so an unrelated variable in it survives. */
|
|
188
|
-
craEnv?: string | null;
|
|
189
|
-
/** The daemon's pairing token, inlined for CRA through the one channel it supports. */
|
|
190
|
-
pairingToken?: string;
|
|
191
|
-
/** Whether .reticle.json already exists in the project root (idempotency). */
|
|
192
|
-
reticleConfigExists?: boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Its CONTENT, so an existing config can be checked instead of trusted.
|
|
195
|
-
*
|
|
196
|
-
* Existence alone said "a file is present" and was reported as "this is configured correctly" —
|
|
197
|
-
* see reticleConfigStep for the port that survived every re-run because of it.
|
|
198
|
-
*/
|
|
199
|
-
reticleConfigSource?: string | null | undefined;
|
|
200
|
-
/** Current project-root CLAUDE.md content (for the idempotent agent-rule merge), or null/undefined. */
|
|
201
|
-
claudeMdContent?: string | null | undefined;
|
|
202
|
-
/** Current project-root AGENTS.md content (the cross-agent rule), or null/undefined. */
|
|
203
|
-
agentsMdContent?: string | null | undefined;
|
|
204
|
-
/** Current project-root RETICLE.md content (the full rules), or null when absent. */
|
|
205
|
-
reticleMdContent?: string | null | undefined;
|
|
206
|
-
/**
|
|
207
|
-
* Current .cursor/rules/reticle.mdc content, or null when absent.
|
|
208
|
-
*
|
|
209
|
-
* CONTENT, not existence. Gating on the file merely being there froze a Cursor project's rule at
|
|
210
|
-
* whatever release wrote it — so the CLAUDE.md path refreshed itself while the Cursor one never
|
|
211
|
-
* could, and a rule added later (`version_skew`) never reached a Cursor-only project at all.
|
|
212
|
-
*/
|
|
213
|
-
cursorRuleContent?: string | null | undefined;
|
|
214
|
-
/** Current .claude/commands/reticle.md content, or null when absent (slash-command idempotency). */
|
|
215
|
-
claudeCommandContent?: string | null | undefined;
|
|
216
|
-
/** Current .cursor/commands/reticle.md content, or null when absent. */
|
|
217
|
-
cursorCommandContent?: string | null | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* Absolute directory the AGENT runs in, when that is not the app's directory.
|
|
220
|
-
*
|
|
221
|
-
* The rule and command files are read by the agent, not by the app, so a monorepo whose app is a
|
|
222
|
-
* directory down must still get its `/reticle` where the human's session actually stands. Absent
|
|
223
|
-
* (the single-package case) leaves every path project-relative exactly as before.
|
|
224
|
-
*/
|
|
225
|
-
agentFileRoot?: string | undefined;
|
|
226
|
-
/**
|
|
227
|
-
* Content of the `.reticle.json` already sitting at that agent root, or null/undefined when there
|
|
228
|
-
* is none. Content rather than existence, for the reason `reticleConfigSource` is: a root config
|
|
229
|
-
* that disagrees with the app's is worse than no root config, and only reading it can tell.
|
|
230
|
-
*/
|
|
231
|
-
agentRootConfigSource?: string | null | undefined;
|
|
232
|
-
options: {
|
|
233
|
-
port: number | undefined;
|
|
234
|
-
mcp: boolean;
|
|
235
|
-
install: boolean;
|
|
236
|
-
/** Stable project identity derived at init (package.json name + root). Baked into snippets/.reticle.json. */
|
|
237
|
-
projectId?: string;
|
|
238
|
-
/** The CLI's own version, pinned onto the SDK install so a stale registry cache cannot skew it. */
|
|
239
|
-
sdkVersion?: string;
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
export declare function buildPlan(input: PlanInput): Plan;
|