agentera 3.0.0-dev.25 → 3.0.0-dev.26

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.
Files changed (270) hide show
  1. package/README.md +16 -20
  2. package/bundle/CHANGELOG.md +15 -25
  3. package/bundle/README.md +13 -34
  4. package/bundle/UPGRADE.md +71 -165
  5. package/bundle/references/adapters/package-manifest-interface-model.yaml +40 -241
  6. package/bundle/references/adapters/package-registry.yaml +0 -145
  7. package/bundle/references/adapters/package-surface-characterization.md +13 -38
  8. package/bundle/references/adapters/runtime-lifecycle-adapters.yaml +5 -219
  9. package/bundle/references/adapters/runtime-lifecycle-authority.yaml +2 -29
  10. package/bundle/references/adapters/runtime-lifecycle-operation-contract.yaml +1 -1
  11. package/bundle/references/artifacts/state-storage-authority.yaml +43 -447
  12. package/bundle/references/cli/agent-ready-state-contract.yaml +9 -9
  13. package/bundle/references/cli/app-lifecycle-vocabulary.yaml +3 -4
  14. package/bundle/references/cli/bundle-skill-vocabulary.yaml +9 -18
  15. package/bundle/references/cli/capability-tool-classification.yaml +2 -2
  16. package/bundle/references/cli/prime-consumer-compatibility.yaml +28 -98
  17. package/bundle/references/cli/routing-execution-vocabulary.yaml +4 -22
  18. package/bundle/references/cli/upgrade-repair-wording.md +8 -28
  19. package/bundle/references/cli/v3-handoff-manifest.schema.yaml +2 -3
  20. package/bundle/references/cli/vocabulary.md +18 -23
  21. package/bundle/references/meta/documentation-inventory.md +1 -1
  22. package/bundle/skills/agentera/schemas/artifacts/docs.yaml +3 -11
  23. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +1 -1
  24. package/dist/cli/capabilityContext/bespoke.js +8 -2
  25. package/dist/cli/capabilityContext/bespoke.js.map +1 -1
  26. package/dist/cli/capabilityContext/closeout.js +3 -3
  27. package/dist/cli/capabilityContext/closeout.js.map +1 -1
  28. package/dist/cli/capabilityContext/evidence.js +52 -40
  29. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  30. package/dist/cli/capabilityContext/startup.js +1 -1
  31. package/dist/cli/capabilityContext/startup.js.map +1 -1
  32. package/dist/cli/commands/doctor.js +6 -64
  33. package/dist/cli/commands/doctor.js.map +1 -1
  34. package/dist/cli/commands/durability.js +12 -48
  35. package/dist/cli/commands/durability.js.map +1 -1
  36. package/dist/cli/commands/prime/briefOrientation.js +2 -19
  37. package/dist/cli/commands/prime/briefOrientation.js.map +1 -1
  38. package/dist/cli/commands/prime/bundleStatus.js +8 -2
  39. package/dist/cli/commands/prime/bundleStatus.js.map +1 -1
  40. package/dist/cli/commands/prime/collectEntityOrientation.js +27 -14
  41. package/dist/cli/commands/prime/collectEntityOrientation.js.map +1 -1
  42. package/dist/cli/commands/prime/collectOrientationState.js +31 -52
  43. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -1
  44. package/dist/cli/commands/prime/orientationOutput.js +3 -11
  45. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  46. package/dist/cli/commands/prime.js +0 -5
  47. package/dist/cli/commands/prime.js.map +1 -1
  48. package/dist/cli/commands/query.js +17 -49
  49. package/dist/cli/commands/query.js.map +1 -1
  50. package/dist/cli/commands/schema.js +19 -78
  51. package/dist/cli/commands/schema.js.map +1 -1
  52. package/dist/cli/commands/state/decisions.js +11 -57
  53. package/dist/cli/commands/state/decisions.js.map +1 -1
  54. package/dist/cli/commands/state/docs.js +56 -120
  55. package/dist/cli/commands/state/docs.js.map +1 -1
  56. package/dist/cli/commands/state/experimentRecords.js +22 -121
  57. package/dist/cli/commands/state/experimentRecords.js.map +1 -1
  58. package/dist/cli/commands/state/experiments.js +9 -75
  59. package/dist/cli/commands/state/experiments.js.map +1 -1
  60. package/dist/cli/commands/state/get.js +62 -143
  61. package/dist/cli/commands/state/get.js.map +1 -1
  62. package/dist/cli/commands/state/health.js +9 -123
  63. package/dist/cli/commands/state/health.js.map +1 -1
  64. package/dist/cli/commands/state/index.js +2 -2
  65. package/dist/cli/commands/state/index.js.map +1 -1
  66. package/dist/cli/commands/state/list.js +20 -36
  67. package/dist/cli/commands/state/list.js.map +1 -1
  68. package/dist/cli/commands/state/objective.js +19 -86
  69. package/dist/cli/commands/state/objective.js.map +1 -1
  70. package/dist/cli/commands/state/plan.js +9 -388
  71. package/dist/cli/commands/state/plan.js.map +1 -1
  72. package/dist/cli/commands/state/planTasks.js +58 -93
  73. package/dist/cli/commands/state/planTasks.js.map +1 -1
  74. package/dist/cli/commands/state/plans.js +13 -40
  75. package/dist/cli/commands/state/plans.js.map +1 -1
  76. package/dist/cli/commands/state/progress.js +10 -55
  77. package/dist/cli/commands/state/progress.js.map +1 -1
  78. package/dist/cli/commands/state/todo.js +24 -133
  79. package/dist/cli/commands/state/todo.js.map +1 -1
  80. package/dist/cli/commands/state/write.js +11 -33
  81. package/dist/cli/commands/state/write.js.map +1 -1
  82. package/dist/cli/commands/upgrade.js +48 -18
  83. package/dist/cli/commands/upgrade.js.map +1 -1
  84. package/dist/cli/commands/upgradeVerify.js +21 -15
  85. package/dist/cli/commands/upgradeVerify.js.map +1 -1
  86. package/dist/cli/commands/validate.js +1 -9
  87. package/dist/cli/commands/validate.js.map +1 -1
  88. package/dist/cli/dispatch/check.js +5 -12
  89. package/dist/cli/dispatch/check.js.map +1 -1
  90. package/dist/cli/dispatch/index.js +30 -29
  91. package/dist/cli/dispatch/index.js.map +1 -1
  92. package/dist/cli/dispatch/lifecycle.js +23 -40
  93. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  94. package/dist/cli/help.js +20 -100
  95. package/dist/cli/help.js.map +1 -1
  96. package/dist/cli/migrationRequired.js +22 -19
  97. package/dist/cli/migrationRequired.js.map +1 -1
  98. package/dist/cli/orientation/attention.js +1 -97
  99. package/dist/cli/orientation/attention.js.map +1 -1
  100. package/dist/cli/stateQuery.js +1 -2
  101. package/dist/cli/stateQuery.js.map +1 -1
  102. package/dist/core/skillIdentity.js +24 -0
  103. package/dist/core/skillIdentity.js.map +1 -0
  104. package/dist/hooks/common.js +1 -1
  105. package/dist/hooks/common.js.map +1 -1
  106. package/dist/hooks/compaction/status.js +2 -1
  107. package/dist/hooks/compaction/status.js.map +1 -1
  108. package/dist/hooks/cursorSessionStart.js +4 -25
  109. package/dist/hooks/cursorSessionStart.js.map +1 -1
  110. package/dist/hooks/projectHookInput.js +26 -0
  111. package/dist/hooks/projectHookInput.js.map +1 -0
  112. package/dist/hooks/sessionStart.js +23 -239
  113. package/dist/hooks/sessionStart.js.map +1 -1
  114. package/dist/hooks/sessionStop.js +4 -12
  115. package/dist/hooks/sessionStop.js.map +1 -1
  116. package/dist/hooks/validateArtifact/traversal.js +1 -1
  117. package/dist/hooks/validateArtifact/traversal.js.map +1 -1
  118. package/dist/registries/artifactRegistry.js +2 -1
  119. package/dist/registries/artifactRegistry.js.map +1 -1
  120. package/dist/registries/packageRegistry.js +57 -231
  121. package/dist/registries/packageRegistry.js.map +1 -1
  122. package/dist/release/releaseMetadata.js +1 -13
  123. package/dist/release/releaseMetadata.js.map +1 -1
  124. package/dist/runtime/lifecycleAdapterContract.js +4 -4
  125. package/dist/runtime/lifecycleAdapterContract.js.map +1 -1
  126. package/dist/runtime/lifecycleAdapters.js +14 -2
  127. package/dist/runtime/lifecycleAdapters.js.map +1 -1
  128. package/dist/runtime/lifecycleAuthority.js +5 -43
  129. package/dist/runtime/lifecycleAuthority.js.map +1 -1
  130. package/dist/runtime/lifecycleOperationContract.js +3 -2
  131. package/dist/runtime/lifecycleOperationContract.js.map +1 -1
  132. package/dist/runtime/lifecyclePublication.js +21 -0
  133. package/dist/runtime/lifecyclePublication.js.map +1 -1
  134. package/dist/setup/opencode.js +20 -12
  135. package/dist/setup/opencode.js.map +1 -1
  136. package/dist/setup/sharedSkill.js +46 -0
  137. package/dist/setup/sharedSkill.js.map +1 -0
  138. package/dist/setup/smokeChecks.js +16 -43
  139. package/dist/setup/smokeChecks.js.map +1 -1
  140. package/dist/state/decisionEntities.js +7 -4
  141. package/dist/state/decisionEntities.js.map +1 -1
  142. package/dist/state/durability.js +4 -240
  143. package/dist/state/durability.js.map +1 -1
  144. package/dist/state/entityCutover.js +90 -186
  145. package/dist/state/entityCutover.js.map +1 -1
  146. package/dist/state/entityStorage.js +27 -8
  147. package/dist/state/entityStorage.js.map +1 -1
  148. package/dist/state/healthEntities.js +7 -4
  149. package/dist/state/healthEntities.js.map +1 -1
  150. package/dist/state/objectiveExperimentEntities.js +7 -5
  151. package/dist/state/objectiveExperimentEntities.js.map +1 -1
  152. package/dist/state/planEntities.js +14 -10
  153. package/dist/state/planEntities.js.map +1 -1
  154. package/dist/state/progressEntities.js +4 -2
  155. package/dist/state/progressEntities.js.map +1 -1
  156. package/dist/state/startupProjection.js +3 -2
  157. package/dist/state/startupProjection.js.map +1 -1
  158. package/dist/state/stateMode.js +7 -0
  159. package/dist/state/stateMode.js.map +1 -1
  160. package/dist/state/todoDocsEntities.js +6 -4
  161. package/dist/state/todoDocsEntities.js.map +1 -1
  162. package/dist/state/write/explain.js +1 -9
  163. package/dist/state/write/explain.js.map +1 -1
  164. package/dist/state/write/transaction.js +22 -532
  165. package/dist/state/write/transaction.js.map +1 -1
  166. package/dist/upgrade/appContentRefresh.js +43 -28
  167. package/dist/upgrade/appContentRefresh.js.map +1 -1
  168. package/dist/upgrade/doctor.js +5 -1
  169. package/dist/upgrade/doctor.js.map +1 -1
  170. package/dist/upgrade/installedHooksRetirement.js +46 -39
  171. package/dist/upgrade/installedHooksRetirement.js.map +1 -1
  172. package/dist/upgrade/legacyAgentCleanup.js +132 -32
  173. package/dist/upgrade/legacyAgentCleanup.js.map +1 -1
  174. package/dist/upgrade/lifecycleUpgrade.js +65 -378
  175. package/dist/upgrade/lifecycleUpgrade.js.map +1 -1
  176. package/dist/upgrade/migrateArtifactsV2ToV3.js +151 -52
  177. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  178. package/dist/upgrade/migrationPublication.js +123 -0
  179. package/dist/upgrade/migrationPublication.js.map +1 -0
  180. package/dist/upgrade/projectIntegration.js +46 -113
  181. package/dist/upgrade/projectIntegration.js.map +1 -1
  182. package/dist/upgrade/projectIntegrationDecision.js +6 -96
  183. package/dist/upgrade/projectIntegrationDecision.js.map +1 -1
  184. package/dist/upgrade/runtimeMigration.js +222 -402
  185. package/dist/upgrade/runtimeMigration.js.map +1 -1
  186. package/dist/upgrade/upgradeCommands.js +5 -4
  187. package/dist/upgrade/upgradeCommands.js.map +1 -1
  188. package/dist/upgrade/upgradeLock.js +73 -41
  189. package/dist/upgrade/upgradeLock.js.map +1 -1
  190. package/dist/upgrade/upgradeOrchestrator.js +91 -158
  191. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  192. package/dist/upgrade/v3CapabilitySurface.js +2 -2
  193. package/dist/validate/appHomeContract.js +0 -4
  194. package/dist/validate/appHomeContract.js.map +1 -1
  195. package/package.json +7 -5
  196. package/bundle/.codex-plugin/plugin.json +0 -92
  197. package/bundle/.cursor/agents/agentera.md +0 -7
  198. package/bundle/.cursor/hooks.json +0 -32
  199. package/bundle/.cursor-plugin/plugin.json +0 -34
  200. package/bundle/.github/hooks/postToolUse.json +0 -9
  201. package/bundle/.github/hooks/preToolUse.json +0 -8
  202. package/bundle/.github/hooks/sessionEnd.json +0 -8
  203. package/bundle/.github/hooks/sessionStart.json +0 -8
  204. package/bundle/.github/plugin/plugin.json +0 -7
  205. package/bundle/.opencode/agents/agentera.md +0 -12
  206. package/bundle/.opencode/commands/agentera.md +0 -5
  207. package/bundle/.opencode/package.json +0 -31
  208. package/bundle/.opencode/plugins/agentera.js +0 -820
  209. package/bundle/agents/openai.yaml +0 -87
  210. package/bundle/hooks/codex-hooks.json +0 -31
  211. package/bundle/hooks/codex-plugin-hooks.json +0 -31
  212. package/bundle/plugin.json +0 -13
  213. package/bundle/references/adapters/cursor.md +0 -224
  214. package/bundle/references/adapters/opencode.md +0 -529
  215. package/bundle/references/adapters/runtime-adapter-characterization.md +0 -44
  216. package/bundle/references/adapters/runtime-adapter-interface-model.yaml +0 -200
  217. package/bundle/references/adapters/runtime-adapter-registry.yaml +0 -387
  218. package/bundle/references/adapters/runtime-feature-parity.md +0 -129
  219. package/dist/cli/commands/backfill.js +0 -231
  220. package/dist/cli/commands/backfill.js.map +0 -1
  221. package/dist/cli/commands/migrate.js +0 -681
  222. package/dist/cli/commands/migrate.js.map +0 -1
  223. package/dist/registries/runtimeAdapterRegistry.js +0 -324
  224. package/dist/registries/runtimeAdapterRegistry.js.map +0 -1
  225. package/dist/setup/copilot.js +0 -227
  226. package/dist/setup/copilot.js.map +0 -1
  227. package/dist/setup/cursor.js +0 -129
  228. package/dist/setup/cursor.js.map +0 -1
  229. package/dist/setup/cursorSurfaces.js +0 -67
  230. package/dist/setup/cursorSurfaces.js.map +0 -1
  231. package/dist/setup/doctor/core.js +0 -296
  232. package/dist/setup/doctor/core.js.map +0 -1
  233. package/dist/setup/doctor/diagnostics.js +0 -201
  234. package/dist/setup/doctor/diagnostics.js.map +0 -1
  235. package/dist/setup/doctor/opencode.js +0 -301
  236. package/dist/setup/doctor/opencode.js.map +0 -1
  237. package/dist/setup/doctor/report.js +0 -425
  238. package/dist/setup/doctor/report.js.map +0 -1
  239. package/dist/setup/doctor.js +0 -10
  240. package/dist/setup/doctor.js.map +0 -1
  241. package/dist/state/gitBackfill.js +0 -561
  242. package/dist/state/gitBackfill.js.map +0 -1
  243. package/dist/state/gitBackfillAuthority.js +0 -141
  244. package/dist/state/gitBackfillAuthority.js.map +0 -1
  245. package/dist/state/gitBackfillHistory.js +0 -278
  246. package/dist/state/gitBackfillHistory.js.map +0 -1
  247. package/dist/state/gitBackfillOutput.js +0 -209
  248. package/dist/state/gitBackfillOutput.js.map +0 -1
  249. package/dist/state/legacyMigration.js +0 -516
  250. package/dist/state/legacyMigration.js.map +0 -1
  251. package/dist/state/legacyMigrationParser.js +0 -489
  252. package/dist/state/legacyMigrationParser.js.map +0 -1
  253. package/dist/state/migrationAuthority.js +0 -413
  254. package/dist/state/migrationAuthority.js.map +0 -1
  255. package/dist/state/migrationEnrichment.js +0 -35
  256. package/dist/state/migrationEnrichment.js.map +0 -1
  257. package/dist/state/projectionRecovery.js +0 -458
  258. package/dist/state/projectionRecovery.js.map +0 -1
  259. package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -568
  260. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +0 -1
  261. package/dist/validate/lifecycleAdapters/legacyPythonParity.js +0 -93
  262. package/dist/validate/lifecycleAdapters/legacyPythonParity.js.map +0 -1
  263. package/dist/validate/lifecycleAdapters/lifecycleMain.js +0 -154
  264. package/dist/validate/lifecycleAdapters/lifecycleMain.js.map +0 -1
  265. package/dist/validate/lifecycleAdapters/nodeFormChecks.js +0 -481
  266. package/dist/validate/lifecycleAdapters/nodeFormChecks.js.map +0 -1
  267. package/dist/validate/lifecycleAdapters/shared.js +0 -198
  268. package/dist/validate/lifecycleAdapters/shared.js.map +0 -1
  269. package/dist/validate/lifecycleAdapters.js +0 -10
  270. package/dist/validate/lifecycleAdapters.js.map +0 -1
