@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.
@@ -38,7 +38,7 @@ function currentUniverse() {
38
38
  }
39
39
 
40
40
  // src/version.ts
41
- var CLI_VERSION = "2.16.0";
41
+ var CLI_VERSION = "2.18.0";
42
42
  var USER_AGENT = `sky-cli/${CLI_VERSION} (${process.platform}; node/${process.versions.node})`;
43
43
 
44
44
  export {
@@ -3,7 +3,7 @@ import {
3
3
  apiBase,
4
4
  apiToken,
5
5
  currentUniverse
6
- } from "./chunk-5JHQH7WH.js";
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-KLP774OA.js");
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,