@codeagentswarm/cas-cloud 0.0.16 → 0.0.17
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/antigravity-mcp-launcher.js +24 -30
- package/dist/cas-preview.js +3 -5
- package/dist/cas.js +487 -439
- package/dist/mcp-stdio-server.js +22 -27
- package/package.json +1 -1
- package/scripts/cas-cli-smoke.sh +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
3
|
var __commonJS = (cb, mod) => function __require() {
|
|
5
4
|
try {
|
|
@@ -9,9 +8,9 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
10
|
|
|
12
|
-
//
|
|
11
|
+
// src/infrastructure/terminal/sandbox-project-request-store.js
|
|
13
12
|
var require_sandbox_project_request_store = __commonJS({
|
|
14
|
-
"
|
|
13
|
+
"src/infrastructure/terminal/sandbox-project-request-store.js"(exports2, module2) {
|
|
15
14
|
"use strict";
|
|
16
15
|
var crypto2 = require("crypto");
|
|
17
16
|
var fs2 = require("fs");
|
|
@@ -84,10 +83,9 @@ var require_sandbox_project_request_store = __commonJS({
|
|
|
84
83
|
}
|
|
85
84
|
});
|
|
86
85
|
|
|
87
|
-
//
|
|
86
|
+
// src/infrastructure/platform/platform-config.js
|
|
88
87
|
var require_platform_config = __commonJS({
|
|
89
|
-
"
|
|
90
|
-
"use strict";
|
|
88
|
+
"src/infrastructure/platform/platform-config.js"(exports2, module2) {
|
|
91
89
|
var os2 = require("os");
|
|
92
90
|
var path2 = require("path");
|
|
93
91
|
var fs2 = require("fs");
|
|
@@ -397,10 +395,9 @@ var require_platform_config = __commonJS({
|
|
|
397
395
|
}
|
|
398
396
|
});
|
|
399
397
|
|
|
400
|
-
//
|
|
398
|
+
// src/shared/logger/child-process-logger.js
|
|
401
399
|
var require_child_process_logger = __commonJS({
|
|
402
|
-
"
|
|
403
|
-
"use strict";
|
|
400
|
+
"src/shared/logger/child-process-logger.js"(exports2, module2) {
|
|
404
401
|
var EventEmitter = require("events");
|
|
405
402
|
var ChildProcessLogger = class extends EventEmitter {
|
|
406
403
|
constructor(sourceName) {
|
|
@@ -487,10 +484,9 @@ var require_child_process_logger = __commonJS({
|
|
|
487
484
|
}
|
|
488
485
|
});
|
|
489
486
|
|
|
490
|
-
//
|
|
487
|
+
// src/infrastructure/platform/platform-utils.js
|
|
491
488
|
var require_platform_utils = __commonJS({
|
|
492
|
-
"
|
|
493
|
-
"use strict";
|
|
489
|
+
"src/infrastructure/platform/platform-utils.js"(exports2, module2) {
|
|
494
490
|
var { execSync } = require("child_process");
|
|
495
491
|
var os2 = require("os");
|
|
496
492
|
var crypto2 = require("crypto");
|
|
@@ -814,10 +810,9 @@ var require_platform_utils = __commonJS({
|
|
|
814
810
|
}
|
|
815
811
|
});
|
|
816
812
|
|
|
817
|
-
//
|
|
813
|
+
// src/infrastructure/database/improved-similarity-algorithm.js
|
|
818
814
|
var require_improved_similarity_algorithm = __commonJS({
|
|
819
|
-
"
|
|
820
|
-
"use strict";
|
|
815
|
+
"src/infrastructure/database/improved-similarity-algorithm.js"(exports2, module2) {
|
|
821
816
|
var ImprovedSimilarityCalculator = class {
|
|
822
817
|
constructor() {
|
|
823
818
|
this.synonymGroups = [
|
|
@@ -1059,10 +1054,9 @@ var require_improved_similarity_algorithm = __commonJS({
|
|
|
1059
1054
|
}
|
|
1060
1055
|
});
|
|
1061
1056
|
|
|
1062
|
-
//
|
|
1057
|
+
// src/infrastructure/database/database-mcp-standalone.js
|
|
1063
1058
|
var require_database_mcp_standalone = __commonJS({
|
|
1064
|
-
"
|
|
1065
|
-
"use strict";
|
|
1059
|
+
"src/infrastructure/database/database-mcp-standalone.js"(exports2, module2) {
|
|
1066
1060
|
var path2 = require("path");
|
|
1067
1061
|
var fs2 = require("fs");
|
|
1068
1062
|
var os2 = require("os");
|
|
@@ -1074,7 +1068,7 @@ var require_database_mcp_standalone = __commonJS({
|
|
|
1074
1068
|
{ status_key: "needs_testing", label: "Needs testing", color: "#3b82f6", icon: "flask-conical", sort_order: 2, is_default: 1, agent_settable: 1, prompt: "Set it when you finish the implementation and the work is pending the user testing it manually. Do not set it if there are still things left to implement." },
|
|
1075
1069
|
{ status_key: "working", label: "Working", color: "#fbbf24", icon: "hammer", sort_order: 3, is_default: 1, agent_settable: 1, prompt: "Set it when you start working on any request and while you are implementing, investigating or fixing something." },
|
|
1076
1070
|
{ status_key: "done", label: "Done", color: "#22c55e", icon: "circle-check", sort_order: 4, is_default: 1, agent_settable: 1, prompt: "Set it when the work is completely finished: implemented, validated and with its commit/push done when applicable. It is the final state." },
|
|
1077
|
-
{ status_key: "idle", label: "Idle", color: "#6b7280", icon: "circle-dashed", sort_order: 5, is_default: 1, agent_settable: 0, prompt: "Set by the app
|
|
1071
|
+
{ status_key: "idle", label: "Idle", color: "#6b7280", icon: "circle-dashed", sort_order: 5, is_default: 1, agent_settable: 0, prompt: "Set by the app when an agent is resting without an explicit work status, including after a reply finishes. It does not mean the work is complete or that user input is required. Agents cannot set this status." }
|
|
1078
1072
|
];
|
|
1079
1073
|
var IDLE_TERMINAL_STATUS_KEY = "idle";
|
|
1080
1074
|
var IDLE_STATUS_SEEDED_SETTING = "terminal_status_idle_seeded";
|
|
@@ -1086,7 +1080,8 @@ var require_database_mcp_standalone = __commonJS({
|
|
|
1086
1080
|
blocked: 5,
|
|
1087
1081
|
done: 6
|
|
1088
1082
|
};
|
|
1089
|
-
var
|
|
1083
|
+
var LEGACY_DEFAULT_PROMPTS = {
|
|
1084
|
+
idle: "Set by the app on an agent that has just been opened and has not been given any work yet. Agents cannot set this status; it clears itself as soon as you send the agent something.",
|
|
1090
1085
|
working: "Ponlo al empezar a trabajar en cualquier petici\xF3n y mientras est\xE9s implementando, investigando o arreglando algo.",
|
|
1091
1086
|
needs_input: "Ponlo cuando pares porque necesites una respuesta o decisi\xF3n del usuario para continuar (una pregunta, una elecci\xF3n de dise\xF1o, un permiso).",
|
|
1092
1087
|
needs_testing: "Ponlo cuando termines la implementaci\xF3n y el trabajo quede pendiente de que el usuario lo pruebe a mano. No lo pongas si a\xFAn quedan cosas por implementar.",
|
|
@@ -1100,14 +1095,14 @@ var require_database_mcp_standalone = __commonJS({
|
|
|
1100
1095
|
label: "Blocked",
|
|
1101
1096
|
color: "#ef4444",
|
|
1102
1097
|
prompt_en: "Set it when you cannot make progress due to something external that does not depend on you or the user: broken CI, a dependency that is down, failing permissions, a third-party bug.",
|
|
1103
|
-
prompt_es:
|
|
1098
|
+
prompt_es: LEGACY_DEFAULT_PROMPTS.blocked
|
|
1104
1099
|
},
|
|
1105
1100
|
{
|
|
1106
1101
|
status_key: "pending_commit",
|
|
1107
1102
|
label: "Pending commit/push",
|
|
1108
1103
|
color: "#a78bfa",
|
|
1109
1104
|
prompt_en: "Set it when the user has already validated the work and only the commit or push remains.",
|
|
1110
|
-
prompt_es:
|
|
1105
|
+
prompt_es: LEGACY_DEFAULT_PROMPTS.pending_commit
|
|
1111
1106
|
}
|
|
1112
1107
|
];
|
|
1113
1108
|
function findSqlite3Path() {
|
|
@@ -1444,13 +1439,13 @@ SELECT COUNT(*) AS count FROM terminal_statuses`);
|
|
|
1444
1439
|
console.error("[MCP Database] Error migrating idle terminal status:", error.message);
|
|
1445
1440
|
}
|
|
1446
1441
|
}
|
|
1447
|
-
// Migration: upgrade the legacy
|
|
1442
|
+
// Migration: upgrade the legacy factory prompts to the English ones.
|
|
1448
1443
|
// Only default statuses whose prompt is still the legacy string VERBATIM (never
|
|
1449
1444
|
// edited by the user) are touched. Idempotent. Mirrors database.js.
|
|
1450
1445
|
migrateLegacyTerminalStatusPrompts() {
|
|
1451
1446
|
try {
|
|
1452
1447
|
for (const status of DEFAULT_TERMINAL_STATUSES) {
|
|
1453
|
-
const legacy =
|
|
1448
|
+
const legacy = LEGACY_DEFAULT_PROMPTS[status.status_key];
|
|
1454
1449
|
if (!legacy) continue;
|
|
1455
1450
|
this.execSQL(
|
|
1456
1451
|
`UPDATE terminal_statuses SET prompt = ?
|
|
@@ -2917,9 +2912,9 @@ ${sql}`);
|
|
|
2917
2912
|
}
|
|
2918
2913
|
});
|
|
2919
2914
|
|
|
2920
|
-
//
|
|
2915
|
+
// src/shared/utils/worktree-project-resolver.js
|
|
2921
2916
|
var require_worktree_project_resolver = __commonJS({
|
|
2922
|
-
"
|
|
2917
|
+
"src/shared/utils/worktree-project-resolver.js"(exports2, module2) {
|
|
2923
2918
|
"use strict";
|
|
2924
2919
|
function resolveProjectDir(directory, worktreeRows) {
|
|
2925
2920
|
if (!directory) return directory;
|
|
@@ -2958,10 +2953,9 @@ var require_worktree_project_resolver = __commonJS({
|
|
|
2958
2953
|
}
|
|
2959
2954
|
});
|
|
2960
2955
|
|
|
2961
|
-
//
|
|
2956
|
+
// src/infrastructure/mcp/mcp-stdio-server.js
|
|
2962
2957
|
var require_mcp_stdio_server = __commonJS({
|
|
2963
|
-
"
|
|
2964
|
-
"use strict";
|
|
2958
|
+
"src/infrastructure/mcp/mcp-stdio-server.js"(exports2, module2) {
|
|
2965
2959
|
var { inspect } = require("util");
|
|
2966
2960
|
var writeProtocol = process.stdout.write.bind(process.stdout);
|
|
2967
2961
|
var _toStderr = (...args) => process.stderr.write(args.map((a) => typeof a === "string" ? a : inspect(a)).join(" ") + "\n");
|
|
@@ -5591,7 +5585,7 @@ Please show me what I should work on next.`
|
|
|
5591
5585
|
}
|
|
5592
5586
|
});
|
|
5593
5587
|
|
|
5594
|
-
//
|
|
5588
|
+
// src/infrastructure/mcp/antigravity-mcp-launcher.js
|
|
5595
5589
|
var fs = require("fs");
|
|
5596
5590
|
var os = require("os");
|
|
5597
5591
|
var path = require("path");
|
package/dist/cas-preview.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
3
|
var __commonJS = (cb, mod) => function __require() {
|
|
5
4
|
try {
|
|
@@ -9,10 +8,9 @@ var __commonJS = (cb, mod) => function __require() {
|
|
|
9
8
|
}
|
|
10
9
|
};
|
|
11
10
|
|
|
12
|
-
//
|
|
11
|
+
// src/infrastructure/headless/ephemeral-preview-service.js
|
|
13
12
|
var require_ephemeral_preview_service = __commonJS({
|
|
14
|
-
"
|
|
15
|
-
"use strict";
|
|
13
|
+
"src/infrastructure/headless/ephemeral-preview-service.js"(exports2, module2) {
|
|
16
14
|
var crypto = require("crypto");
|
|
17
15
|
var fs = require("fs");
|
|
18
16
|
var http2 = require("http");
|
|
@@ -594,7 +592,7 @@ Connection: close\r
|
|
|
594
592
|
}
|
|
595
593
|
});
|
|
596
594
|
|
|
597
|
-
//
|
|
595
|
+
// src/cli/cas-preview.js
|
|
598
596
|
var http = require("http");
|
|
599
597
|
var os = require("os");
|
|
600
598
|
var path = require("path");
|