@wirecat/cli-memo 0.131.69 → 0.131.70

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.
Files changed (35) hide show
  1. package/dist/bin/memo.js +2 -2
  2. package/dist/bundle/{auto-IKZIROGF.js → auto-CVILDIC6.js} +3 -3
  3. package/dist/bundle/{chunk-EKSOPEFQ.js → chunk-3OEV7GNU.js} +1 -1
  4. package/dist/bundle/{chunk-3YVLNOPE.js → chunk-52F4LHCH.js} +1 -1
  5. package/dist/bundle/{chunk-TVZXLAID.js → chunk-57SQU2YO.js} +1 -1
  6. package/dist/bundle/{chunk-5MUR6D2G.js → chunk-7OXLZZ27.js} +31 -1
  7. package/dist/bundle/{chunk-W2FFA7T5.js → chunk-EQKS6M52.js} +1 -1
  8. package/dist/bundle/{chunk-BJJULUUC.js → chunk-YBTUFOQG.js} +1 -1
  9. package/dist/bundle/{failure-NRZUB77S.js → failure-HM55W3NH.js} +2 -2
  10. package/dist/bundle/memo.js +5 -5
  11. package/dist/bundle/{program-BXL5ZOVQ.js → program-RSUVU6HA.js} +209 -89
  12. package/dist/bundle/{server-JLPZUC42.js → server-BVRPQPGY.js} +4 -4
  13. package/dist/bundle/{update-M54Z3SEU.js → update-ZE53ASCW.js} +2 -2
  14. package/dist/contract-overrides/skill.d.ts.map +1 -1
  15. package/dist/contract-overrides/skill.js +5 -10
  16. package/dist/contract-overrides/skill.js.map +1 -1
  17. package/dist/digest/backfill.d.ts.map +1 -1
  18. package/dist/digest/backfill.js +4 -2
  19. package/dist/digest/backfill.js.map +1 -1
  20. package/dist/digest/brief.d.ts +14 -0
  21. package/dist/digest/brief.d.ts.map +1 -0
  22. package/dist/digest/brief.js +143 -0
  23. package/dist/digest/brief.js.map +1 -0
  24. package/dist/examples.d.ts.map +1 -1
  25. package/dist/examples.js +7 -0
  26. package/dist/examples.js.map +1 -1
  27. package/dist/program.d.ts.map +1 -1
  28. package/dist/program.js +16 -8
  29. package/dist/program.js.map +1 -1
  30. package/dist/reasons.d.ts.map +1 -1
  31. package/dist/reasons.js +30 -0
  32. package/dist/reasons.js.map +1 -1
  33. package/dist/version.d.ts +1 -1
  34. package/dist/version.js +1 -1
  35. package/package.json +2 -2
package/dist/bin/memo.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.131.69\n")
12
+ process.stdout.write("0.131.70\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -28,7 +28,7 @@ if (
28
28
  : next(specifier, context),
29
29
  })
30
30
  }
