svamp-cli 0.2.176 → 0.2.178

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.
Files changed (31) hide show
  1. package/bin/skills/loop/SKILL.md +1 -1
  2. package/dist/{agentCommands-kchQlyIS.mjs → agentCommands-BIn9btot.mjs} +5 -5
  3. package/dist/{auth-oH2upjHc.mjs → auth-DY_tcgLY.mjs} +1 -1
  4. package/dist/cli.mjs +60 -64
  5. package/dist/{commands-CbrJ16x7.mjs → commands-BTyp-k7w.mjs} +5 -5
  6. package/dist/{commands-Cu6nPOsD.mjs → commands-BfdkS7Iy.mjs} +10 -10
  7. package/dist/{commands-USG2Z4XP.mjs → commands-CdMEMD_c.mjs} +1 -1
  8. package/dist/{commands-CXtkDntj.mjs → commands-J9WOCzDG.mjs} +2 -2
  9. package/dist/{commands-DGkX7Kcr.mjs → commands-MjIkmrmC.mjs} +1 -1
  10. package/dist/{commands-DHbv5qMP.mjs → commands-WgUO8QeK.mjs} +1 -1
  11. package/dist/{commands-9LT5p45A.mjs → commands-kepmDOXD.mjs} +2 -2
  12. package/dist/{fleet-BcS8xNkk.mjs → fleet-CDllUpMj.mjs} +1 -1
  13. package/dist/{frpc-Bm7BrLan.mjs → frpc-D4x74mG6.mjs} +1 -1
  14. package/dist/{headlessCli-B4CVNI7S.mjs → headlessCli-CmBCGmNV.mjs} +2 -2
  15. package/dist/index.mjs +1 -1
  16. package/dist/{package-DndVS0ln.mjs → package-B-yM7SvY.mjs} +2 -2
  17. package/dist/{rpc-BbaS0cLh.mjs → rpc-2TJ6ipXZ.mjs} +7 -7
  18. package/dist/{rpc-DVNDMfl8.mjs → rpc-DBH2bo8s.mjs} +1 -1
  19. package/dist/{run-BmpyfykC.mjs → run-B-1WDymr.mjs} +31 -409
  20. package/dist/{run-Cr1yt_tm.mjs → run-BVNBqt1C.mjs} +1 -1
  21. package/dist/{scheduler-BusuolPD.mjs → scheduler-C3j8Tghm.mjs} +1 -1
  22. package/dist/{serveCommands-Crb8ENkv.mjs → serveCommands-BFWBxK8L.mjs} +5 -5
  23. package/dist/{serveManager-DQByExEO.mjs → serveManager-DXm1bdoU.mjs} +2 -2
  24. package/dist/{sideband-B4L2zR2U.mjs → sideband-Da1VG2iq.mjs} +1 -1
  25. package/package.json +2 -2
  26. package/bin/skills/loop/bin/routine-cli.mjs +0 -121
  27. package/bin/skills/loop/bin/routine-runner.mjs +0 -125
  28. package/bin/skills/loop/bin/routine-store.mjs +0 -49
  29. package/bin/skills/loop/routines.process.yaml +0 -20
  30. package/bin/skills/loop/test/test-routine-engine.mjs +0 -122
  31. package/dist/commands-DBi7fxGX.mjs +0 -223
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { E as parseFrontmatter, F as getSkillsServer, G as getSkillsWorkspaceName, H as getSkillsCollectionName, I as fetchWithTimeout, J as searchSkills, K as SKILLS_DIR, L as getSkillInfo, M as downloadSkillFile, N as listSkillFiles } from './run-BmpyfykC.mjs';
4
+ import { C as parseFrontmatter, D as getSkillsServer, E as getSkillsWorkspaceName, F as getSkillsCollectionName, G as fetchWithTimeout, H as searchSkills, I as SKILLS_DIR, J as getSkillInfo, K as downloadSkillFile, L as listSkillFiles } from './run-B-1WDymr.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from 'node:fs';
2
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-DGkX7Kcr.mjs';
2
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-MjIkmrmC.mjs';
3
3
  import { execSync } from 'node:child_process';
4
- import { u as updateIssue, o as addComment, p as addIssue, y as shortId } from './run-BmpyfykC.mjs';
4
+ import { u as updateIssue, o as addComment, p as addIssue, x as shortId } from './run-B-1WDymr.mjs';
5
5
  import 'node:path';
6
6
  import 'node:os';
7
7
  import 'os';
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { execSync } from 'node:child_process';
3
3
  import { basename, resolve, join, isAbsolute } from 'node:path';
4
4
  import os from 'node:os';
5
- import { P as formatHandle, Q as normalizeAllowedUser, T as loadSecurityContextConfig, U as resolveSecurityContext, V as buildSecurityContextFromFlags, W as mergeSecurityContexts, c as connectToHypha, X as buildSessionShareUrl, Y as computeOutboundHop, y as shortId, Z as buildMachineShareUrl, _ as parseHandle, $ as handleMatchesMetadata } from './run-BmpyfykC.mjs';
5
+ import { N as formatHandle, O as normalizeAllowedUser, P as loadSecurityContextConfig, Q as resolveSecurityContext, T as buildSecurityContextFromFlags, U as mergeSecurityContexts, c as connectToHypha, V as buildSessionShareUrl, W as computeOutboundHop, x as shortId, X as buildMachineShareUrl, Y as parseHandle, Z as handleMatchesMetadata } from './run-B-1WDymr.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { m as resolveProjectRoot } from './run-BmpyfykC.mjs';
2
+ import { m as resolveProjectRoot } from './run-B-1WDymr.mjs';
3
3
  import { w as workflowSteps, r as removeWorkflow, g as getWorkflow, l as listWorkflows, s as saveWorkflow, a as rawWorkflow } from './store-BPL__e4D.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-DGkX7Kcr.mjs';
