@wirecat/wirecat 0.0.0-stage → 1.1.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/LICENSE +204 -0
- package/README.md +399 -2
- package/THIRD_PARTY_NOTICES +2 -0
- package/contracts/wirecat.json +4612 -0
- package/dist/actions/actions.js +269 -0
- package/dist/actions/command.js +102 -0
- package/dist/agents/command.js +17 -0
- package/dist/agents/log.js +23 -0
- package/dist/answer.js +100 -0
- package/dist/answers/command.js +128 -0
- package/dist/app.js +15 -0
- package/dist/author.js +109 -0
- package/dist/bin/wcat-wirecat.js +40 -0
- package/dist/bots/command.js +175 -0
- package/dist/bundle/auto-O24ISPOI.js +43 -0
- package/dist/bundle/chunk-2A3YPENI.js +31 -0
- package/dist/bundle/chunk-6BDIFKF5.js +222 -0
- package/dist/bundle/chunk-7O7XM37N.js +2 -0
- package/dist/bundle/chunk-AYHZY24E.js +120 -0
- package/dist/bundle/chunk-CKBTMZUX.js +72 -0
- package/dist/bundle/chunk-FGXUH3XL.js +416 -0
- package/dist/bundle/chunk-I5JQBRRC.js +807 -0
- package/dist/bundle/chunk-RKVAWMZT.js +38 -0
- package/dist/bundle/chunk-SCDNOUUR.js +395 -0
- package/dist/bundle/chunk-T7TG4JKR.js +312 -0
- package/dist/bundle/chunk-XBUCXQKT.js +51 -0
- package/dist/bundle/entry-EW5A7FYV.js +64 -0
- package/dist/bundle/failure-HMELJ3K5.js +19 -0
- package/dist/bundle/from-memo-F7NTUXAR.js +314 -0
- package/dist/bundle/program-7XWGFN4H.js +14994 -0
- package/dist/bundle/server-T7RVBNRW.js +303 -0
- package/dist/bundle/update-JZDS7B6L.js +22 -0
- package/dist/bundle/wcat-wirecat.js +83 -0
- package/dist/config-command.js +39 -0
- package/dist/config-issues.js +15 -0
- package/dist/config.js +187 -0
- package/dist/context/command.js +162 -0
- package/dist/context/context.js +197 -0
- package/dist/contract-overrides/commands.js +81 -0
- package/dist/contract-overrides/mcp.js +241 -0
- package/dist/contract-overrides/meetings.js +344 -0
- package/dist/contract-overrides/search.js +508 -0
- package/dist/contract-overrides/skill.js +85 -0
- package/dist/contract-overrides.js +7 -0
- package/dist/digest/backfill.js +175 -0
- package/dist/digest/brief.js +189 -0
- package/dist/digest/catch-up-record.js +30 -0
- package/dist/digest/catch-up.js +86 -0
- package/dist/digest/command.js +110 -0
- package/dist/digest/digest-commands.js +327 -0
- package/dist/digest/digest.js +560 -0
- package/dist/digest/digests.js +213 -0
- package/dist/digest/history.js +202 -0
- package/dist/digest/input.js +30 -0
- package/dist/digest/known.js +28 -0
- package/dist/digest/sources.js +155 -0
- package/dist/digest/sync-health.js +158 -0
- package/dist/digest/task-proposals.js +67 -0
- package/dist/digest/tasks.js +145 -0
- package/dist/digest/text.js +49 -0
- package/dist/discovery/command.js +107 -0
- package/dist/doctor/command.js +167 -0
- package/dist/documents/command.js +107 -0
- package/dist/domain-lists/command.js +13 -0
- package/dist/events/command.js +35 -0
- package/dist/events/events.js +196 -0
- package/dist/examples.js +609 -0
- package/dist/facts/command.js +100 -0
- package/dist/facts/fact.js +54 -0
- package/dist/facts/facts.js +15 -0
- package/dist/failure.js +58 -0
- package/dist/finance/command.js +121 -0
- package/dist/finance/contracts-command.js +109 -0
- package/dist/finance/deal-text.js +34 -0
- package/dist/finance/deals-command.js +346 -0
- package/dist/finance/finance.js +129 -0
- package/dist/finance/lines-command.js +70 -0
- package/dist/finance/orders-command.js +94 -0
- package/dist/finance/products-command.js +98 -0
- package/dist/finance/subscriptions-command.js +152 -0
- package/dist/finance/transactions-command.js +136 -0
- package/dist/finance/wallets-command.js +105 -0
- package/dist/finance/written.js +36 -0
- package/dist/findings/command.js +102 -0
- package/dist/findings-input.js +23 -0
- package/dist/identity.js +20 -0
- package/dist/install/postinstall.js +47 -0
- package/dist/json-fields.js +48 -0
- package/dist/knowledge/business-text.js +19 -0
- package/dist/knowledge/command.js +435 -0
- package/dist/knowledge/document-context.js +33 -0
- package/dist/knowledge/key-documents.js +120 -0
- package/dist/knowledge/list-queries.js +20 -0
- package/dist/knowledge/meeting-projects-command.js +61 -0
- package/dist/knowledge/messenger-sync.js +253 -0
- package/dist/knowledge/money-text.js +16 -0
- package/dist/knowledge/notes-about.js +81 -0
- package/dist/knowledge/organization-delete-command.js +44 -0
- package/dist/knowledge/organization-text.js +27 -0
- package/dist/knowledge/project-actions-command.js +130 -0
- package/dist/knowledge/project-actions.js +104 -0
- package/dist/knowledge/project-activity-command.js +70 -0
- package/dist/knowledge/project-context.js +101 -0
- package/dist/knowledge/project-findings.js +41 -0
- package/dist/knowledge/project-gather-command.js +100 -0
- package/dist/knowledge/project-status-command.js +129 -0
- package/dist/knowledge/project-transfer-command.js +58 -0
- package/dist/knowledge/project-transfer.js +107 -0
- package/dist/knowledge/relationships-scan.js +116 -0
- package/dist/knowledge/relationships.js +115 -0
- package/dist/knowledge/roles-command.js +67 -0
- package/dist/mail/command.js +20 -0
- package/dist/mail/findings-command.js +143 -0
- package/dist/mail/findings-duplicates.js +159 -0
- package/dist/mail/messages-command.js +77 -0
- package/dist/mail/review-command.js +59 -0
- package/dist/mail/subscriptions-command.js +84 -0
- package/dist/mcp/catalogue.js +159 -0
- package/dist/mcp/command.js +125 -0
- package/dist/mcp/granted.js +18 -0
- package/dist/mcp/permissions.js +61 -0
- package/dist/mcp/server.js +128 -0
- package/dist/meetings/command.js +31 -0
- package/dist/meetings/list-command.js +59 -0
- package/dist/meetings/preparation-command.js +42 -0
- package/dist/meetings/preparation-text.js +44 -0
- package/dist/meetings/preparation.js +50 -0
- package/dist/meetings/read.js +32 -0
- package/dist/memories/command.js +105 -0
- package/dist/memories/memories.js +17 -0
- package/dist/memories/memory.js +89 -0
- package/dist/memories/sources.js +111 -0
- package/dist/mentions/command.js +91 -0
- package/dist/migrate/check.js +48 -0
- package/dist/migrate/from-memo.js +345 -0
- package/dist/migrate/skill.js +35 -0
- package/dist/models/command.js +19 -0
- package/dist/options.js +35 -0
- package/dist/output.js +17 -0
- package/dist/page.js +14 -0
- package/dist/people/command.js +144 -0
- package/dist/people/delete-command.js +53 -0
- package/dist/people/doubts-command.js +81 -0
- package/dist/people/identities-command.js +188 -0
- package/dist/people/identity.js +42 -0
- package/dist/people/owner.js +14 -0
- package/dist/people/proposal-rows.js +70 -0
- package/dist/people/proposals-command.js +248 -0
- package/dist/people/review-context.js +108 -0
- package/dist/people/subject.js +19 -0
- package/dist/program.js +875 -0
- package/dist/read-only.js +51 -0
- package/dist/reasons.js +368 -0
- package/dist/records/import.js +135 -0
- package/dist/records/input.js +210 -0
- package/dist/records/mapping.js +80 -0
- package/dist/records/record-commands.js +125 -0
- package/dist/records/sources.js +73 -0
- package/dist/refs.js +28 -0
- package/dist/review/command.js +171 -0
- package/dist/review/kinds.js +44 -0
- package/dist/review/review.js +299 -0
- package/dist/review/status.js +93 -0
- package/dist/rows.js +219 -0
- package/dist/run/auto.js +237 -0
- package/dist/run/entry.js +62 -0
- package/dist/run/files.js +51 -0
- package/dist/run/import.js +253 -0
- package/dist/run/lock.js +20 -0
- package/dist/save-help.js +3 -0
- package/dist/schedule/command.js +58 -0
- package/dist/schedule/mail-triage-input.js +152 -0
- package/dist/schedule/task-triage-input.js +152 -0
- package/dist/search/answers.js +176 -0
- package/dist/search/command.js +257 -0
- package/dist/search/denied.js +9 -0
- package/dist/search/embed.js +126 -0
- package/dist/search/hits.js +4 -0
- package/dist/search/lane-gates.js +76 -0
- package/dist/search/notes-text.js +18 -0
- package/dist/search/people.js +88 -0
- package/dist/search/search.js +306 -0
- package/dist/show/command.js +179 -0
- package/dist/store/crm-viewer.js +102 -0
- package/dist/store/group.js +112 -0
- package/dist/store/groups-command.js +136 -0
- package/dist/store/guard.js +94 -0
- package/dist/store/held.js +21 -0
- package/dist/store/info-command.js +37 -0
- package/dist/store/scope.js +53 -0
- package/dist/store/source-list.js +222 -0
- package/dist/store/source-target.js +28 -0
- package/dist/tags/command.js +176 -0
- package/dist/tasks/command.js +174 -0
- package/dist/tasks/context.js +74 -0
- package/dist/tasks/list.js +199 -0
- package/dist/tasks/proposal-duplicates.js +70 -0
- package/dist/tasks/relations-command.js +28 -0
- package/dist/tasks/shared.js +105 -0
- package/dist/tasks/tasks.js +197 -0
- package/dist/templates/command.js +18 -0
- package/dist/terminal.js +23 -0
- package/dist/update.js +35 -0
- package/dist/version.js +2 -0
- package/dist/vocabulary/command.js +103 -0
- package/dist/vocabulary/inspect.js +23 -0
- package/dist/vocabulary/inspection.js +18 -0
- package/dist/vocabulary/list.js +18 -0
- package/dist/vocabulary/project.js +19 -0
- package/dist/wcat.js +3 -0
- package/install/postinstall.mjs +9 -0
- package/package.json +89 -4
- package/scenarios/decision-trail.md +21 -0
- package/scenarios/person-brief.md +35 -0
- package/scenarios/prepare-meeting.md +17 -0
- package/scenarios/project-state.md +26 -0
- package/scenarios/set-up.md +18 -0
- package/scenarios/start-the-day.md +19 -0
- package/skills/mail-triage/SKILL.md +208 -0
- package/skills/morning-digest/SKILL.md +147 -0
- package/skills/task-triage/SKILL.md +79 -0
- package/skills/wcat/SKILL.md +65 -0
- package/skills/wcat/topics/mail.md +32 -0
- package/skills/wcat/topics/mcp.md +22 -0
- package/skills/wcat/topics/meetings.md +37 -0
- package/skills/wcat/topics/money.md +52 -0
- package/skills/wcat/topics/projects.md +54 -0
- package/skills/wcat/topics/proposals.md +113 -0
- package/skills/wcat/topics/search.md +85 -0
- package/skills/wcat/topics/vocabulary.md +8 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
APP,
|
|
5
|
+
__name
|
|
6
|
+
} from "./chunk-SCDNOUUR.js";
|
|
7
|
+
|
|
8
|
+
// dist/migrate/skill.js
|
|
9
|
+
import { readFileSync, rmSync } from "node:fs";
|
|
10
|
+
import { dirname, join } from "node:path";
|
|
11
|
+
import { installSkill, skillPath, skillVersion } from "@wirecat/cli-base/skill";
|
|
12
|
+
var OLD_SKILL_NAME = /^name:\s*["']?cli-memo["']?\s*$/m;
|
|
13
|
+
var memoSkills = /* @__PURE__ */ __name((env) => ["claude", "agents"].map((target) => ({ target, folder: dirname(skillPath(target, "cli-memo", env)) })).filter(({ folder }) => {
|
|
14
|
+
try {
|
|
15
|
+
const text = readFileSync(join(folder, "SKILL.md"), "utf8");
|
|
16
|
+
return OLD_SKILL_NAME.test(text) && skillVersion(text) !== void 0;
|
|
17
|
+
} catch {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
}), "memoSkills");
|
|
21
|
+
var removeMemoSkills = /* @__PURE__ */ __name((env) => {
|
|
22
|
+
const found = memoSkills(env);
|
|
23
|
+
for (const { folder } of found)
|
|
24
|
+
rmSync(folder, { recursive: true, force: true });
|
|
25
|
+
return found.map(({ target }) => target);
|
|
26
|
+
}, "removeMemoSkills");
|
|
27
|
+
var SKILL = new URL("../../skills/wcat/SKILL.md", new URL("../migrate/skill.js", import.meta.url).href);
|
|
28
|
+
var replaceMemoSkill = /* @__PURE__ */ __name((env, skill = SKILL) => {
|
|
29
|
+
const found = memoSkills(env);
|
|
30
|
+
if (found.length > 0)
|
|
31
|
+
installSkill(APP, skill, { env, targets: found.map(({ target }) => target) });
|
|
32
|
+
return removeMemoSkills(env);
|
|
33
|
+
}, "replaceMemoSkill");
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
removeMemoSkills,
|
|
37
|
+
replaceMemoSkill
|
|
38
|
+
};
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
5
|
+
|
|
6
|
+
// dist/reasons.js
|
|
7
|
+
import { defineReasons } from "@wirecat/cli-base/standards";
|
|
8
|
+
var REASONS = defineReasons([
|
|
9
|
+
{
|
|
10
|
+
reason: "backfill.no-schedule",
|
|
11
|
+
code: "not_found",
|
|
12
|
+
message: "no morning-digest schedule to build from \u2014 wcat skill show morning-digest says how to make one",
|
|
13
|
+
details: []
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
reason: "backfill.not-daily",
|
|
17
|
+
code: "validation_error",
|
|
18
|
+
message: "{schedule} does not run at a daily time, so it has no past days",
|
|
19
|
+
details: ["schedule"]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
reason: "backfill.owner-only",
|
|
23
|
+
code: "permission_error",
|
|
24
|
+
message: "a backfill spends the owner's money on model calls; the owner runs it at a terminal or in WireCat Desktop",
|
|
25
|
+
details: []
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
reason: "digest.agent-unchosen",
|
|
29
|
+
code: "validation_error",
|
|
30
|
+
message: "no single agent is installed to write the digest; name one with --agent",
|
|
31
|
+
details: ["choices"]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
reason: "digest.exists",
|
|
35
|
+
code: "validation_error",
|
|
36
|
+
message: "a digest or schedule of that name already exists; wcat digest edit changes a digest",
|
|
37
|
+
details: []
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
reason: "digest.not-found",
|
|
41
|
+
code: "not_found",
|
|
42
|
+
message: "no digest of that name \u2014 wcat digest list names them",
|
|
43
|
+
details: []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
reason: "digest.own-prompt",
|
|
47
|
+
code: "validation_error",
|
|
48
|
+
message: "the digest runs a prompt of its own, made with wcat schedule agent; change it there",
|
|
49
|
+
details: []
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
reason: "digest.owner-only",
|
|
53
|
+
code: "permission_error",
|
|
54
|
+
message: "a digest spends the owner's money and writes to his chats; he changes or runs it in a terminal or WireCat Desktop",
|
|
55
|
+
details: []
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
reason: "roles.owner-only",
|
|
59
|
+
code: "permission_error",
|
|
60
|
+
message: "only the owner changes the role lists; an agent uses the roles they hold",
|
|
61
|
+
details: []
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
reason: "source.agent-fetch",
|
|
65
|
+
code: "permission_error",
|
|
66
|
+
message: "an agent over MCP cannot make wcat fetch an address",
|
|
67
|
+
details: []
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
reason: "brief.owner-only",
|
|
71
|
+
code: "permission_error",
|
|
72
|
+
message: "only the owner changes the digest brief, not an agent",
|
|
73
|
+
details: []
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
reason: "brief.no-editor",
|
|
77
|
+
code: "validation_error",
|
|
78
|
+
message: "set VISUAL or EDITOR, or pass the brief with --file",
|
|
79
|
+
details: []
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
reason: "brief.no-history",
|
|
83
|
+
code: "validation_error",
|
|
84
|
+
message: "the brief has no earlier body to put back",
|
|
85
|
+
details: []
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
reason: "brief.empty",
|
|
89
|
+
code: "validation_error",
|
|
90
|
+
message: "the brief is empty; wcat digest brief reset removes it",
|
|
91
|
+
details: []
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
reason: "brief.too-long",
|
|
95
|
+
code: "validation_error",
|
|
96
|
+
message: "the brief is {chars} characters; the limit is {limit}, because every morning run reads it and pays for it",
|
|
97
|
+
details: ["chars", "limit"]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
reason: "ref.bare-number",
|
|
101
|
+
code: "validation_error",
|
|
102
|
+
message: "{value} is a bare number, which names no one kind of record here; give a reference such as {suggestion}",
|
|
103
|
+
details: ["value", "suggestion"]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
reason: "decision.owner-unconfirmed",
|
|
107
|
+
code: "confirmation_required",
|
|
108
|
+
message: "--as-owner asks at a terminal, and nobody is at one to answer; the owner runs it there, without --json",
|
|
109
|
+
details: []
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
reason: "decision.decider-unknown",
|
|
113
|
+
code: "confirmation_required",
|
|
114
|
+
message: "nothing shows who decides; the owner decides at a terminal, an agent from its own session with --reason",
|
|
115
|
+
details: []
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
reason: "findings.file-missing",
|
|
119
|
+
code: "not_found",
|
|
120
|
+
message: "no findings file {path}: give the findings JSON itself, a file that exists, or - for stdin",
|
|
121
|
+
details: ["path"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
reason: "organization.delete-confirm",
|
|
125
|
+
code: "confirmation_required",
|
|
126
|
+
message: "this deletes the organization and what names it alone; nothing was changed \u2014 add --yes",
|
|
127
|
+
details: ["plan"]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
reason: "person.delete-confirm",
|
|
131
|
+
code: "confirmation_required",
|
|
132
|
+
message: "this deletes the person, their identities and what names them alone; nothing was changed \u2014 add --yes",
|
|
133
|
+
details: ["plan"]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
reason: "records.clear-synced",
|
|
137
|
+
code: "validation_error",
|
|
138
|
+
message: "{account} is an account a WireCat tool syncs, not an import; remove it with that tool",
|
|
139
|
+
details: ["account"]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
reason: "records.clear-confirm",
|
|
143
|
+
code: "confirmation_required",
|
|
144
|
+
message: "this deletes {records} records of the source and its leads, deals and pipelines; nothing was changed \u2014 add --yes",
|
|
145
|
+
details: ["records"]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
reason: "records.not-stored",
|
|
149
|
+
code: "not_found",
|
|
150
|
+
message: "no record {record} from that source; wcat records list shows them",
|
|
151
|
+
details: ["record"]
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
reason: "records.file-missing",
|
|
155
|
+
code: "not_found",
|
|
156
|
+
message: "no records file {path}: give a file that exists, or - for stdin",
|
|
157
|
+
details: ["path"]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
reason: "records.file-unreadable",
|
|
161
|
+
code: "validation_error",
|
|
162
|
+
message: "the records file {path} cannot be read: {why}",
|
|
163
|
+
details: ["path", "why"]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
reason: "findings.key-mismatch",
|
|
167
|
+
code: "validation_error",
|
|
168
|
+
message: "the batch's key {key} is not --key {given}; give the key once, as --key",
|
|
169
|
+
details: ["key", "given"]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
reason: "findings.duplicate",
|
|
173
|
+
code: "validation_error",
|
|
174
|
+
message: "the order, invoice, payment, task or fact is stored or waits for the owner already; the answer names it",
|
|
175
|
+
details: []
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
reason: "sync.running",
|
|
179
|
+
code: "rate_limited",
|
|
180
|
+
message: "another wcat sync is running (process {pid}); try again when it ends",
|
|
181
|
+
details: ["pid"]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
reason: "folder.unbound",
|
|
185
|
+
code: "configuration_error",
|
|
186
|
+
message: "the notes folder {path} has no folder id; files folders add or files folders update gives it one",
|
|
187
|
+
details: ["path"]
|
|
188
|
+
},
|
|
189
|
+
{ reason: "folder.not-found", code: "not_found", message: "the store has no such folder of notes", details: [] },
|
|
190
|
+
{
|
|
191
|
+
reason: "folder.overlap",
|
|
192
|
+
code: "validation_error",
|
|
193
|
+
message: "{path} is inside or around {other}, which wcat already reads; remove one of them first",
|
|
194
|
+
details: ["path", "other"]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
reason: "folder.delete-notes",
|
|
198
|
+
code: "confirmation_required",
|
|
199
|
+
message: "removing the folder deletes {notes} of its notes from the store; nothing was changed \u2014 add --yes",
|
|
200
|
+
details: ["notes"]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
reason: "notes.folder-missing",
|
|
204
|
+
code: "not_found",
|
|
205
|
+
message: "the notes folder {path} is missing \u2014 connect its disk; if it moved, files folders update <id> <new path>",
|
|
206
|
+
details: ["path"]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
reason: "note.not-imported",
|
|
210
|
+
code: "not_found",
|
|
211
|
+
message: "the note is not imported; wcat sync --only notes",
|
|
212
|
+
details: []
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
reason: "events.account-unknown",
|
|
216
|
+
code: "not_found",
|
|
217
|
+
message: "account: names no calendar account in the store; the message lists the ones it holds",
|
|
218
|
+
details: []
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
reason: "import.too-many-files",
|
|
222
|
+
code: "validation_error",
|
|
223
|
+
message: "{path} holds more files than one import reads: import them by folder",
|
|
224
|
+
details: ["path"]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
reason: "mail.account-unknown",
|
|
228
|
+
code: "not_found",
|
|
229
|
+
message: "no stored mailbox by that address; the mail CLI syncs one",
|
|
230
|
+
details: ["account"]
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
reason: "mail.moved-to-mail-cli",
|
|
234
|
+
code: "validation_error",
|
|
235
|
+
message: "the command moved to the mail CLI; the message names the command to run there",
|
|
236
|
+
details: ["cli", "alternative"]
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
reason: "project.not-found",
|
|
240
|
+
code: "not_found",
|
|
241
|
+
message: "no such project; wcat projects list shows them",
|
|
242
|
+
details: []
|
|
243
|
+
},
|
|
244
|
+
{ reason: "person.not-found", code: "not_found", message: "the store has no person by that name", details: [] },
|
|
245
|
+
{
|
|
246
|
+
reason: "bots.whole-store",
|
|
247
|
+
code: "validation_error",
|
|
248
|
+
message: "the bots commands read every account, so they do not run in an account group",
|
|
249
|
+
details: []
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
reason: "identity.not-found",
|
|
253
|
+
code: "not_found",
|
|
254
|
+
message: "no identity has that exact id; people show lists them",
|
|
255
|
+
details: []
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
reason: "proposal.not-found",
|
|
259
|
+
code: "not_found",
|
|
260
|
+
message: "no proposal has that id; people review lists them",
|
|
261
|
+
details: []
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
reason: "proposal.not-people",
|
|
265
|
+
code: "validation_error",
|
|
266
|
+
message: "that proposal is not about people; wcat review decides it",
|
|
267
|
+
details: []
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
reason: "identity.no-messenger",
|
|
271
|
+
code: "validation_error",
|
|
272
|
+
message: "the name has no messenger; write it as <messenger>:<name or id>",
|
|
273
|
+
details: []
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
reason: "evidence.quote-unmatched",
|
|
277
|
+
code: "validation_error",
|
|
278
|
+
message: "a --quote names none of the --evidence references, or one twice; write it as <ref>=<the words>",
|
|
279
|
+
details: []
|
|
280
|
+
},
|
|
281
|
+
{ reason: "auto.systemctl-failed", code: "provider_error", message: "systemctl failed", details: [] },
|
|
282
|
+
{
|
|
283
|
+
reason: "deal.not-readable",
|
|
284
|
+
code: "not_found",
|
|
285
|
+
message: "the deal or lead is in a CRM copy whose sign-in may not read it (SEC-197)",
|
|
286
|
+
details: []
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
reason: "stage.crm-copy",
|
|
290
|
+
code: "validation_error",
|
|
291
|
+
message: "the row is a CRM's copy: its CRM's CLI moves it to a base stage, as writes_with names it",
|
|
292
|
+
details: ["writes_with"]
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
reason: "reader.none-chosen",
|
|
296
|
+
code: "configuration_error",
|
|
297
|
+
message: "no reader is chosen for sources; the owner picks one with files sources readers set <reader>",
|
|
298
|
+
details: ["readers"]
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
reason: "reader.owner-picks",
|
|
302
|
+
code: "permission_error",
|
|
303
|
+
message: "only the owner picks the reader that reads a source; an agent uses the one the owner chose",
|
|
304
|
+
details: []
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
reason: "reader.unknown",
|
|
308
|
+
code: "validation_error",
|
|
309
|
+
message: "{reader} is not a reader wcat knows; it reads with one of {readers}",
|
|
310
|
+
details: ["reader", "readers"]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
reason: "reader.unavailable",
|
|
314
|
+
code: "configuration_error",
|
|
315
|
+
message: "the chosen reader cannot read now; files sources readers list says why and what fixes it",
|
|
316
|
+
details: []
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
reason: "reader.address-refused",
|
|
320
|
+
code: "validation_error",
|
|
321
|
+
message: "the reader's address must be on this computer (localhost, 127.x.x.x or [::1]); --base-url is Ollama's only",
|
|
322
|
+
details: []
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
reason: "reader.model-missing",
|
|
326
|
+
code: "configuration_error",
|
|
327
|
+
message: "the reader needs a model the owner names; files sources readers set <reader> --model <model>",
|
|
328
|
+
details: []
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
reason: "reader.ai-not-set",
|
|
332
|
+
code: "configuration_error",
|
|
333
|
+
message: "no AI model is chosen for every tool; wcat models ai set <provider> --model <model> chooses one",
|
|
334
|
+
details: []
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
reason: "reader.no-key",
|
|
338
|
+
code: "authentication_error",
|
|
339
|
+
message: "no API key is kept for the reader's provider; wcat models keys set <provider> keeps one",
|
|
340
|
+
details: []
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
reason: "reader.not-running",
|
|
344
|
+
code: "provider_unavailable",
|
|
345
|
+
message: "the local model server is not running on this computer; start it, then try again",
|
|
346
|
+
details: []
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
reason: "reader.timeout",
|
|
350
|
+
code: "timeout",
|
|
351
|
+
message: "the reader gave no answer in time; try again, or a smaller source",
|
|
352
|
+
details: []
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
reason: "reader.limit",
|
|
356
|
+
code: "rate_limited",
|
|
357
|
+
message: "the reader's provider says the limit is reached; try again later",
|
|
358
|
+
details: []
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
reason: "reader.failed",
|
|
362
|
+
code: "invalid_response",
|
|
363
|
+
message: "the reader failed; check its sign-in, key, model and credit, then try again",
|
|
364
|
+
details: []
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
reason: "reader.unusable-answer",
|
|
368
|
+
code: "invalid_response",
|
|
369
|
+
message: "the reader's answer was not the JSON wcat asked for; nothing was staged, so try again",
|
|
370
|
+
details: []
|
|
371
|
+
}
|
|
372
|
+
]);
|
|
373
|
+
|
|
374
|
+
// dist/version.js
|
|
375
|
+
var VERSION = "1.1.0";
|
|
376
|
+
|
|
377
|
+
// dist/app.js
|
|
378
|
+
var APP = {
|
|
379
|
+
command: "wcat",
|
|
380
|
+
appName: "wcat",
|
|
381
|
+
envPrefix: "WCAT",
|
|
382
|
+
description: "Local context for AI agents across messengers, mail and notes",
|
|
383
|
+
messenger: false,
|
|
384
|
+
version: VERSION,
|
|
385
|
+
errors: { reasons: REASONS }
|
|
386
|
+
};
|
|
387
|
+
var STORE_CLIENT = { command: APP.command, version: APP.version };
|
|
388
|
+
|
|
389
|
+
export {
|
|
390
|
+
__name,
|
|
391
|
+
REASONS,
|
|
392
|
+
VERSION,
|
|
393
|
+
APP,
|
|
394
|
+
STORE_CLIENT
|
|
395
|
+
};
|