agentera 3.0.0-dev.3 → 3.0.0-dev.5

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 (131) hide show
  1. package/README.md +39 -6
  2. package/bundle/.agentera-npx-bundle.json +1 -1
  3. package/bundle/references/cli/agent-ready-state-contract.yaml +20 -17
  4. package/bundle/references/cli/bundle-skill-vocabulary.yaml +1 -1
  5. package/bundle/references/cli/capability-instruction-contract.yaml +98 -57
  6. package/bundle/references/cli/routing-execution-vocabulary.yaml +6 -6
  7. package/bundle/references/cli/update-channels.yaml +27 -7
  8. package/bundle/references/cli/vocabulary-index.yaml +3 -3
  9. package/bundle/references/cli/vocabulary.md +28 -19
  10. package/bundle/registry.json +1 -1
  11. package/bundle/skills/agentera/SKILL.md +38 -21
  12. package/bundle/skills/agentera/agents/dokumentera.toml +1 -1
  13. package/bundle/skills/agentera/agents/hej.toml +1 -1
  14. package/bundle/skills/agentera/agents/inspektera.toml +1 -1
  15. package/bundle/skills/agentera/agents/inspirera.toml +1 -1
  16. package/bundle/skills/agentera/agents/optimera.toml +1 -1
  17. package/bundle/skills/agentera/agents/orkestrera.toml +1 -1
  18. package/bundle/skills/agentera/agents/planera.toml +1 -1
  19. package/bundle/skills/agentera/agents/profilera.toml +1 -1
  20. package/bundle/skills/agentera/agents/realisera.toml +1 -1
  21. package/bundle/skills/agentera/agents/resonera.toml +1 -1
  22. package/bundle/skills/agentera/agents/visionera.toml +1 -1
  23. package/bundle/skills/agentera/agents/visualisera.toml +1 -1
  24. package/bundle/skills/agentera/capabilities/orkestrera/schemas/validation.yaml +26 -13
  25. package/bundle/skills/agentera/capability_schema_contract.yaml +33 -14
  26. package/bundle/skills/agentera/references/contract.md +2 -2
  27. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +1 -1
  28. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +15 -36
  29. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +14 -0
  30. package/bundle/skills/hej/SKILL.md +1 -1
  31. package/dist/analytics/usageStats.js +23 -1
  32. package/dist/analytics/usageStats.js.map +1 -1
  33. package/dist/capabilities/dokumentera/instructions.js +6 -0
  34. package/dist/capabilities/dokumentera/instructions.js.map +1 -0
  35. package/dist/capabilities/hej/instructions.js +6 -0
  36. package/dist/capabilities/hej/instructions.js.map +1 -0
  37. package/dist/capabilities/index.js +38 -0
  38. package/dist/capabilities/index.js.map +1 -0
  39. package/dist/capabilities/inspektera/instructions.js +6 -0
  40. package/dist/capabilities/inspektera/instructions.js.map +1 -0
  41. package/dist/capabilities/inspirera/instructions.js +6 -0
  42. package/dist/capabilities/inspirera/instructions.js.map +1 -0
  43. package/dist/capabilities/optimera/instructions.js +6 -0
  44. package/dist/capabilities/optimera/instructions.js.map +1 -0
  45. package/dist/capabilities/orkestrera/instructions.js +6 -0
  46. package/dist/capabilities/orkestrera/instructions.js.map +1 -0
  47. package/dist/capabilities/planera/instructions.js +6 -0
  48. package/dist/capabilities/planera/instructions.js.map +1 -0
  49. package/dist/capabilities/profilera/instructions.js +6 -0
  50. package/dist/capabilities/profilera/instructions.js.map +1 -0
  51. package/dist/capabilities/realisera/instructions.js +6 -0
  52. package/dist/capabilities/realisera/instructions.js.map +1 -0
  53. package/dist/capabilities/resonera/instructions.js +6 -0
  54. package/dist/capabilities/resonera/instructions.js.map +1 -0
  55. package/dist/capabilities/visionera/instructions.js +6 -0
  56. package/dist/capabilities/visionera/instructions.js.map +1 -0
  57. package/dist/capabilities/visualisera/instructions.js +6 -0
  58. package/dist/capabilities/visualisera/instructions.js.map +1 -0
  59. package/dist/cli/capabilityContext.js +92 -26
  60. package/dist/cli/capabilityContext.js.map +1 -1
  61. package/dist/cli/commands/capability.js +1 -8
  62. package/dist/cli/commands/capability.js.map +1 -1
  63. package/dist/cli/commands/doctor.js +42 -3
  64. package/dist/cli/commands/doctor.js.map +1 -1
  65. package/dist/cli/commands/report.js +5 -1
  66. package/dist/cli/commands/report.js.map +1 -1
  67. package/dist/cli/commands/state.js +22 -11
  68. package/dist/cli/commands/state.js.map +1 -1
  69. package/dist/cli/commands/validate.js +12 -2
  70. package/dist/cli/commands/validate.js.map +1 -1
  71. package/dist/cli/commands/verify.js +6 -0
  72. package/dist/cli/commands/verify.js.map +1 -1
  73. package/dist/cli/dispatch.js +508 -172
  74. package/dist/cli/dispatch.js.map +1 -1
  75. package/dist/cli/errors.js +53 -0
  76. package/dist/cli/errors.js.map +1 -0
  77. package/dist/cli/help.js +201 -0
  78. package/dist/cli/help.js.map +1 -0
  79. package/dist/cli/orientation.js +9 -6
  80. package/dist/cli/orientation.js.map +1 -1
  81. package/dist/cli/stateQuery.js +7 -0
  82. package/dist/cli/stateQuery.js.map +1 -1
  83. package/dist/cli/todoMarkdown.js +33 -0
  84. package/dist/cli/todoMarkdown.js.map +1 -0
  85. package/dist/hooks/common.js +0 -2
  86. package/dist/hooks/common.js.map +1 -1
  87. package/dist/hooks/validateArtifact.js +10 -8
  88. package/dist/hooks/validateArtifact.js.map +1 -1
  89. package/dist/registries/capabilityContract.js +12 -11
  90. package/dist/registries/capabilityContract.js.map +1 -1
  91. package/dist/registries/evaluatorHandoffContract.js +171 -0
  92. package/dist/registries/evaluatorHandoffContract.js.map +1 -0
  93. package/dist/setup/codex.js +146 -5
  94. package/dist/setup/codex.js.map +1 -1
  95. package/dist/setup/doctor.js +22 -1
  96. package/dist/setup/doctor.js.map +1 -1
  97. package/dist/setup/smokeChecks.js +111 -0
  98. package/dist/setup/smokeChecks.js.map +1 -0
  99. package/dist/upgrade/channels.js +9 -3
  100. package/dist/upgrade/channels.js.map +1 -1
  101. package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -1
  102. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +1 -1
  103. package/dist/upgrade/nextMajorDoctor.js +121 -0
  104. package/dist/upgrade/nextMajorDoctor.js.map +1 -0
  105. package/dist/upgrade/runtimeMigration.js +19 -3
  106. package/dist/upgrade/runtimeMigration.js.map +1 -1
  107. package/dist/upgrade/versionResolution.js +4 -4
  108. package/dist/upgrade/versionResolution.js.map +1 -1
  109. package/dist/validate/appHomeContract.js +1 -1
  110. package/dist/validate/appHomeContract.js.map +1 -1
  111. package/dist/validate/capability.js +11 -3
  112. package/dist/validate/capability.js.map +1 -1
  113. package/package.json +3 -3
  114. package/bundle/skills/agentera/capabilities/dokumentera/instructions.md +0 -428
  115. package/bundle/skills/agentera/capabilities/hej/instructions.md +0 -331
  116. package/bundle/skills/agentera/capabilities/inspektera/instructions.md +0 -514
  117. package/bundle/skills/agentera/capabilities/inspirera/instructions.md +0 -280
  118. package/bundle/skills/agentera/capabilities/optimera/instructions.md +0 -437
  119. package/bundle/skills/agentera/capabilities/orkestrera/instructions.md +0 -433
  120. package/bundle/skills/agentera/capabilities/planera/instructions.md +0 -368
  121. package/bundle/skills/agentera/capabilities/profilera/instructions.md +0 -419
  122. package/bundle/skills/agentera/capabilities/realisera/instructions.md +0 -403
  123. package/bundle/skills/agentera/capabilities/resonera/instructions.md +0 -329
  124. package/bundle/skills/agentera/capabilities/visionera/instructions.md +0 -309
  125. package/bundle/skills/agentera/capabilities/visualisera/instructions.md +0 -400
  126. package/dist/cli/commands/backfill.js +0 -84
  127. package/dist/cli/commands/backfill.js.map +0 -1
  128. package/dist/core/git.js +0 -43
  129. package/dist/core/git.js.map +0 -1
  130. package/dist/state/progressCommit.js +0 -289
  131. package/dist/state/progressCommit.js.map +0 -1
