@codeagentswarm/cas-cloud 0.0.2 → 0.0.12

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/README.md CHANGED
@@ -22,6 +22,19 @@ bundled CodeAgentSwarm MCP. It also installs the guarded global instructions
22
22
  that publish each session's title, activity and work-phase status. Run
23
23
  `cas-cli setup` to perform that same setup explicitly.
24
24
 
25
+ To connect this host to CodeAgentSwarm Desktop, keep `serve` running and ask it
26
+ for a temporary Desktop link:
27
+
28
+ ```sh
29
+ cas-cli connect
30
+ ```
31
+
32
+ Open the printed link on the Mac, or paste it into **Remote devices**. Desktop
33
+ reviews and saves the host; its projects and open sessions then appear in the
34
+ normal Agents list and New Agent launcher while the VPS is online. The link is
35
+ single-use, expires after five minutes, uses the existing encrypted relay and
36
+ does not open an inbound VPS port.
37
+
25
38
  To let a Cloud session read or start work on your Mac, enable **Session
26
39
  communication** on the Mac, create a Mobile Connect pairing code, and keep the
27
40
  Cloud service running while you link it:
@@ -38,10 +51,10 @@ list eligible Mac sessions, read a bounded user/assistant transcript, or list an
38
51
  opaque project and start one new Mac session with a prompt when you explicitly
39
52
  ask. Only assistant prose returns; paths, reasoning and tool output do not.
40
53
 
41
- Desktop's ordinary CAS Cloud pairing provides the reverse direction. With both
42
- links approved, a Mac session can perform the same explicit read or remote start
43
- on CAS Cloud. Direct message injection into an existing cross-host session stays
44
- disabled.
54
+ The Desktop connection created by `cas-cli connect` provides the reverse direction. With both
55
+ links approved, a Mac session can perform the same explicit read, remote start,
56
+ or focused request/response exchange with an eligible CAS Cloud session. Those
57
+ messages stay end-to-end encrypted and are not retained for replay by the relay.
45
58
 
46
59
  Except for components identified in `THIRD_PARTY_NOTICES.md`, this is
47
60
  source-available software under the PolyForm Noncommercial License 1.0.0, not
@@ -153,6 +166,11 @@ and it strips secret-like variables before invoking npm. If the runtime sets
153
166
  times out after ten minutes by default; systemd leaves the bounded health check
154
167
  and rollback in control instead of killing the updater mid-switch.
155
168
 
169
+ An operator deploying an unpublished local tarball without changing its package
170
+ version can set `CAS_CLI_REINSTALL_SAME_VERSION=1` for that one update command.
171
+ The updater accepts only an absolute local file in this mode, keys the release by
172
+ its SHA-256 digest, and keeps the same idle guard, health check and rollback.
173
+
156
174
  ### One-time migration from `codeagentswarm`
157
175
 
158
176
  The updater bundled with legacy `codeagentswarm@2.4.0` cannot recognize a scoped
@@ -161,8 +179,8 @@ new updater once through `npx` from the same environment as the updater service:
161
179
 
162
180
  ```sh
163
181
  CAS_CLI_INSTALL_ROOT="$HOME/.local/share/codeagentswarm-cloud" \
164
- CAS_CLI_UPDATE_SPEC="@codeagentswarm/cas-cloud@0.0.2" \
165
- npx --yes "@codeagentswarm/cas-cloud@0.0.2" update
182
+ CAS_CLI_UPDATE_SPEC="@codeagentswarm/cas-cloud@0.0.6" \
183
+ npx --yes "@codeagentswarm/cas-cloud@0.0.6" update
166
184
  ```
167
185
 
