agentera 3.0.0-dev.41 → 3.0.0-dev.47
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 +33 -4
- package/bundle/CHANGELOG.md +91 -1
- package/bundle/README.md +26 -19
- package/bundle/UPGRADE.md +50 -15
- package/bundle/references/adapters/package-publication.json +408 -14
- package/bundle/references/adapters/package-registry.yaml +414 -1
- package/bundle/references/adapters/package-surface-characterization.md +20 -0
- package/bundle/references/adapters/runtime-retired-resources.yaml +237 -1
- package/bundle/references/analysis/evidence-tier-authority.yaml +3 -3
- package/bundle/references/analysis/verification-policy.yaml +48 -0
- package/bundle/references/artifacts/artifact-registry-interface-model.yaml +1 -1
- package/bundle/references/artifacts/glossary-entry-contract.yaml +11 -11
- package/bundle/references/artifacts/state-storage-authority.yaml +170 -118
- package/bundle/references/cli/capability-instruction-contract.yaml +4 -4
- package/bundle/references/cli/hybrid-route-contract.yaml +27 -5
- package/bundle/references/cli/routing-model.md +20 -4
- package/bundle/references/cli/trigger-schema-enrichment.md +7 -0
- package/bundle/references/cli/vocabulary-index.yaml +1 -3
- package/bundle/references/cli/vocabulary.md +18 -60
- package/bundle/references/meta/retained-reference-authority.yaml +151 -0
- package/bundle/skills/agentera/SKILL.md +32 -16
- package/bundle/skills/agentera/capabilities/audit/schemas/artifacts.yaml +3 -3
- package/bundle/skills/agentera/capabilities/audit/schemas/validation.yaml +1 -1
- package/bundle/skills/agentera/capabilities/build/schemas/artifacts.yaml +5 -5
- package/bundle/skills/agentera/capabilities/build/schemas/validation.yaml +5 -5
- package/bundle/skills/agentera/capabilities/design/schemas/exit.yaml +2 -2
- package/bundle/skills/agentera/capabilities/discuss/schemas/artifacts.yaml +3 -3
- package/bundle/skills/agentera/capabilities/discuss/schemas/validation.yaml +2 -2
- package/bundle/skills/agentera/capabilities/document/schemas/artifacts.yaml +3 -3
- package/bundle/skills/agentera/capabilities/document/schemas/validation.yaml +1 -1
- package/bundle/skills/agentera/capabilities/optimize/schemas/artifacts.yaml +1 -1
- package/bundle/skills/agentera/capabilities/optimize/schemas/validation.yaml +1 -1
- package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +5 -5
- package/bundle/skills/agentera/capabilities/orchestrate/schemas/validation.yaml +2 -2
- package/bundle/skills/agentera/capabilities/plan/schemas/artifacts.yaml +1 -1
- package/bundle/skills/agentera/capabilities/plan/schemas/validation.yaml +1 -1
- package/bundle/skills/agentera/capabilities/profile/schemas/validation.yaml +1 -1
- package/bundle/skills/agentera/capability_schema_contract.yaml +2 -2
- package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +3 -3
- package/bundle/skills/agentera/schemas/artifacts/experiments.yaml +3 -3
- package/bundle/skills/agentera/schemas/artifacts/glossary.yaml +1 -1
- package/bundle/skills/agentera/schemas/artifacts/health.yaml +3 -3
- package/bundle/skills/agentera/schemas/artifacts/plan.yaml +12 -10
- package/bundle/skills/agentera/schemas/artifacts/progress.yaml +3 -3
- package/bundle/skills/agentera/schemas/artifacts/todo.yaml +6 -4
- package/dist/analytics/extractCorpus/cli.js +0 -1
- package/dist/analytics/extractCorpus/copilotSessions.js +0 -1
- package/dist/analytics/extractCorpus/core.js +0 -1
- package/dist/analytics/extractCorpus/corpus.js +0 -1
- package/dist/analytics/extractCorpus/coverageAudit.js +0 -1
- package/dist/analytics/extractCorpus/cursorSessions.js +0 -1
- package/dist/analytics/extractCorpus/evidenceTiers.js +0 -1
- package/dist/analytics/extractCorpus/extractCorpusParity.js +0 -1
- package/dist/analytics/extractCorpus/filesystemSources.js +0 -1
- package/dist/analytics/extractCorpus/index.js +0 -1
- package/dist/analytics/extractCorpus/jsonlSessions.js +0 -1
- package/dist/analytics/extractCorpus/sqliteCaps.js +0 -1
- package/dist/analytics/extractCorpus/sqliteSessions.js +0 -1
- package/dist/analytics/extractCorpus/tierReader.js +0 -1
- package/dist/analytics/extractCorpus.js +0 -1
- package/dist/analytics/glossaryAdviceResolution.js +0 -1
- package/dist/analytics/glossaryInputAcquisition.js +0 -1
- package/dist/analytics/personalGlossaryAdmission.js +0 -1
- package/dist/analytics/personalGlossaryProfile.js +0 -1
- package/dist/analytics/profileSignals.js +0 -1
- package/dist/analytics/usageStats.js +0 -1
- package/dist/audit/terminologyDrift.js +0 -1
- package/dist/bin/agentera.js +0 -1
- package/dist/capabilities/audit/instructions.js +3 -4
- package/dist/capabilities/build/instructions.js +2 -3
- package/dist/capabilities/design/instructions.js +1 -2
- package/dist/capabilities/discuss/instructions.js +2 -3
- package/dist/capabilities/document/instructions.js +2 -3
- package/dist/capabilities/index.js +5 -4
- package/dist/capabilities/optimize/instructions.js +1 -2
- package/dist/capabilities/orchestrate/instructions.js +3 -4
- package/dist/capabilities/plan/instructions.js +1 -2
- package/dist/capabilities/profile/instructions.js +1 -2
- package/dist/capabilities/research/instructions.js +1 -2
- package/dist/capabilities/status/instructions.js +1 -2
- package/dist/capabilities/status/startupInstructions.js +0 -5
- package/dist/capabilities/vision/instructions.js +1 -2
- package/dist/cli/appContext.js +0 -1
- package/dist/cli/argvalidate.js +0 -1
- package/dist/cli/capabilityContext/benchmark.js +4 -4
- package/dist/cli/capabilityContext/bespoke.js +0 -1
- package/dist/cli/capabilityContext/build.js +8 -10
- package/dist/cli/capabilityContext/closeout.js +8 -10
- package/dist/cli/capabilityContext/contract.js +7 -42
- package/dist/cli/capabilityContext/evidence.js +12 -14
- package/dist/cli/capabilityContext/index.js +0 -1
- package/dist/cli/capabilityContext/orchestration.js +6 -8
- package/dist/cli/capabilityContext/planState.js +0 -1
- package/dist/cli/capabilityContext/progress.js +0 -1
- package/dist/cli/capabilityContext/projectVerification.js +0 -1
- package/dist/cli/capabilityContext/shared.js +2 -19
- package/dist/cli/capabilityContext/slim.js +0 -1
- package/dist/cli/capabilityContext/startup.js +24 -152
- package/dist/cli/capabilityContext/startupAggregation.js +68 -0
- package/dist/cli/capabilityContext/types.js +4 -4
- package/dist/cli/capabilityContext.js +0 -1
- package/dist/cli/commands/appHome.js +0 -1
- package/dist/cli/commands/capability.js +2 -2
- package/dist/cli/commands/compact.js +0 -1
- package/dist/cli/commands/doctor.js +104 -9
- package/dist/cli/commands/durability.js +0 -1
- package/dist/cli/commands/glossaryAdvice.js +0 -1
- package/dist/cli/commands/lint.js +0 -1
- package/dist/cli/commands/personalGlossary.js +0 -1
- package/dist/cli/commands/prime/briefOrientation.js +24 -85
- package/dist/cli/commands/prime/buildExecutionRequest.js +2 -2
- package/dist/cli/commands/prime/bundleStatus.js +0 -1
- package/dist/cli/commands/prime/collectEntityOrientation.js +47 -27
- package/dist/cli/commands/prime/collectOrientationState.js +36 -2
- package/dist/cli/commands/prime/orientationOutput.js +104 -84
- package/dist/cli/commands/prime/types.js +0 -1
- package/dist/cli/commands/prime/v1Migration.js +0 -1
- package/dist/cli/commands/prime.js +18 -36
- package/dist/cli/commands/profileGrounding.js +0 -1
- package/dist/cli/commands/query.js +2 -2
- package/dist/cli/commands/report.js +0 -1
- package/dist/cli/commands/route.js +3 -3
- package/dist/cli/commands/schema.js +62 -92
- package/dist/cli/commands/state/decisions.js +0 -1
- package/dist/cli/commands/state/docs.js +0 -1
- package/dist/cli/commands/state/experimentRecords.js +0 -1
- package/dist/cli/commands/state/experiments.js +0 -1
- package/dist/cli/commands/state/get.js +0 -1
- package/dist/cli/commands/state/health.js +0 -1
- package/dist/cli/commands/state/index.js +0 -1
- package/dist/cli/commands/state/list.js +0 -1
- package/dist/cli/commands/state/objective.js +0 -1
- package/dist/cli/commands/state/plan.js +0 -1
- package/dist/cli/commands/state/planTasks.js +0 -1
- package/dist/cli/commands/state/plans.js +0 -1
- package/dist/cli/commands/state/progress.js +0 -1
- package/dist/cli/commands/state/shared.js +0 -1
- package/dist/cli/commands/state/todo.js +0 -1
- package/dist/cli/commands/state/write.js +10 -1
- package/dist/cli/commands/upgrade.js +0 -1
- package/dist/cli/commands/upgradeVerify.js +0 -1
- package/dist/cli/commands/validate.js +106 -10
- package/dist/cli/commands/verify.js +0 -1
- package/dist/cli/contracts/bundleStatus.js +0 -1
- package/dist/cli/contracts/orientationState.js +0 -1
- package/dist/cli/dispatch/argvParser.js +0 -1
- package/dist/cli/dispatch/check.js +6 -24
- package/dist/cli/dispatch/commands.js +3 -3
- package/dist/cli/dispatch/index.js +9 -36
- package/dist/cli/dispatch/lifecycle.js +11 -57
- package/dist/cli/dispatch/prime.js +0 -1
- package/dist/cli/dispatch/projections.js +17 -0
- package/dist/cli/dispatch/shared.js +0 -1
- package/dist/cli/dispatch/state.js +0 -1
- package/dist/cli/dispatch.js +0 -1
- package/dist/cli/errors.js +0 -1
- package/dist/cli/help.js +51 -30
- package/dist/cli/migrationRequired.js +3 -5
- package/dist/cli/orientation/attention.js +4 -17
- package/dist/cli/orientation/corpusCoverage.js +0 -1
- package/dist/cli/orientation.js +5 -5
- package/dist/cli/planArtifacts.js +0 -1
- package/dist/cli/planEvidence.js +0 -1
- package/dist/cli/planLifecycleState.js +2 -2
- package/dist/cli/planTaskIndex.js +0 -1
- package/dist/cli/preCutoverCommand.js +32 -0
- package/dist/cli/prime-blob.js +6 -6
- package/dist/cli/profileAcquisition.js +0 -1
- package/dist/cli/startupCompletenessContract.js +0 -1
- package/dist/cli/stateQuery.js +17 -21
- package/dist/cli/structured.js +0 -1
- package/dist/cli/todoMarkdown.js +0 -1
- package/dist/cli/todoReadinessSelection.js +2 -2
- package/dist/cli/todoSeverity.js +0 -1
- package/dist/core/atomicWriter.js +0 -1
- package/dist/core/developmentChannel.js +1 -0
- package/dist/core/developmentInvocation.js +374 -0
- package/dist/core/difflib.js +0 -1
- package/dist/core/envPaths.js +0 -1
- package/dist/core/jsonValue.js +0 -1
- package/dist/core/paths.js +0 -1
- package/dist/core/pyjson.js +0 -1
- package/dist/core/shell.js +0 -1
- package/dist/core/skillIdentity.js +0 -1
- package/dist/core/sourceRoot.js +9 -12
- package/dist/core/text.js +0 -1
- package/dist/core/toml.js +0 -1
- package/dist/core/yaml.js +0 -1
- package/dist/eval/evalSkills.js +0 -1
- package/dist/eval/hybridRouteEvaluation.js +0 -1
- package/dist/eval/semanticEval.js +0 -1
- package/dist/eval/semanticFixtures.js +0 -1
- package/dist/hooks/common.js +1 -54
- package/dist/hooks/compaction/apply.js +0 -1
- package/dist/hooks/compaction/dryRun.js +0 -1
- package/dist/hooks/compaction/index.js +1 -2
- package/dist/hooks/compaction/parse.js +0 -1
- package/dist/hooks/compaction/retention.js +0 -1
- package/dist/hooks/compaction/status.js +0 -1
- package/dist/hooks/compaction/types.js +0 -1
- package/dist/hooks/validateArtifact/agentFacing.js +0 -1
- package/dist/hooks/validateArtifact/index.js +6 -65
- package/dist/hooks/validateArtifact/markdown.js +0 -1
- package/dist/hooks/validateArtifact/schema.js +0 -1
- package/dist/hooks/validateArtifact/traversal.js +0 -1
- package/dist/hooks/validateArtifact/violations.js +0 -1
- package/dist/migrate/v2HandoffManifest.js +0 -3
- package/dist/registries/activationContract.js +2 -0
- package/dist/registries/activationTuples.js +106 -0
- package/dist/registries/artifactProtocolIds.js +0 -1
- package/dist/registries/artifactRegistry.js +0 -1
- package/dist/registries/artifactSchemaProjection.js +0 -1
- package/dist/registries/capabilityContract.js +0 -1
- package/dist/registries/evaluatorHandoffContract.js +0 -1
- package/dist/registries/evidenceTierContract.js +0 -1
- package/dist/registries/glossaryAdviceContract.js +2 -2
- package/dist/registries/glossaryCaveatContract.js +0 -1
- package/dist/registries/glossaryConsumerContractValidation.js +5 -6
- package/dist/registries/glossaryEntryContract.js +8 -8
- package/dist/registries/glossaryTermIdentity.js +0 -1
- package/dist/registries/glossaryTermOccurrence.js +0 -1
- package/dist/registries/hybridRoute.js +73 -2
- package/dist/registries/hybridRouteReceipt.js +2 -2
- package/dist/registries/packagePublication.js +229 -0
- package/dist/registries/packageRegistry.js +118 -2
- package/dist/registries/todoReadinessContract.js +0 -1
- package/dist/registries/triggerLoader.js +0 -1
- package/dist/registries/verbosityBudgetContract.js +0 -1
- package/dist/release/releaseMetadata.js +69 -3
- package/dist/runtime/lifecycleAdapterContract.js +0 -1
- package/dist/runtime/lifecycleAdapters.js +0 -1
- package/dist/runtime/lifecycleAuthority.js +0 -1
- package/dist/runtime/lifecycleOperationContract.js +12 -3
- package/dist/runtime/lifecycleOperations.js +0 -1
- package/dist/runtime/lifecycleOwnershipJournal.js +0 -1
- package/dist/runtime/lifecyclePublication.js +0 -1
- package/dist/runtime/lifecycleSnapshot.js +0 -1
- package/dist/runtime/nativeResourceCleanup.js +191 -6
- package/dist/setup/opencode.js +0 -1
- package/dist/setup/opencodeConstants.js +0 -1
- package/dist/setup/sharedSkill.js +0 -1
- package/dist/setup/smokeChecks.js +1 -33
- package/dist/state/archiveDiscovery.js +0 -1
- package/dist/state/archivePublication.js +0 -1
- package/dist/state/archiveRecovery.js +0 -1
- package/dist/state/archiveReplay.js +0 -1
- package/dist/state/canonicalMigrationRecord.js +0 -1
- package/dist/state/changelog.js +0 -1
- package/dist/state/decisionEntities.js +0 -1
- package/dist/state/decisionLegacyValidation.js +0 -1
- package/dist/state/decisionMigrationProvenance.js +0 -1
- package/dist/state/decisionOverlay.js +0 -1
- package/dist/state/decisionRevision.js +0 -1
- package/dist/state/decisionRevisionMigration.js +0 -1
- package/dist/state/directRetrieval.js +0 -1
- package/dist/state/durability.js +0 -1
- package/dist/state/entityCutover.js +174 -9
- package/dist/state/entityCutoverGit.js +0 -1
- package/dist/state/entityGlossaryAuthority.js +0 -1
- package/dist/state/entityListProjection.js +0 -1
- package/dist/state/entityListRuntimeRegistry.js +46 -11
- package/dist/state/entityMigrationCausality.js +3 -5
- package/dist/state/entityMigrationIdentity.js +0 -1
- package/dist/state/entityMigrationPreview.js +35 -73
- package/dist/state/entityMigrationTodo.js +133 -0
- package/dist/state/entityPublicationContext.js +0 -1
- package/dist/state/entityRetrievalHelp.js +53 -23
- package/dist/state/entityStorage.js +0 -1
- package/dist/state/exactReplacementRecovery.js +0 -1
- package/dist/state/experimentArchive.js +0 -1
- package/dist/state/experimentIdentity.js +0 -1
- package/dist/state/healthEntities.js +0 -1
- package/dist/state/healthEntityValidation.js +0 -1
- package/dist/state/healthRepair.js +0 -1
- package/dist/state/installRoot.js +0 -1
- package/dist/state/legacyEntityCutoverEvidence.js +0 -1
- package/dist/state/legacyIdentity.js +0 -1
- package/dist/state/legacySummaryRecord.js +0 -1
- package/dist/state/listAccounting.js +0 -1
- package/dist/state/listClassification.js +0 -1
- package/dist/state/listCursor.js +0 -1
- package/dist/state/listRetrieval.js +0 -1
- package/dist/state/migrationSourceBinding.js +0 -1
- package/dist/state/objectiveExperimentEntities.js +0 -1
- package/dist/state/planEntities.js +0 -1
- package/dist/state/planIdentity.js +0 -1
- package/dist/state/planRetrieval.js +0 -1
- package/dist/state/planTaskRetrieval.js +0 -1
- package/dist/state/progressEntities.js +0 -1
- package/dist/state/progressGlossaryCaveat.js +0 -1
- package/dist/state/progressPublicationOrder.js +0 -1
- package/dist/state/projectRoot.js +0 -1
- package/dist/state/projectionPolicy.js +0 -1
- package/dist/state/retrievalAuthority.js +0 -1
- package/dist/state/safeProjectFile.js +0 -1
- package/dist/state/startupAnalysis/benchmark.js +0 -1
- package/dist/state/startupAnalysis/contract.js +44 -10
- package/dist/state/startupAnalysis/helpers.js +0 -1
- package/dist/state/startupAnalysis/index.js +0 -1
- package/dist/state/startupAnalysis/metrics.js +0 -1
- package/dist/state/startupAnalysis/records.js +0 -1
- package/dist/state/startupAnalysis/report.js +0 -1
- package/dist/state/startupAnalysis/threshold.js +0 -1
- package/dist/state/startupAnalysis.js +0 -1
- package/dist/state/startupProjection.js +2 -2
- package/dist/state/stateMode.js +0 -1
- package/dist/state/stateStorageAuthority.js +0 -1
- package/dist/state/summaryEntityRead.js +0 -1
- package/dist/state/summaryMigrationProvenance.js +0 -1
- package/dist/state/summarySourceRowAuthority.js +0 -1
- package/dist/state/todoDocsEntities.js +161 -83
- package/dist/state/todoDocsEntityValidation.js +0 -1
- package/dist/state/todoMarkdownProjection.js +51 -0
- package/dist/state/todoReconciliationActivation.js +73 -4
- package/dist/state/todoReconciliationInspection.js +173 -0
- package/dist/state/todoReconciliationRepair.js +170 -0
- package/dist/state/todoReconciliationTransaction.js +41 -13
- package/dist/state/write/assign.js +0 -1
- package/dist/state/write/candidateMutation.js +0 -1
- package/dist/state/write/errors.js +0 -1
- package/dist/state/write/experimentPublication.js +0 -1
- package/dist/state/write/explain.js +0 -1
- package/dist/state/write/fields.js +0 -1
- package/dist/state/write/glossaryPublication.js +0 -1
- package/dist/state/write/grammar.js +13 -4
- package/dist/state/write/helpers.js +0 -1
- package/dist/state/write/index.js +0 -1
- package/dist/state/write/input.js +0 -1
- package/dist/state/write/lock.js +0 -1
- package/dist/state/write/mutation.js +0 -1
- package/dist/state/write/operations.js +0 -1
- package/dist/state/write/planEvaluation.js +0 -1
- package/dist/state/write/planPublication.js +0 -1
- package/dist/state/write/runtimeOperations.js +83 -6
- package/dist/state/write/serialize.js +0 -1
- package/dist/state/write/transaction.js +0 -1
- package/dist/state/write/validate.js +0 -1
- package/dist/upgrade/appContentRefresh.js +0 -1
- package/dist/upgrade/appModel.js +0 -1
- package/dist/upgrade/atomicWriter.js +0 -1
- package/dist/upgrade/bundleEvidence.js +0 -1
- package/dist/upgrade/channels.js +0 -1
- package/dist/upgrade/compatibility.js +0 -1
- package/dist/upgrade/doctor.js +0 -1
- package/dist/upgrade/doctorClassifier.js +0 -1
- package/dist/upgrade/installedHooksRetirement.js +0 -1
- package/dist/upgrade/legacyAgentCleanup.js +0 -1
- package/dist/upgrade/lifecycleUpgrade.js +0 -1
- package/dist/upgrade/migrateArtifactsV2ToV3.js +7 -15
- package/dist/upgrade/migrationPublication.js +0 -1
- package/dist/upgrade/nextMajorDoctor.js +0 -1
- package/dist/upgrade/npxPlatformStatus.js +0 -1
- package/dist/upgrade/projectIntegration.js +4 -17
- package/dist/upgrade/projectIntegrationDecision.js +0 -1
- package/dist/upgrade/retiredResourceDiagnostics.js +117 -0
- package/dist/upgrade/runtimeMigration.js +61 -190
- package/dist/upgrade/upgradeCommands.js +5 -1
- package/dist/upgrade/upgradeLock.js +0 -1
- package/dist/upgrade/upgradeOrchestrator.js +52 -9
- package/dist/upgrade/v3CapabilitySurface.js +0 -1
- package/dist/upgrade/versionResolution.js +0 -1
- package/dist/validate/activationArtifactEvidence.js +844 -0
- package/dist/validate/activationConjunction.js +816 -0
- package/dist/validate/activationEvidenceManifest.js +515 -0
- package/dist/validate/activationPackageSemantics.js +29 -0
- package/dist/validate/appHomeContract.js +0 -2
- package/dist/validate/bootstrapAuthority.js +44 -0
- package/dist/validate/capability.js +0 -1
- package/dist/validate/crossCapability.js +0 -1
- package/dist/validate/retainedReferenceAuthority.js +879 -0
- package/dist/validate/selfAudit.js +0 -1
- package/dist/validate/v1LegacyCruft.js +0 -10
- package/dist/validate/vocabularyAuthority.js +6 -8
- package/package.json +12 -5
- package/bundle/references/adapters/package-manifest-interface-model.yaml +0 -127
- package/bundle/references/analysis/benchmark.md +0 -271
- package/bundle/references/analysis/startup-measurement-contract.yaml +0 -435
- package/bundle/references/cli/agent-ready-state-contract.yaml +0 -1015
- package/bundle/references/cli/audience-namespace-cli-migration.yaml +0 -395
- package/bundle/references/cli/bundle-skill-vocabulary.yaml +0 -241
- package/bundle/references/cli/capability-instruction-structure.md +0 -144
- package/bundle/references/cli/capability-tool-classification.yaml +0 -53
- package/bundle/references/cli/coexistence-probe.yaml +0 -13
- package/bundle/references/cli/parity-expected-actual-template.md +0 -30
- package/bundle/references/cli/prime-consumer-compatibility.yaml +0 -701
- package/bundle/references/cli/routing-execution-vocabulary.yaml +0 -259
- package/bundle/references/cli/single-name-protocol.yaml +0 -42
- package/bundle/references/cli/upgrade-repair-wording.md +0 -25
- package/bundle/references/cli/v3-handoff-manifest.schema.yaml +0 -97
- package/bundle/references/meta/documentation-inventory.md +0 -50
- package/bundle/skills/agentera/references/contract.md +0 -1097
- package/dist/analytics/extractCorpus/cli.js.map +0 -1
- package/dist/analytics/extractCorpus/copilotSessions.js.map +0 -1
- package/dist/analytics/extractCorpus/core.js.map +0 -1
- package/dist/analytics/extractCorpus/corpus.js.map +0 -1
- package/dist/analytics/extractCorpus/coverageAudit.js.map +0 -1
- package/dist/analytics/extractCorpus/cursorSessions.js.map +0 -1
- package/dist/analytics/extractCorpus/evidenceTiers.js.map +0 -1
- package/dist/analytics/extractCorpus/extractCorpusParity.js.map +0 -1
- package/dist/analytics/extractCorpus/filesystemSources.js.map +0 -1
- package/dist/analytics/extractCorpus/index.js.map +0 -1
- package/dist/analytics/extractCorpus/jsonlSessions.js.map +0 -1
- package/dist/analytics/extractCorpus/sqliteCaps.js.map +0 -1
- package/dist/analytics/extractCorpus/sqliteSessions.js.map +0 -1
- package/dist/analytics/extractCorpus/tierReader.js.map +0 -1
- package/dist/analytics/extractCorpus.js.map +0 -1
- package/dist/analytics/glossaryAdviceResolution.js.map +0 -1
- package/dist/analytics/glossaryInputAcquisition.js.map +0 -1
- package/dist/analytics/personalGlossaryAdmission.js.map +0 -1
- package/dist/analytics/personalGlossaryProfile.js.map +0 -1
- package/dist/analytics/profileSignals.js.map +0 -1
- package/dist/analytics/usageStats.js.map +0 -1
- package/dist/audit/terminologyDrift.js.map +0 -1
- package/dist/bin/agentera.js.map +0 -1
- package/dist/capabilities/audit/instructions.js.map +0 -1
- package/dist/capabilities/build/instructions.js.map +0 -1
- package/dist/capabilities/design/instructions.js.map +0 -1
- package/dist/capabilities/discuss/instructions.js.map +0 -1
- package/dist/capabilities/document/instructions.js.map +0 -1
- package/dist/capabilities/index.js.map +0 -1
- package/dist/capabilities/optimize/instructions.js.map +0 -1
- package/dist/capabilities/orchestrate/instructions.js.map +0 -1
- package/dist/capabilities/plan/instructions.js.map +0 -1
- package/dist/capabilities/profile/instructions.js.map +0 -1
- package/dist/capabilities/research/instructions.js.map +0 -1
- package/dist/capabilities/status/instructions.js.map +0 -1
- package/dist/capabilities/status/startupInstructions.js.map +0 -1
- package/dist/capabilities/vision/instructions.js.map +0 -1
- package/dist/cli/appContext.js.map +0 -1
- package/dist/cli/argvalidate.js.map +0 -1
- package/dist/cli/capabilityContext/benchmark.js.map +0 -1
- package/dist/cli/capabilityContext/bespoke.js.map +0 -1
- package/dist/cli/capabilityContext/build.js.map +0 -1
- package/dist/cli/capabilityContext/closeout.js.map +0 -1
- package/dist/cli/capabilityContext/contract.js.map +0 -1
- package/dist/cli/capabilityContext/evidence.js.map +0 -1
- package/dist/cli/capabilityContext/index.js.map +0 -1
- package/dist/cli/capabilityContext/orchestration.js.map +0 -1
- package/dist/cli/capabilityContext/planState.js.map +0 -1
- package/dist/cli/capabilityContext/progress.js.map +0 -1
- package/dist/cli/capabilityContext/projectVerification.js.map +0 -1
- package/dist/cli/capabilityContext/shared.js.map +0 -1
- package/dist/cli/capabilityContext/slim.js.map +0 -1
- package/dist/cli/capabilityContext/startup.js.map +0 -1
- package/dist/cli/capabilityContext/types.js.map +0 -1
- package/dist/cli/capabilityContext.js.map +0 -1
- package/dist/cli/commands/appHome.js.map +0 -1
- package/dist/cli/commands/capability.js.map +0 -1
- package/dist/cli/commands/compact.js.map +0 -1
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/durability.js.map +0 -1
- package/dist/cli/commands/entityMigrate.js +0 -132
- package/dist/cli/commands/entityMigrate.js.map +0 -1
- package/dist/cli/commands/glossaryAdvice.js.map +0 -1
- package/dist/cli/commands/lint.js.map +0 -1
- package/dist/cli/commands/personalGlossary.js.map +0 -1
- package/dist/cli/commands/prime/briefOrientation.js.map +0 -1
- package/dist/cli/commands/prime/buildExecutionRequest.js.map +0 -1
- package/dist/cli/commands/prime/bundleStatus.js.map +0 -1
- package/dist/cli/commands/prime/collectEntityOrientation.js.map +0 -1
- package/dist/cli/commands/prime/collectOrientationState.js.map +0 -1
- package/dist/cli/commands/prime/orientationOutput.js.map +0 -1
- package/dist/cli/commands/prime/types.js.map +0 -1
- package/dist/cli/commands/prime/v1Migration.js.map +0 -1
- package/dist/cli/commands/prime.js.map +0 -1
- package/dist/cli/commands/profileGrounding.js.map +0 -1
- package/dist/cli/commands/query.js.map +0 -1
- package/dist/cli/commands/report.js.map +0 -1
- package/dist/cli/commands/route.js.map +0 -1
- package/dist/cli/commands/schema.js.map +0 -1
- package/dist/cli/commands/state/decisions.js.map +0 -1
- package/dist/cli/commands/state/docs.js.map +0 -1
- package/dist/cli/commands/state/experimentRecords.js.map +0 -1
- package/dist/cli/commands/state/experiments.js.map +0 -1
- package/dist/cli/commands/state/get.js.map +0 -1
- package/dist/cli/commands/state/health.js.map +0 -1
- package/dist/cli/commands/state/index.js.map +0 -1
- package/dist/cli/commands/state/list.js.map +0 -1
- package/dist/cli/commands/state/objective.js.map +0 -1
- package/dist/cli/commands/state/plan.js.map +0 -1
- package/dist/cli/commands/state/planTasks.js.map +0 -1
- package/dist/cli/commands/state/plans.js.map +0 -1
- package/dist/cli/commands/state/progress.js.map +0 -1
- package/dist/cli/commands/state/shared.js.map +0 -1
- package/dist/cli/commands/state/todo.js.map +0 -1
- package/dist/cli/commands/state/write.js.map +0 -1
- package/dist/cli/commands/upgrade.js.map +0 -1
- package/dist/cli/commands/upgradeVerify.js.map +0 -1
- package/dist/cli/commands/validate.js.map +0 -1
- package/dist/cli/commands/verify.js.map +0 -1
- package/dist/cli/contracts/bundleStatus.js.map +0 -1
- package/dist/cli/contracts/orientationState.js.map +0 -1
- package/dist/cli/dispatch/argvParser.js.map +0 -1
- package/dist/cli/dispatch/check.js.map +0 -1
- package/dist/cli/dispatch/commands.js.map +0 -1
- package/dist/cli/dispatch/index.js.map +0 -1
- package/dist/cli/dispatch/lifecycle.js.map +0 -1
- package/dist/cli/dispatch/prime.js.map +0 -1
- package/dist/cli/dispatch/shared.js.map +0 -1
- package/dist/cli/dispatch/state.js.map +0 -1
- package/dist/cli/dispatch.js.map +0 -1
- package/dist/cli/errors.js.map +0 -1
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/migrationRequired.js.map +0 -1
- package/dist/cli/orientation/attention.js.map +0 -1
- package/dist/cli/orientation/corpusCoverage.js.map +0 -1
- package/dist/cli/orientation.js.map +0 -1
- package/dist/cli/planArtifacts.js.map +0 -1
- package/dist/cli/planEvidence.js.map +0 -1
- package/dist/cli/planLifecycleState.js.map +0 -1
- package/dist/cli/planTaskIndex.js.map +0 -1
- package/dist/cli/prime-blob.js.map +0 -1
- package/dist/cli/profileAcquisition.js.map +0 -1
- package/dist/cli/startupCompletenessContract.js.map +0 -1
- package/dist/cli/stateQuery.js.map +0 -1
- package/dist/cli/structured.js.map +0 -1
- package/dist/cli/todoMarkdown.js.map +0 -1
- package/dist/cli/todoReadinessSelection.js.map +0 -1
- package/dist/cli/todoSeverity.js.map +0 -1
- package/dist/core/atomicWriter.js.map +0 -1
- package/dist/core/difflib.js.map +0 -1
- package/dist/core/envPaths.js.map +0 -1
- package/dist/core/jsonValue.js.map +0 -1
- package/dist/core/paths.js.map +0 -1
- package/dist/core/pyjson.js.map +0 -1
- package/dist/core/shell.js.map +0 -1
- package/dist/core/skillIdentity.js.map +0 -1
- package/dist/core/sourceRoot.js.map +0 -1
- package/dist/core/text.js.map +0 -1
- package/dist/core/toml.js.map +0 -1
- package/dist/core/yaml.js.map +0 -1
- package/dist/eval/evalSkills.js.map +0 -1
- package/dist/eval/hybridRouteEvaluation.js.map +0 -1
- package/dist/eval/semanticEval.js.map +0 -1
- package/dist/eval/semanticFixtures.js.map +0 -1
- package/dist/hooks/common.js.map +0 -1
- package/dist/hooks/compaction/apply.js.map +0 -1
- package/dist/hooks/compaction/dryRun.js.map +0 -1
- package/dist/hooks/compaction/index.js.map +0 -1
- package/dist/hooks/compaction/parse.js.map +0 -1
- package/dist/hooks/compaction/retention.js.map +0 -1
- package/dist/hooks/compaction/status.js.map +0 -1
- package/dist/hooks/compaction/types.js.map +0 -1
- package/dist/hooks/cursorPreToolUse.js +0 -19
- package/dist/hooks/cursorPreToolUse.js.map +0 -1
- package/dist/hooks/cursorSessionStart.js +0 -64
- package/dist/hooks/cursorSessionStart.js.map +0 -1
- package/dist/hooks/projectHookInput.js +0 -26
- package/dist/hooks/projectHookInput.js.map +0 -1
- package/dist/hooks/sessionStart.js +0 -94
- package/dist/hooks/sessionStart.js.map +0 -1
- package/dist/hooks/sessionStop.js +0 -198
- package/dist/hooks/sessionStop.js.map +0 -1
- package/dist/hooks/validateArtifact/agentFacing.js.map +0 -1
- package/dist/hooks/validateArtifact/index.js.map +0 -1
- package/dist/hooks/validateArtifact/markdown.js.map +0 -1
- package/dist/hooks/validateArtifact/runtime.js +0 -86
- package/dist/hooks/validateArtifact/runtime.js.map +0 -1
- package/dist/hooks/validateArtifact/schema.js.map +0 -1
- package/dist/hooks/validateArtifact/traversal.js.map +0 -1
- package/dist/hooks/validateArtifact/violations.js.map +0 -1
- package/dist/migrate/v2HandoffManifest.js.map +0 -1
- package/dist/registries/artifactProtocolIds.js.map +0 -1
- package/dist/registries/artifactRegistry.js.map +0 -1
- package/dist/registries/artifactSchemaProjection.js.map +0 -1
- package/dist/registries/capabilityContract.js.map +0 -1
- package/dist/registries/evaluatorHandoffContract.js.map +0 -1
- package/dist/registries/evidenceTierContract.js.map +0 -1
- package/dist/registries/glossaryAdviceContract.js.map +0 -1
- package/dist/registries/glossaryCaveatContract.js.map +0 -1
- package/dist/registries/glossaryConsumerContractValidation.js.map +0 -1
- package/dist/registries/glossaryEntryContract.js.map +0 -1
- package/dist/registries/glossaryTermIdentity.js.map +0 -1
- package/dist/registries/glossaryTermOccurrence.js.map +0 -1
- package/dist/registries/hybridRoute.js.map +0 -1
- package/dist/registries/hybridRouteReceipt.js.map +0 -1
- package/dist/registries/packageRegistry.js.map +0 -1
- package/dist/registries/todoReadinessContract.js.map +0 -1
- package/dist/registries/triggerLoader.js.map +0 -1
- package/dist/registries/verbosityBudgetContract.js.map +0 -1
- package/dist/release/releaseMetadata.js.map +0 -1
- package/dist/runtime/lifecycleAdapterContract.js.map +0 -1
- package/dist/runtime/lifecycleAdapters.js.map +0 -1
- package/dist/runtime/lifecycleAuthority.js.map +0 -1
- package/dist/runtime/lifecycleOperationContract.js.map +0 -1
- package/dist/runtime/lifecycleOperations.js.map +0 -1
- package/dist/runtime/lifecycleOwnershipJournal.js.map +0 -1
- package/dist/runtime/lifecyclePublication.js.map +0 -1
- package/dist/runtime/lifecycleSnapshot.js.map +0 -1
- package/dist/runtime/nativeResourceCleanup.js.map +0 -1
- package/dist/setup/codex/cli.js +0 -130
- package/dist/setup/codex/cli.js.map +0 -1
- package/dist/setup/codex/configToml.js +0 -558
- package/dist/setup/codex/configToml.js.map +0 -1
- package/dist/setup/codex/constants.js +0 -14
- package/dist/setup/codex/constants.js.map +0 -1
- package/dist/setup/codex/installRoot.js +0 -64
- package/dist/setup/codex/installRoot.js.map +0 -1
- package/dist/setup/codex/state.js +0 -252
- package/dist/setup/codex/state.js.map +0 -1
- package/dist/setup/codex.js +0 -10
- package/dist/setup/codex.js.map +0 -1
- package/dist/setup/opencode.js.map +0 -1
- package/dist/setup/opencodeConstants.js.map +0 -1
- package/dist/setup/sharedSkill.js.map +0 -1
- package/dist/setup/smokeChecks.js.map +0 -1
- package/dist/state/archiveDiscovery.js.map +0 -1
- package/dist/state/archivePublication.js.map +0 -1
- package/dist/state/archiveRecovery.js.map +0 -1
- package/dist/state/archiveReplay.js.map +0 -1
- package/dist/state/canonicalMigrationRecord.js.map +0 -1
- package/dist/state/changelog.js.map +0 -1
- package/dist/state/decisionEntities.js.map +0 -1
- package/dist/state/decisionLegacyValidation.js.map +0 -1
- package/dist/state/decisionMigrationProvenance.js.map +0 -1
- package/dist/state/decisionOverlay.js.map +0 -1
- package/dist/state/decisionRevision.js.map +0 -1
- package/dist/state/decisionRevisionMigration.js.map +0 -1
- package/dist/state/directRetrieval.js.map +0 -1
- package/dist/state/durability.js.map +0 -1
- package/dist/state/entityCutover.js.map +0 -1
- package/dist/state/entityCutoverGit.js.map +0 -1
- package/dist/state/entityGlossaryAuthority.js.map +0 -1
- package/dist/state/entityListProjection.js.map +0 -1
- package/dist/state/entityListRuntimeRegistry.js.map +0 -1
- package/dist/state/entityMigrationCausality.js.map +0 -1
- package/dist/state/entityMigrationIdentity.js.map +0 -1
- package/dist/state/entityMigrationPreview.js.map +0 -1
- package/dist/state/entityPublicationContext.js.map +0 -1
- package/dist/state/entityRetrievalHelp.js.map +0 -1
- package/dist/state/entityStorage.js.map +0 -1
- package/dist/state/exactReplacementRecovery.js.map +0 -1
- package/dist/state/experimentArchive.js.map +0 -1
- package/dist/state/experimentIdentity.js.map +0 -1
- package/dist/state/healthEntities.js.map +0 -1
- package/dist/state/healthEntityValidation.js.map +0 -1
- package/dist/state/healthRepair.js.map +0 -1
- package/dist/state/installRoot.js.map +0 -1
- package/dist/state/legacyEntityCutoverEvidence.js.map +0 -1
- package/dist/state/legacyIdentity.js.map +0 -1
- package/dist/state/legacySummaryRecord.js.map +0 -1
- package/dist/state/listAccounting.js.map +0 -1
- package/dist/state/listClassification.js.map +0 -1
- package/dist/state/listCursor.js.map +0 -1
- package/dist/state/listRetrieval.js.map +0 -1
- package/dist/state/migrationSourceBinding.js.map +0 -1
- package/dist/state/objectiveExperimentEntities.js.map +0 -1
- package/dist/state/planEntities.js.map +0 -1
- package/dist/state/planIdentity.js.map +0 -1
- package/dist/state/planRetrieval.js.map +0 -1
- package/dist/state/planTaskRetrieval.js.map +0 -1
- package/dist/state/progressEntities.js.map +0 -1
- package/dist/state/progressGlossaryCaveat.js.map +0 -1
- package/dist/state/progressPublicationOrder.js.map +0 -1
- package/dist/state/projectRoot.js.map +0 -1
- package/dist/state/projectionPolicy.js.map +0 -1
- package/dist/state/retrievalAuthority.js.map +0 -1
- package/dist/state/safeProjectFile.js.map +0 -1
- package/dist/state/startupAnalysis/benchmark.js.map +0 -1
- package/dist/state/startupAnalysis/contract.js.map +0 -1
- package/dist/state/startupAnalysis/helpers.js.map +0 -1
- package/dist/state/startupAnalysis/index.js.map +0 -1
- package/dist/state/startupAnalysis/metrics.js.map +0 -1
- package/dist/state/startupAnalysis/records.js.map +0 -1
- package/dist/state/startupAnalysis/report.js.map +0 -1
- package/dist/state/startupAnalysis/threshold.js.map +0 -1
- package/dist/state/startupAnalysis.js.map +0 -1
- package/dist/state/startupProjection.js.map +0 -1
- package/dist/state/stateMode.js.map +0 -1
- package/dist/state/stateStorageAuthority.js.map +0 -1
- package/dist/state/summaryEntityRead.js.map +0 -1
- package/dist/state/summaryMigrationProvenance.js.map +0 -1
- package/dist/state/summarySourceRowAuthority.js.map +0 -1
- package/dist/state/todoDocsEntities.js.map +0 -1
- package/dist/state/todoDocsEntityValidation.js.map +0 -1
- package/dist/state/todoReconciliationActivation.js.map +0 -1
- package/dist/state/todoReconciliationTransaction.js.map +0 -1
- package/dist/state/write/assign.js.map +0 -1
- package/dist/state/write/candidateMutation.js.map +0 -1
- package/dist/state/write/errors.js.map +0 -1
- package/dist/state/write/experimentPublication.js.map +0 -1
- package/dist/state/write/explain.js.map +0 -1
- package/dist/state/write/fields.js.map +0 -1
- package/dist/state/write/glossaryPublication.js.map +0 -1
- package/dist/state/write/grammar.js.map +0 -1
- package/dist/state/write/helpers.js.map +0 -1
- package/dist/state/write/index.js.map +0 -1
- package/dist/state/write/input.js.map +0 -1
- package/dist/state/write/lock.js.map +0 -1
- package/dist/state/write/mutation.js.map +0 -1
- package/dist/state/write/operations.js.map +0 -1
- package/dist/state/write/planEvaluation.js.map +0 -1
- package/dist/state/write/planPublication.js.map +0 -1
- package/dist/state/write/runtimeOperations.js.map +0 -1
- package/dist/state/write/serialize.js.map +0 -1
- package/dist/state/write/transaction.js.map +0 -1
- package/dist/state/write/validate.js.map +0 -1
- package/dist/upgrade/appContentRefresh.js.map +0 -1
- package/dist/upgrade/appModel.js.map +0 -1
- package/dist/upgrade/atomicWriter.js.map +0 -1
- package/dist/upgrade/bundleEvidence.js.map +0 -1
- package/dist/upgrade/channels.js.map +0 -1
- package/dist/upgrade/coexistenceProbe.js +0 -105
- package/dist/upgrade/coexistenceProbe.js.map +0 -1
- package/dist/upgrade/compatibility.js.map +0 -1
- package/dist/upgrade/doctor.js.map +0 -1
- package/dist/upgrade/doctorClassifier.js.map +0 -1
- package/dist/upgrade/installedHooksRetirement.js.map +0 -1
- package/dist/upgrade/legacyAgentCleanup.js.map +0 -1
- package/dist/upgrade/lifecycleUpgrade.js.map +0 -1
- package/dist/upgrade/migrateArtifactsV2ToV3.js.map +0 -1
- package/dist/upgrade/migrationPublication.js.map +0 -1
- package/dist/upgrade/nextMajorDoctor.js.map +0 -1
- package/dist/upgrade/npxPlatformStatus.js.map +0 -1
- package/dist/upgrade/projectIntegration.js.map +0 -1
- package/dist/upgrade/projectIntegrationDecision.js.map +0 -1
- package/dist/upgrade/runtimeMigration.js.map +0 -1
- package/dist/upgrade/upgradeCommands.js.map +0 -1
- package/dist/upgrade/upgradeLock.js.map +0 -1
- package/dist/upgrade/upgradeOrchestrator.js.map +0 -1
- package/dist/upgrade/v3CapabilitySurface.js.map +0 -1
- package/dist/upgrade/versionResolution.js.map +0 -1
- package/dist/validate/appHomeContract.js.map +0 -1
- package/dist/validate/capability.js.map +0 -1
- package/dist/validate/crossCapability.js.map +0 -1
- package/dist/validate/selfAudit.js.map +0 -1
- package/dist/validate/v1LegacyCruft.js.map +0 -1
- package/dist/validate/vocabularyAuthority.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cmdLint } from "../commands/lint.js";
|
|
2
2
|
import { cmdCompact } from "../commands/compact.js";
|
|
3
3
|
import { cmdSchema } from "../commands/schema.js";
|
|
4
|
-
import { cmdValidate, cmdValidateCapability, cmdValidateCapabilityContract, cmdValidateArtifact, cmdValidateState, isDelegatedValidateFamily, } from "../commands/validate.js";
|
|
4
|
+
import { cmdValidate, cmdValidateCapability, cmdValidateCapabilityContract, cmdValidateArtifact, cmdValidateState, isDelegatedValidateFamily, VALIDATE_FAMILY_NAMES, cmdValidateActivationConjunction, } from "../commands/validate.js";
|
|
5
5
|
import { makeArgvValueReader } from "./argvParser.js";
|
|
6
6
|
import { asEnvelopeFormat, classifyParseError, detectTopLevelFormat } from "./shared.js";
|
|
7
7
|
import { emitInvalidInput } from "../errors.js";
|
|
@@ -270,17 +270,7 @@ export function runValidate(argv, io, prog) {
|
|
|
270
270
|
body: {
|
|
271
271
|
class: "missing_argument",
|
|
272
272
|
message: "the following arguments are required: validate_family",
|
|
273
|
-
valid_values: [
|
|
274
|
-
"cross-capability",
|
|
275
|
-
"app-home-contract",
|
|
276
|
-
"vocabularyAuthority",
|
|
277
|
-
"selfAudit",
|
|
278
|
-
"release-metadata",
|
|
279
|
-
"capability",
|
|
280
|
-
"capability-contract",
|
|
281
|
-
"artifact",
|
|
282
|
-
"state",
|
|
283
|
-
],
|
|
273
|
+
valid_values: [...VALIDATE_FAMILY_NAMES],
|
|
284
274
|
example: "agentera check validate cross-capability",
|
|
285
275
|
},
|
|
286
276
|
});
|
|
@@ -302,6 +292,9 @@ export function runValidate(argv, io, prog) {
|
|
|
302
292
|
if (family === "capability-contract") {
|
|
303
293
|
return cmdValidateCapabilityContract({ format }, io);
|
|
304
294
|
}
|
|
295
|
+
if (family === "activation-conjunction") {
|
|
296
|
+
return cmdValidateActivationConjunction(io);
|
|
297
|
+
}
|
|
305
298
|
if (family === "artifact") {
|
|
306
299
|
if (artifactFlag === null) {
|
|
307
300
|
return emitInvalidInput(io, {
|
|
@@ -326,17 +319,7 @@ export function runValidate(argv, io, prog) {
|
|
|
326
319
|
body: {
|
|
327
320
|
class: "unsupported_target",
|
|
328
321
|
message: `unsupported validate family '${family}'; valid families are listed in valid_values.`,
|
|
329
|
-
valid_values: [
|
|
330
|
-
"cross-capability",
|
|
331
|
-
"app-home-contract",
|
|
332
|
-
"vocabularyAuthority",
|
|
333
|
-
"selfAudit",
|
|
334
|
-
"release-metadata",
|
|
335
|
-
"capability",
|
|
336
|
-
"capability-contract",
|
|
337
|
-
"artifact",
|
|
338
|
-
"state",
|
|
339
|
-
],
|
|
322
|
+
valid_values: [...VALIDATE_FAMILY_NAMES],
|
|
340
323
|
},
|
|
341
324
|
});
|
|
342
325
|
}
|
|
@@ -387,4 +370,3 @@ export function runSchema(argv, io, prog) {
|
|
|
387
370
|
});
|
|
388
371
|
}
|
|
389
372
|
}
|
|
390
|
-
//# sourceMappingURL=check.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CAPABILITY_ROUTING_NAMES } from "../commands/capability.js";
|
|
2
|
+
import { DIAGNOSTIC_TOP_LEVEL_COMMANDS } from "./projections.js";
|
|
2
3
|
/**
|
|
3
4
|
* Top-level commands routed by `dispatch/main` (includes migration aliases still
|
|
4
5
|
* accepted at the CLI surface).
|
|
@@ -12,7 +13,6 @@ export const DISPATCHER_TOP_LEVEL_COMMANDS = [
|
|
|
12
13
|
"verify",
|
|
13
14
|
"report",
|
|
14
15
|
"stats",
|
|
15
|
-
"hook",
|
|
16
16
|
"schema",
|
|
17
17
|
"lint",
|
|
18
18
|
"check",
|
|
@@ -20,8 +20,8 @@ export const DISPATCHER_TOP_LEVEL_COMMANDS = [
|
|
|
20
20
|
"query",
|
|
21
21
|
"compact",
|
|
22
22
|
"validate",
|
|
23
|
+
"route",
|
|
23
24
|
...CAPABILITY_ROUTING_NAMES,
|
|
24
25
|
];
|
|
25
26
|
/** Set view for doctor in-process CLI probe checks. */
|
|
26
|
-
export const DISPATCHER_COMMANDS = new Set(
|
|
27
|
-
//# sourceMappingURL=commands.js.map
|
|
27
|
+
export const DISPATCHER_COMMANDS = new Set(DIAGNOSTIC_TOP_LEVEL_COMMANDS);
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { runEntityMigrate } from "../commands/entityMigrate.js";
|
|
2
1
|
import { CAPABILITY_ROUTING_NAMES } from "../commands/capability.js";
|
|
3
2
|
import { runRouteEvaluation, runRouteReceipt, runRouteRequest } from "../commands/route.js";
|
|
3
|
+
import { preCutoverCommand } from "../preCutoverCommand.js";
|
|
4
4
|
import { printCommandHelp, printStateHelp, printTopLevelHelp, splitHelpArgs, stateCommandNames, } from "../help.js";
|
|
5
5
|
import { compactModeOf, runCompact, runDurability, runLint, runSchema, runValidate, } from "./check.js";
|
|
6
6
|
import { runQuery, runState } from "./state.js";
|
|
7
7
|
import { entityListFamily } from "../../state/entityRetrievalHelp.js";
|
|
8
8
|
import { ENTITY_LIST_RUNTIME_FAMILIES, runtimeEntityFamiliesForCommand } from "../../state/entityListRuntimeRegistry.js";
|
|
9
9
|
import { runCapability, runPrime } from "./prime.js";
|
|
10
|
-
import { runAppHome, runDoctor, runGate,
|
|
10
|
+
import { runAppHome, runDoctor, runGate, runReport, runUpgrade, runUsage, runVerify, runVersion, } from "./lifecycle.js";
|
|
11
11
|
import { detectTopLevelFormat, emitDeprecationAlias } from "./shared.js";
|
|
12
12
|
import { emitInvalidInput } from "../errors.js";
|
|
13
13
|
import { verbsForArtifact } from "../../state/write/operations.js";
|
|
14
14
|
import { REMOVED_TOP_LEVEL_CORRECTIONS } from "../commands/schema.js";
|
|
15
15
|
import { enforceCompletedEntityCutover, migrationProject, requestedMigrationFailureFormat, requiresCompletedEntityCutover, } from "../migrationRequired.js";
|
|
16
|
-
import { isProjectBoundHook, parseProjectHookInput } from "../../hooks/projectHookInput.js";
|
|
17
16
|
export function main(argv, io = {}) {
|
|
18
17
|
const err = io.err ?? ((t) => process.stderr.write(t));
|
|
19
18
|
const out = io.out ?? ((t) => process.stdout.write(t));
|
|
@@ -60,14 +59,11 @@ export function main(argv, io = {}) {
|
|
|
60
59
|
},
|
|
61
60
|
});
|
|
62
61
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
if (requiresCompletedEntityCutover(args)) {
|
|
70
|
-
const failure = enforceCompletedEntityCutover(projectHookInput?.projectRoot ?? migrationProject(args), requestedMigrationFailureFormat(args), io);
|
|
62
|
+
// Retained-reference validation audits package source, not project state. It
|
|
63
|
+
// must report its source-checkout boundary before project migration checks.
|
|
64
|
+
const sourceOnlyReferenceValidation = args[0] === "check" && args[1] === "validate" && ["retained-references", "activation-conjunction"].includes(args[2] ?? "");
|
|
65
|
+
if (!sourceOnlyReferenceValidation && requiresCompletedEntityCutover(args)) {
|
|
66
|
+
const failure = enforceCompletedEntityCutover(migrationProject(args), requestedMigrationFailureFormat(args), io);
|
|
71
67
|
if (failure !== null)
|
|
72
68
|
return failure;
|
|
73
69
|
}
|
|
@@ -93,26 +89,6 @@ export function main(argv, io = {}) {
|
|
|
93
89
|
case "stats":
|
|
94
90
|
emitDeprecationAlias("stats", "report", err);
|
|
95
91
|
return runReport(rest, io, "agentera stats");
|
|
96
|
-
case "hook": {
|
|
97
|
-
const name = rest[0];
|
|
98
|
-
if (!name) {
|
|
99
|
-
return emitInvalidInput(io, {
|
|
100
|
-
format: "text",
|
|
101
|
-
body: {
|
|
102
|
-
class: "missing_argument",
|
|
103
|
-
message: "the following arguments are required: hook_name",
|
|
104
|
-
valid_values: [
|
|
105
|
-
"session-start",
|
|
106
|
-
"session-stop",
|
|
107
|
-
"cursor-session-start",
|
|
108
|
-
"cursor-pre-tool-use",
|
|
109
|
-
"validate-artifact",
|
|
110
|
-
],
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
return runHook(name, rest.slice(1), io, projectHookInput);
|
|
115
|
-
}
|
|
116
92
|
case "schema":
|
|
117
93
|
return runSchema(rest, io, "agentera schema");
|
|
118
94
|
case "lint":
|
|
@@ -175,8 +151,6 @@ export function main(argv, io = {}) {
|
|
|
175
151
|
}
|
|
176
152
|
if (sub === "query")
|
|
177
153
|
return runQuery(rest.slice(1), io, "agentera state query");
|
|
178
|
-
if (sub === "migrate" && rest[1] === "entities")
|
|
179
|
-
return runEntityMigrate(rest.slice(2), io);
|
|
180
154
|
if (runtimeEntityFamiliesForCommand(sub).length > 0 || verbsForArtifact(sub).some((verb) => verb === rest[1]))
|
|
181
155
|
return runState(sub, rest.slice(1), io, `agentera state ${sub}`);
|
|
182
156
|
return emitInvalidInput(io, {
|
|
@@ -206,8 +180,8 @@ export function main(argv, io = {}) {
|
|
|
206
180
|
class: "unsupported_target",
|
|
207
181
|
message: "route requires the request subcommand",
|
|
208
182
|
valid_values: ["request", "receipt", "evaluate"],
|
|
209
|
-
syntax: "
|
|
210
|
-
example: "
|
|
183
|
+
syntax: `${preCutoverCommand("route <request|receipt> --input PATH --format json")} | ${preCutoverCommand("route evaluate --format json")}`,
|
|
184
|
+
example: preCutoverCommand("route receipt --input - --format json"),
|
|
211
185
|
},
|
|
212
186
|
});
|
|
213
187
|
case "compact":
|
|
@@ -231,4 +205,3 @@ export function main(argv, io = {}) {
|
|
|
231
205
|
});
|
|
232
206
|
}
|
|
233
207
|
}
|
|
234
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import fsForHooks from "node:fs";
|
|
2
1
|
import fs from "node:fs";
|
|
3
2
|
import path from "node:path";
|
|
4
3
|
import { fileURLToPath } from "node:url";
|
|
@@ -11,11 +10,7 @@ import { cmdReport } from "../commands/report.js";
|
|
|
11
10
|
import { runGlossaryAdviceCommand } from "../commands/glossaryAdvice.js";
|
|
12
11
|
import { runPersonalGlossaryCommand } from "../commands/personalGlossary.js";
|
|
13
12
|
import { runProfileGroundingCommand } from "../commands/profileGrounding.js";
|
|
14
|
-
import {
|
|
15
|
-
import { runSessionStop } from "../../hooks/sessionStop.js";
|
|
16
|
-
import { runCursorSessionStart } from "../../hooks/cursorSessionStart.js";
|
|
17
|
-
import { runCursorPreToolUse } from "../../hooks/cursorPreToolUse.js";
|
|
18
|
-
import { HookCliAdapter } from "../../hooks/validateArtifact/index.js";
|
|
13
|
+
import { preCutoverCommand } from "../preCutoverCommand.js";
|
|
19
14
|
import { usageMain } from "../../analytics/usageStats.js";
|
|
20
15
|
import { validatePathValue } from "../argvalidate.js";
|
|
21
16
|
import { printAppHomeHelp, printDoctorHelp, printUpgradeHelp, wantsHelp } from "../help.js";
|
|
@@ -25,7 +20,7 @@ import { asEnvelopeFormat, classifyParseError, detectTopLevelFormat, emitDepreca
|
|
|
25
20
|
import { emitInvalidInput } from "../errors.js";
|
|
26
21
|
import { migrationProject } from "../migrationRequired.js";
|
|
27
22
|
import { fullEntityUpgradeCommand } from "../../upgrade/upgradeCommands.js";
|
|
28
|
-
import { nativeResourceCleanupIds } from "../../runtime/nativeResourceCleanup.js";
|
|
23
|
+
import { nativeResourceCleanupIds, resolveNativeResourceCleanupId } from "../../runtime/nativeResourceCleanup.js";
|
|
29
24
|
function rejectUnsupportedUpgradeFlag(io, format, message, recovery) {
|
|
30
25
|
return emitInvalidInput(io, {
|
|
31
26
|
format: asEnvelopeFormat(format),
|
|
@@ -115,6 +110,7 @@ export function runDoctor(argv, io, prog) {
|
|
|
115
110
|
project: null,
|
|
116
111
|
expectedVersion: null,
|
|
117
112
|
expectCommand: [],
|
|
113
|
+
retiredResource: null,
|
|
118
114
|
smoke: false,
|
|
119
115
|
allowLiveModel: false,
|
|
120
116
|
format: "text",
|
|
@@ -137,6 +133,8 @@ export function runDoctor(argv, io, prog) {
|
|
|
137
133
|
args.expectedVersion = v;
|
|
138
134
|
else if ((v = value("--expect-command")) !== null)
|
|
139
135
|
args.expectCommand.push(v);
|
|
136
|
+
else if ((v = value("--retired-resource")) !== null)
|
|
137
|
+
args.retiredResource = v;
|
|
140
138
|
else if ((v = value("--format")) !== null) {
|
|
141
139
|
if (v !== "text" && v !== "json") {
|
|
142
140
|
return emitInvalidInput(io, {
|
|
@@ -177,50 +175,6 @@ export function runDoctor(argv, io, prog) {
|
|
|
177
175
|
});
|
|
178
176
|
}
|
|
179
177
|
}
|
|
180
|
-
export function readStdin() {
|
|
181
|
-
try {
|
|
182
|
-
return fsForHooks.readFileSync(0, "utf8");
|
|
183
|
-
}
|
|
184
|
-
catch {
|
|
185
|
-
return "";
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
export function runHook(name, argv, io, projectInput) {
|
|
189
|
-
const err = io.err ?? ((t) => process.stderr.write(t));
|
|
190
|
-
const raw = projectInput?.raw ?? (io.stdin ? io.stdin() : readStdin());
|
|
191
|
-
// Each hook owns its own stdout newline convention; do not wrap stdout here.
|
|
192
|
-
switch (name) {
|
|
193
|
-
case "session-start":
|
|
194
|
-
return runSessionStart(projectInput ?? raw, { out: io.out, err: io.err });
|
|
195
|
-
case "session-stop":
|
|
196
|
-
return runSessionStop(projectInput ?? raw);
|
|
197
|
-
case "cursor-session-start":
|
|
198
|
-
return runCursorSessionStart(projectInput ?? raw, { out: io.out, err: io.err });
|
|
199
|
-
case "cursor-pre-tool-use":
|
|
200
|
-
return runCursorPreToolUse(raw);
|
|
201
|
-
case "validate-artifact": {
|
|
202
|
-
const [rc, violations] = new HookCliAdapter().run(raw, null);
|
|
203
|
-
for (const v of violations)
|
|
204
|
-
err(`${v}\n`);
|
|
205
|
-
return rc;
|
|
206
|
-
}
|
|
207
|
-
default:
|
|
208
|
-
return emitInvalidInput(io, {
|
|
209
|
-
format: "text",
|
|
210
|
-
body: {
|
|
211
|
-
class: "unsupported_target",
|
|
212
|
-
message: `unknown hook '${name}'`,
|
|
213
|
-
valid_values: [
|
|
214
|
-
"session-start",
|
|
215
|
-
"session-stop",
|
|
216
|
-
"cursor-session-start",
|
|
217
|
-
"cursor-pre-tool-use",
|
|
218
|
-
"validate-artifact",
|
|
219
|
-
],
|
|
220
|
-
},
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
178
|
export function runUsage(argv, io, prog) {
|
|
225
179
|
const realOut = io.out ?? ((t) => process.stdout.write(t));
|
|
226
180
|
const realErr = io.err ?? ((t) => process.stderr.write(t));
|
|
@@ -341,7 +295,8 @@ export function runUpgrade(argv, io, prog) {
|
|
|
341
295
|
}
|
|
342
296
|
else if ((v = value("--legacy-cleanup")) !== null) {
|
|
343
297
|
const validValues = nativeResourceCleanupIds();
|
|
344
|
-
|
|
298
|
+
const selectedResource = resolveNativeResourceCleanupId(v);
|
|
299
|
+
if (!selectedResource) {
|
|
345
300
|
return emitInvalidInput(io, {
|
|
346
301
|
format: asEnvelopeFormat(args.format),
|
|
347
302
|
body: {
|
|
@@ -351,7 +306,7 @@ export function runUpgrade(argv, io, prog) {
|
|
|
351
306
|
},
|
|
352
307
|
});
|
|
353
308
|
}
|
|
354
|
-
args.legacyCleanup =
|
|
309
|
+
args.legacyCleanup = selectedResource.id;
|
|
355
310
|
}
|
|
356
311
|
else if ((v = value("--only")) !== null) {
|
|
357
312
|
if (v !== "artifacts" && v !== "runtime" && v !== "cleanup") {
|
|
@@ -495,7 +450,7 @@ export function runReport(argv, io, prog) {
|
|
|
495
450
|
class: "unsupported_target",
|
|
496
451
|
message: "glossary-advice has no stats alias",
|
|
497
452
|
valid_values: ["report glossary-advice"],
|
|
498
|
-
recovery:
|
|
453
|
+
recovery: `Run ${preCutoverCommand("report glossary-advice --input - --format json")}; no state was changed.`,
|
|
499
454
|
},
|
|
500
455
|
});
|
|
501
456
|
}
|
|
@@ -509,7 +464,7 @@ export function runReport(argv, io, prog) {
|
|
|
509
464
|
class: "unsupported_target",
|
|
510
465
|
message: "profile-grounding has no stats alias",
|
|
511
466
|
valid_values: ["report profile-grounding"],
|
|
512
|
-
recovery:
|
|
467
|
+
recovery: `Run ${preCutoverCommand("report profile-grounding --format json")}; no profile bytes were changed.`,
|
|
513
468
|
},
|
|
514
469
|
});
|
|
515
470
|
}
|
|
@@ -523,7 +478,7 @@ export function runReport(argv, io, prog) {
|
|
|
523
478
|
class: "unsupported_target",
|
|
524
479
|
message: "profile-glossary has no stats alias",
|
|
525
480
|
valid_values: ["report profile-glossary"],
|
|
526
|
-
recovery:
|
|
481
|
+
recovery: `Run ${preCutoverCommand("report profile-glossary --input PATH --format json")} with the same input; no profile bytes were changed.`,
|
|
527
482
|
},
|
|
528
483
|
});
|
|
529
484
|
}
|
|
@@ -695,4 +650,3 @@ export function runVersion(argv, io) {
|
|
|
695
650
|
}
|
|
696
651
|
return 0;
|
|
697
652
|
}
|
|
698
|
-
//# sourceMappingURL=lifecycle.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Independent production projections of the accepted top-level command set.
|
|
3
|
+
* They intentionally do not import the dispatcher inventory: activation must
|
|
4
|
+
* detect drift in diagnostics, packaged schema, or public instructions.
|
|
5
|
+
*/
|
|
6
|
+
export const DIAGNOSTIC_TOP_LEVEL_COMMANDS = Object.freeze([
|
|
7
|
+
"prime", "app-home", "doctor", "usage", "upgrade", "verify", "report", "stats", "schema", "lint", "check", "state", "query", "compact", "validate", "route",
|
|
8
|
+
"vision", "discuss", "research", "plan", "build", "optimize", "audit", "document", "profile", "design", "orchestrate",
|
|
9
|
+
]);
|
|
10
|
+
export const SCHEMA_TOP_LEVEL_COMMANDS = Object.freeze([
|
|
11
|
+
"prime", "app-home", "doctor", "usage", "upgrade", "verify", "report", "stats", "schema", "lint", "check", "state", "query", "compact", "validate", "route",
|
|
12
|
+
"vision", "discuss", "research", "plan", "build", "optimize", "audit", "document", "profile", "design", "orchestrate",
|
|
13
|
+
]);
|
|
14
|
+
export const HELP_TOP_LEVEL_COMMANDS = Object.freeze([
|
|
15
|
+
"prime", "app-home", "doctor", "usage", "upgrade", "verify", "report", "stats", "schema", "lint", "check", "state", "query", "compact", "validate", "route",
|
|
16
|
+
"vision", "discuss", "research", "plan", "build", "optimize", "audit", "document", "profile", "design", "orchestrate",
|
|
17
|
+
]);
|
package/dist/cli/dispatch.js
CHANGED
package/dist/cli/errors.js
CHANGED
package/dist/cli/help.js
CHANGED
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
import { CAPABILITY_ROUTING_NAMES } from "./commands/capability.js";
|
|
2
2
|
import { verbsForArtifact, WRITABLE_ARTIFACTS } from "../state/write/operations.js";
|
|
3
|
-
import { entityMigrateHelp } from "./commands/entityMigrate.js";
|
|
4
3
|
import { personalGlossaryOutputContract } from "../registries/glossaryEntryContract.js";
|
|
4
|
+
import { describeRouteReceipt } from "../registries/hybridRoute.js";
|
|
5
|
+
import { advertisedValidateFamilyNames } from "./commands/validate.js";
|
|
5
6
|
import { entityListFamilies, entityRetrievalFamilyForHelpArgs } from "../state/entityRetrievalHelp.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"schema",
|
|
9
|
-
"route",
|
|
10
|
-
"state",
|
|
11
|
-
...CAPABILITY_ROUTING_NAMES,
|
|
12
|
-
"upgrade",
|
|
13
|
-
"app-home",
|
|
14
|
-
"doctor",
|
|
15
|
-
"report",
|
|
16
|
-
"check",
|
|
17
|
-
];
|
|
7
|
+
import { preCutoverCommand } from "./preCutoverCommand.js";
|
|
8
|
+
import { HELP_TOP_LEVEL_COMMANDS } from "./dispatch/projections.js";
|
|
18
9
|
function lines(title, items) {
|
|
19
10
|
return [title, ...items.map((item) => ` ${item}`), ""];
|
|
20
11
|
}
|
|
21
12
|
export function printTopLevelHelp() {
|
|
22
|
-
const choices =
|
|
13
|
+
const choices = HELP_TOP_LEVEL_COMMANDS.join(",");
|
|
23
14
|
const plans = entityListFamilies().find(({ key }) => key === "plans");
|
|
24
15
|
const planListExample = `agentera state ${plans.commandTokens.join(" ")} list --format json`;
|
|
25
16
|
return [
|
|
@@ -48,7 +39,12 @@ export function printTopLevelHelp() {
|
|
|
48
39
|
" -h, --help show this help message and exit",
|
|
49
40
|
" --version print the installed Agentera CLI version and exit",
|
|
50
41
|
"",
|
|
51
|
-
|
|
42
|
+
[
|
|
43
|
+
`Examples: ${preCutoverCommand("prime --context status --format json")}`,
|
|
44
|
+
` ${preCutoverCommand(planListExample.slice("agentera ".length))}`,
|
|
45
|
+
` ${preCutoverCommand("check verify eval skills --dry-run")}`,
|
|
46
|
+
` ${preCutoverCommand("report refresh --dry-run")}`,
|
|
47
|
+
].join("\n"),
|
|
52
48
|
].join("\n");
|
|
53
49
|
}
|
|
54
50
|
export function printUpgradeHelp() {
|
|
@@ -82,7 +78,8 @@ export function printUpgradeHelp() {
|
|
|
82
78
|
"active integration:",
|
|
83
79
|
" Agentera uses the shared skill at ~/.agents/skills/agentera plus the CLI.",
|
|
84
80
|
" Current runtime selectors and native plugin, hook, agent, command, descriptor, and marketplace writes are retired.",
|
|
85
|
-
|
|
81
|
+
` Native resource cleanup preview: ${preCutoverCommand("upgrade --legacy-cleanup RESOURCE_ID --dry-run")}`,
|
|
82
|
+
` Native resource cleanup apply: ${preCutoverCommand("upgrade --legacy-cleanup RESOURCE_ID --yes")}`,
|
|
86
83
|
].join("\n");
|
|
87
84
|
}
|
|
88
85
|
export function printAppHomeHelp() {
|
|
@@ -101,7 +98,7 @@ export function printAppHomeHelp() {
|
|
|
101
98
|
export function printDoctorHelp() {
|
|
102
99
|
return [
|
|
103
100
|
"usage: agentera doctor [-h] [--install-root PATH] [--home HOME] [--project PROJECT]",
|
|
104
|
-
" [--expected-version VERSION] [--expect-command CMD]",
|
|
101
|
+
" [--expected-version VERSION] [--expect-command CMD] [--retired-resource ID]",
|
|
105
102
|
" [--smoke] [--allow-live-model] [--format {text,json}]",
|
|
106
103
|
"",
|
|
107
104
|
"options:",
|
|
@@ -111,11 +108,12 @@ export function printDoctorHelp() {
|
|
|
111
108
|
" --project PROJECT Project directory context",
|
|
112
109
|
" --expected-version VER Expected app files version",
|
|
113
110
|
" --expect-command CMD Required CLI command probe; may be repeated",
|
|
111
|
+
" --retired-resource ID Read-only exact retired-resource diagnostic preview",
|
|
114
112
|
" --smoke Run bounded offline smoke checks (no live model calls by default)",
|
|
115
113
|
" --allow-live-model Record permission for future live model smoke probes",
|
|
116
114
|
" --format {text,json} Structured output format",
|
|
117
115
|
"",
|
|
118
|
-
"Reports read-only app, project-state, shared-skill, and CLI evidence.",
|
|
116
|
+
"Reports read-only app, project-state, shared-skill, and CLI evidence, plus retired-resource diagnostics.",
|
|
119
117
|
].join("\n");
|
|
120
118
|
}
|
|
121
119
|
function recordFamilyReadSection(command) {
|
|
@@ -139,8 +137,6 @@ function recordFamilyReadSection(command) {
|
|
|
139
137
|
}
|
|
140
138
|
export function printStateHelp(sub) {
|
|
141
139
|
const stateCommands = stateCommandNames();
|
|
142
|
-
if (sub === "migrate")
|
|
143
|
-
return entityMigrateHelp();
|
|
144
140
|
if (sub === "plan") {
|
|
145
141
|
return [
|
|
146
142
|
...recordFamilyReadSection("plan"),
|
|
@@ -203,6 +199,7 @@ export function printStateHelp(sub) {
|
|
|
203
199
|
if (sub === "todo") {
|
|
204
200
|
return [
|
|
205
201
|
...recordFamilyReadSection("todo"),
|
|
202
|
+
" agentera state todo activate|repair --dry-run|--effect-sha256 SHA256 --yes --format json",
|
|
206
203
|
" agentera state todo create --input TODO.yaml --format json",
|
|
207
204
|
" agentera state todo update --id ID --input TODO-PATCH.yaml --format json",
|
|
208
205
|
" agentera state todo set-severity --id ID --severity LEVEL --reason TEXT --date YYYY-MM-DD --format json",
|
|
@@ -338,7 +335,6 @@ export function stateCommandNames() {
|
|
|
338
335
|
return [...new Set([
|
|
339
336
|
...entityListFamilies().map(({ commandTokens }) => commandTokens[0]),
|
|
340
337
|
...WRITABLE_ARTIFACTS,
|
|
341
|
-
"migrate",
|
|
342
338
|
"query",
|
|
343
339
|
])];
|
|
344
340
|
}
|
|
@@ -351,6 +347,16 @@ export function printCheckHelp(sub) {
|
|
|
351
347
|
"use the stable Python line for smoke maintainer harnesses.",
|
|
352
348
|
].join("\n");
|
|
353
349
|
}
|
|
350
|
+
if (sub === "validate") {
|
|
351
|
+
return [
|
|
352
|
+
"usage: agentera check validate [-h] VALIDATE_FAMILY [options]",
|
|
353
|
+
"",
|
|
354
|
+
"Validate capabilities, state, and retained repository contracts.",
|
|
355
|
+
"",
|
|
356
|
+
"validate families:",
|
|
357
|
+
...advertisedValidateFamilyNames().map((family) => ["retained-references", "activation-conjunction"].includes(family) ? ` ${family} (source checkout only)` : ` ${family}`),
|
|
358
|
+
].join("\n");
|
|
359
|
+
}
|
|
354
360
|
if (sub === "durability") {
|
|
355
361
|
return [
|
|
356
362
|
"usage: agentera check durability [-h] [--project PATH] [--artifact ARTIFACT]",
|
|
@@ -434,7 +440,7 @@ export function printPrimeHelp() {
|
|
|
434
440
|
" --orientation Emit orientation briefing sections",
|
|
435
441
|
" --fields FIELDS Comma-separated field filter for JSON/YAML output",
|
|
436
442
|
"",
|
|
437
|
-
"JSON output uses bounded surfaces: bare prime is at most 12000 UTF-8 bytes and status context at most
|
|
443
|
+
"JSON output uses bounded surfaces: bare prime is at most 12000 UTF-8 bytes and status context at most 22500; startup contains one availability projection and aggregate outcome, while schema discovery owns writer detail.",
|
|
438
444
|
].join("\n");
|
|
439
445
|
}
|
|
440
446
|
export function printSchemaHelp() {
|
|
@@ -459,13 +465,16 @@ export function printCapabilityHelp(capability) {
|
|
|
459
465
|
" -h, --help show this help message and exit",
|
|
460
466
|
" --format FORMAT Output format: text, json, or yaml",
|
|
461
467
|
"",
|
|
462
|
-
`Startup context:
|
|
468
|
+
`Startup context: ${preCutoverCommand(`prime --context ${capability} --format json`)}`,
|
|
463
469
|
].join("\n");
|
|
464
470
|
}
|
|
465
471
|
export function printRouteHelp() {
|
|
472
|
+
const receipt = describeRouteReceipt();
|
|
473
|
+
const example = JSON.stringify(receipt.stdin_example.input);
|
|
474
|
+
const inspect = (value) => JSON.stringify(value, null, 2).split("\n").map((line) => ` ${line}`);
|
|
466
475
|
return [
|
|
467
|
-
|
|
468
|
-
"
|
|
476
|
+
`usage: ${preCutoverCommand("route <request|receipt> --input PATH [--format json]")}`,
|
|
477
|
+
` ${preCutoverCommand("route evaluate --format json")}`,
|
|
469
478
|
"",
|
|
470
479
|
"Route one transient request or validate one semantic host receipt through the shared hybrid contract.",
|
|
471
480
|
"Request text is accepted only from the structured YAML or JSON input document, never argv.",
|
|
@@ -473,14 +482,25 @@ export function printRouteHelp() {
|
|
|
473
482
|
"Evaluate runs the frozen offline conformance corpus without a semantic host; it exits 1 when its report status is fail.",
|
|
474
483
|
"",
|
|
475
484
|
"input document: { version: agentera.route_request.v1, request: <string> }",
|
|
476
|
-
"
|
|
485
|
+
"Semantic receipt contract (also returned as receipt_contract after semantic_required):",
|
|
486
|
+
` ${receipt.schemaVersion}; receipt version ${receipt.version}; outcomes: ${receipt.outcomes.join(", ")}.`,
|
|
487
|
+
" Submit exactly { request: <original string>, receipt: <complete nullable receipt> }; request text stays in stdin or a file.",
|
|
488
|
+
" Complete nullable receipt schema:",
|
|
489
|
+
...inspect(receipt.nullable_schema),
|
|
490
|
+
" Outcome nullability rules:",
|
|
491
|
+
...inspect(receipt.outcome_rules),
|
|
492
|
+
" Compound rules:",
|
|
493
|
+
...inspect(receipt.compound),
|
|
494
|
+
" remainder_span rule:",
|
|
495
|
+
...inspect(receipt.remainder_span),
|
|
496
|
+
" Runnable stdin round trip (run the command, write the JSON to stdin, then close stdin):",
|
|
497
|
+
` ${receipt.stdin_command}`,
|
|
498
|
+
` ${example}`,
|
|
477
499
|
"A receipt result authorizes only its reported startup command; clarify starts none.",
|
|
478
500
|
].join("\n");
|
|
479
501
|
}
|
|
480
502
|
export function printCommandHelp(command, rest = []) {
|
|
481
503
|
const sub = rest.find((a) => !a.startsWith("-") && a !== "--help" && a !== "-h");
|
|
482
|
-
if (command === "state" && rest.filter((item) => !item.startsWith("-")).slice(0, 2).join(" ") === "migrate entities")
|
|
483
|
-
return entityMigrateHelp();
|
|
484
504
|
switch (command) {
|
|
485
505
|
case "prime":
|
|
486
506
|
return printPrimeHelp();
|
|
@@ -496,7 +516,9 @@ export function printCommandHelp(command, rest = []) {
|
|
|
496
516
|
return printDoctorHelp();
|
|
497
517
|
case "state": {
|
|
498
518
|
const retrieval = entityRetrievalFamilyForHelpArgs(rest);
|
|
499
|
-
return retrieval
|
|
519
|
+
return retrieval
|
|
520
|
+
? retrieval.verb === "list" ? printStateListHelp(retrieval.family) : printStateGetHelp(retrieval.family)
|
|
521
|
+
: sub && stateCommandNames().includes(sub) ? printStateHelp(sub) : printStateHelp();
|
|
500
522
|
}
|
|
501
523
|
case "check":
|
|
502
524
|
return printCheckHelp(sub);
|
|
@@ -524,4 +546,3 @@ export function splitHelpArgs(argv) {
|
|
|
524
546
|
return { args: argv, help: false };
|
|
525
547
|
return { args: argv.filter((_, i) => i !== idx), help: true };
|
|
526
548
|
}
|
|
527
|
-
//# sourceMappingURL=help.js.map
|
|
@@ -3,6 +3,7 @@ import path from "node:path";
|
|
|
3
3
|
import { emitStructured } from "./structured.js";
|
|
4
4
|
import { detectStateMode } from "../state/stateMode.js";
|
|
5
5
|
import { fullEntityUpgradeCommand } from "../upgrade/upgradeCommands.js";
|
|
6
|
+
import { preCutoverCommand } from "./preCutoverCommand.js";
|
|
6
7
|
function value(argv, flag) {
|
|
7
8
|
const equals = argv.find((arg) => typeof arg === "string" && arg.startsWith(`${flag}=`));
|
|
8
9
|
if (equals)
|
|
@@ -21,14 +22,12 @@ export function requiresCompletedEntityCutover(argv) {
|
|
|
21
22
|
return false;
|
|
22
23
|
if (command === "report" && ["profile-glossary", "profile-grounding"].includes(subcommand))
|
|
23
24
|
return false;
|
|
24
|
-
if (command === "prime" && argv.includes("--guidance"))
|
|
25
|
+
if (command === "prime" && (argv.includes("--guidance") || !argv.includes("--context") || value(argv, "--context") === "status"))
|
|
25
26
|
return false;
|
|
26
27
|
if (command === "query")
|
|
27
28
|
return !argv.includes("--list-artifacts");
|
|
28
29
|
if (command === "state" && subcommand === "query" && argv.includes("--list-artifacts"))
|
|
29
30
|
return false;
|
|
30
|
-
if (command === "state" && subcommand === "migrate" && verb === "entities" && argv.includes("--dry-run"))
|
|
31
|
-
return false;
|
|
32
31
|
if (command === "state" && verb === "explain")
|
|
33
32
|
return false;
|
|
34
33
|
return true;
|
|
@@ -55,7 +54,7 @@ export function enforceCompletedEntityCutover(projectRoot, format, io = {}) {
|
|
|
55
54
|
mode = detectStateMode(project);
|
|
56
55
|
}
|
|
57
56
|
catch (error) {
|
|
58
|
-
const recovery =
|
|
57
|
+
const recovery = `Restore the exact durable migration marker, then run ${preCutoverCommand("check validate state --format json")}.`;
|
|
59
58
|
const envelope = {
|
|
60
59
|
schemaVersion: "agentera.stateFailure.v1",
|
|
61
60
|
status: "fail",
|
|
@@ -86,4 +85,3 @@ export function enforceCompletedEntityCutover(projectRoot, format, io = {}) {
|
|
|
86
85
|
(io.err ?? ((text) => process.stderr.write(text)))(`Error: ${envelope.error.message}\nRecovery: ${recovery}\n`);
|
|
87
86
|
return 1;
|
|
88
87
|
}
|
|
89
|
-
//# sourceMappingURL=migrationRequired.js.map
|