@codeagentswarm/cas-cloud 0.0.16 → 0.0.18
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 +23 -29
- package/dist/cas-preview.js +3 -5
- package/dist/cas.js +928 -451
- package/dist/mcp-stdio-server.js +21 -26
- package/package.json +1 -1
- package/scripts/cas-cli-smoke.sh +0 -0
package/dist/mcp-stdio-server.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,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 crypto = 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 ChildProcessLogger2 = 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 crypto = 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");
|
|
@@ -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 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.",
|
|
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_STATUSES2) {
|
|
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,7 +2953,7 @@ var require_worktree_project_resolver = __commonJS({
|
|
|
2958
2953
|
}
|
|
2959
2954
|
});
|
|
2960
2955
|
|
|
2961
|
-
//
|
|
2956
|
+
// src/infrastructure/mcp/mcp-stdio-server.js
|
|
2962
2957
|
var { inspect } = require("util");
|
|
2963
2958
|
var writeProtocol = process.stdout.write.bind(process.stdout);
|
|
2964
2959
|
var _toStderr = (...args) => process.stderr.write(args.map((a) => typeof a === "string" ? a : inspect(a)).join(" ") + "\n");
|
package/package.json
CHANGED
package/scripts/cas-cli-smoke.sh
CHANGED
|
File without changes
|