@dexto/core 1.16.6 → 1.17.0-beta.5
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/agent/DextoAgent.cjs +2 -1
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/DextoAgent.js +2 -1
- package/dist/agent/schemas.d.ts +2 -2
- package/dist/approval/index.cjs +4 -0
- package/dist/approval/index.d.ts +1 -1
- package/dist/approval/index.d.ts.map +1 -1
- package/dist/approval/index.js +4 -0
- package/dist/events/index.cjs +2 -3
- package/dist/events/index.d.ts +6 -23
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +2 -3
- package/dist/llm/error-codes.cjs +1 -0
- package/dist/llm/error-codes.d.ts +1 -0
- package/dist/llm/error-codes.d.ts.map +1 -1
- package/dist/llm/error-codes.js +1 -0
- package/dist/llm/executor/provider-error.cjs +14 -0
- package/dist/llm/executor/provider-error.d.ts.map +1 -1
- package/dist/llm/executor/provider-error.js +14 -0
- package/dist/llm/executor/turn-executor.cjs +4 -0
- package/dist/llm/executor/turn-executor.d.ts +5 -5
- package/dist/llm/executor/turn-executor.d.ts.map +1 -1
- package/dist/llm/executor/turn-executor.js +4 -0
- package/dist/llm/index.cjs +6 -0
- package/dist/llm/index.d.ts +2 -0
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +4 -0
- package/dist/llm/private-address.cjs +88 -0
- package/dist/llm/private-address.d.ts +3 -0
- package/dist/llm/private-address.d.ts.map +1 -0
- package/dist/llm/private-address.js +65 -0
- package/dist/llm/providers/codex-app-server.cjs +3 -3
- package/dist/llm/providers/codex-app-server.js +3 -3
- package/dist/llm/providers/local/errors.cjs +4 -4
- package/dist/llm/providers/local/errors.js +4 -4
- package/dist/llm/safe-download.cjs +159 -0
- package/dist/llm/safe-download.d.ts +21 -0
- package/dist/llm/safe-download.d.ts.map +1 -0
- package/dist/llm/safe-download.js +126 -0
- package/dist/logger/logger.cjs +12 -9
- package/dist/logger/logger.d.ts.map +1 -1
- package/dist/logger/logger.js +12 -9
- package/dist/logger/v2/dexto-logger.cjs +3 -2
- package/dist/logger/v2/dexto-logger.d.ts.map +1 -1
- package/dist/logger/v2/dexto-logger.js +3 -2
- package/dist/mcp/mcp-client.cjs +17 -8
- package/dist/mcp/mcp-client.d.ts +4 -2
- package/dist/mcp/mcp-client.d.ts.map +1 -1
- package/dist/mcp/mcp-client.js +17 -8
- package/dist/mcp/schemas.cjs +3 -0
- package/dist/mcp/schemas.d.ts +3 -0
- package/dist/mcp/schemas.d.ts.map +1 -1
- package/dist/mcp/schemas.js +3 -0
- package/dist/resources/handlers/filesystem-handler.cjs +7 -6
- package/dist/resources/handlers/filesystem-handler.d.ts.map +1 -1
- package/dist/resources/handlers/filesystem-handler.js +7 -6
- package/dist/session/session-manager.cjs +2 -0
- package/dist/session/session-manager.d.ts.map +1 -1
- package/dist/session/session-manager.js +2 -0
- package/dist/systemPrompt/schemas.d.ts +3 -3
- package/dist/telemetry/decorators.cjs +2 -2
- package/dist/telemetry/decorators.js +2 -2
- package/dist/tools/activity.cjs +0 -16
- package/dist/tools/activity.d.ts +0 -2
- package/dist/tools/activity.d.ts.map +1 -1
- package/dist/tools/activity.js +0 -16
- package/dist/tools/tool-call-metadata.cjs +0 -12
- package/dist/tools/tool-call-metadata.d.ts +0 -3
- package/dist/tools/tool-call-metadata.d.ts.map +1 -1
- package/dist/tools/tool-call-metadata.js +0 -12
- package/dist/tools/tool-manager.cjs +10 -93
- package/dist/tools/tool-manager.d.ts.map +1 -1
- package/dist/tools/tool-manager.js +10 -93
- package/dist/utils/env.cjs +0 -5
- package/dist/utils/env.d.ts +0 -1
- package/dist/utils/env.d.ts.map +1 -1
- package/dist/utils/env.js +0 -4
- package/dist/utils/index.cjs +3 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/metadata-address.cjs +138 -0
- package/dist/utils/metadata-address.d.ts +24 -0
- package/dist/utils/metadata-address.d.ts.map +1 -0
- package/dist/utils/metadata-address.js +113 -0
- package/dist/utils/path.cjs +0 -15
- package/dist/utils/path.d.ts +0 -6
- package/dist/utils/path.d.ts.map +1 -1
- package/dist/utils/path.js +0 -14
- package/dist/utils/redactor.cjs +242 -34
- package/dist/utils/redactor.d.ts +15 -0
- package/dist/utils/redactor.d.ts.map +1 -1
- package/dist/utils/redactor.js +238 -34
- package/dist/workspace/index.cjs +7 -2
- package/dist/workspace/index.d.ts +1 -0
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +4 -1
- package/dist/workspace/shell-environment.cjs +96 -0
- package/dist/workspace/shell-environment.d.ts +18 -0
- package/dist/workspace/shell-environment.d.ts.map +1 -0
- package/dist/workspace/shell-environment.js +72 -0
- package/dist/workspace/types.d.ts +9 -0
- package/dist/workspace/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/utils/redactor.d.ts
CHANGED
|
@@ -6,5 +6,20 @@
|
|
|
6
6
|
* - Recursive and preserves structure
|
|
7
7
|
* - Easy to extend
|
|
8
8
|
*/
|
|
9
|
+
/** The text a logger writes when it could not redact an entry, never the entry itself. */
|
|
10
|
+
export declare const UNREDACTABLE_LOG_DATA = "[unredactable log data]";
|
|
9
11
|
export declare function redactSensitiveData(input: unknown, seen?: WeakSet<object>): unknown;
|
|
12
|
+
/** Redacts one log message: known secret shapes, then the value of any secret-named key. */
|
|
13
|
+
export declare function redactLogText(text: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* A log message of any type, as redacted text. Never throws: an entry that cannot be read is
|
|
16
|
+
* replaced by UNREDACTABLE_LOG_DATA, not passed on as it was.
|
|
17
|
+
*/
|
|
18
|
+
export declare function redactLogMessage(message: unknown): string;
|
|
19
|
+
/**
|
|
20
|
+
* A log record (context or metadata) with secrets masked, leaving out `skip`. Never throws: a
|
|
21
|
+
* record that cannot be read (a throwing getter, a revoked proxy) becomes one key holding
|
|
22
|
+
* UNREDACTABLE_LOG_DATA, not the record itself.
|
|
23
|
+
*/
|
|
24
|
+
export declare function redactLogRecord(record: object, skip?: readonly string[]): Record<string, unknown>;
|
|
10
25
|
//# sourceMappingURL=redactor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redactor.d.ts","sourceRoot":"","sources":["../../src/utils/redactor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"redactor.d.ts","sourceRoot":"","sources":["../../src/utils/redactor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiQH,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAoJ/D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,kBAAwB,GAAG,OAAO,CAOzF;AA4ID,4FAA4F;AAC5F,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAMzD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,GAAE,SAAS,MAAM,EAAO,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAqBzB"}
|
package/dist/utils/redactor.js
CHANGED
|
@@ -6,7 +6,14 @@ const SENSITIVE_FIELDS = [
|
|
|
6
6
|
"access_token",
|
|
7
7
|
"refresh_token",
|
|
8
8
|
"password",
|
|
9
|
-
"secret"
|
|
9
|
+
"secret",
|
|
10
|
+
"client_secret",
|
|
11
|
+
"private_key",
|
|
12
|
+
"authorization",
|
|
13
|
+
"proxy-authorization",
|
|
14
|
+
"cookie",
|
|
15
|
+
"set-cookie",
|
|
16
|
+
"x-api-key"
|
|
10
17
|
];
|
|
11
18
|
const FILE_DATA_FIELDS = [
|
|
12
19
|
"base64",
|
|
@@ -132,45 +139,242 @@ function redactText(text, awsAccessKeyIdPattern, keepTokenValue) {
|
|
|
132
139
|
)
|
|
133
140
|
);
|
|
134
141
|
}
|
|
135
|
-
function
|
|
142
|
+
function redactString(input) {
|
|
143
|
+
const signedUrls = [];
|
|
144
|
+
const withPlaceholders = input.includes("\uE000") ? input : input.split(URL_PATTERN).map((part, index) => {
|
|
145
|
+
if (index % 2 === 0 || !isSignedUrl(part)) return part;
|
|
146
|
+
signedUrls.push(part);
|
|
147
|
+
return `\uE000${signedUrls.length - 1}\uE000`;
|
|
148
|
+
}).join("");
|
|
149
|
+
const result = redactText(withPlaceholders, AWS_ACCESS_KEY_ID_PATTERN, false);
|
|
150
|
+
return signedUrls.length === 0 ? result : result.replace(SIGNED_URL_PLACEHOLDER, (_placeholder, index) => {
|
|
151
|
+
const url = signedUrls[Number(index)];
|
|
152
|
+
return url === void 0 ? REDACTED : redactText(url, AWS_ACCESS_KEY_ID_OUTSIDE_CREDENTIAL_PATTERN, true);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
const MAX_LOG_DEPTH = 20;
|
|
156
|
+
const MAX_LOG_NODES = 5e3;
|
|
157
|
+
const TRUNCATED = "[Truncated]";
|
|
158
|
+
const SHARED = "[Shared]";
|
|
159
|
+
const UNREDACTABLE_LOG_DATA = "[unredactable log data]";
|
|
160
|
+
function describeBinary(value) {
|
|
161
|
+
const name = value instanceof ArrayBuffer ? "ArrayBuffer" : value.constructor.name;
|
|
162
|
+
return `[${name} ${value.byteLength} bytes]`;
|
|
163
|
+
}
|
|
164
|
+
function redactValue(input, walk, mode, insideSecret, depth = 0) {
|
|
136
165
|
if (typeof input === "string") {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
if (insideSecret) return REDACTED;
|
|
167
|
+
return mode === "log" ? redactLogString(input) : redactString(input);
|
|
168
|
+
}
|
|
169
|
+
if (typeof input !== "object" || input === null) return input;
|
|
170
|
+
if (input instanceof ArrayBuffer || ArrayBuffer.isView(input)) return describeBinary(input);
|
|
171
|
+
if (input instanceof Date) {
|
|
172
|
+
return Number.isNaN(input.getTime()) ? "Invalid Date" : input.toISOString();
|
|
173
|
+
}
|
|
174
|
+
if (input instanceof RegExp) return String(input);
|
|
175
|
+
if (input instanceof URL) {
|
|
176
|
+
const withoutCredentials = new URL(input.href);
|
|
177
|
+
withoutCredentials.username = "";
|
|
178
|
+
withoutCredentials.password = "";
|
|
179
|
+
return redactValue(withoutCredentials.href, walk, mode, insideSecret, depth);
|
|
180
|
+
}
|
|
181
|
+
if (walk.ancestors.has(input)) return REDACTED_CIRCULAR;
|
|
182
|
+
if (walk.shared?.has(input)) return insideSecret ? REDACTED : SHARED;
|
|
183
|
+
const memoized = walk.memo?.get(input);
|
|
184
|
+
if (memoized !== void 0) return memoized;
|
|
185
|
+
if (mode === "log" && depth >= MAX_LOG_DEPTH) return TRUNCATED;
|
|
186
|
+
if (walk.remaining <= 0) return TRUNCATED;
|
|
187
|
+
walk.remaining -= 1;
|
|
188
|
+
walk.ancestors.add(input);
|
|
189
|
+
try {
|
|
190
|
+
const result = redactContainer(input, walk, mode, insideSecret, depth + 1);
|
|
191
|
+
walk.memo?.set(input, result);
|
|
192
|
+
walk.shared?.add(input);
|
|
193
|
+
return result;
|
|
194
|
+
} finally {
|
|
195
|
+
walk.ancestors.delete(input);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function errorFields(error) {
|
|
199
|
+
const toJSON = Reflect.get(error, "toJSON");
|
|
200
|
+
const json = typeof toJSON === "function" ? toJSON.call(error) : void 0;
|
|
201
|
+
return {
|
|
202
|
+
name: error.name,
|
|
203
|
+
message: error.message,
|
|
204
|
+
stack: error.stack,
|
|
205
|
+
...error.cause !== void 0 && { cause: error.cause },
|
|
206
|
+
...Object.fromEntries(Object.entries(error)),
|
|
207
|
+
...typeof json === "object" && json !== null ? Object.fromEntries(Object.entries(json)) : {}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
function redactContainer(input, walk, mode, insideSecret, depth) {
|
|
211
|
+
if (Array.isArray(input) || input instanceof Set) {
|
|
212
|
+
return [...input].map((item) => redactValue(item, walk, mode, insideSecret, depth));
|
|
213
|
+
}
|
|
214
|
+
if (input instanceof Map) {
|
|
215
|
+
return [...input].map(([key, value]) => [
|
|
216
|
+
redactValue(key, walk, mode, insideSecret, depth),
|
|
217
|
+
redactEntry(String(key), value, walk, mode, insideSecret, depth)
|
|
218
|
+
]);
|
|
219
|
+
}
|
|
220
|
+
const fields = mode === "log" && input instanceof Error ? errorFields(input) : Object.fromEntries(Object.entries(input));
|
|
221
|
+
const result = {};
|
|
222
|
+
for (const [key, value] of Object.entries(fields)) {
|
|
223
|
+
if (SENSITIVE_FIELDS.includes(key.toLowerCase())) {
|
|
224
|
+
result[key] = REDACTED;
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
const truncatedValue = truncateFileData(value, key, fields);
|
|
228
|
+
result[key] = redactEntry(key, truncatedValue, walk, mode, insideSecret, depth);
|
|
229
|
+
}
|
|
230
|
+
return result;
|
|
231
|
+
}
|
|
232
|
+
function redactEntry(key, value, walk, mode, insideSecret, depth) {
|
|
233
|
+
if (mode === "log" && !insideSecret) {
|
|
234
|
+
if (isSecretMapKey(key) && isPlainObject(value)) {
|
|
235
|
+
return redactValue(value, walk, mode, true, depth);
|
|
236
|
+
}
|
|
237
|
+
if (isSensitiveLogKey(key)) {
|
|
238
|
+
if (typeof value === "string") return REDACTED;
|
|
239
|
+
if (Array.isArray(value)) {
|
|
240
|
+
return value.map(
|
|
241
|
+
(item) => typeof item === "string" ? REDACTED : redactValue(item, walk, mode, false, depth)
|
|
166
242
|
);
|
|
167
|
-
result[key] = redactSensitiveData(truncatedValue, seen);
|
|
168
243
|
}
|
|
169
244
|
}
|
|
170
|
-
return result;
|
|
171
245
|
}
|
|
172
|
-
return
|
|
246
|
+
return redactValue(value, walk, mode, insideSecret, depth);
|
|
247
|
+
}
|
|
248
|
+
function isPlainObject(value) {
|
|
249
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
250
|
+
}
|
|
251
|
+
function redactSensitiveData(input, seen = /* @__PURE__ */ new WeakSet()) {
|
|
252
|
+
return redactValue(
|
|
253
|
+
input,
|
|
254
|
+
{ ancestors: seen, memo: /* @__PURE__ */ new WeakMap(), shared: void 0, remaining: Infinity },
|
|
255
|
+
"response",
|
|
256
|
+
false
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
const SENSITIVE_KEY_SUFFIXES = [
|
|
260
|
+
"token",
|
|
261
|
+
"secret",
|
|
262
|
+
"secrets",
|
|
263
|
+
"password",
|
|
264
|
+
"passwd",
|
|
265
|
+
"passphrase",
|
|
266
|
+
"bearer",
|
|
267
|
+
"credential",
|
|
268
|
+
"authorization",
|
|
269
|
+
"cookie",
|
|
270
|
+
"cookies",
|
|
271
|
+
"apikey",
|
|
272
|
+
"apikeys",
|
|
273
|
+
"privatekey",
|
|
274
|
+
"accesskey",
|
|
275
|
+
"secretkey",
|
|
276
|
+
"signingkey",
|
|
277
|
+
"encryptionkey"
|
|
278
|
+
];
|
|
279
|
+
const SECRET_MAP_KEYS = /* @__PURE__ */ new Set(["env", "envvars", "environment", "headers"]);
|
|
280
|
+
function normalizeKey(key) {
|
|
281
|
+
return key.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
282
|
+
}
|
|
283
|
+
function isSensitiveLogKey(key) {
|
|
284
|
+
const normalized = normalizeKey(key);
|
|
285
|
+
return SENSITIVE_KEY_SUFFIXES.some((suffix) => normalized.endsWith(suffix));
|
|
286
|
+
}
|
|
287
|
+
function isSecretMapKey(key) {
|
|
288
|
+
return SECRET_MAP_KEYS.has(normalizeKey(key));
|
|
289
|
+
}
|
|
290
|
+
const HEADER_LINE_PATTERN = /(?<![A-Za-z0-9_-])((?:proxy-)?authorization|(?:set-)?cookie|x-api-key|x-auth-token)(\s*[:=]\s*)(?!["'\\])[^\r\n]*/gi;
|
|
291
|
+
const NAME_PATTERN = /(?<![A-Za-z0-9_.-])([A-Za-z][A-Za-z0-9_.-]*)(\\?["']?)(\s*[:=]\s*)/g;
|
|
292
|
+
const VALUE_PATTERN = /\\"(?:[^"\\]|\\(?!")){0,4096}?\\"|"(?:[^"\\]|\\.){0,4096}"|'(?:[^'\\]|\\.){0,4096}'|[^\s,;&"'}\])\\]+|["'\\][^\r\n]*/y;
|
|
293
|
+
const SECRET_MAP_TEXT_PATTERN = /(?<![A-Za-z0-9_-])(env|envvars|environment|headers)(\\?["']?\s*[:=]\s*)\{([^{}]{0,8192})\}/gi;
|
|
294
|
+
const MAP_ENTRY_PATTERN = /((?:\\?["'])?[A-Za-z0-9_.-]{1,128}(?:\\?["'])?\s*[:=]\s*)(\\"(?:[^"\\]|\\(?!")){0,4096}?\\"|"(?:[^"\\]|\\.){0,4096}"|'(?:[^'\\]|\\.){0,4096}'|[^\s,}]+)/g;
|
|
295
|
+
const PLAIN_VALUE_PATTERN = /^(?:\d+(?:\.\d+)?|true|false|null|undefined)$/i;
|
|
296
|
+
function looksLikeCredential(value) {
|
|
297
|
+
return /^[\\"']/.test(value) || /[^A-Za-z]/.test(value) || value.length >= 16;
|
|
298
|
+
}
|
|
299
|
+
function maskedLike(value) {
|
|
300
|
+
for (const quote of ['\\"', '"', "'"]) {
|
|
301
|
+
if (value.length >= quote.length * 2 && value.startsWith(quote) && value.endsWith(quote)) {
|
|
302
|
+
return `${quote}${REDACTED}${quote}`;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return REDACTED;
|
|
306
|
+
}
|
|
307
|
+
const URL_USERINFO_PATTERN = /(?<![A-Za-z0-9+.-])([A-Za-z][A-Za-z0-9+.-]{0,31}:\/\/[^\s/@:"'?#]*:)[^\s/?#"']*@/g;
|
|
308
|
+
function maskUrlUserinfo(text) {
|
|
309
|
+
return text.replace(URL_USERINFO_PATTERN, (_match, prefix) => `${prefix}${REDACTED}@`);
|
|
310
|
+
}
|
|
311
|
+
function redactLogString(text) {
|
|
312
|
+
return redactKeyValueText(redactString(maskUrlUserinfo(text)));
|
|
313
|
+
}
|
|
314
|
+
function redactKeyValueText(text) {
|
|
315
|
+
const withMaps = text.replace(
|
|
316
|
+
HEADER_LINE_PATTERN,
|
|
317
|
+
(_match, name, separator) => `${name}${separator}${REDACTED}`
|
|
318
|
+
).replace(
|
|
319
|
+
SECRET_MAP_TEXT_PATTERN,
|
|
320
|
+
(_match, name, separator, entries) => `${name}${separator}{${entries.replace(
|
|
321
|
+
MAP_ENTRY_PATTERN,
|
|
322
|
+
(_entry, prefix, value) => `${prefix}${maskedLike(value)}`
|
|
323
|
+
)}}`
|
|
324
|
+
);
|
|
325
|
+
const names = new RegExp(NAME_PATTERN);
|
|
326
|
+
const values = new RegExp(VALUE_PATTERN);
|
|
327
|
+
let result = "";
|
|
328
|
+
let copiedUpTo = 0;
|
|
329
|
+
for (let found = names.exec(withMaps); found; found = names.exec(withMaps)) {
|
|
330
|
+
if (!isSensitiveLogKey(found[1] ?? "")) continue;
|
|
331
|
+
values.lastIndex = names.lastIndex;
|
|
332
|
+
const value = values.exec(withMaps)?.[0];
|
|
333
|
+
if (value === void 0) continue;
|
|
334
|
+
names.lastIndex = values.lastIndex;
|
|
335
|
+
if (value.startsWith(REDACTED.slice(0, -1)) || PLAIN_VALUE_PATTERN.test(value)) continue;
|
|
336
|
+
if (!found[3]?.includes("=") && !looksLikeCredential(value)) continue;
|
|
337
|
+
result += withMaps.slice(copiedUpTo, values.lastIndex - value.length) + maskedLike(value);
|
|
338
|
+
copiedUpTo = values.lastIndex;
|
|
339
|
+
}
|
|
340
|
+
return result + withMaps.slice(copiedUpTo);
|
|
341
|
+
}
|
|
342
|
+
function redactLogText(text) {
|
|
343
|
+
return redactLogString(text);
|
|
344
|
+
}
|
|
345
|
+
function redactLogMessage(message) {
|
|
346
|
+
try {
|
|
347
|
+
return redactLogText(typeof message === "string" ? message : String(message));
|
|
348
|
+
} catch {
|
|
349
|
+
return UNREDACTABLE_LOG_DATA;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
function redactLogRecord(record, skip = []) {
|
|
353
|
+
try {
|
|
354
|
+
const entries = Object.entries(record).filter(([key]) => !skip.includes(key));
|
|
355
|
+
const redacted = redactValue(
|
|
356
|
+
Object.fromEntries(entries),
|
|
357
|
+
{
|
|
358
|
+
ancestors: /* @__PURE__ */ new WeakSet(),
|
|
359
|
+
memo: void 0,
|
|
360
|
+
shared: /* @__PURE__ */ new WeakSet(),
|
|
361
|
+
remaining: MAX_LOG_NODES
|
|
362
|
+
},
|
|
363
|
+
"log",
|
|
364
|
+
false
|
|
365
|
+
);
|
|
366
|
+
if (typeof redacted !== "object" || redacted === null || Array.isArray(redacted)) {
|
|
367
|
+
return { redacted: UNREDACTABLE_LOG_DATA };
|
|
368
|
+
}
|
|
369
|
+
return Object.fromEntries(Object.entries(redacted));
|
|
370
|
+
} catch {
|
|
371
|
+
return { redacted: UNREDACTABLE_LOG_DATA };
|
|
372
|
+
}
|
|
173
373
|
}
|
|
174
374
|
export {
|
|
375
|
+
UNREDACTABLE_LOG_DATA,
|
|
376
|
+
redactLogMessage,
|
|
377
|
+
redactLogRecord,
|
|
378
|
+
redactLogText,
|
|
175
379
|
redactSensitiveData
|
|
176
380
|
};
|
package/dist/workspace/index.cjs
CHANGED
|
@@ -20,15 +20,20 @@ var workspace_exports = {};
|
|
|
20
20
|
__export(workspace_exports, {
|
|
21
21
|
WorkspaceError: () => import_errors.WorkspaceError,
|
|
22
22
|
WorkspaceErrorCodes: () => import_error_codes.WorkspaceErrorCodes,
|
|
23
|
-
WorkspaceManager: () => import_manager.WorkspaceManager
|
|
23
|
+
WorkspaceManager: () => import_manager.WorkspaceManager,
|
|
24
|
+
buildShellEnvironment: () => import_shell_environment.buildShellEnvironment,
|
|
25
|
+
pickHostVariables: () => import_shell_environment.pickHostVariables
|
|
24
26
|
});
|
|
25
27
|
module.exports = __toCommonJS(workspace_exports);
|
|
26
28
|
var import_manager = require("./manager.js");
|
|
27
29
|
var import_errors = require("./errors.js");
|
|
28
30
|
var import_error_codes = require("./error-codes.js");
|
|
31
|
+
var import_shell_environment = require("./shell-environment.js");
|
|
29
32
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
33
|
0 && (module.exports = {
|
|
31
34
|
WorkspaceError,
|
|
32
35
|
WorkspaceErrorCodes,
|
|
33
|
-
WorkspaceManager
|
|
36
|
+
WorkspaceManager,
|
|
37
|
+
buildShellEnvironment,
|
|
38
|
+
pickHostVariables
|
|
34
39
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { WorkspaceManager } from './manager.js';
|
|
2
2
|
export { WorkspaceError } from './errors.js';
|
|
3
3
|
export { WorkspaceErrorCodes } from './error-codes.js';
|
|
4
|
+
export { buildShellEnvironment, pickHostVariables } from './shell-environment.js';
|
|
4
5
|
export type { OpenWorkspaceInput, SetWorkspaceInput, WorkspaceApps, WorkspaceCapability, WorkspaceContext, WorkspaceFiles, WorkspaceHandle, WorkspaceHandleProvider, WorkspacePreview, WorkspaceProcesses, } from './types.js';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workspace/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EACR,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workspace/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAClF,YAAY,EACR,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,kBAAkB,GACrB,MAAM,YAAY,CAAC"}
|
package/dist/workspace/index.js
CHANGED
|
@@ -2,8 +2,11 @@ import "../chunk-C6A6W6XS.js";
|
|
|
2
2
|
import { WorkspaceManager } from "./manager.js";
|
|
3
3
|
import { WorkspaceError } from "./errors.js";
|
|
4
4
|
import { WorkspaceErrorCodes } from "./error-codes.js";
|
|
5
|
+
import { buildShellEnvironment, pickHostVariables } from "./shell-environment.js";
|
|
5
6
|
export {
|
|
6
7
|
WorkspaceError,
|
|
7
8
|
WorkspaceErrorCodes,
|
|
8
|
-
WorkspaceManager
|
|
9
|
+
WorkspaceManager,
|
|
10
|
+
buildShellEnvironment,
|
|
11
|
+
pickHostVariables
|
|
9
12
|
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var shell_environment_exports = {};
|
|
20
|
+
__export(shell_environment_exports, {
|
|
21
|
+
buildShellEnvironment: () => buildShellEnvironment,
|
|
22
|
+
pickHostVariables: () => pickHostVariables
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(shell_environment_exports);
|
|
25
|
+
const INHERITED_VARIABLES = /* @__PURE__ */ new Set([
|
|
26
|
+
"PATH",
|
|
27
|
+
"HOME",
|
|
28
|
+
"USER",
|
|
29
|
+
"LOGNAME",
|
|
30
|
+
"SHELL",
|
|
31
|
+
"LANG",
|
|
32
|
+
"LANGUAGE",
|
|
33
|
+
"TERM",
|
|
34
|
+
"COLORTERM",
|
|
35
|
+
"TMPDIR",
|
|
36
|
+
"TZ",
|
|
37
|
+
"SSL_CERT_FILE",
|
|
38
|
+
"SSL_CERT_DIR",
|
|
39
|
+
"CURL_CA_BUNDLE",
|
|
40
|
+
"REQUESTS_CA_BUNDLE",
|
|
41
|
+
"NODE_EXTRA_CA_CERTS",
|
|
42
|
+
"HTTP_PROXY",
|
|
43
|
+
"HTTPS_PROXY",
|
|
44
|
+
"ALL_PROXY",
|
|
45
|
+
"NO_PROXY",
|
|
46
|
+
// Windows needs these to start and run ordinary processes.
|
|
47
|
+
"SYSTEMROOT",
|
|
48
|
+
"WINDIR",
|
|
49
|
+
"COMSPEC",
|
|
50
|
+
"PATHEXT",
|
|
51
|
+
"USERNAME",
|
|
52
|
+
"USERPROFILE",
|
|
53
|
+
"HOMEDRIVE",
|
|
54
|
+
"HOMEPATH",
|
|
55
|
+
"APPDATA",
|
|
56
|
+
"LOCALAPPDATA",
|
|
57
|
+
"PROGRAMFILES",
|
|
58
|
+
"PROGRAMFILES(X86)",
|
|
59
|
+
"PROGRAMDATA",
|
|
60
|
+
"ALLUSERSPROFILE",
|
|
61
|
+
"PROCESSOR_ARCHITECTURE",
|
|
62
|
+
"TEMP",
|
|
63
|
+
"TMP"
|
|
64
|
+
]);
|
|
65
|
+
const INHERITED_PREFIXES = ["LC_", "XDG_"];
|
|
66
|
+
function isInheritedVariable(name) {
|
|
67
|
+
const upper = name.toUpperCase();
|
|
68
|
+
return INHERITED_VARIABLES.has(upper) || INHERITED_PREFIXES.some((p) => upper.startsWith(p));
|
|
69
|
+
}
|
|
70
|
+
function buildShellEnvironment(hostVariables, ...explicit) {
|
|
71
|
+
const variables = {};
|
|
72
|
+
for (const [name, value] of Object.entries(hostVariables)) {
|
|
73
|
+
if (value !== void 0 && isInheritedVariable(name)) {
|
|
74
|
+
variables[name] = value;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
for (const configured of explicit) {
|
|
78
|
+
Object.assign(variables, configured);
|
|
79
|
+
}
|
|
80
|
+
return variables;
|
|
81
|
+
}
|
|
82
|
+
function pickHostVariables(hostVariables, names) {
|
|
83
|
+
const picked = {};
|
|
84
|
+
for (const name of names) {
|
|
85
|
+
const value = hostVariables[name];
|
|
86
|
+
if (value !== void 0) {
|
|
87
|
+
picked[name] = value;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return picked;
|
|
91
|
+
}
|
|
92
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
93
|
+
0 && (module.exports = {
|
|
94
|
+
buildShellEnvironment,
|
|
95
|
+
pickHostVariables
|
|
96
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment passed to shell commands.
|
|
3
|
+
*
|
|
4
|
+
* Commands start from a small allowlist of the host environment. Provider keys, the server
|
|
5
|
+
* key, credentials such as GH_TOKEN or SSH_AUTH_SOCK, and every other host variable stay out
|
|
6
|
+
* unless the user configured them explicitly.
|
|
7
|
+
*/
|
|
8
|
+
type HostVariables = Record<string, string | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* The allowlisted host variables, followed by each explicit layer in order (later layers win).
|
|
11
|
+
*/
|
|
12
|
+
export declare function buildShellEnvironment(hostVariables: HostVariables, ...explicit: Array<Record<string, string> | undefined>): Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* The named host variables that are set, for forwarding past the allowlist on request.
|
|
15
|
+
*/
|
|
16
|
+
export declare function pickHostVariables(hostVariables: HostVariables, names: readonly string[]): Record<string, string>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=shell-environment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell-environment.d.ts","sourceRoot":"","sources":["../../src/workspace/shell-environment.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkDH,KAAK,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;AAExD;;GAEG;AACH,wBAAgB,qBAAqB,CACjC,aAAa,EAAE,aAAa,EAC5B,GAAG,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,GACvD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC7B,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,SAAS,MAAM,EAAE,GACzB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASxB"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import "../chunk-C6A6W6XS.js";
|
|
2
|
+
const INHERITED_VARIABLES = /* @__PURE__ */ new Set([
|
|
3
|
+
"PATH",
|
|
4
|
+
"HOME",
|
|
5
|
+
"USER",
|
|
6
|
+
"LOGNAME",
|
|
7
|
+
"SHELL",
|
|
8
|
+
"LANG",
|
|
9
|
+
"LANGUAGE",
|
|
10
|
+
"TERM",
|
|
11
|
+
"COLORTERM",
|
|
12
|
+
"TMPDIR",
|
|
13
|
+
"TZ",
|
|
14
|
+
"SSL_CERT_FILE",
|
|
15
|
+
"SSL_CERT_DIR",
|
|
16
|
+
"CURL_CA_BUNDLE",
|
|
17
|
+
"REQUESTS_CA_BUNDLE",
|
|
18
|
+
"NODE_EXTRA_CA_CERTS",
|
|
19
|
+
"HTTP_PROXY",
|
|
20
|
+
"HTTPS_PROXY",
|
|
21
|
+
"ALL_PROXY",
|
|
22
|
+
"NO_PROXY",
|
|
23
|
+
// Windows needs these to start and run ordinary processes.
|
|
24
|
+
"SYSTEMROOT",
|
|
25
|
+
"WINDIR",
|
|
26
|
+
"COMSPEC",
|
|
27
|
+
"PATHEXT",
|
|
28
|
+
"USERNAME",
|
|
29
|
+
"USERPROFILE",
|
|
30
|
+
"HOMEDRIVE",
|
|
31
|
+
"HOMEPATH",
|
|
32
|
+
"APPDATA",
|
|
33
|
+
"LOCALAPPDATA",
|
|
34
|
+
"PROGRAMFILES",
|
|
35
|
+
"PROGRAMFILES(X86)",
|
|
36
|
+
"PROGRAMDATA",
|
|
37
|
+
"ALLUSERSPROFILE",
|
|
38
|
+
"PROCESSOR_ARCHITECTURE",
|
|
39
|
+
"TEMP",
|
|
40
|
+
"TMP"
|
|
41
|
+
]);
|
|
42
|
+
const INHERITED_PREFIXES = ["LC_", "XDG_"];
|
|
43
|
+
function isInheritedVariable(name) {
|
|
44
|
+
const upper = name.toUpperCase();
|
|
45
|
+
return INHERITED_VARIABLES.has(upper) || INHERITED_PREFIXES.some((p) => upper.startsWith(p));
|
|
46
|
+
}
|
|
47
|
+
function buildShellEnvironment(hostVariables, ...explicit) {
|
|
48
|
+
const variables = {};
|
|
49
|
+
for (const [name, value] of Object.entries(hostVariables)) {
|
|
50
|
+
if (value !== void 0 && isInheritedVariable(name)) {
|
|
51
|
+
variables[name] = value;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
for (const configured of explicit) {
|
|
55
|
+
Object.assign(variables, configured);
|
|
56
|
+
}
|
|
57
|
+
return variables;
|
|
58
|
+
}
|
|
59
|
+
function pickHostVariables(hostVariables, names) {
|
|
60
|
+
const picked = {};
|
|
61
|
+
for (const name of names) {
|
|
62
|
+
const value = hostVariables[name];
|
|
63
|
+
if (value !== void 0) {
|
|
64
|
+
picked[name] = value;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return picked;
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
buildShellEnvironment,
|
|
71
|
+
pickHostVariables
|
|
72
|
+
};
|
|
@@ -25,14 +25,23 @@ export interface WorkspaceFiles {
|
|
|
25
25
|
listFiles(path?: string): Promise<string[]>;
|
|
26
26
|
}
|
|
27
27
|
export interface WorkspaceProcesses {
|
|
28
|
+
/**
|
|
29
|
+
* Run a shell command to completion. A non-zero exit is returned as `exitCode`, not thrown.
|
|
30
|
+
* When `timeout` (milliseconds) elapses the command and everything it started are stopped and
|
|
31
|
+
* `timedOut` is true. When `signal` aborts they are stopped and the output so far is returned.
|
|
32
|
+
*/
|
|
28
33
|
exec(input: {
|
|
29
34
|
command: string;
|
|
30
35
|
cwd?: string;
|
|
31
36
|
timeout?: number;
|
|
37
|
+
signal?: AbortSignal;
|
|
38
|
+
/** Variables added to the handle's default environment for this command. */
|
|
39
|
+
env?: Record<string, string>;
|
|
32
40
|
}): Promise<{
|
|
33
41
|
exitCode?: number;
|
|
34
42
|
stdout: string;
|
|
35
43
|
stderr: string;
|
|
44
|
+
timedOut?: boolean;
|
|
36
45
|
}>;
|
|
37
46
|
}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|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0-beta.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"nanoid": "^5.1.16",
|
|
175
175
|
"winston": "^3.17.0",
|
|
176
176
|
"yaml": "^2.8.3",
|
|
177
|
-
"@dexto/llm": "1.
|
|
177
|
+
"@dexto/llm": "1.17.0-beta.5"
|
|
178
178
|
},
|
|
179
179
|
"devDependencies": {
|
|
180
180
|
"@opentelemetry/context-async-hooks": "^2.12.0",
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"@opentelemetry/sdk-node": "^0.223.0",
|
|
199
199
|
"@opentelemetry/sdk-trace-base": "^2.12.0",
|
|
200
200
|
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
201
|
-
"better-sqlite3": "
|
|
201
|
+
"better-sqlite3": "~12.9.0",
|
|
202
202
|
"ioredis": "^5.7.0",
|
|
203
203
|
"pg": "^8.15.4",
|
|
204
204
|
"tsx": "^4.23.15",
|