nexarch 0.6.6 → 0.6.7

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.
@@ -1,3 +1,4 @@
1
+ import { existsSync, readFileSync } from "fs";
1
2
  import process from "process";
2
3
  import { requireCredentials } from "../lib/credentials.js";
3
4
  import { callMcpTool } from "../lib/mcp.js";
@@ -19,7 +20,16 @@ function parseToolText(result) {
19
20
  export async function commandDone(args) {
20
21
  const asJson = parseFlag(args, "--json");
21
22
  const id = parseOptionValue(args, "--id");
22
- const summary = parseOptionValue(args, "--summary");
23
+ const summaryArg = parseOptionValue(args, "--summary");
24
+ const summaryFile = parseOptionValue(args, "--summary-file");
25
+ let summary = summaryArg;
26
+ if (summaryFile) {
27
+ if (!existsSync(summaryFile)) {
28
+ console.error(`error: --summary-file not found: ${summaryFile}`);
29
+ process.exit(1);
30
+ }
31
+ summary = readFileSync(summaryFile, "utf8");
32
+ }
23
33
  if (!id) {
24
34
  console.error("error: --id <commandId> is required");
25
35
  process.exit(1);
package/dist/index.js CHANGED
@@ -132,6 +132,7 @@ Usage:
132
132
  Mark a claimed command as completed.
133
133
  Options: --id <commandId> (required)
134
134
  --summary <text> short summary of what was done
135
+ --summary-file <path.md|txt>
135
136
  --json
136
137
  nexarch command-fail
137
138
  Mark a claimed command as failed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexarch",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Your architecture workspace for AI delivery.",
5
5
  "keywords": [
6
6
  "nexarch",