31
- const chunks = ["../bundle/all-profiles-6JKSPBBO.js","../bundle/anthropic-YA2N6EJ4.js","../bundle/app-server-UP3AL2XQ.js","../bundle/auto-IKZIROGF.js","../bundle/bun-OUFOAYV4.js","../bundle/bun-sqlite-5RZTFU2Q.js","../bundle/command-contract-OGW2DX4C.js","../bundle/decode-IJMDTGTW.js","../bundle/dispatch-VJSUBAUM.js","../bundle/dist-GZQWFMCL.js","../bundle/echarts-EHYUXOKP.js","../bundle/embed-RUY3UIVC.js","../bundle/embedder-P6WBMEGP.js","../bundle/entry-7S2ONYSF.js","../bundle/failure-GLF7OMMM.js","../bundle/failure-NRZUB77S.js","../bundle/first-run-MLIFZSVH.js","../bundle/first-screen-DGTTK6VK.js","../bundle/instructions-ZMG4FLGO.js","../bundle/mcp-CFIL7WZU.js","../bundle/mcp-H2WYFBNW.js","../bundle/node-P4E63KXA.js","../bundle/node-QYL4B7JS.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-ESTT2OCF.js","../bundle/oauth-CFQFSIRQ.js","../bundle/open-3XO2HMIT.js","../bundle/openai-STUNDBD6.js","../bundle/process-P4UAJCZX.js","../bundle/program-BXL5ZOVQ.js","../bundle/prompt-ZCYMFMIG.js","../bundle/recognize-V3BY33FK.js","../bundle/remote-IP4QR7SP.js","../bundle/rerank-VKUSF3DM.js","../bundle/serve-VBIUARHJ.js","../bundle/server-AASCSGCI.js","../bundle/server-JLPZUC42.js","../bundle/server-YQLPZK4Z.js","../bundle/state-UBAIZ2WP.js","../bundle/stdio-FRV4R7LJ.js","../bundle/store-VQQVUA4W.js","../bundle/store-maintenance-command-GCBABKEZ.js","../bundle/update-M54Z3SEU.js"]
31
+ const chunks = ["../bundle/all-profiles-6JKSPBBO.js","../bundle/anthropic-YA2N6EJ4.js","../bundle/app-server-UP3AL2XQ.js","../bundle/auto-CVILDIC6.js","../bundle/bun-OUFOAYV4.js","../bundle/bun-sqlite-5RZTFU2Q.js","../bundle/command-contract-OGW2DX4C.js","../bundle/decode-IJMDTGTW.js","../bundle/dispatch-VJSUBAUM.js","../bundle/dist-GZQWFMCL.js","../bundle/echarts-EHYUXOKP.js","../bundle/embed-RUY3UIVC.js","../bundle/embedder-P6WBMEGP.js","../bundle/entry-7S2ONYSF.js","../bundle/failure-GLF7OMMM.js","../bundle/failure-HM55W3NH.js","../bundle/first-run-MLIFZSVH.js","../bundle/first-screen-DGTTK6VK.js","../bundle/instructions-ZMG4FLGO.js","../bundle/mcp-CFIL7WZU.js","../bundle/mcp-H2WYFBNW.js","../bundle/node-P4E63KXA.js","../bundle/node-QYL4B7JS.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-ESTT2OCF.js","../bundle/oauth-CFQFSIRQ.js","../bundle/open-3XO2HMIT.js","../bundle/openai-STUNDBD6.js","../bundle/process-P4UAJCZX.js","../bundle/program-RSUVU6HA.js","../bundle/prompt-ZCYMFMIG.js","../bundle/recognize-V3BY33FK.js","../bundle/remote-IP4QR7SP.js","../bundle/rerank-VKUSF3DM.js","../bundle/serve-VBIUARHJ.js","../bundle/server-AASCSGCI.js","../bundle/server-BVRPQPGY.js","../bundle/server-YQLPZK4Z.js","../bundle/state-UBAIZ2WP.js","../bundle/stdio-FRV4R7LJ.js","../bundle/store-VQQVUA4W.js","../bundle/store-maintenance-command-GCBABKEZ.js","../bundle/update-ZE53ASCW.js"]
32
32
  if (((words) => words
33
33
  .filter((word) => !word.startsWith("-"))
34
34
  .slice(0, 2)
@@ -15,8 +15,8 @@ import {
15
15
  recordAutoRun,
16
16
  serviceUnit,
17
17
  timerUnit
18
- } from "./chunk-EKSOPEFQ.js";
19
- import "./chunk-TVZXLAID.js";
18
+ } from "./chunk-3OEV7GNU.js";
19
+ import "./chunk-57SQU2YO.js";
20
20
  import "./chunk-FQ54GW57.js";
21
21
  import "./chunk-QP3KNC5D.js";
22
22
  import "./chunk-OHA7HDPX.js";
@@ -55,7 +55,7 @@ import "./chunk-QZU5IM5E.js";
55
55
  import "./chunk-FZHYGJQ2.js";
56
56
  import "./chunk-WNA2WNDK.js";
57
57
  import "./chunk-V2YS63Z5.js";
58
- import "./chunk-5MUR6D2G.js";
58
+ import "./chunk-7OXLZZ27.js";
59
59
  import "./chunk-DSU6UR2X.js";
60
60
  import "./chunk-SYWHHQMC.js";
61
61
  import "./chunk-D72URWJE.js";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answers,
5
5
  itemAnswer
6
- } from "./chunk-TVZXLAID.js";
6
+ } from "./chunk-57SQU2YO.js";
7
7
  import {
8
8
  loadConfig,
9
9
  updateConfig
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-BPGYTJNB.js";
19
19
  import {
20
20
  APP
21
- } from "./chunk-5MUR6D2G.js";
21
+ } from "./chunk-7OXLZZ27.js";
22
22
  import {
23
23
  ValiError,
24
24
  errorObjectOf,
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-GGFL64HF.js";
22
22
  import {
23
23
  STORE_CLIENT
24
- } from "./chunk-5MUR6D2G.js";
24
+ } from "./chunk-7OXLZZ27.js";
25
25
  import {
26
26
  createRenderer
27
27
  } from "./chunk-UUBV5ATQ.js";
