svamp-cli 0.2.157 → 0.2.159

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/dist/cli.mjs CHANGED
@@ -375,11 +375,11 @@ async function main() {
375
375
  }), machineId);
376
376
  process.exit(0);
377
377
  } else if (subcommand === "issue" || subcommand === "issues") {
378
- const { issueCommand } = await import('./commands-CuQ87Qhs.mjs');
378
+ const { issueCommand } = await import('./commands-Bb0Oe9o7.mjs');
379
379
  await issueCommand(args.slice(1));
380
380
  process.exit(0);
381
381
  } else if (subcommand === "workflow" || subcommand === "workflows") {
382
- const { workflowCommand } = await import('./commands-UHMWfXk1.mjs');
382
+ const { workflowCommand } = await import('./commands-mAHn_FPb.mjs');
383
383
  await workflowCommand(args.slice(1));
384
384
  process.exit(0);
385
385
  } else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
@@ -398,7 +398,7 @@ async function main() {
398
398
  } else if (!subcommand || subcommand === "start") {
399
399
  await handleInteractiveCommand();
400
400
  } else if (subcommand === "--version" || subcommand === "-v") {
401
- const pkg = await import('./package-BC1dwVTO.mjs').catch(() => ({ default: { version: "unknown" } }));
401
+ const pkg = await import('./package-DQXsd9oL.mjs').catch(() => ({ default: { version: "unknown" } }));
402
402
  console.log(`svamp version: ${pkg.default.version}`);
403
403
  } else {
404
404
  console.error(`Unknown command: ${subcommand}`);
@@ -1,4 +1,4 @@
1
- import { r as resolveProjectRoot, s as searchIssues, l as listIssues, a as addComment, u as updateIssue, b as summarize, c as addIssue, g as getIssue } from './store-lU-KvCBQ.mjs';
1
+ import { r as resolveProjectRoot, s as searchIssues, l as listIssues, a as addComment, u as updateIssue, b as summarize, c as addIssue, g as getIssue } from './store-BQxdRyuI.mjs';
2
2
  import 'node:fs';
3
3
  import 'node:path';
4
4
  import 'node:child_process';
@@ -60,6 +60,7 @@ async function issueCommand(args) {
60
60
  case "add": {
61
61
  let title = positional(rest)[0];
62
62
  let body = flag(rest, "--body");
63
+ let original;
63
64
  if (!title) {
64
65
  const src = (body || "").trim();
65
66
  if (!src) {
@@ -68,7 +69,8 @@ async function issueCommand(args) {
68
69
  }
69
70
  const nl = src.indexOf("\n");
70
71
  title = (nl === -1 ? src : src.slice(0, nl)).trim().slice(0, 200);
71
- body = nl === -1 ? void 0 : src.slice(nl + 1).trim() || void 0;
72
+ original = src;
73
+ body = void 0;
72
74
  }
73
75
  const labels = rest.filter((a, idx) => rest[idx - 1] === "--label");
74
76
  const scope = flag(rest, "--scope") || (sessionId ? "session" : "project");
@@ -79,6 +81,7 @@ async function issueCommand(args) {
79
81
  labels,
80
82
  verify: buildVerify(rest),
81
83
  session: scope === "session" ? sessionId : null,
84
+ original,
82
85
  body
83
86
  });
84
87
  ok(issue, `Created #${issue.id} (${issue.status}): ${issue.title}`);
@@ -119,7 +122,11 @@ ${s.ready} ready \xB7 ${s.in_progress} in-progress \xB7 ${s.backlog} backlog \xB
119
122
  }
120
123
  out(fmtIssue(issue));
121
124
  out(`status: ${issue.status} \xB7 scope: ${issue.scope} \xB7 created: ${issue.created}${issue.closed ? ` \xB7 closed: ${issue.closed}` : ""}`);
125
+ if (issue.original) out(`
126
+ Original request:
127
+ ${issue.original}`);
122
128
  if (issue.body) out(`
129
+ Description:
123
130
  ${issue.body}`);
124
131
  break;
125
132
  }
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { r as resolveProjectRoot } from './store-lU-KvCBQ.mjs';
2
+ import { r as resolveProjectRoot } from './store-BQxdRyuI.mjs';
3
3
  import { existsSync, unlinkSync, readFileSync, readdirSync, mkdirSync, writeFileSync, renameSync } from 'node:fs';
4
4
  import { join } from 'node:path';
5
5
  import { parse, stringify } from 'yaml';
@@ -1,5 +1,5 @@
1
1
  var name = "svamp-cli";
2
- var version = "0.2.157";
2
+ var version = "0.2.159";
3
3
  var description = "Svamp CLI — AI workspace daemon on Hypha Cloud";
4
4
  var author = "Amun AI AB";
5
5
  var license = "SEE LICENSE IN LICENSE";
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, unlinkSync, readdirSync, mkdirSync, writeFile
2
2
  import { join, dirname } from 'node:path';
3
3
  import { execFileSync } from 'node:child_process';
4
4
 
5
- const FIELD_ORDER = ["id", "title", "status", "scope", "labels", "verify", "disposition", "triaged", "branch", "session", "created", "closed"];
5
+ const FIELD_ORDER = ["id", "title", "status", "scope", "labels", "verify", "disposition", "triaged", "branch", "session", "original", "created", "closed"];
6
6
  function resolveProjectRoot(start = process.cwd()) {
7
7
  let dir = start;
8
8
  for (let i = 0; i < 40; i++) {
@@ -59,6 +59,7 @@ function parseIssue(content) {
59
59
  triaged: fm.triaged === true,
60
60
  branch: fm.branch ?? null,
61
61
  session: fm.session ?? null,
62
+ original: fm.original ?? null,
62
63
  created: String(fm.created ?? (/* @__PURE__ */ new Date()).toISOString()),
63
64
  closed: fm.closed ?? null,
64
65
  body: (m[2] || "").trim() || void 0
@@ -121,6 +122,7 @@ function addIssue(projectRoot, fields) {
121
122
  triaged: fields.triaged ?? false,
122
123
  branch: null,
123
124
  session: fields.session ?? null,
125
+ original: fields.original ?? null,
124
126
  created: (/* @__PURE__ */ new Date()).toISOString(),
125
127
  closed: null,
126
128
  body: fields.body
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svamp-cli",
3
- "version": "0.2.157",
3
+ "version": "0.2.159",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",