168
186
  Carry over any non-secret `CAS_CLI_STATE`, `CAS_CLI_SYSTEMD_SCOPE` and
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
2
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
4
  var __commonJS = (cb, mod) => function __require() {
4
5
  try {
@@ -8,9 +9,9 @@ var __commonJS = (cb, mod) => function __require() {
8
9
  }
9
10
  };
10
11
 
11
- // src/infrastructure/terminal/sandbox-project-request-store.js
12
+ // ../../src/infrastructure/terminal/sandbox-project-request-store.js
12
13
  var require_sandbox_project_request_store = __commonJS({
13
- "src/infrastructure/terminal/sandbox-project-request-store.js"(exports2, module2) {
14
+ "../../src/infrastructure/terminal/sandbox-project-request-store.js"(exports2, module2) {
14
15
  "use strict";
15
16
  var crypto2 = require("crypto");
16
17
  var fs2 = require("fs");
@@ -83,9 +84,10 @@ var require_sandbox_project_request_store = __commonJS({
83
84
  }
84
85
  });
85
86
 
86
- // src/infrastructure/platform/platform-config.js
87
+ // ../../src/infrastructure/platform/platform-config.js
87
88
  var require_platform_config = __commonJS({
88
- "src/infrastructure/platform/platform-config.js"(exports2, module2) {
89
+ "../../src/infrastructure/platform/platform-config.js"(exports2, module2) {
90
+ "use strict";
89
91
  var os2 = require("os");
90
92
  var path2 = require("path");
91
93
  var fs2 = require("fs");
@@ -395,9 +397,10 @@ var require_platform_config = __commonJS({
395
397
  }
396
398
  });
397
399
 
398
- // src/shared/logger/child-process-logger.js
400
+ // ../../src/shared/logger/child-process-logger.js
399
401
  var require_child_process_logger = __commonJS({
400
- "src/shared/logger/child-process-logger.js"(exports2, module2) {
402
+ "../../src/shared/logger/child-process-logger.js"(exports2, module2) {
403
+ "use strict";
401
404
  var EventEmitter = require("events");
402
405
  var ChildProcessLogger = class extends EventEmitter {
403
406
  constructor(sourceName) {
@@ -484,9 +487,10 @@ var require_child_process_logger = __commonJS({
484
487
  }
485
488
  });
486
489
 
487
- // src/infrastructure/platform/platform-utils.js
490
+ // ../../src/infrastructure/platform/platform-utils.js
488
491
  var require_platform_utils = __commonJS({
489
- "src/infrastructure/platform/platform-utils.js"(exports2, module2) {
492
+ "../../src/infrastructure/platform/platform-utils.js"(exports2, module2) {
493
+ "use strict";
490
494
  var { execSync } = require("child_process");
491
495
  var os2 = require("os");
492
496
  var crypto2 = require("crypto");
@@ -810,9 +814,10 @@ var require_platform_utils = __commonJS({
810
814
  }
811
815
  });
812
816
 
813
- // src/infrastructure/database/improved-similarity-algorithm.js
817
+ // ../../src/infrastructure/database/improved-similarity-algorithm.js
814
818
  var require_improved_similarity_algorithm = __commonJS({
815
- "src/infrastructure/database/improved-similarity-algorithm.js"(exports2, module2) {
819
+ "../../src/infrastructure/database/improved-similarity-algorithm.js"(exports2, module2) {
820
+ "use strict";
816
821
  var ImprovedSimilarityCalculator = class {
817
822
  constructor() {
818
823
  this.synonymGroups = [
@@ -1054,9 +1059,10 @@ var require_improved_similarity_algorithm = __commonJS({
1054
1059
  }
1055
1060
  });
1056
1061
 
1057
- // src/infrastructure/database/database-mcp-standalone.js
1062
+ // ../../src/infrastructure/database/database-mcp-standalone.js
1058
1063
  var require_database_mcp_standalone = __commonJS({
1059
- "src/infrastructure/database/database-mcp-standalone.js"(exports2, module2) {
1064
+ "../../src/infrastructure/database/database-mcp-standalone.js"(exports2, module2) {
1065
+ "use strict";
1060
1066
  var path2 = require("path");
1061
1067
  var fs2 = require("fs");
1062
1068
  var os2 = require("os");
@@ -2911,9 +2917,9 @@ ${sql}`);
2911
2917
  }
2912
2918
  });
2913
2919
 
2914
- // src/shared/utils/worktree-project-resolver.js
2920
+ // ../../src/shared/utils/worktree-project-resolver.js
2915
2921
  var require_worktree_project_resolver = __commonJS({
2916
- "src/shared/utils/worktree-project-resolver.js"(exports2, module2) {
2922
+ "../../src/shared/utils/worktree-project-resolver.js"(exports2, module2) {
2917
2923
  "use strict";
2918
2924
  function resolveProjectDir(directory, worktreeRows) {
2919
2925
  if (!directory) return directory;
@@ -2952,9 +2958,10 @@ var require_worktree_project_resolver = __commonJS({
2952
2958
  }
2953
2959
  });
2954
2960
 
2955
- // src/infrastructure/mcp/mcp-stdio-server.js
2961
+ // ../../src/infrastructure/mcp/mcp-stdio-server.js
2956
2962
  var require_mcp_stdio_server = __commonJS({
2957
- "src/infrastructure/mcp/mcp-stdio-server.js"(exports2, module2) {
2963
+ "../../src/infrastructure/mcp/mcp-stdio-server.js"(exports2, module2) {
2964
+ "use strict";
2958
2965
  var { inspect } = require("util");
2959
2966
  var writeProtocol = process.stdout.write.bind(process.stdout);
2960
2967
  var _toStderr = (...args) => process.stderr.write(args.map((a) => typeof a === "string" ? a : inspect(a)).join(" ") + "\n");
@@ -5557,7 +5564,7 @@ Please show me what I should work on next.`
5557
5564
  }
5558
5565
  });
5559
5566
 
5560
- // src/infrastructure/mcp/antigravity-mcp-launcher.js
5567
+ // ../../src/infrastructure/mcp/antigravity-mcp-launcher.js
5561
5568
  var fs = require("fs");
5562
5569
  var os = require("os");
5563
5570
  var path = require("path");
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
2
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
4
  var __commonJS = (cb, mod) => function __require() {
4
5
  try {
@@ -8,9 +9,10 @@ var __commonJS = (cb, mod) => function __require() {
8
9
  }
9
10
  };
10
11
 
11
- // src/infrastructure/headless/ephemeral-preview-service.js
12
+ // ../../src/infrastructure/headless/ephemeral-preview-service.js
12
13
  var require_ephemeral_preview_service = __commonJS({
13
- "src/infrastructure/headless/ephemeral-preview-service.js"(exports2, module2) {
14
+ "../../src/infrastructure/headless/ephemeral-preview-service.js"(exports2, module2) {
15
+ "use strict";
14
16
  var crypto = require("crypto");
15
17
  var fs = require("fs");
16
18
  var http2 = require("http");
@@ -592,7 +594,7 @@ Connection: close\r
592
594
  }
593
595
  });
594
596
 
595
- // src/cli/cas-preview.js
597
+ // ../../src/cli/cas-preview.js
596
598
  var http = require("http");
597
599
  var os = require("os");
598
600
  var path = require("path");