@vpxa/aikit 0.1.99 → 0.1.101
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 +29 -33
- package/package.json +2 -2
- package/packages/aikit-client/dist/index.d.ts +27 -27
- package/packages/aikit-client/dist/index.js +2 -2
- package/packages/analyzers/dist/index.js +2 -2
- package/packages/cli/dist/constants-__Dx2-7-.js +1 -0
- package/packages/cli/dist/index.js +3 -3
- package/packages/cli/dist/init-CwpITli0.js +7 -0
- package/packages/cli/dist/{templates-DVcEiTlc.js → templates-Dz2d2veK.js} +9 -9
- package/packages/cli/dist/{user-Dj8KE0_0.js → user-CpsehvsY.js} +1 -1
- package/packages/core/dist/index.d.ts +8 -8
- package/packages/core/dist/index.js +1 -1
- package/packages/dashboard/dist/assets/{index-C6D-PCp0.js → index-CxrC6OtB.js} +3 -3
- package/packages/dashboard/dist/index.html +1 -1
- package/packages/enterprise-bridge/dist/index.d.ts +1 -1
- package/packages/enterprise-bridge/dist/index.js +1 -1
- package/packages/indexer/dist/index.d.ts +6 -6
- package/packages/server/dist/index.d.ts +1 -1
- package/packages/server/dist/index.js +1 -1
- package/packages/server/dist/server-DfCR_Bix.js +1282 -0
- package/packages/server/dist/{version-check-AMfxaZUw.js → version-check-Bj07vc5x.js} +1 -1
- package/packages/store/dist/index.d.ts +9 -22
- package/packages/store/dist/index.js +6 -6
- package/packages/tools/dist/index.d.ts +16 -15
- package/packages/tools/dist/index.js +6 -6
- package/scaffold/definitions/mcp-entry.json +8 -0
- package/scaffold/dist/adapters/intellij.mjs +3 -0
- package/scaffold/dist/adapters/zed.mjs +4 -0
- package/scaffold/dist/definitions/agents.mjs +1 -1
- package/scaffold/dist/definitions/bodies.mjs +16 -16
- package/scaffold/dist/definitions/flows.mjs +32 -32
- package/scaffold/dist/definitions/hooks.mjs +1 -1
- package/scaffold/dist/definitions/mcp.mjs +1 -0
- package/scaffold/dist/definitions/prompts.mjs +7 -7
- package/scaffold/dist/definitions/protocols.mjs +28 -24
- package/scaffold/dist/definitions/skills.mjs +67 -67
- package/scaffold/dist/definitions/tools.mjs +1 -1
- package/packages/cli/dist/constants-BHJ95m41.js +0 -1
- package/packages/cli/dist/init-CVtbu7zj.js +0 -7
- package/packages/server/dist/server-DZ1V42_x.js +0 -1282
|
@@ -99,15 +99,15 @@ Past decisions, conventions, and patterns are stored in curated knowledge. Auto-
|
|
|
99
99
|
|
|
100
100
|
\`\`\`
|
|
101
101
|
search("keywords about the feature/area you're changing") // check for past decisions
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
knowledge({ action: "list", category: "decisions" }) // scan recent decisions that might apply
|
|
103
|
+
knowledge({ action: "list", category: "conventions" }) // see project conventions (includes auto-captured)
|
|
104
104
|
scope_map("what you need") // generates a reading plan
|
|
105
105
|
\`\`\`
|
|
106
106
|
|
|
107
107
|
**Rules:**
|
|
108
108
|
- If results exist → **READ them and FOLLOW** established patterns. Do not silently override.
|
|
109
109
|
- If results conflict with the current task → **surface the conflict** to the user/orchestrator.
|
|
110
|
-
- If no results → proceed, but
|
|
110
|
+
- If no results → proceed, but **persist your decisions with \`knowledge({ action: "remember", ... })\`** afterward for future recall.
|
|
111
111
|
- Never assume "there's nothing stored" — always search first.
|
|
112
112
|
|
|
113
113
|
### Step 3: Real-time Exploration (only
|
|
@@ -199,7 +199,7 @@ Before making changes, establish expected scope. Flag deviations early.
|
|
|
199
199
|
|
|
200
200
|
## MANDATORY: Memory Persistence Before Completing
|
|
201
201
|
|
|
202
|
-
**Before finishing ANY task**, you MUST call \`remember
|
|
202
|
+
**Before finishing ANY task**, you MUST call \`knowledge({ action: "remember", ... })\` if ANY of these apply:
|
|
203
203
|
|
|
204
204
|
- ✅ You discovered how something works that wasn't in onboard artifacts
|
|
205
205
|
- ✅ You made an architecture or design decision
|
|
@@ -207,9 +207,10 @@ Before making changes, establish expected scope. Flag deviations early.
|
|
|
207
207
|
- ✅ You identified a pattern, convention, or project-specific gotcha
|
|
208
208
|
- ✅ You encountered and resolved an error that others might hit
|
|
209
209
|
|
|
210
|
-
**How to
|
|
210
|
+
**How to persist knowledge:**
|
|
211
211
|
\`\`\`
|
|
212
|
-
|
|
212
|
+
knowledge({
|
|
213
|
+
action: "remember",
|
|
213
214
|
title: "Short descriptive title",
|
|
214
215
|
content: "Detailed finding with context",
|
|
215
216
|
category: "patterns" | "conventions" | "decisions" | "troubleshooting"
|
|
@@ -217,13 +218,13 @@ remember({
|
|
|
217
218
|
\`\`\`
|
|
218
219
|
|
|
219
220
|
**Examples:**
|
|
220
|
-
- \`
|
|
221
|
-
- \`
|
|
222
|
-
- \`
|
|
221
|
+
- \`knowledge({ action: "remember", title: "Auth uses JWT refresh tokens with 15min expiry", content: "Access tokens expire in 15 min, refresh in 7 days. Middleware at src/auth/guard.ts validates.", category: "patterns" })\`
|
|
222
|
+
- \`knowledge({ action: "remember", title: "Build requires Node 20+", content: "Uses Web Crypto API — Node 18 fails silently on crypto.subtle calls.", category: "conventions" })\`
|
|
223
|
+
- \`knowledge({ action: "remember", title: "Decision: LanceDB over Chroma for vector store", content: "LanceDB is embedded (no Docker), supports WASM, better for user-level MCP.", category: "decisions" })\`
|
|
223
224
|
|
|
224
225
|
**If you complete a task without remembering anything, you likely missed something.** Review what you learned.
|
|
225
226
|
|
|
226
|
-
For outdated AI Kit entries → \`update
|
|
227
|
+
For outdated AI Kit entries → \`knowledge({ action: "update", path, content, reason })\`
|
|
227
228
|
|
|
228
229
|
---
|
|
229
230
|
|
|
@@ -239,14 +240,14 @@ For outdated AI Kit entries → \`update(path, content, reason)\`
|
|
|
239
240
|
|
|
240
241
|
| Phase | What to do | Compress after? |
|
|
241
242
|
|-------|-----------|----------------|
|
|
242
|
-
| **Understand** | Search
|
|
243
|
+
| **Understand** | Search AI Kit, read summaries, trace symbols | Yes — \`digest\` findings before planning |
|
|
243
244
|
| **Plan** | Design approach, identify files to change | Yes — \`stash\` the plan, compact analysis |
|
|
244
245
|
| **Execute** | Make changes, one sub-task at a time | Yes — compact between independent sub-tasks |
|
|
245
246
|
| **Verify** | \`check\` + \`test_run\` + \`blast_radius\` | — |
|
|
246
247
|
|
|
247
248
|
**Rules:**
|
|
248
249
|
- **Never compact mid-operation** — finish the current sub-task first
|
|
249
|
-
- **Recycle context to files** — save analysis results via \`stash\` or \`remember\`, not just in conversation
|
|
250
|
+
- **Recycle context to files** — save analysis results via \`stash\` or \`knowledge({ action: "remember", ... })\`, not just in conversation
|
|
250
251
|
- **Decompose monolithic work** — break into independent chunks, pass results via artifact files between sub-tasks
|
|
251
252
|
- **One-shot sub-tasks** — for self-contained changes, provide all context upfront to avoid back-and-forth
|
|
252
253
|
|
|
@@ -435,7 +436,7 @@ scope_map("what you need to investigate")
|
|
|
435
436
|
for code exploration (graph FIRST for module relationships)
|
|
436
437
|
- Use \`graph({ action: 'neighbors' })\` to understand cross-module dependencies before diving into symbol details
|
|
437
438
|
- Use \`file_summary\`, \`compact\` for efficient file reading
|
|
438
|
-
- Use \`
|
|
439
|
+
- Use \`analyze({ aspect: "structure", ... })\`, \`analyze({ aspect: "dependencies", ... })\` for package-level understanding
|
|
439
440
|
- Use \`web_search\`, \`web_fetch\` for external documentation
|
|
440
441
|
|
|
441
442
|
### Phase 3: Synthesis
|
|
@@ -454,21 +455,22 @@ Return structured findings. Always include:
|
|
|
454
455
|
|
|
455
456
|
### Phase 5: MANDATORY — Persist Discoveries
|
|
456
457
|
|
|
457
|
-
**Before returning your report**, you MUST call \`remember
|
|
458
|
+
**Before returning your report**, you MUST call \`knowledge({ action: "remember", ... })\` for:
|
|
458
459
|
- ✅ Architecture insights not already in onboard artifacts
|
|
459
460
|
- ✅ Non-obvious findings, gotchas, or edge cases
|
|
460
461
|
- ✅ Trade-off analysis and recommendations made
|
|
461
462
|
- ✅ External knowledge gathered from web_search/web_fetch
|
|
462
463
|
|
|
463
464
|
\`\`\`
|
|
464
|
-
|
|
465
|
+
knowledge({
|
|
466
|
+
action: "remember",
|
|
465
467
|
title: "Short descriptive title",
|
|
466
468
|
content: "Detailed finding with context",
|
|
467
469
|
category: "patterns" | "conventions" | "decisions" | "troubleshooting"
|
|
468
470
|
})
|
|
469
471
|
\`\`\`
|
|
470
472
|
|
|
471
|
-
**If you complete research without
|
|
473
|
+
**If you complete research without persisting anything, you wasted tokens.** Your research should enrich the AI Kit knowledge store for future sessions.
|
|
472
474
|
|
|
473
475
|
---
|
|
474
476
|
|
|
@@ -561,7 +563,7 @@ Workflow;
|
|
|
561
563
|
1 ** AI;
|
|
562
564
|
Kit;
|
|
563
565
|
Recall** —
|
|
564
|
-
\`search("conventions relevant-area")\` + \`list
|
|
566
|
+
\`search("conventions relevant-area")\` + \`knowledge({ action: "list" })\`
|
|
565
567
|
for past review findings, patterns
|
|
566
568
|
2. **Blast
|
|
567
569
|
Radius** —
|
|
@@ -572,8 +574,9 @@ Radius** —
|
|
|
572
574
|
6. **Report** — Structured findings
|
|
573
575
|
with verdict
|
|
574
576
|
7. **Persist** —
|
|
575
|
-
\`
|
|
577
|
+
\`knowledge(
|
|
576
578
|
{
|
|
579
|
+
action: "remember",
|
|
577
580
|
title: 'Review: <finding>', content;
|
|
578
581
|
: "<details>", category: "patterns"
|
|
579
582
|
}
|
|
@@ -736,16 +739,17 @@ Workflow;
|
|
|
736
739
|
1 ** AI;
|
|
737
740
|
Kit;
|
|
738
741
|
Recall** —
|
|
739
|
-
\`search("architecture decisions boundaries")\` + \`list
|
|
742
|
+
\`search("architecture decisions boundaries")\` + \`knowledge({ action: "list" })\`
|
|
740
743
|
for past ADRs, patterns
|
|
741
744
|
2. **Analyze** —
|
|
742
|
-
\`
|
|
745
|
+
\`analyze({ aspect: "structure", ... })\`, \`analyze({ aspect: "dependencies", ... })\`, \`blast_radius\`
|
|
743
746
|
3. **Evaluate** — Check all dimensions below
|
|
744
747
|
4. **Report** — Structured findings
|
|
745
748
|
with verdict
|
|
746
749
|
5. **Persist** —
|
|
747
|
-
\`
|
|
750
|
+
\`knowledge(
|
|
748
751
|
{
|
|
752
|
+
action: "remember",
|
|
749
753
|
title: 'Architecture: <finding>', content;
|
|
750
754
|
: "<details>", category: "decisions"
|
|
751
755
|
}
|
|
@@ -971,7 +975,7 @@ The Orchestrator synthesizes BOTH layers (original research + peer reviews) into
|
|
|
971
975
|
Then:
|
|
972
976
|
1. **Present** the verdict using \`present(format: "html" )\` with comparison blocks
|
|
973
977
|
2. **Produce an ADR** via the \`adr-skill\`
|
|
974
|
-
3. **\`remember\`** the decision for future recall
|
|
978
|
+
3. **\`knowledge({ action: "remember", ... })\`** the decision for future recall
|
|
975
979
|
|
|
976
980
|
## When to Use (Auto-Trigger Rules)
|
|
977
981
|
|
|
@@ -993,14 +997,14 @@ Trigger the decision protocol when there is an **unresolved non-trivial technica
|
|
|
993
997
|
- Never make a non-trivial technical decision without multi-model analysis
|
|
994
998
|
- Always present the verdict visually using \`present\`
|
|
995
999
|
- **Produce an ADR** after every decision resolution
|
|
996
|
-
- \`remember\` the decision for future recall
|
|
1000
|
+
- \`knowledge({ action: "remember", ... })\` the decision for future recall
|
|
997
1001
|
|
|
998
1002
|
## Shortcut: Floor-Tier Decisions
|
|
999
1003
|
|
|
1000
1004
|
For decisions classified as **Floor tier** (blast_radius ≤ 2, single concern):
|
|
1001
1005
|
- Skip Phase 2 (peer review) — synthesis directly from Phase 1
|
|
1002
1006
|
- Verdict format still required but can be abbreviated
|
|
1003
|
-
- ADR is optional (use \`remember\` at minimum)
|
|
1007
|
+
- ADR is optional (use \`knowledge({ action: "remember", ... })\` at minimum)
|
|
1004
1008
|
`,"forge-protocol":`# FORGE Protocol — Quality Overlay
|
|
1005
1009
|
|
|
1006
1010
|
> Follow the FORGE (Fact-Oriented Reasoning with Graduated Evidence) protocol for all code generation and modification tasks.
|