@@ -1,280 +0,0 @@
1
- # INSPIRERA
2
-
3
- **Insight Navigation: Source Pattern Identification and Resonance. Evaluate, Reframe, Assimilate**
4
-
5
- Analyze an external resource and map its ideas to a target project. Output a structured markdown analysis the user can navigate and act on.
6
-
7
- Skill introduction: `─── ⬚ inspirera · analysis ───`
8
-
9
- ---
10
-
11
- ## Visual identity
12
-
13
- Glyph: **⬚** (protocol ref: SG10). Used in the mandatory exit marker.
14
-
15
- ---
16
-
17
- ## State artifacts
18
-
19
- No dedicated state file. Writes to other capabilities' artifacts.
20
-
21
- | Artifact | Purpose | Path |
22
- |----------|---------|------|
23
- | TODO.md | File actionable findings for realisera (severity per protocol SF1-SF3) | `TODO.md` (per DOCS.md mapping) |
24
- | VISION.md | Refine direction when inspiration shifts thinking | `VISION.md` (per DOCS.md mapping) |
25
- | PROFILE.md | Decision profile for persona-grounded applicability judgments | `$PROFILERA_PROFILE_DIR/PROFILE.md` (global, not project-scoped) |
26
-
27
- ### Artifact path resolution
28
-
29
- Before reading or writing any artifact, check if .agentera/docs.yaml exists. If it has an Artifact Mapping section, use the path specified for each canonical filename (TODO.md, VISION.md, etc.). If .agentera/docs.yaml doesn't exist or has no mapping for a given artifact, use the default layout: TODO.md, CHANGELOG.md, and DESIGN.md at the project root; canonical VISION.md at .agentera/vision.yaml; other agent-facing artifacts at .agentera/*.yaml. This applies to all artifact references in this capability, including cross-capability writes (TODO.md, VISION.md).
30
-
31
- PROFILE.md is global, not project-scoped. Its path is determined by profilera: `$PROFILERA_PROFILE_DIR/PROFILE.md` (default: `$XDG_DATA_HOME/agentera/PROFILE.md`). Check the profilera-determined path directly rather than falling back to the project root.
32
-
33
- ### Contract values
34
-
35
- Contract values are inlined where referenced. Visual tokens from protocol: confidence tokens VT9-VT11 (━/─/┄), list item VT15 (▸), inline separator VT16 (·), section divider VT14. Skill glyph SG10 for exit markers. Exit signals EX1-EX4 for status reporting. Severity finding levels SF1-SF3 for TODO.md entries.
36
-
37
- `references/contract.md` (at the v2 skill location `skills/agentera/references/contract.md`) remains available as a full-spec reference for ambiguous cases or cross-checking.
38
-
39
- ---
40
-
41
- Step markers: display `── step N/5: verb` before each step.
42
- Steps: identify, read, explore, map, deliver.
43
-
44
- ---
45
-
46
- ## Step 1: Identify source and target
47
-
48
- From the user's message, extract:
49
-
50
- - **Source**: the external URL (GitHub repo, article, docs, HN thread, etc.)
51
- - **Target**: the user's project, which could be any of:
52
- - A **GitHub repo URL** → explore via the optional GitHub MCP integration
53
- - A **local path** or project name → explore via filesystem tools
54
- - The **current working directory** → if the user says "my project" / "what I'm building" without a URL, and they're clearly working in a project, treat cwd as the target
55
- - **Absent** → if truly no target is implied, skip Steps 3–4 and do source-only analysis
56
-
57
- ---
58
-
59
- ## Step 2: Read the source
60
-
61
- This should feel like a colleague diving into something interesting, genuinely curious, reading deeply, forming opinions as you go. Not a report generator collecting data points.
62
-
63
- ### GitHub repos
64
-
65
- Use the optional GitHub MCP integration to explore deeply:
66
-
67
- 1. List root directory structure
68
- 2. Read README
69
- 3. Read key source directories until you understand: core abstractions, design patterns,
70
- notable primitives, dependencies, clever approaches worth borrowing
71
-
72
- Go deep and don't stop at the README. If the optional GitHub MCP integration
73
- returns errors, fall back to public pages or note the limitation.
74
-
75
- ### Articles, blog posts, docs pages
76
-
77
- Fetch full content. Extract core thesis, named concepts/patterns, code samples, and referenced tools. If paywalled, try reader-mode variant; if that fails, note the limitation.
78
-
79
- ### Hacker News threads
80
-
81
- Read both the linked article and top comments. HN comments often contain the most useful distillation. Treat as signal.
82
-
83
- ### Known libraries
84
-
85
- For well-known libraries, also check context7 for up-to-date docs beyond the README.
86
-
87
- Before proceeding to target analysis: in your response, list the 3-5 most transferable concepts from the source. These survive if the source file reads are cleared.
88
-
89
- ---
90
-
91
- ## Step 3: Read the target project
92
-
93
- Choose the exploration strategy based on the target type identified in Step 1.
94
-
95
- ### Local projects (current directory or local path)
96
-
97
- Common case. Use filesystem tools (faster, includes uncommitted work):
98
-
99
- 1. `Glob` to map the directory structure (e.g. `**/*.{ts,go,py,rs}`)
100
- 2. Read README.md if one exists
101
- 3. Check dependency manifests (`package.json`, `go.mod`, `Cargo.toml`, `pyproject.toml`, etc.)
102
- 4. `Grep` for patterns, imports, or abstractions relevant to the source's concepts
103
- 5. Read key source files to understand architecture and current patterns
104
-
105
- ### Remote GitHub repos
106
-
107
- Use the optional GitHub MCP integration:
108
-
109
- 1. List the root directory structure
110
- 2. Read the README
111
- 3. Read dependency manifests and key source files
112
-
113
- ### Build understanding of
114
-
115
- Language, stack, dependencies, architecture, patterns, and problems being solved.
116
-
117
- ### Check for existing usage
118
-
119
- Does the target already use the source (or a fork/alternative)?
120
-
121
- - **Already using**: "Getting the most out of it?" Focus on underused features and better patterns.
122
- - **Using alternative**: "Worth switching?" Compare approaches and migration cost.
123
- - **Not using**: "Should you adopt?" This is the default framing.
124
-
125
- ---
126
-
127
- ## Step 4: Map concepts across
128
-
129
- With both codebases understood, reason about applicability:
130
-
131
- - What is the source doing that the target should be?
132
- - Abstractions that simplify current complexity?
133
- - Patterns the target implements manually or poorly?
134
- - Primitives worth borrowing or adapting?
135
- - Source doing something the target does, but better?
136
- - Fundamentally incompatible? Say so clearly.
137
- - Adoption cost: one-file change or multi-sprint refactor?
138
-
139
- ---
140
-
141
- ## Step 5: Deliver the analysis
142
-
143
- The sharp colleague, here to share what you dug up, not file a report. Open with your take before the structured sections: what excited you, what surprised you, what the user should care about most. "Here's what I found and what matters for us." The structured analysis follows, but the human read comes first.
144
-
145
- Write a **structured markdown analysis**:
146
-
147
- ### Output format
148
-
149
- ````markdown
150
- # [Source Name] → [Target Name]: Cross-Pollination Analysis
151
-
152
- ## TL;DR
153
- One or two sentences. Is this worth pursuing? What's the strongest single takeaway?
154
-
155
- ## Source Overview
156
- Brief summary of what the source does and its core design philosophy.
157
-
158
- ## Key Concepts
159
-
160
- ### [Concept Name]
161
- What it is, why it's interesting, and concretely where/how it applies to the target.
162
-
163
- ### [Concept Name]
164
- ...repeat for each significant concept (typically 2–5)
165
-
166
- Reason through concept applicability in your response text. The Applicability Matrix below
167
- should contain only conclusions, not reasoning chains.
168
- Output constraint: ≤15 words per matrix cell.
169
-
170
- ## Applicability Matrix
171
-
172
- | Concept | Relevance | Effort | Where in [Target] | Already Partially Done? |
173
- |---------|-----------|--------|-------------------|------------------------|
174
- | ... | High/Med/Low | Low/Med/High | specific module or file | Yes/No |
175
-
176
- ## What Doesn't Apply
177
- Honest assessment of concepts/patterns that look interesting but don't fit, and why.
178
- Being clear about what *not* to adopt is as valuable as the recommendations.
179
-
180
- ## Recommended Next Steps
181
- ▸ [action] · [specific file or module]
182
- ▸ [action] · [specific file or module]
183
- Ordered by value/effort ratio.
184
- ````
185
-
186
- **Tone**: direct, technically fluent. Skip empty sections. Lead with highest signal.
187
-
188
- Offer to go deeper: prototype a change, explore a concept with code, compare alternatives.
189
-
190
- ### No target given
191
-
192
- Surface transferable concepts in general terms. Skip Applicability Matrix. Ask if the user wants to map to a specific project.
193
-
194
- ---
195
-
196
- ## Safety rails
197
-
198
- <critical>
199
- - NEVER modify code in the target project. Inspirera analyzes; other capabilities implement.
200
- - NEVER write to TODO.md or VISION.md without explicit user confirmation. Present findings and get approval before filing.
201
- - NEVER present shallow analysis as deep insight. If you haven't read the source thoroughly, say so.
202
- - NEVER recommend adoption without assessing fit. Every recommendation must consider the target project's constraints, stack, and principles.
203
- - NEVER fabricate source content. Quote actual code and text from the source.
204
- </critical>
205
-
206
- ---
207
-
208
- ## Exit signals
209
-
210
- Report one of these statuses at workflow completion (protocol refs: EX1-EX4).
211
-
212
- Format: emit `⬚ inspirera · <status>` on its own line, followed by a one-sentence summary. For `flagged` (EX2), `stuck` (EX3), and `waiting` (EX4), add a ▸ (VT15) bullet below the summary identifying what needs attention. The exit marker uses inspirera's canonical glyph ⬚ (SG10, U+2B1A).
213
-
214
- - **complete** (EX1): Source was read deeply, target project was explored (if provided), concept mapping was completed, and a structured analysis with applicability matrix and recommended next steps was delivered.
215
- - **flagged** (EX2): Analysis completed but with limitations worth surfacing: the source was paywalled or truncated, the target project was inaccessible, or key concepts could not be fully assessed for fit (e.g., incompatible language or paradigm).
216
- - **stuck** (EX3): Cannot proceed because the source URL is inaccessible and no fallback content is available, or the target project specified does not exist and cannot be located.
217
- - **waiting** (EX4): The source link was not provided or is malformed, or the target project is genuinely ambiguous and neither the current directory nor context resolves it.
218
-
219
- ---
220
-
221
- ## Cross-capability integration
222
-
223
- Inspirera is part of a twelve-capability suite. Its analysis feeds naturally into the other capabilities.
224
-
225
- ### Feeding into realisera
226
-
227
- Add actionable findings to the project's TODO.md, classifying each by severity per protocol SF1-SF3. Or refine VISION.md's direction if the inspiration shifts thinking. The next realisera cycle picks up the changes automatically.
228
-
229
- ### Feeding into optimera
230
-
231
- When the source contains optimization techniques (performance patterns, algorithm improvements, caching strategies), optimera's Hypothesize step can draw on the analysis for its next experiment.
232
-
233
- ### Informed by profilera
234
-
235
- If a decision profile exists at `$PROFILERA_PROFILE_DIR/PROFILE.md`, read it directly and use effective confidence to weight applicability judgments. If PROFILE.md is missing, proceed without persona grounding.
236
-
237
- ### Feeding into visionera
238
-
239
- When the analysis shifts thinking about the project's direction (a new paradigm, a competitor's approach, or a user need not yet captured), the findings can inform vision refinement. Suggest ⛥ visionera to revisit VISION.md with the new context.
240
-
241
- ### Feeding into planera
242
-
243
- When the analysis recommends adopting patterns or libraries, planera can incorporate those recommendations into a plan's design section and task decomposition.
244
-
245
- ### Feeding into resonera
246
-
247
- When the analysis surfaces recommendations that require deliberation (competing approaches, unclear adoption cost, or tradeoffs the user needs to resolve), suggest ❈ resonera to think it through before acting. Resonera can evaluate which recommendations are actually worth adopting and capture the reasoning in DECISIONS.md.
248
-
249
- ---
250
-
251
- ## Getting started
252
-
253
- ### Analyze a GitHub repo
254
-
255
- ```
256
- /agentera research https://github.com/org/repo
257
- ```
258
-
259
- Reads the repo, maps its patterns to your current project.
260
-
261
- ### Analyze an article or docs page
262
-
263
- ```
264
- /agentera research https://example.com/blog/interesting-approach
265
- ```
266
-
267
- Extracts transferable concepts and assesses applicability.
268
-
269
- ### Feed findings into the development loop
270
-
271
- After analysis, file actionable findings to TODO.md for ⧉ realisera to pick up, or refine VISION.md if the research shifts your project's direction.
272
-
273
- ---
274
-
275
- ## Notes on depth vs. speed
276
-
277
- - Read more files, not fewer. Shallow reads produce shallow analysis.
278
- - Large repos: focus on modules most relevant to the concept, not everything.
279
- - Explore source and target concurrently where possible.
280
- - Always use the optional GitHub MCP integration for GitHub URLs.