@@ -1,87 +0,0 @@
1
- display_name: Agentera
2
- description: "Portable Agentera suite for Codex: one bundled skill with exact bare `/agentera` routing and twelve routed capabilities."
3
- icon: AG
4
- brand_color: "#111827"
5
- default_prompt: Use $agentera to inspect project state and route to the right capability; exact bare `/agentera` uses the agentera prime dashboard path.
6
- policy:
7
- allow_implicit_invocation: true
8
- support:
9
- skill_discovery: /skills
10
- plugin_discovery: /plugins
11
- explicit_invocation: $agentera
12
- implicit_invocation: the bundled skill may be invoked implicitly; exact bare `/agentera` belongs to agentera, not the legacy hej bridge
13
- lifecycle_hooks: stable via codex_hooks; bundled config lives at hooks/codex-hooks.json and can be copied to ~/.codex/hooks.json or a project .codex/hooks.json for apply_patch artifact validation
14
- skills:
15
- - name: agentera
16
- display_name: agentera
17
- path: ./skills/agentera
18
- metadata: ./agents/openai.yaml
19
- description: Compound agent orchestration suite with exact bare `/agentera` routing and twelve capabilities in one bundled skill.
20
- invocation_hint: Use $agentera, or inspect it with /skills and /plugins. For a complete bare `/agentera` message, use the agentera prime dashboard path.
21
- policy:
22
- allow_implicit_invocation: true
23
- capabilities:
24
- - name: status
25
- description: Entry-point orientation and routing for fresh or returning projects, including a complete user message exactly `/agentera`.
26
- invocation_hint: Use $agentera status or ask $agentera for project status; exact bare `/agentera` uses this dashboard path.
27
- policy:
28
- allow_implicit_invocation: true
29
- - name: research
30
- description: External-source analysis mapped onto a project through Agentera artifacts.
31
- invocation_hint: Use $agentera research for links or external source analysis.
32
- policy:
33
- allow_implicit_invocation: true
34
- - name: profile
35
- description: Decision-profile mining. Limited to available bounded Codex history, session, or config corpus data.
36
- invocation_hint: Use $agentera profile when bounded Codex history, session, or config corpus data is available.
37
- policy:
38
- allow_implicit_invocation: false
39
- required_capabilities:
40
- - name: codex_session_corpus
41
- status: ok
42
- action: Run profile extraction; bounded Codex history, session, or config corpus data lands in the Section 22 corpus when present, with absent source families reported in corpus metadata.
43
- - name: build
44
- description: Autonomous development cycles grounded in project vision, TODO, and verification.
45
- invocation_hint: Use $agentera build for autonomous development cycles.
46
- policy:
47
- allow_implicit_invocation: true
48
- - name: optimize
49
- description: Metric-driven optimization loops for measurable objectives.
50
- invocation_hint: Use $agentera optimize for measured optimization work.
51
- policy:
52
- allow_implicit_invocation: true
53
- - name: discuss
54
- description: Structured deliberation for consequential decisions and tradeoffs.
55
- invocation_hint: Use $agentera discuss for decision framing.
56
- policy:
57
- allow_implicit_invocation: true
58
- - name: audit
59
- description: Codebase health audits with severity, confidence, and trend tracking.
60
- invocation_hint: Use $agentera audit for codebase health audits.
61
- policy:
62
- allow_implicit_invocation: true
63
- - name: plan
64
- description: Scale-adaptive planning with behavioral acceptance criteria.
65
- invocation_hint: Use $agentera plan for multi-step planning.
66
- policy:
67
- allow_implicit_invocation: true
68
- - name: vision
69
- description: Project vision creation and refinement.
70
- invocation_hint: Use $agentera vision for project direction work.
71
- policy:
72
- allow_implicit_invocation: true
73
- - name: document
74
- description: DTC-first documentation creation, maintenance, and audit.
75
- invocation_hint: Use $agentera document for documentation work.
76
- policy:
77
- allow_implicit_invocation: true
78
- - name: design
79
- description: Visual identity system creation, refinement, and audit.
80
- invocation_hint: Use $agentera design for design system work.
81
- policy:
82
- allow_implicit_invocation: true
83
- - name: orchestrate
84
- description: Plan-driven orchestration that dispatches capabilities and evaluates results.
85
- invocation_hint: Use $agentera orchestrate for plan execution.
86
- policy:
87
- allow_implicit_invocation: true
@@ -1,31 +0,0 @@
1
- {
2
- "description": "agentera v3 Codex CLI hooks (PascalCase lifecycle events PreToolUse, PostToolUse): schema-backed apply_patch artifact validation; copied to ~/.codex/hooks/codex-hooks.json by upgrade",
3
- "hooks": {
4
- "PreToolUse": [
5
- {
6
- "matcher": "^apply_patch$",
7
- "hooks": [
8
- {
9
- "type": "command",
10
- "command": "npx -y agentera@next hook validate-artifact",
11
- "timeout": 10,
12
- "statusMessage": "validating artifact"
13
- }
14
- ]
15
- }
16
- ],
17
- "PostToolUse": [
18
- {
19
- "matcher": "^apply_patch$",
20
- "hooks": [
21
- {
22
- "type": "command",
23
- "command": "npx -y agentera@next hook validate-artifact",
24
- "timeout": 10,
25
- "statusMessage": "validating artifact"
26
- }
27
- ]
28
- }
29
- ]
30
- }
31
- }
@@ -1,31 +0,0 @@
1
- {
2
- "description": "agentera v3 Codex plugin hooks (PascalCase lifecycle events PreToolUse, PostToolUse): schema-backed apply_patch artifact validation bundled via .codex-plugin/plugin.json using PLUGIN_ROOT",
3
- "hooks": {
4
- "PreToolUse": [
5
- {
6
- "matcher": "^apply_patch$",
7
- "hooks": [
8
- {
9
- "type": "command",
10
- "command": "npx -y agentera@next hook validate-artifact",
11
- "timeout": 10,
12
- "statusMessage": "validating artifact"
13
- }
14
- ]
15
- }
16
- ],
17
- "PostToolUse": [
18
- {
19
- "matcher": "^apply_patch$",
20
- "hooks": [
21
- {
22
- "type": "command",
23
- "command": "npx -y agentera@next hook validate-artifact",
24
- "timeout": 10,
25
- "statusMessage": "validating artifact"
26
- }
27
- ]
28
- }
29
- ]
30
- }
31
- }
@@ -1,13 +0,0 @@
1
- {
2
- "name": "agentera",
3
- "version": "3.0.0",
4
- "description": "Agentera 3.0.0 for GitHub Copilot CLI: one portable skill, twelve capabilities, shared project state, lifecycle hooks, and exact /agentera dashboard routing. profile uses bounded Copilot corpus metadata when present and reports missing source families. Runtime installation, enablement, authentication, and trust remain user-owned.",
5
- "skills": "skills",
6
- "hooks": ".github/hooks",
7
- "agentera": {
8
- "packageShape": "suite-bundle",
9
- "installRoot": ".",
10
- "sharedPaths": ["skills", "hooks", "registry.json", "plugin.json", "README.md", "UPGRADE.md"],
11
- "singleSkillInstall": "Single-skill installs keep core SKILL.md workflow behavior; suite tools are bundle-only enhancements."
12
- }
13
- }
@@ -1,224 +0,0 @@
1
- # Cursor adapter reference
2
-
3
- Agentera ships one active Cursor registry identity: `cursor`. The accepted
4
- `cursor-agent` spelling is an inactive compatibility alias that resolves to
5
- Cursor-owned behavior and source data; it is not independently discoverable.
6
-
7
- Cursor Agent CLI is the required lifecycle surface and Cursor IDE is
8
- conditional. Cloud agents are unsupported. Bare prompt routing remains
9
- metadata-only like GitHub Copilot and Codex.
10
-
11
- ## Quick install
12
-
13
- **Local plugin (no Marketplace listing required)**
14
-
15
- ```bash
16
- git clone https://github.com/jgabor/agentera.git ~/.cursor/plugins/local/agentera
17
- # or: ln -s /path/to/agentera ~/.cursor/plugins/local/agentera
18
- ```
19
-
20
- Restart Cursor or run **Developer: Reload Window**. The plugin root must contain
21
- `.cursor-plugin/plugin.json`. Agentera is not published to the Cursor Marketplace
22
- yet; use this manual local path or Cursor's local plugin loading UI instead.
23
-
24
- The plugin loads skills, managed capability agents, and plugin hooks. When you open
25
- a project that is not an Agentera install root, `sessionStart` exports
26
- `AGENTERA_HOME` from the plugin checkout (including a plugin-root fallback when env
27
- and project walk-up do not resolve a managed root).
28
-
29
- **Portable skill plus project upgrade**
30
-
31
- ```bash
32
- npx skills add jgabor/agentera -g -a cursor --skill agentera -y
33
- npx -y agentera@next upgrade --project "$PWD" --runtime cursor --dry-run
34
- npx -y agentera@next upgrade --project "$PWD" --runtime cursor --yes
35
- npx -y agentera@next doctor --format json
36
- ```
37
-
38
- Use the plugin path for a user-global install. Use upgrade when you need
39
- project-committed `.cursor/hooks.json` and `.cursor/agents/` copies. Both paths can
40
- be combined.
41
-
42
- User-facing install steps also live in [`README.md`](../../README.md) and
43
- [`UPGRADE.md`](../../UPGRADE.md).
44
-
45
- ## Repo-native surfaces
46
-
47
- This repository dogfoods committed Cursor surfaces:
48
-
49
- - `.cursor/hooks.json` — sessionStart env export, preToolUse hard gate, postToolUse advisory validation
50
- - `.cursor/agents/agentera.md` — single managed agent descriptor (D73)
51
- - `.cursor-plugin/plugin.json` — marketplace submission-ready manifest
52
-
53
- Install and repair these Cursor IDE resources through the public lifecycle command
54
- `agentera upgrade --runtime cursor`: use `--dry-run` to preview and `--yes` to
55
- apply Agentera-owned operations. The installed hook file calls private lifecycle
56
- callbacks packaged with the CLI; those callbacks are runtime wiring, not a
57
- user-facing command namespace, and are intentionally absent from public CLI help.
58
- The managed `sessionStart` callback exports `AGENTERA_HOME` through Cursor hook JSON
59
- (`env`) before subsequent callbacks run.
60
-
61
- ## AGENTERA_HOME wiring
62
-
63
- Primary path: the managed Cursor IDE `sessionStart` callback resolves the install
64
- root from `AGENTERA_HOME`, project walk-up, the plugin/checkout root, or the
65
- platform default app home when env and walk-up do not resolve a managed root,
66
- then returns `{"env": {"AGENTERA_HOME": "<root>"}}` plus optional
67
- `additional_context` from the shared session digest.
68
-
69
- Fallback: `packages/cli/src/setup/cursor.ts` reports persistent shell configuration
70
- only when live shell-tool smoke proves session env does not propagate to CLI
71
- subprocesses. Agentera does not write shell rc files by default.
72
-
73
- ## Artifact validation
74
-
75
- | Surface | Behavior | Claim status |
76
- | ------- | -------- | ------------ |
77
- | IDE `preToolUse` (Write/Edit) | Deny invalid reconstructable artifact candidates | Verified after live preToolUse Write smoke (2026-05-24) |
78
- | IDE `postToolUse` (Write/Edit) | Advisory validation through the managed artifact-validation callback | Active |
79
- | CLI | Degraded; depends on workspace hook install and env propagation | Follows IDE smoke evidence only |
80
-
81
- Live preToolUse Write smoke passed on 2026-05-24 with invalid-block and valid-allow
82
- cases recorded in `.agentera/smoke-cursor-pretooluse-evidence.txt`. Conditional
83
- hard-gate claims for reconstructable IDE Write and Edit candidates are verified;
84
- release tagging and marketplace publication remain blocked pending broader release
85
- closeout.
86
-
87
- ## Subagent dispatch
88
-
89
- IDE: managed descriptors under `.cursor/agents/` with `<!-- agentera: managed -->`
90
- ownership markers. Upgrade refreshes Agentera-owned targets and preserves unknown
91
- collisions.
92
-
93
- CLI: host-managed `cursor-agent` print mode through the inactive Cursor alias;
94
- there is no separate descriptor install. Eval coverage may accept the alias but
95
- must report the canonical runtime identity as `cursor`.
96
-
97
- ## Upgrade and doctor
98
-
99
- ```bash
100
- npx -y agentera@next upgrade --project "$PWD" --runtime cursor --dry-run
101
- npx -y agentera@next upgrade --project "$PWD" --runtime cursor --yes
102
- npx -y agentera@next doctor --format json
103
- ```
104
-
105
- Upgrade treats Cursor Agent CLI and Cursor IDE as surfaces of one `cursor` runtime.
106
- It manages the shared canonical skill used by both surfaces and, for the
107
- conditional IDE surface, project hooks, the Agentera descriptor, and plugin
108
- metadata. The shared lifecycle engine creates or repairs only Agentera-owned
109
- resources and preserves unowned collisions.
110
-
111
- Doctor reports all active runtimes in one read-only lifecycle snapshot, including
112
- Cursor CLI and IDE evidence; it does not accept a Cursor-only runtime filter.
113
-
114
- ## Eval
115
-
116
- ```bash
117
- agentera check verify eval skills --runtime cursor --skill agentera --dry-run
118
- ```
119
-
120
- Print mode uses `cursor-agent -p --output-format json --force`. Harnesses apply
121
- bounded timeouts because some CLI builds hang after completion.
122
-
123
- ## Current limitations
124
-
125
- - Cloud agents (no project hook or managed-agent guarantees)
126
- - Bare prompt rewrite routing
127
- - Session compaction injection beyond shared hook helpers
128
- - No separate Cursor Agent CLI hook install distinct from Cursor workspace surfaces
129
-
130
- ## Profilera session corpus (Section 22)
131
-
132
- Profilera mines five canonical record types from host session data. This section
133
- maps each record type to Cursor IDE local storage on disk.
134
-
135
- ### Probe paths
136
-
137
- | Path | Purpose |
138
- | ---- | ------- |
139
- | `~/.cursor/projects/` | Root directory for workspace-scoped Cursor state |
140
- | `~/.cursor/projects/<project-slug>/agent-transcripts/<session-id>/*.jsonl` | Agent session transcripts (Composer / Agent) |
141
- | `~/.cursor/projects/<project-slug>/repo.json` | Workspace metadata (`id` UUID); slug mapping is primary for project scoping |
142
- | `~/.config/cursor/chats/<md5(project-path)>/<session-id>/store.db` | Cursor Agent CLI chat store (gap-fill when JSONL absent) |
143
-
144
- Override the projects root with `--cursor-projects-dir`, the CLI chats root with
145
- `--cursor-chats-dir`, or disable both Cursor source stores with `--no-cursor` on
146
- `agentera report refresh`. The Python extractor wrapper is a maintainer-only parity
147
- surface, not the user-facing command.
148
-
149
- Project slug convention: absolute project path segments joined with `-`, lowercased
150
- (for example `/home/user/git/agentera` → `home-user-git-agentera`). CLI workspace
151
- hashes use `md5(absolute-project-path)` hex (same string Cursor uses under
152
- `~/.config/cursor/chats/`). When `--project-root` is supplied, extraction prefers
153
- matching slugs and workspace hashes over unrelated stores.
154
-
155
- ### Transcript JSONL shape
156
-
157
- Each line is a JSON object:
158
-
159
- ```json
160
- {"role": "user", "message": {"content": [{"type": "text", "text": "..."}]}}
161
- {"role": "assistant", "message": {"content": [{"type": "text", "text": "..."}, {"type": "tool_use", "name": "grep", "input": {"pattern": "..."}}]}}
162
- ```
163
-
164
- Roles are `user` or `assistant`. `message.content` is a list of blocks. Text blocks
165
- use `type: "text"`. Tool blocks use `type: "tool_use"` with `name` and `input`.
166
-
167
- ### Cursor source-product `store.db` shape
168
-
169
- The inactive `cursor-agent` input alias reads Cursor-owned SQLite stores at
170
- `~/.config/cursor/chats/<workspace-hash>/<session-id>/store.db`. Each store has:
171
-
172
- | Table | Purpose |
173
- | ----- | ------- |
174
- | `blobs` | JSON message payloads keyed by content hash (`role`, `content`, optional tool blocks) |
175
- | `meta` | Session metadata (`agentId`, model, mode) |
176
-
177
- JSON blobs use `role` values such as `user`, `assistant`, and `tool`. User content is
178
- often a plain string; assistant content is a list that may include `text` and
179
- `tool-call` items (`toolName`, `args`). Sessions that already have IDE JSONL under
180
- `agent-transcripts/<same-session-id>/` are skipped (gap-fill only).
181
-
182
- ### Portable record families
183
-
184
- | Family | Cursor source | Status |
185
- | ------ | ------------- | ------ |
186
- | Decision history | `history_prompt` from decision-rich user text blocks | Yes (local JSONL) |
187
- | Conversation exchanges | `conversation_turn` from user/assistant lines | Yes (local JSONL) |
188
- | Tool usage | `tool_call` from `tool_use` / `tool-call` blocks | Yes (bounded args) |
189
- | Instruction documents | Project `AGENTS.md` via shared `--project-root` scan | Yes (filesystem) |
190
- | Project config signals | Project manifests via shared `--project-root` scan | Yes (filesystem) |
191
-
192
- ### Degradation and privacy
193
-
194
- Extraction is read-only and local-only. Runtime status uses the shared
195
- `runtime_statuses` vocabulary (`ok`, `missing`, `sparse`, `degraded`, `skipped`).
196
- Diagnostics report counts and bounded reasons only; raw transcript text must not
197
- appear in errors, smoke output, or test assertions.
198
-
199
- | Condition | Status | Reason |
200
- | --------- | ------ | ------ |
201
- | Store path disabled (`--no-cursor`) | `skipped` | `disabled` |
202
- | `~/.cursor/projects` or `~/.config/cursor/chats` absent | `missing` | `store_absent` |
203
- | No `*.jsonl` under `agent-transcripts` / no gap-fill `store.db` | `sparse` | `no_candidate_files` / `no_matching_records` |
204
- | Permission denied | `degraded` | `store_locked` |
205
- | Invalid JSONL lines | `degraded` | `schema_divergent` |
206
- | Candidates present but no normalized records | `sparse` | `no_matching_records` |
207
-
208
- ### Gaps
209
-
210
- - Numeric or opaque project directory names (no slug) skip filesystem project-path
211
- inference; `--project-root` mapping still scopes extraction when the slug matches.
212
- - Cloud agent sessions do not write local `agent-transcripts` in v1.
213
- - `cursor-agent` `store.db` sessions that already have IDE JSONL transcripts are skipped
214
- to avoid duplicate corpus records; gap-fill covers chat-only CLI sessions.
215
- - Binary or non-JSON blobs in `store.db` degrade with bounded diagnostics and do not
216
- leak transcript text.
217
-
218
- ## Source of truth
219
-
220
- Runtime identity and surfaces live in
221
- `references/adapters/runtime-lifecycle-authority.yaml`; eight-category behavior
222
- lives in `references/adapters/runtime-lifecycle-adapters.yaml`. Host-event facts
223
- remain in `references/adapters/runtime-adapter-registry.yaml`, and parity
224
- comparisons belong in `references/adapters/runtime-feature-parity.md`.