@agentsky/sky 2.16.0 → 2.18.0
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/{chunk-5JHQH7WH.js → chunk-MUHFB3LC.js} +1 -1
- package/dist/{chunk-MQECNHD2.js → chunk-PL5KNPCX.js} +2 -2
- package/dist/{chunk-RHRREQMF.js → chunk-ZJVFWFOY.js} +13 -0
- package/dist/index.js +653 -172
- package/dist/products.js +1 -1
- package/dist/{src-KLP774OA.js → src-TJJKOFXZ.js} +1 -1
- package/dist/{trace-IOARVWJ6.js → trace-QLJH7VK6.js} +2 -2
- package/dist/{trace-library-K3NE26GH.js → trace-library-FS5PCBJC.js} +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
apiBase,
|
|
4
4
|
apiToken,
|
|
5
5
|
currentUniverse
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MUHFB3LC.js";
|
|
7
7
|
|
|
8
8
|
// src/api.ts
|
|
9
9
|
import { createWriteStream, writeFileSync } from "fs";
|
|
@@ -144,7 +144,7 @@ async function resolveSessionRef(ref) {
|
|
|
144
144
|
return agent.defaultSessionId;
|
|
145
145
|
}
|
|
146
146
|
async function* streamEvents(sessionId, signal) {
|
|
147
|
-
const { parseSseStream } = await import("./src-
|
|
147
|
+
const { parseSseStream } = await import("./src-TJJKOFXZ.js");
|
|
148
148
|
const res = await fetch(
|
|
149
149
|
`${apiBase()}/sessions/${encodeURIComponent(sessionId)}/stream`,
|
|
150
150
|
{
|
|
@@ -19407,6 +19407,18 @@ function rewriteCodeExpression(value, declaration) {
|
|
|
19407
19407
|
const full = semicolon ? `${awaitPrefix}${rewritten};` : `${awaitPrefix}${rewritten}`;
|
|
19408
19408
|
return value.replace(value.trim(), full);
|
|
19409
19409
|
}
|
|
19410
|
+
function redactSecretValues(text) {
|
|
19411
|
+
const hits = {};
|
|
19412
|
+
let out = text;
|
|
19413
|
+
for (const p of compiled) {
|
|
19414
|
+
p.re.lastIndex = 0;
|
|
19415
|
+
out = out.replace(p.re, (...m) => {
|
|
19416
|
+
hits[p.name] = (hits[p.name] ?? 0) + 1;
|
|
19417
|
+
return p.replacement.replace(/\$(\d)/g, (_, i) => String(m[Number(i)] ?? ""));
|
|
19418
|
+
});
|
|
19419
|
+
}
|
|
19420
|
+
return { text: out, hits };
|
|
19421
|
+
}
|
|
19410
19422
|
function redactPlainText(text) {
|
|
19411
19423
|
const hits = {};
|
|
19412
19424
|
let out = redactFieldAssignments(text, () => {
|
|
@@ -23649,6 +23661,7 @@ export {
|
|
|
23649
23661
|
isModelEffortSupported,
|
|
23650
23662
|
reasoningEffortDocLine,
|
|
23651
23663
|
sessionResourcesParamSchema,
|
|
23664
|
+
redactSecretValues,
|
|
23652
23665
|
redactLine,
|
|
23653
23666
|
TRACE_CONTENT_SCOPES,
|
|
23654
23667
|
redactTraceText,
|