elanous 0.3.6 → 0.3.10
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/apps/pwa/scripts/publish-static-generation.ts +80 -0
- package/apps/pwa/src/lib/mini-board-projection.ts +129 -0
- package/apps/pwa/src/lib/provenance-badge.ts +26 -0
- package/apps/pwa/src/lib/task-card-model.ts +73 -0
- package/catalog/sim-world-device-catalog-fragments/README.md +16 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-CONTRACT-SECRET-ENTROPY-TS.json +24 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-KILL-SWITCH-WORLD-TS.json +20 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-SCRATCH-BOOTSTRAP-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-APP-UPGRADE-PATH-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ARG-MACRO-CANVAS-SIM-TS.json +16 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ASIDE-FEEDBACK-LOOP-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-AUTHOR-REVIEWER-PRECHECK-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BACKEND-TIER-DEVICE-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BOOT-DAEMON-TOOLS-PTY-SHELL-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BROWSER-HAND-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-BURST-READY-LADDER-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CENSUS-ORACLE-AXIS-WORLD-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CHAIN-LAND-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLASSIC-TUI-SEAT-SCENARIOS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CLI-CONFIG-AUDIT-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-CODEX-WIRE-CAPTURE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-COMPUTER-USE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DASHBOARD-EVENT-LOOP-STALL-MONITOR-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-CATALOG-SNAPSHOT-FRAGMENTS-TS.json +12 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DEVICE-FIDELITY-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-DRAFT-INVENTORY-BUILDER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-NIGHTLY-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EDGE-CREATOR-TS.json +18 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-EVENT-MONKEY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ABSORB-INGEST-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ADB-PHONE-WORLD-TS.json +15 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-AGENT-HOOK-HOST-TS.json +6 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ANDROID-CLIENT-TS.json +10 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-AUTH-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-BACKUP-WORLD-TS.json +14 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DB-WORLD-TS.json +25 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-DRIVE-WORLD-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-FAILURES-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-HOST-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-REALTIME-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-CONCURRENT-WRITER-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-SOURCE-WORLD-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-STORAGE-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-APP-TRAFFIC-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-ARGS-SIM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BIN-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-BROWSER-PAGE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOCK-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-BILLING-WORLD-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-CLOUD-VM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DATA-GUARD-BOUNDARY-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-DNS-CERT-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-ELEVENLABS-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FEEDS-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FETCH-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-FLEET-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-GOOGLE-DRIVE-WORLD-TS.json +23 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HERDR-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-HIGGSFIELD-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-KUBECTL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LAND-QUEUE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LINEAR-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-LLM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MEMBER-OIDC-WORLD-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-MOBILE-TOOLCHAIN-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-NEXUS-BOARD-SERVER-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PAYMENT-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-PS-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-RELAY-WORLD-TS.json +20 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-SSH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-STT-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-OUTBOUND-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TELEGRAM-VIDEO-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAKE-TEMP-CLEANUP-TS.json +21 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-CRED-EXPIRY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-GLM-NO-CREDENTIAL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEEDS-HUMAN-REASON-REPAIR-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXTMOVE-DISPATCH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-NEXUS-STALL-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CHILD-RESULT-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-CODEX-503-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-DEATH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POD-REUSE-RESIDUE-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-POOL-CAP-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SCOPE-ESCAPE-LIFT-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-SQLITE-BUSY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FAULT-TUI-400-AUTOHEAL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FIXTURES-GIT-WORKTREE-ACCEL-LINUX-JSON.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-FLUTTER-DEPLOY-JOURNEY-TS.json +10 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-LAYERED-DELTA-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-IMAGE-PREFLIGHT-RUNTIME-IDENTITY-FLOW-SIM-TS.json +13 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-ROSTER-SECOND-POOL-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-SHARD-HOST-REROUTE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GATE-STEADY-STATE-PROOF-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GIT-PUSH-TIMEOUT-PARTIAL-OUTCOME-REMOTE-VERIFY-TS.json +22 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GOAL-INTERIM-TRACE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-DIFF-APPLY-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-ENGINE-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-EVENT-ENTRY-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-PLACEMENT-LEASE-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUN-LIFECYCLE-WORLD-TS.json +7 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-RUNTIME-OVERLAY-EVENT-PATH-WORKER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRAPH-TRIGGER-HOOK-DEVICE-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-CHAOS-DRIVER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-LEDGER-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-GRID-READY-TIERS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEADLESS-TUI-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HEAL-REAUTHOR-MATERIALIZED-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HOTSPOT-FILE-LEASE-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-HQ-MOVE-SIM-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-539-FILE-ADOPTION-SIM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IN-PROCESS-CLI-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INPUT-HISTORY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INSTALL-CONSENT-DEVICE-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-INTERACTION-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-IOS-CHAT-EDGE-ADAPTER-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-LINEAR-SECRETARY-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MAPREDUCE-MULTIHOST-SIM-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-AUTHORING-FIRST-RUN-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-DEVICE-REQUESTS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-JSON.json +19 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SCENARIO-CATALOG-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-FRAME-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MOCK-SEAT-PTY-SEQUENCE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-ACTOR-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-MULTI-TENANT-RELAY-WORLD-TS.json +20 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NETWORK-SANDBOX-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-CORE-INPUT-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-ROUTE-DEVICE-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NEXT-TUI-SEAT-SCENARIOS-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-NL-SCENARIO-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-ONBOARDING-FIRST-RUN-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-OUTBOUND-GUARD-SIM-TS.json +7 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-RELEASE-OBSERVE-ROUTE-WORLD-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PLUGIN-YAML-GEN-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-FEDERATION-SIM-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-PHASE-PREWARM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-MATCH-BY-KIND-SIM-TS.json +25 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-SHARED-FAKE-BOUNDARY-TS.json +26 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-POD-REUSE-WORLD-TS.json +27 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-AUTOREPAIR-DEVICE-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PR-LAND-DRIFT-GATE-DEVICE-TS.json +26 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PTY-KEY-MODIFIERS-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PUBLIC-AUTH-PROVIDER-CLOUD-VM-SIM-TS.json +7 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-PROVENANCE-BADGE-WORLD-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-PWA-RETAINED-ROUTES-WORLD-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-READINESS-COUNTDOWN-TS.json +24 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-REAL-TARGET-SANDBOX-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-EVENT-TRACE-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-PUBLISH-DEVICES-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SAME-VERSION-RUN-ADOPTION-SIM-TS.json +15 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-SEAT-GUARD-CHILD-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RELEASE-SIM-RIG-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RENDER-FRAME-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESEARCH-DECISION-CHAIN-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RESUME-PICKER-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-EVENT-RESPONSE-SCORECARD-TS.json +28 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-RLA-MACROPHAGE-HEAL-TIMEOUT-STALE-OUTPUT-SIM-TS.json +4 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SAFE-PUBLIC-COPY-PUBLISH-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SCENARIO-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SECRET-CANARY-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SEMINAR-REHEARSAL-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SERVICE-KEY-SETUP-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SESSION-ID-SEED-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-COVERAGE-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SIM-RECEIPT-TS.json +8 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SKILLS-TOOLS-SHELL-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SLASH-MENU-FRAMES-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SMART-MERGE-WORLD-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-SUBAGENT-TOOLS-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TA-LAND-COUNT-DISPATCHER-SIM-TS.json +17 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-PARENT-HOST-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-AGENT-REJUDGE-ON-HEAD-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TASK-ORCHESTRATOR-SURFACES-SELF-IMPLEMENT-POD-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REMOTE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TEMP-GIT-REPO-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TERM-SLASH-DEVICE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ASYNC-FAIL-LOOP-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TOOL-ROUTER-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-DECISION-SIM-TS.json +18 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TRAIN-MANAGER-WORLD-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TTY-FOREGROUND-STEAL-CHILD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-STATES-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-TURN-THROW-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-DEFAULT-SPARSE-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-USER-CONFIG-TUI-DIET-SIM-TS.json +11 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SIM-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-POOL-REUSE-SWITCH-SIM-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WARM-SI-REUSE-SIM-TS.json +29 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-CHAOS-RUNTIME-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-HOST-CHAOS-TS.json +30 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-REGRESSION-SUITE-TS.json +9 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SCHEMA-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-SNAPSHOT-TS.json +31 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-STORE-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-TS.json +33 -0
- package/catalog/sim-world-device-catalog-fragments/devices/MD-UX-SIM-WORLD-WATCH-TS.json +27 -0
- package/catalog/sim-world-device-catalog-fragments/metadata.json +3 -0
- package/catalog/ux-sim/fixtures/adaptive-graph-v1.yaml +18 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/README.md +15 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00010--scripts-tui-sim-bench-ts-adf79d7e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00020--scripts-tui-sim-ts-c9bd7af7.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00030--scripts-ux-sim-ts-e5b4dead.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00040--scripts-voice-dogfood-sim-ts-0e5441cd.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00050--scripts-voice-pwa-sim-ts-831ba2c9.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00060--scripts-release-loop-gate-autoheal-sim-evidence--1dfbf6e9.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00070--scripts-release-loop-gate-node-sim-ts-bb18473a.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00080--scripts-release-loop-gate-bisect-ts-0a24b781.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00090--scripts-release-loop-gate-bisect-test-ts-93276556.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00100--scripts-release-loop-gate-bisect-sidecar-ts-8537597a.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00110--scripts-release-loop-tui-sim-node-ts-81456cc3.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00120--scripts-lib-pwa-scenarios-acp-replay-ts-f5b22233.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00130--scripts-lib-pwa-scenarios-cdp-driver-ts-f888fe21.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00140--scripts-lib-pwa-scenarios-runner-ts-482bae4e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00150--scripts-lib-pwa-scenarios-scenarios-ts-b6642642.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00160--test-fixtures-acp-initialize-stub-ts-dda92993.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00170--test-fixtures-mock-lsp-server-ts-5607efec.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00180--test-helpers-intake-fake-repo-ts-313e4fab.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00190--test-ux-sim-aimock-local-ts-346e03cb.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00200--scenarios-dashboard-default-yaml-f2d56850.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00210--scenarios-heap-graph-yaml-d9d0d2a9.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00220--scenarios-iul-timeline-viewer-yaml-449a5fc2.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00230--scenarios-ux-sim-provider-4xx-no-provider-yaml-0d620991.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00240--scenarios-ux-sim-release-sim-rig-yaml-3ec55c14.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00250--tests-scenarios-4provider-feature-impl-yaml-d76ada66.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00260--tests-scenarios-capability-level-11-yaml-2f16c5ed.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00270--tests-scenarios-codex-baseline-yaml-8a635e8e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00280--tests-scenarios-codex-opus-2way-yaml-5e0502d6.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00290--tests-scenarios-codex-variance-w5f-yaml-4ec32047.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00300--tests-scenarios-multi-turn-cache-rate-yaml-eb8a6f86.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00310--tests-scenarios-repl-rotation-chain-yaml-6e9a6646.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00320--tests-scenarios-repl-self-debug-arc-yaml-549e12af.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00330--tests-scenarios-repl-tool-doom-recovery-yaml-06a7412a.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00340--src-playground-scenario-default-scenarios-ts-45b5ee3e.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00350--src-playground-scenario-fake-harness-ts-870235f6.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00360--src-showroom-outbound-channels-stubs-ts-d2dee3b2.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00370--test-telegram-surface-hitl-test-ts-1a40e9ff.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00380--src-ux-sim-author-reviewer-precheck-device-ts-92e65331.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00390--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00400--src-ux-sim-seminar-rehearsal-test-ts-b7d04c41.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00410--src-ux-sim-aside-feedback-loop-ts-bc55d132.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00420--src-release-loop-macrophage-heal-ts-30c76fcb.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00430--src-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00440--src-ux-sim-pr-land-drift-gate-device-ts-7046aa17.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00450--src-ux-sim-app-contract-secret-entropy-ts-096d587b.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00460--src-ux-sim-app-contract-secret-entropy-test-ts-20663c84.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00470--src-ux-sim-readiness-countdown-ts-7955f662.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00480--src-ux-sim-readiness-countdown-test-ts-74503e51.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00490--src-ux-sim-fake-app-drive-world-ts-0628e0fc.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00500--src-ux-sim-fake-app-drive-world-test-ts-5e5ccb70.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00510--src-ux-sim-fake-app-source-concurrent-writer-ts-d552ec7a.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00520--src-ux-sim-fake-app-source-world-ts-8decb8fc.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00530--src-ux-sim-fake-app-source-world-test-ts-62c86a9c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00540--src-ux-sim-fake-google-drive-world-ts-ea35958c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00550--src-ux-sim-fake-google-drive-world-test-ts-b1893a04.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00560--src-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-bfd2b9a0.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00570--src-ux-sim-fake-temp-cleanup-ts-78630a27.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00580--src-ux-sim-fake-temp-cleanup-test-ts-d0ed21bc.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00590--src-ux-sim-release-same-version-run-adoption-sim-ts-0a0b3e7e.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00600--src-ux-sim-release-same-version-run-adoption-sim-test-ts-e50288fb.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00610--src-ux-sim-graph-resume-any-entry-ts-f4e753c4.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00620--src-ux-sim-graph-resume-any-entry-test-ts-63d01d16.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00630--src-ux-sim-graph-compose-trigger-sim-test-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +9 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +9 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/candidates/00660--scripts-release-loop-gate-node-test-ts.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00010--scripts-release-loop-gate-node-test-ts.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00010--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00020--src-ux-sim-seminar-rehearsal-test-ts-b7d04c41.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00030--src-ux-sim-aside-feedback-loop-ts-bc55d132.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00040--scripts-release-loop-gate-bisect-ts-0a24b781.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00050--scripts-release-loop-gate-bisect-test-ts-93276556.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00060--scripts-release-loop-gate-bisect-sidecar-ts-8537597a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00070--src-release-loop-macrophage-heal-ts-30c76fcb.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00080--src-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00090--src-ux-sim-pr-land-drift-gate-device-ts-7046aa17.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00100--src-ux-sim-app-contract-secret-entropy-ts-096d587b.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00110--src-ux-sim-app-contract-secret-entropy-test-ts-20663c84.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00120--src-ux-sim-readiness-countdown-ts-7955f662.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00130--src-ux-sim-readiness-countdown-test-ts-74503e51.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00140--src-ux-sim-fake-app-drive-world-ts-0628e0fc.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00150--src-ux-sim-fake-app-drive-world-test-ts-5e5ccb70.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00160--src-ux-sim-fake-app-source-concurrent-writer-ts-d552ec7a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00170--src-ux-sim-fake-app-source-world-ts-8decb8fc.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00180--src-ux-sim-fake-app-source-world-test-ts-62c86a9c.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00190--src-ux-sim-fake-google-drive-world-ts-ea35958c.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00200--src-ux-sim-fake-google-drive-world-test-ts-b1893a04.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00210--src-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-bfd2b9a0.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00220--src-ux-sim-fake-temp-cleanup-ts-78630a27.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00230--src-ux-sim-fake-temp-cleanup-test-ts-d0ed21bc.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00240--src-ux-sim-release-same-version-run-adoption-sim-ts-0a0b3e7e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00250--src-ux-sim-release-same-version-run-adoption-sim-test-ts-e50288fb.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00260--src-ux-sim-graph-resume-any-entry-ts-f4e753c4.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00270--src-ux-sim-graph-resume-any-entry-test-ts-63d01d16.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00280--src-ux-sim-graph-compose-trigger-sim-test-ts.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/catalog-additions/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00000--multi-actor-world-20261110.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00010--sim-fake-providers-av-4883a32d.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00020--codex-wire-capture-1bb11a5e.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00030--fake-app-auth-a12b9d72.json +34 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00040--fake-app-traffic-10bb14b5.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00050--fake-app-realtime-b675ae5d.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00060--fake-llm-4e9d0461.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00070--fake-fetch-24e15acf.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00080--fake-data-guard-boundary-6d63fa1b.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00090--fake-executable-0d4932e9.json +52 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00100--fake-payment-36658cf7.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00110--git-worktree-accel-measure-f2e46787.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00120--fake-github-4447f89b.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00121--fake-cred.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00122--fake-feeds.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00130--fake-kubectl-1d602089.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00140--fault-nexus-stall-7854e333.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00150--warm-pool-reuse-sim-7748cb2f.json +45 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00160--fake-fleet-55e1776a.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00170--fake-herdr-61d3593c.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00180--fake-clock-89a347a7.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00190--fake-dns-cert-b17dcd51.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00200--fake-ssh-6012493b.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00210--fake-cloud-vm-990dc784.json +61 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00220--temp-git-remote-03a486eb.json +24 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00230--fake-land-queue-bc0138c9.json +39 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00240--world-runtime-d26d02c9.json +83 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00250--secret-canary-e8fd8f58.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00260--scenario-runner-a9afa458.json +42 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00270--sim-mailbox-d26bb613.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00280--draft-inventory-34f59a02.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00290--linear-secretary-ecf757fe.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00300--release-graph-rig-069c8c3b.json +133 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00310--graph-engine-selector-1b47d4df.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00320--sim-event-log-path-74a7df46.json +52 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00330--tui-interaction-8e9968ff.json +65 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00340--fault-injection-60e2a635.json +49 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00350--gate-receipt-file-closure-cas.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00350--grid-chaos-driver-312fbd1c.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00360--product-devices-b83cabdd.json +61 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00370--turn-throw-sim-fa6bd37b.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00380--first-run-and-seminar-f7ec0d9a.json +50 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00390--support-fakes-4ac8f28e.json +67 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00400--author-reviewer-precheck-29e760be.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00410--research-decision-chain-312201c5.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00420--sim-universe-world-lifecycle-0ccd91ce.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00430--sim-universe-world-yaml-schema-3a0c6c68.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00440--grid-ledger-95b7955f.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00450--telegram-video-receipt-3b9512a2.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00451--fake-telegram-outbound-briefing.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00460--aside-feedback-loop-4e4a0842.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00470--heal-reauthor-materialized-f16c0ffc.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00480--device-fidelity-b30563a6.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00490--install-consent-d43aab59.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00500--warm-si-reuse-sim-cd2ce529.json +44 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--pod-reuse-residue-fault-faeb368d.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--public-auth-provider-cloud-vm-sim-161386f5.json +43 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00510--warm-pool-declare-path-sim-553b1d90.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00520--fake-ps-d6df0bab.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00530--fake-app-storage-48587412.json +42 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00540--backend-tier-device-f32db49f.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00550--fake-higgsfield-b3207190.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00560--temp-git-repo-114a0526.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00570--rla-event-response-scorecard-a2c92bfd.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00580--app-contract-secret-entropy-e9beed1f.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00590--fake-app-drive-world-f2c3e58c.json +39 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00600--fake-app-source-world-445af8b0.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00610--fake-google-drive-world-c81301f3.json +40 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00620--fake-temp-cleanup-1d778211.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00630--git-push-timeout-partial-outcome-remote-verify-f90afeae.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00640--pod-reuse-match-by-kind-sim-ccc95426.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00650--pod-reuse-world-e1c91756.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00660--pr-land-drift-gate-31434d33.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00670--edge-creator-4d59199b.json +45 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00670--readiness-countdown-db1a7536.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00680--rla-context-release-status-arrival-event-740d889b.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00690--sim-catalog-manual-fragment-merge-sim-9a35f50d.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00700--git-fetch-fresh-skip-10e18190.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00700--smart-merge-world.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--pod-phase-prewarm-3bc0dd35.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--release-graph-receipt-audit.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00710--ta-land-count-dispatcher-sim.json +25 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00720--fake-bin-args-sim.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00730--pr-land-drift-autorepair-device.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00740--gate-closure-lazy-require-sim.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00890--worktree-deps-shared-store.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00900--fake-adb-phone-world.json +37 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--fake-android-client-b8b02ae9.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--gate-repair-multi-file-sim.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--phone-pwa-selfheal.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00910--release-same-version-run-adoption-sim-ff3df430.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/00920--repo-git-maintenance.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01000--install-one-liner-failsafe.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01010--relay-edge-first-host-sim.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01010--seat-mail-wake-4e271489.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--control-serve-lease-default-sim.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--flutter-deploy-journey.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01020--pod-phase-prewarm-sim.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01030--pod-phase-prewarm-hit-sim.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--adaptive-graph-design.json +34 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--app-upgrade-path.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--fake-market-feed.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--graph-v2-lowering.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--light-rc-long-run-device-0d845681.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01040--sim-impact-unified-check-804f7466.json +35 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01041--plugin-yaml-gen.json +33 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--absorb-graph-v2-rungraph-4b5a6751.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--graph-policy-lint.json +30 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01050--mini-board-card-deb603f7.json +29 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01100--graph-trigger-hook-device.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01101--graph-trigger-registry-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01103--graph-event-entry-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01104--graph-placement-lease-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01110--sim-mapreduce-multihost.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01600--fake-absorb-ingest.json +14 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01610--graph-compose-trigger-sim.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01620--app-scratch-bootstrap.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01630--nl-scenario-proposal.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01650--network-sandbox.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01670--pod-federation-sim.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01680--fake-mobile-toolchain.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01690--fake-app-failures.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01700--sim-receipt-proof-658f05e1.json +38 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01700--world-regression-suite.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--fake-cloud-billing-world.json +41 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--fake-member-oidc-world.json +47 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--log-volume-world-4cfcdfcd.json +15 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--tool-router-world.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01710--train-manager-world.json +46 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--census-oracle-axis-world-6918999a.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--fake-agent-hook-host.json +39 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01720--next-tui-plugin-wizard.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01730--outbound-guard-sim-b65e7aca.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01740--graph-run-lifecycle-world-99feb920.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01750--hotspot-file-lease-world.json +27 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01850--pwa-static-swap.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01860--pwa-provenance-badge-world-6505d1f7.json +31 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/devices/01870--rla-macrophage-heal-timeout-stale-output.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/metadata.json +36 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00010--test-ux-sim-aimock-local-ts-346e03cb.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00020--test-telegram-surface-hitl-test-ts-1a40e9ff.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00030--src-ux-sim-safe-public-copy-publish-ts-fecca28c.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00040--src-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-bfd2b9a0.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00640--src-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/omission-required-paths/00650--src-ux-sim-graph-run-lifecycle-world-test-ts-9a932579.json +1 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-1-fake-agent-hook-host--d684e4e6.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-1-graph-policy-lint--a3217972.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-mock-catalog-duplicate-36330--00a4c628.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-mock-catalog-glm-fallback-regression--3008ce2b.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-notify-capability--377e3b9b.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-3-sim-fake-app-failures-android-voice-photo-note--2cf7eecc.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-4-guardian-train-worker-lifecycle--81fc2727.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-4-simkit-receipt-badge--403f2c90.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/absorb-brief-graph-contract-36172--adebc8d7.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-36414-mapreduce-core--3d93d2ed.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-graph-instance-pause-cancel-fork--03ed48f5.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/gate-g2-mapreduce-core--8e0f99c7.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/graph-hook--6004207a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/hotspot-file-lease-world--7a989baf.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-a-36129-numguard--6bf14d0e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-b-graph-v2-lower--5cfb0e37.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-b-train-manager-world--d8aadd96.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/mvp-c-app-scratch-bootstrap-sim--5bc6aa66.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opc-next-tui-core-input--d3b85b0e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opc-next-tui-fold-default--aee623bd.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opt-absorb-brief-graph-contract--322f06ec.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/opt-sim-multi-actor--70a91caa.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-mock-catalog-4--6f2ee6aa.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-sim-fake-feeds--5f8bba8e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-crawl-sim-real-target-sandbox--17a5454a.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-kaist-deploy-from-tui-pwa--e1c5986f.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-census-oracle-axis--eac8e1dd.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-gate-no-wallclock-1--a8ad27a8.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-logvol-log-volume-world--24e1d1ea.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-mkt-sim-regression-suite--c8633fb2.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-first-party-plugins-all--b202b190.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-graph-route-allowlist--565dc688.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-plugin-multi-active--a95dc218.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-search-only--f91a0e19.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-toolroute-tool-router-world--4e6a7c56.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/r-warmpool-pod-warm-normalize--dc25fd37.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/sim-fake-cred--ef5d3497.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/tool-router-low-risk-native--4fcc1519.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-mini-board-card-projection--1a257324.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-resource-ledger-public-auth--9372a56f.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/ux-rla-pwa-formal-update--8b6d47f1.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-fake-cloud-billing-world--1dace52e.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-fake-market-feed-sim-impact-app-upgrade--7bbacec6.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/reviews/win-1-outbound-guard-sim--4c230f2f.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00010--ux-ms-01-73ee5d56.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00020--ux-ms-02-88d521fa.json +32 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00025--release-macrophage-heal-fd63c32d.json +28 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00030--release-graph-prepub-fanout-1beb8236.json +23 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00035--arg-macro-canvas-sim.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00036--release-graph-absorb-all-0307.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--release-macro-chain-e2e-1109.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--rla-rehearsal-cloud-resume-sim-1f54baa1.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00040--ux-ms-03-0888aa4c.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00050--ux-ms-04-46d9b0ff.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00060--ux-ms-05-d309d631.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00070--ux-ms-06-b87b5f50.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00080--ux-ms-07-45b8212b.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00090--ux-ms-08-d047fc5e.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00100--ux-ms-09-75e68cac.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00110--ux-ms-11-e621d4ea.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00120--ux-ms-12-af6a74c3.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00130--night-train-dead-pid-lock-9f67d397.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00140--author-precheck-applied-4a55eaf2.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00150--author-precheck-rejected-unprovable-08ab0402.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00160--safe-public-copy-publish-redaction-e80f0180.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00170--sw-freeze-d66deac8.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00180--sim-hq-move-7fc41ad6.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00190--sim-chain-land-c1305d4c.json +25 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00200--ux-ms-13-995bb160.json +25 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00210--app-contract-secret-entropy-bd4fecf8.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00220--app-source-snapshot-896a2618.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00230--app-web-drive-tenant-cd467e6c.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00240--git-push-timeout-partial-outcome-remote-verify-52419971.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00250--google-drive-list-readonly-90287835.json +21 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00250--ux-ms-pod-phase-prewarm.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00260--rla-launch-countdown-1107-f4b4bc86.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00260--ux-ms-pod-phase-prewarm-hit.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00270--task-temp-cleanup-a5f4b922.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00280--sim-release-same-version-run-adoption-0bc8d711.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/00290--simkit-receipt-badge-dcacf46e.json +26 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01010--graph-resume-any-entry-sim-9bc2289f.json +20 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01020--flutter-deploy-journey.json +19 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01020--seat-mail-wake-all-addresses-365812cf.json +22 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01030--graph-run-lifecycle-pause-owner-death-6011d381.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01031--graph-run-lifecycle-cancel-owner-death-60832435.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01032--graph-run-lifecycle-fork-owner-death-b857f8a0.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/scenarios/01720--fake-agent-hook-host.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-exclusions/00010--scenarios-ux-sim-mk-ms-01-yaml-917748f2.json +4 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00010--md-ux-sim-aside-feedback-loop-ts-f21f1507.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00020--md-ux-sim-author-reviewer-precheck-device-ts-b2a9abd6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00030--md-ux-sim-backend-tier-device-ts-54b7fd84.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00040--md-ux-sim-boot-daemon-tools-pty-shell-device-ts-dd80678b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00050--md-ux-sim-browser-hand-ts-d06db15a.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00060--md-ux-sim-burst-ready-ladder-sim-ts-6dad5f6c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00070--md-ux-sim-chain-land-ts-0343338c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00080--md-ux-sim-classic-tui-seat-scenarios-ts-20fee020.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00090--md-ux-sim-cli-config-audit-device-ts-ce53777f.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00100--md-ux-sim-codex-wire-capture-ts-8cda31a6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00110--md-ux-sim-computer-use-ts-ce46f504.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00120--md-ux-sim-dashboard-event-loop-stall-monitor-dev-aa29de9c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00130--md-ux-sim-device-fidelity-ts-f5cd1c2c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00140--md-ux-sim-draft-inventory-builder-ts-c942f9a2.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00150--md-ux-sim-event-monkey-ts-7a173131.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00160--md-ux-sim-fake-app-auth-ts-36fadfd1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00170--md-ux-sim-fake-app-host-ts-f97c7aa0.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00180--md-ux-sim-fake-app-realtime-ts-25496e57.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00190--md-ux-sim-fake-app-storage-ts-4dd69d8d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00200--md-ux-sim-fake-app-traffic-ts-f1f5e552.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00210--md-ux-sim-fake-bin-ts-cf8e7614.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00220--md-ux-sim-fake-browser-page-ts-cd408a66.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00230--md-ux-sim-fake-clock-ts-8ad5fbca.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00240--md-ux-sim-fake-cloud-vm-ts-6dd59466.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00250--md-ux-sim-fake-data-guard-boundary-ts-47048355.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00260--md-ux-sim-fake-dns-cert-ts-32045bf7.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00270--md-ux-sim-fake-elevenlabs-ts-35e342bf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00280--md-ux-sim-fake-fetch-ts-65584925.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00290--md-ux-sim-fake-fleet-ts-1375b9f5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00300--md-ux-sim-fake-gh-ts-7f98dfa3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00310--md-ux-sim-fake-herdr-ts-b888704c.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00320--md-ux-sim-fake-higgsfield-ts-998bff8d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00330--md-ux-sim-fake-kubectl-ts-3c86b0f0.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00340--md-ux-sim-fake-land-queue-ts-8180eab3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00350--md-ux-sim-fake-linear-device-ts-b5add3d0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00360--md-ux-sim-fake-llm-ts-df79e477.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00370--md-ux-sim-fake-payment-ts-75de40a0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00380--md-ux-sim-fake-ps-ts-a0e17feb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00390--md-ux-sim-fake-ssh-ts-6a7a68f5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00400--md-ux-sim-fake-stt-ts-a4be8d74.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00410--md-ux-sim-fake-telegram-video-ts-0a411065.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00420--md-ux-sim-fault-cred-expiry-ts-46ce5b1a.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00430--md-ux-sim-fault-glm-no-credential-ts-c9d22ea7.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00440--md-ux-sim-fault-needs-human-reason-repair-ts-79e657b4.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00450--md-ux-sim-fault-nextmove-dispatch-ts-732fedbb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00460--md-ux-sim-fault-nexus-stall-ts-a9476e07.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00470--md-ux-sim-fault-pod-child-result-ts-029c2b11.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00480--md-ux-sim-fault-pod-codex-503-ts-2095dc24.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00490--md-ux-sim-fault-pod-death-ts-c4332c01.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00500--md-ux-sim-fault-pod-reuse-residue-ts-f6ec0683.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00510--md-ux-sim-fault-pool-cap-ts-704a8fd1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00520--md-ux-sim-fault-scope-escape-lift-ts-89d70ebb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00530--md-ux-sim-fault-sqlite-busy-ts-e55c6596.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00540--md-ux-sim-fault-tui-400-autoheal-ts-9c8c4c90.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00550--md-ux-sim-fixtures-git-worktree-accel-linux-json-292d13eb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00560--md-ux-sim-gate-roster-second-pool-ts-71ab79a0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00570--md-ux-sim-gate-shard-host-reroute-ts-d53fb003.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00580--md-ux-sim-goal-device-ts-081f27d5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00590--md-ux-sim-goal-interim-trace-ts-a294f6eb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00600--md-ux-sim-graph-engine-sim-ts-b396d6cd.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00610--md-ux-sim-graph-runtime-overlay-event-path-ts-85e231ed.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00620--md-ux-sim-graph-runtime-overlay-event-path-worke-44d01497.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00630--md-ux-sim-grid-chaos-driver-ts-3aeaa007.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00640--md-ux-sim-grid-ledger-ts-47aa3bbf.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00650--md-ux-sim-grid-ready-tiers-ts-ce1a3d02.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00660--md-ux-sim-headless-tui-ts-efe53045.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00670--md-ux-sim-heal-reauthor-materialized-ts-f0885108.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00680--md-ux-sim-hq-move-sim-ts-3f87b093.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00690--md-ux-sim-in-process-cli-ts-a7cf98f0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00700--md-ux-sim-input-history-ts-373c28e3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00710--md-ux-sim-install-consent-device-ts-049427b0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00720--md-ux-sim-interaction-ts-1864df2b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00730--md-ux-sim-linear-secretary-ts-325a38c0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00740--md-ux-sim-mock-authoring-first-run-child-ts-58346a8b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00750--md-ux-sim-mock-authoring-first-run-ts-f6fa0f7c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00760--md-ux-sim-mock-device-requests-ts-eeefc29f.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00780--md-ux-sim-mock-scenario-catalog-ts-d5697910.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00790--md-ux-sim-mock-seat-pty-frame-child-ts-a918240e.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00800--md-ux-sim-mock-seat-pty-frame-ts-64ad26cd.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00810--md-ux-sim-mock-seat-pty-sequence-child-ts-942048e3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00820--md-ux-sim-mock-seat-pty-sequence-ts-6ea89eee.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00830--md-ux-sim-next-tui-seat-scenarios-ts-f6041f67.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00840--md-ux-sim-onboarding-first-run-device-ts-04866faf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00850--md-ux-sim-pty-key-modifiers-device-ts-c223afb6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00860--md-ux-sim-release-event-trace-ts-2a3b45ba.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00870--md-ux-sim-release-publish-devices-ts-b6bcf64b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00880--md-ux-sim-release-sim-rig-ts-05f20f16.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00890--md-ux-sim-render-frame-ts-275662e1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00900--md-ux-sim-research-decision-chain-ts-9ba3915b.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00910--md-ux-sim-resume-picker-device-ts-9057ce38.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00920--md-ux-sim-rla-event-response-scorecard-ts-005ca7af.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00930--md-ux-sim-arg-macro-canvas-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00930--md-ux-sim-safe-public-copy-publish-ts-b46b6ba6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00940--md-ux-sim-scenario-ts-409febfe.json +13 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00950--md-ux-sim-secret-canary-ts-b9d5f354.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00960--md-ux-sim-seminar-rehearsal-ts-c0dcc1cf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00970--md-ux-sim-service-key-setup-ts-fc2578e7.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00980--md-ux-sim-session-id-seed-ts-12206acb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/00990--md-ux-sim-sim-coverage-ts-fd46c0fe.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01000--md-ux-sim-skills-tools-shell-device-ts-a63ab153.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01010--md-ux-sim-slash-menu-frames-ts-fc04d9ce.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01020--md-ux-sim-flutter-deploy-journey-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01020--md-ux-sim-subagent-tools-device-ts-6ecdf005.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01030--md-ux-sim-task-agent-parent-host-device-ts-7a97b5f6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01040--md-ux-sim-task-agent-rejudge-on-head-device-ts-33893bfb.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01050--md-ux-sim-task-orchestrator-surfaces-self-implem-18bdb425.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01060--md-ux-sim-temp-git-remote-ts-f64f9359.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01070--md-ux-sim-temp-git-repo-ts-cd68ece3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01080--md-ux-sim-term-slash-device-ts-e7ee79b6.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01090--md-ux-sim-tool-async-fail-loop-ts-057c354d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01100--md-ux-sim-tty-foreground-steal-child-ts-bfe16e86.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01110--md-ux-sim-turn-states-ts-c18238ab.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01120--md-ux-sim-turn-throw-sim-ts-36260397.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01130--md-ux-sim-warm-pool-reuse-sim-ts-47a18b34.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01140--md-ux-sim-warm-pool-reuse-switch-sim-ts-2b0a1583.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01150--md-ux-sim-warm-si-reuse-sim-ts-6e790b8d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01160--md-ux-sim-world-chaos-runtime-ts-45e1a99c.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01170--md-ux-sim-world-host-chaos-ts-9d61588e.json +12 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01180--md-ux-sim-world-schema-ts-7b596511.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01190--md-ux-sim-world-snapshot-ts-7d31ed92.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01200--md-ux-sim-world-store-ts-64cd54bf.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01210--md-ux-sim-world-ts-ad60826b.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01220--md-ux-sim-world-watch-ts-d45007fd.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01230--md-ux-sim-pod-reuse-world-ts-d8ea8bc8.json +11 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01240--md-ux-sim-app-contract-secret-entropy-ts-e4d19d66.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01250--md-ux-sim-app-kill-switch-world-ts-e89b604d.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01260--md-ux-sim-fake-app-db-world-ts-d394fe23.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01270--md-ux-sim-fake-app-drive-world-ts-f5bb931e.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01280--md-ux-sim-fake-app-source-concurrent-writer-ts-d342114a.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01290--md-ux-sim-fake-app-source-world-ts-4cdf1a61.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01300--md-ux-sim-fake-google-drive-world-ts-11b7f0da.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01310--md-ux-sim-fake-relay-world-ts-d4c096f5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01320--md-ux-sim-fake-temp-cleanup-ts-299fbf77.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01330--md-ux-sim-git-push-timeout-partial-outcome-remote-verify-ts-c5185fb3.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01340--md-ux-sim-multi-tenant-relay-world-ts-e2fc28d2.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01350--md-ux-sim-pod-reuse-match-by-kind-sim-ts-782c5911.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01360--md-ux-sim-pod-reuse-shared-fake-boundary-ts-a16285a5.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01370--md-ux-sim-pr-land-drift-gate-device-ts-3df0178e.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01380--md-ux-sim-readiness-countdown-ts-48cf04b4.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01390--md-ux-sim-train-manager-decision-sim-ts-9b4695ad.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01410--md-ux-sim-edge-creator-ts-b25cb517.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01420--md-ux-sim-pod-phase-prewarm-ts-a137c8d1.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01420--md-ux-sim-smart-merge-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01430--md-ux-sim-ta-land-count-dispatcher-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01440--md-ux-sim-fake-bin-args-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01450--md-ux-sim-pr-land-drift-autorepair-device-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01460--md-ux-sim-in-process-cli-539-file-adoption-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01470--md-ux-sim-release-same-version-run-adoption-sim-ts-9e32e7d0.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01480--md-ux-sim-fake-adb-phone-world-ts-76033333.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01490--md-ux-sim-fake-app-db-backup-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01500--md-ux-sim-gate-image-preflight-runtime-identity-flow-sim-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01510--md-ux-sim-device-catalog-snapshot-fragments-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01520--md-ux-sim-fake-android-client-ts-77f6d965.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01520--md-ux-sim-plugin-release-observe-route-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01530--md-ux-sim-pwa-retained-routes-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01540--md-ux-sim-gate-image-layered-delta-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01550--md-ux-sim-user-config-default-sparse-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01560--md-ux-sim-release-sim-rig-seat-guard-child-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01570--md-ux-sim-gate-steady-state-proof-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01580--md-ux-sim-user-config-tui-diet-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01590--md-ux-sim-edge-creator-nightly-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01600--md-ux-sim-fake-absorb-ingest-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01600--md-ux-sim-fake-telegram-outbound.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01610--md-ux-sim-app-upgrade-path-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01610--md-ux-sim-next-tui-core-input-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01611--md-ux-sim-plugin-yaml-gen-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01620--md-ux-sim-app-scratch-bootstrap-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01621--md-ux-sim-fake-nexus-board-server-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01622--md-ux-sim-graph-diff-apply-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01623--md-ux-sim-mapreduce-multihost.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01630--md-ux-sim-ios-chat-edge-adapter-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01640--md-ux-sim-nl-scenario-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01650--md-ux-sim-network-sandbox-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01660--md-ux-sim-next-tui-route-device-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01670--md-ux-sim-pod-federation-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01680--md-ux-sim-fake-mobile-toolchain-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-fake-feeds-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-multi-actor-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01690--md-ux-sim-sim-receipt-ts-fbac5ddd.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01691--md-ux-sim-fake-app-failures-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01700--md-ux-sim-world-regression-suite-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-fake-cloud-billing-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-fake-member-oidc-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-real-target-sandbox-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-tool-router-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01710--md-ux-sim-train-manager-world-ts.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-census-oracle-axis-world-ts-0dd03008.json +10 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-fake-agent-hook-host-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01720--md-ux-sim-next-tui-plugin-wizard-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01730--md-ux-sim-outbound-guard-sim-ts-a885ec98.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01730--md-ux-sim-public-auth-provider-cloud-vm-sim-ts-6e424ea6.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01740--md-ux-sim-graph-run-lifecycle-world-ts-61f58868.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01750--md-ux-sim-hotspot-file-lease-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01750--md-ux-sim-pwa-provenance-badge-world-ts-cf2acbfe.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01760--md-ux-sim-graph-trigger-hook-device-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01760--md-ux-sim-rla-macrophage-heal-timeout-stale-output-sim-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01762--md-ux-sim-graph-event-entry-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/source-modules/01763--md-ux-sim-graph-placement-lease-world-ts.json +8 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00010--ev-0042-8a37502e.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00020--ev-0107-09ba5618.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00030--hq-move-75a88e80.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00040--rla-er-01-68d954af.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00050--rla-er-02-1e5e64d1.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00060--rla-er-03-51a1b3d4.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00070--rla-er-04-8e22f866.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00080--rla-er-05-df87c68d.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00090--rla-er-06-ad13c028.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00100--rla-er-07-d2204757.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00110--rla-er-08-5ffce874.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00120--rla-er-09-f575779c.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00130--rla-er-10-ac9154fd.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00140--gate-pools-pinned-sweep-0c5e1f58.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00150--gate-mshq-unavailable-6f38fbd8.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00160--gate-both-unavailable-c4956825.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00170--gate-digest-mismatch-7b971872.json +5 -0
- package/catalog/ux-sim/mock-scenario-catalog-fragments/world-events/00180--gate-no-pinned-image-33bda9d9.json +5 -0
- package/graphs/apps/lecture-scrap-extract.yaml +10 -0
- package/graphs/apps/recipes.yaml +1 -0
- package/graphs/catalog/catalog.yaml +2 -2
- package/graphs/demo/kaist-key-feature/kaist-key-feature.yaml +30 -0
- package/graphs/demo/kaist-key-feature/recipes.yaml +1 -0
- package/graphs/demo/recipes.yaml +13 -0
- package/graphs/demo/solar-scene4.yaml +24 -0
- package/graphs/heal/heal-loop.yaml +10 -1
- package/graphs/heal/recipes.yaml +2 -0
- package/graphs/overlays/stop-heal-ladder.yaml +21 -0
- package/graphs/release/derive.json +37 -0
- package/graphs/release/macrophage-subscriber.yaml +4 -0
- package/graphs/release/node-command-bindings.json +18 -0
- package/graphs/release/plugin.json +34 -0
- package/graphs/release/recipes.yaml +78 -1
- package/graphs/release/release-edge-vocabulary.yaml +11 -0
- package/graphs/release/release-gate-domain-pack.yaml +9 -0
- package/graphs/release/release-graph.schema.yaml +7 -0
- package/graphs/release/release-loop-fanout.yaml +107 -0
- package/graphs/release/release-loop.yaml +77 -22
- package/graphs/release/rla/loop.yaml +30 -0
- package/graphs/release/rla/plugin.json +19 -0
- package/graphs/release/rla/recipes.yaml +11 -0
- package/graphs/release/rla/supervisor.yaml +23 -0
- package/graphs/templates/release/plugin.json +132 -0
- package/graphs/templates/release/recipes.yaml +20 -0
- package/graphs/templates/release/release-step.ts +27 -0
- package/graphs/templates/release/release.yaml +24 -0
- package/graphs/units/pod-reuse-prep.yaml +17 -0
- package/graphs/units/recipes.yaml +3 -0
- package/graphs/units/verbs/decide.yaml +19 -0
- package/graphs/units/verbs/make.yaml +19 -0
- package/graphs/units/verbs/recipes.yaml +10 -0
- package/graphs/units/verbs/watch.yaml +18 -0
- package/package.json +11 -1
- package/packs/gcp-architect-expand/content/decision-table.md +25 -0
- package/packs/gcp-architect-expand/content/security-decision-table.md +17 -0
- package/packs/gcp-architect-expand/knowledge-pack.json +12 -0
- package/plugins/absorb/graph/absorb-brief.yaml +63 -0
- package/plugins/absorb/graph/absorb-build.yaml +42 -0
- package/plugins/absorb/graph/absorb-ingest.yaml +18 -0
- package/plugins/absorb/graph/absorb-suggest-list.yaml +16 -0
- package/plugins/absorb/graph/recipes.yaml +1 -0
- package/plugins/absorb/graph/units/recipes.yaml +1 -0
- package/plugins/absorb/handlers/board-approval.ts +99 -0
- package/plugins/absorb/packs/member-apps/pack.yaml +14 -0
- package/plugins/absorb/plugin.json +276 -0
- package/plugins/absorb/plugin.yaml +102 -0
- package/plugins/absorb/sims/absorb-demo-world.yaml +44 -0
- package/plugins/absorb/skills/absorb/brief/SKILL.md +10 -0
- package/plugins/absorb/skills/absorb/build/SKILL.md +8 -0
- package/plugins/absorb/skills/absorb/card/SKILL.md +10 -0
- package/plugins/absorb/skills/absorb/suggest/SKILL.md +10 -0
- package/plugins/doc-draft/README.md +1 -1
- package/plugins/doc-draft/graphs/run-step.ts +7 -11
- package/plugins/elanous-app-deploy/plugin.json +34 -0
- package/plugins/elanous-app-deploy/skills/app-deploy/SKILL.md +5 -0
- package/plugins/elanous-observe/plugin.json +41 -0
- package/plugins/elanous-release/plugin.json +41 -0
- package/plugins/gcp-architect-expand/README.md +9 -0
- package/plugins/gcp-architect-expand/entitlements.json +28 -0
- package/plugins/gcp-architect-expand/graph.yaml +22 -0
- package/plugins/gcp-architect-expand/plugin.json +15 -0
- package/plugins/gcp-architect-expand/recipes.yaml +13 -0
- package/plugins/geo-check/README.md +2 -2
- package/plugins/geo-check/graphs/run-step.ts +6 -12
- package/plugins/graph-instance-view/fixtures/graph.view.json +24 -0
- package/plugins/graph-instance-view/fixtures/harness.view.json +21 -0
- package/plugins/graph-instance-view/fixtures/release.view.json +23 -0
- package/plugins/graph-instance-view/fixtures/resource.view.json +25 -0
- package/plugins/graph-instance-view/schema/view-model.v1.schema.json +126 -0
- package/plugins/iul-shared/materialize-intent-tool.ts +2 -1
- package/plugins/iul-shared/materializer.ts +2 -1
- package/plugins/kr-flow-composites/README.md +45 -0
- package/plugins/kr-flow-composites/graphs/battery-signal.yaml +22 -0
- package/plugins/kr-flow-composites/graphs/etf-price.yaml +12 -0
- package/plugins/kr-flow-composites/graphs/recipes.yaml +9 -0
- package/plugins/kr-flow-composites/graphs/sector-flow.yaml +18 -0
- package/plugins/kr-flow-composites/plugin.json +16 -0
- package/plugins/marketplace-market-data/graphs/units/market-ohlcv.yaml +23 -0
- package/plugins/marketplace-market-data/graphs/units/market-quote.yaml +21 -0
- package/plugins/marketplace-market-data/graphs/units/recipes.yaml +1 -0
- package/plugins/marketplace-market-data/plugin.json +23 -0
- package/plugins/marketplace-market-data/sims/n8n/execute-workflow-default.json +15 -0
- package/plugins/marketplace-market-data/sims/n8n/execute-workflow-explicit-contract.json +18 -0
- package/scenarios/dashboard-default.yaml +53 -0
- package/scenarios/heap-graph.yaml +46 -0
- package/scenarios/iul-timeline-viewer.yaml +46 -0
- package/scenarios/ux-sim/app-demo-1114.yaml +22 -0
- package/scenarios/ux-sim/arg-macro-canvas.yaml +78 -0
- package/scenarios/ux-sim/author-reviewer-precheck-applied.yaml +27 -0
- package/scenarios/ux-sim/author-reviewer-precheck-rejected-unprovable.yaml +27 -0
- package/scenarios/ux-sim/burst-ready-ladder.yaml +47 -0
- package/scenarios/ux-sim/demo1104-research-arg-graph.yaml +32 -0
- package/scenarios/ux-sim/draft-inventory-200.yaml +44 -0
- package/scenarios/ux-sim/fixtures/phone-pwa-selfheal-broken.html +19 -0
- package/scenarios/ux-sim/fixtures/release-cut-0306-shards.json +7023 -0
- package/scenarios/ux-sim/gate-deps-root-bake.yaml +17 -0
- package/scenarios/ux-sim/gate-receipt-carry-any-run.yaml +31 -0
- package/scenarios/ux-sim/gate-roster-second-pool-world.yaml +9 -0
- package/scenarios/ux-sim/gate-roster-second-pool.yaml +26 -0
- package/scenarios/ux-sim/gate-shard-receipt-payload-corrupt.yaml +14 -0
- package/scenarios/ux-sim/google-drive-files-list-readonly.yaml +21 -0
- package/scenarios/ux-sim/graph-runtime-overlay-event-stream.yaml +27 -0
- package/scenarios/ux-sim/kaist-lecture-scrap-app.yaml +14 -0
- package/scenarios/ux-sim/kaist-selfheal-stage.yaml +14 -0
- package/scenarios/ux-sim/knowhow-pack-release-heal-1107.md +39 -0
- package/scenarios/ux-sim/macro-chain-e2e.yaml +14 -0
- package/scenarios/ux-sim/macrophage-attribution-integration-1107.yaml +86 -0
- package/scenarios/ux-sim/n30-old-graph-measured-waiver.yaml +15 -0
- package/scenarios/ux-sim/night-train-dead-pid-lock.yaml +19 -0
- package/scenarios/ux-sim/night-train-world.yaml +13 -0
- package/scenarios/ux-sim/novice-versioning-scenario.ts +150 -0
- package/scenarios/ux-sim/novice-versioning-world.yaml +6 -0
- package/scenarios/ux-sim/phone-pwa-selfheal-trace.json +30 -0
- package/scenarios/ux-sim/provider-4xx-no-provider.yaml +26 -0
- package/scenarios/ux-sim/pwa-formal-update-world.yaml +5 -0
- package/scenarios/ux-sim/pwa-formal-update.yaml +8 -0
- package/scenarios/ux-sim/rehearsal-hard-2h-mandatory.yaml +37 -0
- package/scenarios/ux-sim/release-cut-preflight-regressions.yaml +31 -0
- package/scenarios/ux-sim/release-day-0307-replay.yaml +138 -0
- package/scenarios/ux-sim/release-gate-fanout.yaml +48 -0
- package/scenarios/ux-sim/release-heal-macrophage-bus.yaml +37 -0
- package/scenarios/ux-sim/release-incident-events-execution.yaml +114 -0
- package/scenarios/ux-sim/release-incident-events.yaml +98 -0
- package/scenarios/ux-sim/release-introduced-repair.yaml +40 -0
- package/scenarios/ux-sim/release-receipt-inheritance.yaml +24 -0
- package/scenarios/ux-sim/release-sim-chain-remaining.yaml +46 -0
- package/scenarios/ux-sim/release-sim-rig.yaml +266 -0
- package/scenarios/ux-sim/rla-arg-adaptive-heal.yaml +45 -0
- package/scenarios/ux-sim/rla-incident-policy-host-lost.yaml +17 -0
- package/scenarios/ux-sim/rla-postland-recovery-hitl.yaml +17 -0
- package/scenarios/ux-sim/rla-rehearsal-cloud-resume-sim.yaml +36 -0
- package/scenarios/ux-sim/rla-rehearsal-incident-sim-b.yaml +29 -0
- package/scenarios/ux-sim/sim-hq-move-world.yaml +9 -0
- package/scenarios/ux-sim/sim-hq-move.yaml +14 -0
- package/scenarios/ux-sim/tui-selfimplement-retry-loop.yaml +29 -0
- package/scenarios/ux-sim/warm-pool-reuse-world.yaml +117 -0
- package/scripts/check-graph-declaration.ts +20 -2
- package/scripts/ci-android-unit-tests.ts +46 -2
- package/scripts/ci-pwa-build-gate.ts +22 -2
- package/scripts/ci-typecheck-changed.ts +22 -8
- package/scripts/cli-spawn-sites.ts +114 -0
- package/scripts/corpus-process-group.ts +55 -0
- package/scripts/corpus-worker-lifecycle.ts +2 -7
- package/scripts/device-real-drive.mjs +216 -0
- package/scripts/device-real-drive.test.mjs +168 -0
- package/scripts/docs/generate-cli-anatomy.ts +1 -1
- package/scripts/fixtures/nl-routing/corpus.jsonl +17 -0
- package/scripts/fleet/host-readiness-sim.sh +198 -0
- package/scripts/fleet/host-readiness.sh +218 -0
- package/scripts/fleet/node-setup.sh +9 -4
- package/scripts/fleet/wsl-node-setup.sh +1 -1
- package/scripts/gate-contract-shadow-collector.py +417 -0
- package/scripts/gate-contract-shadow-collector.test.py +176 -0
- package/scripts/generate-conductor-cell-map.ts +73 -0
- package/scripts/generate-mock-scenario-catalog.ts +26 -0
- package/scripts/generate-sim-world-device-catalogs.ts +38 -17
- package/scripts/generate-ux-sim-device-manual.ts +1 -1
- package/scripts/graph-dryrun-baseline.ts +166 -0
- package/scripts/heal/run-role.ts +8 -3
- package/scripts/hq-repo-maintenance-cycle.ts +24 -0
- package/scripts/import-graph-scc.ts +54 -8
- package/scripts/install.ps1 +234 -50
- package/scripts/install.sh +139 -10
- package/scripts/kr-flow-composites.ts +86 -0
- package/scripts/land-preflight.ts +103 -0
- package/scripts/lib/deterministic-env.ts +2 -5
- package/scripts/lib/install-test-package.ts +31 -0
- package/scripts/lib/install-test-tier.ts +13 -0
- package/scripts/lib/next-tui-budget.ts +189 -0
- package/scripts/lib/nl-routing-screening.ts +13 -0
- package/scripts/lib/tui-runtime-static-closure.ts +59 -0
- package/scripts/load/app-serve-burst.ts +203 -0
- package/scripts/load/app-serve-live.ts +68 -0
- package/scripts/load/members-signup-burst.ts +141 -0
- package/scripts/marketing/generate-feature-map.ts +14 -6
- package/scripts/measure-goal-grounding-corpus.ts +3 -4
- package/scripts/measure-nl-routing-corpus.ts +108 -12
- package/scripts/measure-tool-display-lines.ts +1 -1
- package/scripts/migrate-omni-market-secrets.ts +98 -0
- package/scripts/morning-report.ts +2 -2
- package/scripts/next-tui-budget.ts +113 -0
- package/scripts/plugin-only-ratchet-baseline.json +267 -0
- package/scripts/plugin-only-ratchet.ts +213 -0
- package/scripts/plugins/generate-plugin-json.ts +95 -0
- package/scripts/public-leak-baseline.txt +0 -1
- package/scripts/qwen-pipeline-bench.ts +3 -7
- package/scripts/ratchets/test-interference-patterns.allowlist.txt +2 -22
- package/scripts/release-build.ts +5 -1
- package/scripts/release-loop/adaptive-gate-heal-adapter.ts +32 -5
- package/scripts/release-loop/adaptive-gate-heal.ts +65 -14
- package/scripts/release-loop/auto-approve-node.ts +35 -5
- package/scripts/release-loop/checklist-gate-node.ts +9 -1
- package/scripts/release-loop/contract-test-select.ts +127 -0
- package/scripts/release-loop/cut-branch.ts +248 -3
- package/scripts/release-loop/docs-node.ts +10 -10
- package/scripts/release-loop/emergency-publish-authorization.ts +29 -0
- package/scripts/release-loop/emergency-publish-gate-node.ts +129 -0
- package/scripts/release-loop/emergency-publish-switch-sim.ts +65 -0
- package/scripts/release-loop/emergency-publish-switch.ts +46 -0
- package/scripts/release-loop/export-check-node.ts +121 -11
- package/scripts/release-loop/export-check-remote.ts +146 -0
- package/scripts/release-loop/fixtures/gate-0307-key-diff.json +3293 -0
- package/scripts/release-loop/formal-receipt-radius.ts +32 -0
- package/scripts/release-loop/gate-api-leaf.ts +19 -0
- package/scripts/release-loop/gate-append-recheck-plan-node.ts +27 -0
- package/scripts/release-loop/gate-autoheal-sim-evidence.ts +2 -1
- package/scripts/release-loop/gate-baseline-isolated.ts +80 -0
- package/scripts/release-loop/gate-baseline-manifest.ts +12 -0
- package/scripts/release-loop/gate-baseline-receipt.ts +52 -14
- package/scripts/release-loop/gate-bisect-owner-mail.ts +106 -0
- package/scripts/release-loop/gate-bisect-sidecar.ts +52 -15
- package/scripts/release-loop/gate-bisect.ts +1 -1
- package/scripts/release-loop/gate-closure.ts +771 -28
- package/scripts/release-loop/gate-constants.ts +2 -0
- package/scripts/release-loop/gate-contract-surfaces.json +150 -0
- package/scripts/release-loop/gate-cut-snapshot.ts +67 -0
- package/scripts/release-loop/gate-cutover-switch-node.ts +32 -0
- package/scripts/release-loop/gate-file-receipt-audit-node.ts +142 -0
- package/scripts/release-loop/gate-file-receipts.ts +195 -0
- package/scripts/release-loop/gate-git.ts +68 -0
- package/scripts/release-loop/gate-image-pin-handshake.ts +57 -0
- package/scripts/release-loop/gate-image-pin.ts +242 -3
- package/scripts/release-loop/gate-image-runtime-identity.ts +41 -0
- package/scripts/release-loop/gate-key-diff.ts +138 -0
- package/scripts/release-loop/gate-lazy-require-measure.ts +55 -0
- package/scripts/release-loop/gate-nightly-audits.ts +11 -0
- package/scripts/release-loop/gate-node-cli.ts +17 -0
- package/scripts/release-loop/gate-node-sim.ts +43 -14
- package/scripts/release-loop/gate-node.ts +5 -5597
- package/scripts/release-loop/gate-partial.ts +83 -2
- package/scripts/release-loop/gate-radius-live.ts +181 -22
- package/scripts/release-loop/gate-radius-shadow.ts +19 -4
- package/scripts/release-loop/gate-receipt-hash.ts +147 -0
- package/scripts/release-loop/gate-recheck-plan-node.ts +9 -4
- package/scripts/release-loop/gate-repair-node.ts +424 -41
- package/scripts/release-loop/gate-reuse-identity.ts +17 -7
- package/scripts/release-loop/gate-runtime.ts +5958 -0
- package/scripts/release-loop/gate-same-run-recheck-node.ts +102 -0
- package/scripts/release-loop/gate-shard-artifacts.ts +134 -0
- package/scripts/release-loop/gate-shard-dispatch.ts +89 -15
- package/scripts/release-loop/gate-shard-load-flaky.ts +84 -0
- package/scripts/release-loop/gate-shard-receipt-carry.ts +106 -0
- package/scripts/release-loop/gate-shard-receipts.ts +453 -10
- package/scripts/release-loop/gate-shard-shell.ts +227 -0
- package/scripts/release-loop/gate-skip-by-evidence-node.ts +80 -0
- package/scripts/release-loop/gate-stalled-evidence.ts +106 -0
- package/scripts/release-loop/gate-test-summary.ts +11 -0
- package/scripts/release-loop/gate-train-cas-adapter.ts +56 -0
- package/scripts/release-loop/gate-train-file-cas.ts +123 -0
- package/scripts/release-loop/gate-train-receipts.ts +24 -18
- package/scripts/release-loop/gate-triage-node.ts +391 -47
- package/scripts/release-loop/gate-triage-types.ts +51 -0
- package/scripts/release-loop/gate-types.ts +320 -0
- package/scripts/release-loop/gate-warm-artifacts.ts +48 -2
- package/scripts/release-loop/hand-response-node.ts +258 -0
- package/scripts/release-loop/import-graph-scc-run.ts +46 -1
- package/scripts/release-loop/import-graph-scc.ts +2 -1
- package/scripts/release-loop/known-issues-node.ts +2 -1
- package/scripts/release-loop/mac-smoke-node.ts +1 -1
- package/scripts/release-loop/node-verdict.ts +23 -3
- package/scripts/release-loop/preflight.ts +148 -51
- package/scripts/release-loop/publish-node.ts +43 -7
- package/scripts/release-loop/pwa-build-typecheck.ts +183 -0
- package/scripts/release-loop/pwa-formal-update-node.ts +19 -0
- package/scripts/release-loop/pwa-formal-update.ts +196 -0
- package/scripts/release-loop/pwa-remote.ts +29 -0
- package/scripts/release-loop/pwa-scenarios-node.ts +31 -2
- package/scripts/release-loop/regression-suite-node.ts +44 -0
- package/scripts/release-loop/release-readiness.ts +185 -5
- package/scripts/release-loop/remote-worktree-setup.sh +53 -0
- package/scripts/release-loop/render-warm-control-manifest.ts +33 -4
- package/scripts/release-loop/repair-pr-landed.ts +94 -13
- package/scripts/release-loop/resume-cap.ts +1 -1
- package/scripts/release-loop/resume-release.ts +270 -171
- package/scripts/release-loop/resume-types.ts +29 -0
- package/scripts/release-loop/resume.ts +37 -35
- package/scripts/release-loop/rla-event-response-scorecard-report.ts +277 -0
- package/scripts/release-loop/rolling-main-gate.ts +363 -0
- package/scripts/release-loop/sweep-cert.ts +300 -0
- package/scripts/release-loop/traffic-event-hook-sim.ts +26 -0
- package/scripts/release-loop/traffic-event-hook.ts +383 -0
- package/scripts/release-loop/train-verdict.ts +162 -0
- package/scripts/release-loop/unattended-release.ts +191 -10
- package/scripts/release-loop/version-node.ts +164 -19
- package/scripts/replay-phone-pwa-selfheal-trace.ts +16 -0
- package/scripts/resource-ledger-url.ts +60 -0
- package/scripts/seat-worktree-add.sh +32 -0
- package/scripts/signal-digest-photo.ts +1 -1
- package/scripts/sim-impact-check.ts +119 -0
- package/scripts/sim-impact.ts +413 -0
- package/scripts/sim-real-target-worker.ts +19 -0
- package/scripts/smoke-higgsfield-app-cli-session.ts +90 -0
- package/scripts/test-census/similar-search.ts +9 -2
- package/scripts/test-census-similar-search.ts +14 -1
- package/scripts/test-census.ts +200 -18
- package/scripts/test-deterministic.ts +63 -8
- package/scripts/test-diet/node.ts +1 -1
- package/scripts/tsc-diet-measure.ts +225 -0
- package/scripts/update-cli-spawn-allowlist.ts +46 -0
- package/scripts/update-tui-size-ratchet.ts +10 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/gate-tier-lanes.py +170 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/gate-tier.py +179 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/train-batch-live.py +2881 -0
- package/scripts/ux-sim/fixtures/op-snapshot-1109/train-manager.py +1845 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/README.md +9 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/gate-tier.py +179 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/train-batch-live.py +2881 -0
- package/scripts/ux-sim/fixtures/train-gate-tier-1109/train-memory.py +102 -0
- package/scripts/ux-sim/sim-fake-bin-args-evidence.ts +179 -0
- package/scripts/ux-sim/test-train-edge-operational-replay.py +411 -0
- package/scripts/ux-sim/test-train-retry-file-map.py +71 -0
- package/scripts/ux-sim.ts +54 -3
- package/scripts/validate-graph-instance-view.ts +47 -0
- package/scripts/warm-pool-provider-config.ts +201 -23
- package/skills/omni-crawl/SKILL.md +31 -54
- package/skills/omni-crawl/scripts/main.ts +86 -276
- package/skills/omni-crawl/src/free.ts +1 -6
- package/skills/omni-crawl/src/registry.ts +124 -36
- package/skills/omni-crawl/src/router.ts +42 -85
- package/skills/omni-crawl/src/test-fetch-preload.ts +7 -0
- package/skills/omni-crawl/src/types.ts +5 -2
- package/src/acp/acp-surface-channels.ts +3 -2
- package/src/acp/client.ts +14 -14
- package/src/acp/codex-elicitation-ask.ts +1 -4
- package/src/acp/core-turn-bridge.ts +3 -2
- package/src/acp/event-router.ts +5 -1
- package/src/acp/fs-roots.ts +1 -1
- package/src/acp/multi-llm-bridge.ts +2 -1
- package/src/acp/server.ts +52 -4
- package/src/acp/turn-runner.ts +1 -1
- package/src/ad-pipeline/fixtures/marketing-studio-video.schema.json +154 -0
- package/src/ad-pipeline/fixtures/seedance-2-0.schema.json +143 -0
- package/src/ad-pipeline/higgsfield-backend.ts +2 -1
- package/src/ad-pipeline/model-contracts.ts +1 -4
- package/src/ad-pipeline/product-video-command.ts +27 -0
- package/src/ad-pipeline/production-contract.ts +6 -0
- package/src/ad-pipeline/production.ts +1 -1
- package/src/ad-pipeline/qc.ts +1 -4
- package/src/ad-pipeline/run.ts +4 -6
- package/src/ad-pipeline/shoot-plan.ts +1 -1
- package/src/agent/agent-list-tool.ts +2 -1
- package/src/agent/agent-output-tool.ts +2 -1
- package/src/agent/agent-stop-tool.ts +2 -1
- package/src/agent/app-deploy-plugin.ts +237 -0
- package/src/agent/autonomous-tools.ts +2 -1
- package/src/agent/coding-core-tools.ts +2 -1
- package/src/agent/loader.ts +2 -1
- package/src/agent/monad-agent-turn.ts +1 -1
- package/src/agent/runner.ts +10 -8
- package/src/agent/shared-app-tools.ts +8 -4
- package/src/agent/subagent-callable.ts +2 -1
- package/src/agent/terminal-surface.ts +2 -1
- package/src/agent/types.ts +2 -1
- package/src/agent-mission/driver.ts +7 -4
- package/src/agent-substrate/acp-implementer.ts +1 -1
- package/src/agent-substrate/pr-reviewer.ts +3 -0
- package/src/agent-substrate/self-review-cli.ts +79 -11
- package/src/agent-team/team-tools.ts +2 -1
- package/src/approval-modal.ts +14 -4
- package/src/ask-user-question/inline-resolver.ts +2 -1
- package/src/ask-user-question/tool.ts +2 -1
- package/src/auth/setup-link-tokens.fixture.ts +10 -1
- package/src/auth/setup-link-tokens.ts +176 -0
- package/src/auto-research/auto-mode/tool-enter.ts +2 -1
- package/src/auto-research/auto-mode/tool-exit.ts +2 -1
- package/src/auto-research/question-ladder-contract.ts +2 -9
- package/src/auto-research/tools/budget.ts +2 -1
- package/src/auto-research/tools/question-queue.ts +2 -1
- package/src/auto-research/tools/research-plan.ts +2 -1
- package/src/auto-research/tools/termination-check.ts +2 -1
- package/src/autopilot/build/llm-conflict-merge.ts +1 -1
- package/src/autopilot/build/nocturnal-deps.ts +1 -1
- package/src/autopilot/elanous-builtin-runner.ts +3 -2
- package/src/autopilot/llm-control-brain.ts +1 -1
- package/src/autopilot/mission-briefing-live.ts +1 -1
- package/src/autopilot/mission-budget.ts +1 -1
- package/src/autopilot/mission-codebase-gate.ts +9 -17
- package/src/autopilot/mission-decide-tool.ts +2 -1
- package/src/autopilot/mission-engine.ts +1 -1
- package/src/autopilot/mission-loop-policy.ts +1 -1
- package/src/autopilot/mission-notify.ts +1 -1
- package/src/autopilot/mission-origin.ts +1 -1
- package/src/autopilot/mission-phase-budget.ts +1 -1
- package/src/autopilot/mission-registry.ts +3 -7
- package/src/autopilot/mission-route-decision.ts +1 -1
- package/src/autopilot/mission-se-bridge.ts +2 -1
- package/src/autopilot/mission-tool.ts +2 -1
- package/src/autopilot/pr-manager.ts +134 -10
- package/src/autopilot/reuse-existence-explorer.ts +1 -1
- package/src/autopilot/tool-registry.ts +2 -1
- package/src/autopilot/track-agent.ts +1 -1
- package/src/autopilot/track-courier.ts +2 -1
- package/src/background-reasoning/patcher-llm-resolver.ts +1 -1
- package/src/boot/daemon-prompt-turn.ts +8 -2
- package/src/boot/daemon-tools/delegate-agent.ts +3 -2
- package/src/boot/daemon-tools/edit.ts +2 -1
- package/src/boot/daemon-tools/grep.ts +2 -1
- package/src/boot/daemon-tools/index.ts +4 -1
- package/src/boot/daemon-tools/plan.ts +2 -1
- package/src/boot/daemon-tools/pty-shell.ts +2 -1
- package/src/boot/daemon-tools/read.ts +2 -1
- package/src/boot/daemon-tools/self-implement.ts +2 -1
- package/src/boot/daemon-tools/types.ts +6 -1
- package/src/boot/daemon-tools/web-search.ts +2 -1
- package/src/boot/daemon-tools/web-terminal.ts +2 -1
- package/src/boot/daemon-tools/write.ts +2 -1
- package/src/briefing/brief-items.ts +2 -5
- package/src/briefing/claim-key.ts +4 -0
- package/src/budget/llm-cost.ts +6 -11
- package/src/capture/capture-tools.ts +2 -1
- package/src/capture/compare-panes.ts +2 -1
- package/src/capture/watch-pane.ts +2 -1
- package/src/cft/tools/andon-list.ts +2 -1
- package/src/cft/tools/emit-process-health.ts +2 -1
- package/src/cft/tools/escalate-ladder.ts +2 -1
- package/src/cft/tools/escalate-signal.ts +2 -1
- package/src/cft/tools/ishikawa-analyze.ts +2 -1
- package/src/cft/tools/pareto-analyze.ts +2 -1
- package/src/cft/tools/quick-kill-triage.ts +2 -1
- package/src/cft/tools/resolve-escalation.ts +2 -1
- package/src/cft/tools/root-cause-analyze.ts +2 -1
- package/src/cft/tools/run-dmaic.ts +2 -1
- package/src/cft/tools/run-fmea.ts +2 -1
- package/src/cft/tools/run-pdca.ts +2 -1
- package/src/cft/tools/write-a3.ts +2 -1
- package/src/channel-bot-token.ts +1 -1
- package/src/chat/chat-cli.ts +4 -1
- package/src/chat/hud-render.ts +1 -1
- package/src/chat/hud-segments-wire.ts +1 -1
- package/src/chat/index.ts +79 -51
- package/src/chat/pickers/state.ts +31 -4
- package/src/chat/solar-scene5-context.ts +65 -0
- package/src/chat/tool-render/dispatch.ts +12 -15
- package/src/chat/tool-render/types.ts +1 -1
- package/src/cli/agent-cli.ts +127 -12
- package/src/cli/app-cli.ts +108 -2
- package/src/cli/brief-cli.ts +1 -1
- package/src/cli/child-plugin-runtime.ts +62 -0
- package/src/cli/control-cli.ts +153 -13
- package/src/cli/decisions-cli.ts +1 -1
- package/src/cli/doctor-cli.ts +5 -2
- package/src/cli/doctor-readiness.ts +2 -2
- package/src/cli/guardian-cli.ts +1 -1
- package/src/cli/hooks-cli.ts +1 -1
- package/src/cli/hotspot-start-forecast.ts +57 -0
- package/src/cli/intake-source-cli.ts +1 -1
- package/src/cli/light-entry-route.ts +4 -1
- package/src/cli/llm-cli.ts +44 -0
- package/src/cli/llm-detect-cli.ts +31 -6
- package/src/cli/llm-mode-flag.ts +37 -0
- package/src/cli/logs-cli.ts +4 -1
- package/src/cli/machine-apply-from-capture.ts +22 -11
- package/src/cli/machine-cli.ts +2 -0
- package/src/cli/machine-setup-plan.ts +25 -6
- package/src/cli/machine-wsl-diagnosis.ts +342 -0
- package/src/cli/machine-wsl-setup.ts +553 -54
- package/src/cli/mcp-diagnose.ts +2 -2
- package/src/cli/mcp-login.ts +41 -14
- package/src/cli/member-key-token-cli.ts +75 -0
- package/src/cli/mission-config.ts +1 -1
- package/src/cli/msg-cli.ts +94 -14
- package/src/cli/msg-list-cli.ts +2 -2
- package/src/cli/nexus-show.ts +9 -210
- package/src/cli/open-guard.ts +95 -0
- package/src/cli/pod-cli.ts +1 -1
- package/src/cli/pr-cli.ts +356 -45
- package/src/cli/pr-land-conductor-map.ts +99 -0
- package/src/cli/pr-land-contract-shadow.ts +39 -0
- package/src/cli/pr-land-drift-radar.ts +348 -0
- package/src/cli/pr-land-drift-repair.ts +1 -1
- package/src/cli/pr-land-heavy-remote.ts +11 -12
- package/src/cli/pr-land-overlap-evidence.ts +67 -0
- package/src/cli/pr-land-pod-shadow-job.ts +1 -1
- package/src/cli/pr-land-refusal.ts +9 -0
- package/src/cli/pr-land-remote-git.ts +125 -0
- package/src/cli/provider-cli.ts +4 -10
- package/src/cli/pty-drive-cli.ts +1 -1
- package/src/cli/pwa-show-contract.ts +49 -0
- package/src/cli/pwa-show.ts +4 -24
- package/src/cli/pwa-test.ts +3 -3
- package/src/cli/q-cli.ts +124 -0
- package/src/cli/release-checklist-read-cli.ts +40 -3
- package/src/cli/release-checklist-remote.ts +114 -0
- package/src/cli/release-checklist-write.ts +1 -1
- package/src/cli/release-cli.ts +139 -29
- package/src/cli/release-run-status-cli.ts +135 -0
- package/src/cli/remote-eln-pty.ts +1 -1
- package/src/cli/resource-ledger-cli.ts +61 -1
- package/src/cli/review-carry.ts +82 -0
- package/src/cli/role-cli.ts +1 -1
- package/src/cli/secret-cli.ts +57 -2
- package/src/cli/self-update.ts +21 -5
- package/src/cli/setup-cli.ts +3 -1
- package/src/cli/setup-keys.ts +91 -4
- package/src/cli/shell-confirmation-policy.ts +45 -0
- package/src/cli/sim-cli.ts +158 -8
- package/src/cli/sim-suggest-cli.ts +34 -0
- package/src/cli/tailscale-serve.ts +2 -2
- package/src/cli/task-launch-supervisor.ts +79 -0
- package/src/cli/tasks-cli.ts +185 -44
- package/src/cli/usage-cli.ts +1 -1
- package/src/cli/voice-nl-switch.ts +2 -1
- package/src/cli/voice-status.ts +2 -1
- package/src/clipboard/image-attachment.ts +21 -0
- package/src/clipboard/paste.ts +28 -0
- package/src/code-edit/apply.ts +1 -1
- package/src/code-edit/plan-tool.ts +2 -1
- package/src/code-edit/tools.ts +2 -1
- package/src/codex/setup.ts +2 -4
- package/src/compact/auto.ts +1 -1
- package/src/conductor/tools/classify-goal.ts +2 -1
- package/src/context-bus/context-now-surfaces.ts +9 -4
- package/src/context-bus/context-now.ts +315 -29
- package/src/control-plane/member-tokens.ts +38 -11
- package/src/control-plane/remote-primary-candidates.ts +58 -0
- package/src/control-plane/server.ts +12 -0
- package/src/conv-substrate/message-block.ts +11 -0
- package/src/core-turn/run-core-turn.ts +3 -1
- package/src/core-turn/run-goal-loop.ts +2 -1
- package/src/core-turn/types.ts +2 -1
- package/src/crawl-capabilities/contracts.ts +130 -0
- package/src/crawl-capabilities/graph-extract.ts +41 -0
- package/src/crawl-capabilities/graph-registry.ts +66 -0
- package/src/crawl-capabilities/reddit.ts +44 -0
- package/src/crawl-capabilities/scrap-extract.ts +11 -0
- package/src/dashboard/acp-active-model.ts +1 -1
- package/src/dashboard/acp-boot.ts +2 -1
- package/src/dashboard/auto-compact-runtime.ts +1 -1
- package/src/dashboard/browser-chord-runtime.ts +3 -13
- package/src/dashboard/chat/acp-chat.ts +1 -1
- package/src/dashboard/classic-sidetab-mission.ts +2 -1
- package/src/dashboard/classic-tui-dispatch.ts +22 -0
- package/src/dashboard/compact-surface-assembly.ts +0 -2
- package/src/dashboard/compact-surface-dispatch.ts +0 -5
- package/src/dashboard/compact-surface-inventory.ts +0 -1
- package/src/dashboard/compact-surface-runtime.ts +0 -2
- package/src/dashboard/first-screen-band.ts +2 -50
- package/src/dashboard/index.ts +218 -870
- package/src/dashboard/input/dashboard-default-tool-builders.ts +2 -1
- package/src/dashboard/input/dashboard-view-shortcuts.ts +2 -7
- package/src/dashboard/input/mouse-conversation-popup-runtime.ts +1 -1
- package/src/dashboard/input/mouse-modal-hit-runtime.ts +1 -1
- package/src/dashboard/input/mouse-modal-surface-runtime.ts +1 -1
- package/src/dashboard/input/mouse-mode-switch-runtime.ts +1 -1
- package/src/dashboard/input/mouse-pane-hit-runtime.ts +1 -1
- package/src/dashboard/input/mouse-picker-runtime.ts +2 -2
- package/src/dashboard/input/mouse-status-line.ts +134 -0
- package/src/dashboard/input/mouse-wiring-loader.ts +13 -0
- package/src/dashboard/input/mouse-wiring-types.ts +346 -0
- package/src/dashboard/input/mouse-wiring.ts +33 -884
- package/src/dashboard/input/slash-executor.ts +1 -24
- package/src/dashboard/modals/pane.ts +0 -1
- package/src/dashboard/optional-tool-spec-runtime.ts +5 -36
- package/src/dashboard/panes/nav.ts +1 -1
- package/src/dashboard/plan-board-runtime.ts +1 -4
- package/src/dashboard/plan-mode-toggle-action.ts +2 -4
- package/src/dashboard/plugin-route-adapter.ts +350 -0
- package/src/dashboard/preview-widget-runtime.ts +0 -12
- package/src/dashboard/runtime/approvers.ts +14 -0
- package/src/dashboard/runtime/tui-deploy-confirm-channel.ts +59 -0
- package/src/dashboard/scenario-tools-boot.ts +32 -0
- package/src/dashboard/setup-inline.ts +2 -7
- package/src/dashboard/shell-slash-runtime.ts +0 -1
- package/src/dashboard/slash-runtime/dashboard-handlers.ts +25 -150
- package/src/dashboard/slash-runtime/decide-slash.ts +1 -60
- package/src/dashboard/slash-runtime/model-choices.ts +1 -1
- package/src/dashboard/slash-runtime/shell-slash.ts +0 -6
- package/src/dashboard/tool-catalog-observability.ts +2 -1
- package/src/dashboard/turn-lifecycle-runtime.ts +2 -1
- package/src/dashboard/widget-modal-popup.ts +2 -2
- package/src/debug/log.ts +6 -9
- package/src/debug/tui-log-tag.ts +2 -7
- package/src/decisions/decide-slash.ts +60 -0
- package/src/decisions/decision-ledger.ts +1 -1
- package/src/decisions/decision-linear-projection.ts +2 -1
- package/src/decisions/discord-decision-cards.ts +1 -1
- package/src/decisions/telegram-decision-cards.ts +1 -1
- package/src/design/open-design-client.ts +2 -1
- package/src/design/screen-contrast.ts +1 -1
- package/src/discord-agent.ts +1 -1
- package/src/discord-self-message.ts +4 -4
- package/src/discord-slash-wire.ts +1 -1
- package/src/discord-test-runner.ts +2 -1
- package/src/discord-voice-wire.ts +1 -1
- package/src/discord.ts +1 -1
- package/src/dispatch/authored-goal-queue.ts +1 -4
- package/src/dispatch/continuation-turn-runner.ts +3 -2
- package/src/dispatch/dig-goal-armer.ts +1 -1
- package/src/dispatch/replay-goal-armer.ts +1 -1
- package/src/display/hit-target.ts +1 -1
- package/src/display/modal-types-registry.ts +2 -7
- package/src/domains/coo-admin-tool.ts +3 -2
- package/src/domains/core-tools.ts +59 -2
- package/src/domains/dart.ts +3 -2
- package/src/domains/dashboard-data.ts +1 -1
- package/src/domains/dig-engine.ts +3 -2
- package/src/domains/elanous-data-dir.ts +7 -3
- package/src/domains/fact-check.ts +2 -1
- package/src/domains/finance-tools.ts +3 -2
- package/src/domains/finance.ts +1 -1
- package/src/domains/kg-consolidate.ts +1 -1
- package/src/domains/kg-extract.ts +3 -2
- package/src/domains/logs-tool.ts +2 -1
- package/src/domains/macro-store.ts +1 -1
- package/src/domains/market-posture-store.ts +13 -28
- package/src/domains/morning-detail.ts +96 -1
- package/src/domains/morning-essential.ts +3 -2
- package/src/domains/morning-report.ts +2 -2
- package/src/domains/opportunity-analysis.ts +1 -1
- package/src/domains/ops-facts-tool.ts +2 -1
- package/src/domains/ops-status-tool.ts +2 -1
- package/src/domains/outbound-alert.ts +2 -1
- package/src/domains/regime-db-path.ts +3 -0
- package/src/domains/regime-store.ts +2 -3
- package/src/domains/release-tool.ts +5 -4
- package/src/domains/retro-report.ts +3 -2
- package/src/domains/schedule-manage-tool.ts +2 -1
- package/src/domains/schedule-registry.ts +1 -1
- package/src/domains/se-build-tool.ts +2 -1
- package/src/domains/sec-13f.ts +1 -1
- package/src/domains/self-awareness-tool.ts +2 -1
- package/src/domains/session-query-tool.ts +2 -1
- package/src/domains/taste-capture.ts +1 -1
- package/src/domains/taste-propose.ts +1 -1
- package/src/domains/taste-sentiment.ts +1 -1
- package/src/domains/telegram-channels.ts +1 -1
- package/src/domains/telegram-kind-route.ts +1 -1
- package/src/domains/trade-decision-tool.ts +2 -1
- package/src/domains/trailing-stops.ts +2 -1
- package/src/domains/us-pulse.ts +3 -2
- package/src/domains/watch-default-scheduler.ts +1 -1
- package/src/domains/weekly-alpha.ts +3 -2
- package/src/drag-session-dashboard-wire.ts +1 -2
- package/src/error-report/report.ts +1 -1
- package/src/esc-abort-gate.ts +19 -1
- package/src/eval-prompt-cli.ts +78 -20
- package/src/execution-history.ts +4 -3
- package/src/expression/a11y.ts +1 -1
- package/src/expression/config/layers.ts +3 -11
- package/src/expression/i18n/types.ts +1 -1
- package/src/feedback/media.ts +10 -14
- package/src/finder/finder-modal.ts +1 -11
- package/src/fleet/cloud-burst-auto.ts +265 -0
- package/src/fleet/cloud-burst-runtime.ts +146 -0
- package/src/git-fs/git-cli.ts +508 -10
- package/src/git-fs/runner.ts +252 -1
- package/src/git-fs/worktree.ts +626 -41
- package/src/goals/slash.ts +0 -2
- package/src/graph-kinds/registry.ts +2 -2
- package/src/graph-runner/arg-open-proposal.ts +171 -0
- package/src/graph-runner/arg-supervisor.ts +281 -0
- package/src/graph-runner/capabilities.ts +243 -0
- package/src/graph-runner/capability-providers/market-data/INVENTORY-1109.md +48 -0
- package/src/graph-runner/capability-providers/market-data/README.md +25 -0
- package/src/graph-runner/capability-providers/market-data/arg-stock-all-providers-sim.ts +83 -0
- package/src/graph-runner/capability-providers/market-data/arg-stock-sim.ts +179 -0
- package/src/graph-runner/capability-providers/market-data/coingecko.ts +20 -0
- package/src/graph-runner/capability-providers/market-data/contract.ts +69 -0
- package/src/graph-runner/capability-providers/market-data/ecos.ts +38 -0
- package/src/graph-runner/capability-providers/market-data/eodhd.ts +56 -0
- package/src/graph-runner/capability-providers/market-data/finnhub.ts +49 -0
- package/src/graph-runner/capability-providers/market-data/fred.ts +28 -0
- package/src/graph-runner/capability-providers/market-data/free-declarations.ts +49 -0
- package/src/graph-runner/capability-providers/market-data/index.ts +14 -0
- package/src/graph-runner/capability-providers/market-data/kis.ts +118 -0
- package/src/graph-runner/capability-providers/market-data/kr-daily-sources.ts +42 -0
- package/src/graph-runner/capability-providers/market-data/krx.ts +54 -0
- package/src/graph-runner/capability-providers/market-data/market-secrets.ts +14 -0
- package/src/graph-runner/capability-providers/market-data/omni-sources.ts +133 -0
- package/src/graph-runner/capability-providers/market-data/registry.ts +85 -0
- package/src/graph-runner/capability-providers/market-data/stock-common.ts +54 -0
- package/src/graph-runner/capability-providers/market-data/toss.ts +124 -0
- package/src/graph-runner/capability-providers/market-data/upbit.ts +20 -0
- package/src/graph-runner/capability-providers/notify.ts +138 -0
- package/src/graph-runner/declared-heal-edges.ts +158 -0
- package/src/graph-runner/graph-approval-card.ts +6 -5
- package/src/graph-runner/graph-cli.ts +93 -6
- package/src/graph-runner/graph-grow-llm.ts +2 -1
- package/src/graph-runner/graph-instance.ts +254 -0
- package/src/graph-runner/graph-manifest-loader.ts +254 -0
- package/src/graph-runner/graph-notify.ts +1 -1
- package/src/graph-runner/graph-tick.ts +103 -27
- package/src/graph-runner/in-process-registry.ts +8 -0
- package/src/graph-runner/plugin-graph-entry.ts +120 -0
- package/src/graph-runner/provider-context.ts +28 -0
- package/src/graph-runner/release-gate-cutover-policy.ts +10 -0
- package/src/graph-runner/release-graph-manifest.ts +237 -0
- package/src/graph-runner/runner-primitives.ts +16 -0
- package/src/graph-runner/runner-routing.ts +136 -0
- package/src/graph-runner/runner-types.ts +243 -0
- package/src/graph-runner/runner.ts +1576 -444
- package/src/graph-runner/unit-shape.ts +76 -0
- package/src/graph-v2/lower.ts +514 -0
- package/src/graph-v2/n8n-import.ts +105 -0
- package/src/graph-wizard/generate.ts +1 -4
- package/src/graph-wizard/steps.ts +2 -2
- package/src/grok/credential.ts +3 -1
- package/src/grok.ts +1 -1
- package/src/grounding/sources-cli.ts +2 -1
- package/src/guardian/host-lease-policy.ts +21 -0
- package/src/guardian/host-lease.ts +219 -0
- package/src/harness/dispatch-backpressure.ts +1 -1
- package/src/harness/generic-skill-executor.ts +2 -4
- package/src/harness/grounding/mission-grounding-ladder.ts +2 -6
- package/src/harness/harness-cli-command.ts +1 -1
- package/src/harness/harness-salvage-cli.ts +1 -1
- package/src/harness/harness-substrate-default.ts +6 -2
- package/src/harness/helper-repair.ts +2 -1
- package/src/harness/nested-elanous-policy.ts +1 -1
- package/src/harness/pod-memory-policy.ts +188 -0
- package/src/harness/repository-name.ts +2 -1
- package/src/hitl/confirm.ts +3 -0
- package/src/hooks/dispatch.ts +2 -2
- package/src/hooks/receiver.ts +2 -1
- package/src/hq/hq.ts +25 -1
- package/src/hq/promote.ts +1 -1
- package/src/hq/repo-maintenance-schedule.ts +60 -0
- package/src/hq/repo-maintenance.ts +344 -0
- package/src/hq/seats.ts +34 -20
- package/src/hq/transfer.ts +1 -1
- package/src/import/apply.ts +1 -1
- package/src/index.ts +123 -56
- package/src/input-core/slash-filter.ts +32 -0
- package/src/instance/child-scope.ts +2 -1
- package/src/intake-plane/absorb-extract.ts +83 -0
- package/src/intake-plane/adapters/discord-ambient.ts +1 -1
- package/src/intake-plane/adapters/telegram-ambient.ts +1 -1
- package/src/intake-plane/ambient.ts +1 -1
- package/src/intake-plane/core.ts +32 -0
- package/src/intake-plane/discord-seat-work.ts +2 -1
- package/src/intake-plane/event-state.ts +61 -0
- package/src/intake-plane/items.ts +92 -37
- package/src/intake-plane/linear-secretary-runtime.ts +1 -1
- package/src/intake-plane/requirement-funnel.ts +3 -2
- package/src/intake-plane/route.ts +5 -62
- package/src/intake-plane/runtime-callables.ts +1 -1
- package/src/intake-plane/slash.ts +2 -1
- package/src/intake-plane/telegram-seat-work.ts +2 -1
- package/src/intake-plane/wish-benchmark-ledger.ts +91 -11
- package/src/intake-plane/wish-reply.ts +1 -1
- package/src/intelligence-map/model-watch-mission.ts +2 -2
- package/src/intelligence-map/tools/intelligence-map.ts +2 -1
- package/src/intelligence-map/tools/route-to-model.ts +2 -1
- package/src/keybindings.ts +0 -4
- package/src/knowhow/pack.ts +1 -4
- package/src/knowledge/tools/knowledge-query.ts +2 -1
- package/src/knowledge/tools/knowledge-write.ts +2 -1
- package/src/light-cli.ts +5 -0
- package/src/llm/bedrock-provider.ts +2 -2
- package/src/llm/difficulty.ts +2 -1
- package/src/llm/hq-proxy-provider.ts +84 -0
- package/src/llm/judge-layer.ts +2 -1
- package/src/llm/model-defaults.ts +2 -1
- package/src/llm/output-budget.ts +19 -0
- package/src/llm/provider-capabilities.ts +80 -0
- package/src/llm/provider-credentials.ts +44 -3
- package/src/llm/provider-detect.ts +2 -1
- package/src/llm/role-llm-cli.ts +2 -7
- package/src/llm/role-stream.ts +57 -0
- package/src/llm/route-decision.ts +1 -1
- package/src/llm/runtime-model-family.ts +1 -1
- package/src/llm/stream-fallback.ts +38 -0
- package/src/llm/stream-text.ts +8 -0
- package/src/llm/subscription-first.ts +4 -3
- package/src/llm/tool-spec.ts +45 -0
- package/src/llm/usable-llm.ts +2 -1
- package/src/llm/zai-coding-plan.ts +1 -1
- package/src/llm.ts +172 -162
- package/src/loops/agent-reply.ts +4 -2
- package/src/loops/budget.ts +1 -1
- package/src/loops/checker-contract.ts +39 -0
- package/src/loops/checker.ts +6 -56
- package/src/loops/fixtures/checker-registry-cycle/checker.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/helper.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/registry.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/schedule-checker.js +1 -0
- package/src/loops/fixtures/checker-registry-cycle/schedule-due.js +1 -0
- package/src/loops/graph-trigger-dispatch-lease.ts +227 -0
- package/src/loops/graph-trigger-dispatch.ts +95 -0
- package/src/loops/msg-address.ts +29 -9
- package/src/loops/msg-wake.ts +299 -45
- package/src/loops/orchestrator/inbox-once.ts +1 -1
- package/src/loops/orchestrator/inbox.ts +1 -1
- package/src/loops/orchestrator/overlap.ts +53 -12
- package/src/loops/orchestrator/seat-share.ts +1 -1
- package/src/loops/orchestrator/sim-impact-audit.ts +67 -0
- package/src/loops/orchestrator/tick.ts +129 -10
- package/src/loops/registry-contract.ts +39 -0
- package/src/loops/registry.ts +26 -35
- package/src/loops/schedule-due.ts +18 -0
- package/src/loops/seat-registry.ts +72 -0
- package/src/loops/train/decisions.ts +242 -0
- package/src/loops/train/hotspot-radius-ordering.ts +63 -0
- package/src/loops/train/worker-lifecycle.ts +228 -0
- package/src/maturity/bot-command-maturity.ts +1 -1
- package/src/maturity/feature-maturity.ts +11 -42
- package/src/maturity/tui-slash-maturity.ts +3 -5
- package/src/mcp/mcp-oauth.ts +168 -145
- package/src/mcp/server.ts +1 -1
- package/src/memory-intent.ts +13 -0
- package/src/memory.ts +5 -1
- package/src/model-tier/auto-route.ts +2 -2
- package/src/model-tier/llm-tier-map.ts +4 -2
- package/src/model-tier/review-effort.ts +1 -1
- package/src/model-tier/setup-suggest.ts +1 -1
- package/src/model-tier/simple-question-fast-route.ts +24 -0
- package/src/model-tier/tier-resolver.ts +1 -1
- package/src/model-tier/turn-tier.ts +2 -2
- package/src/models/prompts.ts +1 -1
- package/src/mouse-action-recipes.ts +5 -362
- package/src/msg/msg-hook.ts +115 -0
- package/src/msg/msg-post-office.ts +145 -11
- package/src/msg/msg-sse-server.ts +45 -1
- package/src/msg/msg-store.ts +22 -10
- package/src/mss/logging/gate-correlation.ts +110 -0
- package/src/mss/logging/log-federation.ts +13 -4
- package/src/mss/logging/log-store.ts +28 -9
- package/src/native-tool-catalog.ts +81 -7
- package/src/nexus/api/app-host-scoped-resolver.ts +11 -0
- package/src/nexus/api/board-api.ts +437 -0
- package/src/nexus/api/briefings-api.ts +108 -0
- package/src/nexus/api/chat-tier-intent.ts +2 -1
- package/src/nexus/api/config-model-tier.ts +2 -6
- package/src/nexus/api/consult-requests.ts +2 -1
- package/src/nexus/api/design-check.ts +1 -1
- package/src/nexus/api/discord-trigger-bot.ts +1 -1
- package/src/nexus/api/event-bus.ts +17 -0
- package/src/nexus/api/events.ts +11 -1
- package/src/nexus/api/graph-approvals-feed.ts +1 -1
- package/src/nexus/api/graph-route-allowlist.ts +8 -0
- package/src/nexus/api/grid.ts +1 -1
- package/src/nexus/api/grokbot-trigger-bot.ts +1 -1
- package/src/nexus/api/hq-llm-proxy.ts +154 -0
- package/src/nexus/api/http-server.ts +435 -7
- package/src/nexus/api/ingest-token.ts +3 -46
- package/src/nexus/api/intake-route.ts +1 -1
- package/src/nexus/api/llm-rotation.ts +2 -11
- package/src/nexus/api/mcp-widget-call-route.ts +1 -4
- package/src/nexus/api/member-event-store.ts +205 -0
- package/src/nexus/api/merge-approvals.ts +1 -1
- package/src/nexus/api/meta-api.ts +12 -1
- package/src/nexus/api/next-fluent-wiring.ts +1 -1
- package/src/nexus/api/openrouter-oauth.ts +184 -0
- package/src/nexus/api/operator.ts +1 -1
- package/src/nexus/api/ops-api.ts +154 -9
- package/src/nexus/api/ops-seats-sources.ts +1 -1
- package/src/nexus/api/outbound-report.ts +1 -1
- package/src/nexus/api/private-file-lock.ts +61 -0
- package/src/nexus/api/public-routes.ts +89 -2
- package/src/nexus/api/resource-ledger.ts +10 -5
- package/src/nexus/api/scraps.ts +154 -0
- package/src/nexus/api/seat-requests.ts +1 -1
- package/src/nexus/api/setup-child-llm.ts +8 -18
- package/src/nexus/api/setup-codex-login.ts +15 -3
- package/src/nexus/api/setup-credentials.fixture.ts +12 -0
- package/src/nexus/api/setup-credentials.ts +144 -0
- package/src/nexus/api/setup-obsidian-skills.ts +2 -1
- package/src/nexus/api/static-app.ts +8 -7
- package/src/nexus/api/telegram-trigger-bot.ts +2 -2
- package/src/nexus/api/tls-edge.ts +23 -0
- package/src/nexus/api/ux-sim-devices.ts +1 -4
- package/src/nexus/api/worktrees.ts +1 -1
- package/src/nexus/apps/app-actions.ts +144 -18
- package/src/nexus/apps/app-auth.ts +20 -3
- package/src/nexus/apps/app-contract.ts +92 -9
- package/src/nexus/apps/app-credential-capability.ts +14 -0
- package/src/nexus/apps/app-db-backup.ts +443 -0
- package/src/nexus/apps/app-db.ts +666 -8
- package/src/nexus/apps/app-deployment-owner.ts +28 -0
- package/src/nexus/apps/app-github-mirror.ts +224 -0
- package/src/nexus/apps/app-host.ts +333 -48
- package/src/nexus/apps/app-jobs.ts +347 -0
- package/src/nexus/apps/app-lifecycle-ledger.race-worker.ts +12 -0
- package/src/nexus/apps/app-lifecycle-ledger.ts +3 -1
- package/src/nexus/apps/app-promote.ts +116 -0
- package/src/nexus/apps/app-publish.ts +231 -0
- package/src/nexus/apps/app-realtime.ts +224 -0
- package/src/nexus/apps/app-screen-render.ts +207 -0
- package/src/nexus/apps/app-simulate.ts +5 -5
- package/src/nexus/apps/app-simulation-db.ts +113 -0
- package/src/nexus/apps/app-simulation-route.ts +104 -0
- package/src/nexus/apps/app-simulation-runner.ts +392 -0
- package/src/nexus/apps/app-simulation.ts +103 -0
- package/src/nexus/apps/app-site-deploy.ts +321 -0
- package/src/nexus/apps/app-source-snapshot.ts +385 -0
- package/src/nexus/apps/app-storage.ts +10 -1
- package/src/nexus/apps/console-address.ts +41 -0
- package/src/nexus/apps/drive-contract.ts +59 -0
- package/src/nexus/apps/funnel-observe.ts +194 -0
- package/src/nexus/apps/higgsfield-backend.ts +200 -0
- package/src/nexus/apps/higgsfield-cli-session.ts +157 -0
- package/src/nexus/apps/made-with-badge.ts +216 -0
- package/src/nexus/boot/register-mcp-clients.ts +1 -1
- package/src/nexus/config/secrets/cred-health.ts +58 -0
- package/src/nexus/config/secrets/cred-owner.ts +116 -0
- package/src/nexus/config/secrets/cred-slot-schema.ts +27 -0
- package/src/nexus/config/secrets/cred-slot-wizard.ts +37 -0
- package/src/nexus/config/secrets/cred-slots.ts +53 -0
- package/src/nexus/config/secrets/file-backend.ts +44 -1
- package/src/nexus/config/secrets/index.ts +68 -2
- package/src/nexus/config/secrets/registry.ts +40 -2
- package/src/nexus/config/secrets.ts +8 -0
- package/src/nexus/config/types.ts +4 -0
- package/src/nexus/daemon-endpoint.ts +2 -1
- package/src/nexus/index.ts +344 -17
- package/src/nexus/members/google-signin.ts +157 -0
- package/src/nexus/members/member-store.ts +658 -0
- package/src/nexus/members/member-token-api.ts +66 -0
- package/src/nexus/members/members-api.ts +531 -0
- package/src/nexus/outbound/format.ts +2 -0
- package/src/nexus/outbound/grokbot-adapter.ts +1 -1
- package/src/nexus/outbound/router.ts +7 -4
- package/src/nexus/pwa-resolution.ts +116 -0
- package/src/nexus/setup-status.ts +67 -2
- package/src/nexus/state/state.ts +8 -0
- package/src/nexus/static-dir-resolve.ts +1 -1
- package/src/notifications/bell-modal.ts +2 -0
- package/src/notifications/outbound-boot.ts +1 -1
- package/src/notifications/store.ts +2 -1
- package/src/oauth/codex-account-store.ts +27 -15
- package/src/oauth/codex-browser-login.ts +16 -0
- package/src/oauth/codex-owner-mirror.ts +44 -10
- package/src/oauth/codex.ts +1 -0
- package/src/oauth/provider-access-mirror.ts +46 -0
- package/src/oauth/store.ts +102 -10
- package/src/obsidian/vault-write-guard.ts +1 -1
- package/src/onboarding/first-chat-gate.ts +1 -1
- package/src/onboarding/first-run.ts +2 -4
- package/src/onboarding/help/llm.md +13 -0
- package/src/onboarding/key-setup.ts +1 -1
- package/src/onboarding/summary.ts +1 -1
- package/src/onboarding/web-first.ts +1 -1
- package/src/onboarding.ts +2 -5
- package/src/ops/overview-cache.ts +4 -3
- package/src/org/seat-budget.ts +2 -1
- package/src/org/stall-escalation.ts +1 -1
- package/src/plan-mode/tool-enter.ts +5 -3
- package/src/plan-mode/tool-exit.ts +3 -2
- package/src/plugin-hooks/events.ts +2 -1
- package/src/plugin-missions/llm-tools.ts +2 -1
- package/src/plugin-routes/llm-tools.ts +2 -1
- package/src/plugin-workflows/llm-tools.ts +2 -1
- package/src/plugins/core/declared-handler.ts +51 -0
- package/src/plugins/core/host.ts +221 -146
- package/src/plugins/core/manifest.ts +61 -1
- package/src/plugins/core/plugin-yaml.ts +157 -0
- package/src/plugins/core/route-adapter.ts +215 -0
- package/src/plugins/core/trust-store.ts +4 -3
- package/src/plugins/core/types.ts +7 -0
- package/src/plugins/install/plugin-install.ts +30 -3
- package/src/plugins/maker/plugin-maker.ts +1 -1
- package/src/policy/llm-policy.ts +2 -1
- package/src/pr-tool/census.ts +32 -10
- package/src/primitives/guards.ts +48 -0
- package/src/prompt-cache/anthropic.ts +2 -1
- package/src/prompt-cache/types.ts +2 -0
- package/src/prompt-enhance/enhance.ts +8 -4
- package/src/prompt-library/chat-conciseness.ts +1 -1
- package/src/prompt-library/registry.ts +1 -1
- package/src/provider-summary.ts +2 -1
- package/src/pty-shell/herdr-prompt.ts +62 -18
- package/src/pty-shell/pty-control-ipc.ts +5 -2
- package/src/registry/discovery/config.ts +2 -1
- package/src/relay/app-kill-switch.ts +310 -0
- package/src/relay/channel.ts +5 -0
- package/src/relay/host-connector.ts +577 -0
- package/src/relay/mux.ts +43 -12
- package/src/relay/relay-cli.ts +131 -6
- package/src/relay/relay-member-verifier.ts +36 -0
- package/src/relay/relay-server.ts +590 -20
- package/src/release-loop/auto-start.ts +32 -7
- package/src/release-loop/checklist.ts +25 -9
- package/src/release-loop/cloud-vm-adapter.ts +64 -0
- package/src/release-loop/feature-store.ts +1 -1
- package/src/release-loop/gate-host-reservation.ts +66 -2
- package/src/release-loop/gate-shard-ledger.ts +122 -15
- package/src/release-loop/gate-shards.ts +85 -15
- package/src/release-loop/gate-timeout-owner-cell.ts +266 -0
- package/src/release-loop/graph-event-adapters.ts +44 -0
- package/src/release-loop/incident-policy-handler.ts +78 -0
- package/src/release-loop/knowhow/pwa-host-heal.ts +92 -0
- package/src/release-loop/light-rc.ts +157 -14
- package/src/release-loop/macrophage-heal-node.ts +245 -20
- package/src/release-loop/macrophage-heal.ts +74 -3
- package/src/release-loop/macrophage-incident-recovery.ts +132 -0
- package/src/release-loop/macrophage-repair-ladder.ts +246 -0
- package/src/release-loop/merged-pr-checklist.ts +151 -1
- package/src/release-loop/op-channel.ts +117 -0
- package/src/release-loop/placement-ceo-load.ts +72 -0
- package/src/release-loop/placement-config.ts +28 -0
- package/src/release-loop/placement.ts +10 -85
- package/src/release-loop/rehearsal-cloud-host.ts +190 -0
- package/src/release-loop/rehearsal.ts +162 -35
- package/src/release-loop/release-failure-attribution.ts +410 -0
- package/src/release-loop/release-note.ts +1 -4
- package/src/release-loop/release-schedule.ts +6 -3
- package/src/release-loop/rubric.ts +1 -1
- package/src/release-loop/stage-mail.ts +1 -1
- package/src/release-loop/waiver-events.ts +328 -0
- package/src/repl/agent-turn.ts +3 -2
- package/src/repl/dispatch-meta.ts +2 -6
- package/src/repl/index.ts +218 -16
- package/src/repl/next-tui-message-blocks.ts +71 -0
- package/src/repl/shell-snapshot-router.ts +55 -0
- package/src/research/axis-fanout.ts +13 -13
- package/src/research/bloom-exemplars.ts +1 -3
- package/src/research/edge-decision.ts +1 -4
- package/src/research/lenses/working-backwards.ts +2 -9
- package/src/research/plugin-discovery.ts +1 -1
- package/src/research-bridge/crawl.ts +5 -0
- package/src/research-bridge/index.ts +5 -0
- package/src/resource-ledger/guardian-host-lease-heartbeat-worker.ts +27 -0
- package/src/resource-ledger/guardian-reconcile.ts +4 -1
- package/src/resource-ledger/host-readiness.ts +27 -0
- package/src/resource-ledger/resource-ledger.ts +336 -6
- package/src/retro/daily.ts +1 -1
- package/src/roles/machine-name.ts +2 -7
- package/src/roles/machine-profile-contract.ts +8 -0
- package/src/roles/machine-profile.ts +1 -1
- package/src/roles/role-lease-read.ts +1 -0
- package/src/runtime-identity.ts +25 -3
- package/src/scenarios/catalog.ts +1 -4
- package/src/scenarios/shorthand.ts +1 -4
- package/src/seat-dispatch/ceo-intent.ts +1 -1
- package/src/seat-loop/seat-loop.ts +2 -1
- package/src/seat-loop/seat-report.ts +2 -1
- package/src/self-dev/app-scratch-bootstrap.ts +47 -0
- package/src/self-dev/decompose.ts +2 -5
- package/src/self-dev/dev-cli.ts +18 -4
- package/src/self-dev/dev-pipeline.ts +29 -4
- package/src/self-dev/draft-sweep.ts +1 -2
- package/src/self-dev/review-provider-fallback.ts +1 -1
- package/src/self-dev/run-record-mirror.ts +1 -1
- package/src/self-dev/run-store-checkpoint.ts +53 -0
- package/src/self-dev/run-store-contract.ts +56 -0
- package/src/self-dev/run-store.ts +11 -110
- package/src/self-dev/run-supervisor.ts +131 -1
- package/src/self-dev/run-types.ts +4 -1
- package/src/self-dev/self-orchestrate-runtime.ts +3 -2
- package/src/self-dev/shard-run.ts +29 -7
- package/src/self-dev/sim-impact-wording.ts +51 -0
- package/src/self-dev/supervisor-verdict-edges.ts +1 -0
- package/src/self-implement/auto-open-pr.ts +1 -1
- package/src/self-implement/budget-gate.ts +2 -6
- package/src/self-implement/child-llm-preference.ts +1 -7
- package/src/self-implement/context-capsule-store.ts +1 -4
- package/src/self-implement/execution-clarification.ts +1 -1
- package/src/self-implement/follow-up-goals.ts +1 -1
- package/src/self-implement/gate-cli.ts +251 -4
- package/src/self-implement/gate-receipt-registry.ts +95 -4
- package/src/self-implement/gate-remote.ts +15 -5
- package/src/self-implement/goal-author-clarification.ts +2 -4
- package/src/self-implement/goal-author-cli.ts +1 -1
- package/src/self-implement/goal-author-decompose.ts +10 -13
- package/src/self-implement/goal-author.ts +38 -20
- package/src/self-implement/goal-documents-dir.ts +2 -1
- package/src/self-implement/graph-authority.ts +1 -1
- package/src/self-implement/graph-overlay-condition.ts +1 -1
- package/src/self-implement/graph-unit-flatten.ts +8 -1
- package/src/self-implement/graph-unit-resolver.ts +64 -16
- package/src/self-implement/graph-yaml.ts +262 -11
- package/src/self-implement/headless-elanous-driver.ts +21 -6
- package/src/self-implement/heal-intake.ts +1 -1
- package/src/self-implement/host-regate.ts +7 -3
- package/src/self-implement/l8-merge-queue.ts +75 -1
- package/src/self-implement/merge-train.ts +294 -28
- package/src/self-implement/observe-only.ts +1 -1
- package/src/self-implement/orchestrator.ts +1 -1
- package/src/self-implement/pod-warm-pool-profile.ts +64 -5
- package/src/self-implement/run-checkpoint.ts +2 -2
- package/src/self-implement/run-ledger-archive.ts +252 -0
- package/src/self-implement/run-ledger-compact.ts +6 -248
- package/src/self-implement/run-ledger-paths.ts +27 -0
- package/src/self-implement/run-ledger.ts +4 -19
- package/src/self-implement/seams.ts +2 -1
- package/src/self-implement/self-implement-cli.ts +1 -1
- package/src/self-implement/self-implement-runtime.ts +3 -2
- package/src/self-implement/stop-autoheal.ts +12 -2
- package/src/self-implement/train-gate-receipt.ts +6 -2
- package/src/session/chat.ts +50 -14
- package/src/session/compact-session.ts +1 -1
- package/src/session/index.ts +3 -0
- package/src/session/request-size-guard.ts +2 -1
- package/src/session-runtime/index.ts +16 -7
- package/src/session-runtime/tier-flip.ts +70 -24
- package/src/setup/cred-import-scan.ts +307 -0
- package/src/setup/llm-env-detect.ts +1 -1
- package/src/setup/service-key-catalog.ts +7 -3
- package/src/setup/service-keys.ts +5 -3
- package/src/shell-runner/index.ts +0 -2
- package/src/sidetab-core/model.ts +2 -1
- package/src/signal/lifecycle-record.ts +1 -8
- package/src/sim-world-device-catalog-history.json +3747 -0
- package/src/skills/connect.ts +2 -1
- package/src/skills/runner.ts +35 -215
- package/src/skills/shared-agent-skill-roots.ts +0 -3
- package/src/skills/skill-manifest.ts +211 -0
- package/src/skills/tools/acp-session.ts +3 -2
- package/src/skills/tools/agent-handoff.ts +2 -1
- package/src/skills/tools/agent-reply.ts +2 -1
- package/src/skills/tools/agent-room.ts +2 -1
- package/src/skills/tools/agent.ts +2 -1
- package/src/skills/tools/announce-completion.ts +2 -1
- package/src/skills/tools/api-call.ts +2 -1
- package/src/skills/tools/ast-grep.ts +2 -1
- package/src/skills/tools/browser-iphone.ts +2 -1
- package/src/skills/tools/budget.ts +2 -1
- package/src/skills/tools/capture-inject.ts +2 -1
- package/src/skills/tools/capture-source.ts +2 -1
- package/src/skills/tools/context.ts +2 -1
- package/src/skills/tools/control.ts +2 -1
- package/src/skills/tools/dashboard-config.ts +2 -1
- package/src/skills/tools/dashboard-slash.ts +2 -1
- package/src/skills/tools/dashboard-state.ts +2 -1
- package/src/skills/tools/dashboard-view.ts +5 -16
- package/src/skills/tools/dashboard-widget.ts +2 -1
- package/src/skills/tools/dev-harness.ts +2 -1
- package/src/skills/tools/edit.ts +2 -1
- package/src/skills/tools/glob.ts +2 -1
- package/src/skills/tools/grep.ts +3 -2
- package/src/skills/tools/index.ts +2 -1
- package/src/skills/tools/input-policy.ts +2 -1
- package/src/skills/tools/kr-flow.ts +2 -1
- package/src/skills/tools/lane-handoff.ts +2 -1
- package/src/skills/tools/list-dir.ts +2 -1
- package/src/skills/tools/llm-install.ts +2 -1
- package/src/skills/tools/llm-manager.ts +2 -1
- package/src/skills/tools/lsp/index.ts +3 -2
- package/src/skills/tools/lsp/pool.ts +1 -1
- package/src/skills/tools/lsp/server-registry.ts +2 -2
- package/src/skills/tools/market-quote.ts +2 -1
- package/src/skills/tools/mermaid-syntax.ts +2 -1
- package/src/skills/tools/mermaid.ts +2 -1
- package/src/skills/tools/msg-ask.ts +2 -1
- package/src/skills/tools/omni-search.ts +2 -1
- package/src/skills/tools/ops-ledger.ts +2 -1
- package/src/skills/tools/persistent-grounding.ts +2 -1
- package/src/skills/tools/phone-adb.ts +497 -0
- package/src/skills/tools/pty.ts +2 -1
- package/src/skills/tools/read.ts +2 -1
- package/src/skills/tools/relay-shell.ts +2 -1
- package/src/skills/tools/route.ts +2 -1
- package/src/skills/tools/run-tests.ts +2 -1
- package/src/skills/tools/set-hint.ts +2 -1
- package/src/skills/tools/shell-runner.ts +2 -1
- package/src/skills/tools/shell.ts +3 -2
- package/src/skills/tools/solve-mission.ts +2 -1
- package/src/skills/tools/spawn-coding-agent-headless.ts +2 -1
- package/src/skills/tools/terminal-matrix.ts +2 -1
- package/src/skills/tools/terminal-modal-inject.ts +2 -1
- package/src/skills/tools/terminal-modal.ts +2 -1
- package/src/skills/tools/theme-control.ts +2 -1
- package/src/skills/tools/tool-search-route.ts +5 -3
- package/src/skills/tools/tool-search-spec.ts +4 -2
- package/src/skills/tools/tool-search.ts +96 -3
- package/src/skills/tools/tty-snapshot.ts +2 -1
- package/src/skills/tools/web-search.ts +2 -1
- package/src/skills/tools/webfetch.ts +2 -1
- package/src/skills/tools/widget-inspector.ts +2 -1
- package/src/skills/tools/write.ts +2 -1
- package/src/skills/tools/youtube-transcript.ts +2 -1
- package/src/state/bridges/index.ts +0 -2
- package/src/state/bridges/plugin-host.ts +60 -29
- package/src/state/index.ts +0 -1
- package/src/status/popups.ts +2 -3
- package/src/status/status-provider-info.ts +2 -1
- package/src/steward/directive.ts +1 -1
- package/src/steward/rejudge-tick.ts +1 -1
- package/src/steward/triage.ts +1 -1
- package/src/storage/file-lock.ts +6 -3
- package/src/storage/object-store.ts +29 -3
- package/src/surface/llm-tools.ts +4 -3
- package/src/task-agent/entrance-shadow.ts +1 -4
- package/src/task-agent/map-reduce.ts +103 -12
- package/src/task-agent/map-run-ledger.ts +113 -0
- package/src/task-agent/parent-host.ts +37 -4
- package/src/task-agent/rejudge-on-head.ts +1 -1
- package/src/task-agent/task-hand.ts +1 -1
- package/src/task-agent/task-parent-role-llm.ts +2 -1
- package/src/task-orchestrator/boot.ts +1 -1
- package/src/task-orchestrator/external-policy.ts +1 -1
- package/src/task-orchestrator/runtimes/create.ts +2 -1
- package/src/task-orchestrator/runtimes/decompose.ts +2 -1
- package/src/task-orchestrator/runtimes/dispatch.ts +2 -1
- package/src/task-orchestrator/runtimes/get.ts +2 -1
- package/src/task-orchestrator/runtimes/kill.ts +2 -1
- package/src/task-orchestrator/runtimes/list.ts +2 -1
- package/src/task-orchestrator/runtimes/update.ts +2 -1
- package/src/task-orchestrator/surfaces/pod-command-job.ts +265 -26
- package/src/task-orchestrator/surfaces/pod-config-snapshot.ts +1 -1
- package/src/task-orchestrator/surfaces/pod-gate-deps.ts +2 -0
- package/src/task-orchestrator/surfaces/pod-gate-volume-ref.ts +308 -0
- package/src/task-orchestrator/surfaces/pod-host-acp-review.ts +1 -1
- package/src/task-orchestrator/surfaces/pod-image-source.ts +18 -3
- package/src/task-orchestrator/surfaces/pod-install-slots.ts +110 -0
- package/src/task-orchestrator/surfaces/pod-pool.ts +106 -13
- package/src/task-orchestrator/surfaces/pod-si-warm-host.ts +18 -3
- package/src/task-orchestrator/surfaces/pod-si-warm-provider.ts +90 -11
- package/src/task-orchestrator/surfaces/pod-si-warm-runner.ts +10 -1
- package/src/task-orchestrator/surfaces/pod-source-receive.ts +41 -17
- package/src/task-orchestrator/surfaces/pod-warm-provenance.ts +79 -0
- package/src/task-orchestrator/surfaces/pod-warm-switch.ts +176 -5
- package/src/task-orchestrator/surfaces/pod-warm-worker-pod.ts +25 -13
- package/src/task-orchestrator/surfaces/pod-warm-worker-protocol.ts +10 -0
- package/src/task-orchestrator/surfaces/pod-warm-worker-provider.ts +702 -37
- package/src/task-orchestrator/surfaces/pod-warm-worker-runtime.ts +21 -1
- package/src/task-orchestrator/surfaces/self-implement-pod.ts +40 -15
- package/src/task-orchestrator/surfaces/warm-host-probe.ts +31 -0
- package/src/task-orchestrator/tox-loop.ts +1 -1
- package/src/telegram-agent.ts +1 -1
- package/src/telegram-away-command.ts +6 -5
- package/src/telegram-commands.ts +2 -2
- package/src/telegram-project-command.ts +1 -1
- package/src/telegram-report.ts +9 -2
- package/src/telegram-run.ts +1 -1
- package/src/telegram-test-runner.ts +2 -1
- package/src/telegram.ts +30 -10
- package/src/test-utils/temp-dir-cleanup.ts +45 -0
- package/src/tool-router/index.ts +311 -0
- package/src/tool-runtime/artifact-runtimes.ts +2 -1
- package/src/tool-runtime/aside-selection-runtime.ts +2 -1
- package/src/tool-runtime/bash-approval.ts +14 -0
- package/src/tool-runtime/bash-runtime.ts +44 -0
- package/src/tool-runtime/browser-runtime.ts +2 -1
- package/src/tool-runtime/display-control-runtimes.ts +4 -3
- package/src/tool-runtime/elanous-asana-runtimes.ts +2 -1
- package/src/tool-runtime/elanous-autopilot-launch-runtime.ts +2 -1
- package/src/tool-runtime/elanous-control-runtimes.ts +2 -1
- package/src/tool-runtime/elanous-fs-list-runtime.ts +2 -1
- package/src/tool-runtime/elanous-fs-read-runtime.ts +2 -1
- package/src/tool-runtime/elanous-linear-issue-runtime.ts +3 -2
- package/src/tool-runtime/elanous-linear-secretary-runtime.ts +2 -1
- package/src/tool-runtime/elanous-obsidian-info-runtime.ts +2 -1
- package/src/tool-runtime/elanous-obsidian-search-runtime.ts +2 -1
- package/src/tool-runtime/elanous-showroom-broadcast-runtime.ts +2 -1
- package/src/tool-runtime/elanous-skills-list-runtime.ts +2 -1
- package/src/tool-runtime/elanous-task-submit-runtime.ts +2 -1
- package/src/tool-runtime/elanous-ux-sim-devices-runtime.ts +2 -1
- package/src/tool-runtime/find-repo-runtime.ts +2 -1
- package/src/tool-runtime/git-commit-runtime.ts +2 -1
- package/src/tool-runtime/git-pr-runtime.ts +2 -1
- package/src/tool-runtime/git-worktree-runtimes.ts +2 -1
- package/src/tool-runtime/goal-author-runtime.ts +2 -1
- package/src/tool-runtime/graph-mcp-runtimes.ts +2 -1
- package/src/tool-runtime/mcp-proxy-bootstrap.ts +2 -1
- package/src/tool-runtime/mirror-hints.ts +2 -1
- package/src/tool-runtime/pane-runtimes.ts +2 -1
- package/src/tool-runtime/persistent-grounding-runtime.ts +2 -1
- package/src/tool-runtime/pty-recording-runtimes.ts +2 -1
- package/src/tool-runtime/recording-runtimes.ts +2 -1
- package/src/tool-runtime/ref-consult-runtime.ts +2 -1
- package/src/tool-runtime/refs-gc-runtime.ts +2 -1
- package/src/tool-runtime/self-cognition-catalog.ts +1 -0
- package/src/tool-runtime/self-cognition-runtimes.ts +2 -1
- package/src/tool-runtime/set-working-dir-runtime.ts +2 -1
- package/src/tool-runtime/skill-exec-runtime.ts +3 -2
- package/src/tool-runtime/sync-repo-runtime.ts +2 -1
- package/src/tool-runtime/tool-search-runtime.ts +7 -3
- package/src/tool-runtime/truncation-store.ts +1 -1
- package/src/tool-runtime/types.ts +8 -1
- package/src/tool-runtime/undo-turn-runtime.ts +2 -1
- package/src/tool-runtime/web-terminal-live-camera.ts +2 -1
- package/src/tool-runtime/web-terminal-runtimes.ts +2 -1
- package/src/tool-runtime/web-terminal-screenshot.ts +2 -1
- package/src/tui/branches/app/index.ts +125 -0
- package/src/tui/branches/context.ts +102 -0
- package/src/tui/branches/decide.ts +11 -0
- package/src/tui/branches/first-screen.ts +20 -0
- package/src/tui/branches/harness.ts +32 -0
- package/src/tui/branches/memory.ts +9 -0
- package/src/tui/branches/now.ts +25 -0
- package/src/tui/branches/plugin-wizard.ts +149 -0
- package/src/tui/branches/sidetab/mission.ts +298 -0
- package/src/tui/branches/sidetab/route.ts +54 -0
- package/src/tui/branches/status.ts +75 -0
- package/src/tui/branches/term/route.ts +7 -0
- package/src/tui/chat/background-job-status.ts +36 -1
- package/src/tui/chat/execution-badge.ts +1 -1
- package/src/tui/chat/log-view.ts +137 -17
- package/src/tui/chat/message-block-view.ts +115 -0
- package/src/tui/core/agents.ts +87 -0
- package/src/tui/core/input.ts +70 -0
- package/src/tui/core/message-block-raw-ref.ts +53 -0
- package/src/tui/core/message-block-session.ts +33 -0
- package/src/tui/core/queue.ts +67 -0
- package/src/tui/core/registry.ts +260 -27
- package/src/tui/core/render.ts +307 -0
- package/src/tui/core/screen-paint-cache.ts +41 -0
- package/src/tui/core/turn.ts +126 -0
- package/src/tui/entry.ts +1017 -335
- package/src/tui/inline-choice.ts +163 -47
- package/src/tui/input/composer.ts +51 -26
- package/src/tui/input/inline-panel.ts +30 -0
- package/src/tui/input/pickers.ts +16 -218
- package/src/tui/input/slash-complete.ts +27 -0
- package/src/tui/mission-watch.ts +41 -0
- package/src/tui/persistent-user-memory.ts +53 -0
- package/src/tui/sidetab/attach.ts +20 -266
- package/src/tui/sidetab/herdr-portal.ts +7 -10
- package/src/tui/sidetab/remote.ts +1 -1
- package/src/tui/size-contract.ratchet.json +4 -0
- package/src/tui/slash/compact.ts +1 -1
- package/src/tui/slash/mission.ts +546 -0
- package/src/tui/slash/model.ts +49 -0
- package/src/tui/slash/new-session.ts +4 -3
- package/src/tui/slash/term/contracts.ts +273 -0
- package/src/tui/slash/term/handlers.ts +477 -0
- package/src/tui/slash/term.ts +15 -646
- package/src/tui-client/first-screen-guidance.ts +61 -0
- package/src/tui-client/local-chat-turn.ts +221 -18
- package/src/tui-client/mini-board-feed.ts +125 -0
- package/src/tui-client/mini-board-projection.ts +173 -0
- package/src/tui-client/next-shell-approval.ts +130 -0
- package/src/tui-client/next-wakeup.ts +2 -1
- package/src/tui-client/nexus-board-adapter.ts +179 -0
- package/src/tui-render-cache.ts +1 -1
- package/src/tui-terminal-contract.ts +54 -0
- package/src/tui.ts +2 -56
- package/src/ui/chrome/sidebar-shell-presentation.ts +0 -17
- package/src/ui/context-menu-host.ts +1 -2
- package/src/ui/context-menu-presenter.ts +3 -231
- package/src/ui/declarative/builder.ts +2 -16
- package/src/ui/declarative/builtin-view-catalog.ts +0 -22
- package/src/ui/declarative/decode.ts +1 -4
- package/src/ui/declarative/encode-specs.ts +52 -0
- package/src/ui/declarative/encode.ts +8 -42
- package/src/ui/declarative/index.ts +0 -2
- package/src/ui/declarative/presets.ts +0 -23
- package/src/ui/declarative/spec.ts +1 -4
- package/src/ui/drag-machine.ts +1 -2
- package/src/ui/modal-adapter.ts +1 -1
- package/src/ui/view.ts +2 -2
- package/src/ui/widgets/context-menu.ts +1 -1
- package/src/ui/widgets/dialog.ts +1 -1
- package/src/ui/widgets/file-dialog.ts +1 -1
- package/src/ui/widgets/permission-prompt.ts +1 -1
- package/src/ui/widgets/request-user-input-overlay.ts +1 -1
- package/src/ui/widgets/slash-menu.ts +1 -1
- package/src/user-config/chat.ts +316 -0
- package/src/user-config/orchestrator.ts +70 -0
- package/src/user-config/read.ts +103 -0
- package/src/user-config/reader.ts +11 -0
- package/src/user-config/schema.ts +178 -0
- package/src/user-config/shell.ts +8 -0
- package/src/user-config/sparse-config.ts +57 -0
- package/src/user-config/types.ts +1796 -0
- package/src/user-config/write.ts +451 -0
- package/src/user-config.ts +168 -3109
- package/src/ux/ux-config.ts +1 -1
- package/src/ux-sim/absorb-v2-runGraph-sim.ts +634 -0
- package/src/ux-sim/app-kill-switch-world.ts +69 -0
- package/src/ux-sim/app-scratch-bootstrap.ts +59 -0
- package/src/ux-sim/app-upgrade-path-world.ts +109 -0
- package/src/ux-sim/arg-macro-canvas-sim.ts +145 -0
- package/src/ux-sim/author-reviewer-precheck-device.ts +1 -1
- package/src/ux-sim/census-oracle-axis-world.ts +37 -0
- package/src/ux-sim/chain-land.ts +26 -4
- package/src/ux-sim/classic-tui-seat-scenarios.ts +87 -5
- package/src/ux-sim/cli-config-audit-device.ts +2 -2
- package/src/ux-sim/device-catalog-snapshot-fragments.ts +83 -0
- package/src/ux-sim/device-fidelity.ts +35 -5
- package/src/ux-sim/edge-creator-nightly.ts +611 -0
- package/src/ux-sim/edge-creator.ts +796 -0
- package/src/ux-sim/fake-absorb-ingest.ts +60 -0
- package/src/ux-sim/fake-adb-phone-world.ts +99 -0
- package/src/ux-sim/fake-agent-hook-host.ts +58 -0
- package/src/ux-sim/fake-android-client.ts +111 -0
- package/src/ux-sim/fake-app-db-backup-world.ts +65 -0
- package/src/ux-sim/fake-app-db-world.ts +105 -8
- package/src/ux-sim/fake-app-drive-world.ts +258 -0
- package/src/ux-sim/fake-app-failures.ts +63 -0
- package/src/ux-sim/fake-app-host.ts +51 -3
- package/src/ux-sim/fake-app-source-concurrent-writer.ts +16 -0
- package/src/ux-sim/fake-app-source-world.ts +59 -0
- package/src/ux-sim/fake-bin-args-sim.ts +136 -0
- package/src/ux-sim/fake-bin-install-helper.mjs +1 -1
- package/src/ux-sim/fake-bin.ts +111 -87
- package/src/ux-sim/fake-clock.ts +8 -0
- package/src/ux-sim/fake-cloud-billing-world.ts +518 -0
- package/src/ux-sim/fake-cloud-vm.ts +2 -0
- package/src/ux-sim/fake-cred.ts +78 -0
- package/src/ux-sim/fake-dns-cert.ts +58 -5
- package/src/ux-sim/fake-feeds.ts +189 -0
- package/src/ux-sim/fake-fetch.ts +47 -4
- package/src/ux-sim/fake-gh.ts +41 -2
- package/src/ux-sim/fake-google-drive-world.ts +81 -0
- package/src/ux-sim/fake-google-oauth.ts +88 -0
- package/src/ux-sim/fake-herdr.ts +39 -0
- package/src/ux-sim/fake-higgsfield.ts +13 -0
- package/src/ux-sim/fake-kubectl.ts +7 -0
- package/src/ux-sim/fake-land-queue.ts +39 -8
- package/src/ux-sim/fake-llm.ts +468 -13
- package/src/ux-sim/fake-market-feed.ts +114 -0
- package/src/ux-sim/fake-member-oidc-world.ts +92 -0
- package/src/ux-sim/fake-mobile-toolchain.ts +72 -0
- package/src/ux-sim/fake-nexus-board-server.ts +68 -0
- package/src/ux-sim/fake-nexus-plugin-wizard.ts +47 -0
- package/src/ux-sim/fake-ps.ts +10 -0
- package/src/ux-sim/fake-relay-world.ts +513 -0
- package/src/ux-sim/fake-telegram-outbound.ts +71 -0
- package/src/ux-sim/fake-temp-cleanup.ts +96 -0
- package/src/ux-sim/fault-pod-codex-503.ts +61 -41
- package/src/ux-sim/fixtures/kaist-child-artifacts/bad-search/search.html +1 -0
- package/src/ux-sim/fixtures/kaist-child-artifacts/home/index.html +1 -0
- package/src/ux-sim/fixtures/kaist-child-artifacts/search/search/index.html +1 -0
- package/src/ux-sim/fixtures/task-launch-entry.mjs +14 -0
- package/src/ux-sim/fixtures/train-manager-decision-v1.json +66 -0
- package/src/ux-sim/flutter-deploy-journey.ts +111 -0
- package/src/ux-sim/gate-closure-lazy-require-sim.ts +102 -0
- package/src/ux-sim/gate-image-layered-delta-sim.ts +93 -0
- package/src/ux-sim/gate-image-pin-handshake-sim.ts +147 -0
- package/src/ux-sim/gate-image-preflight-runtime-identity-flow-sim.ts +270 -0
- package/src/ux-sim/gate-image-preflight-runtime-identity-sim.ts +61 -0
- package/src/ux-sim/gate-receipt-file-closure-cas.ts +183 -0
- package/src/ux-sim/gate-repair-multi-file-sim.ts +132 -0
- package/src/ux-sim/gate-roster-second-pool.ts +2 -1
- package/src/ux-sim/gate-steady-state-proof-sim.ts +76 -0
- package/src/ux-sim/gcp-architect-expand-fake-world.ts +133 -0
- package/src/ux-sim/git-push-timeout-partial-outcome-remote-verify.ts +45 -0
- package/src/ux-sim/graph-design-sim.ts +260 -0
- package/src/ux-sim/graph-diff-apply.ts +169 -0
- package/src/ux-sim/graph-event-entry-world.ts +71 -0
- package/src/ux-sim/graph-placement-lease-world.ts +109 -0
- package/src/ux-sim/graph-resume-any-entry.ts +134 -0
- package/src/ux-sim/graph-run-lifecycle-world.ts +99 -0
- package/src/ux-sim/graph-trigger-hook-device.ts +146 -0
- package/src/ux-sim/hotspot-file-lease-world.ts +16 -0
- package/src/ux-sim/in-process-cli-539-file-adoption-sim.ts +124 -0
- package/src/ux-sim/in-process-cli.ts +254 -23
- package/src/ux-sim/install-one-liner-failsafe-device.ts +157 -0
- package/src/ux-sim/interaction.ts +36 -2
- package/src/ux-sim/ios-chat-edge-adapter.ts +147 -0
- package/src/ux-sim/light-rc-long-run-device.ts +44 -0
- package/src/ux-sim/log-volume-device.ts +41 -0
- package/src/ux-sim/mapreduce-multihost-sim.ts +158 -0
- package/src/ux-sim/mini-board-card.ts +95 -0
- package/src/ux-sim/mock-scenario-catalog.ts +100 -8
- package/src/ux-sim/mock-seat-pty-sequence.ts +9 -4
- package/src/ux-sim/multi-actor-world.ts +206 -0
- package/src/ux-sim/multi-tenant-relay-world.ts +531 -0
- package/src/ux-sim/network-sandbox.ts +31 -0
- package/src/ux-sim/next-tui-core-input.ts +65 -0
- package/src/ux-sim/next-tui-plugin-wizard-world.ts +27 -0
- package/src/ux-sim/next-tui-route-device.ts +20 -0
- package/src/ux-sim/next-tui-seat-scenarios.ts +365 -63
- package/src/ux-sim/nl-scenario.ts +56 -0
- package/src/ux-sim/outbound-guard-sim.ts +82 -0
- package/src/ux-sim/phone-pwa-selfheal.ts +163 -0
- package/src/ux-sim/plugin-release-observe-route-world.ts +92 -0
- package/src/ux-sim/plugin-yaml-gen-world.ts +62 -0
- package/src/ux-sim/pod-federation-sim.ts +196 -0
- package/src/ux-sim/pod-phase-prewarm-sim.ts +12 -0
- package/src/ux-sim/pod-phase-prewarm.ts +36 -0
- package/src/ux-sim/pod-reuse-match-by-kind-sim.ts +56 -0
- package/src/ux-sim/pod-reuse-world.ts +152 -1
- package/src/ux-sim/pr-land-drift-autorepair-device.ts +58 -0
- package/src/ux-sim/public-auth-provider-cloud-vm-sim.ts +111 -0
- package/src/ux-sim/pwa-provenance-badge-world.ts +25 -0
- package/src/ux-sim/pwa-retained-routes-world.ts +25 -0
- package/src/ux-sim/pwa-static-swap.ts +28 -0
- package/src/ux-sim/readiness-countdown.ts +332 -0
- package/src/ux-sim/real-target-sandbox.ts +209 -0
- package/src/ux-sim/release-day-0307-replay.ts +529 -0
- package/src/ux-sim/release-same-version-run-adoption-sim.ts +186 -0
- package/src/ux-sim/release-sim-rig-seat-guard-child.ts +57 -0
- package/src/ux-sim/release-sim-rig.ts +1035 -56
- package/src/ux-sim/repo-maintenance.ts +142 -0
- package/src/ux-sim/rla-context-release-status-arrival-event.ts +107 -0
- package/src/ux-sim/rla-macrophage-heal-timeout-stale-output-sim.ts +41 -0
- package/src/ux-sim/scenarios/rla-sim-vocab-node-edge.yaml +23 -0
- package/src/ux-sim/sim-coverage.ts +19 -1
- package/src/ux-sim/sim-receipt.ts +185 -0
- package/src/ux-sim/smart-merge-world.ts +693 -0
- package/src/ux-sim/ta-land-count-dispatcher-sim.ts +93 -0
- package/src/ux-sim/task-orchestrator-surfaces-self-implement-pod-device.ts +1 -1
- package/src/ux-sim/temp-git-remote.ts +25 -2
- package/src/ux-sim/tool-router-world.ts +137 -0
- package/src/ux-sim/train-manager-decision-sim.ts +6 -0
- package/src/ux-sim/train-manager-world.ts +188 -0
- package/src/ux-sim/user-config-default-sparse-sim.ts +68 -0
- package/src/ux-sim/user-config-tui-diet-sim.ts +71 -0
- package/src/ux-sim/warm-pool-declare-path-sim.ts +19 -0
- package/src/ux-sim/warm-pool-reuse-sim.ts +53 -16
- package/src/ux-sim/warm-pool-reuse-switch-sim.ts +111 -4
- package/src/ux-sim/warm-si-reuse-sim.ts +39 -12
- package/src/ux-sim/worktree-deps-shared-store.ts +45 -0
- package/src/ux-sim/world-chaos-runtime.ts +55 -19
- package/src/ux-sim/world-host-chaos.ts +185 -5
- package/src/ux-sim/world-regression-suite.ts +197 -0
- package/src/ux-sim/world-schema.ts +32 -12
- package/src/ux-sim/world-store.ts +7 -2
- package/src/ux-sim/world.ts +1069 -30
- package/src/version/packed-revision.json +1 -1
- package/src/video-pipeline/vflow-reference.ts +1 -2
- package/src/views/config.ts +0 -24
- package/src/views/product-compact-mode.ts +0 -6
- package/src/voice/channel-adapters/discord-voice-channel-adapter.ts +2 -5
- package/src/voice/channel-adapters/discord-voice-channel-commands.ts +1 -1
- package/src/voice/voice-streaming-stt-singleton.ts +1 -1
- package/src/voice/voice-tts-singleton.ts +1 -1
- package/src/widget-routing/pane-to-widget.ts +2 -3
- package/src/widget-routing/widget-dispatcher.ts +1 -2
- package/src/widgets/host.ts +2 -3
- package/src/widgets/mini-board.ts +72 -0
- package/src/widgets/types.ts +1 -1
- package/src/workflow-runtime/daemon.ts +11 -0
- package/src/workflow-runtime/executor.ts +1 -3
- package/src/workflow-runtime/parser.ts +3 -2
- package/src/workflow-runtime/schema.ts +1 -4
- package/src/workflow-runtime/triggers/webhook-source.ts +12 -0
- package/src/workspace-types.ts +0 -1
- package/templates/flutter-app-lecture-scrap/README.md +32 -0
- package/templates/flutter-app-lecture-scrap/android/app/build.gradle.kts +79 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/debug/AndroidManifest.xml +7 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/AndroidManifest.xml +46 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/kotlin/ai/elanous/lecture_scrap/MainActivity.kt +5 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/drawable/launch_background.xml +12 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/values/styles.xml +18 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/main/res/values-night/styles.xml +18 -0
- package/templates/flutter-app-lecture-scrap/android/app/src/profile/AndroidManifest.xml +7 -0
- package/templates/flutter-app-lecture-scrap/android/build.gradle.kts +24 -0
- package/templates/flutter-app-lecture-scrap/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/templates/flutter-app-lecture-scrap/android/gradle.properties +6 -0
- package/templates/flutter-app-lecture-scrap/android/settings.gradle.kts +26 -0
- package/templates/flutter-app-lecture-scrap/app.yaml +60 -0
- package/templates/flutter-app-lecture-scrap/lib/main.dart +392 -0
- package/templates/flutter-app-lecture-scrap/out/index.html +7 -0
- package/templates/flutter-app-lecture-scrap/pubspec.lock +348 -0
- package/templates/flutter-app-lecture-scrap/pubspec.yaml +14 -0
- package/templates/flutter-app-translator/README.md +41 -0
- package/templates/flutter-app-translator/lib/main.dart +602 -0
- package/templates/flutter-app-translator/lib/recording_cleanup.dart +8 -0
- package/templates/flutter-app-translator/lib/session_epoch.dart +22 -0
- package/templates/flutter-app-translator/pubspec.yaml +24 -0
- package/templates/flutter-app-translator/test/session_lifecycle_test.dart +168 -0
- package/templates/flutter-app-voice-note/README.md +34 -0
- package/templates/flutter-app-voice-note/android/app/build.gradle.kts +85 -0
- package/templates/flutter-app-voice-note/android/app/src/debug/AndroidManifest.xml +7 -0
- package/templates/flutter-app-voice-note/android/app/src/main/AndroidManifest.xml +59 -0
- package/templates/flutter-app-voice-note/android/app/src/main/kotlin/com/example/flutter_app_voice_note/MainActivity.kt +5 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/drawable/launch_background.xml +12 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/drawable-v21/launch_background.xml +12 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/values/styles.xml +18 -0
- package/templates/flutter-app-voice-note/android/app/src/main/res/values-night/styles.xml +18 -0
- package/templates/flutter-app-voice-note/android/app/src/profile/AndroidManifest.xml +7 -0
- package/templates/flutter-app-voice-note/android/build.gradle.kts +24 -0
- package/templates/flutter-app-voice-note/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/templates/flutter-app-voice-note/android/gradle.properties +6 -0
- package/templates/flutter-app-voice-note/android/settings.gradle.kts +26 -0
- package/templates/flutter-app-voice-note/app.yaml +18 -0
- package/templates/flutter-app-voice-note/ios/Flutter/AppFrameworkInfo.plist +24 -0
- package/templates/flutter-app-voice-note/ios/Flutter/Debug.xcconfig +1 -0
- package/templates/flutter-app-voice-note/ios/Flutter/Release.xcconfig +1 -0
- package/templates/flutter-app-voice-note/ios/Runner/AppDelegate.swift +16 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json +122 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +23 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
- package/templates/flutter-app-voice-note/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md +5 -0
- package/templates/flutter-app-voice-note/ios/Runner/Base.lproj/LaunchScreen.storyboard +37 -0
- package/templates/flutter-app-voice-note/ios/Runner/Base.lproj/Main.storyboard +26 -0
- package/templates/flutter-app-voice-note/ios/Runner/Info.plist +83 -0
- package/templates/flutter-app-voice-note/ios/Runner/Runner-Bridging-Header.h +1 -0
- package/templates/flutter-app-voice-note/ios/Runner/SceneDelegate.swift +6 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.pbxproj +647 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +119 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/contents.xcworkspacedata +7 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/templates/flutter-app-voice-note/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/templates/flutter-app-voice-note/ios/RunnerTests/RunnerTests.swift +12 -0
- package/templates/flutter-app-voice-note/lib/main.dart +765 -0
- package/templates/flutter-app-voice-note/lib/voice_note_service.dart +341 -0
- package/templates/flutter-app-voice-note/out/index.html +11 -0
- package/templates/flutter-app-voice-note/pubspec.lock +777 -0
- package/templates/flutter-app-voice-note/pubspec.yaml +24 -0
- package/templates/flutter-app-voice-note/test/voice_note_service_test.dart +559 -0
- package/templates/next-app-lecture-scrap/app/layout.jsx +3 -0
- package/templates/next-app-lecture-scrap/app/notes/new/page.jsx +12 -0
- package/templates/next-app-lecture-scrap/app/page.jsx +9 -0
- package/templates/next-app-lecture-scrap/app/search/page.jsx +10 -0
- package/templates/next-app-lecture-scrap/app.yaml +88 -0
- package/templates/next-app-lecture-scrap/next.config.mjs +1 -0
- package/templates/next-app-lecture-scrap/package.json +20 -0
- package/templates/next-app-shop-studio/app/layout.tsx +15 -0
- package/templates/next-app-shop-studio/app/page.tsx +32 -0
- package/templates/next-app-shop-studio/app.yaml +90 -0
- package/templates/next-app-shop-studio/next.config.ts +8 -0
- package/templates/next-app-shop-studio/package.json +20 -0
- package/templates/next-app-translator/app.yaml +3 -1
- package/templates/next-app-voice-note/app.yaml +13 -2
- package/test/helpers/dashboard-source.ts +110 -0
- package/apps/pwa/out/404/index.html +0 -1
- package/apps/pwa/out/404.html +0 -1
- package/apps/pwa/out/_next/static/chunks/03e0d6dd.700c7936da5b58dc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/08c5076c.5caa59440568d9fd.js +0 -122
- package/apps/pwa/out/_next/static/chunks/1133.3801860878ce88b3.js +0 -90
- package/apps/pwa/out/_next/static/chunks/122.8b918db079a217b3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1262.382ab717777b7876.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1282.b1839574a7174818.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1289.90573260d680c2c4.js +0 -104
- package/apps/pwa/out/_next/static/chunks/1292.a5ad38120c4f4c91.js +0 -8
- package/apps/pwa/out/_next/static/chunks/13-a66d199eb241ebdd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1407.738fdf1a0494400e.js +0 -62
- package/apps/pwa/out/_next/static/chunks/1544.b54c381a64374891.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1626-e27033153bdeace1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1709-9d15a13770cf351e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/174-48f4dbaadfd63cfe.js +0 -1
- package/apps/pwa/out/_next/static/chunks/1791.2d4dc98bb4477808.js +0 -64
- package/apps/pwa/out/_next/static/chunks/1895.8083fc998e96e187.js +0 -115
- package/apps/pwa/out/_next/static/chunks/20-e5b5cb74a2a5bb5d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2081-daa5ad7b1b89adff.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2097.0b609686216a65c5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2157-e5b53879e832dcaf.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2195.309f603cd694b342.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2264-db91ffbe7db2bec9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2514-c999158b591411cc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2534-57d4eb7a68b899ac.js +0 -1
- package/apps/pwa/out/_next/static/chunks/2566.4bd6b4d466b415bf.js +0 -309
- package/apps/pwa/out/_next/static/chunks/2769-b57dccc1a2780bc9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3145.a1fae3cb5ff3e38f.js +0 -74
- package/apps/pwa/out/_next/static/chunks/3273.01f6a479510f3745.js +0 -1
- package/apps/pwa/out/_next/static/chunks/332.dc6c432ef47a38bd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3334.22d96c812cd3499d.js +0 -149
- package/apps/pwa/out/_next/static/chunks/337.e243cda2c1de2d72.js +0 -24
- package/apps/pwa/out/_next/static/chunks/3399-2aa9d084ec2b4f91.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3425-79876b2e27c2bf21.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3567.f123fed09c981929.js +0 -34
- package/apps/pwa/out/_next/static/chunks/3578-1c7b5d1f3177154a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3652-baf6f94c7ab62f8b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/3819-0819a0e58e075bc4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/384.08e43ae443d798b7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/392.88e4871679543f05.js +0 -24
- package/apps/pwa/out/_next/static/chunks/3955.a29bd2ca82a3b139.js +0 -23
- package/apps/pwa/out/_next/static/chunks/3970.3b0b5d94ea0b60cc.js +0 -2
- package/apps/pwa/out/_next/static/chunks/4042.d51c4afd58eb3c9d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4053-4f494b4b77904727.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4090.2ac256e4465ce23a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4171-341d135bb272be82.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4231.6c49fe66b025f465.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4317-d2132e3be869b36b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/436.bdfc3533c90ab95b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4406.1c70154db26f6ca3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4469-361edcba09e0eb1b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4513.35e176155fcac151.js +0 -1
- package/apps/pwa/out/_next/static/chunks/4523.1de9ececca7bb35c.js +0 -27
- package/apps/pwa/out/_next/static/chunks/4743.202838e9e44d1890.js +0 -38
- package/apps/pwa/out/_next/static/chunks/4762.cfb596785785a35d.js +0 -79
- package/apps/pwa/out/_next/static/chunks/4859.e5532ce5f6dfb5c9.js +0 -32
- package/apps/pwa/out/_next/static/chunks/5002-8af817fe59d06e9c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5015.9843edccbdec9dcc.js +0 -94
- package/apps/pwa/out/_next/static/chunks/5046-129cd38c01b0e1a6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5226.21335a67dbd6769b.js +0 -226
- package/apps/pwa/out/_next/static/chunks/5268-60a68ca7fc42517d.js +0 -25
- package/apps/pwa/out/_next/static/chunks/5366.ebeeaf7de80d3ca9.js +0 -193
- package/apps/pwa/out/_next/static/chunks/5411-713ef15cc7235cf6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5505-467d5b66c0f6604f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5665-700d710daec0a3a8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/583d9398.977d3658a34faab6.js +0 -62
- package/apps/pwa/out/_next/static/chunks/584.760ea6f9640a2330.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5846-91344971864969a6.js +0 -1
- package/apps/pwa/out/_next/static/chunks/5902.99e8a94fe5a52f2d.js +0 -77
- package/apps/pwa/out/_next/static/chunks/60-0bd459e227e19e2b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6039.6b54b0dbd98ce3d9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6048.7bbaec360ac24a83.js +0 -36
- package/apps/pwa/out/_next/static/chunks/6067-ee1f7f126eb7edba.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6284.f8120f5daaea3e99.js +0 -286
- package/apps/pwa/out/_next/static/chunks/6299.ac4c5fb874605cb9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6397.7ea605814f73c962.js +0 -148
- package/apps/pwa/out/_next/static/chunks/6459.ddf3a045461f0277.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6506.f32c4e8db47a4d04.js +0 -41
- package/apps/pwa/out/_next/static/chunks/6650.7c18ed630c8df5f6.js +0 -217
- package/apps/pwa/out/_next/static/chunks/6672.dc8faf8315bed1ec.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6720-9f2b574e2778c51e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6901.06042eea29545f49.js +0 -1
- package/apps/pwa/out/_next/static/chunks/6964-ddcc66e773813bb9.js +0 -1
- package/apps/pwa/out/_next/static/chunks/70160b1f.e9b0c3183f852774.js +0 -1
- package/apps/pwa/out/_next/static/chunks/726ffad1-541c403c50188556.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7370.5e62aa60f70eab3a.js +0 -287
- package/apps/pwa/out/_next/static/chunks/7398.0f969552779fc929.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7463-2d9010477f346643.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7616.90f498934db729c5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7636.a2019ded999e3313.js +0 -93
- package/apps/pwa/out/_next/static/chunks/7679.fff5f504d80d8efa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7680.8a882f1e69f29d04.js +0 -1
- package/apps/pwa/out/_next/static/chunks/780.fef3f7eab136cfb2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/7913.111fcb6384514824.js +0 -1
- package/apps/pwa/out/_next/static/chunks/79e58824.98894b54fea1ebeb.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8053-787355829bcce0fc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/81.14ce7dd1f5f076b5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8155-e80f82cd593d37e0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8173.4cdfbe651f7b5b42.js +0 -1
- package/apps/pwa/out/_next/static/chunks/818-4680f45366d9d817.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8289.e422989d7d3a3b3e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8330-65b8ffc4adafddda.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8347-9d4560fee007a4a7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8634-fa442da5f7bf2646.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8641.2e059c30fc167758.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8702.b18812eda87d0d96.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8868.53e897d2e917ba66.js +0 -5
- package/apps/pwa/out/_next/static/chunks/8991.ea9c4a7cd21e8ab0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/8d86c5fb.bb592b68be6b2dd1.js +0 -160
- package/apps/pwa/out/_next/static/chunks/9041.fb24e17368fc7c0c.js +0 -9
- package/apps/pwa/out/_next/static/chunks/9061-52f95217516a27ea.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9147.5721390c3c3eb275.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9288.92a602e56f3c3235.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9384.eca46b93339ff473.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9441-11ce6d0c0489a635.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9633.e6c9740bd6532344.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9750-52fc8ea133cbdd10.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9787-88bf04f4efec6a87.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9866.26519d8848018524.js +0 -1
- package/apps/pwa/out/_next/static/chunks/9932.53788b29e036cf7e.js +0 -66
- package/apps/pwa/out/_next/static/chunks/9948.c9ce32e9de4d6112.js +0 -86
- package/apps/pwa/out/_next/static/chunks/9eb16190.04c6ae4915f4a9a3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/ae5abe9f.937147329556d162.js +0 -18
- package/apps/pwa/out/_next/static/chunks/app/_not-found/page-47c27b54524c7fa5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/approvals/page-9f612bc57ce11518.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/apps/page-8f42d3f8a3c479b2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/board/page-fca38e9721b2e291.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/botlab/page-d76f695cc9aa66da.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/bots/page-6a4a92e785e30a96.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ceo/page-489f91f71cc95c1f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/chat/page-e26b02e36ed57ff7.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/consult/page-8b6d2222230d6681.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/control/page-b6d3b8924598e180.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/decisions/page-99ae8ef441d501e1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/design-check/page-e267c49dabb08ed1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/editor/page-7f93783cd38fd2b4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/exec/page-ad71c7f877d1ade8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/field/page-c46377fc61262679.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/healthz/route-47c27b54524c7fa5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/inside/page-65d6902d87acd8ae.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/intake/page-07c809fa1f01af06.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/layout-f7f6914dfccec337.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live/page-122697e5567e1ff3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/live-run/page-49562e02f95095bc.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/loops/page-99ae848af2397c3d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/market/page-46d8a6d324c0e2f1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/morning/page-de6f870e5608e6de.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/not-found-ea2df30943a87c71.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/observatory/page-98b024890b62cf3b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/checklist/page-c8f0e20b66b28ffa.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/release/page-7c3611d8aad20b6b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/resources/page-e28c2e5e4b09d07b.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/ops/seats/page-4c00dd145567e03c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/outputs/page-04897c35a1b0f31c.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/page-cd3b5f3ffdd042f8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/reflection/page-481cefac3cfae8e2.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/scheduler/page-5d4e9f1acd8a3e76.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/sessions/page-508eac8c609008c8.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/devices/page-2647b6064ec03f6d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/settings/page-06bd8804fb5461c0.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/done/page-7f170c47d678308f.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/layout-47c27b54524c7fa5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/setup/page-2775bd94657214dd.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/share/page-3d4c64344a7849d1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/showroom/page-35ecc675ece7f1b1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/tasks/page-212690c5984d0bb5.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/term/page-c3ce5e2d8719a62d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/today/page-20e0f8fd07394b92.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/trace/page-2e41cba602b85777.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/vault/page-cdfaf3c619b41ee3.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/chat-ui/page-3a0cad7feda4ba84.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workflows/page-b548ef224f7a2c4e.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/workspace/page-840ebf9a8df1e608.js +0 -1
- package/apps/pwa/out/_next/static/chunks/app/worktrees/page-9c92234d0c6fc211.js +0 -1
- package/apps/pwa/out/_next/static/chunks/cefbab05-d77e78efac6f0805.js +0 -1
- package/apps/pwa/out/_next/static/chunks/d80a33eb.43d7188f45a1df0f.js +0 -66
- package/apps/pwa/out/_next/static/chunks/framework-e606293b68d3c2a4.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-4ee3ac293afcb363.js +0 -1
- package/apps/pwa/out/_next/static/chunks/main-app-fa9105027513fb32.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_app-259505853c97c4e1.js +0 -1
- package/apps/pwa/out/_next/static/chunks/pages/_error-9189a5f75b31099d.js +0 -1
- package/apps/pwa/out/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/apps/pwa/out/_next/static/chunks/webpack-24fcc4e4a45c4fbb.js +0 -1
- package/apps/pwa/out/_next/static/css/085673d826b98b62.css +0 -1
- package/apps/pwa/out/_next/static/css/599369d853c61df7.css +0 -31
- package/apps/pwa/out/_next/static/css/659eccb5db697b76.css +0 -1
- package/apps/pwa/out/_next/static/css/694b79ddfe810a75.css +0 -1
- package/apps/pwa/out/_next/static/css/9e19f9d740cf4dcb.css +0 -1
- package/apps/pwa/out/_next/static/media/22a5144ee8d83bca-s.p.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/9766a7e9e2e0ad5a-s.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/aa016aab0e6d1295-s.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/b66cf8e69499582a-s.woff2 +0 -0
- package/apps/pwa/out/_next/static/media/f639721981034f88-s.woff2 +0 -0
- package/apps/pwa/out/_next/static/myEvhO9EDn1k6MAMqnQJd/_buildManifest.js +0 -1
- package/apps/pwa/out/_next/static/myEvhO9EDn1k6MAMqnQJd/_ssgManifest.js +0 -1
- package/apps/pwa/out/approvals/index.html +0 -1
- package/apps/pwa/out/approvals/index.txt +0 -33
- package/apps/pwa/out/apps/index.html +0 -1
- package/apps/pwa/out/apps/index.txt +0 -33
- package/apps/pwa/out/board/index.html +0 -1
- package/apps/pwa/out/board/index.txt +0 -33
- package/apps/pwa/out/botlab/index.html +0 -1
- package/apps/pwa/out/botlab/index.txt +0 -30
- package/apps/pwa/out/bots/index.html +0 -1
- package/apps/pwa/out/bots/index.txt +0 -30
- package/apps/pwa/out/ceo/index.html +0 -1
- package/apps/pwa/out/ceo/index.txt +0 -33
- package/apps/pwa/out/chat/index.html +0 -1
- package/apps/pwa/out/chat/index.txt +0 -30
- package/apps/pwa/out/consult/index.html +0 -1
- package/apps/pwa/out/consult/index.txt +0 -33
- package/apps/pwa/out/control/index.html +0 -1
- package/apps/pwa/out/control/index.txt +0 -33
- package/apps/pwa/out/decisions/index.html +0 -1
- package/apps/pwa/out/decisions/index.txt +0 -30
- package/apps/pwa/out/design-check/index.html +0 -1
- package/apps/pwa/out/design-check/index.txt +0 -33
- package/apps/pwa/out/editor/index.html +0 -1
- package/apps/pwa/out/editor/index.txt +0 -35
- package/apps/pwa/out/exec/index.html +0 -1
- package/apps/pwa/out/exec/index.txt +0 -33
- package/apps/pwa/out/field/index.html +0 -1
- package/apps/pwa/out/field/index.txt +0 -33
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Bold.ttf +0 -0
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-BoldItalic.ttf +0 -0
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Italic.ttf +0 -0
- package/apps/pwa/out/fonts/JetBrainsMonoNerdFontMono-Regular.ttf +0 -0
- package/apps/pwa/out/healthz +0 -1
- package/apps/pwa/out/icons/elanous-16.png +0 -0
- package/apps/pwa/out/icons/elanous-180.png +0 -0
- package/apps/pwa/out/icons/elanous-192.png +0 -0
- package/apps/pwa/out/icons/elanous-32.png +0 -0
- package/apps/pwa/out/icons/elanous-512.png +0 -0
- package/apps/pwa/out/index.html +0 -1
- package/apps/pwa/out/index.txt +0 -30
- package/apps/pwa/out/inside/index.html +0 -1
- package/apps/pwa/out/inside/index.txt +0 -32
- package/apps/pwa/out/intake/index.html +0 -1
- package/apps/pwa/out/intake/index.txt +0 -33
- package/apps/pwa/out/live/index.html +0 -1
- package/apps/pwa/out/live/index.txt +0 -35
- package/apps/pwa/out/live-run/index.html +0 -1
- package/apps/pwa/out/live-run/index.txt +0 -35
- package/apps/pwa/out/loops/index.html +0 -1
- package/apps/pwa/out/loops/index.txt +0 -31
- package/apps/pwa/out/manifest.webmanifest +0 -31
- package/apps/pwa/out/market/index.html +0 -1
- package/apps/pwa/out/market/index.txt +0 -30
- package/apps/pwa/out/morning/index.html +0 -1
- package/apps/pwa/out/morning/index.txt +0 -33
- package/apps/pwa/out/observatory/index.html +0 -1
- package/apps/pwa/out/observatory/index.txt +0 -33
- package/apps/pwa/out/offline.html +0 -84
- package/apps/pwa/out/ops/checklist/index.html +0 -1
- package/apps/pwa/out/ops/checklist/index.txt +0 -30
- package/apps/pwa/out/ops/release/index.html +0 -1
- package/apps/pwa/out/ops/release/index.txt +0 -30
- package/apps/pwa/out/ops/resources/index.html +0 -1
- package/apps/pwa/out/ops/resources/index.txt +0 -30
- package/apps/pwa/out/ops/seats/index.html +0 -1
- package/apps/pwa/out/ops/seats/index.txt +0 -30
- package/apps/pwa/out/outputs/index.html +0 -1
- package/apps/pwa/out/outputs/index.txt +0 -30
- package/apps/pwa/out/reflection/index.html +0 -1
- package/apps/pwa/out/reflection/index.txt +0 -31
- package/apps/pwa/out/scheduler/index.html +0 -1
- package/apps/pwa/out/scheduler/index.txt +0 -33
- package/apps/pwa/out/sessions/index.html +0 -1
- package/apps/pwa/out/sessions/index.txt +0 -30
- package/apps/pwa/out/settings/devices/index.html +0 -1
- package/apps/pwa/out/settings/devices/index.txt +0 -33
- package/apps/pwa/out/settings/index.html +0 -1
- package/apps/pwa/out/settings/index.txt +0 -33
- package/apps/pwa/out/setup/done/index.html +0 -1
- package/apps/pwa/out/setup/done/index.txt +0 -33
- package/apps/pwa/out/setup/index.html +0 -1
- package/apps/pwa/out/setup/index.txt +0 -33
- package/apps/pwa/out/share/index.html +0 -1
- package/apps/pwa/out/share/index.txt +0 -33
- package/apps/pwa/out/showroom/index.html +0 -1
- package/apps/pwa/out/showroom/index.txt +0 -30
- package/apps/pwa/out/sw-strategies.js +0 -44
- package/apps/pwa/out/sw.js +0 -385
- package/apps/pwa/out/tasks/index.html +0 -1
- package/apps/pwa/out/tasks/index.txt +0 -33
- package/apps/pwa/out/term/index.html +0 -1
- package/apps/pwa/out/term/index.txt +0 -33
- package/apps/pwa/out/today/index.html +0 -1
- package/apps/pwa/out/today/index.txt +0 -33
- package/apps/pwa/out/trace/index.html +0 -1
- package/apps/pwa/out/trace/index.txt +0 -33
- package/apps/pwa/out/vault/index.html +0 -1
- package/apps/pwa/out/vault/index.txt +0 -33
- package/apps/pwa/out/workflows/chat-ui/index.html +0 -1
- package/apps/pwa/out/workflows/chat-ui/index.txt +0 -33
- package/apps/pwa/out/workflows/index.html +0 -1
- package/apps/pwa/out/workflows/index.txt +0 -33
- package/apps/pwa/out/workspace/index.html +0 -1
- package/apps/pwa/out/workspace/index.txt +0 -33
- package/apps/pwa/out/worktrees/index.html +0 -1
- package/apps/pwa/out/worktrees/index.txt +0 -33
- package/plugins/hello/manifest.json +0 -7
- package/plugins/hello/missions/count-to-5/evaluator.sh +0 -32
- package/plugins/hello/missions/count-to-5/mission.md +0 -17
- package/plugins/hello/missions/count-to-5/sandbox.md +0 -10
- package/plugins/hello/plugin.ts +0 -97
- package/src/acp/grok-leader-manager.ts +0 -160
- package/src/autopilot/discovery/preexisting-red-rows.ts +0 -83
- package/src/browser-pane/mount.ts +0 -242
- package/src/budget/cost-tier-advisor.ts +0 -91
- package/src/cli/ask-bare.ts +0 -43
- package/src/dashboard/browser-help-runtime.ts +0 -95
- package/src/dashboard/compact-surface-popup.ts +0 -61
- package/src/dashboard/input/chat-main-cache-command.ts +0 -11
- package/src/dashboard/input/mouse-shell-rollup-runtime.ts +0 -114
- package/src/dashboard/media-preview-surface-runtime.ts +0 -81
- package/src/dashboard/modals/browser-preview-modal-seams.ts +0 -887
- package/src/dashboard/modals/preview.ts +0 -151
- package/src/dashboard/scenario-runtime-boot.ts +0 -113
- package/src/dashboard/shell-rollup-popup.ts +0 -116
- package/src/directive/interpretation-card.ts +0 -36
- package/src/display/bounds-validate.ts +0 -113
- package/src/display/image-emit.ts +0 -247
- package/src/display/picker-layout.ts +0 -199
- package/src/display/terminal-capability.ts +0 -161
- package/src/display/terminal-frame.ts +0 -32
- package/src/display/terminal-snapshot.ts +0 -58
- package/src/display/transient-overlay-policy.ts +0 -59
- package/src/domains/alert-audit.ts +0 -271
- package/src/domains/proactive-recall.ts +0 -85
- package/src/graph-runner/release-manifest.ts +0 -93
- package/src/grounding/ref-vector.ts +0 -61
- package/src/harness/artifact-launch-vocabulary.ts +0 -45
- package/src/harness/shell-prompt-watcher.ts +0 -0
- package/src/harness/user-terminal-injector.ts +0 -51
- package/src/intelligence-map/catalog-feed.ts +0 -119
- package/src/intelligence-map/model-bench-scores.ts +0 -102
- package/src/iul/asset-registry.ts +0 -980
- package/src/iul/lab-tabs.ts +0 -283
- package/src/iul/lane-registry.ts +0 -25
- package/src/iul/lane-select-view.ts +0 -62
- package/src/iul/scene-registry.ts +0 -25
- package/src/iul/sidebar-shell-catalog.ts +0 -41
- package/src/iul/sidebar-shell-copy.ts +0 -38
- package/src/iul/sidebar-shell.ts +0 -40
- package/src/iul/theme-lab-lane-view.ts +0 -291
- package/src/iul/top-control-rail.ts +0 -7
- package/src/model-tier/tier-to-model.ts +0 -23
- package/src/onboarding/widget-impl.ts +0 -118
- package/src/panes/alt-skip-predicate.ts +0 -40
- package/src/panes/files-pane.ts +0 -39
- package/src/panes/pane-cycle.ts +0 -61
- package/src/panes/skills-pane.ts +0 -47
- package/src/panes/terminal-bg-query.ts +0 -152
- package/src/panes/visibility-badge.ts +0 -50
- package/src/playground/catalog.ts +0 -1306
- package/src/playground/lab.ts +0 -439
- package/src/playground/widget.ts +0 -1588
- package/src/plugins/legacy-classify.ts +0 -479
- package/src/plugins/maker/connector-maker.ts +0 -41
- package/src/plugins/maker/skill-maker.ts +0 -42
- package/src/preview/pager.ts +0 -135
- package/src/preview-pane/mount.ts +0 -202
- package/src/prompt-library/family-prompt-coverage.ts +0 -97
- package/src/release-loop/proposal-auto-place.ts +0 -83
- package/src/self-dev/decompose-compose-graph.ts +0 -136
- package/src/self-dev/local-supervisor-judge.ts +0 -185
- package/src/self-dev/shard-pod-run.ts +0 -77
- package/src/self-implement/follow-up-placement.ts +0 -79
- package/src/shell-runner/modal-surface.ts +0 -171
- package/src/sim-world-device-catalogs.json +0 -1126
- package/src/skills/skill-route-ux.ts +0 -62
- package/src/state/bridges/widget-host-focus.ts +0 -96
- package/src/state/bridges/widget-host.ts +0 -273
- package/src/steward/entrance-dispatch-shadow-adapter-child.ts +0 -26
- package/src/steward/entrance-dispatch-shadow-adapter.ts +0 -196
- package/src/storage/object-store-visibility.ts +0 -169
- package/src/task-orchestrator/surfaces/pod-warm-ta-shadow.ts +0 -85
- package/src/theme/auto-theme.ts +0 -73
- package/src/tool-runtime/widget-schema-runtime.ts +0 -94
- package/src/ui/chrome/tooltip-chrome.ts +0 -16
- package/src/ui/decor.ts +0 -75
- package/src/ui/hover-presenter.ts +0 -202
- package/src/ui/hover-tracker.ts +0 -249
- package/src/ui/layout/dsl.ts +0 -210
- package/src/ui/layout/scroll.ts +0 -104
- package/src/ui/slash-launcher.ts +0 -58
- package/src/ui/submenu-popup-menu-contract.ts +0 -44
- package/src/ui/submenu-popup-pair.ts +0 -175
- package/src/ui/submenu-popup-theme.ts +0 -81
- package/src/ui/widgets/accordion.ts +0 -122
- package/src/ui/widgets/combo-box.ts +0 -221
- package/src/ui/widgets/draggable-list.ts +0 -247
- package/src/ui/widgets/list-view.ts +0 -221
- package/src/ui/widgets/menu-tree-controller.ts +0 -136
- package/src/ui/widgets/progress-bar.ts +0 -164
- package/src/ui/widgets/selection-browse.ts +0 -26
- package/src/ui/widgets/tabs.ts +0 -174
- package/src/ui/widgets/title-bar.ts +0 -149
- package/src/ui/widgets/tooltip.ts +0 -130
- package/src/ui/widgets/tree-view.ts +0 -266
- package/src/ux/ux-learn.ts +0 -58
- package/src/ux-sim/mock-scenario-catalog.json +0 -4489
- package/src/vi-editor.ts +0 -407
- package/src/webclone/qa-table.ts +0 -22
- package/src/widget-routing/terminal-pane-behavior.ts +0 -114
- package/src/widgets/plan-board.ts +0 -124
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2566],{30517:(e,t,s)=>{s.d(t,{A:()=>a});var i=s(24169),n=s(45394),a=(0,i.K)((e,t)=>{let s;return"sandbox"===t&&(s=(0,n.Ltv)("#i"+e)),("sandbox"===t?(0,n.Ltv)(s.nodes()[0].contentDocument.body):(0,n.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement")},31290:(e,t,s)=>{s.d(t,{P:()=>r});var i=s(38477),n=s(22359),a=s(24169),r=(0,a.K)((e,t,s,a)=>{e.attr("class",s);let{width:r,height:c,x:h,y:d}=o(e,t);(0,i.a$)(e,c,r,a);let u=l(h,d,r,c,t);e.attr("viewBox",u),n.R.debug(`viewBox configured: ${u} with padding: ${t}`)},"setupViewPortForSVG"),o=(0,a.K)((e,t)=>{let s=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*t,height:s.height+2*t,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),l=(0,a.K)((e,t,s,i,n)=>`${e-n} ${t-n} ${s} ${i}`,"createViewBox")},42566:(e,t,s)=>{s.d(t,{diagram:()=>nN});var i,n,a,r,o=s(30517),l=s(31290),c=s(26268);s(34161),s(19511),s(54530),s(22368),s(9210),s(13325);var h=s(5462);s(61894);var d=s(22327),u=s(37323),p=s(38477),f=s(22359),m=s(24169);function E(e){function t(){}t.prototype=e;let s=new t;function i(){return typeof s.bar}return i(),i(),e}class T{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class g extends T{constructor(e){super([]),this.idx=1,Object.assign(this,b(e))}set definition(e){}get definition(){return void 0!==this.referencedRule?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class y extends T{constructor(e){super(e.definition),this.orgText="",Object.assign(this,b(e))}}class A extends T{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,b(e))}}class S extends T{constructor(e){super(e.definition),this.idx=1,Object.assign(this,b(e))}}class L extends T{constructor(e){super(e.definition),this.idx=1,Object.assign(this,b(e))}}class O extends T{constructor(e){super(e.definition),this.idx=1,Object.assign(this,b(e))}}class R extends T{constructor(e){super(e.definition),this.idx=1,Object.assign(this,b(e))}}class k extends T{constructor(e){super(e.definition),this.idx=1,Object.assign(this,b(e))}}class I extends T{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,b(e))}}class N{constructor(e){this.idx=1,Object.assign(this,b(e))}accept(e){e.visit(this)}}function b(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}class C{visit(e){switch(e.constructor){case g:return this.visitNonTerminal(e);case A:return this.visitAlternative(e);case S:return this.visitOption(e);case L:return this.visitRepetitionMandatory(e);case O:return this.visitRepetitionMandatoryWithSeparator(e);case k:return this.visitRepetitionWithSeparator(e);case R:return this.visitRepetition(e);case I:return this.visitAlternation(e);case N:return this.visitTerminal(e);case y:return this.visitRule(e);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function _(e,t=[]){return e instanceof S||e instanceof R||e instanceof k||(e instanceof I?e.definition.some(e=>_(e,t)):!(e instanceof g&&t.includes(e))&&e instanceof T&&(e instanceof g&&t.push(e),e.definition.every(e=>_(e,t))))}function v(e){if(e instanceof g)return"SUBRULE";if(e instanceof S)return"OPTION";if(e instanceof I)return"OR";if(e instanceof L)return"AT_LEAST_ONE";if(e instanceof O)return"AT_LEAST_ONE_SEP";else if(e instanceof k)return"MANY_SEP";else if(e instanceof R)return"MANY";else if(e instanceof N)return"CONSUME";else throw Error("non exhaustive match")}class x{walk(e,t=[]){e.definition.forEach((s,i)=>{let n=e.definition.slice(i+1);if(s instanceof g)this.walkProdRef(s,n,t);else if(s instanceof N)this.walkTerminal(s,n,t);else if(s instanceof A)this.walkFlat(s,n,t);else if(s instanceof S)this.walkOption(s,n,t);else if(s instanceof L)this.walkAtLeastOne(s,n,t);else if(s instanceof O)this.walkAtLeastOneSep(s,n,t);else if(s instanceof k)this.walkManySep(s,n,t);else if(s instanceof R)this.walkMany(s,n,t);else if(s instanceof I)this.walkOr(s,n,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,s){}walkProdRef(e,t,s){}walkFlat(e,t,s){let i=t.concat(s);this.walk(e,i)}walkOption(e,t,s){let i=t.concat(s);this.walk(e,i)}walkAtLeastOne(e,t,s){let i=[new S({definition:e.definition})].concat(t,s);this.walk(e,i)}walkAtLeastOneSep(e,t,s){let i=U(e,t,s);this.walk(e,i)}walkMany(e,t,s){let i=[new S({definition:e.definition})].concat(t,s);this.walk(e,i)}walkManySep(e,t,s){let i=U(e,t,s);this.walk(e,i)}walkOr(e,t,s){let i=t.concat(s);e.definition.forEach(e=>{let t=new A({definition:[e]});this.walk(t,i)})}}function U(e,t,s){return[new S({definition:[new N({terminalType:e.separator})].concat(e.definition)})].concat(t,s)}function M(e){if(e instanceof g)return M(e.referencedRule);if(e instanceof N)return[e.terminalType];if(e instanceof A||e instanceof S||e instanceof R||e instanceof L||e instanceof O||e instanceof k||e instanceof N||e instanceof y)return function(e){let t,s=[],i=e.definition,n=0,a=i.length>n,r=!0;for(;a&&r;)r=_(t=i[n]),s=s.concat(M(t)),n+=1,a=i.length>n;return[...new Set(s)]}(e);if(e instanceof I)return[...new Set(e.definition.map(e=>M(e)).flat())];throw Error("non exhaustive match")}let w="_~IN~_";class P extends x{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,s){}walkProdRef(e,t,s){var i,n;let a=(i=e.referencedRule,n=e.idx,i.name+n+w+this.topProd.name),r=M(new A({definition:t.concat(s)}));this.follows[a]=r}}function D(e){return e.charCodeAt(0)}function $(e,t){Array.isArray(e)?e.forEach(function(e){t.push(e)}):t.push(e)}function K(e,t){if(!0===e[t])throw"duplicate flag "+t;e[t],e[t]=!0}function F(e){if(void 0===e)throw Error("Internal Error - Should never get here!");return!0}function B(){throw Error("Internal Error - Should never get here!")}function j(e){return"Character"===e.type}let G=[];for(let e=D("0");e<=D("9");e++)G.push(e);let W=[D("_")].concat(G);for(let e=D("a");e<=D("z");e++)W.push(e);for(let e=D("A");e<=D("Z");e++)W.push(e);let V=[D(" "),D("\f"),D("\n"),D("\r"),D(" "),D("\v"),D(" "),D("\xa0"),D(" "),D(" "),D(" "),D(" "),D(" "),D(" "),D(" "),D(" "),D(" "),D(" "),D(" "),D(" "),D("\u2028"),D("\u2029"),D(" "),D(" "),D(" "),D("\uFEFF")],z=/[0-9a-fA-F]/,H=/[0-9]/,Y=/[1-9]/;class X{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let t=this.disjunction();this.consumeChar("/");let s={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":K(s,"global");break;case"i":K(s,"ignoreCase");break;case"m":K(s,"multiLine");break;case"u":K(s,"unicode");break;case"y":K(s,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:s,value:t,loc:this.loc(0)}}disjunction(){let e=[],t=this.idx;for(e.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){let e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":let t;switch(this.consumeChar("?"),this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}}F(t);let s=this.disjunction();return this.consumeChar(")"),{type:t,value:s,loc:this.loc(e)}}return B()}quantifier(e=!1){let t,s=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":let i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":t=this.isDigit()?{atLeast:i,atMost:this.integerIncludingZero()}:{atLeast:i,atMost:1/0},this.consumeChar("}")}if(!0===e&&void 0===t)return;F(t)}if((!0!==e||void 0!==t)&&F(t))return"?"===this.peekChar(0)?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(s),t}atom(){let e,t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group()}return(void 0===e&&this.isPatternCharacter()&&(e=this.patternCharacter()),F(e))?(e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e):B()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[D("\n"),D("\r"),D("\u2028"),D("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=G;break;case"D":e=G,t=!0;break;case"s":e=V;break;case"S":e=V,t=!0;break;case"w":e=W;break;case"W":e=W,t=!0}return F(e)?{type:"Set",value:e,complement:t}:B()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=D("\f");break;case"n":e=D("\n");break;case"r":e=D("\r");break;case"t":e=D(" ");break;case"v":e=D("\v")}return F(e)?{type:"Character",value:e}:B()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(!1===/[a-zA-Z]/.test(e))throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:D("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){return{type:"Character",value:D(this.popChar())}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:D(this.popChar())}}}characterClass(){let e=[],t=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),t=!0);this.isClassAtom();){let t=this.classAtom();if(t.type,j(t)&&this.isRangeDash()){this.consumeChar("-");let s=this.classAtom();if(s.type,j(s)){if(s.value<t.value)throw Error("Range out of order in character class");e.push({from:t.value,to:s.value})}else $(t.value,e),e.push(D("-")),$(s.value,e)}else $(t.value,e)}return this.consumeChar("]"),{type:"Set",complement:t,value:e}}classAtom(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}}classEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:D("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}group(){let e=!0;this.consumeChar("("),"?"===this.peekChar(0)?(this.consumeChar("?"),this.consumeChar(":"),e=!1):this.groupIdx++;let t=this.disjunction();this.consumeChar(")");let s={type:"Group",capturing:e,value:t};return e&&(s.idx=this.groupIdx),s}positiveInteger(){let e=this.popChar();if(!1===Y.test(e))throw Error("Expecting a positive integer");for(;H.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}integerIncludingZero(){let e=this.popChar();if(!1===H.test(e))throw Error("Expecting an integer");for(;H.test(this.peekChar(0));)e+=this.popChar();return parseInt(e,10)}patternCharacter(){let e=this.popChar();switch(e){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:D(e)}}}isRegExpFlag(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}}isRangeDash(){return"-"===this.peekChar()&&this.isClassAtom(1)}isDigit(){return H.test(this.peekChar(0))}isClassAtom(e=0){switch(this.peekChar(e)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}isTerm(){return this.isAtom()||this.isAssertion()}isAtom(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}}isAssertion(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2)||"<"===this.peekChar(2)&&("="===this.peekChar(3)||"!"===this.peekChar(3)));default:return!1}}isQuantifier(){let e=this.saveState();try{return void 0!==this.quantifier(!0)}catch(e){return!1}finally{this.restoreState(e)}}isPatternCharacter(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let t="";for(let s=0;s<e;s++){let e=this.popChar();if(!1===z.test(e))throw Error("Expecting a HexDecimal digits");t+=e}return{type:"Character",value:parseInt(t,16)}}peekChar(e=0){return this.input[this.idx+e]}popChar(){let e=this.peekChar(0);return this.consumeChar(void 0),e}consumeChar(e){if(void 0!==e&&this.input[this.idx]!==e)throw Error("Expected: '"+e+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}class q{visitChildren(e){for(let t in e){let s=e[t];e.hasOwnProperty(t)&&(void 0!==s.type?this.visit(s):Array.isArray(s)&&s.forEach(e=>{this.visit(e)},this))}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e)}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}function J(e){console&&console.error&&console.error(`Error: ${e}`)}function Z(e){console&&console.warn&&console.warn(`Warning: ${e}`)}let Q={},ee=new X;function et(e){let t=e.toString();if(Q.hasOwnProperty(t))return Q[t];{let e=ee.pattern(t);return Q[t]=e,e}}let es="Complement Sets are not supported for first char optimization",ei='Unable to use "first char" lexer optimizations:\n';function en(e,t,s){let i=eS(e);t[i]=i,!0===s&&function(e,t){let s=String.fromCharCode(e),i=s.toUpperCase();if(i!==s){let e=eS(i.charCodeAt(0));t[e]=e}else{let e=s.toLowerCase();if(e!==s){let s=eS(e.charCodeAt(0));t[s]=s}}}(e,t)}function ea(e,t){return e.value.find(e=>"number"==typeof e?t.includes(e):void 0!==t.find(t=>e.from<=t&&t<=e.to))}class er extends q{constructor(e){super(),this.targetCharCodes=e,this.found=!1}visitChildren(e){if(!0!==this.found){switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}}visitCharacter(e){this.targetCharCodes.includes(e.value)&&(this.found=!0)}visitSet(e){e.complement?void 0===ea(e,this.targetCharCodes)&&(this.found=!0):void 0!==ea(e,this.targetCharCodes)&&(this.found=!0)}}function eo(e,t){if(t instanceof RegExp){let s=et(t),i=new er(e);return i.visit(s),i.found}for(let s of t){let t=s.charCodeAt(0);if(e.includes(t))return!0}return!1}let el="PATTERN",ec="defaultMode",eh="modes",ed=/[^\\][$]/,eu=/[^\\[][\^]|^\^/;function ep(e){let t=e.ignoreCase?"iy":"y";return RegExp(`${e.source}`,t)}function ef(e){let t=e.PATTERN;if(t instanceof RegExp)return!1;if("function"==typeof t)return!0;if(Object.hasOwn(t,"exec"))return!0;if("string"==typeof t)return!1;throw Error("non exhaustive match")}function em(e){return"string"==typeof e&&1===e.length&&e.charCodeAt(0)}let eE={test:function(e){let t=e.length;for(let s=this.lastIndex;s<t;s++){let t=e.charCodeAt(s);if(10===t)return this.lastIndex=s+1,!0;if(13===t)return 10===e.charCodeAt(s+1)?this.lastIndex=s+2:this.lastIndex=s+1,!0}return!1},lastIndex:0};function eT(e,t){if(Object.hasOwn(e,"LINE_BREAKS"))return!1;if(e.PATTERN instanceof RegExp){try{eo(t,e.PATTERN)}catch(e){return{issue:i.IDENTIFY_TERMINATOR,errMsg:e.message}}return!1}if("string"==typeof e.PATTERN)return!1;if(ef(e))return{issue:i.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function eg(e){return e.map(e=>"string"==typeof e?e.charCodeAt(0):e)}function ey(e,t,s){void 0===e[t]?e[t]=[s]:e[t].push(s)}let eA=[];function eS(e){return e<256?e:eA[e]}function eL(e){let t=new Date().getTime(),s=e();return{time:new Date().getTime()-t,value:s}}function eO(e,t){let s=e.tokenTypeIdx;return s===t.tokenTypeIdx||!0===t.isParent&&!0===t.categoryMatchesMap[s]}function eR(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let ek=1,eI={};function eN(e){let t=function(e){let t=[...e],s=e,i=!0;for(;i;){let e=(s=s.map(e=>e.CATEGORIES).flat().filter(Boolean)).filter(e=>!t.includes(e));t=t.concat(e),0===e.length?i=!1:s=e}return t}(e);t.forEach(e=>{var t,s;eb(e)||(eI[ek]=e,e.tokenTypeIdx=ek++),eC(e)&&!Array.isArray(e.CATEGORIES)&&(e.CATEGORIES=[e.CATEGORIES]),eC(e)||(e.CATEGORIES=[]),Object.hasOwn(null!=(t=e)?t:{},"categoryMatches")||(e.categoryMatches=[]),Object.hasOwn(null!=(s=e)?s:{},"categoryMatchesMap")||(e.categoryMatchesMap={})}),t.forEach(e=>{!function e(t,s){t.forEach(e=>{s.categoryMatchesMap[e.tokenTypeIdx]=!0}),s.CATEGORIES.forEach(i=>{let n=t.concat(s);n.includes(i)||e(n,i)})}([],e)}),t.forEach(e=>{e.categoryMatches=[],Object.keys(e.categoryMatchesMap).forEach(t=>{e.categoryMatches.push(eI[t].tokenTypeIdx)})}),t.forEach(e=>{e.isParent=e.categoryMatches.length>0})}function eb(e){return Object.hasOwn(null!=e?e:{},"tokenTypeIdx")}function eC(e){return Object.hasOwn(null!=e?e:{},"CATEGORIES")}function e_(e){return Object.hasOwn(null!=e?e:{},"tokenTypeIdx")}!function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"}(i||(i={}));let ev={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:{buildUnableToPopLexerModeMessage:e=>`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,buildUnexpectedCharactersMessage:(e,t,s,i,n,a)=>`unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${s} characters.`},traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(ev);class ex{constructor(e,t=ev){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(e,t)=>{if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let s=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${e}>`);let{time:i,value:n}=eL(t),a=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${s}<-- <${e}> time: ${i}ms`),this.traceInitIndent--,n}},"boolean"==typeof t)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=Object.assign({},ev,t);let s=this.config.traceInitPerf;!0===s?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof s&&(this.traceInitMaxIdent=s,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let s,n=!0;this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===ev.lineTerminatorsPattern)this.config.lineTerminatorsPattern=eE;else if(this.config.lineTerminatorCharacters===ev.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(t.safeMode&&t.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(e)?s={modes:{defaultMode:[...e]},defaultMode:ec}:(n=!1,s=Object.assign({},e))}),!1===this.config.skipValidations&&(this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(function(e,t,s){let n=[];return Object.hasOwn(e,ec)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+ec+"> property in its definition\n",type:i.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Object.hasOwn(e,eh)||n.push({message:"A MultiMode Lexer cannot be initialized without a <"+eh+"> property in its definition\n",type:i.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Object.hasOwn(e,eh)&&Object.hasOwn(e,ec)&&!Object.hasOwn(e.modes,e.defaultMode)&&n.push({message:`A MultiMode Lexer cannot be initialized with a ${ec}: <${e.defaultMode}>which does not exist
|
|
2
|
-
`,type:i.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Object.hasOwn(e,eh)&&Object.keys(e.modes).forEach(t=>{let s=e.modes[t];s.forEach((e,a)=>{void 0===e?n.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${t}> at index: <${a}>
|
|
3
|
-
`,type:i.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED}):Object.hasOwn(e,"LONGER_ALT")&&(Array.isArray(e.LONGER_ALT)?e.LONGER_ALT:[e.LONGER_ALT]).forEach(a=>{void 0===a||s.includes(a)||n.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${a.name}> on token <${e.name}> outside of mode <${t}>
|
|
4
|
-
`,type:i.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})}),n}(s,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(function(e,t,s){let n=[],a=!1,r=Object.values(e.modes||{}).flat().filter(Boolean).filter(e=>e[el]!==ex.NA),o=eg(s);return t&&r.forEach(e=>{let t=eT(e,o);if(!1!==t){let s={message:function(e,t){if(t.issue===i.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
5
|
-
The problem is in the <${e.name}> Token Type
|
|
6
|
-
Root cause: ${t.errMsg}.
|
|
7
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;if(t.issue===i.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
|
|
8
|
-
The problem is in the <${e.name}> Token Type
|
|
9
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;throw Error("non exhaustive match")}(e,t),type:t.issue,tokenType:e};n.push(s)}else Object.hasOwn(e,"LINE_BREAKS")?!0===e.LINE_BREAKS&&(a=!0):eo(o,e.PATTERN)&&(a=!0)}),t&&!a&&n.push({message:"Warning: No LINE_BREAKS Found.\n This Lexer has been defined to track line and column information,\n But none of the Token Types can be identified as matching a line terminator.\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n for details.",type:i.NO_LINE_BREAKS_FLAGS}),n}(s,this.trackStartLines,this.config.lineTerminatorCharacters))})),s.modes=s.modes?s.modes:{},Object.entries(s.modes).forEach(([e,t])=>{s.modes[e]=t.filter(e=>void 0!==e)});let a=Object.keys(s.modes);if(Object.entries(s.modes).forEach(([e,s])=>{this.TRACE_INIT(`Mode: <${e}> processing`,()=>{if(this.modes.push(e),!1===this.config.skipValidations&&this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(function(e,t){var s,n;let a=[],r=function(e){let t=e.filter(e=>!Object.hasOwn(e,el));return{errors:t.map(e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:i.MISSING_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}(e);a=a.concat(r.errors);let o=function(e){let t=e.filter(e=>{let t=e[el];return!(t instanceof RegExp)&&"function"!=typeof t&&!Object.hasOwn(t,"exec")&&"string"!=typeof t});return{errors:t.map(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:i.INVALID_PATTERN,tokenTypes:[e]})),valid:e.filter(e=>!t.includes(e))}}(r.valid),l=o.valid;return(a=(a=(a=(a=a.concat(o.errors)).concat(function(e){let t=[],s=e.filter(e=>e[el]instanceof RegExp);return(t=(t=(t=(t=t.concat(function(e){class t extends q{constructor(){super(...arguments),this.found=!1}visitEndAnchor(e){this.found=!0}}return e.filter(e=>{let s=e.PATTERN;try{let e=et(s),i=new t;return i.visit(e),i.found}catch(e){return ed.test(s.source)}}).map(e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:i.EOI_ANCHOR_FOUND,tokenTypes:[e]}))}(s))).concat(function(e){class t extends q{constructor(){super(...arguments),this.found=!1}visitStartAnchor(e){this.found=!0}}return e.filter(e=>{let s=e.PATTERN;try{let e=et(s),i=new t;return i.visit(e),i.found}catch(e){return eu.test(s.source)}}).map(e=>({message:"Unexpected RegExp Anchor Error:\n Token Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",type:i.SOI_ANCHOR_FOUND,tokenTypes:[e]}))}(s))).concat(s.filter(e=>{let t=e[el];return t instanceof RegExp&&(t.multiline||t.global)}).map(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:i.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]})))).concat(function(e){let t=[],s=e.map(s=>e.reduce((e,i)=>(s.PATTERN.source!==i.PATTERN.source||t.includes(i)||i.PATTERN===ex.NA||(t.push(i),e.push(i)),e),[]));return(s=s.filter(Boolean)).filter(e=>e.length>1).map(e=>{let t=e.map(e=>e.name),s=e[0].PATTERN;return{message:`The same RegExp pattern ->${s}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,type:i.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}})}(s))).concat(s.filter(e=>e.PATTERN.test("")).map(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:i.EMPTY_MATCH_PATTERN,tokenTypes:[e]})))}(l))).concat(l.filter(e=>{if(!Object.hasOwn(e,"GROUP"))return!1;let t=e.GROUP;return t!==ex.SKIPPED&&t!==ex.NA&&"string"!=typeof t}).map(e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:i.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]})))).concat((s=l,n=t,s.filter(e=>void 0!==e.PUSH_MODE&&!n.includes(e.PUSH_MODE)).map(e=>({message:`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,type:i.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}))))).concat(function(e){let t=[],s=e.reduce((e,t,s)=>{var i;let n=t.PATTERN;return n===ex.NA||("string"==typeof n?e.push({str:n,idx:s,tokenType:t}):n instanceof RegExp&&(i=n,void 0===[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find(e=>-1!==i.source.indexOf(e)))&&e.push({str:n.source,idx:s,tokenType:t})),e},[]);return e.forEach((e,n)=>{s.forEach(({str:s,idx:a,tokenType:r})=>{if(n<a&&function(e,t){if(t instanceof RegExp){var s;if(s=t,/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\?<!)/.test(s.source))return!1;let i=t.exec(e);return null!==i&&0===i.index}if("function"==typeof t)return t(e,0,[],{});if(Object.hasOwn(t,"exec"))return t.exec(e,0,[],{});if("string"==typeof t)return t===e;throw Error("non exhaustive match")}(s,e.PATTERN)){let s=`Token: ->${r.name}<- can never be matched.
|
|
10
|
-
Because it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.
|
|
11
|
-
See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:s,type:i.UNREACHABLE_PATTERN,tokenTypes:[e,r]})}})}),t}(l))}(s,a))}),0===this.lexerDefinitionErrors.length){let i;eN(s),this.TRACE_INIT("analyzeTokenTypes",()=>{i=function(e,t){let s,i,n,a,r,o,l,c,h,d,u,p,f=(t=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:(e,t)=>t()},t)).tracer;f("initCharCodeToOptimizedIndexMap",()=>{if(0===eA.length){eA=Array(65536);for(let e=0;e<65536;e++)eA[e]=e>255?255+~~(e/255):e}}),f("Reject Lexer.NA",()=>{s=e.filter(e=>e[el]!==ex.NA)});let m=!1;f("Transform Patterns",()=>{m=!1,i=s.map(e=>{let t=e[el];if(t instanceof RegExp){let e=t.source;return 1!==e.length||"^"===e||"$"===e||"."===e||t.ignoreCase?2!==e.length||"\\"!==e[0]||["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(e[1])?ep(t):e[1]:e}if("function"==typeof t)return m=!0,{exec:t};if("object"==typeof t)return m=!0,t;if("string"==typeof t)if(1===t.length)return t;else return ep(new RegExp(t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")));throw Error("non exhaustive match")})}),f("misc mapping",()=>{n=s.map(e=>e.tokenTypeIdx),a=s.map(e=>{let t=e.GROUP;if(t!==ex.SKIPPED){if("string"==typeof t)return t;if(void 0===t)return!1;throw Error("non exhaustive match")}}),r=s.map(e=>{let t=e.LONGER_ALT;if(t)return Array.isArray(t)?t.map(e=>s.indexOf(e)):[s.indexOf(t)]}),o=s.map(e=>e.PUSH_MODE),l=s.map(e=>Object.hasOwn(e,"POP_MODE"))}),f("Line Terminator Handling",()=>{let e=eg(t.lineTerminatorCharacters);c=s.map(e=>!1),"onlyOffset"!==t.positionTracking&&(c=s.map(t=>Object.hasOwn(t,"LINE_BREAKS")?!!t.LINE_BREAKS:!1===eT(t,e)&&eo(e,t.PATTERN)))}),f("Misc Mapping #2",()=>{h=s.map(ef),d=i.map(em),u=s.reduce((e,t)=>{let s=t.GROUP;return"string"==typeof s&&s!==ex.SKIPPED&&(e[s]=[]),e},{}),p=i.map((e,t)=>{let u=void 0===a[t]&&void 0===r[t]?function(e){var t,s;let i,n;if(!(e instanceof RegExp)||""!==e.flags)return;try{i=et(e)}catch(e){return}if(1!==i.value.value.length||1!==i.value.value[0].value.length)return;let a=i.value.value[0].value[0];for(;"Group"===a.type;){if(a.capturing||void 0!==a.quantifier&&void 0!==n||1!==a.value.value.length||1!==a.value.value[0].value.length)return;n=null!=(t=a.quantifier)?t:n,a=a.value.value[0].value[0]}if("Set"!==a.type||a.complement||void 0!==a.quantifier&&void 0!==n||(null==(n=null!=(s=a.quantifier)?s:n)?void 0:n.atLeast)!==1||n.atMost!==1/0||!n.greedy)return;let r=new Uint8Array(128);for(let e of a.value){let t="number"==typeof e?e:e.from,s="number"==typeof e?e:e.to;if(t<0||s>=r.length)return;r.fill(1,t,s+1)}return r}(s[t].PATTERN):void 0;return{pattern:i[t],asciiClass:u,longerAlt:r[t],canLineTerminator:c[t],matchType:void 0!==u?3:!1!==d[t]?0:h[t]?1:2,short:d[t],group:a[t],push:o[t],pop:l[t],tokenTypeIdx:n[t],tokenType:s[t]}})});let E=!0,T=[];return t.safeMode||f("First Char Optimization",()=>{T=s.reduce((e,s,i)=>{if("string"==typeof s.PATTERN)ey(e,eS(s.PATTERN.charCodeAt(0)),p[i]);else if(Array.isArray(s.START_CHARS_HINT)){let t;s.START_CHARS_HINT.forEach(s=>{let n=eS("string"==typeof s?s.charCodeAt(0):s);t!==n&&(t=n,ey(e,n,p[i]))})}else if(s.PATTERN instanceof RegExp)if(s.PATTERN.unicode)E=!1,t.ensureOptimizations&&J(`${ei} Unable to analyze < ${s.PATTERN.toString()} > pattern.
|
|
12
|
-
The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
13
|
-
This will disable the lexer's first char optimizations.
|
|
14
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{let n=function(e,t=!1){try{let t=et(e);return function e(t,s,i){switch(t.type){case"Disjunction":for(let n=0;n<t.value.length;n++)e(t.value[n],s,i);break;case"Alternative":let n=t.value;for(let t=0;t<n.length;t++){let a=n[t];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"Lookbehind":case"NegativeLookbehind":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}switch(a.type){case"Character":en(a.value,s,i);break;case"Set":if(!0===a.complement)throw Error(es);a.value.forEach(e=>{if("number"==typeof e)en(e,s,i);else if(!0===i)for(let t=e.from;t<=e.to;t++)en(t,s,i);else{for(let t=e.from;t<=e.to&&t<256;t++)en(t,s,i);if(e.to>=256){let t=e.from>=256?e.from:256,i=e.to,n=eS(t),a=eS(i);for(let e=n;e<=a;e++)s[e]=e}}});break;case"Group":e(a.value,s,i);break;default:throw Error("Non Exhaustive Match")}let r=void 0!==a.quantifier&&0===a.quantifier.atLeast;if("Group"===a.type&&!1===function e(t){let s=t.quantifier;return!!s&&0===s.atLeast||!!t.value&&(Array.isArray(t.value)?t.value.every(e):e(t.value))}(a)||"Group"!==a.type&&!1===r)break}break;default:throw Error("non exhaustive match!")}return Object.values(s)}(t.value,{},t.flags.ignoreCase)}catch(s){if(s.message===es)t&&Z(`${ei} Unable to optimize: < ${e.toString()} >
|
|
15
|
-
Complement Sets cannot be automatically optimized.
|
|
16
|
-
This will disable the lexer's first char optimizations.
|
|
17
|
-
See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{let s="";t&&(s="\n This will disable the lexer's first char optimizations.\n See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),J(`${ei}
|
|
18
|
-
Failed parsing: < ${e.toString()} >
|
|
19
|
-
Using the @chevrotain/regexp-to-ast library
|
|
20
|
-
Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+s)}}return[]}(s.PATTERN,t.ensureOptimizations);0===n.length&&(E=!1),n.forEach(t=>{ey(e,t,p[i])})}else t.ensureOptimizations&&J(`${ei} TokenType: <${s.name}> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
21
|
-
This will disable the lexer's first char optimizations.
|
|
22
|
-
For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),E=!1;return e},[])}),{emptyGroups:u,patternIdxToConfig:p,charCodeToPatternIdxToConfig:T,hasCustom:m,canBeOptimized:E}}(s,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[e]=i.patternIdxToConfig,this.charCodeToPatternIdxToConfig[e]=i.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,i.emptyGroups),this.hasCustom=i.hasCustom||this.hasCustom,this.canModeBeOptimized[e]=i.canBeOptimized}})}),this.defaultMode=s.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling)throw Error("Errors detected in definition of Lexer:\n"+this.lexerDefinitionErrors.map(e=>e.message).join("-----------------------\n"));this.lexerDefinitionWarning.forEach(e=>{Z(e.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(n&&(this.handleModes=()=>{}),!1===this.trackStartLines&&(this.computeNewColumn=e=>e),!1===this.trackEndLines&&(this.updateTokenEndLineColumnLocation=()=>{}),/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid <positionTracking> config option: "${this.config.positionTracking}"`);this.hasCustom?(this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom):(this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom)}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let e=Object.entries(this.canModeBeOptimized).reduce((e,[t,s])=>(!1===s&&e.push(t),e),[]);if(t.ensureOptimizations&&e.length>0)throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.
|
|
23
|
-
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
24
|
-
Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{Q={}}),this.TRACE_INIT("toFastProperties",()=>{E(this)})})}tokenize(e,t=this.defaultMode){if(this.lexerDefinitionErrors.length>0)throw Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+this.lexerDefinitionErrors.map(e=>e.message).join("-----------------------\n"));return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let s,i,n,a,r,o,l,c,h,d,u,p,f,m,E,T,g=e.length,y=0,A=0,S=Array(this.hasCustom?0:Math.floor(e.length/10)),L=[],O=this.trackStartLines?1:void 0,R=this.trackStartLines?1:void 0,k={};for(let e=0;e<this.cachedGroupKeys.length;e++)k[this.cachedGroupKeys[e]]=[];let I=this.trackStartLines,N=this.config.lineTerminatorsPattern,b=0,C=[],_=[],v=[],x=[];Object.freeze(x);let U=!1,M=e=>{if(1===v.length&&void 0===e.tokenType.PUSH_MODE){let t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);L.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{v.pop();let e=v.at(-1);C=this.patternIdxToConfig[e],_=this.charCodeToPatternIdxToConfig[e],b=C.length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;U=!!_&&!!t}};function w(e){v.push(e),_=this.charCodeToPatternIdxToConfig[e],b=(C=this.patternIdxToConfig[e]).length;let t=this.canModeBeOptimized[e]&&!1===this.config.safeMode;U=!!_&&!!t}w.call(this,t);let P=this.config.recoveryEnabled;for(;y<g;){let t;o=null,h=-1;let D=e.charCodeAt(y);if(U){let e=_[eS(D)];t=void 0!==e?e:x}else t=C;let $=t.length;for(s=0;s<$;s++){let i=(T=t[s]).pattern;switch(l=null,T.matchType){case 0:D===T.short&&(h=1,o=i);break;case 1:null!==(E=i.exec(e,y,S,k))?(h=(o=E[0]).length,void 0!==E.payload&&(l=E.payload)):o=null;break;case 3:{let t=T.asciiClass;if(1!==t[D]){i.lastIndex=0;break}let s=y+1;for(;1===t[e.charCodeAt(s)];)s++;h=s-y,i.lastIndex=s;break}case 2:i.lastIndex=y,h=this.matchLength(i,e,y)}if(-1!==h){if(void 0!==(r=T.longerAlt)){o=e.substring(y,y+h);let t=r.length;for(n=0;n<t;n++){let t=C[r[n]],s=t.pattern;if(c=null,1===t.matchType?null!==(E=s.exec(e,y,S,k))?(a=E[0],void 0!==E.payload&&(c=E.payload)):a=null:(s.lastIndex=y,a=this.match(s,e,y)),a&&a.length>o.length){o=a,h=a.length,l=c,T=t;break}}}break}}if(-1!==h){if(void 0!==(d=T.group)&&(o=null!==o?o:e.substring(y,y+h),u=T.tokenTypeIdx,p=this.createTokenInstance(o,y,u,T.tokenType,O,R,h),this.handlePayload(p,l),!1===d?A=this.addToken(S,A,p):k[d].push(p)),!0===I&&!0===T.canLineTerminator){let t,s,i=0;N.lastIndex=0;do o=null!==o?o:e.substring(y,y+h),!0===(t=N.test(o))&&(s=N.lastIndex-1,i++);while(!0===t);0!==i?(O+=i,R=h-s,this.updateTokenEndLineColumnLocation(p,d,s,i,O,R,h)):R=this.computeNewColumn(R,h)}else R=this.computeNewColumn(R,h);y+=h,this.handleModes(T,M,w,p)}else{let t=y,s=O,n=R,a=!1===P;for(;!1===a&&y<g;)for(y++,i=0;i<b;i++){let t=C[i],s=t.pattern;switch(t.matchType){case 0:e.charCodeAt(y)===t.short&&(a=!0);break;case 1:a=null!==s.exec(e,y,S,k);break;case 3:case 2:s.lastIndex=y,a=null!==s.exec(e)}if(!0===a)break}if(f=y-t,R=this.computeNewColumn(R,f),m=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(e,t,f,s,n,v.at(-1)),L.push({offset:t,line:s,column:n,length:f,message:m}),!1===P)break}}return this.hasCustom||(S.length=A),{tokens:S,groups:k,errors:L}}handleModes(e,t,s,i){if(!0===e.pop){let n=e.push;t(i),void 0!==n&&s.call(this,n)}else void 0!==e.push&&s.call(this,e.push)}updateTokenEndLineColumnLocation(e,t,s,i,n,a,r){let o,l;void 0!==t&&(l=(o=s===r-1)?-1:0,(1!==i||!0!==o)&&(e.endLine=n+l,e.endColumn=a-1+-l))}computeNewColumn(e,t){return e+t}createOffsetOnlyToken(e,t,s,i){return{image:e,startOffset:t,tokenTypeIdx:s,tokenType:i}}createStartOnlyToken(e,t,s,i,n,a){return{image:e,startOffset:t,startLine:n,startColumn:a,tokenTypeIdx:s,tokenType:i}}createFullToken(e,t,s,i,n,a,r){return{image:e,startOffset:t,endOffset:t+r-1,startLine:n,endLine:n,startColumn:a,endColumn:a+r-1,tokenTypeIdx:s,tokenType:i}}addTokenUsingPush(e,t,s){return e.push(s),t}addTokenUsingMemberAccess(e,t,s){return e[t]=s,++t}handlePayloadNoCustom(e,t){}handlePayloadWithCustom(e,t){null!==t&&(e.payload=t)}match(e,t,s){return!0===e.test(t)?t.substring(s,e.lastIndex):null}matchLength(e,t,s){return!0===e.test(t)?e.lastIndex-s:-1}}function eU(e){return eM(e)?e.LABEL:e.name}function eM(e){return"string"==typeof e.LABEL&&""!==e.LABEL}ex.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",ex.NA=/NOT_APPLICABLE/;let ew="categories",eP="label",eD="group",e$="push_mode",eK="pop_mode",eF="longer_alt",eB="line_breaks",ej="start_chars_hint";function eG(e){let t=e.pattern,s={};if(s.name=e.name,void 0!==t&&(s.PATTERN=t),Object.hasOwn(e,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return Object.hasOwn(e,ew)&&(s.CATEGORIES=e[ew]),eN([s]),Object.hasOwn(e,eP)&&(s.LABEL=e[eP]),Object.hasOwn(e,eD)&&(s.GROUP=e[eD]),Object.hasOwn(e,eK)&&(s.POP_MODE=e[eK]),Object.hasOwn(e,e$)&&(s.PUSH_MODE=e[e$]),Object.hasOwn(e,eF)&&(s.LONGER_ALT=e[eF]),Object.hasOwn(e,eB)&&(s.LINE_BREAKS=e[eB]),Object.hasOwn(e,ej)&&(s.START_CHARS_HINT=e[ej]),s}let eW=eG({name:"EOF",pattern:ex.NA});function eV(e,t,s,i,n,a,r,o){return{image:t,startOffset:s,endOffset:i,startLine:n,endLine:a,startColumn:r,endColumn:o,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}eN([eW]);let ez={buildMismatchTokenMessage({expected:e,actual:t,previous:s,ruleName:i}){let n=eM(e)?`--> ${eU(e)} <--`:`token of type --> ${e.name} <--`;return`Expecting ${n} but found --> '${t.image}' <--`},buildNotAllInputParsedMessage:({firstRedundant:e,ruleName:t})=>"Redundant input, expecting EOF but found: "+e.image,buildNoViableAltMessage({expectedPathsPerAlt:e,actual:t,previous:s,customUserDescription:i,ruleName:n}){let a="Expecting: ",r="\nbut found: '"+t[0].image+"'";if(i)return a+i+r;{let t=e.reduce((e,t)=>e.concat(t),[]).map(e=>`[${e.map(e=>eU(e)).join(", ")}]`).map((e,t)=>` ${t+1}. ${e}`);return a+`one of these possible Token sequences:
|
|
25
|
-
${t.join("\n")}`+r}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:s,ruleName:i}){let n="Expecting: ",a="\nbut found: '"+t[0].image+"'";if(s)return n+s+a;{let t=e.map(e=>`[${e.map(e=>eU(e)).join(",")}]`);return n+`expecting at least one iteration which starts with one of these possible Token sequences::
|
|
26
|
-
<${t.join(" ,")}>`+a}}};Object.freeze(ez);let eH={buildRuleNotFoundError:(e,t)=>"Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\ninside top level rule: ->"+e.name+"<-"},eY={buildDuplicateFoundError(e,t){let s=e.name,i=t[0],n=i.idx,a=v(i),r=i instanceof N?i.terminalType.name:i instanceof g?i.nonTerminalName:"",o=`->${a}${n>0?n:""}<- ${r?`with argument: ->${r}<-`:""}
|
|
27
|
-
appears more than once (${t.length} times) in the top level rule: ->${s}<-.
|
|
28
|
-
For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES
|
|
29
|
-
`;return(o=o.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:e=>`Namespace conflict found in grammar.
|
|
30
|
-
The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.
|
|
31
|
-
To resolve this make sure each Terminal and Non-Terminal names are unique
|
|
32
|
-
This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
|
|
33
|
-
and Non-Terminal names start with a lower case letter.`,buildAlternationPrefixAmbiguityError(e){let t=e.prefixPath.map(e=>eU(e)).join(", "),s=0===e.alternation.idx?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix
|
|
34
|
-
in <OR${s}> inside <${e.topLevelRule.name}> Rule,
|
|
35
|
-
<${t}> may appears as a prefix path in all these alternatives.
|
|
36
|
-
See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
|
|
37
|
-
For Further details.`},buildAlternationAmbiguityError(e){let t=0===e.alternation.idx?"":e.alternation.idx,s=0===e.prefixPath.length,i=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in <OR${t}> inside <${e.topLevelRule.name}> Rule,
|
|
38
|
-
`;if(s)i+=`These alternatives are all empty (match no tokens), making them indistinguishable.
|
|
39
|
-
Only the last alternative may be empty.
|
|
40
|
-
`;else{let t=e.prefixPath.map(e=>eU(e)).join(", ");i+=`<${t}> may appears as a prefix path in all these alternatives.
|
|
41
|
-
`}return i+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
|
|
42
|
-
For Further details.`},buildEmptyRepetitionError(e){let t=v(e.repetition);return 0!==e.repetition.idx&&(t+=e.repetition.idx),`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.
|
|
43
|
-
This could lead to an infinite loop.`},buildTokenNameError:e=>"deprecated",buildEmptyAlternationError:e=>`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in <OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
44
|
-
Only the last alternative may be an empty alternative.`,buildTooManyAlternativesError:e=>`An Alternation cannot have more than 256 alternatives:
|
|
45
|
-
<OR${e.alternation.idx}> inside <${e.topLevelRule.name}> Rule.
|
|
46
|
-
has ${e.alternation.definition.length+1} alternatives.`,buildLeftRecursionError(e){let t=e.topLevelRule.name,s=e.leftRecursionPath.map(e=>e.name),i=`${t} --> ${s.concat([t]).join(" --\x3e ")}`;return`Left Recursion found in grammar.
|
|
47
|
-
rule: <${t}> can be invoked from itself (directly or indirectly)
|
|
48
|
-
without consuming any Tokens. The grammar path that causes this is:
|
|
49
|
-
${i}
|
|
50
|
-
To fix this refactor your grammar to remove the left recursion.
|
|
51
|
-
see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError:e=>"deprecated",buildDuplicateRuleNameError(e){let t;return t=e.topLevelRule instanceof y?e.topLevelRule.name:e.topLevelRule,`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`}};class eX extends C{constructor(e,t){super(),this.nameToTopRule=e,this.errMsgProvider=t,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach(e=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let t=this.nameToTopRule[e.nonTerminalName];if(t)e.referencedRule=t;else{let t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:r.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}}}class eq extends x{constructor(e,t){super(),this.topProd=e,this.path=t,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,t=[]){this.found||super.walk(e,t)}walkProdRef(e,t,s){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let i=t.concat(s);this.updateExpectedNext(),this.walk(e.referencedRule,i)}}updateExpectedNext(){0===this.ruleStack.length?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())}}class eJ extends eq{constructor(e,t){super(e,t),this.path=t,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,t,s){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let e=new A({definition:t.concat(s)});this.possibleTokTypes=M(e),this.found=!0}}}class eZ extends x{constructor(e,t){super(),this.topRule=e,this.occurrence=t,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}}class eQ extends eZ{walkMany(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof N&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkMany(e,t,s)}}class e0 extends eZ{walkManySep(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof N&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkManySep(e,t,s)}}class e1 extends eZ{walkAtLeastOne(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof N&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOne(e,t,s)}}class e2 extends eZ{walkAtLeastOneSep(e,t,s){if(e.idx===this.occurrence){let e=t.concat(s)[0];this.result.isEndOfRule=void 0===e,e instanceof N&&(this.result.token=e.terminalType,this.result.occurrence=e.idx)}else super.walkAtLeastOneSep(e,t,s)}}function e3(e,t,s=[]){s=[...s];let i=[],n=0;function a(a){let r=e3(a.concat(e.slice(n+1)),t,s);return i.concat(r)}for(;s.length<t&&n<e.length;){let t=e[n];if(t instanceof A)return a(t.definition);if(t instanceof g)return a(t.definition);if(t instanceof S)i=a(t.definition);else if(t instanceof L)return a(t.definition.concat([new R({definition:t.definition})]));else if(t instanceof O)return a([new A({definition:t.definition}),new R({definition:[new N({terminalType:t.separator})].concat(t.definition)})]);else if(t instanceof k)i=a(t.definition.concat([new R({definition:[new N({terminalType:t.separator})].concat(t.definition)})]));else if(t instanceof R)i=a(t.definition.concat([new R({definition:t.definition})]));else if(t instanceof I)return t.definition.forEach(e=>{0!==e.definition.length&&(i=a(e.definition))}),i;else if(t instanceof N)s.push(t.terminalType);else throw Error("non exhaustive match");n++}return i.push({partialPath:s,suffixDef:e.slice(n)}),i}function e5(e){if(e instanceof S||"Option"===e)return n.OPTION;if(e instanceof R||"Repetition"===e)return n.REPETITION;if(e instanceof L||"RepetitionMandatory"===e)return n.REPETITION_MANDATORY;if(e instanceof O||"RepetitionMandatoryWithSeparator"===e)return n.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof k||"RepetitionWithSeparator"===e)return n.REPETITION_WITH_SEPARATOR;else if(e instanceof I||"Alternation"===e)return n.ALTERNATION;else throw Error("non exhaustive match")}function e6(e,t,s,i){let n=e.length,a=e.every(e=>e.every(e=>1===e.length));if(t)return function(t){let i=t.map(e=>e.GATE);for(let t=0;t<n;t++){let n=e[t],a=n.length,r=i[t];if(void 0===r||!1!==r.call(this))e:for(let e=0;e<a;e++){let i=n[e],a=i.length;for(let e=0;e<a;e++)if(!1===s(this.LA_FAST(e+1),i[e]))continue e;return t}}};if(!a||i)return function(){for(let t=0;t<n;t++){let i=e[t],n=i.length;e:for(let e=0;e<n;e++){let n=i[e],a=n.length;for(let e=0;e<a;e++)if(!1===s(this.LA_FAST(e+1),n[e]))continue e;return t}}};{let t=e.map(e=>e.flat()).reduce((e,t,s)=>(t.forEach(t=>{t.tokenTypeIdx in e||(e[t.tokenTypeIdx]=s),t.categoryMatches.forEach(t=>{Object.hasOwn(e,t)||(e[t]=s)})}),e),{});return function(){return t[this.LA_FAST(1).tokenTypeIdx]}}}function e4(e,t,s){let i=e.every(e=>1===e.length),n=e.length;if(!i||s)return function(){e:for(let s=0;s<n;s++){let i=e[s],n=i.length;for(let e=0;e<n;e++)if(!1===t(this.LA_FAST(e+1),i[e]))continue e;return!0}return!1};{let t=e.flat();if(1===t.length&&0===t[0].categoryMatches.length){let e=t[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===e}}{let e=t.reduce((e,t,s)=>(e[t.tokenTypeIdx]=!0,t.categoryMatches.forEach(t=>{e[t]=!0}),e),[]);return function(){return!0===e[this.LA_FAST(1).tokenTypeIdx]}}}}!function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"}(n||(n={}));class e9 extends x{constructor(e,t,s){super(),this.topProd=e,this.targetOccurrence=t,this.targetProdType=s}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,t,s,i){return e.idx===this.targetOccurrence&&this.targetProdType===t&&(this.restDef=s.concat(i),!0)}walkOption(e,t,s){this.checkIsTarget(e,n.OPTION,t,s)||super.walkOption(e,t,s)}walkAtLeastOne(e,t,s){this.checkIsTarget(e,n.REPETITION_MANDATORY,t,s)||super.walkOption(e,t,s)}walkAtLeastOneSep(e,t,s){this.checkIsTarget(e,n.REPETITION_MANDATORY_WITH_SEPARATOR,t,s)||super.walkOption(e,t,s)}walkMany(e,t,s){this.checkIsTarget(e,n.REPETITION,t,s)||super.walkOption(e,t,s)}walkManySep(e,t,s){this.checkIsTarget(e,n.REPETITION_WITH_SEPARATOR,t,s)||super.walkOption(e,t,s)}}class e8 extends C{constructor(e,t,s){super(),this.targetOccurrence=e,this.targetProdType=t,this.targetRef=s,this.result=[]}checkIsTarget(e,t){e.idx===this.targetOccurrence&&this.targetProdType===t&&(void 0===this.targetRef||e===this.targetRef)&&(this.result=e.definition)}visitOption(e){this.checkIsTarget(e,n.OPTION)}visitRepetition(e){this.checkIsTarget(e,n.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,n.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,n.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,n.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,n.ALTERNATION)}}function e7(e){let t=Array(e);for(let s=0;s<e;s++)t[s]=[];return t}function te(e){let t=[""];for(let s=0;s<e.length;s++){let i=e[s],n=[];for(let e=0;e<t.length;e++){let s=t[e];n.push(s+"_"+i.tokenTypeIdx);for(let e=0;e<i.categoryMatches.length;e++){let t="_"+i.categoryMatches[e];n.push(s+t)}}t=n}return t}function tt(e,t){let s=e.map(e=>e3([e],1)),i=e7(s.length),n=s.map(e=>{let t={};return e.forEach(e=>{te(e.partialPath).forEach(e=>{t[e]=!0})}),t}),a=s;for(let e=1;e<=t;e++){let s=a;a=e7(s.length);for(let r=0;r<s.length;r++){let o=s[r];for(let s=0;s<o.length;s++){let l=o[s].partialPath,c=o[s].suffixDef,h=te(l);if(function(e,t,s){for(let i=0;i<e.length;i++){if(i===s)continue;let n=e[i];for(let e=0;e<t.length;e++)if(!0===n[t[e]])return!1}return!0}(n,h,r)||0===c.length||l.length===t){let e=i[r];if(!1===tn(e,l)){e.push(l);for(let e=0;e<h.length;e++){let t=h[e];n[r][t]=!0}}}else{let t=e3(c,e+1,l);a[r]=a[r].concat(t),t.forEach(e=>{te(e.partialPath).forEach(e=>{n[r][e]=!0})})}}}}return i}function ts(e,t,s,i){let a=new e8(e,n.ALTERNATION,i);return t.accept(a),tt(a.result,s)}function ti(e,t,s,i){let n=new e8(e,s);t.accept(n);let a=n.result,r=new e9(t,e,s).startWalking();return tt([new A({definition:a}),new A({definition:r})],i)}function tn(e,t){t:for(let s=0;s<e.length;s++){let i=e[s];if(i.length===t.length){for(let e=0;e<i.length;e++){let s=t[e],n=i[e];if(!1==(s===n||void 0!==n.categoryMatchesMap[s.tokenTypeIdx]))continue t}return!0}}return!1}function ta(e){return e.every(e=>e.every(e=>e.every(e=>0===e.categoryMatches.length)))}function tr(e){return`${v(e)}_#_${e.idx}_#_${to(e)}`}function to(e){return e instanceof N?e.terminalType.name:e instanceof g?e.nonTerminalName:""}class tl extends C{constructor(){super(...arguments),this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}}class tc extends C{constructor(){super(...arguments),this.alternations=[]}visitAlternation(e){this.alternations.push(e)}}class th extends C{constructor(){super(...arguments),this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}let td="MismatchedTokenException",tu="NoViableAltException",tp="EarlyExitException",tf="NotAllInputParsedException",tm=[td,tu,tp,tf];function tE(e){return tm.includes(e.name)}Object.freeze(tm);class tT extends Error{constructor(e,t){super(e),this.token=t,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}class tg extends tT{constructor(e,t,s){super(e,t),this.previousToken=s,this.name=td}}class ty extends tT{constructor(e,t,s){super(e,t),this.previousToken=s,this.name=tu}}class tA extends tT{constructor(e,t){super(e,t),this.name=tf}}class tS extends tT{constructor(e,t,s){super(e,t),this.previousToken=s,this.name=tp}}let tL={},tO="InRuleRecoveryException";class tR extends Error{constructor(e){super(e),this.name=tO}}class tk{initRecoverable(e){this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,"recoveryEnabled")?e.recoveryEnabled:tJ.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=tI)}getTokenToInsert(e){let t=eV(e,"",-1,-1,-1,-1,-1,-1);return t.isInsertedInRecovery=!0,t}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,t,s,i){let n=this.findReSyncTokenType(),a=this.exportLexerState(),r=[],o=!1,l=this.LA_FAST(1),c=this.LA_FAST(1),h=()=>{let e=this.LA(0),t=new tg(this.errorMessageProvider.buildMismatchTokenMessage({expected:i,actual:l,previous:e,ruleName:this.getCurrRuleFullName()}),l,this.LA(0));t.resyncedTokens=r.slice(0,-1),this.SAVE_ERROR(t)};for(;!o;)if(this.tokenMatcher(c,i))return void h();else if(s.call(this)){h(),e.apply(this,t);return}else this.tokenMatcher(c,n)?o=!0:(c=this.SKIP_TOKEN(),this.addToResyncTokens(c,r));this.importLexerState(a)}shouldInRepetitionRecoveryBeTried(e,t,s){return!(!1===s||this.tokenMatcher(this.LA_FAST(1),e)||this.isBackTracking()||this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t)))}getNextPossibleTokenTypes(e){let t=e.ruleStack[0];return new eJ(this.getGAstProductions()[t],e).startWalking()}getFollowsForInRuleRecovery(e,t){let s=this.getCurrentGrammarPath(e,t);return this.getNextPossibleTokenTypes(s)}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let e=this.SKIP_TOKEN();return this.consumeToken(),e}throw new tR("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)||0===t.length)return!1;let s=this.LA_FAST(1);return void 0!==t.find(e=>this.tokenMatcher(s,e))}canRecoverWithSingleTokenDeletion(e){return!!this.canTokenTypeBeDeletedInRecovery(e)&&this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let t=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(t).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),t=this.LA_FAST(1),s=2;for(;;){let i=e.find(e=>eO(t,e));if(void 0!==i)return i;t=this.LA(s),s++}}getCurrFollowKey(){if(0===this.RULE_STACK_IDX)return tL;let e=this.currRuleShortName,t=this.getLastExplicitRuleOccurrenceIndex(),s=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(s)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,t=this.RULE_OCCURRENCE_STACK,s=this.RULE_STACK_IDX+1,i=Array(s);for(let n=0;n<s;n++)0===n?i[n]=tL:i[n]={ruleName:this.shortRuleNameToFullName(e[n]),idxInCallingRule:t[n],inRule:this.shortRuleNameToFullName(e[n-1])};return i}flattenFollowSet(){return this.buildFullFollowKeyStack().map(e=>this.getFollowSetFromFollowKey(e)).flat()}getFollowSetFromFollowKey(e){if(e===tL)return[eW];let t=e.ruleName+e.idxInCallingRule+w+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){return this.tokenMatcher(e,eW)||t.push(e),t}reSyncTo(e){let t=[],s=this.LA_FAST(1);for(;!1===this.tokenMatcher(s,e);)s=this.SKIP_TOKEN(),this.addToResyncTokens(s,t);return t.slice(0,-1)}attemptInRepetitionRecovery(e,t,s,i,n,a,r){}getCurrentGrammarPath(e,t){let s=this.getHumanReadableRuleStack();return{ruleStack:s,occurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1),lastTok:e,lastTokOccurrence:t}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,t=Array(e);for(let s=0;s<e;s++)t[s]=this.shortRuleNameToFullName(this.RULE_STACK[s]);return t}}function tI(e,t,s,i,n,a,r){var o,l,c;let h=i|n,d=null!=(o=(l=this.firstAfterRepMap)[c=this.currRuleShortName])?o:l[c]=[],u=d[h];if(void 0===u){let e=this.getCurrRuleFullName();u=new a(this.getGAstProductions()[e],n).startWalking(),d[h]=u}let p=u.token,f=u.occurrence,m=u.isEndOfRule;0===this.RULE_STACK_IDX&&m&&void 0===p&&(p=eW,f=1),void 0!==p&&void 0!==f&&this.shouldInRepetitionRecoveryBeTried(p,f,r)&&this.tryInRepetitionRecovery(e,t,s,p)}class tN{constructor(e){var t;this.maxLookahead=null!=(t=null==e?void 0:e.maxLookahead)?t:tJ.maxLookahead}validate(e){let t=this.validateNoLeftRecursion(e.rules);if(0===t.length){let s=this.validateEmptyOrAlternatives(e.rules);return[...t,...s,...this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),...this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead)]}return t}validateNoLeftRecursion(e){return e.flatMap(e=>(function e(t,s,i,n=[]){let a=[],o=function e(t){let s=[];if(0===t.length)return s;let i=t[0];if(i instanceof g)s.push(i.referencedRule);else if(i instanceof A||i instanceof S||i instanceof L||i instanceof O||i instanceof k||i instanceof R)s=s.concat(e(i.definition));else if(i instanceof I)s=i.definition.map(t=>e(t.definition)).flat();else if(i instanceof N);else throw Error("non exhaustive match");let n=_(i),a=t.length>1;if(!n||!a)return s;{let i=t.slice(1);return s.concat(e(i))}}(s.definition);if(0===o.length)return[];{let s=t.name;o.includes(t)&&a.push({message:i.buildLeftRecursionError({topLevelRule:t,leftRecursionPath:n}),type:r.LEFT_RECURSION,ruleName:s});let l=n.concat([t]),c=o.filter(e=>!l.includes(e)).flatMap(s=>{let a=[...n];return a.push(s),e(t,s,i,a)});return a.concat(c)}})(e,e,eY))}validateEmptyOrAlternatives(e){return e.flatMap(e=>(function(e,t){let s=new tc;return e.accept(s),s.alternations.flatMap(s=>s.definition.slice(0,-1).flatMap((i,n)=>0===function(e,t,s,i){let n="EXIT_NONE_TERMINAL",a=[n],r="EXIT_ALTERNATIVE",o=!1,l=t.length,c=l-1-1,h=[],d=[];for(d.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});0!==d.length;){let e=d.pop();if(e===r){o&&d.at(-1).idx<=c&&d.pop();continue}let i=e.def,u=e.idx,p=e.ruleStack,f=e.occurrenceStack;if(0===i.length)continue;let m=i[0];if(m===n){let e={idx:u,def:i.slice(1),ruleStack:p.slice(0,-1),occurrenceStack:f.slice(0,-1)};d.push(e)}else if(m instanceof N)if(u<l-1){let e=u+1;if(s(t[e],m.terminalType)){let t={idx:e,def:i.slice(1),ruleStack:p,occurrenceStack:f};d.push(t)}}else if(u===l-1)h.push({nextTokenType:m.terminalType,nextTokenOccurrence:m.idx,ruleStack:p,occurrenceStack:f}),o=!0;else throw Error("non exhaustive match");else if(m instanceof g){let e=[...p];e.push(m.nonTerminalName);let t=[...f];t.push(m.idx);let s={idx:u,def:m.definition.concat(a,i.slice(1)),ruleStack:e,occurrenceStack:t};d.push(s)}else if(m instanceof S){let e={idx:u,def:i.slice(1),ruleStack:p,occurrenceStack:f};d.push(e),d.push(r);let t={idx:u,def:m.definition.concat(i.slice(1)),ruleStack:p,occurrenceStack:f};d.push(t)}else if(m instanceof L){let e=new R({definition:m.definition,idx:m.idx}),t={idx:u,def:m.definition.concat([e],i.slice(1)),ruleStack:p,occurrenceStack:f};d.push(t)}else if(m instanceof O){let e=new R({definition:[new N({terminalType:m.separator})].concat(m.definition),idx:m.idx}),t={idx:u,def:m.definition.concat([e],i.slice(1)),ruleStack:p,occurrenceStack:f};d.push(t)}else if(m instanceof k){let e={idx:u,def:i.slice(1),ruleStack:p,occurrenceStack:f};d.push(e),d.push(r);let t=new R({definition:[new N({terminalType:m.separator})].concat(m.definition),idx:m.idx}),s={idx:u,def:m.definition.concat([t],i.slice(1)),ruleStack:p,occurrenceStack:f};d.push(s)}else if(m instanceof R){let e={idx:u,def:i.slice(1),ruleStack:p,occurrenceStack:f};d.push(e),d.push(r);let t=new R({definition:m.definition,idx:m.idx}),s={idx:u,def:m.definition.concat([t],i.slice(1)),ruleStack:p,occurrenceStack:f};d.push(s)}else if(m instanceof I)for(let e=m.definition.length-1;e>=0;e--){let t={idx:u,def:m.definition[e].definition.concat(i.slice(1)),ruleStack:p,occurrenceStack:f};d.push(t),d.push(r)}else if(m instanceof A)d.push({idx:u,def:m.definition.concat(i.slice(1)),ruleStack:p,occurrenceStack:f});else if(m instanceof y)d.push(function(e,t,s,i){let n=[...s];n.push(e.name);let a=[...i];return a.push(1),{idx:t,def:e.definition,ruleStack:n,occurrenceStack:a}}(m,u,p,f));else throw Error("non exhaustive match")}return h}([i],[],eO,0).length?[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:n}),type:r.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:n+1}]:[]))})(e,eY))}validateAmbiguousAlternationAlternatives(e,t){return e.flatMap(e=>(function(e,t,s){let i=new tc;e.accept(i);let n=i.alternations;return(n=n.filter(e=>!0!==e.ignoreAmbiguities)).flatMap(i=>{let n=ts(i.idx,e,i.maxLookahead||t,i),a=function(e,t,s,i){let n=[];return e.reduce((s,i,a)=>(!0===t.definition[a].ignoreAmbiguities||i.forEach(i=>{let r=[a];e.forEach((e,s)=>{a!==s&&tn(e,i)&&!0!==t.definition[s].ignoreAmbiguities&&r.push(s)}),r.length>1&&!tn(n,i)&&(n.push(i),s.push({alts:r,path:i}))}),s),[]).map(e=>{let n=e.alts.map(e=>e+1);return{message:i.buildAlternationAmbiguityError({topLevelRule:s,alternation:t,ambiguityIndices:n,prefixPath:e.path}),type:r.AMBIGUOUS_ALTS,ruleName:s.name,occurrence:t.idx,alternatives:e.alts}})}(n,i,e,s),o=function(e,t,s,i){let n=e.reduce((e,t,s)=>{let i=t.map(e=>({idx:s,path:e}));return e.concat(i)},[]);return n.flatMap(e=>{if(!0===t.definition[e.idx].ignoreAmbiguities)return[];let a=e.idx,o=e.path;return n.filter(e=>{var s;return!0!==t.definition[e.idx].ignoreAmbiguities&&e.idx<a&&(s=e.path,s.length<o.length&&s.every((e,t)=>{let s=o[t];return e===s||s.categoryMatchesMap[e.tokenTypeIdx]}))}).map(e=>{let n=[e.idx+1,a+1],o=0===t.idx?"":t.idx;return{message:i.buildAlternationPrefixAmbiguityError({topLevelRule:s,alternation:t,ambiguityIndices:n,prefixPath:e.path}),type:r.AMBIGUOUS_PREFIX_ALTS,ruleName:s.name,occurrence:o,alternatives:n}})})}(n,i,e,s);return a.concat(o)})})(e,t,eY))}validateSomeNonEmptyLookaheadPath(e,t){let s=[];return e.forEach(e=>{let i=new th;e.accept(i),i.allProductions.forEach(i=>{let n=e5(i),a=i.maxLookahead||t;if(0===ti(i.idx,e,n,a)[0].flat().length){let t=eY.buildEmptyRepetitionError({topLevelRule:e,repetition:i});s.push({message:t,type:r.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}})}),s}buildLookaheadForAlternation(e){return function(e,t,s,i,n,a){let r=ts(e,t,s),o=ta(r)?eR:eO;return a(r,i,o,n)}(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,e6)}buildLookaheadForOptional(e){return function(e,t,s,i,n,a){let r=ti(e,t,n,s),o=ta(r)?eR:eO;return a(r[0],o,i)}(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,e5(e.prodType),e4)}}class tb{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:tJ.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,"maxLookahead")?e.maxLookahead:tJ.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,"lookaheadStrategy")?e.lookaheadStrategy:new tN({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,()=>{let{alternation:t,repetition:s,option:i,repetitionMandatory:n,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:r}=function(e){t_.reset(),e.accept(t_);let t=t_.dslMethods;return t_.reset(),t}(e);t.forEach(t=>{let s=0===t.idx?"":t.idx;this.TRACE_INIT(`${v(t)}${s}`,()=>{let s=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[e.name],256|t.idx,s)})}),s.forEach(t=>{this.computeLookaheadFunc(e,t.idx,768,"Repetition",t.maxLookahead,v(t))}),i.forEach(t=>{this.computeLookaheadFunc(e,t.idx,512,"Option",t.maxLookahead,v(t))}),n.forEach(t=>{this.computeLookaheadFunc(e,t.idx,1024,"RepetitionMandatory",t.maxLookahead,v(t))}),a.forEach(t=>{this.computeLookaheadFunc(e,t.idx,1536,"RepetitionMandatoryWithSeparator",t.maxLookahead,v(t))}),r.forEach(t=>{this.computeLookaheadFunc(e,t.idx,1280,"RepetitionWithSeparator",t.maxLookahead,v(t))})})})}computeLookaheadFunc(e,t,s,i,n,a){this.TRACE_INIT(`${a}${0===t?"":t}`,()=>{let a=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:n||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:i});this.setLaFuncCache(this.fullRuleNameToShort[e.name],s|t,a)})}setLaFuncCache(e,t,s){let i=this.lookAheadFuncsCache[e];void 0===i&&(i=[],this.lookAheadFuncsCache[e]=i),i[t]=s}}class tC extends C{constructor(){super(...arguments),this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}}let t_=new tC;function tv(e,t){-1===e.startOffset?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset)}function tx(e,t){-1===e.startOffset?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset==!0&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function tU(e,t){Object.defineProperty(e,"name",{enumerable:!1,configurable:!0,writable:!1,value:t})}function tM(e,t){let s=Object.keys(e),i=s.length;for(let n=0;n<i;n++){let i=e[s[n]],a=i.length;for(let e=0;e<a;e++){let s=i[e];void 0===s.tokenTypeIdx&&this[s.name](s.children,t)}}}!function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"}(a||(a={}));class tw{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,"nodeLocationTracking")?e.nodeLocationTracking:tJ.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=tx,this.setNodeLocationFromNode=tx,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=tv,this.setNodeLocationFromNode=tv,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid <nodeLocationTracking> config option: "${e.nodeLocationTracking}"`);else this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{}}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let t=this.LA_FAST(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t),this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let t=this.LA(0),s=e.location;-1!==s.startOffset&&s.startOffset<=t.startOffset==!0?(s.endOffset=t.endOffset,s.endLine=t.endLine,s.endColumn=t.endColumn):(s.startOffset=-1,s.startLine=-1,s.startColumn=-1)}cstPostRuleOnlyOffset(e){let t=this.LA(0),s=e.location;-1!==s.startOffset&&s.startOffset<=t.startOffset==!0?s.endOffset=t.endOffset:s.startOffset=-1}cstPostTerminal(e,t){let s=this.CST_STACK[this.CST_STACK.length-1];void 0===s.children[e]?s.children[e]=[t]:s.children[e].push(t),this.setNodeLocationFromToken(s.location,t)}cstPostNonTerminal(e,t){let s=this.CST_STACK[this.CST_STACK.length-1];void 0===s.children[t]?s.children[t]=[e]:s.children[t].push(e),this.setNodeLocationFromNode(s.location,e.location)}get currCSTNode(){return this.CST_STACK[this.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(void 0===this.baseCstVisitorConstructor){let e=function(e,t){let s=function(){};return tU(s,e+"BaseSemantics"),s.prototype={visit:function(e,t){if(Array.isArray(e)&&(e=e[0]),void 0!==e)return this[e.name](e.children,t)},validateVisitor:function(){var e,s,i;let n=(e=this,s=t,i=e,s.filter(e=>"function"==typeof i[e]==!1).map(e=>({msg:`Missing visitor method: <${e}> on ${i.constructor.name} CST Visitor.`,type:a.MISSING_METHOD,methodName:e})).filter(Boolean));if(0!==n.length){let e=n.map(e=>e.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:
|
|
52
|
-
${e.join("\n\n").replace(/\n/g,"\n ")}`)}}},s.prototype.constructor=s,s._RULE_NAMES=t,s}(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(void 0===this.baseCstVisitorWithDefaultsConstructor){let e=function(e,t,s){let i=function(){};tU(i,e+"BaseSemanticsWithDefaults");let n=Object.create(s.prototype);return t.forEach(e=>{n[e]=tM}),i.prototype=n,i.prototype.constructor=i,i}(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}}class tP{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){return this.currIdx<=this.tokVectorLength-2?(this.consumeToken(),this.LA_FAST(1)):tq}LA_FAST(e){let t=this.currIdx+e;return this.tokVector[t]}LA(e){let t=this.currIdx+e;return t<0||this.tokVectorLength<=t?tq:this.tokVector[t]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}}class tD{ACTION(e){return e.call(this)}consume(e,t,s){return this.consumeInternal(t,e,s)}subrule(e,t,s){return this.subruleInternal(t,e,s)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,s=tZ){if(this.definedRulesNames.includes(e)){let t={message:eY.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:r.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(t)}this.definedRulesNames.push(e);let i=this.defineRule(e,t,s);return this[e]=i,i}OVERRIDE_RULE(e,t,s=tZ){let i=function(e,t,s){let i=[];return t.includes(e)||i.push({message:`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${s}<-as it is not defined in any of the super grammars `,type:r.INVALID_RULE_OVERRIDE,ruleName:e}),i}(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(i);let n=this.defineRule(e,t,s);return this[e]=n,n}BACKTRACK(e,t){var s;let i=null!=(s=e.coreRule)?s:e;return function(){this.isBackTrackingStack.push(1);let e=this.saveRecogState();try{return i.apply(this,t),!0}catch(e){if(tE(e))return!1;throw e}finally{this.reloadRecogState(e),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return Object.values(this.gastProductionsCache).map(function e(t){function s(t){return t.map(e)}if(t instanceof g){let e={type:"NonTerminal",name:t.nonTerminalName,idx:t.idx};return"string"==typeof t.label&&(e.label=t.label),e}if(t instanceof A)return{type:"Alternative",definition:s(t.definition)};if(t instanceof S)return{type:"Option",idx:t.idx,definition:s(t.definition)};if(t instanceof L)return{type:"RepetitionMandatory",idx:t.idx,definition:s(t.definition)};if(t instanceof O)return{type:"RepetitionMandatoryWithSeparator",idx:t.idx,separator:e(new N({terminalType:t.separator})),definition:s(t.definition)};else if(t instanceof k)return{type:"RepetitionWithSeparator",idx:t.idx,separator:e(new N({terminalType:t.separator})),definition:s(t.definition)};else if(t instanceof R)return{type:"Repetition",idx:t.idx,definition:s(t.definition)};else if(t instanceof I)return{type:"Alternation",idx:t.idx,definition:s(t.definition)};else if(t instanceof N){var i,n;let e={type:"Terminal",name:t.terminalType.name,label:"string"==typeof(n=i=t.terminalType).LABEL&&""!==n.LABEL?i.LABEL:i.name,idx:t.idx};"string"==typeof t.label&&(e.terminalLabel=t.label);let s=t.terminalType.PATTERN;return t.terminalType.PATTERN&&(e.pattern=s instanceof RegExp?s.source:s),e}else if(t instanceof y)return{type:"Rule",name:t.name,orgText:t.orgText,definition:s(t.definition)};else throw Error("non exhaustive match")})}}class t${initRecognizerEngine(e,t){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=eR,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(t,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n For Further details.");if(Array.isArray(e)){if(0===e.length)throw Error("A Token Vocabulary cannot be empty.\n Note that the first argument for the parser constructor\n is no longer a Token vector (since v4.0).");if("number"==typeof e[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.")}if(Array.isArray(e))this.tokensMap=e.reduce((e,t)=>(e[t.name]=t,e),{});else if(Object.hasOwn(e,"modes")&&Object.values(e.modes).flat().every(e_)){let t=[...new Set(Object.values(e.modes).flat())];this.tokensMap=t.reduce((e,t)=>(e[t.name]=t,e),{})}else if("object"==typeof e&&null!==e)this.tokensMap=Object.assign({},e);else throw Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=eW;let s=(Object.hasOwn(e,"modes")?Object.values(e.modes).flat():Object.values(e)).every(e=>{var t;return(null==(t=e.categoryMatches)?void 0:t.length)==0});this.tokenMatcher=s?eR:eO,eN(Object.values(this.tokensMap))}defineRule(e,t,s){let i;if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'
|
|
53
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let n=Object.hasOwn(s,"resyncEnabled")?s.resyncEnabled:tZ.resyncEnabled,a=Object.hasOwn(s,"recoveryValueFunc")?s.recoveryValueFunc:tZ.recoveryValueFunc,r=this.ruleShortNameIdx++;return this.shortRuleNameToFull[r]=e,this.fullRuleNameToShort[e]=r,i=!0===this.outputCst?function(...s){try{this.ruleInvocationStateUpdate(r,e,this.subruleIdx),t.apply(this,s);let i=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(i),i}catch(e){return this.invokeRuleCatch(e,n,a)}finally{this.ruleFinallyStateUpdate()}}:function(...s){try{return this.ruleInvocationStateUpdate(r,e,this.subruleIdx),t.apply(this,s)}catch(e){return this.invokeRuleCatch(e,n,a)}finally{this.ruleFinallyStateUpdate()}},Object.assign(function(...t){this.onBeforeParse(e);try{return i.apply(this,t)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:t,coreRule:i})}invokeRuleCatch(e,t,s){let i=0===this.RULE_STACK_IDX,n=t&&!this.isBackTracking()&&this.recoveryEnabled;if(tE(e)){if(n){let t=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(t)){if(e.resyncedTokens=this.reSyncTo(t),!this.outputCst)return s(e);{let e=this.CST_STACK[this.CST_STACK.length-1];return e.recoveredNode=!0,e}}if(this.outputCst){let t=this.CST_STACK[this.CST_STACK.length-1];t.recoveredNode=!0,e.partialCstResult=t}throw e}if(i)return this.moveToTerminatedState(),s(e)}throw e}optionInternal(e,t){return this.optionInternalLogic(e,t,512|t)}optionInternalLogic(e,t,s){let i,n=this.currRuleLookaheadFuncs[s];if("function"!=typeof e){i=e.DEF;let t=e.GATE;if(void 0!==t){let e=n;n=()=>t.call(this)&&e.call(this)}}else i=e;if(!0===n.call(this))return i.call(this)}atLeastOneInternal(e,t){return this.atLeastOneInternalLogic(e,t,1024|e)}atLeastOneInternalLogic(e,t,s){let i,a=this.currRuleLookaheadFuncs[s];if("function"!=typeof t){i=t.DEF;let e=t.GATE;if(void 0!==e){let t=a;a=()=>e.call(this)&&t.call(this)}}else i=t;if(!0===a.call(this)){let e=this.doSingleRepetition(i);for(;!0===a.call(this)&&!0===e;)e=this.doSingleRepetition(i)}else throw this.raiseEarlyExitException(e,n.REPETITION_MANDATORY,t.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],a,1024,e,e1)}atLeastOneSepFirstInternal(e,t){this.atLeastOneSepFirstInternalLogic(e,t,1536|e)}atLeastOneSepFirstInternalLogic(e,t,s){let i=t.DEF,a=t.SEP;if(!0===this.currRuleLookaheadFuncs[s].call(this)){i.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),a);for(;!0===this.tokenMatcher(this.LA_FAST(1),a);)this.CONSUME(a),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,a,t,i,e2],t,1536,e,e2)}else throw this.raiseEarlyExitException(e,n.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}manyInternal(e,t){return this.manyInternalLogic(e,t,768|e)}manyInternalLogic(e,t,s){let i,n=this.currRuleLookaheadFuncs[s];if("function"!=typeof t){i=t.DEF;let e=t.GATE;if(void 0!==e){let t=n;n=()=>e.call(this)&&t.call(this)}}else i=t;let a=!0;for(;!0===n.call(this)&&!0===a;)a=this.doSingleRepetition(i);this.attemptInRepetitionRecovery(this.manyInternal,[e,t],n,768,e,eQ,a)}manySepFirstInternal(e,t){this.manySepFirstInternalLogic(e,t,1280|e)}manySepFirstInternalLogic(e,t,s){let i=t.DEF,n=t.SEP;if(!0===this.currRuleLookaheadFuncs[s].call(this)){i.call(this);let t=()=>this.tokenMatcher(this.LA_FAST(1),n);for(;!0===this.tokenMatcher(this.LA_FAST(1),n);)this.CONSUME(n),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,n,t,i,e0],t,1280,e,e0)}}repetitionSepSecondInternal(e,t,s,i,n){for(;s();)this.CONSUME(t),i.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,s,i,n],s,1536,e,n)}doSingleRepetition(e){let t=this.getLexerPosition();return e.call(this),this.getLexerPosition()>t}orInternal(e,t){let s=256|t,i=Array.isArray(e)?e:e.DEF,n=this.currRuleLookaheadFuncs[s].call(this,i);if(void 0!==n)return i[n].ALT.call(this);this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]),this.cstFinallyStateUpdate()}subruleInternal(e,t,s){let i;try{let n=void 0!==s?s.ARGS:void 0;return this.subruleIdx=t,i=e.coreRule.apply(this,n),this.cstPostNonTerminal(i,void 0!==s&&void 0!==s.LABEL?s.LABEL:e.ruleName),i}catch(t){throw this.subruleInternalError(t,s,e.ruleName)}}subruleInternalError(e,t,s){throw tE(e)&&void 0!==e.partialCstResult&&(this.cstPostNonTerminal(e.partialCstResult,void 0!==t&&void 0!==t.LABEL?t.LABEL:s),delete e.partialCstResult),e}consumeInternal(e,t,s){let i;try{let t=this.LA_FAST(1);!0===this.tokenMatcher(t,e)?(this.consumeToken(),i=t):this.consumeInternalError(e,t,s)}catch(s){i=this.consumeInternalRecovery(e,t,s)}return this.cstPostTerminal(void 0!==s&&void 0!==s.LABEL?s.LABEL:e.name,i),i}consumeInternalError(e,t,s){let i,n=this.LA(0);throw i=void 0!==s&&s.ERR_MSG?s.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:n,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new tg(i,t,n))}consumeInternalRecovery(e,t,s){if(this.recoveryEnabled&&"MismatchedTokenException"===s.name&&!this.isBackTracking()){let i=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,i)}catch(e){if(e.name===tO)throw s;throw e}}throw s}saveRecogState(){let e=this.errors,t=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let t=e.RULE_STACK;for(let e=0;e<t.length;e++)this.RULE_STACK[e]=t[e];this.RULE_STACK_IDX=t.length-1,this.RULE_STACK_IDX>=0&&(this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName])}ruleInvocationStateUpdate(e,t,s){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=s,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(t)}isBackTracking(){return 0!==this.isBackTrackingStack.length}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),eW)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let e=0;e<this.maxLookahead+1;e++)this.tokVector.push(tq)}onAfterParse(e){if(!1===this.isAtEndOfInput()){let e=this.LA(1),t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new tA(t,e))}for(;this.tokVector.at(-1)===tq;)this.tokVector.pop()}}class tK{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Object.hasOwn(e,"errorMessageProvider")?e.errorMessageProvider:tJ.errorMessageProvider}SAVE_ERROR(e){if(tE(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(e),e;throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return[...this._errors]}set errors(e){this._errors=e}raiseEarlyExitException(e,t,s){let i=this.getCurrRuleFullName(),n=ti(e,this.getGAstProductions()[i],t,this.maxLookahead)[0],a=[];for(let e=1;e<=this.maxLookahead;e++)a.push(this.LA(e));let r=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:n,actual:a,previous:this.LA(0),customUserDescription:s,ruleName:i});throw this.SAVE_ERROR(new tS(r,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){let s=this.getCurrRuleFullName(),i=ts(e,this.getGAstProductions()[s],this.maxLookahead),n=[];for(let e=1;e<=this.maxLookahead;e++)n.push(this.LA(e));let a=this.LA(0),r=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:n,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new ty(r,this.LA(1),a))}}let tF={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(tF);let tB=eG({name:"RECORDING_PHASE_TOKEN",pattern:ex.NA});eN([tB]);let tj=eV(tB,"This IToken indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(tj);let tG={name:"This CSTNode indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}};class tW{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";this[`CONSUME${t}`]=function(t,s){return this.consumeInternalRecord(t,e,s)},this[`SUBRULE${t}`]=function(t,s){return this.subruleInternalRecord(t,e,s)},this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)},this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)},this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)},this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)},this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)},this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this.consume=function(e,t,s){return this.consumeInternalRecord(t,e,s)},this.subrule=function(e,t,s){return this.subruleInternalRecord(t,e,s)},this.option=function(e,t){return this.optionInternalRecord(t,e)},this.or=function(e,t){return this.orInternalRecord(t,e)},this.many=function(e,t){this.manyInternalRecord(e,t)},this.atLeastOne=function(e,t){this.atLeastOneInternalRecord(e,t)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{for(let e=0;e<10;e++){let t=e>0?e:"";delete this[`CONSUME${t}`],delete this[`SUBRULE${t}`],delete this[`OPTION${t}`],delete this[`OR${t}`],delete this[`MANY${t}`],delete this[`MANY_SEP${t}`],delete this[`AT_LEAST_ONE${t}`],delete this[`AT_LEAST_ONE_SEP${t}`]}delete this.consume,delete this.subrule,delete this.option,delete this.or,delete this.many,delete this.atLeastOne,delete this.ACTION,delete this.BACKTRACK,delete this.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>!0}LA_RECORD(e){return tq}topLevelRuleRecord(e,t){try{let s=new y({definition:[],name:e});return s.name=e,this.recordingProdStack.push(s),t.call(this),this.recordingProdStack.pop(),s}catch(e){if(!0!==e.KNOWN_RECORDER_ERROR)try{e.message=e.message+'\n This error was thrown during the "grammar recording phase" For more info see:\n https://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(e){}throw e}}optionInternalRecord(e,t){return tV.call(this,S,e,t)}atLeastOneInternalRecord(e,t){tV.call(this,L,t,e)}atLeastOneSepFirstInternalRecord(e,t){tV.call(this,O,t,e,!0)}manyInternalRecord(e,t){tV.call(this,R,t,e)}manySepFirstInternalRecord(e,t){tV.call(this,k,t,e,!0)}orInternalRecord(e,t){return tz.call(this,e,t)}subruleInternalRecord(e,t,s){if(tY(t),!e||!Object.hasOwn(e,"ruleName")){let s=Error(`<SUBRULE${tH(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>
|
|
54
|
-
inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let i=this.recordingProdStack.at(-1),n=new g({idx:t,nonTerminalName:e.ruleName,label:null==s?void 0:s.LABEL,referencedRule:void 0});return i.definition.push(n),this.outputCst?tG:tF}consumeInternalRecord(e,t,s){if(tY(t),!eb(e)){let s=Error(`<CONSUME${tH(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>
|
|
55
|
-
inside top level rule: <${this.recordingProdStack[0].name}>`);throw s.KNOWN_RECORDER_ERROR=!0,s}let i=this.recordingProdStack.at(-1),n=new N({idx:t,terminalType:e,label:null==s?void 0:s.LABEL});return i.definition.push(n),tj}}function tV(e,t,s,i=!1){tY(s);let n=this.recordingProdStack.at(-1),a="function"==typeof t?t:t.DEF,r=new e({definition:[],idx:s});return i&&(r.separator=t.SEP),Object.hasOwn(t,"MAX_LOOKAHEAD")&&(r.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(r),a.call(this),n.definition.push(r),this.recordingProdStack.pop(),tF}function tz(e,t){tY(t);let s=this.recordingProdStack.at(-1),i=!1===Array.isArray(e),n=!1===i?e:e.DEF,a=new I({definition:[],idx:t,ignoreAmbiguities:i&&!0===e.IGNORE_AMBIGUITIES});return Object.hasOwn(e,"MAX_LOOKAHEAD")&&(a.maxLookahead=e.MAX_LOOKAHEAD),a.hasPredicates=n.some(e=>"function"==typeof e.GATE),s.definition.push(a),n.forEach(e=>{let t=new A({definition:[]});a.definition.push(t),Object.hasOwn(e,"IGNORE_AMBIGUITIES")?t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES:Object.hasOwn(e,"GATE")&&(t.ignoreAmbiguities=!0),this.recordingProdStack.push(t),e.ALT.call(this),this.recordingProdStack.pop()}),tF}function tH(e){return 0===e?"":`${e}`}function tY(e){if(e<0||e>255){let t=Error(`Invalid DSL Method idx value: <${e}>
|
|
56
|
-
Idx value must be a none negative value smaller than 256`);throw t.KNOWN_RECORDER_ERROR=!0,t}}class tX{initPerformanceTracer(e){if(Object.hasOwn(e,"traceInitPerf")){let t=e.traceInitPerf,s="number"==typeof t;this.traceInitMaxIdent=s?t:1/0,this.traceInitPerf=s?t>0:t}else this.traceInitMaxIdent=0,this.traceInitPerf=tJ.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,t){if(!0!==this.traceInitPerf)return t();{this.traceInitIndent++;let s=Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(`${s}--> <${e}>`);let{time:i,value:n}=eL(t),a=i>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&a(`${s}<-- <${e}> time: ${i}ms`),this.traceInitIndent--,n}}}let tq=eV(eW,"",-1,-1,-1,-1,-1,-1);Object.freeze(tq);let tJ=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:ez,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),tZ=Object.freeze({recoveryValueFunc:()=>void 0,resyncEnabled:!0});!function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"}(r||(r={}));class tQ{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let t=this.className;this.TRACE_INIT("toFastProps",()=>{E(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach(e=>{let t,s=this[e].originalGrammarAction;this.TRACE_INIT(`${e} Rule`,()=>{t=this.topLevelRuleRecord(e,s)}),this.gastProductionsCache[e]=t})}finally{this.disableRecording()}});let s=[];if(this.TRACE_INIT("Grammar Resolving",()=>{s=function(e){let t=Object.assign({errMsgProvider:eH},e),s={};e.rules.forEach(e=>{s[e.name]=e});let i=new eX(s,t.errMsgProvider);return i.resolveRefs(),i.errors}({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(s)}),this.TRACE_INIT("Grammar Validations",()=>{if(0===s.length&&!1===this.skipValidations){var e;let s=function(e){var t;let s=null!=(t=e.errMsgProvider)?t:eY;return function(e,t,s,i){let n=e.flatMap(e=>(function(e,t){let s=new tl;return e.accept(s),Object.values(Object.fromEntries(Object.entries(Object.groupBy(s.allProductions,tr)).filter(([e,t])=>t.length>1))).map(s=>{let i=s[0],n=t.buildDuplicateFoundError(e,s),a=v(i),o={message:n,type:r.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:a,occurrence:i.idx},l=to(i);return l&&(o.parameter=l),o})})(e,s)),a=function(e,t,s){let i=[],n=t.map(e=>e.name);return e.forEach(e=>{let t=e.name;if(n.includes(t)){let n=s.buildNamespaceConflictError(e);i.push({message:n,type:r.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}),i}(e,t,s),o=e.flatMap(e=>(function(e,t){let s=new tc;return e.accept(s),s.alternations.flatMap(s=>s.definition.length>255?[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:r.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}]:[])})(e,s)),l=e.flatMap(t=>(function(e,t,s,i){let n=[];if(t.reduce((t,s)=>s.name===e.name?t+1:t,0)>1){let t=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:s});n.push({message:t,type:r.DUPLICATE_RULE_NAME,ruleName:e.name})}return n})(t,e,i,s));return n.concat(a,o,l)}(e.rules,e.tokenTypes,s,e.grammarName)}({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:eY,grammarName:t}),i=(e={lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:t}).lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map(e=>Object.assign({type:r.CUSTOM_LOOKAHEAD_VALIDATION},e));this.definitionErrors=this.definitionErrors.concat(s,i)}}),0===this.definitionErrors.length&&(this.recoveryEnabled&&this.TRACE_INIT("computeAllProdsFollows",()=>{let e=function(e){let t={};return e.forEach(e=>{Object.assign(t,new P(e).startWalking())}),t}(Object.values(this.gastProductionsCache));this.resyncFollows=e}),this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var e,t;null==(t=(e=this.lookaheadStrategy).initialize)||t.call(e,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})),!tQ.DEFER_DEFINITION_ERRORS_HANDLING&&0!==this.definitionErrors.length)throw e=this.definitionErrors.map(e=>e.message),Error(`Parser Definition Errors detected:
|
|
57
|
-
${e.join("\n-------------------------------\n")}`)})}constructor(e,t){if(this.definitionErrors=[],this.selfAnalysisDone=!1,this.initErrorHandler(t),this.initLexerAdapter(),this.initLooksAhead(t),this.initRecognizerEngine(e,t),this.initRecoverable(t),this.initTreeBuilder(t),this.initGastRecorder(t),this.initPerformanceTracer(t),Object.hasOwn(t,"ignoredIssues"))throw Error("The <ignoredIssues> IParserConfig property has been deprecated.\n Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n For further details.");this.skipValidations=Object.hasOwn(t,"skipValidations")?t.skipValidations:tJ.skipValidations}}tQ.DEFER_DEFINITION_ERRORS_HANDLING=!1,function(e,t){t.forEach(t=>{let s=t.prototype;Object.getOwnPropertyNames(s).forEach(i=>{if("constructor"===i)return;let n=Object.getOwnPropertyDescriptor(s,i);n&&(n.get||n.set)?Object.defineProperty(e.prototype,i,n):e.prototype[i]=t.prototype[i]})})}(tQ,[tk,tb,tw,tP,t$,tD,tK,tW,tX]);class t0 extends tQ{constructor(e,t=tJ){let s=Object.assign({},t);s.outputCst=!0,super(e,s)}}var t1=s(45394),t2=(0,m.K)(e=>void 0!==e&&e>=0,"isKnownLocation");function t3(e,t){let s=e.lexer.tokenize(t);if(s.errors.length>0){let i=s.errors[0],n=t2(i.offset)?i.offset:t.length,a=n+(t2(i.length)?i.length:0);throw Error(`Error lexing ${e.diagramType} diagram: ${i.message} at line ${i.line??1}, column ${i.column??1} [${n},${a})`)}e.parser.input=s.tokens;let i=e.entry();if(e.parser.errors.length>0)throw Error(`Error parsing ${e.diagramType} diagram: ${e.parser.errors[0].message}`);e.visit(i)}(0,m.K)(t3,"runChevrotainParse");var t5={SOLID_ARROW:0,BACK_ARROW:1,LINE_SOLID:2,CIRCLE_ARROW:3,CROSS_ARROW:4,CIRCLE_ARROW_REVERSED:5,CROSS_ARROW_REVERSED:6},t6=p.UI.usecase,t4=(0,m.K)(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:"LR",relationshipCounter:0,noteCounter:0,accTitle:"",accDescription:"",ast:void 0,config:structuredClone(t6)}),"createModel"),t9=(0,m.K)(e=>{if(!(e.actors instanceof Map)||!(e.useCases instanceof Map)||!(e.systemBoundaries instanceof Map)||!Array.isArray(e.relationships)||!(e.notes instanceof Map)||!(e.jsonNodes instanceof Map)||!(e.classDefs instanceof Map)||!(e.symbols instanceof Map)||!["TB","TD","BT","RL","LR"].includes(e.direction)||!Number.isSafeInteger(e.relationshipCounter)||e.relationshipCounter<0||!Number.isSafeInteger(e.noteCounter)||e.noteCounter<0||"string"!=typeof e.accTitle||"string"!=typeof e.accDescription||!e.config)throw Error("Cannot commit an incomplete usecase model")},"assertCompleteModel"),t8=t4(),t7=(0,m.K)(()=>structuredClone(t8.config),"getConfig"),se=(0,m.K)(()=>t8.ast,"getAST"),st=(0,m.K)(e=>{let t=structuredClone(e);t9(t);let s=(0,p.iN)(),i=(0,p.m7)();try{(0,p.SV)(t.accTitle),(0,p.EI)(t.accDescription),t8=t}catch(e){throw(0,p.SV)(s),(0,p.EI)(i),e}},"commit"),ss=(0,m.K)(()=>{t8=t4(),(0,p.IU)()},"clear"),si=(0,m.K)(()=>t8.actors,"getActors"),sn=(0,m.K)(e=>t8.actors.get(e),"getActor"),sa=(0,m.K)(()=>t8.useCases,"getUseCases"),sr=(0,m.K)(e=>t8.useCases.get(e),"getUseCase"),so=(0,m.K)(()=>t8.systemBoundaries,"getSystemBoundaries"),sl=(0,m.K)(e=>t8.systemBoundaries.get(e),"getSystemBoundary"),sc=(0,m.K)(()=>t8.relationships,"getRelationships"),sh=(0,m.K)(()=>t8.notes,"getNotes"),sd=(0,m.K)(e=>t8.notes.get(e),"getNote"),su=(0,m.K)(()=>t8.jsonNodes,"getJsonNodes"),sp=(0,m.K)(e=>t8.jsonNodes.get(e),"getJsonNode"),sf=(0,m.K)(()=>t8.classDefs,"getClassDefs"),sm=(0,m.K)(e=>t8.classDefs.get(e),"getClassDef"),sE=(0,m.K)(()=>t8.direction,"getDirection"),sT=(0,m.K)(e=>{let t=new Map;for(let s of["default",...e]){let e=t8.classDefs.get(s);if(e)for(let s of e.styles){let e=s.trim(),i=e.indexOf(":"),n=(-1===i?e:e.slice(0,i)).trim();n&&t.set(n,e)}}return[...t.values()]},"getCompiledStyles"),sg=(0,m.K)(e=>e.replaceAll("~","~0").replaceAll("/","~1"),"escapeJsonPointerPart"),sy=(0,m.K)(e=>"string"==typeof e?e:null===e?"null":String(e),"displayJsonScalar"),sA=(0,m.K)((e,t,s=e=>e)=>{let i=[],n=(0,m.K)((e,t,n)=>{i.push({key:s(e),accessibleKey:s(t),value:s(n)})},"append"),a=(0,m.K)((e,s,i)=>{if(Array.isArray(e)){if(0===e.length)return void n(s,s,"[]");if(e.every(e=>null===e||["string","number","boolean"].includes(typeof e))){for(let[t,i]of e.entries())n(0===t?s:"",s,sy(i));return}for(let[t,n]of e.entries())a(n,`${s}[${t}]`,`${i}/${t}`);return}if(null!==e&&"object"==typeof e){let r=t[i]??Object.keys(e);if(0===r.length)return void n(s,s,"{}");for(let t of r){let n=s?`${s}.${t}`:t;a(e[t],n,`${i}/${sg(t)}`)}return}n(s,s,sy(e))},"visit");return a(e,"",""),i},"flattenJsonRows"),sS=(0,m.K)(e=>{switch(e.type){case"hollow":return"usecaseActorHollow";case"awesome":return"usecaseActorAwesome";case"icon":return"usecaseActorIcon";case"normal":return"usecaseActor"}},"actorShape"),sL=(0,m.K)(e=>"ellipse"===e.shape?e.business?"usecaseBusiness":"usecaseEllipse":e.shape,"useCaseShape"),sO=(0,m.K)(e=>{switch(e){case t5.SOLID_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point"};case t5.BACK_ARROW:return{arrowTypeStart:"arrow_point",arrowTypeEnd:"none"};case t5.CIRCLE_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_circle"};case t5.CROSS_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_cross"};case t5.CIRCLE_ARROW_REVERSED:return{arrowTypeStart:"arrow_circle",arrowTypeEnd:"none"};case t5.CROSS_ARROW_REVERSED:return{arrowTypeStart:"arrow_cross",arrowTypeEnd:"none"};case t5.LINE_SOLID:return{arrowTypeStart:"none",arrowTypeEnd:"none"}}},"associationMarkers"),sR=(0,m.K)(e=>{switch(e.type){case"include":case"extend":return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point",pattern:"dotted",label:e.type,labelType:"text"};case"generalization":return{arrowTypeStart:"none",arrowTypeEnd:"extension",pattern:"solid"};case"association":return{...sO(e.arrowType),pattern:"solid",...e.label?{label:e.label}:{},...e.labelType?{labelType:e.labelType}:{}}}},"relationshipVisuals"),sk=(0,m.K)(e=>e.animate||e.animation?[`edge-animation-${e.animation??"fast"}`]:[],"animationClasses"),sI=(0,m.K)((...e)=>e.filter(e=>!!e).join(" "),"classNames"),sN=(0,m.K)(()=>{let e=(0,p.D7)(),t={...t8.config,...e.usecase},s=(0,m.K)(t=>(0,p.jZ)(t,e),"sanitize"),i=(0,m.K)(e=>s(t8.actors.get(e)?.label??t8.useCases.get(e)?.label??t8.jsonNodes.get(e)?.id??t8.notes.get(e)?.label??e),"endpointLabel"),n=[],a=[],r=0,o=0;for(let t of t8.actors.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:sS(t),isGroup:!1,padding:10,look:e.look,colorIndex:r++,cssClasses:sI("default","usecase-actor",`usecase-actor-${t.type}`,t.business&&"usecase-business",...t.classes),cssStyles:[...t.styles],cssCompiledStyles:sT(t.classes),actorType:t.type,business:t.business,...t.icon?{icon:t.icon}:{},...t.stereotype?{stereotype:s(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of t8.useCases.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:sL(t),isGroup:!1,padding:"ellipse"===t.shape?20:10,look:e.look,colorIndex:r++,cssClasses:sI("default","usecase-element",`usecase-${t.shape}`,t.business&&"usecase-business",...t.classes),cssStyles:[...t.styles],cssCompiledStyles:sT(t.classes),business:t.business,...t.stereotype?{stereotype:s(t.stereotype)}:{},...t.parentId?{parentId:t.parentId}:{}});for(let t of t8.notes.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:"note",isGroup:!1,padding:10,look:e.look,cssClasses:"default usecase-note",cssStyles:[],cssCompiledStyles:sT([]),noteTarget:t.target,noteTargetLabel:s(t8.actors.get(t.target)?.label??t8.useCases.get(t.target)?.label??t8.jsonNodes.get(t.target)?.id??t.target)});for(let t of t8.jsonNodes.values())n.push({id:t.id,label:s(t.id),labelType:"text",shape:"usecaseJsonTable",isGroup:!1,padding:10,look:e.look,cssClasses:sI("default","usecase-json-table",...t.classes),cssStyles:[...t.styles],cssCompiledStyles:sT(t.classes),jsonRows:sA(t.value,t.propertyOrder,s)});for(let t of t8.systemBoundaries.values())n.push({id:t.id,label:s(t.label),labelType:t.labelType,shape:"usecaseSystemBoundary",isGroup:!0,padding:20,look:e.look,colorIndex:o++,cssClasses:sI("default","system-boundary",`system-boundary-${t.type}`,...t.classes),cssStyles:[...t.styles],cssCompiledStyles:sT(t.classes),boundaryType:t.type});for(let t of t8.relationships){let{label:n,...r}=sR(t);a.push({id:t.id,start:t.source,end:t.target,source:t.source,target:t.target,sourceLabel:i(t.source),targetLabel:i(t.target),type:"edge",relationshipType:t.type,internal:!1,...r,...void 0!==n?{label:s(n)}:{},labelpos:"c",classes:sI("default","relationship",`relationship-${t.type}`,...t.classes,...sk(t)),style:[...t.styles],cssCompiledStyles:sT(t.classes),animate:t.animate,...t.animation?{animation:t.animation}:{},look:e.look,thickness:"normal",minlen:t.minlen,isUserDefinedId:t.explicitId})}for(let t of t8.notes.values())a.push({id:`${t.id}-edge`,start:t.id,end:t.target,source:t.id,target:t.target,type:"edge",relationshipType:"note",sourceLabel:i(t.id),targetLabel:i(t.target),internal:!0,pattern:"dotted",arrowTypeStart:"none",arrowTypeEnd:"none",labelpos:"c",classes:"default relationship relationship-note",style:[],cssCompiledStyles:sT([]),animate:!1,look:e.look,thickness:"normal",minlen:1,isUserDefinedId:!1});for(let e of n)e.wrappingWidth??=t.wrappingWidth,e.isGroup||e.shape.startsWith("usecaseActor")||(e.minWidth??=t.minNodeWidth),("usecaseEllipse"===e.shape||"usecaseBusiness"===e.shape)&&(e.spreadPorts=!0);return{nodes:n,edges:a,config:e,type:"usecase",layoutAlgorithm:"dagre",direction:sE(),nodeSpacing:t.nodeSpacing,rankSpacing:t.rankSpacing,actorFontSize:t.actorFontSize,actorFontFamily:t.actorFontFamily,actorFontWeight:t.actorFontWeight,usecaseFontSize:t.usecaseFontSize,usecaseFontFamily:t.usecaseFontFamily,usecaseFontWeight:t.usecaseFontWeight,diagramPadding:t.diagramPadding,useMaxWidth:t.useMaxWidth,markers:["point","circle","cross","extension"]}},"getData"),sb={getConfig:t7,createModel:t4,commit:st,getAST:se,clear:ss,setDiagramTitle:p.ke,getDiagramTitle:p.ab,setAccTitle:p.SV,getAccTitle:p.iN,setAccDescription:p.EI,getAccDescription:p.m7,getActors:si,getActor:sn,getUseCases:sa,getUseCase:sr,getSystemBoundaries:so,getSystemBoundary:sl,getRelationships:sc,getNotes:sh,getNote:sd,getJsonNodes:su,getJsonNode:sp,getClassDefs:sf,getClassDef:sm,getDirection:sE,getData:sN};function sC(e,t,s){let i=[s];return i.index=t,i.input=e,i}(0,m.K)(sC,"customMatch");var s_=(0,m.K)((e,t)=>{if('"'!==e[t]||"`"!==e[t+1])return null;for(let s=t+2;s<e.length-1;s++)if("`"===e[s]&&'"'===e[s+1])return sC(e,t,e.slice(t,s+2));return null},"matchMarkdownString"),sv=(0,m.K)((e,t)=>{if("%"!==e[t]||"%"!==e[t+1])return null;for(let s=t-1;s>=0;s--){let t=e[s];if("\n"===t||"\r"===t)break;if(" "!==t&&" "!==t)return null}let s=t+2;for(;s<e.length&&"\n"!==e[s]&&"\r"!==e[s];)s++;return sC(e,t,e.slice(t,s))},"matchComment"),sx=(0,m.K)((e,t)=>{for(let s=t-1;s>=0;s--){let t=e[s];if("\n"===t||"\r"===t)break;if(" "!==t&&" "!==t)return!1}return!0},"isIndentedLineStart"),sU=(0,m.K)((e,t,s)=>{if(!sx(e,t))return null;let i=s.exec(e.slice(t));return i?sC(e,t,i[0]):null},"matchAccessibilityLine"),sM=(0,m.K)((e,t)=>{if(!sx(e,t))return null;let s=/^accDescr[\t ]*{/.exec(e.slice(t));if(!s)return null;let i=e.indexOf("}",t+s[0].length);return -1===i?null:sC(e,t,e.slice(t,i+1))},"matchAccDescrBlock"),sw=(0,m.K)((e,t)=>{if("{"!==e[t])return null;let s=0,i=!1,n=!1;for(let a=t;a<e.length;a++){let r=e[a];if(i){n?n=!1:"\\"===r?n=!0:'"'===r&&(i=!1);continue}if('"'===r)i=!0;else if("{"===r)s++;else if("}"===r&&0==--s)return sC(e,t,e.slice(t,a+1))}return null},"matchJsonObject"),sP=(0,m.K)((e,t)=>{let s=e.indexOf(">>",t);if(-1===s||/[\n\r]/.test(e.slice(t,s)))return null;let i=e.slice(t,s);return i.trim()?sC(e,t,i):null},"matchStereotypeText"),sD=eG({name:"LABEL_TEXT",pattern:ex.NA}),s$=eG({name:"WORD",pattern:ex.NA,categories:sD}),sK=eG({name:"NUMBER",pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:sD}),sF=eG({name:"IDENTIFIER",pattern:/\w+/,longer_alt:sK,categories:s$}),sB=eG({name:"HWS",pattern:/[\t ]+/,group:ex.SKIPPED}),sj=eG({name:"MARKDOWN_STRING",pattern:s_,start_chars_hint:['"'],line_breaks:!0}),sG=eG({name:"UNCLOSED_MARKDOWN_STRING",pattern:/"`[^]*/,line_breaks:!0}),sW=eG({name:"COMMENT",pattern:sv,start_chars_hint:["%"],line_breaks:!1}),sV=eG({name:"NEWLINE",pattern:/\r\n|\n|\r/,line_breaks:!0}),sz=eG({name:"ACC_DESCR_BLOCK",pattern:sM,start_chars_hint:["a"],line_breaks:!0}),sH=/^accTitle[\t ]*:[^\n\r]*/,sY=/^accDescr[\t ]*:[^\n\r]*/,sX=eG({name:"ACC_TITLE_LINE",pattern:(0,m.K)((e,t)=>sU(e,t,sH),"pattern"),start_chars_hint:["a"],line_breaks:!1}),sq=eG({name:"ACC_DESCR_LINE",pattern:(0,m.K)((e,t)=>sU(e,t,sY),"pattern"),start_chars_hint:["a"],line_breaks:!1}),sJ=eG({name:"JSON_DECLARATION_START",pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:"jsonBody"}),sZ=eG({name:"JSON_OBJECT_LITERAL",pattern:sw,start_chars_hint:["{"],line_breaks:!0,pop_mode:!0}),sQ=eG({name:"UNCLOSED_JSON_OBJECT_LITERAL",pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),s0=(0,m.K)((e,t)=>eG({name:e,pattern:t,longer_alt:sF,categories:s$}),"keyword"),s1=s0("USECASE",/usecase-beta/),s2=s0("ACTOR",/actor/),s3=s0("SYSTEM_BOUNDARY",/systemBoundary/),s5=s0("END",/end/),s6=s0("DIRECTION",/direction/),s4=s0("TD",/TD/),s9=s0("TB",/TB/),s8=s0("BT",/BT/),s7=s0("LR",/LR/),ie=s0("RL",/RL/),it=s0("NOTE",/note/),is=s0("FOR",/for/),ii=s0("JSON",/json/),ia=s0("CLASS_DEF",/classDef/),ir=s0("CLASS",/class/),io=s0("STYLE",/style/),il=s0("INCLUDE",/include/i),ic=s0("EXTEND",/extend/i),ih=s0("TRUE",/true/),id=s0("FALSE",/false/),iu=eG({name:"GENERALIZATION",pattern:/--\|>/}),ip=eG({name:"DEPENDENCY_ARROW",pattern:/\.\.>/}),im=eG({name:"STEREOTYPE_START",pattern:/<</,push_mode:"stereotype"}),iE=eG({name:"STEREOTYPE_END",pattern:/>>/,pop_mode:!0}),iT=eG({name:"STEREOTYPE_TEXT",pattern:sP,line_breaks:!1}),ig=eG({name:"UNCLOSED_STEREOTYPE_TEXT",pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),iy=eG({name:"CLASS_SEPARATOR",pattern:/:::/}),iA=eG({name:"FORWARD_SOLID",pattern:/--+>/}),iS=eG({name:"BACKWARD_SOLID",pattern:/<--+/}),iL=eG({name:"FORWARD_CIRCLE",pattern:/--o/}),iO=eG({name:"BACKWARD_CIRCLE",pattern:/o--/}),iR=eG({name:"FORWARD_CROSS",pattern:/--x/}),ik=eG({name:"BACKWARD_CROSS",pattern:/x--/}),iI=eG({name:"MARKERLESS_SOLID",pattern:/--+/}),iN=eG({name:"METADATA_START",pattern:/@{/}),ib=eG({name:"AT",pattern:/@/,categories:sD}),iC=eG({name:"LBRACE",pattern:/{/}),i_=eG({name:"RBRACE",pattern:/}/}),iv=eG({name:"LBRACKET",pattern:/\[/}),ix=eG({name:"RBRACKET",pattern:/]/}),iU=eG({name:"LPAREN",pattern:/\(/}),iM=eG({name:"RPAREN",pattern:/\)/}),iw=eG({name:"COMMA",pattern:/,/,categories:sD}),iP=eG({name:"COLON",pattern:/:/,categories:sD}),iD=eG({name:"HASH_COLOR",pattern:/#[\dA-Fa-f]+/,categories:sD}),i$=eG({name:"PLAIN_STRING",pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),iK=eG({name:"CSS_IDENTIFIER",pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:sD}),iF=eG({name:"CSS_ESCAPED_COMMA",pattern:/\\,/,categories:sD}),iB=eG({name:"DASH",pattern:/-/,categories:sD}),ij=eG({name:"DOT",pattern:/\./,categories:sD}),iG=eG({name:"PERCENT",pattern:/%/,categories:sD}),iW=eG({name:"CSS_PUNCTUATION",pattern:/[!#$&*+/=?^_|~]/,categories:sD}),iV=eG({name:"LABEL_PUNCTUATION",pattern:/[;<>\\`]/,categories:sD}),iz=eG({name:"LABEL_SYMBOL",pattern:/[^\t\n\r !-~]+/,categories:sD}),iH=[sD,s$,sB,sj,sG,sW,sV,sz,sX,sq,sJ,s1,s2,s3,s5,s6,s4,s9,s8,s7,ie,it,is,ii,ia,ir,io,il,ic,ih,id,iu,ip,im,iy,iA,iS,iL,iO,iR,ik,iI,iN,ib,iC,i_,iv,ix,iU,iM,iw,iP,iD,i$,iK,sF,sK,iF,iB,ij,iG,iW,iV,iz],iY={defaultMode:"defaultMode",modes:{defaultMode:[...iH],jsonBody:[sZ,sQ],stereotype:[iE,iT,ig]}},iX=[...iH,sZ,sQ,iE,iT,ig],iq=new ex(iY),iJ=(0,m.K)(e=>eO(e,sD)||e.tokenType===i$||e.tokenType===sj,"isLabelToken"),iZ={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},iQ=new class extends t0{static{(0,m.K)(this,"UsecaseParser")}constructor(){super(iX,{nodeLocationTracking:"full"}),this.RULE("start",()=>{this.CONSUME(s1),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE("line",()=>{this.OR([{ALT:(0,m.K)(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.commentLine),"ALT")},{GATE:(0,m.K)(()=>this.isStatementStart(),"GATE"),ALT:(0,m.K)(()=>this.SUBRULE(this.statement),"ALT")}])}),this.RULE("statement",()=>{this.OR([{ALT:(0,m.K)(()=>this.SUBRULE(this.accTitleStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.accDescrStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.directionStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.actorStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.systemBoundaryStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.noteStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.jsonStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.classDefStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.classStatement),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.styleStatement),"ALT")},{GATE:(0,m.K)(()=>this.isMetadataAssignment(),"GATE"),ALT:(0,m.K)(()=>this.SUBRULE(this.metadataAssignmentStatement),"ALT")},{GATE:(0,m.K)(()=>!this.isForbiddenPlantUmlStatement(),"GATE"),ALT:(0,m.K)(()=>this.SUBRULE(this.entityStatement),"ALT")}])}),this.RULE("lineEnd",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(sV),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(eW),"ALT")}])}),this.RULE("blankLine",()=>{this.CONSUME(sV)}),this.RULE("commentLine",()=>{this.CONSUME(sW),this.SUBRULE(this.lineEnd)}),this.RULE("accTitleStatement",()=>{this.CONSUME(sX),this.SUBRULE(this.lineEnd)}),this.RULE("accDescrStatement",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(sq),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sz),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("actorStatement",()=>{this.CONSUME(s2),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:(0,m.K)(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(iw),this.SUBRULE2(this.actorItem)}),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.relationTail),"ALT")}])}),this.SUBRULE(this.lineEnd)}),this.RULE("actorItem",()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE("actorName",()=>{this.OR([{ALT:(0,m.K)(()=>{this.CONSUME(sF),this.OPTION(()=>{this.CONSUME(iU),this.SUBRULE(this.nodeLabel),this.CONSUME(iM)})},"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sj),"ALT")}])}),this.RULE("actorDeclarationOnly",()=>{this.CONSUME(s2),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(iw),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE("entityStatement",()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE("entityName",()=>{this.OR([{ALT:(0,m.K)(()=>{this.CONSUME(sF),this.OPTION(()=>{this.OR2([{ALT:(0,m.K)(()=>{this.CONSUME(iU),this.SUBRULE(this.nodeLabel),this.CONSUME(iM)},"ALT")},{ALT:(0,m.K)(()=>{this.CONSUME(iv),this.SUBRULE2(this.nodeLabel),this.CONSUME(ix)},"ALT")}])})},"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sj),"ALT")}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE("nodeLabel",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sj),"ALT")},{ALT:(0,m.K)(()=>this.AT_LEAST_ONE(()=>this.CONSUME(sD)),"ALT")}])}),this.RULE("useCaseMetadata",()=>{this.SUBRULE(this.metadata)}),this.RULE("relationTail",()=>{this.OPTION({GATE:(0,m.K)(()=>this.LA(1).tokenType===sF&&this.LA(2).tokenType===ib,"GATE"),DEF:(0,m.K)(()=>{this.CONSUME(sF),this.CONSUME(ib)},"DEF")}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE("arrow",()=>{this.OR([{ALT:(0,m.K)(()=>this.SUBRULE(this.semanticRelation),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.forwardSolidOperator),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.backwardSolidOperator),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.markerlessSolidOperator),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.forwardCircleOperator),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.backwardCircleOperator),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.forwardCrossOperator),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.backwardCrossOperator),"ALT")}])}),this.RULE("forwardSolidOperator",()=>{this.CONSUME(iA)}),this.RULE("backwardSolidOperator",()=>{this.CONSUME(iS),this.OPTION({GATE:(0,m.K)(()=>"<--"===this.LA(0).image&&this.hasLabeledRight([iI]),"GATE"),DEF:(0,m.K)(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(iI)},"DEF")})}),this.RULE("markerlessSolidOperator",()=>{this.CONSUME(iI),this.OPTION({GATE:(0,m.K)(()=>"--"===this.LA(0).image&&this.hasLabeledRight([iA,iI,iL,iR]),"GATE"),DEF:(0,m.K)(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:(0,m.K)(()=>this.CONSUME(iA),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME2(iI),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iL),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iR),"ALT")}])},"DEF")})}),this.RULE("forwardCircleOperator",()=>{this.CONSUME(iL)}),this.RULE("backwardCircleOperator",()=>{this.CONSUME(iO),this.OPTION({GATE:(0,m.K)(()=>this.hasLabeledRight([iI]),"GATE"),DEF:(0,m.K)(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(iI)},"DEF")})}),this.RULE("forwardCrossOperator",()=>{this.CONSUME(iR)}),this.RULE("backwardCrossOperator",()=>{this.CONSUME(ik),this.OPTION({GATE:(0,m.K)(()=>this.hasLabeledRight([iI]),"GATE"),DEF:(0,m.K)(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(iI)},"DEF")})}),this.RULE("edgeLabel",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sj),"ALT")},{ALT:(0,m.K)(()=>this.AT_LEAST_ONE(()=>this.CONSUME(sD)),"ALT")}])}),this.RULE("semanticRelation",()=>{this.OR([{ALT:(0,m.K)(()=>{this.CONSUME(ip),this.CONSUME(iP),this.OR2([{ALT:(0,m.K)(()=>this.CONSUME(il),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(ic),"ALT")}])},"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iu),"ALT")}])}),this.RULE("metadata",()=>{this.CONSUME(iN),this.MANY(()=>this.CONSUME(sV)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(iw)),this.MANY3(()=>this.CONSUME2(sV))}),this.CONSUME(i_)}),this.RULE("metadataProperty",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(sF),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")}]),this.CONSUME(iP),this.OR2([{ALT:(0,m.K)(()=>this.CONSUME2(sF),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME2(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(ih),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(id),"ALT")}])}),this.RULE("metadataSeparator",()=>{this.OR([{ALT:(0,m.K)(()=>{this.CONSUME(iw),this.MANY(()=>this.CONSUME(sV))},"ALT")},{ALT:(0,m.K)(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2(sV)),this.OPTION(()=>this.CONSUME2(iw)),this.MANY2(()=>this.CONSUME3(sV))},"ALT")}])}),this.RULE("systemBoundaryStatement",()=>{this.CONSUME(s3),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(s5),this.SUBRULE2(this.lineEnd)}),this.RULE("systemBoundaryName",()=>{this.OR([{ALT:(0,m.K)(()=>{this.CONSUME(sF),this.OPTION(()=>{this.OR2([{ALT:(0,m.K)(()=>{this.CONSUME(iU),this.SUBRULE(this.nodeLabel),this.CONSUME(iM)},"ALT")},{ALT:(0,m.K)(()=>{this.CONSUME(iv),this.SUBRULE2(this.nodeLabel),this.CONSUME(ix)},"ALT")}])})},"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sj),"ALT")}])}),this.RULE("systemBoundaryContent",()=>{this.MANY(()=>{this.OR([{ALT:(0,m.K)(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.commentLine),"ALT")},{ALT:(0,m.K)(()=>this.SUBRULE(this.boundaryElement),"ALT")}])})}),this.RULE("boundaryElement",()=>{this.OR([{ALT:(0,m.K)(()=>this.SUBRULE(this.actorDeclarationOnly),"ALT")},{ALT:(0,m.K)(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},"ALT")}])}),this.RULE("metadataAssignmentStatement",()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE("metadataAssignmentTarget",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(sF),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sj),"ALT")}])}),this.RULE("noteStatement",()=>{this.CONSUME(it),this.CONSUME(is),this.CONSUME(sF),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE("stereotype",()=>{this.CONSUME(im),this.CONSUME(iT),this.CONSUME(iE)}),this.RULE("classSuffix",()=>{this.CONSUME(iy),this.CONSUME(sF),this.MANY(()=>{this.CONSUME(iw),this.CONSUME2(sF)})}),this.RULE("jsonStatement",()=>{this.CONSUME(sJ),this.CONSUME(sZ),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE("directionStatement",()=>{this.CONSUME(s6),this.OR([{ALT:(0,m.K)(()=>this.CONSUME(s4),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(s9),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(s8),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(s7),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(ie),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("classDefStatement",()=>{this.CONSUME(ia),this.CONSUME(sF),this.MANY(()=>{this.CONSUME(iw),this.CONSUME2(sF)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("classStatement",()=>{this.CONSUME(ir),this.CONSUME(sF),this.MANY(()=>{this.CONSUME(iw),this.CONSUME2(sF)}),this.CONSUME3(sF),this.MANY2(()=>{this.CONSUME2(iw),this.CONSUME4(sF)}),this.SUBRULE(this.lineEnd)}),this.RULE("styleStatement",()=>{this.CONSUME(io),this.CONSUME(sF),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("styles",()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(iw),this.SUBRULE2(this.styleValue)})}),this.RULE("styleValue",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(s$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iK),"ALT")},{ALT:(0,m.K)(()=>{this.CONSUME(iI),this.CONSUME2(s$)},"ALT")}]),this.CONSUME(iP),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE("styleComponent",()=>{this.OR([{ALT:(0,m.K)(()=>this.CONSUME(s$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(i$),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(sK),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iD),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iK),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iF),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iB),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(ij),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iG),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iW),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iP),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iU),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iM),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iv),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(ix),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iC),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(i_),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(ib),"ALT")},{ALT:(0,m.K)(()=>this.CONSUME(iI),"ALT")}])}),this.performSelfAnalysis()}isMetadataAssignment(){let e=this.LA(1).tokenType;return(e===sF||e===i$||e===sj)&&this.LA(2).tokenType===iN}isStatementStart(){let e=this.LA(1).tokenType;return e!==eW&&e!==sV&&e!==sW}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===sF&&!0===iZ[this.LA(1).image.toLowerCase()]}hasLabeledRight(e){if(!iJ(this.LA(1)))return!1;for(let t=2;;t++){let s=this.LA(t);if(e.includes(s.tokenType))return!0;if(!iJ(s))return!1}}},i0=class extends Error{constructor(e,t,s){super(`${e} (line ${t}, column ${s})`),this.line=t,this.column=s,this.name="UsecaseJsonError"}static{(0,m.K)(this,"UsecaseJsonError")}},i1=(0,m.K)((e,t,s,i)=>{let n=s,a=i,r=Math.min(Math.max(t,0),e.length);for(let t=0;t<r;t++){let s=e[t];"\r"===s?(n++,a=1):"\n"===s?(0===t||"\r"!==e[t-1])&&(n++,a=1):a++}return{line:n,column:a}},"locationAtOffset"),i2=(0,m.K)((e,t,s,i)=>{let n=/\bposition (\d+)\b/u.exec(e);if(n)return i1(t,Number.parseInt(n[1],10),s,i);let a=/\bline (\d+) column (\d+)\b/u.exec(e);if(a){let e=Number.parseInt(a[1],10),t=Number.parseInt(a[2],10);return{line:s+e-1,column:1===e?i+t-1:t}}if(/unexpected end|end of json input/iu.test(e))return i1(t,t.length,s,i)},"locationFromErrorMessage"),i3=class extends Error{constructor(e){super("Invalid JSON token"),this.offset=e}static{(0,m.K)(this,"JsonWalkError")}},i5=class{constructor(e){this.text=e,this.offset=0,this.propertyOrder={}}static{(0,m.K)(this,"PropertyOrderCollector")}collect(){if(this.skipWhitespace(),this.collectValue(""),this.skipWhitespace(),this.offset!==this.text.length)throw new i3(this.offset);return this.propertyOrder}collectValue(e){this.skipWhitespace();let t=this.text[this.offset];if("{"===t)this.collectObject(e);else if("["===t)this.collectArray(e);else if('"'===t)this.readString(!1);else if("t"===t)this.consumeLiteral("true");else if("f"===t)this.consumeLiteral("false");else if("n"===t)this.consumeLiteral("null");else if("-"===t||t>="0"&&t<="9")this.consumeNumber();else throw new i3(this.offset)}collectObject(e){this.offset++;let t=[],s=new Set;if(this.propertyOrder[e]=t,this.skipWhitespace(),"}"===this.text[this.offset])return void this.offset++;for(;this.offset<this.text.length&&'"'===this.text[this.offset];){let i=this.readString(!0),n=`${e}/${i.replaceAll("~","~0").replaceAll("/","~1")}`;if(s.has(i)?this.deletePointerSubtree(n):(s.add(i),t.push(i)),this.skipWhitespace(),":"!==this.text[this.offset])break;if(this.offset++,this.collectValue(n),this.skipWhitespace(),"}"===this.text[this.offset])return void this.offset++;if(","!==this.text[this.offset])break;this.offset++,this.skipWhitespace()}throw new i3(this.offset)}collectArray(e){if(this.offset++,this.skipWhitespace(),"]"===this.text[this.offset])return void this.offset++;let t=0;for(;this.offset<this.text.length;){if(this.collectValue(`${e}/${t}`),t++,this.skipWhitespace(),"]"===this.text[this.offset])return void this.offset++;if(","!==this.text[this.offset])break;this.offset++,this.skipWhitespace()}throw new i3(this.offset)}readString(e){this.offset++;let t="";for(;this.offset<this.text.length;){let s=this.offset,i=this.text[this.offset++];if('"'===i)return t;if(32>i.charCodeAt(0))throw new i3(s);if("\\"!==i){e&&(t+=i);continue}let n=this.offset,a=this.text[this.offset++];switch(a){case'"':case"\\":case"/":e&&(t+=a);break;case"b":e&&(t+="\b");break;case"f":e&&(t+="\f");break;case"n":e&&(t+="\n");break;case"r":e&&(t+="\r");break;case"t":e&&(t+=" ");break;case"u":{let s=this.text.slice(this.offset,this.offset+4);if(!/^[\dA-Fa-f]{4}$/u.test(s))throw new i3(this.offset);e&&(t+=String.fromCharCode(Number.parseInt(s,16))),this.offset+=4;break}default:throw new i3(n)}}throw new i3(this.offset)}consumeLiteral(e){let t=0;for(let s of e){if(this.text[this.offset+t]!==s)throw new i3(this.offset+t);t++}this.offset+=e.length}consumeNumber(){if("-"===this.text[this.offset]&&this.offset++,"0"===this.text[this.offset])this.offset++;else if(this.text[this.offset]>="1"&&this.text[this.offset]<="9")for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++;else throw new i3(this.offset);if("."===this.text[this.offset]){if(this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new i3(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}if("e"===this.text[this.offset]||"E"===this.text[this.offset]){if(this.offset++,("+"===this.text[this.offset]||"-"===this.text[this.offset])&&this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new i3(this.offset);for(;this.text[this.offset]>="0"&&this.text[this.offset]<="9";)this.offset++}}skipWhitespace(){for(;this.offset<this.text.length;){let e=this.text[this.offset];if(" "!==e&&" "!==e&&"\n"!==e&&"\r"!==e)return;this.offset++}}deletePointerSubtree(e){let t=`${e}/`;for(let s of Object.keys(this.propertyOrder))(s===e||s.startsWith(t))&&delete this.propertyOrder[s]}};function i6(e,t,s){let i;try{i=JSON.parse(e)}catch(a){let i=a instanceof Error?a.message:String(a),n=i2(i,e,t,s);if(!n){let i=0;try{new i5(e).collect()}catch(e){e instanceof i3&&(i=e.offset)}n=i1(e,i,t,s)}throw new i0(`Invalid JSON: ${i}`,n.line,n.column)}if("object"!=typeof i||null===i||Array.isArray(i))throw new i0("JSON value must have an object root",t,s);return{value:i,propertyOrder:new i5(e).collect()}}(0,m.K)(i6,"parseOrderedJsonObject");var i4=(0,m.K)(e=>({shape:"normal"===e.type?"actor":"hollow"===e.type?"actor-hollow":"awesome"===e.type?"actor-awesome":"actor-icon",...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"actor",actorType:e.type,business:e.business,labelType:e.labelType,...e.icon?{icon:e.icon}:{},...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"actorNode"),i9=(0,m.K)(e=>({shape:e.shape,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"usecase",useCaseShape:e.shape,business:e.business,labelType:e.labelType,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"useCaseNode"),i8=(0,m.K)(e=>({label:e.label,shape:"note",attrs:{kind:"note",target:e.target,labelType:e.labelType}}),"noteNode"),i7=(0,m.K)(e=>({label:e.id,shape:"json-table",...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"json",value:e.value,propertyOrder:e.propertyOrder,labelType:"text"}}),"jsonNode"),ne=(0,m.K)(e=>({id:e.id,source:e.source,target:e.target,...e.label?{label:e.label}:{},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{relationshipType:e.type,arrowType:e.arrowType,minlen:e.minlen,explicitId:e.explicitId,animate:e.animate,...e.animation?{animation:e.animation}:{},...e.labelType?{labelType:e.labelType}:{}}}),"relationshipEdge"),nt=(0,m.K)(e=>({id:`${e.id}-edge`,source:e.id,target:e.target,attrs:{relationshipType:"note",arrowType:t5.LINE_SOLID,pattern:"dotted",minlen:1,explicitId:!1,animate:!1,internal:!0}}),"noteEdge"),ns=(0,m.K)((e,t,s,i)=>{let n={};for(let t of e.getActors().values())n[t.id]=i4(t);for(let t of e.getUseCases().values())n[t.id]=i9(t);for(let t of e.getNotes().values())n[t.id]=i8(t);for(let t of e.getJsonNodes().values())n[t.id]=i7(t);let a={};for(let t of e.getSystemBoundaries().values())a[t.id]={...t.label===t.id?{}:{title:t.label},nodes:[...t.members],...t.classes.length?{classes:[...t.classes]}:{},...t.styles.length?{styles:[...t.styles]}:{},attrs:{kind:"systemBoundary",boundaryType:t.type,labelType:t.labelType}};let r={};for(let t of e.getClassDefs().values())r[t.id]={styles:[...t.styles]};let o=e.getDirection();return{version:1,diagramType:"usecase",source:t,header:{keyword:"usecase",direction:"TD"===o?"TB":o,span:s},...e.getAccTitle()?{accTitle:e.getAccTitle()}:{},...e.getAccDescription()?{accDescr:e.getAccDescription()}:{},nodes:n,edges:[...e.getRelationships().map(ne),...[...e.getNotes().values()].map(nt)],groups:a,classDefs:r,statements:i}},"buildUsecaseGraphAST"),ni=(0,m.K)(e=>`line ${e.line}, column ${e.column} [${e.span[0]},${e.span[1]})`,"locationText"),nn=(0,m.K)(e=>void 0===e?"":` (label "${e}")`,"labelSuffix"),na=(0,m.K)(e=>e.generated?e.label:void 0,"generatedFrom"),nr=(0,m.K)((e,t)=>{for(let s of t)e.includes(s)||e.push(s)},"pushUnique"),no=class{constructor(e){this.db=e,this.source="",this.statements=[],this.elements=[],this.boundaries=[],this.jsonDrafts=[],this.relationshipDrafts=[],this.noteDrafts=[],this.metadataAssignments=[],this.classAssignments=[],this.styleAssignments=[],this.classDefinitions=[],this.directions=[],this.model=e.createModel()}static{(0,m.K)(this,"UsecaseModelBuilder")}reset(e){this.model=this.db.createModel(),this.source=e,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(e){this.elements.push(e)}addBoundary(e){this.boundaries.push(e)}addJson(e){this.jsonDrafts.push(e)}addRelationship(e){this.relationshipDrafts.push(e)}addNote(e){this.noteDrafts.push(e)}addMetadataAssignment(e,t,s,i){this.metadataAssignments.push({target:e,targetLocation:t,metadata:s,statement:i})}addClassDef(e,t){this.classDefinitions.push({ids:e,styles:t})}addClassAssignment(e,t){this.classAssignments.push({targets:e,classes:t})}addStyleAssignment(e,t,s){this.styleAssignments.push({target:e,location:t,styles:s})}setDirection(e){this.directions.push("TD"===e?"TB":e)}setAccTitle(e){this.model.accTitle=e}setAccDescription(e){this.model.accDescription=e}setStatements(e){this.statements=e}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(e){let t=new Map,s=new Map,i=new Map,n=new Map;for(let e of this.relationshipDrafts)this.recordFirst(n,e.source.id,e.source.location.span[0]),this.recordFirst(n,e.target.id,e.target.location.span[0]);for(let e of this.elements)this.recordFirst(n,e.id,e.location.span[0]);for(let e of this.boundaries)this.recordFirst(n,e.id,e.location.span[0]);for(let e of this.jsonDrafts)this.recordFirst(n,e.id,e.location.span[0]);for(let e of[...this.elements.map(e=>({offset:e.location.span[0],type:"element",value:e})),...this.boundaries.map(e=>({offset:e.location.span[0],type:"boundary",value:e})),...this.jsonDrafts.map(e=>({offset:e.location.span[0],type:"json",value:e})),...this.relationshipDrafts.filter(e=>e.explicitId).map(e=>({offset:e.explicitIdLocation.span[0],type:"edge",value:e}))].sort((e,t)=>e.offset-t.offset))"element"===e.type?this.collectElement(e.value,t,s):"boundary"===e.type?this.collectBoundary(e.value,t,i):"json"===e.type?this.registerUnique(t,e.value.id,"json",e.value.location,!1):this.registerUnique(t,e.value.explicitId,"edge",e.value.explicitIdLocation,!1);this.materializeElements(s,n),this.materializeBoundaries(i,n),this.materializeJson(n);let a=this.materializeRelationships(t,s,n);this.reorderElements(s,n),this.applyMetadataAssignments(t,s,i,a),this.validateAndRefreshElements(s),this.refreshBoundaries(i,s),this.materializeNotes(t),this.applyClassDefinitions(),this.applyClassesAndStyles(t,a),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...t].map(([e,t])=>[e,t.kind]));let r=ns(this,this.source,e,this.statements);return this.model.ast=r,this.db.commit(this.model),r}collectElement(e,t,s){let i=t.get(e.id),n=na({generated:e.generated,label:e.label.text});i&&i.kind!==e.kind&&this.conflict(`ID '${e.id}' is declared as both ${i.kind} and ${e.kind}`,e.location,i.location,n,na(i)),i&&(i.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,i.location,n,na(i));let a=s.get(e.id);if(!a){let i={kind:e.kind,id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],...e.parentId?{parentId:e.parentId,parentLocation:e.parentLocation}:{},...e.shape?{shape:e.shape}:{},...e.stereotype?{stereotype:e.stereotype,stereotypeLocation:e.location}:{}};this.applyDeclarationMetadata(i,e.metadata),s.set(e.id,i),t.set(e.id,{kind:e.kind,location:e.location,generated:e.generated,label:e.label.text});return}(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`ID '${e.id}' has conflicting labels`,e.location,a.location),e.shape&&a.shape&&e.shape!==a.shape&&this.conflict(`Use case '${e.id}' has conflicting shapes`,e.location,a.location),e.parentId&&a.parentId&&e.parentId!==a.parentId&&this.conflict(`Element '${e.id}' belongs to more than one system boundary`,e.parentLocation??e.location,a.parentLocation??a.location),e.stereotype&&a.stereotype&&e.stereotype!==a.stereotype&&this.conflict(`Element '${e.id}' has conflicting stereotypes`,e.location,a.stereotypeLocation??a.location),a.shape??=e.shape,a.parentId??=e.parentId,a.parentLocation??=e.parentLocation,a.stereotype??=e.stereotype,a.stereotypeLocation??=e.stereotype?e.location:void 0,nr(a.classes,e.classes),this.applyDeclarationMetadata(a,e.metadata)}collectBoundary(e,t,s){let i=t.get(e.id),n=na({generated:e.generated,label:e.label.text});i&&"boundary"!==i.kind&&this.conflict(`ID '${e.id}' is declared as both ${i.kind} and boundary`,e.location,i.location,n,na(i)),i&&(i.generated||e.generated)&&this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,i.location,n,na(i));let a=s.get(e.id);if(a){(a.label.text!==e.label.text||a.label.type!==e.label.type)&&this.conflict(`Boundary '${e.id}' has conflicting titles`,e.location,a.location),nr(a.classes,e.classes);return}s.set(e.id,{id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],styles:[],members:[]}),t.set(e.id,{kind:"boundary",location:e.location,generated:e.generated,label:e.label.text})}materializeElements(e,t){for(let s of[...e.values()].sort((e,s)=>(t.get(e.id)??0)-(t.get(s.id)??0)))this.setElementModel(s)}materializeBoundaries(e,t){for(let s of[...e.values()].sort((e,s)=>(t.get(e.id)??0)-(t.get(s.id)??0)))this.model.systemBoundaries.set(s.id,{id:s.id,label:s.label.text,labelType:s.label.type,type:s.type??"rect",members:[],classes:[...s.classes],styles:[...s.styles]})}materializeJson(e){for(let t of[...this.jsonDrafts].sort((t,s)=>(e.get(t.id)??0)-(e.get(s.id)??0)))this.model.jsonNodes.set(t.id,{id:t.id,value:t.value,propertyOrder:t.propertyOrder,classes:[...t.classes],styles:[]})}materializeRelationships(e,t,s){let i=new Map,n=0;for(let a of this.relationshipDrafts){let r=this.resolveEndpoint(a.source,e,t,s),o=this.resolveEndpoint(a.target,e,t,s);this.validateRelationship(a,r,o,e);let l=a.explicitId??`edge-${n++}`,c={id:l,explicitId:!!a.explicitId,source:a.source.id,target:a.target.id,type:a.type,arrowType:a.arrowType,...a.label?{label:a.label.text,labelType:a.label.type}:{},minlen:a.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(c),i.set(l,{draft:a,relationship:c})}return this.model.relationshipCounter=n,i}resolveEndpoint(e,t,s,i){if(e.classesOnReference&&!e.declaration)throw Error(`Relationship endpoint '${e.id}' uses ::: without declaring the node at ${ni(e.location)}`);let n=t.get(e.id);return n?n.kind:(s.set(e.id,{kind:"usecase",id:e.id,label:e.label,location:e.location,generated:e.generated,shape:"ellipse",classes:[]}),t.set(e.id,{kind:"usecase",location:e.location,generated:e.generated,label:e.label.text}),this.recordFirst(i,e.id,e.location.span[0]),"usecase")}reorderElements(e,t){let s=new Map(this.model.actors),i=new Map(this.model.useCases);for(let n of(this.model.actors.clear(),this.model.useCases.clear(),[...e.values()].sort((e,s)=>(t.get(e.id)??0)-(t.get(s.id)??0)))){s.has(n.id)||i.has(n.id)||this.setElementModel(n);let e=s.get(n.id)??this.model.actors.get(n.id),t=i.get(n.id)??this.model.useCases.get(n.id);e?this.model.actors.set(n.id,e):t&&this.model.useCases.set(n.id,t)}}applyMetadataAssignments(e,t,s,i){for(let n of this.metadataAssignments){let a=e.get(n.target);if(!a){let e=this.inferMetadataKind(n.metadata);throw Error(`Metadata target '${n.target}' is unresolved${e?` (metadata implies ${e})`:""} at ${ni(n.targetLocation)}`)}if("actor"===a.kind||"usecase"===a.kind)this.applyStandaloneElementMetadata(t.get(n.target),n.metadata);else if("boundary"===a.kind){let e=s.get(n.target);for(let t of n.metadata.properties)("type"!==t.key||"rect"!==t.value&&"package"!==t.value)&&this.invalidMetadata(n.target,a.kind,t),e.type=t.value}else if("edge"===a.kind){let e=i.get(n.target);if(!e)throw Error(`Metadata target '${n.target}' is not an explicit edge at ${ni(n.targetLocation)}`);for(let t of(n.statement.kind="edgeMetadata",n.statement.edges=[{id:n.target,span:n.statement.span,idSpan:n.targetLocation.span,...n.statement.metadata?{metadata:n.statement.metadata}:{}}],delete n.statement.nodes,n.metadata.properties))"animate"===t.key&&"boolean"==typeof t.value?e.relationship.animate=t.value:"animation"===t.key&&("fast"===t.value||"slow"===t.value)?(e.relationship.animation=t.value,e.relationship.animate=!0):this.invalidMetadata(n.target,a.kind,t)}else for(let e of n.metadata.properties)this.invalidMetadata(n.target,a.kind,e)}for(let{relationship:e}of i.values())e.animation&&(e.animate=!0)}applyStandaloneElementMetadata(e,t){for(let s of t.properties)"actor"===e.kind?this.applyActorProperty(e,s,!0):"business"===s.key&&"boolean"==typeof s.value?e.business=s.value:this.invalidMetadata(e.id,e.kind,s)}applyDeclarationMetadata(e,t){if(t)for(let s of t.properties)"actor"===e.kind?this.applyActorProperty(e,s,!1):"business"===s.key&&"boolean"==typeof s.value?(void 0!==e.business&&e.business!==s.value&&this.conflict(`Use case '${e.id}' has conflicting business metadata`,s.location,e.location),e.business=s.value):this.invalidMetadata(e.id,e.kind,s)}applyActorProperty(e,t,s){"type"===t.key&&("normal"===t.value||"hollow"===t.value||"awesome"===t.value)?(s||void 0===e.actorType||e.actorType===t.value||this.conflict(`Actor '${e.id}' has conflicting type metadata`,t.location,e.location),e.actorType=t.value):"icon"===t.key&&"string"==typeof t.value?(s||void 0===e.icon||e.icon===t.value||this.conflict(`Actor '${e.id}' has conflicting icon metadata`,t.location,e.location),e.icon=t.value):"business"===t.key&&"boolean"==typeof t.value?(s||void 0===e.business||e.business===t.value||this.conflict(`Actor '${e.id}' has conflicting business metadata`,t.location,e.location),e.business=t.value):this.invalidMetadata(e.id,e.kind,t)}validateAndRefreshElements(e){for(let t of e.values()){let e=t.icon?"icon":t.actorType??"normal";if("actor"===t.kind){if(t.icon&&t.actorType&&"normal"!==t.actorType)throw Error(`Actor '${t.id}' cannot combine icon with type '${t.actorType}' at ${ni(t.location)}`);if(t.business&&("icon"===e||"awesome"===e))throw Error(`Business actor '${t.id}' must use normal or hollow geometry at ${ni(t.location)}`)}else if((t.shape??"ellipse")==="rect"&&t.business)throw Error(`Rectangular use case '${t.id}' cannot be a business use case at ${ni(t.location)}`);this.setElementModel(t)}}refreshBoundaries(e,t){for(let t of e.values())t.members.length=0;for(let t of[...this.elements].sort((e,t)=>e.location.span[0]-t.location.span[0])){if(!t.parentId)continue;let s=e.get(t.parentId);if(!s)throw Error(`Parent boundary '${t.parentId}' for '${t.id}' is unresolved at ${ni(t.parentLocation??t.location)}`);s.members.includes(t.id)||s.members.push(t.id)}for(let s of t.values())if(s.parentId&&!e.has(s.parentId))throw Error(`Parent boundary '${s.parentId}' for '${s.id}' is unresolved at ${ni(s.parentLocation??s.location)}`);for(let t of e.values()){let e=this.model.systemBoundaries.get(t.id);e.type=t.type??"rect",e.members=[...t.members],e.classes=[...t.classes],e.styles=[...t.styles]}}materializeNotes(e){let t=0;for(let s of this.noteDrafts){let i=e.get(s.target);if(!i)throw Error(`Note target '${s.target}' is unresolved at ${ni(s.targetLocation)}`);"actor"!==i.kind&&"usecase"!==i.kind&&this.conflict(`Note target '${s.target}' must be an actor or use case, not ${i.kind}`,s.targetLocation,i.location);let n=`note-${t++}`;this.model.notes.set(n,{id:n,target:s.target,label:s.label.text,labelType:s.label.type})}this.model.noteCounter=t}applyClassDefinitions(){for(let e of this.classDefinitions)for(let t of e.ids)this.model.classDefs.set(t,{id:t,styles:[...e.styles]})}applyClassesAndStyles(e,t){for(let s of this.classAssignments)for(let i of s.targets)nr(this.getStylable(i.id,e,t,i.location).classes,s.classes);for(let s of this.styleAssignments)this.getStylable(s.target,e,t,s.location).styles.push(...s.styles)}getStylable(e,t,s,i){let n=t.get(e)?.kind,a="actor"===n?this.model.actors.get(e):"usecase"===n?this.model.useCases.get(e):"boundary"===n?this.model.systemBoundaries.get(e):"json"===n?this.model.jsonNodes.get(e):"edge"===n?s.get(e)?.relationship:void 0;if(!a)throw Error(`Class/style target '${e}' is unresolved or anonymous at ${ni(i)}`);return a}validateRelationship(e,t,s,i){let n=(0,m.K)(e=>"actor"===e||"usecase"===e||"json"===e,"allowed");if(n(t)||this.conflict(`Relationship source '${e.source.id}' cannot be ${t}`,e.source.location,i.get(e.source.id).location),n(s)||this.conflict(`Relationship target '${e.target.id}' cannot be ${s}`,e.target.location,i.get(e.target.id).location),("include"===e.type||"extend"===e.type)&&("usecase"!==t||"usecase"!==s))throw Error(`${e.type} relationship requires use-case endpoints at ${ni(e.location)}`);if("generalization"===e.type&&("actor"!==t&&"usecase"!==t||t!==s))throw Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${ni(e.location)}`);if("association"===e.type&&("json"===t||"json"===s)&&![0,1,2].includes(e.arrowType))throw Error(`JSON relationship '${e.source.id}' to '${e.target.id}' permits only point, reversed-point, or markerless solid association at ${ni(e.location)}`)}setElementModel(e){if("actor"===e.kind){let t=e.icon?"icon":e.actorType??"normal";this.model.useCases.delete(e.id),this.model.actors.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,type:t,...e.icon?{icon:e.icon}:{},business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.actors.get(e.id)?.styles??[]})}else this.model.actors.delete(e.id),this.model.useCases.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,shape:e.shape??"ellipse",business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.useCases.get(e.id)?.styles??[]})}inferMetadataKind(e){let t=new Set(["actor","usecase","boundary","edge"]);for(let s of e.properties)if("icon"===s.key)t.clear(),t.add("actor");else if("animate"===s.key||"animation"===s.key)t.clear(),t.add("edge");else if("type"===s.key)t.clear(),"rect"===s.value||"package"===s.value?t.add("boundary"):("normal"===s.value||"hollow"===s.value||"awesome"===s.value)&&t.add("actor");else{if("business"!==s.key)return;t.delete("boundary"),t.delete("edge")}return 1===t.size?[...t][0]:void 0}invalidMetadata(e,t,s){throw Error(`Metadata property '${s.key}' is invalid for ${t} '${e}' at ${ni(s.location)}`)}registerUnique(e,t,s,i,n){let a=e.get(t);a&&this.conflict(`ID '${t}' is declared more than once (${a.kind} and ${s})`,i,a.location,void 0,na(a)),e.set(t,{kind:s,location:i,generated:n})}recordFirst(e,t,s){let i=e.get(t);(void 0===i||s<i)&&e.set(t,s)}conflict(e,t,s,i,n){throw Error(`${e} at ${ni(t)}${nn(i)}; previous declaration at ${ni(s)}${nn(n)}`)}},nl=iQ.getBaseCstVisitorConstructor(),nc=new class extends nl{constructor(){super(),this.builder=new no(sb),this.source="",this.anonymousEdge=0,this.anonymousNote=0,this.validateVisitor()}static{(0,m.K)(this,"UsecaseVisitor")}build(e,t){this.source=t,this.parentBoundary=void 0,this.anonymousEdge=0,this.anonymousNote=0,this.builder.reset(t),this.visit(e)}start(e){let t=this.tokens(e,"USECASE")[0],s=[];for(let t of this.nodes(e,"line"))s.push(this.visit(t));this.builder.setStatements(s),this.builder.finalize(this.tokenSpan(t))}line(e){let t=this.firstNode(e,"blankLine","commentLine","statement");return this.wrap(t,this.visit(t))}statement(e){return this.visit(this.firstNode(e,"accTitleStatement","accDescrStatement","directionStatement","actorStatement","systemBoundaryStatement","noteStatement","jsonStatement","classDefStatement","classStatement","styleStatement","metadataAssignmentStatement","entityStatement"))}lineEnd(e){}blankLine(e){return{kind:"blank",span:this.tokenSpan(this.tokens(e,"NEWLINE")[0])}}commentLine(e){return{kind:"comment",span:this.tokenSpan(this.tokens(e,"COMMENT")[0])}}accTitleStatement(e){let t=this.tokens(e,"ACC_TITLE_LINE")[0].image;return this.builder.setAccTitle(t.slice(t.indexOf(":")+1).trim()),{kind:"accTitle",span:[0,0]}}accDescrStatement(e){let t=this.tokens(e,"ACC_DESCR_LINE")[0],s=this.tokens(e,"ACC_DESCR_BLOCK")[0],i=t?t.image.slice(t.image.indexOf(":")+1).trim():s.image.slice(s.image.indexOf("{")+1,s.image.lastIndexOf("}")).trim();return this.builder.setAccDescription(i),{kind:"accDescr",span:[0,0]}}actorStatement(e){let t=this.nodes(e,"actorItem"),s=t.map(e=>this.visit(e)),i=this.nodes(e,"relationTail")[0],n=s.map((e,s)=>this.actorOccurrence(t[s],e,!0));for(let e of s)this.builder.addElement(this.actorDraft(e));if(!i)return{kind:"node",span:[0,0],nodes:n};let a=this.visit(i);a.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(a.target));let r=this.relationshipDraft(s[0],a,this.nodeLocation(i));this.builder.addRelationship(r);let o=r.explicitId??`edge-${this.anonymousEdge++}`;return n.push(this.entityOccurrence(this.nodes(i.children,"entityName")[0],a.target,a.target.explicitDeclaration)),{kind:"edge",span:[0,0],nodes:n,edges:[{id:o,span:[0,0],...r.explicitIdLocation?{idSpan:r.explicitIdLocation.span}:{},...r.label?{labelSpan:r.label.span}:{}}]}}actorItem(e){let t=this.visit(this.nodes(e,"actorName")[0]),s=this.nodes(e,"metadata")[0],i=this.nodes(e,"stereotype")[0],n=this.nodes(e,"classSuffix")[0],a=n?this.visit(n):{classes:[],spans:[]};return{...t,...s?{metadata:this.visit(s)}:{},...i?{stereotype:this.visit(i)}:{},classes:a.classes,classSpans:a.spans}}actorName(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0];if(t){let s=this.nodes(e,"nodeLabel")[0],i=s?this.visit(s):this.tokenLabel(t);return{id:t.image,label:i,location:this.tokenLocation(t),generated:!1,classes:[],classSpans:[]}}let i=this.tokenLabel(s);return{id:this.generateId(i.text),label:i,location:this.tokenLocation(s),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(e){let t=this.nodes(e,"actorItem"),s=t.map(e=>this.visit(e));for(let e of s)this.builder.addElement(this.actorDraft(e));return{kind:"node",span:[0,0],nodes:s.map((e,s)=>this.actorOccurrence(t[s],e,!0))}}entityStatement(e){let t=this.nodes(e,"entityName"),s=this.visit(t[0]),i=this.nodes(e,"relationTail")[0];if(!i)return s.explicitDeclaration=!0,s.shape??="ellipse",this.builder.addElement(this.entityDraft(s)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(t[0],s,!0)]};s.explicitDeclaration&&this.builder.addElement(this.entityDraft(s));let n=this.visit(i);n.target.explicitDeclaration&&this.builder.addElement(this.entityDraft(n.target));let a={source:this.endpoint(s),target:this.endpoint(n.target),location:this.nodeLocation(i),...n.explicitId?{explicitId:n.explicitId,explicitIdLocation:n.explicitIdLocation}:{},...n.arrow};this.builder.addRelationship(a);let r=a.explicitId??`edge-${this.anonymousEdge++}`;return{kind:"edge",span:[0,0],nodes:[this.entityOccurrence(t[0],s,s.explicitDeclaration),this.entityOccurrence(this.nodes(i.children,"entityName")[0],n.target,n.target.explicitDeclaration)],edges:[{id:r,span:[0,0],...a.explicitIdLocation?{idSpan:a.explicitIdLocation.span}:{},...a.label?{labelSpan:a.label.span}:{}}]}}entityName(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],i=this.nodes(e,"nodeLabel")[0],n=this.nodes(e,"useCaseMetadata")[0],a=this.nodes(e,"stereotype")[0],r=this.nodes(e,"classSuffix")[0],o=r?this.visit(r):{classes:[],spans:[]};if(t){let s=i?this.visit(i):this.tokenLabel(t),r=i?this.tokens(e,"LBRACKET").length?"rect":"ellipse":void 0;return{id:t.image,label:s,location:this.tokenLocation(t),generated:!1,...r?{shape:r}:{},...n?{metadata:this.visit(n)}:{},...a?{stereotype:this.visit(a)}:{},classes:o.classes,classSpans:o.spans,explicitDeclaration:!!(r||n||a)}}let l=this.tokenLabel(s);return{id:this.generateId(l.text),label:l,location:this.tokenLocation(s),generated:!0,...n?{metadata:this.visit(n)}:{},...a?{stereotype:this.visit(a)}:{},classes:o.classes,classSpans:o.spans,explicitDeclaration:!!(n||a)}}nodeLabel(e){let t=this.allTokens(e);if(1===t.length&&("PLAIN_STRING"===t[0].tokenType.name||"MARKDOWN_STRING"===t[0].tokenType.name))return this.tokenLabel(t[0]);let s=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return{text:this.source.slice(s[0],s[1]),type:"text",span:s}}useCaseMetadata(e){return this.visit(this.nodes(e,"metadata")[0])}relationTail(e){let t=this.tokens(e,"IDENTIFIER")[0];return{...t?{explicitId:t.image,explicitIdLocation:this.tokenLocation(t)}:{},arrow:this.visit(this.nodes(e,"arrow")[0]),target:this.visit(this.nodes(e,"entityName")[0])}}arrow(e){return this.visit(this.firstNode(e,"semanticRelation","forwardSolidOperator","backwardSolidOperator","markerlessSolidOperator","forwardCircleOperator","backwardCircleOperator","forwardCrossOperator","backwardCrossOperator"))}edgeLabel(e){return this.nodeLabel(e)}semanticRelation(e){if(this.tokens(e,"GENERALIZATION").length)return{type:"generalization",arrowType:t5.SOLID_ARROW,minlen:1};let t=this.tokens(e,"INCLUDE").length?"include":"extend",s=this.tokens(e,"include"===t?"INCLUDE":"EXTEND")[0];return{type:t,arrowType:t5.SOLID_ARROW,label:{text:t,type:"text",span:this.tokenSpan(s)},minlen:1}}metadata(e){return{properties:this.nodes(e,"metadataProperty").map(e=>this.visit(e)),location:this.ctxLocation(e)}}metadataProperty(e){let t=this.allTokens(e).filter(e=>"COLON"!==e.tokenType.name),s=t[0],i=t[1],n="TRUE"===i.tokenType.name||"FALSE"!==i.tokenType.name&&this.decodePlain(i),a=[s.startOffset,(i.endOffset??i.startOffset)+1];return{key:this.decodePlain(s),value:n,span:a,keySpan:this.contentSpan(s),valueSpan:this.contentSpan(i),location:this.tokenLocation(s)}}metadataSeparator(e){}systemBoundaryStatement(e){let t=this.visit(this.nodes(e,"systemBoundaryName")[0]),s=this.nodes(e,"classSuffix")[0],i=s?this.visit(s):{classes:[],spans:[]};t.classes=i.classes,this.builder.addBoundary(t);let n=this.parentBoundary;this.parentBoundary={id:t.id,location:t.location};let a=this.nodes(e,"systemBoundaryContent")[0],r=a?this.visit(a):[];this.parentBoundary=n;let o=this.tokens(e,"END")[0],l=this.nodes(e,"metadata")[0],c=l?this.visit(l):void 0,h={kind:"group",span:[0,0],group:t.id,idSpan:t.location.span,titleSpan:t.label.span,endSpan:this.tokenSpan(o),classSpans:i.spans,...c?{metadata:c.properties.map(({key:e,span:t,keySpan:s,valueSpan:i})=>({key:e,span:t,keySpan:s,valueSpan:i}))}:{},...r.length?{children:r}:{}};return c&&this.builder.addMetadataAssignment(t.id,t.location,c,h),h}systemBoundaryName(e){let t=this.tokens(e,"IDENTIFIER")[0];if(t){let s=this.nodes(e,"nodeLabel")[0];return{id:t.image,label:s?this.visit(s):this.tokenLabel(t),location:this.tokenLocation(t),generated:!1,classes:[]}}let s=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],i=this.tokenLabel(s);return{id:this.generateId(i.text),label:i,location:this.tokenLocation(s),generated:!0,classes:[]}}systemBoundaryContent(e){return[...this.nodes(e,"blankLine"),...this.nodes(e,"commentLine"),...this.nodes(e,"boundaryElement")].sort((e,t)=>(e.location?.startOffset??0)-(t.location?.startOffset??0)).map(e=>this.wrap(e,this.visit(e)))}boundaryElement(e){let t=this.nodes(e,"actorDeclarationOnly")[0];if(t)return this.visit(t);let s=this.nodes(e,"entityName")[0],i=this.visit(s);return i.explicitDeclaration=!0,i.shape??="ellipse",this.builder.addElement(this.entityDraft(i)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(s,i,!0)]}}metadataAssignmentStatement(e){let t=this.visit(this.nodes(e,"metadataAssignmentTarget")[0]),s=this.visit(this.nodes(e,"metadata")[0]),i={kind:"metadata",span:[0,0],nodes:[{id:t.id,span:t.location.span,idSpan:t.location.span}],metadata:s.properties.map(({key:e,span:t,keySpan:s,valueSpan:i})=>({key:e,span:t,keySpan:s,valueSpan:i}))};return this.builder.addMetadataAssignment(t.id,t.location,s,i),i}metadataAssignmentTarget(e){let t=this.allTokens(e)[0],s=this.tokenLabel(t);return{id:"IDENTIFIER"===t.tokenType.name?t.image:this.generateId(s.text),location:this.tokenLocation(t)}}noteStatement(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.visit(this.nodes(e,"nodeLabel")[0]);return this.builder.addNote({target:t.image,targetLocation:this.tokenLocation(t),label:s,location:this.ctxLocation(e)}),{kind:"note",span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:s.span,nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}stereotype(e){let t=this.tokens(e,"STEREOTYPE_TEXT")[0];return{value:t.image.trim(),span:this.tokenSpan(t)}}classSuffix(e){let t=this.tokens(e,"IDENTIFIER");return{classes:t.map(e=>e.image),spans:t.map(e=>this.tokenSpan(e))}}jsonStatement(e){let t=this.tokens(e,"JSON_DECLARATION_START")[0],s=this.tokens(e,"JSON_OBJECT_LITERAL")[0],i=/^json[\t ]+(\w+)/.exec(t.image),n=i[1],a=i[0].length-n.length,r={span:[t.startOffset+a,t.startOffset+a+n.length],line:t.startLine??1,column:(t.startColumn??1)+a},o=i6(s.image,s.startLine??1,s.startColumn??1),l=this.nodes(e,"classSuffix")[0],c=l?this.visit(l):{classes:[],spans:[]},h={id:n,value:o.value,propertyOrder:o.propertyOrder,location:r,classes:c.classes};return this.builder.addJson(h),{kind:"json",span:[0,0],nodes:[{id:n,span:r.span,idSpan:r.span,defines:!0,classSpans:c.spans}],classSpans:c.spans}}directionStatement(e){let t=this.allTokens(e).find(e=>["TD","TB","BT","RL","LR"].includes(e.tokenType.name));return this.builder.setDirection(t.image),{kind:"direction",span:[0,0]}}classDefStatement(e){let t=this.tokens(e,"IDENTIFIER"),s=this.visit(this.nodes(e,"styles")[0]);return this.builder.addClassDef(t.map(e=>e.image),s),{kind:"classDef",span:[0,0],ref:t[0].image,refSpan:this.tokenSpan(t[0])}}classStatement(e){let t=this.tokens(e,"IDENTIFIER"),s=1;for(;s<t.length&&this.source.slice((t[s-1].endOffset??t[s-1].startOffset)+1,t[s].startOffset).includes(",");s++);let i=t.slice(0,s).map(e=>({id:e.image,location:this.tokenLocation(e)})),n=t.slice(s).map(e=>e.image);return this.builder.addClassAssignment(i,n),{kind:"classAssign",span:[0,0],ref:n[0],refSpan:this.tokenSpan(t[s]),nodes:i.map(({id:e,location:t})=>({id:e,span:t.span,idSpan:t.span}))}}styleStatement(e){let t=this.tokens(e,"IDENTIFIER")[0],s=this.visit(this.nodes(e,"styles")[0]);return this.builder.addStyleAssignment(t.image,this.tokenLocation(t),s),{kind:"style",span:[0,0],nodes:[{id:t.image,span:this.tokenSpan(t),idSpan:this.tokenSpan(t)}]}}styles(e){return this.nodes(e,"styleValue").map(e=>this.visit(e))}styleValue(e){let t=this.allTokens(e),s=[t[0].startOffset,(t.at(-1).endOffset??t.at(-1).startOffset)+1];return this.source.slice(s[0],s[1]).replaceAll("\\,",",")}styleComponent(e){return this.allTokens(e).map(e=>e.image).join("")}forwardSolidOperator(e){let t=this.tokens(e,"FORWARD_SOLID")[0];return{type:"association",arrowType:t5.SOLID_ARROW,minlen:this.solidMinlen(t)}}backwardSolidOperator(e){let t=this.tokens(e,"BACKWARD_SOLID")[0],s=this.nodes(e,"edgeLabel")[0],i=s?this.tokens(e,"MARKERLESS_SOLID").at(-1):t;return{type:"association",arrowType:t5.BACK_ARROW,minlen:this.solidMinlen(i),...s?{label:this.visit(s)}:{}}}markerlessSolidOperator(e){let t=this.nodes(e,"edgeLabel")[0],s=this.allTokens(e);if(!t)return{type:"association",arrowType:t5.LINE_SOLID,minlen:this.solidMinlen(this.tokens(e,"MARKERLESS_SOLID")[0])};let i=s.at(-1),n="FORWARD_SOLID"===i.tokenType.name?t5.SOLID_ARROW:"FORWARD_CIRCLE"===i.tokenType.name?t5.CIRCLE_ARROW:"FORWARD_CROSS"===i.tokenType.name?t5.CROSS_ARROW:t5.LINE_SOLID;return{type:"association",arrowType:n,label:this.visit(t),minlen:n===t5.SOLID_ARROW||n===t5.LINE_SOLID?this.solidMinlen(i):1}}forwardCircleOperator(e){return{type:"association",arrowType:t5.CIRCLE_ARROW,minlen:1}}backwardCircleOperator(e){let t=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:t5.CIRCLE_ARROW_REVERSED,minlen:1,...t?{label:this.visit(t)}:{}}}forwardCrossOperator(e){return{type:"association",arrowType:t5.CROSS_ARROW,minlen:1}}backwardCrossOperator(e){let t=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:t5.CROSS_ARROW_REVERSED,minlen:1,...t?{label:this.visit(t)}:{}}}actorDraft(e){return{id:e.id,kind:"actor",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}entityDraft(e){return{id:e.id,kind:"usecase",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.shape?{shape:e.shape}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}endpoint(e,t=e.explicitDeclaration??!0){return{id:e.id,label:e.label,location:e.location,generated:e.generated,declaration:t,classesOnReference:e.classes.length>0}}relationshipDraft(e,t,s){return{source:this.endpoint(e,!0),target:this.endpoint(t.target),location:s,...t.explicitId?{explicitId:t.explicitId,explicitIdLocation:t.explicitIdLocation}:{},...t.arrow}}actorOccurrence(e,t,s){return{id:t.id,span:this.nodeSpan(e),idSpan:t.location.span,labelSpan:t.label.span,...s?{defines:!0}:{},...t.stereotype?{stereotypeSpan:t.stereotype.span}:{},...t.metadata?{metadata:t.metadata.properties.map(({key:e,span:t,keySpan:s,valueSpan:i})=>({key:e,span:t,keySpan:s,valueSpan:i}))}:{},...t.classSpans.length?{classSpans:t.classSpans}:{}}}entityOccurrence(e,t,s){return this.actorOccurrence(e,t,s)}wrap(e,t){if("blank"===t.kind||"comment"===t.kind)return t;for(let s of(t.span=this.nodeSpan(e),t.edges??[]))s.span=t.span;return t}tokenLabel(e){let t="MARKDOWN_STRING"===e.tokenType.name?"markdown":"text",s="markdown"===t?2:+("PLAIN_STRING"===e.tokenType.name),i=this.tokenSpan(e,s);return{text:this.source.slice(i[0],i[1]),type:t,span:i}}decodePlain(e){return"PLAIN_STRING"===e.tokenType.name?e.image.slice(1,-1):e.image}contentSpan(e){return this.tokenSpan(e,"PLAIN_STRING"===e.tokenType.name?1:2*("MARKDOWN_STRING"===e.tokenType.name))}generateId(e){return e.replace(/\W/g,"_")}solidMinlen(e){return Math.max(1,(e.image.match(/-/g)?.length??2)-1)}nodeLocation(e){let t=this.allTokens(e.children)[0];return{span:this.nodeSpan(e),line:t.startLine??1,column:t.startColumn??1}}ctxLocation(e){let t=this.allTokens(e).filter(e=>"NEWLINE"!==e.tokenType.name&&"EOF"!==e.tokenType.name),s=t[0],i=t.at(-1);return{span:[s.startOffset,Math.min(this.source.length,(i.endOffset??i.startOffset+i.image.length-1)+1)],line:s.startLine??1,column:s.startColumn??1}}tokenLocation(e){let t="PLAIN_STRING"===e.tokenType.name?1:2*("MARKDOWN_STRING"===e.tokenType.name);return{span:this.tokenSpan(e,t),line:e.startLine??1,column:(e.startColumn??1)+t}}nodeSpan(e){let t=this.allTokens(e.children).filter(e=>"NEWLINE"!==e.tokenType.name&&"EOF"!==e.tokenType.name),s=t[0],i=t.at(-1);if(!s||!i)throw Error("Usecase CST node has no source token");return[s.startOffset,Math.min(this.source.length,(i.endOffset??i.startOffset+i.image.length-1)+1)]}tokenSpan(e,t=0){return[e.startOffset+t,Math.min(this.source.length,(e.endOffset??e.startOffset+e.image.length-1)+1-t)]}nodes(e,t){return(e[t]??[]).filter(e=>"children"in e)}tokens(e,t){return(e[t]??[]).filter(e=>"tokenTypeIdx"in e)}firstNode(e,...t){for(let s of t){let t=this.nodes(e,s)[0];if(t)return t}throw Error(`Usecase CST is missing one of: ${t.join(", ")}`)}allTokens(e){let t=[];for(let s of Object.values(e))for(let e of s)"tokenTypeIdx"in e?t.push(e):t.push(...this.allTokens(e.children));return t.sort((e,t)=>e.startOffset-t.startOffset)}},nh={parse:(0,m.K)(async e=>{sb.clear(),iQ.input=[];try{t3({diagramType:"usecase",lexer:iq,parser:iQ,entry:(0,m.K)(()=>iQ.start(),"entry"),visit:(0,m.K)(t=>nc.build(t,e),"visit")},e)}catch(s){sb.clear();let t=iQ.errors[0];if(t){let{token:i}=t,n=t2(i.startOffset)?i.startOffset:e.length,a=t2(i.endOffset)?i.endOffset+1:n,r=t2(i.startLine)?i.startLine:e.slice(0,n).split(/\r\n|\r|\n/).length,o=Math.max(e.lastIndexOf("\n",n-1),e.lastIndexOf("\r",n-1)),l=t2(i.startColumn)?i.startColumn:n-o,c=s instanceof Error?s.message:String(s);throw Error(`${c} at line ${r}, column ${l} [${n},${a})`)}throw s}},"parse")},nd=["point","circle","cross","extension"],nu={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},np=(0,m.K)((e,t)=>{let[s,i]=[e,t].map(e=>e.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element");return`usecase-${s}-${i}`},"usecaseDomId"),nf=(0,m.K)(e=>`usecase-${e.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element"}`,"usecaseNodeDomId"),nm=(0,m.K)((e,t)=>"markdown"!==t?e:(0,h.O6)(e).map(e=>e.map(e=>e.content).join(" ")).join("\n"),"getAccessibleLabel"),nE=(0,m.K)(e=>{let t=nm(e.label??e.id,e.labelType);if(nu[e.shape]){let s=e.actorType&&"normal"!==e.actorType?`${e.actorType} `:"",i=e.business?"business ":"",n=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${i}${s}actor ${t}${n}`}if("note"===e.shape)return`Note for ${e.noteTargetLabel??e.noteTarget??""}: ${t}`;if("usecaseJsonTable"===e.shape){let s=(e.jsonRows??[]).map(e=>`${e.accessibleKey}: ${e.value}`).join("; ");return s?`${t}: ${s}`:t}let s=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${e.business?"business ":""}use case ${t}${s}`},"getUsecaseNodeAccessibleName"),nT=(0,m.K)(e=>`${e.boundaryType} system boundary ${nm(e.label??e.id,e.labelType)}`,"getUsecaseBoundaryAccessibleName"),ng=(0,m.K)(e=>{if("note"===e.relationshipType)return"";let t="association"===e.relationshipType&&e.label?`association ${nm(e.label,e.labelType)}`:e.relationshipType;return`${t} from ${e.sourceLabel} to ${e.targetLabel}`},"getUsecaseEdgeAccessibleName"),ny=(0,m.K)(e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"escapePlainLabel"),nA=(0,m.K)(e=>e.replace(/([*[\\\]_`])/g,"\\$1"),"escapeMarkdownMarkers"),nS=(0,m.K)((e,t)=>{for(let s of(e.diagramId=t,e.markers=[...nd],e.nodes))if(s.domId=nf(s.id),void 0!==s.label&&"text"===s.labelType&&(s.label=ny(s.label)),s.stereotype&&(s.stereotype=ny(s.stereotype)),s.isGroup||"usecaseJsonTable"!==s.shape||(s.jsonRows=s.jsonRows?.map(e=>({...e,key:ny(e.key),value:ny(e.value)}))),!s.isGroup&&("usecaseEllipse"===s.shape||"rect"===s.shape)&&s.stereotype){let e=s.label??ny(s.id);s.label=`\xab${nA(s.stereotype)}\xbb<br/>${"text"===s.labelType?nA(e):e}`,s.labelType="markdown",s.hasFoldedStereotype=!0,delete s.stereotype}for(let t of e.edges)void 0!==t.label&&"text"===t.labelType&&(t.label=ny(t.label));return e},"prepareUsecaseLayoutData"),nL=(0,m.K)((e,t,s)=>{for(let i of t.nodes){let n="string"==typeof i.domId?i.domId:np(t.diagramId,i.id),a=e.select(`#${n}`),r=i.isGroup?"boundary":nu[i.shape]?"actor":"note"===i.shape?"note":"usecaseJsonTable"===i.shape?"json":"usecase",o=s.nodes.get(i.id)??i.id;if(a.attr("data-usecase-id",i.id).attr("data-usecase-kind",r).attr("role","img").attr("aria-label",o),!i.isGroup&&("usecaseEllipse"===i.shape||"rect"===i.shape)&&"hasFoldedStereotype"in i&&!0===i.hasFoldedStereotype){let e=a.node(),t=e?.querySelector(".nodeLabel"),s=t?.querySelector("p")??t,i=s?.firstChild;if(s&&i?.nodeType===3){let e=s.ownerDocument.createElement("span");e.className="usecase-stereotype",s.insertBefore(e,i),e.appendChild(i)}else e?.querySelector(".label tspan tspan, .label tspan")?.classList.add("usecase-stereotype")}}let i=new Map(t.edges.map(e=>[e.id,e]));e.selectAll('path[data-et="edge"]').each(function(){let e=i.get(this.getAttribute("data-id")??"");if(!e)return;let n=(0,t1.Ltv)(this);n.attr("id",np(t.diagramId,e.id)).attr("data-usecase-id",e.id).attr("data-usecase-kind",e.internal?"note-connector":"relationship"),e.internal?n.attr("aria-hidden","true"):n.attr("role","img").attr("aria-label",s.edges.get(e.id)??e.id)})},"annotateUsecaseElements"),nO=(0,m.K)((e,t)=>{e.style("--mermaid-usecase-actor-font-size",`${t.actorFontSize}px`).style("--mermaid-usecase-actor-font-family",t.actorFontFamily).style("--mermaid-usecase-actor-font-weight",t.actorFontWeight).style("--mermaid-usecase-font-size",`${t.usecaseFontSize}px`).style("--mermaid-usecase-font-family",t.usecaseFontFamily).style("--mermaid-usecase-font-weight",t.usecaseFontWeight)},"applyUsecaseFonts"),nR=(0,m.K)(async(e,t,s,i)=>{f.R.info("Drawing usecase diagram (unified)",t);let{layout:n}=(0,p.D7)(),a=i.db,r=a.getData(),h=new Map(r.nodes.map(e=>[e.id,nm(e.label??e.id,e.labelType)])),d={nodes:new Map(r.nodes.map(e=>[e.id,e.isGroup?nT(e):nE("note"===e.shape?{...e,noteTargetLabel:h.get(e.noteTarget??"")}:e)])),edges:new Map(r.edges.map(e=>[e.id,ng({...e,sourceLabel:h.get(e.source)??e.sourceLabel,targetLabel:h.get(e.target)??e.targetLabel})]))},m=(0,o.A)(t,r.config.securityLevel);r.layoutAlgorithm=(0,c.q7)(n),nS(r,t),nO(m,r),await (0,c.XX)(r,m),nL(m,r,d);let E=r.diagramPadding;u._K.insertTitle(m,"usecaseDiagramTitleText",0,a.getDiagramTitle?.()??""),(0,l.P)(m,E,"usecaseDiagram",r.useMaxWidth),nO(m,r)},"draw"),nk=(0,m.K)(e=>({actorBkg:e.usecaseActorBkg??e.actorBkg??e.mainBkg,actorBorder:e.usecaseActorBorder??e.actorBorder??e.primaryColor,bkg:e.usecaseBkg??e.mainBkg,border:e.usecaseBorder??e.nodeBorder??e.primaryColor,boundaryBkg:e.usecaseBoundaryBkg??e.clusterBkg,boundaryBorder:e.usecaseBoundaryBorder??e.clusterBorder,includeLine:e.usecaseIncludeLine??e.lineColor,extendLine:e.usecaseExtendLine??e.lineColor}),"roleColors"),nI=(0,m.K)(e=>{let{theme:t,bkgColorArray:s,borderColorArray:i}=e;if(!(0,d.P1)(t,i))return"";let n=(0,p.zj)().usecase?.colorScheme==="rotate",a=(0,d.rq)(e.look),r="handDrawn"===a,o=(0,d.Ic)(s),l="";for(let e=0;e<(0,d.Hu)(i);e++){let t=i[e],c=o?`fill: ${s[e%s.length]};`:"",h=`[data-look="${a}"][data-color-id="color-${e}"]`;l+=`
|
|
58
|
-
|
|
59
|
-
& ${h}.system-boundary rect.boundary-body,
|
|
60
|
-
& ${h}.system-boundary rect.boundary-tab,
|
|
61
|
-
& ${h}.system-boundary .boundary-body path,
|
|
62
|
-
& ${h}.system-boundary .boundary-tab path {
|
|
63
|
-
stroke: ${t};
|
|
64
|
-
${c}
|
|
65
|
-
}
|
|
66
|
-
`,n&&(l+=`
|
|
67
|
-
|
|
68
|
-
/* Use case bodies -- \`.usecase-element\` covers the ellipse form, the \`[Rect]\` form and
|
|
69
|
-
the business variant.
|
|
70
|
-
|
|
71
|
-
Element selectors only, never a bare \`path\`. Under the handDrawn look roughjs draws
|
|
72
|
-
the body as a *pair* of paths, an outline stroked in the border colour and a hachure
|
|
73
|
-
fill stroked in the background colour, with no class to tell them apart. Stroking
|
|
74
|
-
both repaints the fill lines as border colour and the shape collapses into a solid
|
|
75
|
-
block -- which is what \`.usecase-element path\` did. So handDrawn bodies keep the
|
|
76
|
-
theme's uniform colours, exactly as handDrawn flowchart nodes do. */
|
|
77
|
-
& ${h}.usecase-element ellipse,
|
|
78
|
-
& ${h}.usecase-element rect {
|
|
79
|
-
stroke: ${t};
|
|
80
|
-
${c}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* The business marker is a single classed path, so it can be reached safely by name --
|
|
84
|
-
without it the marker keeps the uniform border beside a palette-coloured body. No
|
|
85
|
-
\`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */
|
|
86
|
-
& ${h}.usecase-element .usecase-business-marker {
|
|
87
|
-
stroke: ${t};
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/* Actor glyphs, mirroring the uniform rule further down. The fill goes on the glyph
|
|
91
|
-
group, never on its children, so the hollow variant's own \`fill="none"\` keeps
|
|
92
|
-
winning and a hollow actor stays hollow. Same reason as above for not descending
|
|
93
|
-
into the handDrawn paths. */
|
|
94
|
-
& ${h}.usecase-actor .usecase-actor-shape,
|
|
95
|
-
& ${h}.usecase-actor .usecase-actor-hollow,
|
|
96
|
-
& ${h}.usecase-actor .usecase-actor-awesome,
|
|
97
|
-
& ${h}.usecase-actor .usecase-actor-icon {
|
|
98
|
-
stroke: ${t};
|
|
99
|
-
${c}
|
|
100
|
-
}
|
|
101
|
-
${r?"":`
|
|
102
|
-
/* The group rule above reaches the glyph by inheritance, which the neo look breaks: it
|
|
103
|
-
ships a \`[data-look="neo"].node path { stroke }\` rule that hits the glyph's own paths,
|
|
104
|
-
and a value set directly on the child always beats one inherited from the parent,
|
|
105
|
-
whatever the parent rule's specificity. So name the children too.
|
|
106
|
-
|
|
107
|
-
Emitted for every look *except* handDrawn, where roughjs draws the glyph as an
|
|
108
|
-
outline path plus a hachure fill path stroked in the fill colour, indistinguishable
|
|
109
|
-
in CSS -- stroking both turns a hollow actor into a solid disc. Deliberately no
|
|
110
|
-
\`fill\` either way, so the hollow variant's own \`fill="none"\` keeps winning. */
|
|
111
|
-
& ${h}.usecase-actor .usecase-actor-glyph path,
|
|
112
|
-
& ${h}.usecase-actor .usecase-actor-glyph circle {
|
|
113
|
-
stroke: ${t};
|
|
114
|
-
}
|
|
115
|
-
`}
|
|
116
|
-
`)}return l},"genColor"),nN={parser:nh,db:sb,renderer:{draw:nR},styles:(0,m.K)(e=>{let t=nk(e),s="handDrawn"===(0,d.rq)(e.look);return`
|
|
117
|
-
${nI(e)}
|
|
118
|
-
& .usecase-actor {
|
|
119
|
-
color: ${e.actorTextColor??e.primaryTextColor};
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
& .usecase-actor-shape,
|
|
123
|
-
& .usecase-actor-hollow,
|
|
124
|
-
& .usecase-actor-awesome,
|
|
125
|
-
& .usecase-actor-icon {
|
|
126
|
-
fill: ${t.actorBkg};
|
|
127
|
-
stroke: ${t.actorBorder};
|
|
128
|
-
stroke-width: 2px;
|
|
129
|
-
}
|
|
130
|
-
${s?"":`
|
|
131
|
-
/* The rule above colours the glyph group and lets its children inherit, which the neo
|
|
132
|
-
look breaks: it ships a \`[data-look="neo"].node path { stroke }\` rule that lands on
|
|
133
|
-
the glyph's own paths, and a value set directly on a child always beats one inherited
|
|
134
|
-
from its parent, whatever the parent rule's specificity. Since neo is the default look,
|
|
135
|
-
without this every actor renders in the node border colour rather than the actor
|
|
136
|
-
colour the rule above asks for.
|
|
137
|
-
|
|
138
|
-
\`.node\` is in the selector to outrank that neo rule rather than tie with it: both
|
|
139
|
-
would otherwise be one attribute plus one class plus one element, leaving the winner to
|
|
140
|
-
depend on which stylesheet is concatenated last.
|
|
141
|
-
|
|
142
|
-
Stroke only: the hollow variant's own \`fill="none"\` has to keep winning. */
|
|
143
|
-
& .node.usecase-actor .usecase-actor-glyph path,
|
|
144
|
-
& .node.usecase-actor .usecase-actor-glyph circle {
|
|
145
|
-
stroke: ${t.actorBorder};
|
|
146
|
-
}
|
|
147
|
-
`}
|
|
148
|
-
& .usecase-actor .nodeLabel,
|
|
149
|
-
& .actor-label {
|
|
150
|
-
color: ${e.actorTextColor??e.primaryTextColor};
|
|
151
|
-
fill: ${e.actorTextColor??e.primaryTextColor};
|
|
152
|
-
font-family: var(--mermaid-usecase-actor-font-family, ${e.fontFamily});
|
|
153
|
-
font-size: var(--mermaid-usecase-actor-font-size, 14px);
|
|
154
|
-
font-weight: var(--mermaid-usecase-actor-font-weight, normal);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
& .usecase-element ellipse,
|
|
158
|
-
& .usecase-element rect,
|
|
159
|
-
& .usecase-business ellipse,
|
|
160
|
-
& .usecase-business rect {
|
|
161
|
-
fill: ${t.bkg};
|
|
162
|
-
stroke: ${t.border};
|
|
163
|
-
stroke-width: 2px;
|
|
164
|
-
}
|
|
165
|
-
${s?"":`
|
|
166
|
-
/* The same interception the actor glyph hits, one element down: neo ships
|
|
167
|
-
\`[data-look="neo"].node rect { stroke: nodeBorder }\`, which outranks the plain
|
|
168
|
-
\`.usecase-element rect\` above, so a use case written in the \`[Rect]\` form kept the node
|
|
169
|
-
border colour while its ellipse siblings took the role colour. An \`<ellipse>\` has no
|
|
170
|
-
equivalent neo rule and is already correct; restating it here costs nothing and means
|
|
171
|
-
the two forms cannot drift apart again.
|
|
172
|
-
|
|
173
|
-
Qualified with \`[data-look]\` *and* \`.node\` to land strictly above that rule rather than
|
|
174
|
-
tie with it -- on a tie the later stylesheet would win, which is how neo took this in
|
|
175
|
-
the first place. Skipped under handDrawn, where roughjs draws paths and neither element
|
|
176
|
-
exists. */
|
|
177
|
-
& [data-look="${(0,d.rq)(e.look)}"].node.usecase-element ellipse,
|
|
178
|
-
& [data-look="${(0,d.rq)(e.look)}"].node.usecase-element rect {
|
|
179
|
-
fill: ${t.bkg};
|
|
180
|
-
stroke: ${t.border};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/* The business marker is a \`<path>\`, so it loses to \`[data-look="neo"].node path\` the same
|
|
184
|
-
way. No \`fill\`: the marker is drawn with \`fill="none"\` and has to stay that way. */
|
|
185
|
-
& [data-look="${(0,d.rq)(e.look)}"].node.usecase-element .usecase-business-marker {
|
|
186
|
-
stroke: ${t.border};
|
|
187
|
-
}
|
|
188
|
-
`}
|
|
189
|
-
& .usecase-element .nodeLabel,
|
|
190
|
-
& .usecase-label {
|
|
191
|
-
color: ${e.primaryTextColor};
|
|
192
|
-
fill: ${e.primaryTextColor};
|
|
193
|
-
font-family: var(--mermaid-usecase-font-family, ${e.fontFamily});
|
|
194
|
-
font-size: var(--mermaid-usecase-font-size, 12px);
|
|
195
|
-
font-weight: var(--mermaid-usecase-font-weight, normal);
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
& .usecase-stereotype,
|
|
199
|
-
& .usecase-business-marker {
|
|
200
|
-
color: ${e.primaryTextColor};
|
|
201
|
-
fill: ${e.primaryTextColor};
|
|
202
|
-
stroke: ${t.border};
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
& .system-boundary rect.boundary-body,
|
|
206
|
-
& .system-boundary rect.boundary-tab,
|
|
207
|
-
& .system-boundary-package-tab {
|
|
208
|
-
fill: ${t.boundaryBkg};
|
|
209
|
-
stroke: ${t.boundaryBorder};
|
|
210
|
-
stroke-width: 1px;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
& .system-boundary-title text {
|
|
214
|
-
fill: ${e.titleColor??e.primaryTextColor};
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* Only the span, never the <p> inside it: the renderer puts a user-supplied
|
|
218
|
-
'color' on the span, and that has to stay inheritable by its children. */
|
|
219
|
-
& .system-boundary-title span {
|
|
220
|
-
color: ${e.titleColor??e.primaryTextColor};
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
& .usecase-note {
|
|
224
|
-
fill: ${e.noteBkgColor};
|
|
225
|
-
stroke: ${e.noteBorderColor};
|
|
226
|
-
color: ${e.noteTextColor};
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
& .usecase-note .nodeLabel {
|
|
230
|
-
color: ${e.noteTextColor};
|
|
231
|
-
fill: ${e.noteTextColor};
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
& .usecase-json-table,
|
|
235
|
-
& .usecase-json-table rect,
|
|
236
|
-
& .usecase-json-cell {
|
|
237
|
-
fill: ${e.mainBkg};
|
|
238
|
-
stroke: ${e.nodeBorder??e.primaryColor};
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
& .usecase-json-title,
|
|
242
|
-
& .usecase-json-key,
|
|
243
|
-
& .usecase-json-value {
|
|
244
|
-
color: ${e.primaryTextColor};
|
|
245
|
-
fill: ${e.primaryTextColor};
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
& .relationship {
|
|
249
|
-
fill: none;
|
|
250
|
-
stroke: ${e.lineColor};
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
& .relationship-include,
|
|
254
|
-
& .relationship-extend,
|
|
255
|
-
& .relationship-note {
|
|
256
|
-
stroke-dasharray: 3;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/* Include and extend are both dashed, which is a weak distinction at small sizes. The
|
|
260
|
-
tokens default to \`lineColor\`, so a theme that does not set them is unchanged. */
|
|
261
|
-
& .relationship-include {
|
|
262
|
-
stroke: ${t.includeLine};
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
& .relationship-extend {
|
|
266
|
-
stroke: ${t.extendLine};
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
& .relationship.edge-animation-fast,
|
|
270
|
-
& .relationship.edge-animation-slow {
|
|
271
|
-
stroke-linecap: round;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
& .edgeLabel,
|
|
275
|
-
& .edgeLabel p {
|
|
276
|
-
background-color: ${e.edgeLabelBackground};
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
& .labelBkg {
|
|
280
|
-
background-color: ${e.edgeLabelBackground};
|
|
281
|
-
padding: 0 2px;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
& .edgeLabel .label rect {
|
|
285
|
-
fill: ${e.edgeLabelBackground};
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
& .relationship-label,
|
|
289
|
-
& .edgeLabel {
|
|
290
|
-
color: ${e.primaryTextColor};
|
|
291
|
-
fill: ${e.primaryTextColor};
|
|
292
|
-
font-family: ${e.fontFamily};
|
|
293
|
-
font-size: 10px;
|
|
294
|
-
font-weight: normal;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
& .marker,
|
|
298
|
-
& .marker.point,
|
|
299
|
-
& .marker.circle,
|
|
300
|
-
& .marker.cross {
|
|
301
|
-
fill: ${e.lineColor};
|
|
302
|
-
stroke: ${e.lineColor};
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
& .marker.extension {
|
|
306
|
-
fill: ${e.mainBkg};
|
|
307
|
-
stroke: ${e.lineColor};
|
|
308
|
-
}
|
|
309
|
-
`},"getStyles")}}}]);
|