3
+ import { connectAndGetMachine } from './commands-MjIkmrmC.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:child_process';
6
6
  import 'node:path';
7
7
  import 'node:os';
8
- import './run-BmpyfykC.mjs';
8
+ import './run-B-1WDymr.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
3
  import os from 'node:os';
4
- import { c as connectToHypha } from './run-BmpyfykC.mjs';
4
+ import { c as connectToHypha } from './run-B-1WDymr.mjs';
5
5
  import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-HydRNEt7.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
@@ -4,7 +4,7 @@ import { mkdirSync, writeFileSync, unlinkSync, existsSync, chmodSync, readFileSy
4
4
  import { join } from 'path';
5
5
  import { homedir, platform, arch } from 'os';
6
6
  import { randomUUID, createHash } from 'crypto';
7
- import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-BmpyfykC.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-B-1WDymr.mjs';
8
8
  import 'fs/promises';
9
9
  import 'url';
10
10
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { O as resolveModel, a0 as describeMisconfiguration, a1 as buildMachineDeps } from './run-BmpyfykC.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-B4L2zR2U.mjs';
1
+ import { M as resolveModel, _ as describeMisconfiguration, $ as buildMachineDeps } from './run-B-1WDymr.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-Da1VG2iq.mjs';
3
3
  import { WebSocket } from 'ws';
4
4
  import { execSync, spawn } from 'child_process';
5
5
  import 'os';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as connectToHypha, a as createSessionStore, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, s as startDaemon, b as stopDaemon } from './run-BmpyfykC.mjs';
1
+ export { c as connectToHypha, a as createSessionStore, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, s as startDaemon, b as stopDaemon } from './run-B-1WDymr.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,5 +1,5 @@
1
1
  var name = "svamp-cli";
2
- var version = "0.2.176";
2
+ var version = "0.2.178";
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";
@@ -19,7 +19,7 @@ var exports$1 = {
19
19
  var scripts = {
20
20
  build: "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
21
21
  typecheck: "tsc --noEmit",
22
- test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs",
22
+ test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs",
23
23
  "test:hypha": "node --no-warnings test/test-hypha-service.mjs",
24
24
  dev: "tsx src/cli.ts",
25
25
  "dev:daemon": "tsx src/cli.ts daemon start-sync",
@@ -1,4 +1,4 @@
1
- import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues } from './run-BmpyfykC.mjs';
1
+ import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues } from './run-B-1WDymr.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -39,11 +39,11 @@ function ownerScoped(items, session) {
39
39
  const STATUS_MAP = {
40
40
  ready: "ready",
41
41
  start: "in_progress",
42
- close: "done",
43
- done: "done",
42
+ close: "archived",
43
+ done: "archived",
44
44
  reopen: "ready",
45
45
  archive: "archived",
46
- backlog: "backlog"
46
+ backlog: "ready"
47
47
  };
48
48
  function issueRpc(cwd, params) {
49
49
  const root = resolveProjectRoot(cwd || process.cwd());
@@ -61,7 +61,7 @@ function issueRpc(cwd, params) {
61
61
  case "search":
62
62
  return ownerScoped(searchIssues(root, String(params.query || "")), params.session).map(compact);
63
63
  case "pending": {
64
- const items = ownerScoped(listIssues(root), params.session).filter((i) => i.status === "ready" || i.status === "in_progress" || i.status === "backlog" && !i.triaged);
64
+ const items = ownerScoped(listIssues(root), params.session).filter((i) => i.status === "ready" || i.status === "in_progress");
65
65
  return { pending: items.map((i) => i.id), count: items.length };
66
66
  }
67
67
  case "add": {
@@ -80,7 +80,7 @@ function issueRpc(cwd, params) {
80
80
  }
81
81
  return addIssue(root, {
82
82
  title,
83
- status: params.ready ? "ready" : "backlog",
83
+ status: "ready",
84
84
  scope,
85
85
  labels: Array.isArray(params.labels) ? params.labels.map(String) : [],
86
86
  verify: buildVerify(params) ?? null,
@@ -138,7 +138,7 @@ function issueRpc(cwd, params) {
138
138
  const v = buildVerify(params);
139
139
  if (v) patch.verify = v;
140
140
  if (params.body != null) patch.body = String(params.body);
141
- patch.status = params.backlog ? "backlog" : "ready";
141
+ patch.status = "ready";
142
142
  const updated = updateIssue(root, String(params.id), patch);
143
143
  if (!updated) throw new Error(`Issue not found: ${params.id}`);
144
144
  return updated;
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { m as resolveProjectRoot } from './run-BmpyfykC.mjs';
2
+ import { m as resolveProjectRoot } from './run-B-1WDymr.mjs';
3
3
  import { g as getWorkflow, w as workflowSteps, r as removeWorkflow, s as saveWorkflow, a as rawWorkflow, l as listWorkflows } from './store-BPL__e4D.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';