@wirecat/cli-core 0.599.0 → 0.601.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/background/deliver.js +1 -1
  3. package/dist/background/schedules.d.ts +1 -1
  4. package/dist/calendar/cli/search-all.js +9 -2
  5. package/dist/cli/app-doctor-command.js +18 -10
  6. package/dist/cli/bot/api-input.js +8 -2
  7. package/dist/cli/context.d.ts +2 -0
  8. package/dist/cli/contract-templates.js +2 -1
  9. package/dist/cli/effects.d.ts +5 -0
  10. package/dist/cli/effects.js +5 -0
  11. package/dist/cli/index.d.ts +2 -1
  12. package/dist/cli/index.js +2 -1
  13. package/dist/cli/messenger/search-answers.d.ts +5 -1
  14. package/dist/cli/messenger/search-answers.js +4 -1
  15. package/dist/cli/new-file.d.ts +2 -0
  16. package/dist/cli/new-file.js +13 -0
  17. package/dist/cli/program.js +3 -0
  18. package/dist/cli/schedule/schedule-command.js +10 -8
  19. package/dist/cli/search-left-out.d.ts +27 -0
  20. package/dist/cli/search-left-out.js +31 -0
  21. package/dist/crm/cli/index.js +2 -7
  22. package/dist/crm/cli/search-all.js +17 -2
  23. package/dist/crm/index.d.ts +1 -1
  24. package/dist/crm/index.js +1 -1
  25. package/dist/crm/writes.d.ts +17 -0
  26. package/dist/crm/writes.js +31 -16
  27. package/dist/entities/index.d.ts +1 -1
  28. package/dist/entities/list-results.d.ts +1 -1
  29. package/dist/entities/list-results.js +1 -1
  30. package/dist/errors/reasons.js +15 -0
  31. package/dist/index.d.ts +1 -1
  32. package/dist/index.js +1 -1
  33. package/dist/meetings/cli/index.d.ts +14 -0
  34. package/dist/meetings/cli/index.js +18 -6
  35. package/dist/meetings/index.d.ts +1 -1
  36. package/dist/meetings/mcp/index.d.ts +15 -15
  37. package/dist/meetings/pull.d.ts +13 -1
  38. package/dist/meetings/pull.js +34 -8
  39. package/dist/meetings/source.d.ts +5 -0
  40. package/dist/resolve.d.ts +2 -2
  41. package/dist/resolve.js +4 -3
  42. package/dist/services/search-all.d.ts +3 -0
  43. package/dist/services/search-all.js +1 -0
  44. package/dist/speech/local.d.ts +2 -1
  45. package/dist/speech/local.js +12 -1
  46. package/dist/speech/recognize.d.ts +2 -0
  47. package/dist/speech/recognize.js +15 -0
  48. package/dist/store/decision-requests.d.ts +10 -0
  49. package/dist/store/decision-requests.js +16 -0
  50. package/dist/store/index.d.ts +2 -0
  51. package/dist/store/index.js +1 -0
  52. package/dist/store/sqlite/deals.d.ts +3 -1
  53. package/dist/store/sqlite/deals.js +2 -2
  54. package/dist/store/sqlite/decision-requests.d.ts +59 -0
  55. package/dist/store/sqlite/decision-requests.js +111 -0
  56. package/dist/store/sqlite/manifest.js +2 -0
  57. package/dist/store/sqlite/migrations.generated.js +12 -0
  58. package/dist/store/sqlite/schema/decision-requests.d.ts +233 -0
  59. package/dist/store/sqlite/schema/decision-requests.js +20 -0
  60. package/dist/store/sqlite/schema.d.ts +1 -0
  61. package/dist/store/sqlite/schema.js +1 -0
  62. package/dist/store/store.d.ts +3 -0
  63. package/dist/store/store.js +5 -0
  64. package/package.json +4 -4
  65. package/parity.json +14 -10
@@ -21,6 +21,7 @@ import { catalogStoreOver } from "./sqlite/catalog.js";
21
21
  import { contextEvidenceOver, contextIndexOver, contextRecordsOver } from "./sqlite/context-evidence.js";
22
22
  import { crmCopiesOver } from "./sqlite/crm.js";
23
23
  import { dealsStoreOver } from "./sqlite/deals.js";
24
+ import { decisionRequestStoreOver } from "./sqlite/decision-requests.js";
24
25
  import { mailStoreOver } from "./sqlite/emails.js";
25
26
  import { eventSearchOver } from "./sqlite/event-search.js";
26
27
  import { evidenceFindingsStoreOver } from "./sqlite/evidence-findings.js";
