@archme/cli 0.14.4 → 0.14.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.
- package/SKILL.md +4 -4
- package/dist/cli.js +6 -5
- package/package.json +1 -1
- package/sandbox-image.json +1 -1
package/SKILL.md
CHANGED
|
@@ -166,10 +166,10 @@ code + writes a proposal, exactly like a build sub-agent, and never touches the
|
|
|
166
166
|
user's code). Logging reuses the
|
|
167
167
|
proposals surface, not a bespoke mechanism: a prose-only proposal (empty graph
|
|
168
168
|
delta, `body` naming what's wrong, where by file:line/symbol, and why) under the
|
|
169
|
-
project's standing **"Bugs" folder**, `stage: 'backlog'` so it parks
|
|
170
|
-
triages. The daemon injects the
|
|
171
|
-
finds-or-creates it (`search_proposals({ kind: 'folder', text: 'Bugs' })`,
|
|
172
|
-
`create_proposal({ kind: 'folder', title: 'Bugs' })`). Dedup by searching the
|
|
169
|
+
project's standing **"Bugs found by ArchMe" folder**, `stage: 'backlog'` so it parks
|
|
170
|
+
until a human triages. The daemon injects the folder id for you; a manual scan
|
|
171
|
+
finds-or-creates it (`search_proposals({ kind: 'folder', text: 'Bugs found by ArchMe' })`,
|
|
172
|
+
else `create_proposal({ kind: 'folder', title: 'Bugs found by ArchMe' })`). Dedup by searching the
|
|
173
173
|
folder by title — the same standing bug is re-noticed on every commit. Keep the
|
|
174
174
|
bar high (a few per run at most, code-review-worthy only); logging a bug is
|
|
175
175
|
**orthogonal** to your architecture task — still call
|
package/dist/cli.js
CHANGED
|
@@ -15420,14 +15420,15 @@ var init_agentFeedback = __esm({
|
|
|
15420
15420
|
|
|
15421
15421
|
// ../shared/bugReport.ts
|
|
15422
15422
|
function buildBugReportGuidance(bugsFolderId) {
|
|
15423
|
-
const folderMechanic = bugsFolderId ? `Bugs live under the project's standing "
|
|
15423
|
+
const folderMechanic = bugsFolderId ? `Bugs live under the project's standing "${BUGS_FOLDER_TITLE}" folder, id \`${bugsFolderId}\`. Pass that id to the bug-validation sub-agent so it files each confirmed bug with \`create_proposal({ kind: 'proposal', parent_id: '${bugsFolderId}', stage: 'backlog', title: '<concise>', body: '<what/where/why>', about: { component: '<root.\u2026 path>' } })\`.` : `Bugs live under a standing "${BUGS_FOLDER_TITLE}" folder. Have the bug-validation sub-agent resolve it once with \`search_proposals({ kind: 'folder', text: '${BUGS_FOLDER_TITLE}' })\`, create it with \`create_proposal({ kind: 'folder', title: '${BUGS_FOLDER_TITLE}' })\` if none exists, then file each confirmed bug with \`create_proposal({ kind: 'proposal', parent_id: '<folder id>', stage: 'backlog', title: '<concise>', body: '<what/where/why>', about: { component: '<root.\u2026 path>' } })\`.`;
|
|
15424
15424
|
return `${BUG_REPORT_CORE}
|
|
15425
15425
|
|
|
15426
15426
|
${folderMechanic}`;
|
|
15427
15427
|
}
|
|
15428
|
-
var BUG_REPORT_CORE;
|
|
15428
|
+
var BUGS_FOLDER_TITLE, BUG_REPORT_CORE;
|
|
15429
15429
|
var init_bugReport = __esm({
|
|
15430
15430
|
"../shared/bugReport.ts"() {
|
|
15431
|
+
BUGS_FOLDER_TITLE = "Bugs found by ArchMe";
|
|
15431
15432
|
BUG_REPORT_CORE = "**Bugs you happen to notice.** Don't hunt for bugs \u2014 stay on the architecture task \u2014 but don't ignore an obvious, real one that surfaces while you read the code (a null-deref, a missing `await`, an unhandled error path, a broken invariant). Have any sub-agents you dispatch report a suspect back to you (a one-line `possible bug: <what> at <file:line>`) rather than filing it themselves. When suspects come back, dispatch ONE bug-validation sub-agent \u2014 it reads code and calls `create_proposal`, exactly like the build sub-agent, and never modifies the user's code \u2014 and have it: verify each suspect against the code, and for every one it confirms as a real defect, FILE it itself as a prose-only proposal (`create_proposal` with `kind: 'proposal'`, `stage: 'backlog'`, an empty graph delta, and a one-paragraph `body`: what is wrong, where by file:line or symbol, and why), `about` the component it lives in (`{ component: '<root.\u2026 path>' }` \u2014 find_components_for_paths maps the file to it), else the user story whose flow it breaks (`{ story: '<id>' }`). It skips anything it can't confirm, and searches the folder by title first to skip anything already logged. Keep the bar high \u2014 obvious, confirmed defects only, a few per run at most, never speculation, style, or a design opinion; record, never fix. Logging a bug is orthogonal to your architecture task and does NOT replace your completion signal \u2014 still call `update_architecture` or `report_no_change` exactly as you otherwise would.";
|
|
15432
15433
|
}
|
|
15433
15434
|
});
|
|
@@ -16032,17 +16033,17 @@ async function ensureBugsFolder(client, projectId) {
|
|
|
16032
16033
|
return createdId;
|
|
16033
16034
|
} catch (err4) {
|
|
16034
16035
|
console.warn(
|
|
16035
|
-
`[bugs-folder] could not resolve/create the "
|
|
16036
|
+
`[bugs-folder] could not resolve/create the "${BUGS_FOLDER_TITLE}" folder for project ${projectId}; bug filing falls back to agent find-or-create:`,
|
|
16036
16037
|
err4 instanceof Error ? err4.message : err4
|
|
16037
16038
|
);
|
|
16038
16039
|
return null;
|
|
16039
16040
|
}
|
|
16040
16041
|
}
|
|
16041
|
-
var
|
|
16042
|
+
var BUGS_FOLDER_DESCRIPTION, cache;
|
|
16042
16043
|
var init_bugsFolder = __esm({
|
|
16043
16044
|
"src/daemon/bugsFolder.ts"() {
|
|
16044
16045
|
"use strict";
|
|
16045
|
-
|
|
16046
|
+
init_bugReport();
|
|
16046
16047
|
BUGS_FOLDER_DESCRIPTION = "Bugs noticed by scan/diff agents in the code while updating the architecture. Prose-only proposals; humans triage.";
|
|
16047
16048
|
cache = /* @__PURE__ */ new Map();
|
|
16048
16049
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archme/cli",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.5",
|
|
4
4
|
"description": "Map your codebase into a living architecture diagram: run `archme init` in a repo to scan it, `archme daemon start` to keep it current on every commit.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
package/sandbox-image.json
CHANGED