spacecode 2.14.7 → 2.14.9
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/index.js +238 -238
- package/dist/index.js.map +3 -3
- package/dist/mcp/index.js +24 -24
- package/dist/mcp/index.js.map +1 -1
- package/dist/repl.mjs +822 -796
- package/package.json +1 -1
package/dist/mcp/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/vendor/ansi-styles/index.js
|
|
34
34
|
function assembleStyles() {
|
|
35
35
|
const codes = /* @__PURE__ */ new Map();
|
|
36
36
|
for (const [groupName, group] of Object.entries(styles)) {
|
|
@@ -147,7 +147,7 @@ function assembleStyles() {
|
|
|
147
147
|
}
|
|
148
148
|
var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
|
|
149
149
|
var init_ansi_styles = __esm({
|
|
150
|
-
"
|
|
150
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/vendor/ansi-styles/index.js"() {
|
|
151
151
|
ANSI_BACKGROUND_OFFSET = 10;
|
|
152
152
|
wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
|
|
153
153
|
wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -221,7 +221,7 @@ var init_ansi_styles = __esm({
|
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
//
|
|
224
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/vendor/supports-color/index.js
|
|
225
225
|
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
226
226
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
227
227
|
const position = argv.indexOf(prefix + flag);
|
|
@@ -339,7 +339,7 @@ function createSupportsColor(stream, options = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
var import_node_process, import_node_os, import_node_tty, env, flagForceColor, supportsColor, supports_color_default;
|
|
341
341
|
var init_supports_color = __esm({
|
|
342
|
-
"
|
|
342
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/vendor/supports-color/index.js"() {
|
|
343
343
|
import_node_process = __toESM(require("node:process"), 1);
|
|
344
344
|
import_node_os = __toESM(require("node:os"), 1);
|
|
345
345
|
import_node_tty = __toESM(require("node:tty"), 1);
|
|
@@ -357,7 +357,7 @@ var init_supports_color = __esm({
|
|
|
357
357
|
}
|
|
358
358
|
});
|
|
359
359
|
|
|
360
|
-
//
|
|
360
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/utilities.js
|
|
361
361
|
function stringReplaceAll(string, substring, replacer) {
|
|
362
362
|
let index = string.indexOf(substring);
|
|
363
363
|
if (index === -1) {
|
|
@@ -387,17 +387,17 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
|
|
|
387
387
|
return returnValue;
|
|
388
388
|
}
|
|
389
389
|
var init_utilities = __esm({
|
|
390
|
-
"
|
|
390
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/utilities.js"() {
|
|
391
391
|
}
|
|
392
392
|
});
|
|
393
393
|
|
|
394
|
-
//
|
|
394
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/index.js
|
|
395
395
|
function createChalk(options) {
|
|
396
396
|
return chalkFactory(options);
|
|
397
397
|
}
|
|
398
398
|
var stdoutColor, stderrColor, GENERATOR, STYLER, IS_EMPTY, levelMapping, styles2, applyOptions, chalkFactory, getModelAnsi, usedModels, proto, createStyler, createBuilder, applyStyle, chalk, chalkStderr, source_default;
|
|
399
399
|
var init_source = __esm({
|
|
400
|
-
"
|
|
400
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/chalk/source/index.js"() {
|
|
401
401
|
init_ansi_styles();
|
|
402
402
|
init_supports_color();
|
|
403
403
|
init_utilities();
|
|
@@ -600,7 +600,7 @@ var init_task = __esm({
|
|
|
600
600
|
}
|
|
601
601
|
});
|
|
602
602
|
|
|
603
|
-
//
|
|
603
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/shared/dist/types/remote.js
|
|
604
604
|
var remote_exports = {};
|
|
605
605
|
__export(remote_exports, {
|
|
606
606
|
API_PROXY_URL: () => API_PROXY_URL,
|
|
@@ -615,7 +615,7 @@ function getProxyUrl(mode = "pipeline") {
|
|
|
615
615
|
}
|
|
616
616
|
var DEFAULT_REGION, DEFAULT_SIZE, API_PROXY_URL, DEFAULT_API_URL, SANDBOX_WORKER_URL;
|
|
617
617
|
var init_remote = __esm({
|
|
618
|
-
"
|
|
618
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/shared/dist/types/remote.js"() {
|
|
619
619
|
"use strict";
|
|
620
620
|
DEFAULT_REGION = "iad";
|
|
621
621
|
DEFAULT_SIZE = "performance-8x";
|
|
@@ -1444,10 +1444,10 @@ var init_env = __esm({
|
|
|
1444
1444
|
}
|
|
1445
1445
|
});
|
|
1446
1446
|
|
|
1447
|
-
//
|
|
1447
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/sandbox-client/dist/types.js
|
|
1448
1448
|
var SandboxApiError;
|
|
1449
1449
|
var init_types = __esm({
|
|
1450
|
-
"
|
|
1450
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/sandbox-client/dist/types.js"() {
|
|
1451
1451
|
"use strict";
|
|
1452
1452
|
SandboxApiError = class extends Error {
|
|
1453
1453
|
/** The HTTP status code from the failed response. */
|
|
@@ -1461,7 +1461,7 @@ var init_types = __esm({
|
|
|
1461
1461
|
}
|
|
1462
1462
|
});
|
|
1463
1463
|
|
|
1464
|
-
//
|
|
1464
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/sandbox-client/dist/client.js
|
|
1465
1465
|
function createSandboxClient(baseUrl, token, options = {}) {
|
|
1466
1466
|
const actingUserId = options.actingUserId;
|
|
1467
1467
|
const base = baseUrl.replace(/\/+$/, "");
|
|
@@ -1594,20 +1594,20 @@ function createSandboxClient(baseUrl, token, options = {}) {
|
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
1596
|
var init_client2 = __esm({
|
|
1597
|
-
"
|
|
1597
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/sandbox-client/dist/client.js"() {
|
|
1598
1598
|
"use strict";
|
|
1599
1599
|
init_types();
|
|
1600
1600
|
}
|
|
1601
1601
|
});
|
|
1602
1602
|
|
|
1603
|
-
//
|
|
1603
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/sandbox-client/dist/index.js
|
|
1604
1604
|
var dist_exports = {};
|
|
1605
1605
|
__export(dist_exports, {
|
|
1606
1606
|
SandboxApiError: () => SandboxApiError,
|
|
1607
1607
|
createSandboxClient: () => createSandboxClient
|
|
1608
1608
|
});
|
|
1609
1609
|
var init_dist = __esm({
|
|
1610
|
-
"
|
|
1610
|
+
"../../../../../../../../../Users/am/portfolio/devtools/spacecode/packages/sandbox-client/dist/index.js"() {
|
|
1611
1611
|
"use strict";
|
|
1612
1612
|
init_client2();
|
|
1613
1613
|
init_types();
|
|
@@ -2152,7 +2152,7 @@ var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
|
2152
2152
|
// src/mcp/server.ts
|
|
2153
2153
|
var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
|
|
2154
2154
|
|
|
2155
|
-
//
|
|
2155
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/external.js
|
|
2156
2156
|
var external_exports = {};
|
|
2157
2157
|
__export(external_exports, {
|
|
2158
2158
|
BRAND: () => BRAND,
|
|
@@ -2264,7 +2264,7 @@ __export(external_exports, {
|
|
|
2264
2264
|
void: () => voidType
|
|
2265
2265
|
});
|
|
2266
2266
|
|
|
2267
|
-
//
|
|
2267
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/helpers/util.js
|
|
2268
2268
|
var util;
|
|
2269
2269
|
(function(util2) {
|
|
2270
2270
|
util2.assertEqual = (_) => {
|
|
@@ -2398,7 +2398,7 @@ var getParsedType = (data) => {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
};
|
|
2400
2400
|
|
|
2401
|
-
//
|
|
2401
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/ZodError.js
|
|
2402
2402
|
var ZodIssueCode = util.arrayToEnum([
|
|
2403
2403
|
"invalid_type",
|
|
2404
2404
|
"invalid_literal",
|
|
@@ -2516,7 +2516,7 @@ ZodError.create = (issues) => {
|
|
|
2516
2516
|
return error;
|
|
2517
2517
|
};
|
|
2518
2518
|
|
|
2519
|
-
//
|
|
2519
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/locales/en.js
|
|
2520
2520
|
var errorMap = (issue, _ctx) => {
|
|
2521
2521
|
let message;
|
|
2522
2522
|
switch (issue.code) {
|
|
@@ -2619,7 +2619,7 @@ var errorMap = (issue, _ctx) => {
|
|
|
2619
2619
|
};
|
|
2620
2620
|
var en_default = errorMap;
|
|
2621
2621
|
|
|
2622
|
-
//
|
|
2622
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/errors.js
|
|
2623
2623
|
var overrideErrorMap = en_default;
|
|
2624
2624
|
function setErrorMap(map) {
|
|
2625
2625
|
overrideErrorMap = map;
|
|
@@ -2628,7 +2628,7 @@ function getErrorMap() {
|
|
|
2628
2628
|
return overrideErrorMap;
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
|
-
//
|
|
2631
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/helpers/parseUtil.js
|
|
2632
2632
|
var makeIssue = (params) => {
|
|
2633
2633
|
const { data, path, errorMaps, issueData } = params;
|
|
2634
2634
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -2738,14 +2738,14 @@ var isDirty = (x) => x.status === "dirty";
|
|
|
2738
2738
|
var isValid = (x) => x.status === "valid";
|
|
2739
2739
|
var isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
2740
2740
|
|
|
2741
|
-
//
|
|
2741
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/helpers/errorUtil.js
|
|
2742
2742
|
var errorUtil;
|
|
2743
2743
|
(function(errorUtil2) {
|
|
2744
2744
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
2745
2745
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
2746
2746
|
})(errorUtil || (errorUtil = {}));
|
|
2747
2747
|
|
|
2748
|
-
//
|
|
2748
|
+
// ../../../../../../../../../Users/am/portfolio/devtools/spacecode/node_modules/zod/v3/types.js
|
|
2749
2749
|
var ParseInputLazyPath = class {
|
|
2750
2750
|
constructor(parent, value, path, key) {
|
|
2751
2751
|
this._cachedPath = [];
|