agentera 3.0.0-dev.5 → 3.0.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/bundle/extract-corpus-parity.json +23 -0
- package/bundle/references/adapters/cursor.md +10 -9
- package/bundle/references/adapters/opencode.md +26 -26
- package/bundle/references/adapters/package-registry.yaml +0 -1
- package/bundle/references/adapters/package-surface-characterization.md +1 -2
- package/bundle/references/adapters/runtime-adapter-characterization.md +1 -1
- package/bundle/references/adapters/runtime-adapter-registry.yaml +16 -10
- package/bundle/references/adapters/runtime-feature-parity.md +2 -2
- package/bundle/references/analysis/benchmark.md +1 -1
- package/bundle/references/analysis/startup-measurement-contract.yaml +18 -18
- package/bundle/references/artifacts/artifact-registry-interface-model.yaml +4 -3
- package/bundle/references/cli/agent-ready-state-contract.yaml +6 -6
- package/bundle/references/cli/app-lifecycle-vocabulary.yaml +4 -4
- package/bundle/references/cli/audience-namespace-cli-migration.yaml +40 -26
- package/bundle/references/cli/bundle-skill-vocabulary.yaml +1 -29
- package/bundle/references/cli/capability-tool-classification.yaml +12 -12
- package/bundle/references/cli/coexistence-probe.yaml +13 -0
- package/bundle/references/cli/parity-expected-actual-template.md +30 -0
- package/bundle/references/cli/routing-execution-vocabulary.yaml +6 -6
- package/bundle/references/cli/routing-model.md +96 -0
- package/bundle/references/cli/single-name-protocol.yaml +42 -0
- package/bundle/references/cli/trigger-schema-enrichment.md +136 -0
- package/bundle/references/cli/update-channels.yaml +16 -0
- package/bundle/references/cli/upgrade-repair-wording.md +45 -0
- package/bundle/references/cli/v3-handoff-manifest.schema.yaml +98 -0
- package/bundle/references/cli/vocabulary-index.yaml +17 -12
- package/bundle/references/cli/vocabulary.md +316 -309
- package/bundle/references/meta/documentation-inventory.md +9 -3
- package/bundle/registry.json +13 -13
- package/bundle/skills/agentera/.claude-plugin/plugin.json +13 -13
- package/bundle/skills/agentera/SKILL.md +99 -415
- package/bundle/skills/agentera/agents/audit.toml +6 -0
- package/bundle/skills/agentera/agents/build.toml +6 -0
- package/bundle/skills/agentera/agents/design.toml +6 -0
- package/bundle/skills/agentera/agents/{planera.toml → discuss.toml} +3 -3
- package/bundle/skills/agentera/agents/{resonera.toml → document.toml} +3 -3
- package/bundle/skills/agentera/agents/{optimera.toml → optimize.toml} +2 -2
- package/bundle/skills/agentera/agents/orchestrate.toml +6 -0
- package/bundle/skills/agentera/agents/plan.toml +6 -0
- package/bundle/skills/agentera/agents/profile.toml +6 -0
- package/bundle/skills/agentera/agents/research.toml +6 -0
- package/bundle/skills/agentera/agents/status.toml +6 -0
- package/bundle/skills/agentera/agents/vision.toml +6 -0
- package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/artifacts.yaml +10 -10
- package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/triggers.yaml +15 -6
- package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/validation.yaml +9 -9
- package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/artifacts.yaml +11 -11
- package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/triggers.yaml +13 -3
- package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/validation.yaml +7 -7
- package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/artifacts.yaml +6 -6
- package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/triggers.yaml +15 -3
- package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/validation.yaml +5 -5
- package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/artifacts.yaml +6 -6
- package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/triggers.yaml +11 -3
- package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/validation.yaml +4 -4
- package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/artifacts.yaml +10 -10
- package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/triggers.yaml +14 -3
- package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/validation.yaml +8 -8
- package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/artifacts.yaml +8 -8
- package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/triggers.yaml +11 -3
- package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/validation.yaml +7 -7
- package/bundle/skills/agentera/capabilities/{orkestrera → orchestrate}/schemas/artifacts.yaml +10 -10
- package/bundle/skills/agentera/capabilities/{orkestrera → orchestrate}/schemas/triggers.yaml +16 -3
- package/bundle/skills/agentera/capabilities/{orkestrera → orchestrate}/schemas/validation.yaml +27 -27
- package/bundle/skills/agentera/capabilities/{planera → plan}/schemas/artifacts.yaml +8 -8
- package/bundle/skills/agentera/capabilities/{planera → plan}/schemas/exit.yaml +2 -2
- package/bundle/skills/agentera/capabilities/{planera → plan}/schemas/triggers.yaml +15 -3
- package/bundle/skills/agentera/capabilities/{planera → plan}/schemas/validation.yaml +3 -3
- package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/artifacts.yaml +2 -2
- package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/exit.yaml +2 -1
- package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/triggers.yaml +7 -3
- package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/validation.yaml +2 -2
- package/bundle/skills/agentera/capabilities/{inspirera → research}/schemas/artifacts.yaml +5 -5
- package/bundle/skills/agentera/capabilities/{inspirera → research}/schemas/triggers.yaml +9 -3
- package/bundle/skills/agentera/capabilities/{inspirera → research}/schemas/validation.yaml +2 -2
- package/bundle/skills/agentera/capabilities/{hej → status}/schemas/artifacts.yaml +14 -11
- package/bundle/skills/agentera/capabilities/{hej → status}/schemas/triggers.yaml +10 -4
- package/bundle/skills/agentera/capabilities/{hej → status}/schemas/validation.yaml +5 -5
- package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/artifacts.yaml +8 -8
- package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/triggers.yaml +17 -3
- package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/validation.yaml +7 -7
- package/bundle/skills/agentera/capability_schema_contract.yaml +178 -34
- package/bundle/skills/agentera/protocol.yaml +29 -29
- package/bundle/skills/agentera/references/contract.md +328 -319
- package/bundle/skills/agentera/schemas/artifacts/changelog.yaml +4 -4
- package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +9 -9
- package/bundle/skills/agentera/schemas/artifacts/design.yaml +4 -4
- package/bundle/skills/agentera/schemas/artifacts/docs.yaml +8 -7
- package/bundle/skills/agentera/schemas/artifacts/experiments.yaml +5 -5
- package/bundle/skills/agentera/schemas/artifacts/health.yaml +5 -5
- package/bundle/skills/agentera/schemas/artifacts/objective.yaml +4 -4
- package/bundle/skills/agentera/schemas/artifacts/plan.yaml +5 -5
- package/bundle/skills/agentera/schemas/artifacts/progress.yaml +5 -5
- package/bundle/skills/agentera/schemas/artifacts/todo.yaml +40 -35
- package/bundle/skills/agentera/schemas/artifacts/vision.yaml +3 -3
- package/dist/analytics/extractCorpus/cli.js +149 -0
- package/dist/analytics/extractCorpus/cli.js.map +1 -0
- package/dist/analytics/extractCorpus/copilotSessions.js +273 -0
- package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -0
- package/dist/analytics/extractCorpus/core.js +364 -0
- package/dist/analytics/extractCorpus/core.js.map +1 -0
- package/dist/analytics/extractCorpus/corpus.js +145 -0
- package/dist/analytics/extractCorpus/corpus.js.map +1 -0
- package/dist/analytics/extractCorpus/coverageAudit.js +261 -0
- package/dist/analytics/extractCorpus/coverageAudit.js.map +1 -0
- package/dist/analytics/extractCorpus/cursorSessions.js +423 -0
- package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -0
- package/dist/analytics/extractCorpus/extractCorpusParity.js +105 -0
- package/dist/analytics/extractCorpus/extractCorpusParity.js.map +1 -0
- package/dist/analytics/extractCorpus/filesystemSources.js +122 -0
- package/dist/analytics/extractCorpus/filesystemSources.js.map +1 -0
- package/dist/analytics/extractCorpus/index.js +12 -0
- package/dist/analytics/extractCorpus/index.js.map +1 -0
- package/dist/analytics/extractCorpus/jsonlSessions.js +185 -0
- package/dist/analytics/extractCorpus/jsonlSessions.js.map +1 -0
- package/dist/analytics/extractCorpus/sqliteCaps.js +44 -0
- package/dist/analytics/extractCorpus/sqliteCaps.js.map +1 -0
- package/dist/analytics/extractCorpus/sqliteSessions.js +368 -0
- package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -0
- package/dist/analytics/extractCorpus.js +2 -1790
- package/dist/analytics/extractCorpus.js.map +1 -1
- package/dist/analytics/usageStats.js +20 -20
- package/dist/analytics/usageStats.js.map +1 -1
- package/dist/capabilities/audit/instructions.js +6 -0
- package/dist/capabilities/audit/instructions.js.map +1 -0
- package/dist/capabilities/build/instructions.js +6 -0
- package/dist/capabilities/build/instructions.js.map +1 -0
- package/dist/capabilities/design/instructions.js +5 -0
- package/dist/capabilities/design/instructions.js.map +1 -0
- package/dist/capabilities/discuss/instructions.js +6 -0
- package/dist/capabilities/discuss/instructions.js.map +1 -0
- package/dist/capabilities/document/instructions.js +6 -0
- package/dist/capabilities/document/instructions.js.map +1 -0
- package/dist/capabilities/index.js +24 -24
- package/dist/capabilities/index.js.map +1 -1
- package/dist/capabilities/inspirera/instructions.js +1 -1
- package/dist/capabilities/inspirera/instructions.js.map +1 -1
- package/dist/capabilities/optimize/instructions.js +6 -0
- package/dist/capabilities/optimize/instructions.js.map +1 -0
- package/dist/capabilities/orchestrate/instructions.js +6 -0
- package/dist/capabilities/orchestrate/instructions.js.map +1 -0
- package/dist/capabilities/plan/instructions.js +6 -0
- package/dist/capabilities/plan/instructions.js.map +1 -0
- package/dist/capabilities/planera/instructions.js +1 -1
- package/dist/capabilities/planera/instructions.js.map +1 -1
- package/dist/capabilities/profile/instructions.js +6 -0
- package/dist/capabilities/profile/instructions.js.map +1 -0
- package/dist/capabilities/profilera/instructions.js +1 -1
- package/dist/capabilities/profilera/instructions.js.map +1 -1
- package/dist/capabilities/realisera/instructions.js +1 -1
- package/dist/capabilities/realisera/instructions.js.map +1 -1
- package/dist/capabilities/research/instructions.js +6 -0
- package/dist/capabilities/research/instructions.js.map +1 -0
- package/dist/capabilities/resonera/instructions.js +1 -1
- package/dist/capabilities/resonera/instructions.js.map +1 -1
- package/dist/capabilities/status/instructions.js +6 -0
- package/dist/capabilities/status/instructions.js.map +1 -0
- package/dist/capabilities/vision/instructions.js +6 -0
- package/dist/capabilities/vision/instructions.js.map +1 -0
- package/dist/capabilities/visionera/instructions.js +1 -1
- package/dist/capabilities/visionera/instructions.js.map +1 -1
- package/dist/capabilities/visualisera/instructions.js +3 -4
- package/dist/capabilities/visualisera/instructions.js.map +1 -1
- package/dist/cli/appContext.js +16 -17
- package/dist/cli/appContext.js.map +1 -1
- package/dist/cli/capabilityContext/benchmark.js +564 -0
- package/dist/cli/capabilityContext/benchmark.js.map +1 -0
- package/dist/cli/capabilityContext/bespoke.js +36 -0
- package/dist/cli/capabilityContext/bespoke.js.map +1 -0
- package/dist/cli/capabilityContext/build.js +177 -0
- package/dist/cli/capabilityContext/build.js.map +1 -0
- package/dist/cli/capabilityContext/closeout.js +230 -0
- package/dist/cli/capabilityContext/closeout.js.map +1 -0
- package/dist/cli/capabilityContext/contract.js +188 -0
- package/dist/cli/capabilityContext/contract.js.map +1 -0
- package/dist/cli/capabilityContext/evidence.js +456 -0
- package/dist/cli/capabilityContext/evidence.js.map +1 -0
- package/dist/cli/capabilityContext/index.js +4 -0
- package/dist/cli/capabilityContext/index.js.map +1 -0
- package/dist/cli/capabilityContext/orchestration.js +107 -0
- package/dist/cli/capabilityContext/orchestration.js.map +1 -0
- package/dist/cli/capabilityContext/planState.js +271 -0
- package/dist/cli/capabilityContext/planState.js.map +1 -0
- package/dist/cli/capabilityContext/progress.js +103 -0
- package/dist/cli/capabilityContext/progress.js.map +1 -0
- package/dist/cli/capabilityContext/realisera.js +174 -0
- package/dist/cli/capabilityContext/realisera.js.map +1 -0
- package/dist/cli/capabilityContext/shared.js +94 -0
- package/dist/cli/capabilityContext/shared.js.map +1 -0
- package/dist/cli/capabilityContext/slim.js +108 -0
- package/dist/cli/capabilityContext/slim.js.map +1 -0
- package/dist/cli/capabilityContext/startup.js +213 -0
- package/dist/cli/capabilityContext/startup.js.map +1 -0
- package/dist/cli/capabilityContext/types.js +40 -0
- package/dist/cli/capabilityContext/types.js.map +1 -0
- package/dist/cli/capabilityContext.js +1 -2486
- package/dist/cli/capabilityContext.js.map +1 -1
- package/dist/cli/commands/appHome.js +23 -0
- package/dist/cli/commands/appHome.js.map +1 -0
- package/dist/cli/commands/backfill.js +84 -0
- package/dist/cli/commands/backfill.js.map +1 -0
- package/dist/cli/commands/capability.js +2 -2
- package/dist/cli/commands/capability.js.map +1 -1
- package/dist/cli/commands/compact.js +1 -1
- package/dist/cli/commands/compact.js.map +1 -1
- package/dist/cli/commands/doctor.js +17 -98
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/lint.js +4 -36
- package/dist/cli/commands/lint.js.map +1 -1
- package/dist/cli/commands/prime/bundleStatus.js +140 -0
- package/dist/cli/commands/prime/bundleStatus.js.map +1 -0
- package/dist/cli/commands/prime/collectOrientationState.js +156 -0
- package/dist/cli/commands/prime/collectOrientationState.js.map +1 -0
- package/dist/cli/commands/prime/orientationOutput.js +210 -0
- package/dist/cli/commands/prime/orientationOutput.js.map +1 -0
- package/dist/cli/commands/prime/routeOutput.js +50 -0
- package/dist/cli/commands/prime/routeOutput.js.map +1 -0
- package/dist/cli/commands/prime/types.js +2 -0
- package/dist/cli/commands/prime/types.js.map +1 -0
- package/dist/cli/commands/prime/v1Migration.js +39 -0
- package/dist/cli/commands/prime/v1Migration.js.map +1 -0
- package/dist/cli/commands/prime.js +11 -554
- package/dist/cli/commands/prime.js.map +1 -1
- package/dist/cli/commands/query.js +5 -2
- package/dist/cli/commands/query.js.map +1 -1
- package/dist/cli/commands/report.js +27 -10
- package/dist/cli/commands/report.js.map +1 -1
- package/dist/cli/commands/schema.js +24 -20
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/state/decisions.js +403 -0
- package/dist/cli/commands/state/decisions.js.map +1 -0
- package/dist/cli/commands/state/docs.js +97 -0
- package/dist/cli/commands/state/docs.js.map +1 -0
- package/dist/cli/commands/state/experiments.js +68 -0
- package/dist/cli/commands/state/experiments.js.map +1 -0
- package/dist/cli/commands/state/health.js +116 -0
- package/dist/cli/commands/state/health.js.map +1 -0
- package/dist/cli/commands/state/index.js +51 -0
- package/dist/cli/commands/state/index.js.map +1 -0
- package/dist/cli/commands/state/objective.js +69 -0
- package/dist/cli/commands/state/objective.js.map +1 -0
- package/dist/cli/commands/state/plan.js +173 -0
- package/dist/cli/commands/state/plan.js.map +1 -0
- package/dist/cli/commands/state/progress.js +47 -0
- package/dist/cli/commands/state/progress.js.map +1 -0
- package/dist/cli/commands/state/shared.js +15 -0
- package/dist/cli/commands/state/shared.js.map +1 -0
- package/dist/cli/commands/state/todo.js +121 -0
- package/dist/cli/commands/state/todo.js.map +1 -0
- package/dist/cli/commands/state.js +7 -7
- package/dist/cli/commands/state.js.map +1 -1
- package/dist/cli/commands/validate.js +50 -100
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/commands/verify.js +1 -1
- package/dist/cli/commands/verify.js.map +1 -1
- package/dist/cli/contracts/bundleStatus.js +2 -0
- package/dist/cli/contracts/bundleStatus.js.map +1 -0
- package/dist/cli/contracts/orientationState.js +2 -0
- package/dist/cli/contracts/orientationState.js.map +1 -0
- package/dist/cli/dispatch/argvParser.js +33 -0
- package/dist/cli/dispatch/argvParser.js.map +1 -0
- package/dist/cli/dispatch/check.js +328 -0
- package/dist/cli/dispatch/check.js.map +1 -0
- package/dist/cli/dispatch/commands.js +27 -0
- package/dist/cli/dispatch/commands.js.map +1 -0
- package/dist/cli/dispatch/index.js +182 -0
- package/dist/cli/dispatch/index.js.map +1 -0
- package/dist/cli/dispatch/lifecycle.js +597 -0
- package/dist/cli/dispatch/lifecycle.js.map +1 -0
- package/dist/cli/dispatch/prime.js +104 -0
- package/dist/cli/dispatch/prime.js.map +1 -0
- package/dist/cli/dispatch/shared.js +64 -0
- package/dist/cli/dispatch/shared.js.map +1 -0
- package/dist/cli/dispatch/state.js +144 -0
- package/dist/cli/dispatch/state.js.map +1 -0
- package/dist/cli/dispatch.js +1 -1293
- package/dist/cli/dispatch.js.map +1 -1
- package/dist/cli/help.js +41 -8
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/orientation/attention.js +61 -0
- package/dist/cli/orientation/attention.js.map +1 -0
- package/dist/cli/orientation/corpusCoverage.js +71 -0
- package/dist/cli/orientation/corpusCoverage.js.map +1 -0
- package/dist/cli/orientation.js +129 -78
- package/dist/cli/orientation.js.map +1 -1
- package/dist/cli/prime-blob.js +1 -1
- package/dist/cli/startupCompletenessContract.js +56 -0
- package/dist/cli/startupCompletenessContract.js.map +1 -0
- package/dist/cli/stateQuery.js +9 -2
- package/dist/cli/stateQuery.js.map +1 -1
- package/dist/cli/todoSeverity.js +19 -0
- package/dist/cli/todoSeverity.js.map +1 -0
- package/dist/core/envPaths.js +21 -0
- package/dist/core/envPaths.js.map +1 -0
- package/dist/core/git.js +43 -0
- package/dist/core/git.js.map +1 -0
- package/dist/core/jsonValue.js +6 -0
- package/dist/core/jsonValue.js.map +1 -0
- package/dist/core/pyjson.js +67 -2
- package/dist/core/pyjson.js.map +1 -1
- package/dist/eval/evalSkills.js +17 -12
- package/dist/eval/evalSkills.js.map +1 -1
- package/dist/eval/semanticEval.js +43 -19
- package/dist/eval/semanticEval.js.map +1 -1
- package/dist/eval/semanticFixtures.js +16 -4
- package/dist/eval/semanticFixtures.js.map +1 -1
- package/dist/hooks/common.js +8 -23
- package/dist/hooks/common.js.map +1 -1
- package/dist/hooks/compaction/apply.js +269 -0
- package/dist/hooks/compaction/apply.js.map +1 -0
- package/dist/hooks/compaction/dryRun.js +183 -0
- package/dist/hooks/compaction/dryRun.js.map +1 -0
- package/dist/hooks/compaction/index.js +23 -0
- package/dist/hooks/compaction/index.js.map +1 -0
- package/dist/hooks/compaction/parse.js +258 -0
- package/dist/hooks/compaction/parse.js.map +1 -0
- package/dist/hooks/compaction/retention.js +199 -0
- package/dist/hooks/compaction/retention.js.map +1 -0
- package/dist/hooks/compaction/status.js +241 -0
- package/dist/hooks/compaction/status.js.map +1 -0
- package/dist/hooks/compaction/todoResolved.js +137 -0
- package/dist/hooks/compaction/todoResolved.js.map +1 -0
- package/dist/hooks/compaction/types.js +6 -0
- package/dist/hooks/compaction/types.js.map +1 -0
- package/dist/hooks/compaction.js +20 -20
- package/dist/hooks/compaction.js.map +1 -1
- package/dist/hooks/cursorPreToolUse.js +1 -1
- package/dist/hooks/cursorPreToolUse.js.map +1 -1
- package/dist/hooks/cursorSessionStart.js +10 -2
- package/dist/hooks/cursorSessionStart.js.map +1 -1
- package/dist/hooks/sessionStart.js +18 -11
- package/dist/hooks/sessionStart.js.map +1 -1
- package/dist/hooks/sessionStop.js +6 -12
- package/dist/hooks/sessionStop.js.map +1 -1
- package/dist/hooks/todoLayout.js +177 -0
- package/dist/hooks/todoLayout.js.map +1 -0
- package/dist/hooks/validateArtifact/agentFacing.js +10 -0
- package/dist/hooks/validateArtifact/agentFacing.js.map +1 -0
- package/dist/hooks/validateArtifact/index.js +151 -0
- package/dist/hooks/validateArtifact/index.js.map +1 -0
- package/dist/hooks/validateArtifact/markdown.js +146 -0
- package/dist/hooks/validateArtifact/markdown.js.map +1 -0
- package/dist/hooks/validateArtifact/runtime.js +86 -0
- package/dist/hooks/validateArtifact/runtime.js.map +1 -0
- package/dist/hooks/validateArtifact/schema.js +459 -0
- package/dist/hooks/validateArtifact/schema.js.map +1 -0
- package/dist/hooks/validateArtifact/traversal.js +106 -0
- package/dist/hooks/validateArtifact/traversal.js.map +1 -0
- package/dist/hooks/validateArtifact/violations.js +105 -0
- package/dist/hooks/validateArtifact/violations.js.map +1 -0
- package/dist/hooks/validateArtifact.js +29 -40
- package/dist/hooks/validateArtifact.js.map +1 -1
- package/dist/migrate/v2HandoffManifest.js +447 -0
- package/dist/migrate/v2HandoffManifest.js.map +1 -0
- package/dist/registries/artifactProtocolIds.js +77 -0
- package/dist/registries/artifactProtocolIds.js.map +1 -0
- package/dist/registries/artifactRegistry.js +23 -9
- package/dist/registries/artifactRegistry.js.map +1 -1
- package/dist/registries/capabilityContract.js +144 -1
- package/dist/registries/capabilityContract.js.map +1 -1
- package/dist/registries/evaluatorHandoffContract.js +2 -2
- package/dist/registries/evaluatorHandoffContract.js.map +1 -1
- package/dist/registries/packageRegistry.js +4 -3
- package/dist/registries/packageRegistry.js.map +1 -1
- package/dist/registries/runtimeAdapterRegistry.js +5 -4
- package/dist/registries/runtimeAdapterRegistry.js.map +1 -1
- package/dist/registries/triggerLoader.js +211 -0
- package/dist/registries/triggerLoader.js.map +1 -0
- package/dist/release/releaseMetadata.js +235 -0
- package/dist/release/releaseMetadata.js.map +1 -0
- package/dist/routing/index.js +2 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/routing/routeEngine.js +189 -0
- package/dist/routing/routeEngine.js.map +1 -0
- package/dist/setup/codex/agents.js +96 -0
- package/dist/setup/codex/agents.js.map +1 -0
- package/dist/setup/codex/cli.js +161 -0
- package/dist/setup/codex/cli.js.map +1 -0
- package/dist/setup/codex/configToml.js +639 -0
- package/dist/setup/codex/configToml.js.map +1 -0
- package/dist/setup/codex/constants.js +29 -0
- package/dist/setup/codex/constants.js.map +1 -0
- package/dist/setup/codex/installRoot.js +64 -0
- package/dist/setup/codex/installRoot.js.map +1 -0
- package/dist/setup/codex/state.js +270 -0
- package/dist/setup/codex/state.js.map +1 -0
- package/dist/setup/codex.js +11 -1196
- package/dist/setup/codex.js.map +1 -1
- package/dist/setup/cursor.js +6 -4
- package/dist/setup/cursor.js.map +1 -1
- package/dist/setup/cursorSurfaces.js +67 -0
- package/dist/setup/cursorSurfaces.js.map +1 -0
- package/dist/setup/doctor/core.js +300 -0
- package/dist/setup/doctor/core.js.map +1 -0
- package/dist/setup/doctor/diagnostics.js +240 -0
- package/dist/setup/doctor/diagnostics.js.map +1 -0
- package/dist/setup/doctor/opencode.js +313 -0
- package/dist/setup/doctor/opencode.js.map +1 -0
- package/dist/setup/doctor/report.js +425 -0
- package/dist/setup/doctor/report.js.map +1 -0
- package/dist/setup/doctor.js +9 -1296
- package/dist/setup/doctor.js.map +1 -1
- package/dist/setup/opencode.js +13 -0
- package/dist/setup/opencode.js.map +1 -0
- package/dist/setup/smokeChecks.js +11 -11
- package/dist/setup/smokeChecks.js.map +1 -1
- package/dist/state/installRoot.js +49 -18
- package/dist/state/installRoot.js.map +1 -1
- package/dist/state/progressCommit.js +289 -0
- package/dist/state/progressCommit.js.map +1 -0
- package/dist/state/startupAnalysis/benchmark.js +371 -0
- package/dist/state/startupAnalysis/benchmark.js.map +1 -0
- package/dist/state/startupAnalysis/contract.js +126 -0
- package/dist/state/startupAnalysis/contract.js.map +1 -0
- package/dist/state/startupAnalysis/helpers.js +287 -0
- package/dist/state/startupAnalysis/helpers.js.map +1 -0
- package/dist/state/startupAnalysis/index.js +7 -0
- package/dist/state/startupAnalysis/index.js.map +1 -0
- package/dist/state/startupAnalysis/metrics.js +341 -0
- package/dist/state/startupAnalysis/metrics.js.map +1 -0
- package/dist/state/startupAnalysis/records.js +199 -0
- package/dist/state/startupAnalysis/records.js.map +1 -0
- package/dist/state/startupAnalysis/report.js +112 -0
- package/dist/state/startupAnalysis/report.js.map +1 -0
- package/dist/state/startupAnalysis/threshold.js +500 -0
- package/dist/state/startupAnalysis/threshold.js.map +1 -0
- package/dist/state/startupAnalysis.js +2 -1952
- package/dist/state/startupAnalysis.js.map +1 -1
- package/dist/upgrade/appContentRefresh.js +342 -0
- package/dist/upgrade/appContentRefresh.js.map +1 -0
- package/dist/upgrade/appModel.js +8 -6
- package/dist/upgrade/appModel.js.map +1 -1
- package/dist/upgrade/bundleEvidence.js +34 -0
- package/dist/upgrade/bundleEvidence.js.map +1 -0
- package/dist/upgrade/channels.js +11 -4
- package/dist/upgrade/channels.js.map +1 -1
- package/dist/upgrade/cliProbe.js +22 -0
- package/dist/upgrade/cliProbe.js.map +1 -0
- package/dist/upgrade/coexistenceProbe.js +107 -0
- package/dist/upgrade/coexistenceProbe.js.map +1 -0
- package/dist/upgrade/compatibility.js +13 -4
- package/dist/upgrade/compatibility.js.map +1 -1
- package/dist/upgrade/doctor.js +165 -183
- package/dist/upgrade/doctor.js.map +1 -1
- package/dist/upgrade/doctorClassifier.js +177 -0
- package/dist/upgrade/doctorClassifier.js.map +1 -0
- package/dist/upgrade/installedHooksRetirement.js +190 -0
- package/dist/upgrade/installedHooksRetirement.js.map +1 -0
- package/dist/upgrade/legacyAgentCleanup.js +116 -0
- package/dist/upgrade/legacyAgentCleanup.js.map +1 -0
- package/dist/upgrade/migrateArtifactsV2ToV3.js +57 -109
- package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
- package/dist/upgrade/nextMajorDoctor.js +42 -7
- package/dist/upgrade/nextMajorDoctor.js.map +1 -1
- package/dist/upgrade/npxPlatformStatus.js +23 -0
- package/dist/upgrade/npxPlatformStatus.js.map +1 -0
- package/dist/upgrade/projectIntegration.js +69 -73
- package/dist/upgrade/projectIntegration.js.map +1 -1
- package/dist/upgrade/projectIntegrationDecision.js +93 -0
- package/dist/upgrade/projectIntegrationDecision.js.map +1 -0
- package/dist/upgrade/runtimeMigration.js +169 -68
- package/dist/upgrade/runtimeMigration.js.map +1 -1
- package/dist/upgrade/v3CapabilitySurface.js +15 -0
- package/dist/upgrade/v3CapabilitySurface.js.map +1 -0
- package/dist/upgrade/versionResolution.js +8 -0
- package/dist/upgrade/versionResolution.js.map +1 -1
- package/dist/validate/appHomeContract.js +4 -4
- package/dist/validate/appHomeContract.js.map +1 -1
- package/dist/validate/capability.js +124 -11
- package/dist/validate/capability.js.map +1 -1
- package/dist/validate/crossCapability.js +1 -1
- package/dist/validate/crossCapability.js.map +1 -1
- package/dist/validate/lifecycleAdapters/legacyPythonParity.js +93 -0
- package/dist/validate/lifecycleAdapters/legacyPythonParity.js.map +1 -0
- package/dist/validate/lifecycleAdapters/nodeFormChecks.js +488 -0
- package/dist/validate/lifecycleAdapters/nodeFormChecks.js.map +1 -0
- package/dist/validate/lifecycleAdapters/shared.js +198 -0
- package/dist/validate/lifecycleAdapters/shared.js.map +1 -0
- package/dist/validate/lifecycleAdapters.js +13 -723
- package/dist/validate/lifecycleAdapters.js.map +1 -1
- package/dist/validate/selfAudit.js +62 -20
- package/dist/validate/selfAudit.js.map +1 -1
- package/dist/validate/vocabularyAuthority.js +303 -0
- package/dist/validate/vocabularyAuthority.js.map +1 -0
- package/package.json +27 -24
- package/bundle/references/v1-section-mapping.md +0 -47
- package/bundle/skills/agentera/agents/dokumentera.toml +0 -6
- package/bundle/skills/agentera/agents/hej.toml +0 -6
- package/bundle/skills/agentera/agents/inspektera.toml +0 -6
- package/bundle/skills/agentera/agents/inspirera.toml +0 -6
- package/bundle/skills/agentera/agents/orkestrera.toml +0 -6
- package/bundle/skills/agentera/agents/profilera.toml +0 -6
- package/bundle/skills/agentera/agents/realisera.toml +0 -6
- package/bundle/skills/agentera/agents/visionera.toml +0 -6
- package/bundle/skills/agentera/agents/visualisera.toml +0 -6
- package/bundle/skills/hej/.claude-plugin/plugin.json +0 -6
- package/bundle/skills/hej/SKILL.md +0 -69
- package/bundle/skills/hej/agents/hej.toml +0 -11
- package/bundle/skills/hej/agents/openai.yaml +0 -8
- /package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{orkestrera → orchestrate}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{inspirera → research}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{hej → status}/schemas/exit.yaml +0 -0
- /package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/exit.yaml +0 -0
|
@@ -14,6 +14,7 @@ export const V1_NEXT_MAJOR_FALLBACK = {
|
|
|
14
14
|
currentChannel: "stable",
|
|
15
15
|
channel: "stable",
|
|
16
16
|
version: "2.x",
|
|
17
|
+
announced: true,
|
|
17
18
|
npmOnlyAdvisory: "",
|
|
18
19
|
guideUrl: "https://github.com/jgabor/agentera/blob/main/UPGRADE.md#recommended-upgrade-v1--v2-stable-channel",
|
|
19
20
|
previewCommand: "npx -y agentera@latest upgrade --dry-run",
|
|
@@ -45,12 +46,30 @@ function parseNextMajorBlock(raw) {
|
|
|
45
46
|
concept: String(block.concept ?? "forward_successor_line").trim(),
|
|
46
47
|
channel: channel,
|
|
47
48
|
version,
|
|
49
|
+
announced: block.announced !== false,
|
|
48
50
|
npmOnlyAdvisory: String(block.npm_only_advisory ?? "").trim(),
|
|
49
51
|
guideUrl,
|
|
50
52
|
previewCommand,
|
|
51
53
|
irreversibleAdvisory,
|
|
52
54
|
};
|
|
53
55
|
}
|
|
56
|
+
let testSuccessorAnnouncedOverride = null;
|
|
57
|
+
/** Reset injectable successor announcement gate (tests). */
|
|
58
|
+
export function setSuccessorAnnouncedOverrideForTests(value) {
|
|
59
|
+
testSuccessorAnnouncedOverride = value;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* True when the resolved channel's successor metadata exists and is announced
|
|
63
|
+
* for doctor/prime. Defaults to the stable channel so legacy callers that
|
|
64
|
+
* omit the argument behave identically to pre-fix behavior.
|
|
65
|
+
*/
|
|
66
|
+
export function isStableSuccessorAnnounced(sourceRoot, channel = "stable") {
|
|
67
|
+
if (testSuccessorAnnouncedOverride !== null) {
|
|
68
|
+
return testSuccessorAnnouncedOverride;
|
|
69
|
+
}
|
|
70
|
+
const block = loadChannelNextMajor(sourceRoot, channel);
|
|
71
|
+
return block?.announced === true;
|
|
72
|
+
}
|
|
54
73
|
export function loadChannelNextMajor(sourceRoot, channel) {
|
|
55
74
|
const authority = loadUpdateChannelsAuthority(sourceRoot);
|
|
56
75
|
const channels = authority.channels;
|
|
@@ -73,10 +92,23 @@ export function formatNextMajorDoctorLines(args) {
|
|
|
73
92
|
args.block.irreversibleAdvisory,
|
|
74
93
|
];
|
|
75
94
|
}
|
|
95
|
+
function installTrackSkipsSuccessorBlock(install, sourceRoot) {
|
|
96
|
+
if (install?.kind === "v3_self_contained_npm") {
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
if (install?.kind === "source_checkout" && cliDistributionMajor(sourceRoot) >= 3) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
76
104
|
export function resolveNextMajorDoctorLines(ctx) {
|
|
77
105
|
const env = ctx.env ?? process.env;
|
|
78
106
|
const home = ctx.home;
|
|
79
107
|
const sourceRoot = ctx.sourceRoot;
|
|
108
|
+
const install = ctx.install ?? null;
|
|
109
|
+
if (installTrackSkipsSuccessorBlock(install, sourceRoot)) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
80
112
|
const selected = resolveSelectedChannel({
|
|
81
113
|
channel: ctx.channel ?? null,
|
|
82
114
|
env,
|
|
@@ -84,7 +116,10 @@ export function resolveNextMajorDoctorLines(ctx) {
|
|
|
84
116
|
sourceRoot,
|
|
85
117
|
});
|
|
86
118
|
const currentChannel = selected.channel;
|
|
87
|
-
const
|
|
119
|
+
const successorChannel = install?.kind === "v2_managed_app_home" ? "stable" : currentChannel;
|
|
120
|
+
const displayChannel = install?.kind === "v2_managed_app_home" ? "stable" : currentChannel;
|
|
121
|
+
const runningDistributionMajor = ctx.runningDistributionMajor ??
|
|
122
|
+
(install?.kind === "v2_managed_app_home" ? 2 : cliDistributionMajor(sourceRoot));
|
|
88
123
|
if (runningDistributionMajor === 1) {
|
|
89
124
|
const block = V1_NEXT_MAJOR_FALLBACK;
|
|
90
125
|
return formatNextMajorDoctorLines({
|
|
@@ -93,22 +128,22 @@ export function resolveNextMajorDoctorLines(ctx) {
|
|
|
93
128
|
block,
|
|
94
129
|
});
|
|
95
130
|
}
|
|
96
|
-
const authorityBlock = loadChannelNextMajor(sourceRoot,
|
|
97
|
-
if (!authorityBlock) {
|
|
131
|
+
const authorityBlock = loadChannelNextMajor(sourceRoot, successorChannel);
|
|
132
|
+
if (!authorityBlock || !authorityBlock.announced) {
|
|
98
133
|
return null;
|
|
99
134
|
}
|
|
100
135
|
const runningVersion = ctx.runningVersion ??
|
|
101
|
-
(
|
|
136
|
+
(install
|
|
102
137
|
? resolveRunningVersion({
|
|
103
|
-
appHome:
|
|
138
|
+
appHome: install.appHome,
|
|
104
139
|
sourceRoot,
|
|
105
|
-
install
|
|
140
|
+
install,
|
|
106
141
|
})
|
|
107
142
|
: null) ??
|
|
108
143
|
`${runningDistributionMajor}.x`;
|
|
109
144
|
return formatNextMajorDoctorLines({
|
|
110
145
|
currentVersion: runningVersion,
|
|
111
|
-
currentChannel,
|
|
146
|
+
currentChannel: displayChannel,
|
|
112
147
|
block: authorityBlock,
|
|
113
148
|
});
|
|
114
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextMajorDoctor.js","sourceRoot":"","sources":["../../src/upgrade/nextMajorDoctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,GAEvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"nextMajorDoctor.js","sourceRoot":"","sources":["../../src/upgrade/nextMajorDoctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,o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AM,cAAc,GAAG,oBAAoB,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;IAC1E,IAAI,CAAC,cAAc,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,cAAc,GAClB,GAAG,CAAC,cAAc;QAClB,CAAC,OAAO;YACN,CAAC,CAAC,qBAAqB,CAAC;gBACpB,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,UAAU;gBACV,OAAO;aACR,CAAC;YACJ,CAAC,CAAC,IAAI,CAAC;QACT,GAAG,wBAAwB,IAAI,CAAC;IAElC,OAAO,0BAA0B,CAAC;QAChC,cAAc,EAAE,cAAc;QAC9B,cAAc,EAAE,cAAc;QAC9B,KAAK,EAAE,cAAc;KACtB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,IAAY,EAAE,YAA6B;IACvF,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/C,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { expanduser } from "../core/paths.js";
|
|
2
|
+
import { resolvePlatformAppHome } from "./appModel.js";
|
|
3
|
+
import { buildDoctorStatus } from "./doctor.js";
|
|
4
|
+
/** Shared npx platform app-home resolution for prime and projectIntegration. */
|
|
5
|
+
export function resolveNpxPlatformStatus(opts) {
|
|
6
|
+
const env = { ...process.env, ...(opts.env ?? {}), HOME: expanduser(opts.home) };
|
|
7
|
+
const platformRoot = resolvePlatformAppHome(opts.home, env);
|
|
8
|
+
const doctorOpts = {
|
|
9
|
+
rootSource: "default",
|
|
10
|
+
sourceRoot: opts.sourceRoot,
|
|
11
|
+
home: opts.home,
|
|
12
|
+
project: opts.project,
|
|
13
|
+
expectedCommands: opts.expectedCommands ?? ["prime"],
|
|
14
|
+
skipNpxBundleShortCircuit: true,
|
|
15
|
+
env,
|
|
16
|
+
};
|
|
17
|
+
if (opts.expectedVersion !== undefined) {
|
|
18
|
+
doctorOpts.expectedVersion = opts.expectedVersion;
|
|
19
|
+
}
|
|
20
|
+
const platformStatus = buildDoctorStatus(platformRoot, doctorOpts);
|
|
21
|
+
return { platformRoot, platformStatus };
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=npxPlatformStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npxPlatformStatus.js","sourceRoot":"","sources":["../../src/upgrade/npxPlatformStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAiC,MAAM,aAAa,CAAC;AAiB/E,gFAAgF;AAChF,MAAM,UAAU,wBAAwB,CACtC,IAAqC;IAErC,MAAM,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACjF,MAAM,YAAY,GAAG,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC5D,MAAM,UAAU,GAA6B;QAC3C,UAAU,EAAE,SAAS;QACrB,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,IAAI,CAAC,OAAO,CAAC;QACpD,yBAAyB,EAAE,IAAI;QAC/B,GAAG;KACJ,CAAC;IACF,IAAI,IAAI,CAAC,eAAe,KAAK,SAAS,EAAE,CAAC;QACvC,UAAU,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;IACpD,CAAC;IACD,MAAM,cAAc,GAAG,iBAAiB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IACnE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { expanduser, isFile, resolvePath } from "../core/paths.js";
|
|
2
2
|
import { isNpxBundleRoot } from "../core/sourceRoot.js";
|
|
3
|
-
import {
|
|
3
|
+
import { APP_MIGRATION_NEEDED, APP_OUTDATED, APP_REPAIR_NEEDED, APP_UP_TO_DATE, } from "./doctor.js";
|
|
4
|
+
import { resolveNpxPlatformStatus } from "./npxPlatformStatus.js";
|
|
4
5
|
import { classifyInstall, crossMajorBoundaryApplies } from "./compatibility.js";
|
|
5
6
|
import { resolveInvokedUpdateChannel } from "./channels.js";
|
|
6
7
|
import fs from "node:fs";
|
|
7
8
|
import { detectV1ArtifactPairs, planRuntimeRewirePhase, } from "./migrateArtifactsV2ToV3.js";
|
|
8
9
|
import { projectHasProjectLevelRuntimeHooks, textUsesPythonManagedEntrypoint, } from "./runtimeMigration.js";
|
|
9
|
-
import {
|
|
10
|
+
import { isStableSuccessorAnnounced } from "./nextMajorDoctor.js";
|
|
10
11
|
import { buildUpgradeCommands } from "./upgradeCommands.js";
|
|
11
|
-
import {
|
|
12
|
+
import { classifyIntegrationScenario, integrationScenarioMessage, integrationScenarioNeedsInstallRoot, integrationScenarioOnlyPhases, integrationScenarioRecommendation, } from "./projectIntegrationDecision.js";
|
|
13
|
+
import { classifyUpgradeOutcome, parseSemverMajor, resolveRunningVersion, shouldIncludeCrossMajorPlanItems, } from "./versionResolution.js";
|
|
14
|
+
const MAJOR_BOUNDARY_BLOCK_MESSAGE_PREFIX = "v3 successor line is not announced yet; v2 managed app files remain current on the";
|
|
15
|
+
function majorBoundaryBlockMessage(channelName) {
|
|
16
|
+
const label = channelName.trim() || "current";
|
|
17
|
+
return `${MAJOR_BOUNDARY_BLOCK_MESSAGE_PREFIX} ${label} channel`;
|
|
18
|
+
}
|
|
12
19
|
function migrationContext(args, channel) {
|
|
13
20
|
const home = resolvePath(expanduser(args.home));
|
|
14
21
|
const env = { ...(args.env ?? process.env), HOME: home };
|
|
@@ -114,23 +121,21 @@ function resolveIntegrationTargets(args) {
|
|
|
114
121
|
installRoot: args.installRoot,
|
|
115
122
|
bundleStatus: args.bundleStatus,
|
|
116
123
|
crossMajorBoundary: args.crossMajorBoundary ?? false,
|
|
124
|
+
crossMajorBoundaryDetected: args.crossMajorBoundaryDetected ?? false,
|
|
117
125
|
};
|
|
118
126
|
}
|
|
119
|
-
const platformRoot =
|
|
120
|
-
const platformStatus = buildDoctorStatus(platformRoot, {
|
|
121
|
-
rootSource: "default",
|
|
122
|
-
sourceRoot: args.sourceRoot,
|
|
127
|
+
const { platformRoot, platformStatus } = resolveNpxPlatformStatus({
|
|
123
128
|
home: args.home,
|
|
129
|
+
sourceRoot: args.sourceRoot,
|
|
124
130
|
project: args.project,
|
|
125
|
-
expectedCommands: ["prime"],
|
|
126
|
-
probeCli: false,
|
|
127
|
-
skipNpxBundleShortCircuit: true,
|
|
128
131
|
env: args.env,
|
|
129
132
|
});
|
|
130
133
|
return {
|
|
131
134
|
installRoot: platformRoot,
|
|
132
135
|
bundleStatus: args.bundleStatus,
|
|
136
|
+
platformBundleStatus: platformStatus.status,
|
|
133
137
|
crossMajorBoundary: Boolean(platformStatus.crossMajorBoundary),
|
|
138
|
+
crossMajorBoundaryDetected: Boolean(platformStatus.crossMajorBoundaryDetected),
|
|
134
139
|
};
|
|
135
140
|
}
|
|
136
141
|
function commandChannel(args, channel, crossMajor, upgradeOutcome) {
|
|
@@ -153,9 +158,29 @@ export function summarizeProjectIntegration(args) {
|
|
|
153
158
|
});
|
|
154
159
|
const integrationTargets = resolveIntegrationTargets(args);
|
|
155
160
|
const install = classifyInstall({ appHome: integrationTargets.installRoot, sourceRoot: args.sourceRoot });
|
|
156
|
-
const
|
|
157
|
-
integrationTargets.crossMajorBoundary ??
|
|
161
|
+
const crossMajorDetected = args.crossMajorBoundaryDetected ??
|
|
158
162
|
crossMajorBoundaryApplies(install, args.sourceRoot);
|
|
163
|
+
const successorAnnounced = isStableSuccessorAnnounced(args.sourceRoot, "stable");
|
|
164
|
+
const crossMajor = crossMajorDetected && successorAnnounced;
|
|
165
|
+
const runningMajor = parseSemverMajor(resolveRunningVersion({
|
|
166
|
+
appHome: integrationTargets.installRoot,
|
|
167
|
+
sourceRoot: args.sourceRoot,
|
|
168
|
+
install,
|
|
169
|
+
})) ?? 0;
|
|
170
|
+
if (crossMajorDetected && !successorAnnounced && runningMajor > 0 && runningMajor < 3) {
|
|
171
|
+
const blockMessage = majorBoundaryBlockMessage(channel.channel);
|
|
172
|
+
return {
|
|
173
|
+
recommendation: "stay",
|
|
174
|
+
message: blockMessage,
|
|
175
|
+
pending_runtime: 0,
|
|
176
|
+
pending_runtimes: [],
|
|
177
|
+
pending_artifacts: 0,
|
|
178
|
+
dry_run_command: null,
|
|
179
|
+
apply_command: null,
|
|
180
|
+
update_channel: channel.channel,
|
|
181
|
+
major_boundary_block: blockMessage,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
159
184
|
const upgradeOutcome = classifyUpgradeOutcome({
|
|
160
185
|
appHome: integrationTargets.installRoot,
|
|
161
186
|
sourceRoot: args.sourceRoot,
|
|
@@ -170,56 +195,47 @@ export function summarizeProjectIntegration(args) {
|
|
|
170
195
|
];
|
|
171
196
|
const crossMajorMigration = crossMajor && shouldIncludeCrossMajorPlanItems(channel, upgradeOutcome);
|
|
172
197
|
const crossMajorNeedsPreview = crossMajor && !crossMajorMigration;
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
if (!artifactsOnly &&
|
|
198
|
-
!runtimeOnly &&
|
|
199
|
-
!crossMajorMigration &&
|
|
200
|
-
!crossMajorNeedsPreview &&
|
|
201
|
-
!needsAppUpgrade &&
|
|
202
|
-
integrationTargets.bundleStatus === APP_UP_TO_DATE &&
|
|
203
|
-
pending.length === 0 &&
|
|
204
|
-
v1Artifacts.length === 0) {
|
|
198
|
+
const isNpx = isNpxBundleRoot(args.sourceRoot);
|
|
199
|
+
const classificationBundleStatus = isNpx && integrationTargets.platformBundleStatus !== undefined
|
|
200
|
+
? integrationTargets.platformBundleStatus
|
|
201
|
+
: integrationTargets.bundleStatus;
|
|
202
|
+
const needsAppUpgrade = isNpx && integrationTargets.bundleStatus === APP_UP_TO_DATE
|
|
203
|
+
? appNeedsUpgrade(integrationTargets.platformBundleStatus ?? APP_UP_TO_DATE) &&
|
|
204
|
+
pending.length === 0 &&
|
|
205
|
+
v1Artifacts.length === 0
|
|
206
|
+
: appNeedsUpgrade(classificationBundleStatus);
|
|
207
|
+
const scenario = classifyIntegrationScenario({
|
|
208
|
+
bundleStatus: classificationBundleStatus,
|
|
209
|
+
pendingRuntimeCount: pending.length,
|
|
210
|
+
pendingArtifactCount: v1Artifacts.length,
|
|
211
|
+
crossMajor,
|
|
212
|
+
crossMajorMigration,
|
|
213
|
+
crossMajorNeedsPreview,
|
|
214
|
+
needsAppUpgrade,
|
|
215
|
+
});
|
|
216
|
+
const recommendation = integrationScenarioRecommendation(scenario);
|
|
217
|
+
const message = integrationScenarioMessage(scenario, {
|
|
218
|
+
projectLevelRuntimeHooks: projectHasProjectLevelRuntimeHooks(args.project),
|
|
219
|
+
pendingRuntimes,
|
|
220
|
+
});
|
|
221
|
+
if (recommendation === "stay") {
|
|
205
222
|
return {
|
|
206
223
|
recommendation: "stay",
|
|
207
|
-
message
|
|
224
|
+
message,
|
|
208
225
|
pending_runtime: 0,
|
|
209
226
|
pending_runtimes: [],
|
|
210
227
|
pending_artifacts: 0,
|
|
211
228
|
dry_run_command: null,
|
|
212
229
|
apply_command: null,
|
|
213
230
|
update_channel: channel.channel,
|
|
231
|
+
major_boundary_block: null,
|
|
214
232
|
};
|
|
215
233
|
}
|
|
216
234
|
const cmdsChannel = commandChannel(args, channel, crossMajor, upgradeOutcome);
|
|
217
|
-
const onlyPhases =
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
: undefined;
|
|
222
|
-
const installRootForCommands = crossMajorMigration || crossMajorNeedsPreview || needsAppUpgrade ? integrationTargets.installRoot : null;
|
|
235
|
+
const onlyPhases = integrationScenarioOnlyPhases(scenario);
|
|
236
|
+
const installRootForCommands = integrationScenarioNeedsInstallRoot(scenario)
|
|
237
|
+
? integrationTargets.installRoot
|
|
238
|
+
: null;
|
|
223
239
|
const cmds = buildUpgradeCommands({
|
|
224
240
|
project: args.project,
|
|
225
241
|
installRoot: installRootForCommands,
|
|
@@ -227,37 +243,17 @@ export function summarizeProjectIntegration(args) {
|
|
|
227
243
|
only: onlyPhases,
|
|
228
244
|
cwdDefault: true,
|
|
229
245
|
});
|
|
230
|
-
let message;
|
|
231
|
-
if (artifactsOnly) {
|
|
232
|
-
message =
|
|
233
|
-
"This project still uses v1 Markdown artifacts; preview migrating them to v2 YAML before continuing.";
|
|
234
|
-
}
|
|
235
|
-
else if (crossMajorMigration || crossMajorNeedsPreview) {
|
|
236
|
-
message =
|
|
237
|
-
"Your Agentera app copy is still on v2 while the CLI is on v3; preview the one-way v2→v3 migration before applying.";
|
|
238
|
-
}
|
|
239
|
-
else if (needsAppUpgrade) {
|
|
240
|
-
message = "Your Agentera app copy is out of date; preview the repair or upgrade before applying.";
|
|
241
|
-
}
|
|
242
|
-
else if (pending.length > 0) {
|
|
243
|
-
const runtimes = pendingRuntimes.length > 0 ? pendingRuntimes.join(", ") : "runtime configs";
|
|
244
|
-
message = projectHasProjectLevelRuntimeHooks(args.project)
|
|
245
|
-
? `This project still uses older Agentera runtime wiring (${runtimes}); preview rewiring hooks to the current npm entrypoint.`
|
|
246
|
-
: `Your user-level Agentera runtime wiring (${runtimes}) is stale; preview rewiring hooks to the current npm entrypoint.`;
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
message = "Preview Agentera upgrade changes for this project before applying.";
|
|
250
|
-
}
|
|
251
246
|
return {
|
|
252
247
|
recommendation: "upgrade",
|
|
253
248
|
message,
|
|
254
|
-
pending_runtime:
|
|
249
|
+
pending_runtime: pendingRuntimes.length,
|
|
255
250
|
pending_runtimes: pendingRuntimes,
|
|
256
251
|
pending_artifacts: v1Artifacts.length,
|
|
257
252
|
dry_run_command: cmds.dryRunCommand,
|
|
258
253
|
apply_command: cmds.applyCommand,
|
|
259
254
|
update_channel: cmdsChannel.channel,
|
|
260
255
|
upgrade_only: onlyPhases,
|
|
256
|
+
major_boundary_block: null,
|
|
261
257
|
};
|
|
262
258
|
}
|
|
263
259
|
export function projectIntegrationAttention(summary) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectIntegration.js","sourceRoot":"","sources":["../../src/upgrade/projectIntegration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"projectIntegration.js","sourceRoot":"","sources":["../../src/upgrade/projectIntegration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAEL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,cAAc,GAC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KAC3B,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,OAAkC;IAC5E,IAAI,OAAO,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;QACtC,OAAO,IAAI,CAAC;IACd,CAAC;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,eAAe,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC;IACnG,MAAM,MAAM,GACV,OAAO,CAAC,iBAAiB,GAAG,CAAC;QAC7B,CAAC,OAAO,CAAC,eAAe,GAAG,CAAC,IAAI,OAAO,CAAC,YAAY,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;QACxE,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,UAAU,CAAC;IACjB,OAAO,GAAG,MAAM,KAAK,OAAO,CAAC,OAAO,YAAY,OAAO,GAAG,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { APP_MANUAL_REVIEW_NEEDED, APP_MIGRATION_NEEDED, APP_OUTDATED, APP_REPAIR_NEEDED, APP_UP_TO_DATE } from "./doctor.js";
|
|
2
|
+
export function classifyIntegrationScenario(facts) {
|
|
3
|
+
const { bundleStatus, pendingRuntimeCount, pendingArtifactCount, crossMajor, crossMajorMigration, crossMajorNeedsPreview, needsAppUpgrade, } = facts;
|
|
4
|
+
if (bundleStatus === APP_MANUAL_REVIEW_NEEDED &&
|
|
5
|
+
pendingRuntimeCount === 0 &&
|
|
6
|
+
pendingArtifactCount === 0 &&
|
|
7
|
+
!crossMajor) {
|
|
8
|
+
return "stay_manual_review";
|
|
9
|
+
}
|
|
10
|
+
const artifactsOnly = pendingArtifactCount > 0 && !crossMajorMigration && !crossMajorNeedsPreview && !needsAppUpgrade;
|
|
11
|
+
const runtimeOnly = pendingRuntimeCount > 0 &&
|
|
12
|
+
!artifactsOnly &&
|
|
13
|
+
!crossMajorMigration &&
|
|
14
|
+
!crossMajorNeedsPreview &&
|
|
15
|
+
!needsAppUpgrade;
|
|
16
|
+
if (!artifactsOnly &&
|
|
17
|
+
!runtimeOnly &&
|
|
18
|
+
!crossMajorMigration &&
|
|
19
|
+
!crossMajorNeedsPreview &&
|
|
20
|
+
!needsAppUpgrade &&
|
|
21
|
+
bundleStatus === APP_UP_TO_DATE &&
|
|
22
|
+
pendingRuntimeCount === 0 &&
|
|
23
|
+
pendingArtifactCount === 0) {
|
|
24
|
+
return "stay_up_to_date";
|
|
25
|
+
}
|
|
26
|
+
if (crossMajorMigration || crossMajorNeedsPreview) {
|
|
27
|
+
return crossMajorMigration ? "upgrade_cross_major" : "upgrade_cross_major_preview";
|
|
28
|
+
}
|
|
29
|
+
if (needsAppUpgrade) {
|
|
30
|
+
if (bundleStatus === APP_OUTDATED) {
|
|
31
|
+
return "upgrade_app_outdated";
|
|
32
|
+
}
|
|
33
|
+
if (bundleStatus === APP_REPAIR_NEEDED) {
|
|
34
|
+
return "upgrade_app_repair";
|
|
35
|
+
}
|
|
36
|
+
if (bundleStatus === APP_MIGRATION_NEEDED) {
|
|
37
|
+
return "upgrade_app_migration";
|
|
38
|
+
}
|
|
39
|
+
return "upgrade_app_outdated";
|
|
40
|
+
}
|
|
41
|
+
if (artifactsOnly) {
|
|
42
|
+
return "upgrade_artifacts_only";
|
|
43
|
+
}
|
|
44
|
+
if (runtimeOnly) {
|
|
45
|
+
return "upgrade_runtime_only";
|
|
46
|
+
}
|
|
47
|
+
if (pendingRuntimeCount > 0) {
|
|
48
|
+
return "upgrade_runtime_mixed";
|
|
49
|
+
}
|
|
50
|
+
return "upgrade_generic";
|
|
51
|
+
}
|
|
52
|
+
export function integrationScenarioRecommendation(scenario) {
|
|
53
|
+
return scenario === "stay_manual_review" || scenario === "stay_up_to_date" ? "stay" : "upgrade";
|
|
54
|
+
}
|
|
55
|
+
export function integrationScenarioOnlyPhases(scenario) {
|
|
56
|
+
if (scenario === "upgrade_artifacts_only") {
|
|
57
|
+
return ["artifacts"];
|
|
58
|
+
}
|
|
59
|
+
if (scenario === "upgrade_runtime_only") {
|
|
60
|
+
return ["runtime"];
|
|
61
|
+
}
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
export function integrationScenarioNeedsInstallRoot(scenario) {
|
|
65
|
+
return (scenario === "upgrade_cross_major" ||
|
|
66
|
+
scenario === "upgrade_cross_major_preview" ||
|
|
67
|
+
scenario === "upgrade_app_outdated" ||
|
|
68
|
+
scenario === "upgrade_app_repair" ||
|
|
69
|
+
scenario === "upgrade_app_migration");
|
|
70
|
+
}
|
|
71
|
+
const SCENARIO_MESSAGES = {
|
|
72
|
+
stay_manual_review: "Agentera needs manual review for your app directory before this project can be upgraded safely.",
|
|
73
|
+
stay_up_to_date: "This project matches your current Agentera install; no upgrade is needed.",
|
|
74
|
+
upgrade_artifacts_only: "This project still uses v1 Markdown artifacts; preview migrating them to v2 YAML before continuing.",
|
|
75
|
+
upgrade_cross_major: "Your Agentera app copy is still on v2 while the CLI is on v3; preview the one-way v2→v3 migration before applying.",
|
|
76
|
+
upgrade_cross_major_preview: "Your Agentera app copy is still on v2 while the CLI is on v3; preview the one-way v2→v3 migration before applying.",
|
|
77
|
+
upgrade_app_outdated: "Your Agentera app copy is out of date; preview the update with agentera upgrade before applying.",
|
|
78
|
+
upgrade_app_repair: "Your Agentera app copy needs repair; preview the repair with agentera upgrade before applying.",
|
|
79
|
+
upgrade_app_migration: "Your Agentera app copy needs migration; preview the migration with agentera upgrade before applying.",
|
|
80
|
+
upgrade_runtime_only: "",
|
|
81
|
+
upgrade_runtime_mixed: "",
|
|
82
|
+
upgrade_generic: "Preview Agentera upgrade changes for this project before applying.",
|
|
83
|
+
};
|
|
84
|
+
export function integrationScenarioMessage(scenario, opts) {
|
|
85
|
+
if (scenario === "upgrade_runtime_only" || scenario === "upgrade_runtime_mixed") {
|
|
86
|
+
const runtimes = opts.pendingRuntimes.length > 0 ? opts.pendingRuntimes.join(", ") : "runtime configs";
|
|
87
|
+
return opts.projectLevelRuntimeHooks
|
|
88
|
+
? `This project still uses older Agentera runtime wiring (${runtimes}); preview rewiring hooks to the current npm entrypoint.`
|
|
89
|
+
: `Your user-level Agentera runtime wiring (${runtimes}) is stale; preview rewiring hooks to the current npm entrypoint.`;
|
|
90
|
+
}
|
|
91
|
+
return SCENARIO_MESSAGES[scenario];
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=projectIntegrationDecision.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projectIntegrationDecision.js","sourceRoot":"","sources":["../../src/upgrade/projectIntegrationDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA2B9H,MAAM,UAAU,2BAA2B,CAAC,KAA+B;IACzE,MAAM,EACJ,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,GAChB,GAAG,KAAK,CAAC;IAEV,IACE,YAAY,KAAK,wBAAwB;QACzC,mBAAmB,KAAK,CAAC;QACzB,oBAAoB,KAAK,CAAC;QAC1B,CAAC,UAAU,EACX,CAAC;QACD,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IAED,MAAM,aAAa,GACjB,oBAAoB,GAAG,CAAC,IAAI,CAAC,mBAAmB,IAAI,CAAC,sBAAsB,IAAI,CAAC,eAAe,CAAC;IAClG,MAAM,WAAW,GACf,mBAAmB,GAAG,CAAC;QACvB,CAAC,aAAa;QACd,CAAC,mBAAmB;QACpB,CAAC,sBAAsB;QACvB,CAAC,eAAe,CAAC;IAEnB,IACE,CAAC,aAAa;QACd,CAAC,WAAW;QACZ,CAAC,mBAAmB;QACpB,CAAC,sBAAsB;QACvB,CAAC,eAAe;QAChB,YAAY,KAAK,cAAc;QAC/B,mBAAmB,KAAK,CAAC;QACzB,oBAAoB,KAAK,CAA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