@chosengeneration/light-code 0.133.0 → 0.134.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/cli.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/cli.cjs
3
- size: 49612094 bytes
4
- sha256: 7f11230ff131683d685c4a7a3e9bc657b74d3b397ea355519af84f187555676e
3
+ size: 49608472 bytes
4
+ sha256: 91709ff30de177d4f3ddd968e415055593674f398a0971bdfbbc131afaecd616
package/dist/server.cjs CHANGED
@@ -24126,7 +24126,7 @@ var require_cross_spawn = __commonJS({
24126
24126
  var cp = require("child_process");
24127
24127
  var parse3 = require_parse2();
24128
24128
  var enoent = require_enoent();
24129
- function spawn14(command, args, options) {
24129
+ function spawn13(command, args, options) {
24130
24130
  const parsed = parse3(command, args, options);
24131
24131
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
24132
24132
  enoent.hookChildProcess(spawned, parsed);
@@ -24138,8 +24138,8 @@ var require_cross_spawn = __commonJS({
24138
24138
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
24139
24139
  return result;
24140
24140
  }
24141
- module2.exports = spawn14;
24142
- module2.exports.spawn = spawn14;
24141
+ module2.exports = spawn13;
24142
+ module2.exports.spawn = spawn13;
24143
24143
  module2.exports.sync = spawnSync;
24144
24144
  module2.exports._parse = parse3;
24145
24145
  module2.exports._enoent = enoent;
@@ -59090,9 +59090,9 @@ async function detectBareInterpreter(configuredPath) {
59090
59090
  return void 0;
59091
59091
  }
59092
59092
  async function pythonVersion(program) {
59093
- const { spawn: spawn14 } = await import("node:child_process");
59093
+ const { spawn: spawn13 } = await import("node:child_process");
59094
59094
  return new Promise((resolve) => {
59095
- const child = spawn14(program, ["-c", 'import sys; print("%d.%d.%d" % sys.version_info[:3])'], {
59095
+ const child = spawn13(program, ["-c", 'import sys; print("%d.%d.%d" % sys.version_info[:3])'], {
59096
59096
  shell: false,
59097
59097
  env: minimalPythonEnv()
59098
59098
  });
@@ -62789,7 +62789,7 @@ function gatewayFromSettings(input, stored) {
62789
62789
 
62790
62790
  // ../../packages/core/dist/host/bridge.js
62791
62791
  var import_node_fs9 = require("node:fs");
62792
- var import_node_child_process15 = require("node:child_process");
62792
+ var import_node_child_process14 = require("node:child_process");
62793
62793
  var import_promises25 = __toESM(require("node:fs/promises"), 1);
62794
62794
 
62795
62795
  // ../../packages/core/dist/jupyter/spec.js
@@ -76255,7 +76255,6 @@ ${describe5(profile)}` };
76255
76255
  }
76256
76256
 
76257
76257
  // ../../packages/core/dist/usage/directory.js
76258
- var import_node_child_process14 = require("node:child_process");
76259
76258
  var ATTRIBUTE_MAP = [
76260
76259
  ["displayName", "displayName"],
76261
76260
  ["mail", "email"],
@@ -76265,25 +76264,6 @@ var ATTRIBUTE_MAP = [
76265
76264
  ["company", "company"],
76266
76265
  ["sAMAccountName", "account"]
76267
76266
  ];
76268
- function accountPart(name) {
76269
- return name.split("\\").pop() ?? name;
76270
- }
76271
- function entryMatches(entry, name) {
76272
- const wanted = name.toLowerCase();
76273
- const account = accountPart(name).toLowerCase();
76274
- const field2 = (key2) => entry[key2]?.toLowerCase();
76275
- const upn = field2("userPrincipalName");
76276
- return field2("sAMAccountName") === account || upn === wanted || upn !== void 0 && upn.split("@")[0] === account || field2("mail") === wanted || field2("displayName") === wanted;
76277
- }
76278
- function personFromEntry(entry) {
76279
- const person = {};
76280
- for (const [from, to] of ATTRIBUTE_MAP) {
76281
- const value = entry[from]?.trim();
76282
- if (value !== void 0 && value.length > 0)
76283
- person[to] = value.slice(0, 200);
76284
- }
76285
- return person;
76286
- }
76287
76267
  function profileFromPerson(person) {
76288
76268
  return {
76289
76269
  ...person.displayName !== void 0 ? { displayName: person.displayName } : {},
@@ -76294,107 +76274,29 @@ function profileFromPerson(person) {
76294
76274
  source: "company directory"
76295
76275
  };
76296
76276
  }
76297
- var DIRECTORY_SCRIPT = String.raw`
76298
- $ErrorActionPreference = 'Stop'
76299
- $names = @(([Console]::In.ReadToEnd() | ConvertFrom-Json).names)
76300
- function Esc([string]$s) { return $s.Replace('\', '\5c').Replace('*', '\2a').Replace('(', '\28').Replace(')', '\29').Replace([string][char]0, '\00') }
76301
- $attrs = @('sAMAccountName', 'userPrincipalName', 'mail', 'displayName', 'department', 'title', 'physicalDeliveryOfficeName', 'company')
76302
- try {
76303
- $entries = New-Object System.Collections.ArrayList
76304
- for ($i = 0; $i -lt $names.Count; $i += 20) {
76305
- $last = [Math]::Min($i + 19, $names.Count - 1)
76306
- $clauses = ''
76307
- foreach ($n in $names[$i..$last]) {
76308
- $account = Esc (($n -split '\\')[-1])
76309
- $whole = Esc $n
76310
- $clauses += "(sAMAccountName=$account)(userPrincipalName=$whole)(mail=$whole)(displayName=$whole)"
76311
- }
76312
- $searcher = New-Object System.DirectoryServices.DirectorySearcher
76313
- $searcher.Filter = "(&(objectCategory=person)(objectClass=user)(|$clauses))"
76314
- $searcher.SizeLimit = 200
76315
- $searcher.ClientTimeout = [TimeSpan]::FromSeconds(15)
76316
- $searcher.ReferralChasing = [System.DirectoryServices.ReferralChasingOption]::None
76317
- foreach ($a in $attrs) { [void]$searcher.PropertiesToLoad.Add($a) }
76318
- foreach ($r in $searcher.FindAll()) {
76319
- $e = @{}
76320
- foreach ($a in $attrs) {
76321
- $v = $r.Properties[$a]
76322
- if ($v -ne $null -and $v.Count -gt 0) { $e[$a] = [string]$v[0] }
76323
- }
76324
- [void]$entries.Add($e)
76325
- }
76326
- }
76327
- $out = @{ ok = $true; available = $true; entries = @($entries) }
76328
- } catch {
76329
- $out = @{ ok = $true; available = $false; reason = $_.Exception.Message.Trim() }
76330
- }
76331
- 'LCJSON:' + ($out | ConvertTo-Json -Depth 5 -Compress)
76332
- `;
76333
- var runWindowsPowerShell = (script, stdin) => new Promise((resolve, reject2) => {
76334
- const encoded = Buffer.from(script, "utf16le").toString("base64");
76335
- const child = (0, import_node_child_process14.spawn)("powershell.exe", ["-NoProfile", "-NonInteractive", "-ExecutionPolicy", "Bypass", "-EncodedCommand", encoded], { windowsHide: true });
76336
- let out = "";
76337
- let err = "";
76338
- const timer = setTimeout(() => {
76339
- child.kill();
76340
- reject2(new Error("The directory lookup took longer than a minute."));
76341
- }, 6e4);
76342
- child.stdout.setEncoding("utf8").on("data", (chunk) => out += chunk);
76343
- child.stderr.setEncoding("utf8").on("data", (chunk) => err += chunk);
76344
- child.on("error", (error51) => {
76345
- clearTimeout(timer);
76346
- reject2(error51);
76347
- });
76348
- child.on("close", () => {
76349
- clearTimeout(timer);
76350
- resolve(out.length > 0 ? out : err);
76351
- });
76352
- child.stdin.end(stdin);
76353
- });
76354
- function fromEntries(names, entries) {
76355
- const people = {};
76356
- const notFound = [];
76357
- for (const name of names) {
76358
- const entry = entries.find((candidate) => entryMatches(candidate, name));
76359
- if (entry === void 0)
76360
- notFound.push(name);
76361
- else
76362
- people[name] = personFromEntry(entry);
76363
- }
76364
- return { people, notFound };
76365
- }
76366
76277
  async function lookupDirectory(names, options = {}) {
76367
76278
  const wanted = [...new Set(names.map((name) => name.trim()).filter((name) => name.length > 0 && name.length <= 200))].slice(0, 500);
76368
76279
  if ((options.platform ?? process.platform) !== "win32")
76369
76280
  return { available: false, reason: "The company directory is read through Windows; this is not Windows.", via: "none" };
76281
+ if (options.helper === void 0) {
76282
+ return { available: false, reason: "The company directory is read through the Rust helper, and none is available here.", via: "none" };
76283
+ }
76370
76284
  if (wanted.length === 0)
76371
- return { available: true, people: {}, notFound: [], via: options.helper !== void 0 ? "rust" : "powershell" };
76372
- if (options.helper !== void 0) {
76373
- const answer = await options.helper({ op: "directory", names: wanted });
76374
- if (answer["ok"] === true) {
76375
- if (answer["available"] !== true)
76376
- return { available: false, reason: String(answer["reason"] ?? "The directory could not be reached."), via: "rust" };
76377
- const people = {};
76378
- for (const [name, value] of Object.entries(answer["people"] ?? {})) {
76379
- const person = {};
76380
- for (const [, field2] of ATTRIBUTE_MAP)
76381
- if (typeof value[field2] === "string")
76382
- person[field2] = value[field2];
76383
- people[name] = person;
76384
- }
76385
- return { available: true, people, notFound: answer["notFound"] ?? [], via: "rust" };
76386
- }
76387
- }
76388
- const run3 = options.runPowerShell ?? runWindowsPowerShell;
76389
- const output = await run3(DIRECTORY_SCRIPT, JSON.stringify({ names: wanted }));
76390
- const line = output.split(/\r?\n/).find((each) => each.startsWith("LCJSON:"));
76391
- if (line === void 0)
76392
- return { available: false, reason: `The directory lookup gave no answer${output.trim().length > 0 ? `: ${output.trim().slice(0, 200)}` : "."}`, via: "powershell" };
76393
- const parsed = JSON.parse(line.slice("LCJSON:".length));
76394
- if (parsed.available !== true)
76395
- return { available: false, reason: parsed.reason ?? "The directory could not be reached.", via: "powershell" };
76396
- const entries = Array.isArray(parsed.entries) ? parsed.entries : parsed.entries !== void 0 ? [parsed.entries] : [];
76397
- return { available: true, ...fromEntries(wanted, entries), via: "powershell" };
76285
+ return { available: true, people: {}, notFound: [], via: "rust" };
76286
+ const answer = await options.helper({ op: "directory", names: wanted });
76287
+ if (answer["ok"] !== true)
76288
+ return { available: false, reason: String(answer["error"] ?? "The Rust helper has no directory lookup."), via: "rust" };
76289
+ if (answer["available"] !== true)
76290
+ return { available: false, reason: String(answer["reason"] ?? "The directory could not be reached."), via: "rust" };
76291
+ const people = {};
76292
+ for (const [name, value] of Object.entries(answer["people"] ?? {})) {
76293
+ const person = {};
76294
+ for (const [, field2] of ATTRIBUTE_MAP)
76295
+ if (typeof value[field2] === "string")
76296
+ person[field2] = value[field2];
76297
+ people[name] = person;
76298
+ }
76299
+ return { available: true, people, notFound: answer["notFound"] ?? [], via: "rust" };
76398
76300
  }
76399
76301
 
76400
76302
  // ../../packages/core/dist/host/bridge.js
@@ -79386,7 +79288,7 @@ ${direction}` : attachMentions(text, mentions);
79386
79288
  if (typeof fromHub === "string")
79387
79289
  throw new Error(fromHub);
79388
79290
  const git = (args) => new Promise((resolve) => {
79389
- const child = (0, import_node_child_process15.spawn)("git", ["--no-optional-locks", "-C", root, ...args], {
79291
+ const child = (0, import_node_child_process14.spawn)("git", ["--no-optional-locks", "-C", root, ...args], {
79390
79292
  env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
79391
79293
  windowsHide: true
79392
79294
  });
@@ -81496,7 +81398,7 @@ ${redact(shown2, cachedSecretValues)}` }
81496
81398
  return withoutRipgrep();
81497
81399
  try {
81498
81400
  const listed = await new Promise((resolve, reject2) => {
81499
- const child = (0, import_node_child_process15.spawn)(ripgrepPath, ["--files", "--hidden", "--glob", "!.git"], {
81401
+ const child = (0, import_node_child_process14.spawn)(ripgrepPath, ["--files", "--hidden", "--glob", "!.git"], {
81500
81402
  cwd: workspaceRoot
81501
81403
  });
81502
81404
  let out = "";
@@ -81988,7 +81890,7 @@ ${redact(shown2, cachedSecretValues)}` }
81988
81890
  if (relative.startsWith("..") || import_node_path46.default.isAbsolute(relative))
81989
81891
  return found2;
81990
81892
  const output = await new Promise((resolve) => {
81991
- const child = (0, import_node_child_process15.spawn)("git", ["-c", "core.quotePath=false", "log", "--diff-filter=A", "--relative", "--format=@@%an", "--name-only", "--", relative.length > 0 ? relative : "."], {
81893
+ const child = (0, import_node_child_process14.spawn)("git", ["-c", "core.quotePath=false", "log", "--diff-filter=A", "--relative", "--format=@@%an", "--name-only", "--", relative.length > 0 ? relative : "."], {
81992
81894
  cwd: root,
81993
81895
  windowsHide: true
81994
81896
  });
@@ -82633,7 +82535,7 @@ ${redact(shown2, cachedSecretValues)}` }
82633
82535
  logger.info(`usage: rolled up ${String(rolled.months)} month(s), removing ${String(rolled.removed)} day files`);
82634
82536
  }
82635
82537
  usageLastProblem = void 0;
82636
- void enrichFromDirectory(namesToEnrich(await usageLog.all()));
82538
+ void enrichFromDirectory([]);
82637
82539
  await usageLog.prune(resolved.target, 14);
82638
82540
  } catch (error51) {
82639
82541
  usageLastProblem = `Could not write to ${resolved.store.label}: ${error51 instanceof Error ? error51.message : String(error51)}`;
@@ -84605,7 +84507,8 @@ ${redact(shown2, cachedSecretValues)}` }
84605
84507
  reportFailure("handleClearAssessment", handleClearAssessment(message4.model, message4.profileLabel));
84606
84508
  } else if (message4.type === "restartScheduler") {
84607
84509
  restartScheduleTimer();
84608
- logger.info("schedule timer restarted by the user");
84510
+ if (services.runsSchedules !== false)
84511
+ logger.info("schedule timer restarted by the user");
84609
84512
  reportFailure("postSchedules", postSchedules());
84610
84513
  } else if (message4.type === "deleteScheduleRun") {
84611
84514
  reportFailure("handleDeleteScheduleRun", handleDeleteScheduleRun(message4.id, message4.at));
@@ -85010,7 +84913,8 @@ ${contents}
85010
84913
  ...runningScheduleId !== void 0 ? { runningId: runningScheduleId } : {},
85011
84914
  scheduler: {
85012
84915
  running: scheduleTimer !== void 0,
85013
- ...lastScheduleTickAt === void 0 ? {} : { lastTickAt: lastScheduleTickAt }
84916
+ ...lastScheduleTickAt === void 0 ? {} : { lastTickAt: lastScheduleTickAt },
84917
+ ...services.runsSchedules === false ? { elsewhere: true } : {}
85014
84918
  }
85015
84919
  });
85016
84920
  }
@@ -85290,6 +85194,8 @@ ${contents}
85290
85194
  return "";
85291
85195
  }
85292
85196
  function restartScheduleTimer() {
85197
+ if (services.runsSchedules === false)
85198
+ return;
85293
85199
  if (scheduleTimer !== void 0) {
85294
85200
  clearInterval(scheduleTimer);
85295
85201
  scheduleTimer = void 0;
@@ -85841,7 +85747,7 @@ function searchPath(command, env2) {
85841
85747
  }
85842
85748
 
85843
85749
  // ../../packages/core/dist/lsp/client.js
85844
- var import_node_child_process16 = require("node:child_process");
85750
+ var import_node_child_process15 = require("node:child_process");
85845
85751
  var import_node_url = require("node:url");
85846
85752
  function keyFor(uri) {
85847
85753
  try {
@@ -85871,7 +85777,7 @@ var LspClient = class {
85871
85777
  this.root = root;
85872
85778
  this.log = log;
85873
85779
  const shim = /\.(cmd|bat)$/i.test(executable);
85874
- this.child = shim ? (0, import_node_child_process16.spawn)(process.env.ComSpec ?? "cmd.exe", ["/d", "/s", "/c", `"${executable}"`, ...args], { cwd: root, windowsHide: true, windowsVerbatimArguments: true }) : (0, import_node_child_process16.spawn)(executable, args, { cwd: root, windowsHide: true });
85780
+ this.child = shim ? (0, import_node_child_process15.spawn)(process.env.ComSpec ?? "cmd.exe", ["/d", "/s", "/c", `"${executable}"`, ...args], { cwd: root, windowsHide: true, windowsVerbatimArguments: true }) : (0, import_node_child_process15.spawn)(executable, args, { cwd: root, windowsHide: true });
85875
85781
  this.child.stdout?.on("data", (chunk) => this.onData(chunk));
85876
85782
  this.child.stderr?.on("data", (chunk) => {
85877
85783
  const text = chunk.toString("utf8").trim();
@@ -87743,10 +87649,13 @@ Node. It runs once per install.
87743
87649
 
87744
87650
  **People instead of login names.** On a Windows machine on a company domain, names come from the
87745
87651
  **company directory** first - display name, email, department (shown as the team), title and office -
87746
- read in the background as you (Windows' own sign-in, nothing to configure), for you, every author named
87747
- on a skill or tool, and every colleague in the numbers. With Fire Code installed its Rust helper reads the
87748
- directory; otherwise a fixed PowerShell script does. Only searches, only those fields, only while usage is
87749
- collected; answers are kept for 30 days. Off a domain, or for someone the directory does not list, the
87652
+ read as you (Windows' own sign-in, nothing to configure). In the background only **you** are looked up;
87653
+ every author named on a skill or tool and every colleague in the numbers are looked up when the dashboard
87654
+ is opened. The Rust helper reads the directory through Windows' own LDAP client - Fire Code's, or the one
87655
+ the Windows VS Code package carries. **PowerShell is never used for it**: that way raised a security alert
87656
+ on a managed machine. With no helper (a plain Node host without Fire Code, or not Windows) the directory
87657
+ is simply not used. Only searches, only those fields, only while usage is collected; answers are kept for
87658
+ 30 days. Off a domain, or for someone the directory does not list, the
87750
87659
  **second way** is used: if a tool that looks users up is available - an MCP or Python tool named like
87751
87660
  \`whoami\`, \`user_info\` or \`employee_lookup\`, the one named in the panel, or failing those a
87752
87661
  **skill** named like \`who-am-i\` or \`user-info\` that describes how - the assistant does it once
@@ -87852,10 +87761,13 @@ delete those from Settings \u2192 Skills or Python.
87852
87761
  "move files",
87853
87762
  "zip",
87854
87763
  "vs code rust",
87855
- "tools in vs code"
87764
+ "tools in vs code",
87765
+ "bundled helper",
87766
+ "without fire code"
87856
87767
  ],
87857
87768
  body: `
87858
- Fire Code ships a Rust helper (\`fire-fs.exe\`) that runs file and data work on every CPU core. Its tools:
87769
+ A Rust helper (\`fire-fs.exe\`) runs file and data work on every CPU core. Fire Code ships the full one;
87770
+ the Windows VS Code package carries a slim one with every tool below except \`dataframe\`. Its tools:
87859
87771
 
87860
87772
  - \`find_files\` - find files by name, type, size or date across drives and shares; summarise a folder; find
87861
87773
  duplicate files by content.
@@ -87875,11 +87787,13 @@ Fire Code ships a Rust helper (\`fire-fs.exe\`) that runs file and data work on
87875
87787
 
87876
87788
  **Where they are available**
87877
87789
  - **Fire Code**: always.
87878
- - **VS Code (and \`light-code\` run on its own)**: when Fire Code is installed on the same machine. The
87879
- extension finds Fire Code's helper by itself - nothing to configure - and offers the tools that helper
87880
- has (an older Fire Code offers fewer). Reload the VS Code window after installing or updating Fire Code.
87881
- - **Not**: without Fire Code installed, on a shared server (\`--server\`), or on a platform other than
87882
- Windows. There the built-in tools (read_file, search_files, list_files) do the work.
87790
+ - **VS Code on Windows**: always - every tool but \`dataframe\`, from the helper bundled with the
87791
+ extension. With Fire Code installed on the same machine, its full helper is used instead and
87792
+ \`dataframe\` is there too. Nothing to configure; reload the VS Code window after installing or
87793
+ updating Fire Code.
87794
+ - **\`light-code\` run on its own (Node host)**: when Fire Code is installed on the same machine.
87795
+ - **Not**: on a shared server (\`--server\`), on a platform other than Windows, or in the Node host
87796
+ without Fire Code. There the built-in tools (read_file, search_files, list_files) do the work.
87883
87797
 
87884
87798
  To see whether they are on right now, look at the tool list in Settings \u2192 Tools, or ask "which tools do
87885
87799
  you have?" - the assistant answers from the tools it was actually given.
@@ -89081,7 +88995,7 @@ function createLightCodeHelpTool() {
89081
88995
  }
89082
88996
 
89083
88997
  // ../../packages/core/dist/tools/listFiles.js
89084
- var import_node_child_process17 = require("node:child_process");
88998
+ var import_node_child_process16 = require("node:child_process");
89085
88999
  var import_node_path49 = __toESM(require("node:path"), 1);
89086
89000
 
89087
89001
  // ../../packages/core/dist/tools/ripgrepError.js
@@ -89115,7 +89029,7 @@ function isRipgrepNoMatchError(error51) {
89115
89029
  }
89116
89030
  function runRipgrepFiles(rgPath, dir, signal, includeIgnored) {
89117
89031
  return new Promise((resolve, reject2) => {
89118
- (0, import_node_child_process17.execFile)(rgPath, [
89032
+ (0, import_node_child_process16.execFile)(rgPath, [
89119
89033
  "--files",
89120
89034
  "--hidden",
89121
89035
  ...includeIgnored ? ["--no-ignore-vcs"] : [],
@@ -89324,7 +89238,7 @@ var readDocumentTool = {
89324
89238
  };
89325
89239
 
89326
89240
  // ../../packages/core/dist/tools/searchFiles.js
89327
- var import_node_child_process18 = require("node:child_process");
89241
+ var import_node_child_process17 = require("node:child_process");
89328
89242
  var paramsSchema22 = external_exports.object({
89329
89243
  path: external_exports.string().min(1).default(".").describe("Directory to search, relative to the workspace root."),
89330
89244
  pattern: external_exports.string().min(1).describe("Regular expression to search for."),
@@ -89343,7 +89257,7 @@ function runRipgrepSearch(rgPath, dir, pattern, filePattern, signal, includeIgno
89343
89257
  args.push("-g", filePattern);
89344
89258
  args.push("--regexp", pattern, ".");
89345
89259
  return new Promise((resolve, reject2) => {
89346
- (0, import_node_child_process18.execFile)(rgPath, args, { cwd: dir, signal, maxBuffer: 10 * 1024 * 1024 }, (error51, stdout) => {
89260
+ (0, import_node_child_process17.execFile)(rgPath, args, { cwd: dir, signal, maxBuffer: 10 * 1024 * 1024 }, (error51, stdout) => {
89347
89261
  if (error51 && !isRipgrepNoMatchError2(error51)) {
89348
89262
  reject2(error51);
89349
89263
  return;
@@ -91449,7 +91363,7 @@ var import_promises31 = __toESM(require("node:fs/promises"), 1);
91449
91363
  var import_node_path56 = __toESM(require("node:path"), 1);
91450
91364
 
91451
91365
  // src/credentialTool.ts
91452
- var import_node_child_process19 = require("node:child_process");
91366
+ var import_node_child_process18 = require("node:child_process");
91453
91367
  var import_node_path55 = __toESM(require("node:path"), 1);
91454
91368
  var CREDENTIAL_PREFIX2 = "tool:";
91455
91369
  var WRAPPER = [
@@ -91470,7 +91384,7 @@ async function fetchCredential(options, reference) {
91470
91384
  if (name.length === 0) return { problem: "A credential reference needs a name: tool:<name>." };
91471
91385
  const budget = options.timeoutMs ?? 3e4;
91472
91386
  const run3 = await new Promise((resolve) => {
91473
- const child = (0, import_node_child_process19.spawn)(options.interpreter, ["-c", WRAPPER, import_node_path55.default.resolve(options.file), name], {
91387
+ const child = (0, import_node_child_process18.spawn)(options.interpreter, ["-c", WRAPPER, import_node_path55.default.resolve(options.file), name], {
91474
91388
  windowsHide: true,
91475
91389
  // The environment this was started in, as with the identity function: the libraries that
91476
91390
  // hold credentials are configured through it, and nothing here is model-authored.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chosengeneration/light-code",
3
- "version": "0.133.0",
3
+ "version": "0.134.0",
4
4
  "description": "A minimal agentic coding assistant, served to your browser from a local Node server",
5
5
  "license": "MIT",
6
6
  "type": "module",