oxe-cc 1.16.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/commands/oxe-alm.md +47 -0
- package/.cursor/commands/oxe-ask.md +1 -1
- package/.cursor/commands/oxe-capabilities.md +1 -1
- package/.cursor/commands/oxe-checkpoint.md +1 -1
- package/.cursor/commands/oxe-compact.md +1 -1
- package/.cursor/commands/oxe-dashboard.md +1 -1
- package/.cursor/commands/oxe-debug.md +1 -1
- package/.cursor/commands/oxe-discuss.md +45 -45
- package/.cursor/commands/oxe-execute.md +52 -50
- package/.cursor/commands/oxe-forensics.md +1 -1
- package/.cursor/commands/oxe-help.md +44 -44
- package/.cursor/commands/oxe-loop.md +1 -1
- package/.cursor/commands/oxe-milestone.md +1 -1
- package/.cursor/commands/oxe-next.md +44 -44
- package/.cursor/commands/oxe-obs.md +1 -1
- package/.cursor/commands/oxe-plan-agent.md +1 -1
- package/.cursor/commands/oxe-plan.md +49 -47
- package/.cursor/commands/oxe-project.md +1 -1
- package/.cursor/commands/oxe-quick.md +49 -47
- package/.cursor/commands/oxe-research.md +1 -1
- package/.cursor/commands/oxe-retro.md +1 -1
- package/.cursor/commands/oxe-review-pr.md +47 -47
- package/.cursor/commands/oxe-route.md +1 -1
- package/.cursor/commands/oxe-scan.md +47 -47
- package/.cursor/commands/oxe-security.md +1 -1
- package/.cursor/commands/oxe-session.md +1 -1
- package/.cursor/commands/oxe-ship.md +47 -47
- package/.cursor/commands/oxe-skill.md +1 -1
- package/.cursor/commands/oxe-spec.md +49 -47
- package/.cursor/commands/oxe-ui-review.md +1 -1
- package/.cursor/commands/oxe-ui-spec.md +1 -1
- package/.cursor/commands/oxe-update.md +1 -1
- package/.cursor/commands/oxe-validate-gaps.md +1 -1
- package/.cursor/commands/oxe-verify-audit.md +1 -1
- package/.cursor/commands/oxe-verify.md +50 -50
- package/.cursor/commands/oxe-workflow-authoring.md +1 -1
- package/.cursor/commands/oxe-workstream.md +1 -1
- package/.cursor/commands/oxe.md +51 -49
- package/.github/copilot-instructions.md +3 -3
- package/.github/prompts/oxe-alm.prompt.md +47 -0
- package/.github/prompts/oxe-ask.prompt.md +47 -47
- package/.github/prompts/oxe-capabilities.prompt.md +47 -47
- package/.github/prompts/oxe-checkpoint.prompt.md +47 -47
- package/.github/prompts/oxe-compact.prompt.md +46 -46
- package/.github/prompts/oxe-dashboard.prompt.md +47 -47
- package/.github/prompts/oxe-debug.prompt.md +47 -47
- package/.github/prompts/oxe-discuss.prompt.md +47 -47
- package/.github/prompts/oxe-execute.prompt.md +52 -50
- package/.github/prompts/oxe-forensics.prompt.md +47 -47
- package/.github/prompts/oxe-help.prompt.md +46 -46
- package/.github/prompts/oxe-loop.prompt.md +47 -47
- package/.github/prompts/oxe-milestone.prompt.md +47 -47
- package/.github/prompts/oxe-next.prompt.md +46 -46
- package/.github/prompts/oxe-obs.prompt.md +47 -47
- package/.github/prompts/oxe-plan-agent.prompt.md +46 -46
- package/.github/prompts/oxe-plan.prompt.md +49 -47
- package/.github/prompts/oxe-project.prompt.md +47 -47
- package/.github/prompts/oxe-quick.prompt.md +49 -47
- package/.github/prompts/oxe-research.prompt.md +47 -47
- package/.github/prompts/oxe-retro.prompt.md +47 -47
- package/.github/prompts/oxe-review-pr.prompt.md +47 -47
- package/.github/prompts/oxe-route.prompt.md +47 -47
- package/.github/prompts/oxe-scan.prompt.md +47 -47
- package/.github/prompts/oxe-security.prompt.md +47 -47
- package/.github/prompts/oxe-session.prompt.md +47 -47
- package/.github/prompts/oxe-ship.prompt.md +47 -47
- package/.github/prompts/oxe-skill.prompt.md +47 -47
- package/.github/prompts/oxe-spec.prompt.md +49 -47
- package/.github/prompts/oxe-ui-review.prompt.md +47 -47
- package/.github/prompts/oxe-ui-spec.prompt.md +47 -47
- package/.github/prompts/oxe-update.prompt.md +46 -46
- package/.github/prompts/oxe-validate-gaps.prompt.md +47 -47
- package/.github/prompts/oxe-verify-audit.prompt.md +1 -1
- package/.github/prompts/oxe-verify.prompt.md +50 -50
- package/.github/prompts/oxe-workflow-authoring.prompt.md +1 -1
- package/.github/prompts/oxe-workstream.prompt.md +47 -47
- package/.github/prompts/oxe.prompt.md +51 -49
- package/.github/workflows/ci.yml +26 -5
- package/.github/workflows/release.yml +15 -14
- package/AGENTS.md +15 -9
- package/CHANGELOG.md +1027 -10
- package/LICENSE +21 -21
- package/QUICKSTART.md +99 -99
- package/README.md +120 -17
- package/assets/readme-banner.svg +19 -19
- package/bin/banner.txt +5 -5
- package/bin/lib/oxe-acceptance-audit.cjs +195 -0
- package/bin/lib/oxe-adr.cjs +145 -0
- package/bin/lib/oxe-agent-install.cjs +31 -29
- package/bin/lib/oxe-alm-admin.cjs +215 -0
- package/bin/lib/oxe-alm-metrics.cjs +143 -0
- package/bin/lib/oxe-alm-prs.cjs +274 -0
- package/bin/lib/oxe-alm-refine.cjs +1003 -0
- package/bin/lib/oxe-alm.cjs +1289 -0
- package/bin/lib/oxe-anchor-copy.cjs +218 -0
- package/bin/lib/oxe-api-surface.cjs +96 -0
- package/bin/lib/oxe-artifact-refs.cjs +72 -0
- package/bin/lib/oxe-attention.cjs +97 -0
- package/bin/lib/oxe-autoresume.cjs +448 -0
- package/bin/lib/oxe-azure.cjs +1445 -1445
- package/bin/lib/oxe-budget.cjs +154 -0
- package/bin/lib/oxe-change-folder.cjs +130 -0
- package/bin/lib/oxe-change.cjs +389 -0
- package/bin/lib/oxe-channels.cjs +82 -0
- package/bin/lib/oxe-cited-paths.cjs +180 -0
- package/bin/lib/oxe-cli-errors.cjs +76 -0
- package/bin/lib/oxe-cli-output.cjs +111 -0
- package/bin/lib/oxe-commit-convention.cjs +104 -0
- package/bin/lib/oxe-complexity.cjs +106 -0
- package/bin/lib/oxe-console-decode.cjs +23 -0
- package/bin/lib/oxe-coordinator-queue.cjs +67 -0
- package/bin/lib/oxe-core-command-handlers.cjs +10 -8
- package/bin/lib/oxe-criteria-ids.cjs +87 -0
- package/bin/lib/oxe-criterion-coverage.cjs +93 -0
- package/bin/lib/oxe-cross-card-conflicts.cjs +639 -0
- package/bin/lib/oxe-customize.cjs +146 -0
- package/bin/lib/oxe-dashboard.cjs +1 -1
- package/bin/lib/oxe-decisions.cjs +211 -0
- package/bin/lib/oxe-deferred.cjs +80 -0
- package/bin/lib/oxe-deps-audit.cjs +136 -0
- package/bin/lib/oxe-diff-reviewer.cjs +105 -0
- package/bin/lib/oxe-dir-info.cjs +138 -0
- package/bin/lib/oxe-docs-check.cjs +124 -0
- package/bin/lib/oxe-docs-publish.cjs +81 -0
- package/bin/lib/oxe-dom-hooks.cjs +902 -0
- package/bin/lib/oxe-dossier.cjs +355 -0
- package/bin/lib/oxe-e2e-ready.cjs +360 -0
- package/bin/lib/oxe-env-sanitize.cjs +155 -0
- package/bin/lib/oxe-event-bus.cjs +118 -118
- package/bin/lib/oxe-failure-cost.cjs +144 -0
- package/bin/lib/oxe-file-size-guard.cjs +849 -0
- package/bin/lib/oxe-findings.cjs +86 -0
- package/bin/lib/oxe-grill-cases.cjs +148 -0
- package/bin/lib/oxe-grill.cjs +444 -0
- package/bin/lib/oxe-grooming.cjs +115 -0
- package/bin/lib/oxe-guard.cjs +180 -0
- package/bin/lib/oxe-handoff.cjs +97 -0
- package/bin/lib/oxe-install-resolve.cjs +28 -0
- package/bin/lib/oxe-integration-checks.cjs +285 -0
- package/bin/lib/oxe-intent-context.cjs +101 -0
- package/bin/lib/oxe-journey.cjs +403 -0
- package/bin/lib/oxe-known-failures.cjs +138 -0
- package/bin/lib/oxe-local-config.cjs +77 -0
- package/bin/lib/oxe-memory-kernel.cjs +190 -188
- package/bin/lib/oxe-merge-train.cjs +277 -0
- package/bin/lib/oxe-model-resolve.cjs +74 -0
- package/bin/lib/oxe-model-tiers.cjs +65 -0
- package/bin/lib/oxe-nfr.cjs +125 -0
- package/bin/lib/oxe-npm-version.cjs +1 -1
- package/bin/lib/oxe-open-defects.cjs +121 -0
- package/bin/lib/oxe-operational.cjs +14339 -1066
- package/bin/lib/oxe-origin-guard.cjs +102 -0
- package/bin/lib/oxe-origin.cjs +377 -0
- package/bin/lib/oxe-pack-removed.cjs +208 -0
- package/bin/lib/oxe-parallel-run.cjs +81 -0
- package/bin/lib/oxe-parallel.cjs +234 -0
- package/bin/lib/oxe-phase-extras.cjs +185 -0
- package/bin/lib/oxe-phase-gates.cjs +551 -0
- package/bin/lib/oxe-plan-build.cjs +1520 -0
- package/bin/lib/oxe-plan-json.cjs +1107 -0
- package/bin/lib/oxe-plan-merge.cjs +253 -0
- package/bin/lib/oxe-plan-mutate.cjs +214 -0
- package/bin/lib/oxe-plan-repair.cjs +479 -0
- package/bin/lib/oxe-plan-review.cjs +256 -0
- package/bin/lib/oxe-plan-skeleton.cjs +494 -0
- package/bin/lib/oxe-plan-staleness.cjs +125 -0
- package/bin/lib/oxe-plugin-cli.cjs +3 -1
- package/bin/lib/oxe-policy-rules.cjs +144 -0
- package/bin/lib/oxe-prd.cjs +129 -0
- package/bin/lib/oxe-preflight.cjs +378 -0
- package/bin/lib/oxe-process.cjs +11 -11
- package/bin/lib/oxe-program-members.cjs +97 -0
- package/bin/lib/oxe-program.cjs +245 -0
- package/bin/lib/oxe-progress-run.cjs +80 -0
- package/bin/lib/oxe-project-env.cjs +273 -0
- package/bin/lib/oxe-project-health.cjs +619 -41
- package/bin/lib/oxe-promote-helpers.cjs +1561 -0
- package/bin/lib/oxe-provider-antigravity.cjs +114 -0
- package/bin/lib/oxe-provider-grok.cjs +48 -0
- package/bin/lib/oxe-questions.cjs +115 -0
- package/bin/lib/oxe-quick.cjs +537 -0
- package/bin/lib/oxe-ratchets.cjs +132 -0
- package/bin/lib/oxe-rationality.cjs +587 -532
- package/bin/lib/oxe-real-regression.cjs +97 -0
- package/bin/lib/oxe-recovery.cjs +160 -0
- package/bin/lib/oxe-release-ops.cjs +325 -0
- package/bin/lib/oxe-release.cjs +622 -551
- package/bin/lib/oxe-repair.cjs +153 -0
- package/bin/lib/oxe-repo-map.cjs +136 -0
- package/bin/lib/oxe-repo-rules.cjs +121 -0
- package/bin/lib/oxe-research-provenance.cjs +96 -0
- package/bin/lib/oxe-resume.cjs +406 -0
- package/bin/lib/oxe-review.cjs +403 -0
- package/bin/lib/oxe-rfc.cjs +192 -0
- package/bin/lib/oxe-risk-decision.cjs +141 -0
- package/bin/lib/oxe-runtime-semantics.cjs +8 -1
- package/bin/lib/oxe-scorecard.cjs +234 -0
- package/bin/lib/oxe-scratch.cjs +81 -0
- package/bin/lib/oxe-seams.cjs +159 -0
- package/bin/lib/oxe-security.cjs +289 -289
- package/bin/lib/oxe-semver.cjs +83 -0
- package/bin/lib/oxe-ship-pr.cjs +204 -0
- package/bin/lib/oxe-signal.cjs +173 -0
- package/bin/lib/oxe-skill-loader.cjs +131 -131
- package/bin/lib/oxe-spec-check.cjs +217 -0
- package/bin/lib/oxe-spec-ears.cjs +98 -0
- package/bin/lib/oxe-spec-edit.cjs +411 -0
- package/bin/lib/oxe-spec-freeze.cjs +378 -0
- package/bin/lib/oxe-spec-probe.cjs +146 -0
- package/bin/lib/oxe-spec-stress.cjs +146 -0
- package/bin/lib/oxe-spike.cjs +98 -0
- package/bin/lib/oxe-state.cjs +87 -0
- package/bin/lib/oxe-stub-check.cjs +355 -0
- package/bin/lib/oxe-suite-impact.cjs +1145 -0
- package/bin/lib/oxe-sync.cjs +250 -0
- package/bin/lib/oxe-system-design.cjs +138 -0
- package/bin/lib/oxe-task-gates.cjs +139 -0
- package/bin/lib/oxe-telemetry.cjs +201 -0
- package/bin/lib/oxe-test-precheck.cjs +508 -0
- package/bin/lib/oxe-test-rigor.cjs +663 -0
- package/bin/lib/oxe-test-scope.cjs +883 -0
- package/bin/lib/oxe-trace.cjs +168 -0
- package/bin/lib/oxe-turns.cjs +64 -0
- package/bin/lib/oxe-ui-evidence.cjs +187 -0
- package/bin/lib/oxe-ui-verify.cjs +55 -0
- package/bin/lib/oxe-unsafe-commands.cjs +94 -0
- package/bin/lib/oxe-verdicts.cjs +131 -0
- package/bin/lib/oxe-verify-dryrun.cjs +541 -0
- package/bin/lib/oxe-verify-remote.cjs +208 -0
- package/bin/lib/oxe-vitest-batch.cjs +142 -0
- package/bin/lib/oxe-workflow-budget.cjs +99 -0
- package/bin/lib/oxe-workflow-eval.cjs +118 -0
- package/bin/lib/oxe-workflows.cjs +3 -1
- package/bin/lib/oxe-worktree-deps.cjs +241 -0
- package/bin/lib/oxe-worktree-gc.cjs +170 -0
- package/bin/oxe-cc.js +4934 -94
- package/commands/oxe/alm.md +54 -0
- package/commands/oxe/ask.md +55 -55
- package/commands/oxe/capabilities.md +50 -50
- package/commands/oxe/checkpoint.md +53 -53
- package/commands/oxe/compact.md +47 -47
- package/commands/oxe/dashboard.md +51 -51
- package/commands/oxe/debug.md +58 -58
- package/commands/oxe/discuss.md +58 -58
- package/commands/oxe/execute.md +63 -61
- package/commands/oxe/forensics.md +53 -53
- package/commands/oxe/help.md +48 -48
- package/commands/oxe/loop.md +54 -54
- package/commands/oxe/milestone.md +53 -53
- package/commands/oxe/next.md +49 -49
- package/commands/oxe/obs.md +53 -53
- package/commands/oxe/oxe.md +55 -53
- package/commands/oxe/plan-agent.md +57 -57
- package/commands/oxe/plan.md +59 -57
- package/commands/oxe/project.md +53 -53
- package/commands/oxe/quick.md +53 -53
- package/commands/oxe/research.md +53 -53
- package/commands/oxe/retro.md +53 -53
- package/commands/oxe/review-pr.md +53 -53
- package/commands/oxe/route.md +48 -48
- package/commands/oxe/scan.md +58 -58
- package/commands/oxe/security.md +53 -53
- package/commands/oxe/session.md +53 -53
- package/commands/oxe/ship.md +53 -53
- package/commands/oxe/skill.md +53 -53
- package/commands/oxe/spec.md +59 -56
- package/commands/oxe/ui-review.md +53 -53
- package/commands/oxe/ui-spec.md +53 -53
- package/commands/oxe/update.md +53 -53
- package/commands/oxe/validate-gaps.md +53 -53
- package/commands/oxe/verify-audit.md +50 -50
- package/commands/oxe/verify.md +60 -60
- package/commands/oxe/workflow-authoring.md +50 -50
- package/commands/oxe/workstream.md +53 -53
- package/docs/ADLC-COVERAGE.md +55 -0
- package/docs/CONTENT-MIGRATION-AUDIT.md +49 -49
- package/docs/HAPPY-PATH.md +106 -0
- package/docs/INCIDENT-PLAYBOOK.md +181 -181
- package/docs/RELEASE-READINESS.md +1 -0
- package/docs/ROLES.md +129 -129
- package/docs/TEAM-ADOPTION.md +153 -153
- package/docs/WALKTHROUGH.md +241 -241
- package/docs/adr/D-1-isolamento-read-only-e-sanitizacao-centralizada-de-env-vars.md +29 -0
- package/docs/adr/D-2-junction-segura-de-node-modules-condicionada-a-sha-256-de-pa.md +29 -0
- package/docs/adr/D-3-preflight-local-5s-impacto-estatico-e2e-e-leitura-explicita.md +29 -0
- package/docs/adr/D-4-governanca-de-release-unificada-retomada-idempotente-pos-rei.md +29 -0
- package/docs/adr/README.md +15 -0
- package/docs/cli-errors.md +20 -0
- package/docs/oxespace-1.5/BACKLOG.md +2056 -0
- package/docs/oxespace-1.5/HANDOFF-1.21.2.md +140 -0
- package/docs/oxevoice/BACKLOG.md +244 -0
- package/lib/runtime/compiler/graph-compiler.d.ts +15 -0
- package/lib/runtime/compiler/graph-compiler.js +49 -3
- package/lib/runtime/delivery/promotion-pipeline.d.ts +1 -0
- package/lib/runtime/delivery/promotion-pipeline.js +59 -2
- package/lib/runtime/events/catalog.d.ts +1 -1
- package/lib/runtime/events/catalog.js +29 -0
- package/lib/runtime/executor/action-tool-map.d.ts +3 -1
- package/lib/runtime/executor/action-tool-map.js +4 -1
- package/lib/runtime/executor/adapters/antigravity-cli.d.ts +103 -0
- package/lib/runtime/executor/adapters/antigravity-cli.js +530 -0
- package/lib/runtime/executor/adapters/claude-cli.d.ts +92 -0
- package/lib/runtime/executor/adapters/claude-cli.js +328 -0
- package/lib/runtime/executor/adapters/grok-cli.d.ts +89 -0
- package/lib/runtime/executor/adapters/grok-cli.js +351 -0
- package/lib/runtime/executor/adapters/http-openai.d.ts +9 -0
- package/lib/runtime/executor/adapters/http-openai.js +18 -0
- package/lib/runtime/executor/adapters/registry.d.ts +18 -0
- package/lib/runtime/executor/adapters/registry.js +49 -0
- package/lib/runtime/executor/adapters/types.d.ts +21 -0
- package/lib/runtime/executor/adapters/types.js +2 -0
- package/lib/runtime/executor/built-in-tools.d.ts +64 -0
- package/lib/runtime/executor/built-in-tools.js +257 -24
- package/lib/runtime/executor/index.d.ts +19 -2
- package/lib/runtime/executor/index.js +50 -1
- package/lib/runtime/executor/llm-task-executor.d.ts +108 -2
- package/lib/runtime/executor/llm-task-executor.js +598 -39
- package/lib/runtime/executor/node-context.d.ts +94 -0
- package/lib/runtime/executor/node-context.js +126 -0
- package/lib/runtime/executor/node-prompt-builder.d.ts +2 -0
- package/lib/runtime/executor/node-prompt-builder.js +4 -0
- package/lib/runtime/executor/quota-patterns.d.ts +7 -0
- package/lib/runtime/executor/quota-patterns.js +39 -0
- package/lib/runtime/executor/shell-argv.d.ts +41 -0
- package/lib/runtime/executor/shell-argv.js +144 -0
- package/lib/runtime/executor/stream-completion.d.ts +27 -0
- package/lib/runtime/executor/stream-completion.js +82 -5
- package/lib/runtime/index.d.ts +5 -2
- package/lib/runtime/index.js +10 -1
- package/lib/runtime/models/failure.d.ts +1 -1
- package/lib/runtime/models/run.d.ts +1 -1
- package/lib/runtime/program/index.d.ts +1 -0
- package/lib/runtime/program/index.js +17 -0
- package/lib/runtime/program/program-model.d.ts +92 -0
- package/lib/runtime/program/program-model.js +262 -0
- package/lib/runtime/projection/projection-engine.d.ts +16 -1
- package/lib/runtime/projection/projection-engine.js +55 -3
- package/lib/runtime/reducers/run-state-reducer.js +48 -5
- package/lib/runtime/scheduler/run-journal.d.ts +27 -1
- package/lib/runtime/scheduler/run-journal.js +40 -1
- package/lib/runtime/scheduler/scheduler.d.ts +239 -0
- package/lib/runtime/scheduler/scheduler.js +1157 -97
- package/lib/runtime/verification/contract-exports.d.ts +24 -0
- package/lib/runtime/verification/contract-exports.js +201 -0
- package/lib/runtime/verification/index.d.ts +1 -0
- package/lib/runtime/verification/index.js +1 -0
- package/lib/runtime/verification/runner-timeout.d.ts +7 -0
- package/lib/runtime/verification/runner-timeout.js +17 -0
- package/lib/runtime/verification/test-report-parsers.d.ts +38 -0
- package/lib/runtime/verification/test-report-parsers.js +188 -0
- package/lib/runtime/verification/verification-compiler.d.ts +101 -2
- package/lib/runtime/verification/verification-compiler.js +491 -82
- package/lib/runtime/verification/verification-manifest.d.ts +12 -0
- package/lib/runtime/verification/verification-manifest.js +33 -4
- package/lib/runtime/workspace/index.d.ts +2 -1
- package/lib/runtime/workspace/index.js +3 -1
- package/lib/runtime/workspace/strategies/ephemeral-container.d.ts +9 -0
- package/lib/runtime/workspace/strategies/ephemeral-container.js +37 -10
- package/lib/runtime/workspace/strategies/git-worktree.d.ts +24 -1
- package/lib/runtime/workspace/strategies/git-worktree.js +134 -1
- package/lib/sdk/README.md +21 -21
- package/lib/sdk/index.cjs +27 -9
- package/oxe/agents/oxe-assumptions-analyzer.md +136 -136
- package/oxe/agents/oxe-codebase-mapper.md +142 -142
- package/oxe/agents/oxe-debugger.md +145 -145
- package/oxe/agents/oxe-executor.md +139 -139
- package/oxe/agents/oxe-integration-checker.md +142 -142
- package/oxe/agents/oxe-plan-checker.md +143 -143
- package/oxe/agents/oxe-planner.md +151 -151
- package/oxe/agents/oxe-research-synthesizer.md +146 -146
- package/oxe/agents/oxe-researcher.md +163 -163
- package/oxe/agents/oxe-ui-auditor.md +151 -151
- package/oxe/agents/oxe-ui-checker.md +157 -157
- package/oxe/agents/oxe-ui-researcher.md +179 -179
- package/oxe/agents/oxe-validation-auditor.md +154 -154
- package/oxe/agents/oxe-verifier.md +132 -132
- package/oxe/migrations/config-migrations.json +15 -0
- package/oxe/personas/README.md +91 -91
- package/oxe/personas/architect.md +149 -149
- package/oxe/personas/db-specialist.md +149 -149
- package/oxe/personas/debugger.md +155 -155
- package/oxe/personas/executor.md +164 -164
- package/oxe/personas/planner.md +165 -165
- package/oxe/personas/researcher.md +148 -148
- package/oxe/personas/ui-specialist.md +164 -164
- package/oxe/personas/verifier.md +174 -174
- package/oxe/schemas/plan-agents.schema.json +122 -122
- package/oxe/schemas/plan.schema.json +101 -0
- package/oxe/schemas/role-plan.schema.json +50 -0
- package/oxe/schemas/swarm-run.schema.json +130 -130
- package/oxe/templates/ACTIVE-RUN.template.json +32 -32
- package/oxe/templates/CAPABILITIES.template.md +7 -7
- package/oxe/templates/CAPABILITY.template.md +45 -45
- package/oxe/templates/CHECKPOINT.template.md +37 -37
- package/oxe/templates/CHECKPOINTS.template.md +7 -7
- package/oxe/templates/CODEBASE-DELTA.template.md +33 -33
- package/oxe/templates/CONFIG.md +172 -0
- package/oxe/templates/DISCUSS.template.md +1 -0
- package/oxe/templates/DOCS_BROWNFIELD_LAYOUT.md +55 -55
- package/oxe/templates/FIXTURE-PACK.template.json +18 -18
- package/oxe/templates/FIXTURE-PACK.template.md +19 -19
- package/oxe/templates/GIT_HOOKS_OXE.md +52 -52
- package/oxe/templates/GLOSSARY.template.md +9 -0
- package/oxe/templates/HYPOTHESES.template.md +33 -33
- package/oxe/templates/IMPLEMENTATION-PACK.template.json +26 -26
- package/oxe/templates/IMPLEMENTATION-PACK.template.md +32 -32
- package/oxe/templates/INVESTIGATION.template.md +38 -38
- package/oxe/templates/LESSONS-METRICS.template.json +13 -13
- package/oxe/templates/LESSONS.template.md +43 -43
- package/oxe/templates/MEMORY.template.md +49 -49
- package/oxe/templates/MILESTONES.template.md +17 -17
- package/oxe/templates/NOTES.template.md +16 -16
- package/oxe/templates/OBSERVATIONS.template.md +18 -18
- package/oxe/templates/PLAN-REVIEW.template.md +31 -31
- package/oxe/templates/PLAN.template.md +87 -87
- package/oxe/templates/PRD.template.md +53 -0
- package/oxe/templates/REFERENCE-ANCHORS.template.md +30 -26
- package/oxe/templates/RESEARCH.template.md +8 -0
- package/oxe/templates/RESUME.template.md +49 -49
- package/oxe/templates/RFC.template.md +43 -0
- package/oxe/templates/ROADMAP.template.md +44 -44
- package/oxe/templates/SECURITY.template.md +72 -72
- package/oxe/templates/SESSION.template.md +34 -34
- package/oxe/templates/SKILL.template.md +26 -26
- package/oxe/templates/SPEC.template.md +65 -65
- package/oxe/templates/SUMMARY.template.md +50 -50
- package/oxe/templates/VISUAL-INPUTS.template.json +27 -27
- package/oxe/templates/VISUAL-INPUTS.template.md +36 -36
- package/oxe/templates/WORKFLOW_AUTHORING.md +93 -93
- package/oxe/templates/finding-rules.json +22 -0
- package/oxe/templates/plan-agent-messages-README.template.md +9 -9
- package/oxe/templates/plan-agents.template.json +30 -30
- package/oxe/templates/quick-agents.template.json +24 -24
- package/oxe/templates/stress-methods.md +33 -0
- package/oxe/workflows/agent-mode.md +150 -150
- package/oxe/workflows/alm.md +50 -0
- package/oxe/workflows/ask.md +96 -96
- package/oxe/workflows/capabilities.md +25 -25
- package/oxe/workflows/checkpoint.md +37 -37
- package/oxe/workflows/compact/plan.md +149 -0
- package/oxe/workflows/compact/spec.md +114 -0
- package/oxe/workflows/compact.md +1 -0
- package/oxe/workflows/conduct.md +149 -149
- package/oxe/workflows/dashboard.md +33 -33
- package/oxe/workflows/debug.md +9 -9
- package/oxe/workflows/discuss.md +15 -3
- package/oxe/workflows/distill.md +164 -164
- package/oxe/workflows/execute.md +30 -26
- package/oxe/workflows/forensics.md +5 -5
- package/oxe/workflows/help.md +10 -4
- package/oxe/workflows/lean/execute.md +42 -0
- package/oxe/workflows/lean/plan.md +60 -0
- package/oxe/workflows/lean/spec.md +61 -0
- package/oxe/workflows/loop.md +67 -67
- package/oxe/workflows/memory.md +163 -163
- package/oxe/workflows/milestone.md +95 -95
- package/oxe/workflows/next.md +10 -8
- package/oxe/workflows/obs.md +167 -167
- package/oxe/workflows/oxe.md +33 -14
- package/oxe/workflows/plan-agent.md +143 -143
- package/oxe/workflows/plan.md +49 -40
- package/oxe/workflows/project.md +55 -55
- package/oxe/workflows/quick.md +19 -5
- package/oxe/workflows/references/adaptive-discovery.md +27 -27
- package/oxe/workflows/references/alm-refine.md +55 -0
- package/oxe/workflows/references/azure-in-plan.md +5 -0
- package/oxe/workflows/references/change-management.md +48 -0
- package/oxe/workflows/references/grill.md +74 -0
- package/oxe/workflows/references/legacy-brownfield.md +136 -136
- package/oxe/workflows/references/next-step-footer.md +33 -0
- package/oxe/workflows/references/plan-agent-chat-protocol.md +99 -99
- package/oxe/workflows/references/plan-json-acceptance-program.md +174 -0
- package/oxe/workflows/references/product-docs-alm.md +51 -0
- package/oxe/workflows/references/reasoning-discovery.md +28 -28
- package/oxe/workflows/references/reasoning-execution.md +29 -29
- package/oxe/workflows/references/reasoning-planning.md +32 -32
- package/oxe/workflows/references/reasoning-review.md +29 -29
- package/oxe/workflows/references/reasoning-status.md +24 -24
- package/oxe/workflows/references/robustness-elevation.md +295 -295
- package/oxe/workflows/references/session-path-resolution.md +71 -71
- package/oxe/workflows/references/workflow-runtime-contracts.json +1167 -1151
- package/oxe/workflows/research.md +1 -0
- package/oxe/workflows/retro.md +117 -117
- package/oxe/workflows/review-pr.md +53 -53
- package/oxe/workflows/route.md +1 -1
- package/oxe/workflows/scan.md +356 -355
- package/oxe/workflows/security.md +67 -67
- package/oxe/workflows/session.md +213 -213
- package/oxe/workflows/ship.md +74 -125
- package/oxe/workflows/size-budget.json +62 -0
- package/oxe/workflows/skill.md +44 -44
- package/oxe/workflows/spec.md +92 -93
- package/oxe/workflows/swarm/board.md +119 -119
- package/oxe/workflows/swarm/scout.md +170 -170
- package/oxe/workflows/swarm-mode.md +280 -280
- package/oxe/workflows/ui-review.md +5 -5
- package/oxe/workflows/ui-spec.md +7 -7
- package/oxe/workflows/update.md +35 -35
- package/oxe/workflows/validate-gaps.md +45 -45
- package/oxe/workflows/verify-audit.md +73 -73
- package/oxe/workflows/verify.md +35 -14
- package/oxe/workflows/workflow-authoring.md +34 -34
- package/oxe/workflows/workstream.md +97 -97
- package/package.json +8 -3
- package/packages/runtime/package.json +1 -1
- package/packages/runtime/src/audit/audit-trail.ts +243 -243
- package/packages/runtime/src/audit/index.ts +2 -2
- package/packages/runtime/src/audit/policy-pack.ts +62 -62
- package/packages/runtime/src/compiler/graph-compiler.ts +67 -3
- package/packages/runtime/src/compiler/index.ts +1 -1
- package/packages/runtime/src/context/context-pack-store.ts +197 -197
- package/packages/runtime/src/context/context-profiles.ts +60 -60
- package/packages/runtime/src/context/index.ts +3 -3
- package/packages/runtime/src/decision/decision-engine.ts +174 -174
- package/packages/runtime/src/decision/decision-memo.ts +211 -211
- package/packages/runtime/src/decision/index.ts +2 -2
- package/packages/runtime/src/delivery/branch-manager.ts +91 -91
- package/packages/runtime/src/delivery/ci-checks.ts +285 -285
- package/packages/runtime/src/delivery/delivery-records.ts +75 -75
- package/packages/runtime/src/delivery/index.ts +5 -5
- package/packages/runtime/src/delivery/pr-manager.ts +112 -112
- package/packages/runtime/src/delivery/promotion-pipeline.ts +65 -2
- package/packages/runtime/src/events/bus.ts +92 -92
- package/packages/runtime/src/events/catalog.ts +29 -0
- package/packages/runtime/src/events/envelope.ts +14 -14
- package/packages/runtime/src/events/index.ts +3 -3
- package/packages/runtime/src/evidence/evidence-store.ts +130 -130
- package/packages/runtime/src/evidence/index.ts +1 -1
- package/packages/runtime/src/executor/action-tool-map.ts +52 -50
- package/packages/runtime/src/executor/adapters/antigravity-cli.ts +619 -0
- package/packages/runtime/src/executor/adapters/claude-cli.ts +367 -0
- package/packages/runtime/src/executor/adapters/grok-cli.ts +392 -0
- package/packages/runtime/src/executor/adapters/http-openai.ts +16 -0
- package/packages/runtime/src/executor/adapters/registry.ts +53 -0
- package/packages/runtime/src/executor/adapters/types.ts +24 -0
- package/packages/runtime/src/executor/built-in-tools.ts +525 -305
- package/packages/runtime/src/executor/index.ts +23 -6
- package/packages/runtime/src/executor/llm-task-executor.ts +854 -236
- package/packages/runtime/src/executor/node-context.ts +226 -0
- package/packages/runtime/src/executor/node-prompt-builder.ts +69 -62
- package/packages/runtime/src/executor/quota-patterns.ts +41 -0
- package/packages/runtime/src/executor/shell-argv.ts +144 -0
- package/packages/runtime/src/executor/stream-completion.ts +230 -145
- package/packages/runtime/src/gate/gate-manager.ts +289 -289
- package/packages/runtime/src/gate/index.ts +1 -1
- package/packages/runtime/src/index.ts +12 -0
- package/packages/runtime/src/models/attempt.ts +19 -19
- package/packages/runtime/src/models/evidence.ts +21 -21
- package/packages/runtime/src/models/failure.ts +22 -13
- package/packages/runtime/src/models/gate-decision.ts +25 -25
- package/packages/runtime/src/models/index.ts +8 -8
- package/packages/runtime/src/models/run.ts +1 -0
- package/packages/runtime/src/models/session.ts +11 -11
- package/packages/runtime/src/models/verification-result.ts +10 -10
- package/packages/runtime/src/models/work-item.ts +25 -25
- package/packages/runtime/src/models/workspace.ts +31 -31
- package/packages/runtime/src/plugins/capability-matrix.ts +126 -126
- package/packages/runtime/src/plugins/index.ts +5 -5
- package/packages/runtime/src/plugins/plugin-manifest.ts +118 -118
- package/packages/runtime/src/policy/index.ts +1 -1
- package/packages/runtime/src/policy/policy-engine.ts +330 -330
- package/packages/runtime/src/program/index.ts +1 -0
- package/packages/runtime/src/program/program-model.ts +293 -0
- package/packages/runtime/src/projection/index.ts +1 -1
- package/packages/runtime/src/projection/projection-engine.ts +61 -3
- package/packages/runtime/src/reducers/debug-reducer.ts +36 -36
- package/packages/runtime/src/reducers/index.ts +2 -2
- package/packages/runtime/src/reducers/run-state-reducer.ts +44 -5
- package/packages/runtime/src/scheduler/agent-registry.ts +132 -132
- package/packages/runtime/src/scheduler/agent-roles.ts +109 -109
- package/packages/runtime/src/scheduler/index.ts +4 -4
- package/packages/runtime/src/scheduler/run-journal.ts +47 -2
- package/packages/runtime/src/scheduler/scheduler.ts +1242 -99
- package/packages/runtime/src/verification/contract-exports.ts +203 -0
- package/packages/runtime/src/verification/index.ts +1 -0
- package/packages/runtime/src/verification/runner-timeout.ts +17 -0
- package/packages/runtime/src/verification/test-report-parsers.ts +204 -0
- package/packages/runtime/src/verification/verification-compiler.ts +508 -40
- package/packages/runtime/src/verification/verification-manifest.ts +44 -4
- package/packages/runtime/src/workspace/index.ts +2 -1
- package/packages/runtime/src/workspace/strategies/ephemeral-container.ts +44 -11
- package/packages/runtime/src/workspace/strategies/git-worktree.ts +104 -1
- package/packages/runtime/src/workspace/strategies/inplace.ts +38 -38
- package/packages/runtime/src/workspace/workspace-manager.ts +16 -16
- package/vscode-extension/LICENSE +21 -21
- package/vscode-extension/package.json +1 -1
- package/vscode-extension/src/shared/contextLoader.js +137 -137
- package/vscode-extension/src/shared/contractBuilder.js +159 -159
- package/vscode-extension/src/shared/stateReader.js +101 -101
- package/docs/oxe-artifact-map.html +0 -1172
|
@@ -1,1172 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="pt-BR">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>Mapa Interativo dos Artefatos OXE Build</title>
|
|
7
|
-
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%232d7ff9'/%3E%3Ctext x='16' y='20' text-anchor='middle' font-family='Arial' font-size='10' font-weight='700' fill='white'%3EOXE%3C/text%3E%3C/svg%3E">
|
|
8
|
-
<style>
|
|
9
|
-
:root {
|
|
10
|
-
color-scheme: dark;
|
|
11
|
-
--bg: #0d141c;
|
|
12
|
-
--panel: #111b25;
|
|
13
|
-
--panel-2: #142231;
|
|
14
|
-
--line: #42556b;
|
|
15
|
-
--text: #e6edf5;
|
|
16
|
-
--muted: #8ea0b5;
|
|
17
|
-
--blue: #2d7ff9;
|
|
18
|
-
--cyan: #22b7d8;
|
|
19
|
-
--green: #21a979;
|
|
20
|
-
--orange: #f08b24;
|
|
21
|
-
--red: #df5b57;
|
|
22
|
-
--violet: #8757d9;
|
|
23
|
-
--yellow: #d5b243;
|
|
24
|
-
--shadow: 0 18px 52px rgba(0, 0, 0, .34);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
* { box-sizing: border-box; }
|
|
28
|
-
|
|
29
|
-
body {
|
|
30
|
-
margin: 0;
|
|
31
|
-
min-height: 100vh;
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
34
|
-
color: var(--text);
|
|
35
|
-
background:
|
|
36
|
-
radial-gradient(circle at 10% 15%, rgba(45, 127, 249, .12), transparent 32%),
|
|
37
|
-
linear-gradient(135deg, #0b1119 0%, #101924 48%, #0b121b 100%);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
button, input { font: inherit; }
|
|
41
|
-
|
|
42
|
-
.app {
|
|
43
|
-
display: grid;
|
|
44
|
-
grid-template-columns: 292px minmax(0, 1fr) 338px;
|
|
45
|
-
height: 100vh;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.sidebar,
|
|
49
|
-
.details {
|
|
50
|
-
background: rgba(13, 22, 32, .92);
|
|
51
|
-
border-color: rgba(136, 159, 184, .18);
|
|
52
|
-
border-style: solid;
|
|
53
|
-
backdrop-filter: blur(18px);
|
|
54
|
-
overflow: auto;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.sidebar {
|
|
58
|
-
border-width: 0 1px 0 0;
|
|
59
|
-
padding: 22px 18px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.details {
|
|
63
|
-
border-width: 0 0 0 1px;
|
|
64
|
-
padding: 22px 18px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.brand {
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: center;
|
|
70
|
-
gap: 12px;
|
|
71
|
-
margin-bottom: 22px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.mark {
|
|
75
|
-
display: grid;
|
|
76
|
-
width: 42px;
|
|
77
|
-
height: 42px;
|
|
78
|
-
place-items: center;
|
|
79
|
-
border-radius: 8px;
|
|
80
|
-
color: white;
|
|
81
|
-
font-weight: 800;
|
|
82
|
-
letter-spacing: .04em;
|
|
83
|
-
background: linear-gradient(135deg, #2d7ff9, #21a979);
|
|
84
|
-
box-shadow: 0 12px 30px rgba(45, 127, 249, .28);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
h1, h2, h3, p { margin: 0; }
|
|
88
|
-
|
|
89
|
-
h1 {
|
|
90
|
-
font-size: 17px;
|
|
91
|
-
line-height: 1.2;
|
|
92
|
-
letter-spacing: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.subtitle {
|
|
96
|
-
margin-top: 4px;
|
|
97
|
-
color: var(--muted);
|
|
98
|
-
font-size: 12px;
|
|
99
|
-
line-height: 1.45;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.search {
|
|
103
|
-
position: relative;
|
|
104
|
-
margin-bottom: 20px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.search input {
|
|
108
|
-
width: 100%;
|
|
109
|
-
height: 38px;
|
|
110
|
-
color: var(--text);
|
|
111
|
-
background: #0b141e;
|
|
112
|
-
border: 1px solid rgba(142, 160, 181, .22);
|
|
113
|
-
border-radius: 8px;
|
|
114
|
-
padding: 0 12px;
|
|
115
|
-
outline: none;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.search input:focus {
|
|
119
|
-
border-color: rgba(45, 127, 249, .85);
|
|
120
|
-
box-shadow: 0 0 0 3px rgba(45, 127, 249, .16);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.section {
|
|
124
|
-
margin-top: 20px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.section h2 {
|
|
128
|
-
color: #f5f8fb;
|
|
129
|
-
font-size: 12px;
|
|
130
|
-
text-transform: uppercase;
|
|
131
|
-
letter-spacing: .08em;
|
|
132
|
-
margin-bottom: 10px;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.filters,
|
|
136
|
-
.views {
|
|
137
|
-
display: grid;
|
|
138
|
-
gap: 8px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.chip,
|
|
142
|
-
.view-btn,
|
|
143
|
-
.tool-btn {
|
|
144
|
-
color: var(--text);
|
|
145
|
-
background: rgba(20, 34, 49, .92);
|
|
146
|
-
border: 1px solid rgba(142, 160, 181, .2);
|
|
147
|
-
border-radius: 8px;
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
transition: transform .15s ease, border-color .15s ease, background .15s ease;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.chip,
|
|
153
|
-
.view-btn {
|
|
154
|
-
display: flex;
|
|
155
|
-
align-items: center;
|
|
156
|
-
justify-content: space-between;
|
|
157
|
-
min-height: 36px;
|
|
158
|
-
padding: 8px 10px;
|
|
159
|
-
text-align: left;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.chip:hover,
|
|
163
|
-
.view-btn:hover,
|
|
164
|
-
.tool-btn:hover {
|
|
165
|
-
transform: translateY(-1px);
|
|
166
|
-
border-color: rgba(255, 255, 255, .34);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.chip.active,
|
|
170
|
-
.view-btn.active {
|
|
171
|
-
background: rgba(45, 127, 249, .22);
|
|
172
|
-
border-color: rgba(45, 127, 249, .9);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.count {
|
|
176
|
-
min-width: 24px;
|
|
177
|
-
text-align: center;
|
|
178
|
-
color: var(--muted);
|
|
179
|
-
font-size: 11px;
|
|
180
|
-
border-radius: 999px;
|
|
181
|
-
padding: 2px 6px;
|
|
182
|
-
background: rgba(255, 255, 255, .06);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.legend {
|
|
186
|
-
display: grid;
|
|
187
|
-
grid-template-columns: 1fr 1fr;
|
|
188
|
-
gap: 8px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.legend-item {
|
|
192
|
-
display: flex;
|
|
193
|
-
align-items: center;
|
|
194
|
-
gap: 8px;
|
|
195
|
-
color: var(--muted);
|
|
196
|
-
font-size: 12px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.dot {
|
|
200
|
-
width: 10px;
|
|
201
|
-
height: 10px;
|
|
202
|
-
border-radius: 50%;
|
|
203
|
-
background: var(--dot);
|
|
204
|
-
box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot), transparent 75%);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.workspace {
|
|
208
|
-
position: relative;
|
|
209
|
-
overflow: hidden;
|
|
210
|
-
background-color: var(--bg);
|
|
211
|
-
background-image:
|
|
212
|
-
linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
|
|
213
|
-
linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
|
|
214
|
-
background-size: 18px 18px;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.toolbar {
|
|
218
|
-
position: absolute;
|
|
219
|
-
z-index: 5;
|
|
220
|
-
top: 18px;
|
|
221
|
-
left: 18px;
|
|
222
|
-
display: flex;
|
|
223
|
-
align-items: center;
|
|
224
|
-
gap: 8px;
|
|
225
|
-
padding: 8px;
|
|
226
|
-
background: rgba(12, 20, 30, .78);
|
|
227
|
-
border: 1px solid rgba(142, 160, 181, .16);
|
|
228
|
-
border-radius: 8px;
|
|
229
|
-
box-shadow: var(--shadow);
|
|
230
|
-
backdrop-filter: blur(14px);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.tool-btn {
|
|
234
|
-
display: grid;
|
|
235
|
-
width: 34px;
|
|
236
|
-
height: 34px;
|
|
237
|
-
place-items: center;
|
|
238
|
-
padding: 0;
|
|
239
|
-
font-size: 16px;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.zoom-readout {
|
|
243
|
-
min-width: 54px;
|
|
244
|
-
color: var(--muted);
|
|
245
|
-
text-align: center;
|
|
246
|
-
font-size: 12px;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
.canvas {
|
|
250
|
-
position: absolute;
|
|
251
|
-
inset: 0;
|
|
252
|
-
transform-origin: 0 0;
|
|
253
|
-
will-change: transform;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
svg.links {
|
|
257
|
-
position: absolute;
|
|
258
|
-
inset: 0;
|
|
259
|
-
width: 2400px;
|
|
260
|
-
height: 1260px;
|
|
261
|
-
overflow: visible;
|
|
262
|
-
pointer-events: none;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.edge {
|
|
266
|
-
fill: none;
|
|
267
|
-
stroke: rgba(142, 160, 181, .42);
|
|
268
|
-
stroke-width: 2;
|
|
269
|
-
marker-end: url(#arrow);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.edge.dim {
|
|
273
|
-
opacity: .13;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.edge.hot {
|
|
277
|
-
stroke: #9ac5ff;
|
|
278
|
-
stroke-width: 3;
|
|
279
|
-
filter: drop-shadow(0 0 8px rgba(45, 127, 249, .55));
|
|
280
|
-
opacity: 1;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
.node {
|
|
284
|
-
position: absolute;
|
|
285
|
-
width: 196px;
|
|
286
|
-
min-height: 88px;
|
|
287
|
-
background: rgba(17, 27, 37, .96);
|
|
288
|
-
border: 1px solid rgba(255, 255, 255, .14);
|
|
289
|
-
border-top: 4px solid var(--accent);
|
|
290
|
-
border-radius: 8px;
|
|
291
|
-
box-shadow: 0 20px 40px rgba(0, 0, 0, .26);
|
|
292
|
-
cursor: pointer;
|
|
293
|
-
user-select: none;
|
|
294
|
-
transition: transform .12s ease, box-shadow .12s ease, opacity .15s ease, border-color .15s ease;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.node:hover {
|
|
298
|
-
transform: translateY(-2px);
|
|
299
|
-
border-color: rgba(255, 255, 255, .42);
|
|
300
|
-
box-shadow: 0 24px 48px rgba(0, 0, 0, .34);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.node.selected {
|
|
304
|
-
border-color: #fff;
|
|
305
|
-
box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 24px 58px rgba(0, 0, 0, .4);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.node.dim {
|
|
309
|
-
opacity: .18;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.node.hidden {
|
|
313
|
-
display: none;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.node-head {
|
|
317
|
-
display: flex;
|
|
318
|
-
align-items: center;
|
|
319
|
-
justify-content: space-between;
|
|
320
|
-
gap: 8px;
|
|
321
|
-
padding: 9px 10px 7px;
|
|
322
|
-
border-bottom: 1px solid rgba(255, 255, 255, .08);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.node-type {
|
|
326
|
-
color: rgba(255, 255, 255, .72);
|
|
327
|
-
font-size: 10px;
|
|
328
|
-
text-transform: uppercase;
|
|
329
|
-
letter-spacing: .08em;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
.port {
|
|
333
|
-
width: 10px;
|
|
334
|
-
height: 10px;
|
|
335
|
-
border: 2px solid rgba(255,255,255,.72);
|
|
336
|
-
border-radius: 50%;
|
|
337
|
-
background: var(--accent);
|
|
338
|
-
flex: 0 0 auto;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.node-body {
|
|
342
|
-
padding: 10px;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.node-title {
|
|
346
|
-
color: #fff;
|
|
347
|
-
font-size: 14px;
|
|
348
|
-
line-height: 1.15;
|
|
349
|
-
font-weight: 720;
|
|
350
|
-
letter-spacing: 0;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
.node-summary {
|
|
354
|
-
margin-top: 8px;
|
|
355
|
-
color: var(--muted);
|
|
356
|
-
font-size: 11px;
|
|
357
|
-
line-height: 1.35;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
.status-card {
|
|
361
|
-
margin-top: 16px;
|
|
362
|
-
padding: 12px;
|
|
363
|
-
background: rgba(20, 34, 49, .72);
|
|
364
|
-
border: 1px solid rgba(142, 160, 181, .16);
|
|
365
|
-
border-radius: 8px;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.status-card strong {
|
|
369
|
-
display: block;
|
|
370
|
-
margin-bottom: 6px;
|
|
371
|
-
font-size: 13px;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.status-card p,
|
|
375
|
-
.detail-copy,
|
|
376
|
-
.detail-list li {
|
|
377
|
-
color: var(--muted);
|
|
378
|
-
font-size: 12px;
|
|
379
|
-
line-height: 1.48;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.details h2 {
|
|
383
|
-
font-size: 18px;
|
|
384
|
-
line-height: 1.2;
|
|
385
|
-
margin-bottom: 6px;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
.detail-type {
|
|
389
|
-
display: inline-flex;
|
|
390
|
-
align-items: center;
|
|
391
|
-
gap: 8px;
|
|
392
|
-
color: #fff;
|
|
393
|
-
font-size: 12px;
|
|
394
|
-
margin-bottom: 14px;
|
|
395
|
-
padding: 5px 8px;
|
|
396
|
-
border: 1px solid color-mix(in srgb, var(--accent), transparent 52%);
|
|
397
|
-
border-radius: 999px;
|
|
398
|
-
background: color-mix(in srgb, var(--accent), transparent 84%);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.path {
|
|
402
|
-
display: block;
|
|
403
|
-
width: 100%;
|
|
404
|
-
margin: 14px 0;
|
|
405
|
-
padding: 10px;
|
|
406
|
-
color: #cfe1f5;
|
|
407
|
-
background: #0a121a;
|
|
408
|
-
border: 1px solid rgba(142, 160, 181, .16);
|
|
409
|
-
border-radius: 8px;
|
|
410
|
-
font-family: "Cascadia Code", Consolas, monospace;
|
|
411
|
-
font-size: 11px;
|
|
412
|
-
white-space: normal;
|
|
413
|
-
overflow-wrap: anywhere;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.detail-group {
|
|
417
|
-
margin-top: 18px;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.detail-group h3 {
|
|
421
|
-
margin-bottom: 8px;
|
|
422
|
-
font-size: 12px;
|
|
423
|
-
text-transform: uppercase;
|
|
424
|
-
letter-spacing: .08em;
|
|
425
|
-
color: #f1f5fa;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.detail-list {
|
|
429
|
-
display: grid;
|
|
430
|
-
gap: 7px;
|
|
431
|
-
padding: 0;
|
|
432
|
-
margin: 0;
|
|
433
|
-
list-style: none;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
.detail-list li {
|
|
437
|
-
padding: 8px 9px;
|
|
438
|
-
background: rgba(20, 34, 49, .7);
|
|
439
|
-
border: 1px solid rgba(142, 160, 181, .14);
|
|
440
|
-
border-radius: 8px;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.mobile-note {
|
|
444
|
-
display: none;
|
|
445
|
-
position: absolute;
|
|
446
|
-
right: 14px;
|
|
447
|
-
bottom: 14px;
|
|
448
|
-
left: 14px;
|
|
449
|
-
z-index: 10;
|
|
450
|
-
padding: 10px 12px;
|
|
451
|
-
color: var(--muted);
|
|
452
|
-
background: rgba(12, 20, 30, .92);
|
|
453
|
-
border: 1px solid rgba(142, 160, 181, .18);
|
|
454
|
-
border-radius: 8px;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
@media (max-width: 1040px) {
|
|
458
|
-
.app {
|
|
459
|
-
grid-template-columns: 250px minmax(0, 1fr);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
.details {
|
|
463
|
-
display: none;
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
@media (max-width: 760px) {
|
|
468
|
-
body {
|
|
469
|
-
overflow: auto;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.app {
|
|
473
|
-
grid-template-columns: 1fr;
|
|
474
|
-
height: auto;
|
|
475
|
-
min-height: 100vh;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.sidebar {
|
|
479
|
-
border-width: 0 0 1px 0;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
.workspace {
|
|
483
|
-
height: 72vh;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.details {
|
|
487
|
-
display: block;
|
|
488
|
-
border-width: 1px 0 0 0;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.mobile-note {
|
|
492
|
-
display: block;
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
</style>
|
|
496
|
-
</head>
|
|
497
|
-
<body>
|
|
498
|
-
<main class="app">
|
|
499
|
-
<aside class="sidebar">
|
|
500
|
-
<div class="brand">
|
|
501
|
-
<div class="mark">OXE</div>
|
|
502
|
-
<div>
|
|
503
|
-
<h1>Mapa de comunicação</h1>
|
|
504
|
-
<p class="subtitle">Artefatos, workflows, runtime, agentes e integrações do OXE Build.</p>
|
|
505
|
-
</div>
|
|
506
|
-
</div>
|
|
507
|
-
|
|
508
|
-
<label class="search" aria-label="Buscar no mapa">
|
|
509
|
-
<input id="search" type="search" placeholder="Buscar artefato, fluxo ou path">
|
|
510
|
-
</label>
|
|
511
|
-
|
|
512
|
-
<section class="section">
|
|
513
|
-
<h2>Visões</h2>
|
|
514
|
-
<div class="views" id="views"></div>
|
|
515
|
-
</section>
|
|
516
|
-
|
|
517
|
-
<section class="section">
|
|
518
|
-
<h2>Tipos</h2>
|
|
519
|
-
<div class="filters" id="filters"></div>
|
|
520
|
-
</section>
|
|
521
|
-
|
|
522
|
-
<section class="section">
|
|
523
|
-
<h2>Legenda</h2>
|
|
524
|
-
<div class="legend" id="legend"></div>
|
|
525
|
-
</section>
|
|
526
|
-
|
|
527
|
-
<div class="status-card">
|
|
528
|
-
<strong>Como ler</strong>
|
|
529
|
-
<p>As setas indicam consumo, produção ou projeção. Clique em um nó para destacar dependências e saídas; use as visões para focar no ciclo, runtime, agentes ou release.</p>
|
|
530
|
-
</div>
|
|
531
|
-
</aside>
|
|
532
|
-
|
|
533
|
-
<section class="workspace" id="workspace" aria-label="Mapa visual interativo dos artefatos OXE">
|
|
534
|
-
<div class="toolbar" aria-label="Controles do mapa">
|
|
535
|
-
<button class="tool-btn" id="zoomOut" title="Diminuir zoom">-</button>
|
|
536
|
-
<span class="zoom-readout" id="zoomLabel">100%</span>
|
|
537
|
-
<button class="tool-btn" id="zoomIn" title="Aumentar zoom">+</button>
|
|
538
|
-
<button class="tool-btn" id="reset" title="Centralizar">⌂</button>
|
|
539
|
-
</div>
|
|
540
|
-
<div class="canvas" id="canvas">
|
|
541
|
-
<svg class="links" id="links" viewBox="0 0 2400 1260" aria-hidden="true">
|
|
542
|
-
<defs>
|
|
543
|
-
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
|
|
544
|
-
<path d="M0,0 L0,6 L9,3 z" fill="rgba(142, 160, 181, .7)"></path>
|
|
545
|
-
</marker>
|
|
546
|
-
</defs>
|
|
547
|
-
</svg>
|
|
548
|
-
</div>
|
|
549
|
-
<div class="mobile-note">Arraste para navegar pelo mapa. Toque em um cartão para ver suas conexões.</div>
|
|
550
|
-
</section>
|
|
551
|
-
|
|
552
|
-
<aside class="details" id="details" style="--accent: var(--blue)">
|
|
553
|
-
<h2>Selecione um artefato</h2>
|
|
554
|
-
<span class="detail-type"><span class="dot" style="--dot: var(--blue)"></span>Visão geral</span>
|
|
555
|
-
<p class="detail-copy">O mapa parte dos comandos e workflows canônicos, atravessa os artefatos em `.oxe/`, passa pelo runtime enterprise e termina nas integrações, SDK e gates de release.</p>
|
|
556
|
-
<div class="detail-group">
|
|
557
|
-
<h3>Atalhos úteis</h3>
|
|
558
|
-
<ul class="detail-list">
|
|
559
|
-
<li>`/oxe-spec -> /oxe-plan -> /oxe-execute -> /oxe-verify` é o ciclo principal.</li>
|
|
560
|
-
<li>`oxe-cc runtime` compila, verifica, projeta e promove runs.</li>
|
|
561
|
-
<li>`oxe/workflows/**` é a fonte canônica; wrappers são projeções.</li>
|
|
562
|
-
</ul>
|
|
563
|
-
</div>
|
|
564
|
-
</aside>
|
|
565
|
-
</main>
|
|
566
|
-
|
|
567
|
-
<script>
|
|
568
|
-
const colors = {
|
|
569
|
-
cli: "var(--violet)",
|
|
570
|
-
workflow: "var(--blue)",
|
|
571
|
-
artifact: "var(--green)",
|
|
572
|
-
runtime: "var(--cyan)",
|
|
573
|
-
agent: "var(--orange)",
|
|
574
|
-
integration: "var(--yellow)",
|
|
575
|
-
release: "var(--red)"
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
const labels = {
|
|
579
|
-
cli: "Entrada",
|
|
580
|
-
workflow: "Workflow",
|
|
581
|
-
artifact: "Artefato",
|
|
582
|
-
runtime: "Runtime",
|
|
583
|
-
agent: "Agente",
|
|
584
|
-
integration: "Integração",
|
|
585
|
-
release: "Release"
|
|
586
|
-
};
|
|
587
|
-
|
|
588
|
-
const nodes = [
|
|
589
|
-
{
|
|
590
|
-
id: "user",
|
|
591
|
-
title: "Usuário / IDE",
|
|
592
|
-
type: "cli",
|
|
593
|
-
x: 60,
|
|
594
|
-
y: 420,
|
|
595
|
-
path: "Cursor, Copilot, Claude, Gemini, Codex, Windsurf, Antigravity",
|
|
596
|
-
summary: "Inicia comandos OXE em linguagem natural ou slash commands.",
|
|
597
|
-
details: "A entrada do usuário chega por wrappers de IDE/CLI, mas o estado real continua em `.oxe/` e os workflows canônicos ficam em `oxe/workflows/`.",
|
|
598
|
-
produces: ["Pedidos de spec", "Pedidos de plano", "Execução", "Verificação"],
|
|
599
|
-
consumes: ["Status do ciclo", "Resultados de verify", "Dashboard"]
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
id: "cli",
|
|
603
|
-
title: "oxe-cc CLI",
|
|
604
|
-
type: "cli",
|
|
605
|
-
x: 310,
|
|
606
|
-
y: 420,
|
|
607
|
-
path: "bin/oxe-cc.js",
|
|
608
|
-
summary: "Instala, diagnostica, sincroniza, controla runtime e expõe comandos administrativos.",
|
|
609
|
-
details: "Ponto executável do pacote npm. Orquestra `install`, `doctor`, `status`, `update`, `runtime`, `dashboard`, `context` e gates de release.",
|
|
610
|
-
produces: ["Workflows instalados", "Manifests", "Relatórios", "Context packs"],
|
|
611
|
-
consumes: ["package.json", "bin/lib/*.cjs", "oxe/workflows/**", ".oxe/config.json"]
|
|
612
|
-
},
|
|
613
|
-
{
|
|
614
|
-
id: "canonical",
|
|
615
|
-
title: "Workflows canônicos",
|
|
616
|
-
type: "workflow",
|
|
617
|
-
x: 575,
|
|
618
|
-
y: 385,
|
|
619
|
-
path: "oxe/workflows/*.md",
|
|
620
|
-
summary: "Fonte primária de comportamento de `/oxe-*`.",
|
|
621
|
-
details: "Cada passo OXE deve seguir seu arquivo canônico sem atalhos. Os wrappers de runtime apontam para estes documentos.",
|
|
622
|
-
produces: ["Fluxo spec-plan-execute-verify", "Regras runtime-first", "Contratos por comando"],
|
|
623
|
-
consumes: ["References", "Templates", "Personas", "Contratos de raciocínio"]
|
|
624
|
-
},
|
|
625
|
-
{
|
|
626
|
-
id: "contracts",
|
|
627
|
-
title: "Contratos de raciocínio",
|
|
628
|
-
type: "workflow",
|
|
629
|
-
x: 575,
|
|
630
|
-
y: 570,
|
|
631
|
-
path: "oxe/workflows/references/workflow-runtime-contracts.json",
|
|
632
|
-
summary: "Mapeia cada workflow para modo, artefatos exigidos e contexto.",
|
|
633
|
-
details: "Define `discovery`, `planning`, `execution`, `review` e `status`, além de required/optional artifacts e context tiers por workflow.",
|
|
634
|
-
produces: ["Metadados cognitivos", "Context tiers", "Bloqueios formais"],
|
|
635
|
-
consumes: ["reasoning-*.md", "workflow metadata"]
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
id: "wrappers",
|
|
639
|
-
title: "Wrappers por runtime",
|
|
640
|
-
type: "integration",
|
|
641
|
-
x: 850,
|
|
642
|
-
y: 330,
|
|
643
|
-
path: "commands/oxe, .github/prompts, .cursor/commands, .claude/commands",
|
|
644
|
-
summary: "Projeções para IDEs e CLIs, derivadas dos workflows.",
|
|
645
|
-
details: "Permitem que cada ambiente invoque o mesmo comportamento sem duplicar a lógica canônica.",
|
|
646
|
-
produces: ["Slash commands", "Prompt files", "Instruções de agente"],
|
|
647
|
-
consumes: ["oxe/workflows/**", "metadata OXE"]
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
id: "templates",
|
|
651
|
-
title: "Templates de artefatos",
|
|
652
|
-
type: "artifact",
|
|
653
|
-
x: 850,
|
|
654
|
-
y: 545,
|
|
655
|
-
path: "oxe/templates/*.template.*",
|
|
656
|
-
summary: "Esqueleto dos arquivos persistidos em `.oxe/`.",
|
|
657
|
-
details: "Padroniza SPEC, PLAN, VERIFY, STATE, EXECUTION-RUNTIME, checkpoints, capabilities, swarm e release docs.",
|
|
658
|
-
produces: [".oxe/*.md", ".oxe/*.json", "Estrutura inicial de sessão"],
|
|
659
|
-
consumes: ["Workflows", "Config", "Sessão ativa"]
|
|
660
|
-
},
|
|
661
|
-
{
|
|
662
|
-
id: "config",
|
|
663
|
-
title: "Config e estado",
|
|
664
|
-
type: "artifact",
|
|
665
|
-
x: 1120,
|
|
666
|
-
y: 170,
|
|
667
|
-
path: ".oxe/config.json, .oxe/STATE.md",
|
|
668
|
-
summary: "Define perfil e cursor operacional do projeto.",
|
|
669
|
-
details: "`config.json` controla profile e defaults. `STATE.md` aponta sessão, fase, workstream e leitura de continuidade.",
|
|
670
|
-
produces: ["Perfil balanced/strict/fast/legacy", "Sessão ativa", "Próximo passo"],
|
|
671
|
-
consumes: ["Templates", "Comandos administrativos"]
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
id: "spec",
|
|
675
|
-
title: "SPEC / QUICK",
|
|
676
|
-
type: "artifact",
|
|
677
|
-
x: 1120,
|
|
678
|
-
y: 345,
|
|
679
|
-
path: ".oxe/SPEC.md, .oxe/QUICK.md",
|
|
680
|
-
summary: "Converte objetivo em requisitos, escopo e critérios.",
|
|
681
|
-
details: "`/oxe-spec` gera requisitos estruturados e roteiro. `/oxe-quick` cobre mudanças pequenas com menos cerimônia.",
|
|
682
|
-
produces: ["Requisitos R-ID", "Critérios de aceite", "Escopo aprovado"],
|
|
683
|
-
consumes: ["Discussão", "Pesquisa", "Codebase scan", "Visual inputs"]
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
id: "plan",
|
|
687
|
-
title: "PLAN e plan-agents",
|
|
688
|
-
type: "artifact",
|
|
689
|
-
x: 1120,
|
|
690
|
-
y: 525,
|
|
691
|
-
path: ".oxe/PLAN.md, .oxe/plan-agents.json",
|
|
692
|
-
summary: "Quebra requisitos em ondas, tarefas, validação e agentes.",
|
|
693
|
-
details: "`/oxe-plan` produz tarefas verificáveis. Com `--agents`, gera blueprints PDDA com role, persona, model_hint e ownership.",
|
|
694
|
-
produces: ["Ondas", "Implementation packs", "Blueprints de agentes"],
|
|
695
|
-
consumes: ["SPEC", "Context packs", "Personas", "Schemas"]
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
id: "execute",
|
|
699
|
-
title: "EXECUTION-RUNTIME",
|
|
700
|
-
type: "artifact",
|
|
701
|
-
x: 1120,
|
|
702
|
-
y: 710,
|
|
703
|
-
path: ".oxe/EXECUTION-RUNTIME.md, .oxe/ACTIVE-RUN.json",
|
|
704
|
-
summary: "Registra run, checkpoints, eventos e progresso de execução.",
|
|
705
|
-
details: "`/oxe-execute` é runtime-first quando disponível. O markdown vira projeção derivada do estado operacional.",
|
|
706
|
-
produces: ["Active run", "Checkpoints", "Eventos", "Mutations log"],
|
|
707
|
-
consumes: ["PLAN", "Runtime", "Agentes", "Evidence"]
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
id: "verify",
|
|
711
|
-
title: "VERIFY e gaps",
|
|
712
|
-
type: "artifact",
|
|
713
|
-
x: 1120,
|
|
714
|
-
y: 890,
|
|
715
|
-
path: ".oxe/VERIFY.md, .oxe/VALIDATION-GAPS.md",
|
|
716
|
-
summary: "Fecha critérios, riscos residuais, gaps e retro.",
|
|
717
|
-
details: "`/oxe-verify` valida implementação por camadas, podendo acionar gaps, security, UI review, PR review e retro automática.",
|
|
718
|
-
produces: ["Resultado de validação", "Risk ledger", "Gaps", "Lessons"],
|
|
719
|
-
consumes: ["SPEC", "PLAN", "Runtime verify", "Evidence store"]
|
|
720
|
-
},
|
|
721
|
-
{
|
|
722
|
-
id: "runtime",
|
|
723
|
-
title: "Runtime enterprise",
|
|
724
|
-
type: "runtime",
|
|
725
|
-
x: 1395,
|
|
726
|
-
y: 460,
|
|
727
|
-
path: "packages/runtime/src, lib/runtime",
|
|
728
|
-
summary: "ExecutionGraph, scheduler, gates, evidence, policy e promotion.",
|
|
729
|
-
details: "O runtime TypeScript compila para CJS em `lib/runtime` e executa operações robustas de run, verify, gates, recovery e promoção.",
|
|
730
|
-
produces: ["Compiled graph", "Run state", "Verification manifest", "Gates"],
|
|
731
|
-
consumes: ["PLAN", "Artifacts", "Policies", "Workspace strategies"]
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
id: "graph",
|
|
735
|
-
title: "Compiler e projection",
|
|
736
|
-
type: "runtime",
|
|
737
|
-
x: 1665,
|
|
738
|
-
y: 300,
|
|
739
|
-
path: "lib/runtime/compiler, lib/runtime/projection",
|
|
740
|
-
summary: "Transforma artefatos em grafo executável e projeções markdown.",
|
|
741
|
-
details: "O compiler estrutura o trabalho como grafo; projection mantém artefatos legíveis sem virar fonte paralela de verdade.",
|
|
742
|
-
produces: ["ExecutionGraph", "Projeções de artefato", "Estado legível"],
|
|
743
|
-
consumes: ["SPEC", "PLAN", "Workflow contracts"]
|
|
744
|
-
},
|
|
745
|
-
{
|
|
746
|
-
id: "scheduler",
|
|
747
|
-
title: "Scheduler multi-agente",
|
|
748
|
-
type: "runtime",
|
|
749
|
-
x: 1665,
|
|
750
|
-
y: 500,
|
|
751
|
-
path: "lib/runtime/scheduler",
|
|
752
|
-
summary: "Coordena agentes, ownership, handoffs e heartbeat.",
|
|
753
|
-
details: "Gerencia estratégias parallel, competitive e cooperative, além de journal, registry, roles e coordenação multi-agent.",
|
|
754
|
-
produces: ["Agent status", "Run journal", "Handoffs"],
|
|
755
|
-
consumes: ["plan-agents.json", "Personas", "Work items"]
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
id: "evidence",
|
|
759
|
-
title: "Evidence, gates e policy",
|
|
760
|
-
type: "runtime",
|
|
761
|
-
x: 1665,
|
|
762
|
-
y: 700,
|
|
763
|
-
path: "lib/runtime/evidence, gate, policy, audit",
|
|
764
|
-
summary: "Guarda evidências, aplica decisões e registra auditoria.",
|
|
765
|
-
details: "Sustenta `runtime verify`, risk ledger, policy packs, gate-manager e trilha auditável para decisões de promoção.",
|
|
766
|
-
produces: ["Evidence store", "Gate decisions", "Audit trail"],
|
|
767
|
-
consumes: ["Testes", "Work items", "Verification criteria"]
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
id: "agents",
|
|
771
|
-
title: "Personas e agentes OXE",
|
|
772
|
-
type: "agent",
|
|
773
|
-
x: 1395,
|
|
774
|
-
y: 745,
|
|
775
|
-
path: "oxe/personas, oxe/agents, .oxe/agents",
|
|
776
|
-
summary: "Especialistas de planejamento, execução, verificação, UI, DB e debug.",
|
|
777
|
-
details: "As 8 personas builtin e agentes OXE dão postura operacional específica para cada domínio da entrega.",
|
|
778
|
-
produces: ["Análises especializadas", "Execução por domínio", "Auditorias"],
|
|
779
|
-
consumes: ["PLAN", "Context packs", "Agent blueprints"]
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
id: "context",
|
|
783
|
-
title: "Context packs e memória",
|
|
784
|
-
type: "artifact",
|
|
785
|
-
x: 1395,
|
|
786
|
-
y: 180,
|
|
787
|
-
path: ".oxe/context, .oxe/codebase, .oxe/global, .oxe/memory",
|
|
788
|
-
summary: "Compacta conhecimento do projeto para leitura rápida e consistente.",
|
|
789
|
-
details: "Guarda mapas de codebase, summaries, lessons, observations e memória persistente entre sessões.",
|
|
790
|
-
produces: ["Packs por workflow", "Resumo de sessão", "Lessons"],
|
|
791
|
-
consumes: ["Scan", "Retro", "Distill", "Observações"]
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
id: "sdk",
|
|
795
|
-
title: "SDK programático",
|
|
796
|
-
type: "integration",
|
|
797
|
-
x: 1935,
|
|
798
|
-
y: 365,
|
|
799
|
-
path: "lib/sdk/index.cjs",
|
|
800
|
-
summary: "API para scripts, CI e integrações internas.",
|
|
801
|
-
details: "Expõe doctor, health, workflows, install, manifest, agents, verifyRun e bridges operacionais do runtime.",
|
|
802
|
-
produces: ["APIs estáveis", "Integrações CI", "Automação externa"],
|
|
803
|
-
consumes: ["bin/lib", "lib/runtime", "workflow metadata"]
|
|
804
|
-
},
|
|
805
|
-
{
|
|
806
|
-
id: "dashboard",
|
|
807
|
-
title: "Dashboard local",
|
|
808
|
-
type: "integration",
|
|
809
|
-
x: 1935,
|
|
810
|
-
y: 565,
|
|
811
|
-
path: "oxe-cc dashboard, .oxe/dashboard",
|
|
812
|
-
summary: "Visão web dos artefatos reais, gates, ondas e aprovação.",
|
|
813
|
-
details: "Lê os arquivos OXE reais e mostra ciclo principal, mapa de artefatos, active run, trace log, handoffs, evidências e promotion state.",
|
|
814
|
-
produces: ["Visão operacional", "Revisão de equipe", "Aprovação visual"],
|
|
815
|
-
consumes: [".oxe/STATE.md", ".oxe/PLAN.md", ".oxe/runs", ".oxe/VERIFY.md"]
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
id: "release",
|
|
819
|
-
title: "Release gates",
|
|
820
|
-
type: "release",
|
|
821
|
-
x: 1935,
|
|
822
|
-
y: 770,
|
|
823
|
-
path: "npm test, release:pack-check, doctor --release",
|
|
824
|
-
summary: "Impede publicação com drift ou artefatos inválidos.",
|
|
825
|
-
details: "O gate local exige runtime compilado, árvore canônica, contratos válidos, wrappers sincronizados e relatórios `.oxe/release/*.json`.",
|
|
826
|
-
produces: ["release-manifest.json", "runtime reports", "multi-agent reports"],
|
|
827
|
-
consumes: ["Test suite", "Package files", "Runtime build", "Workflows"]
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
id: "npm",
|
|
831
|
-
title: "Pacote npm oxe-cc",
|
|
832
|
-
type: "release",
|
|
833
|
-
x: 2180,
|
|
834
|
-
y: 585,
|
|
835
|
-
path: "package.json files[]",
|
|
836
|
-
summary: "Distribui CLI, SDK, workflows, assets, docs e integrações.",
|
|
837
|
-
details: "Empacota `bin`, `lib`, `oxe`, `assets`, `.cursor`, `.github`, `commands`, `docs`, runtime source e documentação.",
|
|
838
|
-
produces: ["npx oxe-cc@latest", "Instalação em projetos", "Atualizações"],
|
|
839
|
-
consumes: ["Release gates", "Manifest", "Package whitelist"]
|
|
840
|
-
}
|
|
841
|
-
];
|
|
842
|
-
|
|
843
|
-
const edges = [
|
|
844
|
-
["user", "cli", "invoca"],
|
|
845
|
-
["cli", "canonical", "resolve"],
|
|
846
|
-
["canonical", "contracts", "declara"],
|
|
847
|
-
["canonical", "wrappers", "projeta"],
|
|
848
|
-
["canonical", "templates", "materializa"],
|
|
849
|
-
["wrappers", "user", "expõe"],
|
|
850
|
-
["templates", "config", "cria"],
|
|
851
|
-
["templates", "spec", "cria"],
|
|
852
|
-
["templates", "plan", "cria"],
|
|
853
|
-
["templates", "execute", "cria"],
|
|
854
|
-
["templates", "verify", "cria"],
|
|
855
|
-
["config", "spec", "orienta"],
|
|
856
|
-
["spec", "plan", "alimenta"],
|
|
857
|
-
["plan", "execute", "direciona"],
|
|
858
|
-
["execute", "verify", "evidencia"],
|
|
859
|
-
["verify", "context", "retroalimenta"],
|
|
860
|
-
["context", "spec", "informa"],
|
|
861
|
-
["context", "plan", "informa"],
|
|
862
|
-
["context", "agents", "contextualiza"],
|
|
863
|
-
["plan", "runtime", "compila"],
|
|
864
|
-
["execute", "runtime", "controla"],
|
|
865
|
-
["runtime", "graph", "usa"],
|
|
866
|
-
["runtime", "scheduler", "usa"],
|
|
867
|
-
["runtime", "evidence", "usa"],
|
|
868
|
-
["agents", "scheduler", "executa"],
|
|
869
|
-
["scheduler", "execute", "atualiza"],
|
|
870
|
-
["evidence", "verify", "prova"],
|
|
871
|
-
["graph", "execute", "projeta"],
|
|
872
|
-
["runtime", "sdk", "reexporta"],
|
|
873
|
-
["runtime", "dashboard", "expõe"],
|
|
874
|
-
["verify", "release", "libera"],
|
|
875
|
-
["sdk", "release", "suporta"],
|
|
876
|
-
["release", "npm", "publica"],
|
|
877
|
-
["npm", "cli", "instala"]
|
|
878
|
-
];
|
|
879
|
-
|
|
880
|
-
const views = {
|
|
881
|
-
all: { label: "Mapa completo", nodes: nodes.map(n => n.id) },
|
|
882
|
-
cycle: { label: "Ciclo principal", nodes: ["user", "cli", "canonical", "templates", "config", "spec", "plan", "execute", "verify", "context"] },
|
|
883
|
-
runtime: { label: "Runtime-first", nodes: ["plan", "execute", "verify", "runtime", "graph", "scheduler", "evidence", "dashboard", "sdk"] },
|
|
884
|
-
agents: { label: "Multi-agente", nodes: ["plan", "agents", "scheduler", "execute", "evidence", "verify", "context"] },
|
|
885
|
-
install: { label: "Instalação IDE", nodes: ["user", "cli", "canonical", "contracts", "wrappers", "sdk", "npm"] },
|
|
886
|
-
release: { label: "Publicação", nodes: ["canonical", "contracts", "runtime", "evidence", "verify", "sdk", "release", "npm"] }
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
const canvas = document.getElementById("canvas");
|
|
890
|
-
const links = document.getElementById("links");
|
|
891
|
-
const workspace = document.getElementById("workspace");
|
|
892
|
-
const details = document.getElementById("details");
|
|
893
|
-
const filtersEl = document.getElementById("filters");
|
|
894
|
-
const legendEl = document.getElementById("legend");
|
|
895
|
-
const viewsEl = document.getElementById("views");
|
|
896
|
-
const searchEl = document.getElementById("search");
|
|
897
|
-
const zoomLabel = document.getElementById("zoomLabel");
|
|
898
|
-
|
|
899
|
-
const nodeMap = new Map(nodes.map(node => [node.id, node]));
|
|
900
|
-
const activeTypes = new Set(Object.keys(labels));
|
|
901
|
-
let selectedId = null;
|
|
902
|
-
let activeView = "all";
|
|
903
|
-
let query = "";
|
|
904
|
-
let scale = 0.72;
|
|
905
|
-
let pan = { x: 18, y: 38 };
|
|
906
|
-
let dragging = false;
|
|
907
|
-
let dragStart = { x: 0, y: 0 };
|
|
908
|
-
let panStart = { x: 0, y: 0 };
|
|
909
|
-
|
|
910
|
-
function renderFilters() {
|
|
911
|
-
filtersEl.innerHTML = "";
|
|
912
|
-
Object.entries(labels).forEach(([type, label]) => {
|
|
913
|
-
const count = nodes.filter(node => node.type === type).length;
|
|
914
|
-
const button = document.createElement("button");
|
|
915
|
-
button.className = "chip active";
|
|
916
|
-
button.dataset.type = type;
|
|
917
|
-
button.innerHTML = `<span><span class="dot" style="--dot:${colors[type]}"></span> ${label}</span><span class="count">${count}</span>`;
|
|
918
|
-
button.addEventListener("click", () => {
|
|
919
|
-
if (activeTypes.has(type)) {
|
|
920
|
-
activeTypes.delete(type);
|
|
921
|
-
button.classList.remove("active");
|
|
922
|
-
} else {
|
|
923
|
-
activeTypes.add(type);
|
|
924
|
-
button.classList.add("active");
|
|
925
|
-
}
|
|
926
|
-
updateVisibility();
|
|
927
|
-
});
|
|
928
|
-
filtersEl.appendChild(button);
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
function renderLegend() {
|
|
933
|
-
legendEl.innerHTML = "";
|
|
934
|
-
Object.entries(labels).forEach(([type, label]) => {
|
|
935
|
-
const item = document.createElement("div");
|
|
936
|
-
item.className = "legend-item";
|
|
937
|
-
item.innerHTML = `<span class="dot" style="--dot:${colors[type]}"></span><span>${label}</span>`;
|
|
938
|
-
legendEl.appendChild(item);
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
function renderViews() {
|
|
943
|
-
viewsEl.innerHTML = "";
|
|
944
|
-
Object.entries(views).forEach(([id, view]) => {
|
|
945
|
-
const button = document.createElement("button");
|
|
946
|
-
button.className = `view-btn${id === activeView ? " active" : ""}`;
|
|
947
|
-
button.dataset.view = id;
|
|
948
|
-
button.innerHTML = `<span>${view.label}</span><span class="count">${view.nodes.length}</span>`;
|
|
949
|
-
button.addEventListener("click", () => {
|
|
950
|
-
activeView = id;
|
|
951
|
-
document.querySelectorAll(".view-btn").forEach(btn => btn.classList.toggle("active", btn.dataset.view === id));
|
|
952
|
-
selectedId = null;
|
|
953
|
-
fitView(id);
|
|
954
|
-
updateVisibility();
|
|
955
|
-
});
|
|
956
|
-
viewsEl.appendChild(button);
|
|
957
|
-
});
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
function renderNodes() {
|
|
961
|
-
nodes.forEach(node => {
|
|
962
|
-
const el = document.createElement("article");
|
|
963
|
-
el.className = "node";
|
|
964
|
-
el.id = `node-${node.id}`;
|
|
965
|
-
el.dataset.id = node.id;
|
|
966
|
-
el.dataset.type = node.type;
|
|
967
|
-
el.style.left = `${node.x}px`;
|
|
968
|
-
el.style.top = `${node.y}px`;
|
|
969
|
-
el.style.setProperty("--accent", colors[node.type]);
|
|
970
|
-
el.innerHTML = `
|
|
971
|
-
<div class="node-head">
|
|
972
|
-
<span class="node-type">${labels[node.type]}</span>
|
|
973
|
-
<span class="port"></span>
|
|
974
|
-
</div>
|
|
975
|
-
<div class="node-body">
|
|
976
|
-
<div class="node-title">${node.title}</div>
|
|
977
|
-
<div class="node-summary">${node.summary}</div>
|
|
978
|
-
</div>
|
|
979
|
-
`;
|
|
980
|
-
el.addEventListener("click", event => {
|
|
981
|
-
event.stopPropagation();
|
|
982
|
-
selectedId = node.id;
|
|
983
|
-
updateDetails(node);
|
|
984
|
-
updateVisibility();
|
|
985
|
-
});
|
|
986
|
-
canvas.appendChild(el);
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
function renderEdges() {
|
|
991
|
-
const frag = document.createDocumentFragment();
|
|
992
|
-
edges.forEach(([from, to, label], index) => {
|
|
993
|
-
const a = nodeMap.get(from);
|
|
994
|
-
const b = nodeMap.get(to);
|
|
995
|
-
const x1 = a.x + 196;
|
|
996
|
-
const y1 = a.y + 44;
|
|
997
|
-
const x2 = b.x;
|
|
998
|
-
const y2 = b.y + 44;
|
|
999
|
-
const gap = Math.max(80, Math.abs(x2 - x1) * .42);
|
|
1000
|
-
const path = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
1001
|
-
path.setAttribute("d", `M ${x1} ${y1} C ${x1 + gap} ${y1}, ${x2 - gap} ${y2}, ${x2} ${y2}`);
|
|
1002
|
-
path.setAttribute("class", "edge");
|
|
1003
|
-
path.dataset.from = from;
|
|
1004
|
-
path.dataset.to = to;
|
|
1005
|
-
path.dataset.label = label;
|
|
1006
|
-
path.dataset.index = String(index);
|
|
1007
|
-
frag.appendChild(path);
|
|
1008
|
-
});
|
|
1009
|
-
links.appendChild(frag);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
function matchesQuery(node) {
|
|
1013
|
-
if (!query) return true;
|
|
1014
|
-
const haystack = `${node.title} ${node.type} ${node.path} ${node.summary} ${node.details}`.toLowerCase();
|
|
1015
|
-
return haystack.includes(query);
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
function nodeInView(node) {
|
|
1019
|
-
return activeView === "all" || views[activeView].nodes.includes(node.id);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
function connectedToSelected(id) {
|
|
1023
|
-
return edges.some(([from, to]) => (from === selectedId && to === id) || (to === selectedId && from === id));
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
function updateVisibility() {
|
|
1027
|
-
const visible = new Set();
|
|
1028
|
-
nodes.forEach(node => {
|
|
1029
|
-
const el = document.getElementById(`node-${node.id}`);
|
|
1030
|
-
const isVisible = activeTypes.has(node.type) && nodeInView(node) && matchesQuery(node);
|
|
1031
|
-
el.classList.toggle("hidden", !isVisible);
|
|
1032
|
-
if (isVisible) visible.add(node.id);
|
|
1033
|
-
|
|
1034
|
-
const shouldDim = selectedId && node.id !== selectedId && !connectedToSelected(node.id);
|
|
1035
|
-
el.classList.toggle("dim", Boolean(isVisible && shouldDim));
|
|
1036
|
-
el.classList.toggle("selected", node.id === selectedId);
|
|
1037
|
-
});
|
|
1038
|
-
|
|
1039
|
-
links.querySelectorAll(".edge").forEach(edge => {
|
|
1040
|
-
const from = edge.dataset.from;
|
|
1041
|
-
const to = edge.dataset.to;
|
|
1042
|
-
const edgeVisible = visible.has(from) && visible.has(to);
|
|
1043
|
-
edge.style.display = edgeVisible ? "block" : "none";
|
|
1044
|
-
const hot = selectedId && (from === selectedId || to === selectedId);
|
|
1045
|
-
edge.classList.toggle("hot", Boolean(hot));
|
|
1046
|
-
edge.classList.toggle("dim", Boolean(selectedId && !hot));
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
function updateDetails(node) {
|
|
1051
|
-
details.style.setProperty("--accent", colors[node.type]);
|
|
1052
|
-
const incoming = edges.filter(([, to]) => to === node.id).map(([from, , label]) => `${nodeMap.get(from).title} -> ${label}`);
|
|
1053
|
-
const outgoing = edges.filter(([from]) => from === node.id).map(([, to, label]) => `${label} -> ${nodeMap.get(to).title}`);
|
|
1054
|
-
details.innerHTML = `
|
|
1055
|
-
<h2>${node.title}</h2>
|
|
1056
|
-
<span class="detail-type"><span class="dot" style="--dot:${colors[node.type]}"></span>${labels[node.type]}</span>
|
|
1057
|
-
<p class="detail-copy">${node.details}</p>
|
|
1058
|
-
<code class="path">${node.path}</code>
|
|
1059
|
-
<div class="detail-group">
|
|
1060
|
-
<h3>Produz ou atualiza</h3>
|
|
1061
|
-
<ul class="detail-list">${node.produces.map(item => `<li>${item}</li>`).join("")}</ul>
|
|
1062
|
-
</div>
|
|
1063
|
-
<div class="detail-group">
|
|
1064
|
-
<h3>Consome ou depende</h3>
|
|
1065
|
-
<ul class="detail-list">${node.consumes.map(item => `<li>${item}</li>`).join("")}</ul>
|
|
1066
|
-
</div>
|
|
1067
|
-
<div class="detail-group">
|
|
1068
|
-
<h3>Entradas no mapa</h3>
|
|
1069
|
-
<ul class="detail-list">${(incoming.length ? incoming : ["Sem entrada direta nesta visão."]).map(item => `<li>${item}</li>`).join("")}</ul>
|
|
1070
|
-
</div>
|
|
1071
|
-
<div class="detail-group">
|
|
1072
|
-
<h3>Saídas no mapa</h3>
|
|
1073
|
-
<ul class="detail-list">${(outgoing.length ? outgoing : ["Sem saída direta nesta visão."]).map(item => `<li>${item}</li>`).join("")}</ul>
|
|
1074
|
-
</div>
|
|
1075
|
-
`;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
function applyTransform() {
|
|
1079
|
-
canvas.style.transform = `translate(${pan.x}px, ${pan.y}px) scale(${scale})`;
|
|
1080
|
-
zoomLabel.textContent = `${Math.round(scale * 100)}%`;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
function fitView(id) {
|
|
1084
|
-
const viewNodes = (id === "all" ? nodes : nodes.filter(node => views[id].nodes.includes(node.id)));
|
|
1085
|
-
const minX = Math.min(...viewNodes.map(node => node.x));
|
|
1086
|
-
const minY = Math.min(...viewNodes.map(node => node.y));
|
|
1087
|
-
const maxX = Math.max(...viewNodes.map(node => node.x + 196));
|
|
1088
|
-
const maxY = Math.max(...viewNodes.map(node => node.y + 110));
|
|
1089
|
-
const width = maxX - minX;
|
|
1090
|
-
const height = maxY - minY;
|
|
1091
|
-
const scaleX = (workspace.clientWidth - 80) / width;
|
|
1092
|
-
const scaleY = (workspace.clientHeight - 90) / height;
|
|
1093
|
-
scale = Math.min(.92, Math.max(.42, Math.min(scaleX, scaleY)));
|
|
1094
|
-
pan = {
|
|
1095
|
-
x: Math.max(12, (workspace.clientWidth - width * scale) / 2 - minX * scale),
|
|
1096
|
-
y: Math.max(24, (workspace.clientHeight - height * scale) / 2 - minY * scale)
|
|
1097
|
-
};
|
|
1098
|
-
applyTransform();
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
searchEl.addEventListener("input", event => {
|
|
1102
|
-
query = event.target.value.trim().toLowerCase();
|
|
1103
|
-
selectedId = null;
|
|
1104
|
-
updateVisibility();
|
|
1105
|
-
});
|
|
1106
|
-
|
|
1107
|
-
document.getElementById("zoomIn").addEventListener("click", () => {
|
|
1108
|
-
scale = Math.min(1.35, scale + .1);
|
|
1109
|
-
applyTransform();
|
|
1110
|
-
});
|
|
1111
|
-
|
|
1112
|
-
document.getElementById("zoomOut").addEventListener("click", () => {
|
|
1113
|
-
scale = Math.max(.35, scale - .1);
|
|
1114
|
-
applyTransform();
|
|
1115
|
-
});
|
|
1116
|
-
|
|
1117
|
-
document.getElementById("reset").addEventListener("click", () => {
|
|
1118
|
-
activeView = "all";
|
|
1119
|
-
selectedId = null;
|
|
1120
|
-
document.querySelectorAll(".view-btn").forEach(btn => btn.classList.toggle("active", btn.dataset.view === "all"));
|
|
1121
|
-
fitView("all");
|
|
1122
|
-
updateVisibility();
|
|
1123
|
-
});
|
|
1124
|
-
|
|
1125
|
-
workspace.addEventListener("pointerdown", event => {
|
|
1126
|
-
if (event.target.closest(".node") || event.target.closest(".toolbar")) return;
|
|
1127
|
-
dragging = true;
|
|
1128
|
-
dragStart = { x: event.clientX, y: event.clientY };
|
|
1129
|
-
panStart = { ...pan };
|
|
1130
|
-
workspace.setPointerCapture(event.pointerId);
|
|
1131
|
-
});
|
|
1132
|
-
|
|
1133
|
-
workspace.addEventListener("pointermove", event => {
|
|
1134
|
-
if (!dragging) return;
|
|
1135
|
-
pan = {
|
|
1136
|
-
x: panStart.x + event.clientX - dragStart.x,
|
|
1137
|
-
y: panStart.y + event.clientY - dragStart.y
|
|
1138
|
-
};
|
|
1139
|
-
applyTransform();
|
|
1140
|
-
});
|
|
1141
|
-
|
|
1142
|
-
workspace.addEventListener("pointerup", event => {
|
|
1143
|
-
dragging = false;
|
|
1144
|
-
if (workspace.hasPointerCapture(event.pointerId)) workspace.releasePointerCapture(event.pointerId);
|
|
1145
|
-
});
|
|
1146
|
-
|
|
1147
|
-
workspace.addEventListener("wheel", event => {
|
|
1148
|
-
event.preventDefault();
|
|
1149
|
-
const direction = event.deltaY > 0 ? -1 : 1;
|
|
1150
|
-
const nextScale = Math.min(1.35, Math.max(.35, scale + direction * .06));
|
|
1151
|
-
const rect = workspace.getBoundingClientRect();
|
|
1152
|
-
const mx = event.clientX - rect.left;
|
|
1153
|
-
const my = event.clientY - rect.top;
|
|
1154
|
-
const worldX = (mx - pan.x) / scale;
|
|
1155
|
-
const worldY = (my - pan.y) / scale;
|
|
1156
|
-
scale = nextScale;
|
|
1157
|
-
pan = { x: mx - worldX * scale, y: my - worldY * scale };
|
|
1158
|
-
applyTransform();
|
|
1159
|
-
}, { passive: false });
|
|
1160
|
-
|
|
1161
|
-
window.addEventListener("resize", () => fitView(activeView));
|
|
1162
|
-
|
|
1163
|
-
renderFilters();
|
|
1164
|
-
renderLegend();
|
|
1165
|
-
renderViews();
|
|
1166
|
-
renderEdges();
|
|
1167
|
-
renderNodes();
|
|
1168
|
-
fitView("all");
|
|
1169
|
-
updateVisibility();
|
|
1170
|
-
</script>
|
|
1171
|
-
</body>
|
|
1172
|
-
</html>
|