agentera 3.0.0-dev.6 → 3.0.0-next.1
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/bundle/extract-corpus-parity.json +23 -0
- package/bundle/references/adapters/cursor.md +9 -8
- package/bundle/references/analysis/startup-measurement-contract.yaml +4 -4
- package/bundle/references/cli/parity-expected-actual-template.md +30 -0
- package/bundle/references/cli/update-channels.yaml +15 -0
- package/bundle/references/cli/vocabulary-index.yaml +6 -4
- package/bundle/references/cli/vocabulary.md +305 -301
- package/bundle/skills/agentera/SKILL.md +35 -27
- package/bundle/skills/agentera/capabilities/hej/schemas/artifacts.yaml +4 -1
- package/bundle/skills/agentera/capabilities/profilera/schemas/exit.yaml +2 -1
- package/bundle/skills/agentera/capability_schema_contract.yaml +28 -0
- package/bundle/skills/agentera/references/contract.md +324 -315
- package/bundle/skills/agentera/schemas/artifacts/todo.yaml +38 -33
- package/dist/analytics/extractCorpus/cli.js +49 -1
- package/dist/analytics/extractCorpus/cli.js.map +1 -1
- package/dist/analytics/extractCorpus/copilotSessions.js +47 -5
- package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -1
- package/dist/analytics/extractCorpus/core.js +11 -5
- package/dist/analytics/extractCorpus/core.js.map +1 -1
- package/dist/analytics/extractCorpus/corpus.js +26 -13
- package/dist/analytics/extractCorpus/corpus.js.map +1 -1
- package/dist/analytics/extractCorpus/coverageAudit.js +261 -0
- package/dist/analytics/extractCorpus/coverageAudit.js.map +1 -0
- package/dist/analytics/extractCorpus/cursorSessions.js +6 -3
- package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -1
- package/dist/analytics/extractCorpus/extractCorpusParity.js +105 -0
- package/dist/analytics/extractCorpus/extractCorpusParity.js.map +1 -0
- package/dist/analytics/extractCorpus/index.js +3 -0
- package/dist/analytics/extractCorpus/index.js.map +1 -1
- package/dist/analytics/extractCorpus/sqliteCaps.js +44 -0
- package/dist/analytics/extractCorpus/sqliteCaps.js.map +1 -0
- package/dist/analytics/extractCorpus/sqliteSessions.js +98 -5
- package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -1
- package/dist/capabilities/inspirera/instructions.js +1 -1
- package/dist/capabilities/inspirera/instructions.js.map +1 -1
- package/dist/capabilities/planera/instructions.js +1 -1
- package/dist/capabilities/planera/instructions.js.map +1 -1
- 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/resonera/instructions.js +1 -1
- package/dist/capabilities/resonera/instructions.js.map +1 -1
- 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 +2 -14
- package/dist/cli/appContext.js.map +1 -1
- package/dist/cli/capabilityContext/benchmark.js +2 -2
- package/dist/cli/capabilityContext/benchmark.js.map +1 -1
- package/dist/cli/capabilityContext/closeout.js +5 -5
- package/dist/cli/capabilityContext/closeout.js.map +1 -1
- package/dist/cli/capabilityContext/evidence.js +6 -6
- package/dist/cli/capabilityContext/evidence.js.map +1 -1
- package/dist/cli/capabilityContext/orchestration.js +5 -5
- package/dist/cli/capabilityContext/orchestration.js.map +1 -1
- package/dist/cli/capabilityContext/realisera.js +8 -8
- package/dist/cli/capabilityContext/realisera.js.map +1 -1
- package/dist/cli/capabilityContext/startup.js +8 -8
- package/dist/cli/capabilityContext/startup.js.map +1 -1
- package/dist/cli/capabilityContext/types.js +9 -9
- package/dist/cli/capabilityContext/types.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/doctor.js +10 -105
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/prime/bundleStatus.js +126 -0
- package/dist/cli/commands/prime/bundleStatus.js.map +1 -0
- package/dist/cli/commands/prime/collectOrientationState.js +143 -0
- package/dist/cli/commands/prime/collectOrientationState.js.map +1 -0
- package/dist/cli/commands/prime/orientationOutput.js +172 -0
- package/dist/cli/commands/prime/orientationOutput.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 +10 -549
- package/dist/cli/commands/prime.js.map +1 -1
- package/dist/cli/commands/report.js +8 -2
- package/dist/cli/commands/report.js.map +1 -1
- package/dist/cli/commands/state/docs.js +2 -2
- package/dist/cli/commands/state/docs.js.map +1 -1
- package/dist/cli/commands/state/todo.js +1 -1
- package/dist/cli/commands/state/todo.js.map +1 -1
- package/dist/cli/commands/validate.js +9 -9
- package/dist/cli/commands/validate.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 +18 -18
- package/dist/cli/dispatch/check.js.map +1 -1
- package/dist/cli/dispatch/commands.js +27 -0
- package/dist/cli/dispatch/commands.js.map +1 -0
- package/dist/cli/dispatch/index.js +3 -1
- package/dist/cli/dispatch/index.js.map +1 -1
- package/dist/cli/dispatch/lifecycle.js +100 -55
- package/dist/cli/dispatch/lifecycle.js.map +1 -1
- package/dist/cli/dispatch/prime.js +31 -27
- package/dist/cli/dispatch/prime.js.map +1 -1
- package/dist/cli/dispatch/state.js +11 -16
- package/dist/cli/dispatch/state.js.map +1 -1
- package/dist/cli/help.js +30 -0
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/orientation/attention.js +57 -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 +40 -27
- package/dist/cli/orientation.js.map +1 -1
- package/dist/cli/startupCompletenessContract.js +49 -0
- package/dist/cli/startupCompletenessContract.js.map +1 -0
- package/dist/cli/todoSeverity.js +19 -0
- package/dist/cli/todoSeverity.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/hooks/compaction/apply.js +25 -6
- package/dist/hooks/compaction/apply.js.map +1 -1
- package/dist/hooks/compaction/dryRun.js +3 -3
- package/dist/hooks/compaction/dryRun.js.map +1 -1
- package/dist/hooks/compaction/index.js +2 -2
- package/dist/hooks/compaction/index.js.map +1 -1
- package/dist/hooks/compaction/parse.js +132 -3
- package/dist/hooks/compaction/parse.js.map +1 -1
- package/dist/hooks/compaction/status.js +3 -5
- package/dist/hooks/compaction/status.js.map +1 -1
- package/dist/hooks/cursorSessionStart.js +10 -2
- package/dist/hooks/cursorSessionStart.js.map +1 -1
- package/dist/hooks/validateArtifact/markdown.js +57 -6
- package/dist/hooks/validateArtifact/markdown.js.map +1 -1
- package/dist/setup/cursor.js +1 -1
- package/dist/setup/cursor.js.map +1 -1
- package/dist/setup/doctor/report.js +2 -58
- package/dist/setup/doctor/report.js.map +1 -1
- package/dist/state/installRoot.js +49 -18
- package/dist/state/installRoot.js.map +1 -1
- package/dist/state/startupAnalysis/helpers.js +7 -52
- package/dist/state/startupAnalysis/helpers.js.map +1 -1
- package/dist/state/startupAnalysis/report.js +9 -31
- package/dist/state/startupAnalysis/report.js.map +1 -1
- package/dist/state/startupAnalysis/threshold.js +1 -1
- package/dist/state/startupAnalysis/threshold.js.map +1 -1
- package/dist/upgrade/appModel.js +1 -4
- 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 +8 -1
- 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 +1 -4
- package/dist/upgrade/coexistenceProbe.js.map +1 -1
- package/dist/upgrade/compatibility.js +1 -4
- package/dist/upgrade/compatibility.js.map +1 -1
- package/dist/upgrade/doctor.js +168 -173
- package/dist/upgrade/doctor.js.map +1 -1
- package/dist/upgrade/doctorClassifier.js +208 -0
- package/dist/upgrade/doctorClassifier.js.map +1 -0
- package/dist/upgrade/migrateArtifactsV2ToV3.js +1 -1
- package/dist/upgrade/nextMajorDoctor.js +7 -3
- package/dist/upgrade/nextMajorDoctor.js.map +1 -1
- package/dist/upgrade/npxPlatformStatus.js +24 -0
- package/dist/upgrade/npxPlatformStatus.js.map +1 -0
- package/dist/upgrade/projectIntegration.js +54 -71
- 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/versionResolution.js +1 -1
- package/dist/upgrade/versionResolution.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 +12 -722
- package/dist/validate/lifecycleAdapters.js.map +1 -1
- package/package.json +1 -1
- package/dist/cli/commands/backfill.js +0 -84
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/cli/commands/state.js +0 -1023
- package/dist/cli/commands/state.js.map +0 -1
- package/dist/core/git.js +0 -43
- package/dist/core/git.js.map +0 -1
- package/dist/hooks/compaction.js +0 -935
- package/dist/hooks/compaction.js.map +0 -1
- package/dist/hooks/validateArtifact.js +0 -924
- package/dist/hooks/validateArtifact.js.map +0 -1
- package/dist/state/progressCommit.js +0 -289
- package/dist/state/progressCommit.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema_version": "agentera-extract-corpus-parity-v1",
|
|
3
|
+
"adapter_version": "agentera-v2-corpus-1",
|
|
4
|
+
"max_sqlite_sessions": 60,
|
|
5
|
+
"max_sqlite_rows": 100000,
|
|
6
|
+
"max_tool_arg_text": 500,
|
|
7
|
+
"copilot_sparse_remediation": "/chronicle reindex",
|
|
8
|
+
"runtime_store_globs": {
|
|
9
|
+
"codex": "*.jsonl",
|
|
10
|
+
"claude-code": "*.jsonl",
|
|
11
|
+
"cursor": "*.jsonl",
|
|
12
|
+
"cursor-agent": "store.db",
|
|
13
|
+
"opencode": "opencode.db",
|
|
14
|
+
"github-copilot": "session-store.db"
|
|
15
|
+
},
|
|
16
|
+
"families": [
|
|
17
|
+
"instruction_document",
|
|
18
|
+
"history_prompt",
|
|
19
|
+
"conversation_turn",
|
|
20
|
+
"tool_call",
|
|
21
|
+
"project_config_signal"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -52,20 +52,21 @@ This repository dogfoods committed Cursor surfaces:
|
|
|
52
52
|
- `.cursor/agents/*.md` — twelve managed capability descriptors
|
|
53
53
|
- `.cursor-plugin/plugin.json` — marketplace submission-ready manifest
|
|
54
54
|
|
|
55
|
-
Hooks
|
|
56
|
-
`
|
|
57
|
-
subsequent hook executions
|
|
55
|
+
Hooks invoke the TypeScript CLI through `npx -y agentera hook …` (or
|
|
56
|
+
`npx -y agentera@next hook …` on the development channel). `sessionStart` exports
|
|
57
|
+
`AGENTERA_HOME` through Cursor hook JSON (`env`) before subsequent hook executions
|
|
58
|
+
run.
|
|
58
59
|
|
|
59
60
|
## AGENTERA_HOME wiring
|
|
60
61
|
|
|
61
|
-
Primary path: `
|
|
62
|
-
`AGENTERA_HOME`, project walk-up,
|
|
63
|
-
when
|
|
62
|
+
Primary path: `agentera hook cursor-session-start` resolves the install root from
|
|
63
|
+
`AGENTERA_HOME`, project walk-up, the plugin/checkout root, or the platform default
|
|
64
|
+
app home when env and walk-up do not resolve a managed root, then returns
|
|
64
65
|
`{"env": {"AGENTERA_HOME": "<root>"}}` plus optional `additional_context` from
|
|
65
66
|
the shared session digest.
|
|
66
67
|
|
|
67
|
-
Fallback: `
|
|
68
|
-
when live shell-tool smoke proves session env does not propagate to CLI
|
|
68
|
+
Fallback: `packages/cli/src/setup/cursor.ts` reports persistent shell configuration
|
|
69
|
+
only when live shell-tool smoke proves session env does not propagate to CLI
|
|
69
70
|
subprocesses. Agentera does not write shell rc files by default.
|
|
70
71
|
|
|
71
72
|
## Artifact validation
|
|
@@ -90,16 +90,16 @@ runtime_extraction_contract:
|
|
|
90
90
|
parsing encountered schema errors. This is extraction failure evidence,
|
|
91
91
|
not a successful zero-record benchmark window.
|
|
92
92
|
required_counts:
|
|
93
|
-
-
|
|
93
|
+
- file_count when discovery can count store files
|
|
94
94
|
- record_count, which may be zero or partial
|
|
95
95
|
- error_count greater than zero
|
|
96
96
|
current_examples:
|
|
97
97
|
- runtime: claude-code
|
|
98
|
-
|
|
98
|
+
file_count: 4836
|
|
99
99
|
record_count: 0
|
|
100
100
|
error_count: 2
|
|
101
101
|
- runtime: github-copilot
|
|
102
|
-
|
|
102
|
+
file_count: 1
|
|
103
103
|
record_count: 0
|
|
104
104
|
error_count: 1
|
|
105
105
|
no_matching_records:
|
|
@@ -110,7 +110,7 @@ runtime_extraction_contract:
|
|
|
110
110
|
shape, but no supported message or tool records were extracted. This is
|
|
111
111
|
sparse coverage evidence and remains distinct from schema divergence.
|
|
112
112
|
required_counts:
|
|
113
|
-
-
|
|
113
|
+
- file_count when discovery can count store files
|
|
114
114
|
- "record_count: 0"
|
|
115
115
|
- no error_count greater than zero
|
|
116
116
|
successful_zero_record_window:
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Parity EXPECTED/ACTUAL bug-demonstration template
|
|
2
|
+
|
|
3
|
+
Apply this pattern to `npmParityMatrix` / Python-oracle parity rows when fixing a
|
|
4
|
+
regression: land a **demonstrate** commit first, then a **fix** commit that only
|
|
5
|
+
flips the assertion.
|
|
6
|
+
|
|
7
|
+
## Workflow
|
|
8
|
+
|
|
9
|
+
1. **Demonstrate commit** — test passes on broken behavior; correct expectation
|
|
10
|
+
preserved in a block comment (`EXPECTED`); wrong behavior asserted (`ACTUAL`).
|
|
11
|
+
2. **Fix commit** — delete comment markers and `ACTUAL` line; `EXPECTED` becomes the
|
|
12
|
+
live assertion. No other edits in the fix commit.
|
|
13
|
+
|
|
14
|
+
## Minimal vitest shape
|
|
15
|
+
|
|
16
|
+
See `packages/cli/test/cli/parityExpectedActualTemplate.test.ts` for a runnable
|
|
17
|
+
micro-example. For real parity rows, mirror the pattern in the oracle fixture row
|
|
18
|
+
and `npmParityMatrix.test.ts` drift assertions.
|
|
19
|
+
|
|
20
|
+
## npmParityMatrix row
|
|
21
|
+
|
|
22
|
+
When adding a row to the parity matrix for a pre-existing bug:
|
|
23
|
+
|
|
24
|
+
- Register the row with `drift_direction: equal` as the target after fix.
|
|
25
|
+
- In the demonstrate pass, temporarily pin oracle shape to the **wrong** envelope
|
|
26
|
+
or assert `ACTUAL` substring in a dedicated regression test.
|
|
27
|
+
- Fix pass restores `equal` against the corrected CLI output.
|
|
28
|
+
|
|
29
|
+
Do not apply EXPECTED/ACTUAL by default to every row — only where bisect clarity
|
|
30
|
+
justifies the two-commit ritual.
|
|
@@ -64,6 +64,21 @@ channels:
|
|
|
64
64
|
feat/v3 branch and v3 CLI are npm-only; v2→v3 is a one-way upgrade through
|
|
65
65
|
npx @next, not through uvx or git checkout installs.
|
|
66
66
|
distribution_major: 3
|
|
67
|
+
next_major:
|
|
68
|
+
concept: forward_successor_line
|
|
69
|
+
channel: development
|
|
70
|
+
version: "3.0.0"
|
|
71
|
+
announced: true
|
|
72
|
+
npm:
|
|
73
|
+
dist_tag: next
|
|
74
|
+
npm_only_advisory: >-
|
|
75
|
+
The v3 successor line is npm-only; opt in to v2→v3 migration through npx @next.
|
|
76
|
+
guide_url: >-
|
|
77
|
+
https://github.com/jgabor/agentera/blob/main/UPGRADE.md#upgrading-v2-to-v3-development-channel-irreversible
|
|
78
|
+
preview_command: npx -y agentera@next upgrade --dry-run --channel development
|
|
79
|
+
irreversible_advisory: >-
|
|
80
|
+
Forward migration to the v3 line is one-way; return to the prior
|
|
81
|
+
Python support line is permanently unsupported.
|
|
67
82
|
resolution:
|
|
68
83
|
npm:
|
|
69
84
|
dist_tag: next
|
|
@@ -150,10 +150,12 @@ decision_44:
|
|
|
150
150
|
boundary: Preserve capability IDs, artifact IDs, group IDs, route IDs, and test fixture IDs unless a migration is planned.
|
|
151
151
|
- surface: CLI labels and exit behavior
|
|
152
152
|
boundary: Preserve current command names, parseable labels, exit codes, and source-contract labels unless an explicit CLI migration is recorded.
|
|
153
|
-
- surface: Canonical capability names
|
|
154
|
-
boundary:
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
- surface: Canonical capability names (v3 surface)
|
|
154
|
+
boundary: >-
|
|
155
|
+
Preserve the Decision 43 English alias set as the binding canonical names for v3 and onward: status, vision, discuss, research, plan, build, optimize, audit, document, profile, design, orchestrate. Future capability additions follow the same transfer-friendly English-verb pattern (Decision 70). Per Decision 70, the D43 alias set is the binding name set; future renames require a new decision.
|
|
156
|
+
- surface: Legacy Swedish capability names (v2 stable only)
|
|
157
|
+
boundary: >-
|
|
158
|
+
Preserve hej, visionera, resonera, inspirera, planera, realisera, optimera, inspektera, dokumentera, profilera, visualisera, and orkestrera for the v2 stable distribution (`npx -y agentera@latest`, ships from `main`) and as historical references in archived plans, decisions, and changelogs. Out of scope for v3 surface per Decision 70. Coexistence probe surfaces per-distribution naming divergence.
|
|
157
159
|
- surface: Historical artifacts
|
|
158
160
|
boundary: Do not rewrite old progress, changelog, archived plans, or decisions solely for vocabulary cleanup.
|
|
159
161
|
- surface: Release version
|