@sheetxl/utils-node 0.8.0-beta.10 → 0.8.0-beta.12

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/utils-node - SheetXL - Node-only utilities: terminal presentation, environment reporting, tool logging - v0.8.0-beta.10
2
+ * @license @sheetxl/utils-node - SheetXL - Node-only utilities: terminal presentation, environment reporting, tool logging - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -588,12 +588,7 @@ function ae(e) {
588
588
  function le(e) {
589
589
  const t = Y;
590
590
  if (!t && !Q) return;
591
- const n = {
592
- ts: (/* @__PURE__ */ new Date()).toISOString(),
593
- pid: process.pid,
594
- ...q,
595
- ...e
596
- };
591
+ const n = ce(e);
597
592
  if (Q) try {
598
593
  Q(n);
599
594
  } catch {}
@@ -615,7 +610,15 @@ function le(e) {
615
610
  z || (z = a(s.dirname(t), { recursive: !0 }).then(() => {})), await z, await i(t, o + "\n", "utf-8");
616
611
  }).catch(() => {});
617
612
  }
618
- function ce() {
613
+ function ce(e) {
614
+ return {
615
+ ts: (/* @__PURE__ */ new Date()).toISOString(),
616
+ pid: process.pid,
617
+ ...q,
618
+ ...e
619
+ };
620
+ }
621
+ function ue() {
619
622
  return G;
620
623
  }
621
- export { N as CLAUDE_CODE_FIX, O as GENERIC_FIX, X as TOOL_LOG_ENV, ie as capArgs, ae as capPreview, A as checkForUpdate, D as collectInfo, T as compareVersions, j as discoverRelay, b as fetchRelayWorkbooks, C as findMcpRegistrations, ce as flushToolLog, w as formatBuildInstant, y as formatBuildLabel, ee as getToolLogPath, Z as initToolLog, te as isToolLogEnabled, le as logToolCall, v as printMarkdown, K as renderInfo, V as renderInfoMarkdown, ne as setToolLogContext, se as setToolLogMirror, g as styleMarkdown };
624
+ export { N as CLAUDE_CODE_FIX, O as GENERIC_FIX, X as TOOL_LOG_ENV, ie as capArgs, ae as capPreview, A as checkForUpdate, D as collectInfo, T as compareVersions, j as discoverRelay, ce as enrichToolLogRecord, b as fetchRelayWorkbooks, C as findMcpRegistrations, ue as flushToolLog, w as formatBuildInstant, y as formatBuildLabel, ee as getToolLogPath, Z as initToolLog, te as isToolLogEnabled, le as logToolCall, v as printMarkdown, K as renderInfo, V as renderInfoMarkdown, ne as setToolLogContext, se as setToolLogMirror, g as styleMarkdown };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/utils-node",
3
3
  "description": "SheetXL - Node-only utilities: terminal presentation, environment reporting, tool logging",
4
- "version": "0.8.0-beta.10",
4
+ "version": "0.8.0-beta.12",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -36,7 +36,11 @@ export interface ToolLogRecord {
36
36
  clientName?: string | null;
37
37
  clientVersion?: string | null;
38
38
  args?: unknown;
39
- status?: 'ok' | 'error';
39
+ /**
40
+ * `crashed`: the process died while the call ran, so it never answered. Written by the process
41
+ * that replaced it, from the record the call left when it started.
42
+ */
43
+ status?: 'ok' | 'error' | 'crashed';
40
44
  error?: string | null;
41
45
  durationMs?: number;
42
46
  resultBytes?: number;
@@ -99,6 +103,13 @@ export declare function capPreview(text: string): string;
99
103
  * into the tool call being logged.
100
104
  */
101
105
  export declare function logToolCall(record: ToolLogRecord): void;
106
+ /**
107
+ * `record` as {@link logToolCall} writes it: stamped with the time, the process and the context
108
+ * every record from this process carries. For a surface that keeps a record of its own before the
109
+ * call has an outcome — the MCP server's in-flight marker — so the line it may later stand in for
110
+ * reads like every other.
111
+ */
112
+ export declare function enrichToolLogRecord(record: ToolLogRecord): ToolLogRecord;
102
113
  /** Flushes pending appends. For process-exit paths that want the last line on disk. */
103
114
  export declare function flushToolLog(): Promise<void>;
104
115
  //# sourceMappingURL=toolLog.d.ts.map