@@ -122,6 +123,7 @@ const storeOver = (context) => {
122
123
  const orders = once(() => ordersStoreOver(context));
123
124
  const deals = once(() => dealsStoreOver(context));
124
125
  const crm = once(() => crmCopiesOver(context, accountPeopleOver(context)));
126
+ const decisionRequests = once(() => decisionRequestStoreOver(context));
125
127
  const records = once(() => recordStoreOver(context));
126
128
  const memories = once(() => memoriesStoreOver(context));
127
129
  const proposedActions = once(() => proposedActionsStoreOver(context));
@@ -238,6 +240,9 @@ const storeOver = (context) => {
238
240
  get crm() {
239
241
  return crm();
240
242
  },
243
+ get decisionRequests() {
244
+ return decisionRequests();
245
+ },
241
246
  get records() {
242
247
  return records();
243
248
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/cli-core",
3
- "version": "0.599.0",
3
+ "version": "0.601.0",
4
4
  "description": "The messenger-neutral half of a messaging CLI: domain model, message locators, rendering, name resolution, the SQLite seam, the command skeleton and shared read commands, the send guard, run records and the message store",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",
@@ -15,7 +15,7 @@
15
15
  "type": "module",
16
16
  "wirecat": {
17
17
  "store": {
18
- "speaks": 54,
18
+ "speaks": 55,
19
19
  "minCompatible": 34
20
20
  }
21
21
  },
@@ -276,7 +276,7 @@
276
276
  "@types/node": "^22.20.5",
277
277
  "@types/pngjs": "6.0.5",
278
278
  "@vitest/coverage-v8": "^5.0.5",
279
- "@wirecat/cli-base": "0.80.2",
279
+ "@wirecat/cli-base": "0.80.7",
280
280
  "@wirecat/cli-core-legacy-tags": "npm:@wirecat/cli-core@0.414.0",
281
281
  "commander": "15.0.0",
282
282
  "cspell": "10.4.0",
@@ -296,7 +296,7 @@
296
296
  },
297
297
  "peerDependencies": {
298
298
  "@napi-rs/canvas": ">=0.1.69 <2",
299
- "@wirecat/cli-base": ">=0.76.0 <0.81.0",
299
+ "@wirecat/cli-base": ">=0.80.7 <0.81.0",
300
300
  "commander": ">=15"
301
301
  },
302
302
  "bin": {
package/parity.json CHANGED
@@ -304,6 +304,10 @@
304
304
  "--defaults": {
305
305
  "meaning": "change what every profile gets, rather than this profile"
306
306
  },
307
+ "--deliver-to": {
308
+ "value": "<route>",
309
+ "meaning": "where a schedule's result also goes, when --notify-on says so: telegram-bot:<profile>/<chat>, email:<profile>/<address>; repeat it for more"
310
+ },
307
311
  "--deny-chats": {
308
312
  "meaning": "replace denied chat ids, comma-separated; empty clears; deny wins",
309
313
  "value": "<ids>"
@@ -1065,7 +1069,7 @@
1065
1069
  },
1066
1070
  "--to": {
1067
1071
  "value": "<chat>",
1068
- "meaning": "where it goes: the chat to forward it to (an id, or part of a chat name), or a route a schedule's result is sent along (telegram-bot:<profile>/<chat>, email:<profile>/<address>)",
1072
+ "meaning": "where it goes: the chat to forward it to (an id, or part of a chat name)",
1069
1073
  "note": "the sentence says how to name a chat the messenger's way, so it differs on purpose (Help text rule 4)"
1070
1074
  },
1071
1075
  "--topic": {
@@ -3959,37 +3963,37 @@
3959
3963
  "wa": "wa backlog: mount the shared schedule command"
3960
3964
  }
3961
3965
  },
3962
- "--every": {
3966
+ "--deliver-to": {
3963
3967
  "in": ["max", "tg"],
3964
3968
  "planned": {
3965
3969
  "wa": "wa backlog: mount the shared schedule command"
3966
3970
  }
3967
3971
  },
3968
- "--max-cost": {
3972
+ "--every": {
3969
3973
  "in": ["max", "tg"],
3970
3974
  "planned": {
3971
3975
  "wa": "wa backlog: mount the shared schedule command"
3972
3976
  }
3973
3977
  },
3974
- "--max-cost-per-day": {
3978
+ "--max-cost": {
3975
3979
  "in": ["max", "tg"],
3976
3980
  "planned": {
3977
3981
  "wa": "wa backlog: mount the shared schedule command"
3978
3982
  }
3979
3983
  },
3980
- "--model": {
3984
+ "--max-cost-per-day": {
3981
3985
  "in": ["max", "tg"],
3982
3986
  "planned": {
3983
3987
  "wa": "wa backlog: mount the shared schedule command"
3984
3988
  }
3985
3989
  },
3986
- "--notify-on": {
3990
+ "--model": {
3987
3991
  "in": ["max", "tg"],
3988
3992
  "planned": {
3989
3993
  "wa": "wa backlog: mount the shared schedule command"
3990
3994
  }
3991
3995
  },
3992
- "--to": {
3996
+ "--notify-on": {
3993
3997
  "in": ["max", "tg"],
3994
3998
  "planned": {
3995
3999
  "wa": "wa backlog: mount the shared schedule command"
@@ -4015,19 +4019,19 @@
4015
4019
  "wa": "wa backlog: mount the shared schedule command"
4016
4020
  }
4017
4021
  },
4018
- "--every": {
4022
+ "--deliver-to": {
4019
4023
  "in": ["max", "tg"],
4020
4024
  "planned": {
4021
4025
  "wa": "wa backlog: mount the shared schedule command"
4022
4026
  }
4023
4027
  },
4024
- "--notify-on": {
4028
+ "--every": {
4025
4029
  "in": ["max", "tg"],
4026
4030
  "planned": {
4027
4031
  "wa": "wa backlog: mount the shared schedule command"
4028
4032
  }
4029
4033
  },
4030
- "--to": {
4034
+ "--notify-on": {
4031
4035
  "in": ["max", "tg"],
4032
4036
  "planned": {
4033
4037
  "wa": "wa backlog: mount the shared schedule command"