@@ -24,6 +24,36 @@ var REASONS = defineReasons([
24
24
  message: "a backfill spends the owner's money on model calls; the owner runs it at a terminal or in WireCat Desktop",
25
25
  details: []
26
26
  },
27
+ {
28
+ reason: "brief.owner-only",
29
+ code: "permission_error",
30
+ message: "only the owner changes the digest brief, not an agent",
31
+ details: []
32
+ },
33
+ {
34
+ reason: "brief.no-editor",
35
+ code: "validation_error",
36
+ message: "set VISUAL or EDITOR, or pass the brief with --file",
37
+ details: []
38
+ },
39
+ {
40
+ reason: "brief.no-history",
41
+ code: "validation_error",
42
+ message: "the brief has no earlier body to put back",
43
+ details: []
44
+ },
45
+ {
46
+ reason: "brief.empty",
47
+ code: "validation_error",
48
+ message: "the brief is empty; memo digest brief reset removes it",
49
+ details: []
50
+ },
51
+ {
52
+ reason: "brief.too-long",
53
+ code: "validation_error",
54
+ message: "the brief is {chars} characters; the limit is {limit}, because every morning run reads it and pays for it",
55
+ details: ["chars", "limit"]
56
+ },
27
57
  {
28
58
  reason: "ref.bare-number",
29
59
  code: "validation_error",
@@ -150,7 +180,7 @@ var REASONS = defineReasons([
150
180
  ]);
151
181
 
152
182
  // dist/version.js
153
- var VERSION = "0.131.69";
183
+ var VERSION = "0.131.70";
154
184
 
155
185
  // dist/app.js
156
186
  var APP = {
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-2DQYP2K3.js";
24
24
  import {
25
25
  APP
26
- } from "./chunk-5MUR6D2G.js";
26
+ } from "./chunk-7OXLZZ27.js";
27
27
  import {
28
28
  CliError
29
29
  } from "./chunk-ZTONSM5X.js";
@@ -19,7 +19,7 @@ import {
19
19
  import {
20
20
  APP,
21
21
  VERSION
22
- } from "./chunk-5MUR6D2G.js";
22
+ } from "./chunk-7OXLZZ27.js";
23
23
  import {
24
24
  installerOf
25
25
  } from "./chunk-DSU6UR2X.js";
@@ -6,7 +6,7 @@ import {
6
6
  recognisable,
7
7
  reportFailure,
8
8
  throwParseFailures
9
- } from "./chunk-3YVLNOPE.js";
9
+ } from "./chunk-52F4LHCH.js";
10
10
  import "./chunk-OHA7HDPX.js";
11
11
  import "./chunk-7JFLHRQL.js";
12
12
  import "./chunk-RHW3DDWI.js";
@@ -44,7 +44,7 @@ import "./chunk-FZHYGJQ2.js";
44
44
  import "./chunk-WNA2WNDK.js";
45
45
  import "./chunk-V2YS63Z5.js";
46
46
  import "./chunk-BPGYTJNB.js";
47
- import "./chunk-5MUR6D2G.js";
47
+ import "./chunk-7OXLZZ27.js";
48
48
  import "./chunk-DSU6UR2X.js";
49
49
  import "./chunk-SYWHHQMC.js";
50
50
  import "./chunk-D72URWJE.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-BPGYTJNB.js";
7
7
  import {
8
8
  APP
9
- } from "./chunk-5MUR6D2G.js";
9
+ } from "./chunk-7OXLZZ27.js";
10
10
  import {
11
11
  installerOf
12
12
  } from "./chunk-DSU6UR2X.js";
@@ -197,15 +197,15 @@ if (wcat.code !== void 0) {
197
197
  interactive: interactiveOf,
198
198
  reasons: APP.errors.reasons,
199
199
  run: /* @__PURE__ */ __name(async (entry) => {
200
- failure = await import("./failure-NRZUB77S.js");
201
- const { createProgram, refuseJoinedPath } = await import("./program-BXL5ZOVQ.js");
202
- const { autoNotice, followInstall } = await import("./auto-IKZIROGF.js");
200
+ failure = await import("./failure-HM55W3NH.js");
201
+ const { createProgram, refuseJoinedPath } = await import("./program-RSUVU6HA.js");
202
+ const { autoNotice, followInstall } = await import("./auto-CVILDIC6.js");
203
203
  if (entry.args[0] !== "jobs") {
204
204
  const notice2 = autoNotice(entry.env);
205
205
  if (notice2)
206
206
  processStreams.diagnostic(notice2);
207
207
  }
208
- const { updateNotice } = await import("./update-M54Z3SEU.js");
208
+ const { updateNotice } = await import("./update-ZE53ASCW.js");
209
209
  const notice = updateNotice(entry.args);
210
210
  program = createProgram({ signal: entry.signal });
211
211
  program.hook("preAction", (_root, command) => entry.atStart(command));