@trycedar/argus 0.1.0 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1 - 2026-05-13
4
+
5
+ ### Fixed
6
+
7
+ - `proactive approve` / `proactive reject` now update the matched inbox file in place instead of creating a duplicate `<id>.md` file when the source filename has a descriptive suffix. (task-018)
8
+ - Repeat approvals no longer stack `## CEO Response` sections; the latest response replaces any prior one. Idempotent on repeat calls.
9
+
3
10
  ## 0.1.0 - 2026-05-13
4
11
 
5
12
  Initial dogfood release candidate. Published as `@trycedar/argus` (codename Argus). The CLI binary is `proactive` in this release and will be renamed to `argus` in 0.2.0.
package/dist/index.js CHANGED
@@ -421,16 +421,21 @@ async function writeInboxItem(workspaceRoot, item, content) {
421
421
  return relativePath;
422
422
  }
423
423
  async function respondToInboxItem(workspaceRoot, doc, status, response) {
424
- await writeInboxItem(
425
- workspaceRoot,
426
- { ...doc.item, status, updated_at: (/* @__PURE__ */ new Date()).toISOString() },
427
- `${doc.content.trimEnd()}
424
+ const updatedItem = inboxItemSchema.parse({
425
+ ...doc.item,
426
+ status,
427
+ updated_at: (/* @__PURE__ */ new Date()).toISOString()
428
+ });
429
+ const baseContent = doc.content.replace(/\n*##\s+CEO Response[\s\S]*$/m, "");
430
+ const nextContent = `${baseContent.trimEnd()}
428
431
 
429
432
  ## CEO Response
430
433
 
431
434
  ${response}
432
- `
433
- );
435
+ `;
436
+ const absolutePath = path6.join(workspaceRoot, doc.path);
437
+ await mkdir4(path6.dirname(absolutePath), { recursive: true });
438
+ await writeFile5(absolutePath, stringifyMarkdown(updatedItem, nextContent));
434
439
  }
435
440
 
436
441
  // src/agents/agent-store.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycedar/argus",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Git-native proactive AI agent organization framework CLI.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.25.0",