@wirecat/attio-cli 0.5.1 → 0.5.3
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/CHANGELOG.md +18 -0
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-YCPGDAWJ.js +37 -0
- package/dist/bundle/{all-profiles-OVSFABZM.js → all-profiles-ONLZNT2O.js} +6 -6
- package/dist/bundle/{anthropic-ISXRCL4Y.js → anthropic-7NHDUCS7.js} +2 -2
- package/dist/bundle/{app-server-NEHGIO3W.js → app-server-76UZBJNR.js} +53 -53
- package/dist/bundle/attio.js +2 -2
- package/dist/bundle/{bun-K7FMAYXA.js → bun-3M7LDMJY.js} +2 -2
- package/dist/bundle/{bun-sqlite-RA6HOIXV.js → bun-sqlite-WWPYULNT.js} +3 -3
- package/dist/bundle/{chunk-YT4VACIE.js → chunk-2HU7TYQK.js} +1 -1
- package/dist/bundle/{chunk-MGB2AQAA.js → chunk-3MZREGLN.js} +11 -11
- package/dist/bundle/{chunk-VOENQSTT.js → chunk-3QYMX2QX.js} +2 -2
- package/dist/bundle/{chunk-FLEW7XVY.js → chunk-3TFPJCTB.js} +23 -23
- package/dist/bundle/{chunk-UBWALYSW.js → chunk-65OPLJBL.js} +2 -2
- package/dist/bundle/{chunk-QLMMCGAY.js → chunk-6MEPMDWU.js} +183 -159
- package/dist/bundle/{chunk-3CTKGH6N.js → chunk-6MPA7CKD.js} +2 -2
- package/dist/bundle/{chunk-ARFO3IJU.js → chunk-764RTGNI.js} +2 -2
- package/dist/bundle/{chunk-4SUAKG7I.js → chunk-7ONN7UCC.js} +1 -1
- package/dist/bundle/{chunk-JDECYQ5S.js → chunk-A5A2I2DY.js} +1 -1
- package/dist/bundle/{chunk-JRBKNTJA.js → chunk-ABMNYUSQ.js} +11 -11
- package/dist/bundle/{chunk-ACTG2Z3H.js → chunk-AYF2JNHE.js} +2 -2
- package/dist/bundle/{chunk-I7VAGHHF.js → chunk-BSPMRKPS.js} +5 -5
- package/dist/bundle/{chunk-L6EEBPFM.js → chunk-DOTBJMPB.js} +2 -2
- package/dist/bundle/{chunk-VALYZBOY.js → chunk-EKRO2AYG.js} +7 -7
- package/dist/bundle/{chunk-ZHCM7N4J.js → chunk-F5IGO45Z.js} +5 -5
- package/dist/bundle/{chunk-ZFXWL2QZ.js → chunk-FVBZHGFE.js} +1 -1
- package/dist/bundle/{chunk-F6V5TEUQ.js → chunk-GHT7KPTC.js} +32 -32
- package/dist/bundle/{chunk-GBI2NDI4.js → chunk-H7RYW7CD.js} +1 -1
- package/dist/bundle/{chunk-4E26GPWD.js → chunk-HGD4JW37.js} +10 -10
- package/dist/bundle/{chunk-ZXUJDPJA.js → chunk-HPYDPVGU.js} +2 -2
- package/dist/bundle/{chunk-UAZWR6VN.js → chunk-J3ZQ4JWD.js} +32 -32
- package/dist/bundle/{chunk-VUB6OEOZ.js → chunk-JRHDYND7.js} +1 -1
- package/dist/bundle/{chunk-U43KHI4P.js → chunk-KTGIA7CC.js} +467 -408
- package/dist/bundle/{chunk-M3J5LRF3.js → chunk-KWJ4GAYR.js} +3 -3
- package/dist/bundle/{chunk-AGYTUJIQ.js → chunk-LQDZSJ3V.js} +1 -1
- package/dist/bundle/{chunk-FEO364I5.js → chunk-LSFZSGQK.js} +2 -2
- package/dist/bundle/{chunk-BHWVONNC.js → chunk-M62QM7VF.js} +9 -9
- package/dist/bundle/{chunk-S3HPTHNJ.js → chunk-MFPYCWMY.js} +4 -4
- package/dist/bundle/{chunk-7INZNQN4.js → chunk-MUDJABVF.js} +2 -2
- package/dist/bundle/{chunk-5GABY7WX.js → chunk-N6VLRVCC.js} +51 -51
- package/dist/bundle/{chunk-MY6MMJEU.js → chunk-NCYBA5FH.js} +2 -2
- package/dist/bundle/{chunk-3EKBP26W.js → chunk-NGVO2UTA.js} +16 -16
- package/dist/bundle/{chunk-25KK4NZN.js → chunk-NKVJV5GN.js} +1 -1
- package/dist/bundle/{chunk-EB2EH7AT.js → chunk-NN7Z5RK6.js} +7 -7
- package/dist/bundle/{chunk-HCY4SCTJ.js → chunk-OLKDUVWD.js} +12 -12
- package/dist/bundle/{chunk-POC7B6AV.js → chunk-PQHS4Z5G.js} +1 -1
- package/dist/bundle/{chunk-66OD3NCV.js → chunk-PVZK2COW.js} +4 -4
- package/dist/bundle/{chunk-X353GEAF.js → chunk-PYFVVNAD.js} +1 -1
- package/dist/bundle/{chunk-7YC47KTF.js → chunk-PZBQH5B7.js} +2 -2
- package/dist/bundle/{chunk-YNEQYCHF.js → chunk-PZE4D63W.js} +5 -5
- package/dist/bundle/{chunk-ZF5QK3OL.js → chunk-QRHPXZST.js} +2 -2
- package/dist/bundle/{chunk-3YS7VDRY.js → chunk-RDXB7HFB.js} +2 -2
- package/dist/bundle/{chunk-335XEBZP.js → chunk-RUNJPSJ3.js} +324 -280
- package/dist/bundle/{chunk-L3Y7MQVO.js → chunk-S3SA2XXD.js} +9 -9
- package/dist/bundle/{chunk-HCLRMCN5.js → chunk-S552I4P7.js} +1 -1
- package/dist/bundle/{chunk-BC46L5BQ.js → chunk-STEUWWU5.js} +22 -11
- package/dist/bundle/{chunk-OX3RM2OX.js → chunk-T2TW53JB.js} +6 -6
- package/dist/bundle/{chunk-CKXABXRV.js → chunk-T3QKHFGB.js} +12 -12
- package/dist/bundle/{chunk-QTNEKXDY.js → chunk-TF33UDFE.js} +1 -1
- package/dist/bundle/{chunk-3SOHZ6K4.js → chunk-TL7NUBVM.js} +1 -1
- package/dist/bundle/{chunk-OSBMLTHV.js → chunk-TVDBAZFO.js} +5 -5
- package/dist/bundle/{chunk-24MNY5XH.js → chunk-U3KTIE6B.js} +1 -1
- package/dist/bundle/{chunk-3HARYC4G.js → chunk-UFFAPBAP.js} +4 -4
- package/dist/bundle/{chunk-3PRKGRIZ.js → chunk-V2AF7BYP.js} +54 -54
- package/dist/bundle/{chunk-RH3NCNO2.js → chunk-V6RWAUX7.js} +3 -3
- package/dist/bundle/{chunk-4G453WRH.js → chunk-VIXMK7ZG.js} +6 -6
- package/dist/bundle/{chunk-BRXPI7XB.js → chunk-VNGG6O5T.js} +5 -5
- package/dist/bundle/{chunk-FF6P3JJ7.js → chunk-WUECAFAJ.js} +1 -1
- package/dist/bundle/{chunk-NHQXNPOU.js → chunk-WVXEVCMY.js} +7 -7
- package/dist/bundle/{chunk-Y3ZYJLIE.js → chunk-X6NSSCMF.js} +1 -1
- package/dist/bundle/{chunk-EXCKOFIO.js → chunk-Y2HZQMNK.js} +1 -1
- package/dist/bundle/{chunk-IEZWMY65.js → chunk-YQNZFXOW.js} +6 -6
- package/dist/bundle/{command-contract-22E5LBQL.js → command-contract-7BABQLZN.js} +15 -15
- package/dist/bundle/{command-server-entry-R2AAAHM5.js → command-server-entry-6UEGWYW7.js} +21 -21
- package/dist/bundle/{decode-7JSTO4HB.js → decode-BF2CNTOP.js} +2 -2
- package/dist/bundle/{echarts-OT7WULUA.js → echarts-ELZMS7DC.js} +2 -2
- package/dist/bundle/{embed-LN6XDQDI.js → embed-SXU7JVUG.js} +3 -3
- package/dist/bundle/{embedder-A4AXC4PU.js → embedder-ZVNBHGXC.js} +6 -6
- package/dist/bundle/{first-run-ZQD6GFBY.js → first-run-SLIPSHPE.js} +6 -6
- package/dist/bundle/first-screen-UPNPU4MF.js +37 -0
- package/dist/bundle/{instructions-RF5WGIMV.js → instructions-Q6QKH7MV.js} +1 -1
- package/dist/bundle/{meeting-combined-VI4TBXBN.js → meeting-combined-DLXVVC5J.js} +10 -10
- package/dist/bundle/{meeting-model-3S6VF6AM.js → meeting-model-XJ6OWIAP.js} +8 -8
- package/dist/bundle/{meeting-semantic-TFMLBQHQ.js → meeting-semantic-7TJE4HX6.js} +2 -2
- package/dist/bundle/{node-KWIPUN4D.js → node-YNLEE4BB.js} +2 -2
- package/dist/bundle/{node-sqlite-QZ7LM2UX.js → node-sqlite-24VK6J3W.js} +4 -4
- package/dist/bundle/{oauth-EHAFL6WQ.js → oauth-4TLSBITF.js} +4 -4
- package/dist/bundle/{open-SJYZOSWL.js → open-U6M2RLYK.js} +2 -2
- package/dist/bundle/{openai-GRFJ67FY.js → openai-UKD2XQ5J.js} +12 -12
- package/dist/bundle/{process-RJVFXNK3.js → process-UIE2CRFP.js} +1 -1
- package/dist/bundle/{program-RKN662WC.js → program-HXMBQWIM.js} +487 -401
- package/dist/bundle/{prompt-JO77APQ7.js → prompt-TSDXFP3E.js} +2 -2
- package/dist/bundle/{recognize-NQZ5XWLD.js → recognize-Y534SZIK.js} +1 -1
- package/dist/bundle/{remote-LZ4QPBQN.js → remote-PJNOYKXU.js} +6 -6
- package/dist/bundle/{rerank-5DAH5SPK.js → rerank-TE4HIS5A.js} +4 -4
- package/dist/bundle/{serve-QICSA7GZ.js → serve-ZOZWJKHB.js} +6 -6
- package/dist/bundle/{server-66KF772Q.js → server-3K4IC4OA.js} +45 -45
- package/dist/bundle/server-HPHPHKNF.js +79 -0
- package/dist/bundle/{sqlite-runtime-MEXAEM3S.js → sqlite-runtime-6R6CHLEM.js} +3 -3
- package/dist/bundle/{state-QSUH43VB.js → state-DFAH57DP.js} +3 -3
- package/dist/bundle/{store-5P47ROKG.js → store-6B5JF2LC.js} +16 -16
- package/dist/bundle/{store-Y65M7V4H.js → store-LPO5SHGK.js} +14 -14
- package/dist/bundle/store-maintenance-command-UBNM3ADW.js +66 -0
- package/dist/bundle/surface-WQ7UR2NJ.js +65 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +7 -4
- package/dist/hooks.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/attio-cli/SKILL.md +9 -2
- package/dist/bundle/agent-VR5OZH73.js +0 -37
- package/dist/bundle/first-screen-V7RM66AG.js +0 -37
- package/dist/bundle/server-TFW2APGU.js +0 -79
- package/dist/bundle/store-maintenance-command-DHBXPPOE.js +0 -66
- package/dist/bundle/surface-FNLKVJJJ.js +0 -65
|
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure,
|
|
5
5
|
isStoreDamage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QRHPXZST.js";
|
|
7
7
|
import {
|
|
8
8
|
formatMeetingReference,
|
|
9
9
|
parseMeetingReference
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N6VLRVCC.js";
|
|
11
11
|
import {
|
|
12
12
|
refuseOwnerStoreInTests
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FVBZHGFE.js";
|
|
14
14
|
import {
|
|
15
15
|
createRecordLog,
|
|
16
16
|
resolvePaths,
|
|
@@ -47,13 +47,13 @@ import {
|
|
|
47
47
|
__name
|
|
48
48
|
} from "./chunk-ZVVMGPBJ.js";
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
51
51
|
import { randomUUID } from "node:crypto";
|
|
52
52
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
53
53
|
import { userInfo } from "node:os";
|
|
54
54
|
import { join, sep } from "node:path";
|
|
55
55
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
57
57
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
58
58
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
59
59
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -66,7 +66,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
66
66
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
67
67
|
}), "snakeLogger");
|
|
68
68
|
|
|
69
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
69
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
70
70
|
var diagnostic = {
|
|
71
71
|
event: true,
|
|
72
72
|
operation: true,
|
|
@@ -140,7 +140,7 @@ var LOG_ATTRIBUTES = [
|
|
|
140
140
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
141
141
|
].sort();
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
144
144
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
145
145
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
146
146
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -507,7 +507,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
507
507
|
};
|
|
508
508
|
}, "metadataOf");
|
|
509
509
|
|
|
510
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
511
511
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
512
512
|
import { randomBytes } from "node:crypto";
|
|
513
513
|
var scopes = new AsyncLocalStorage();
|
|
@@ -560,7 +560,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
560
560
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
561
561
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
562
562
|
|
|
563
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
564
564
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
565
565
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
566
566
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -575,7 +575,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
575
575
|
}
|
|
576
576
|
__name(closeTask, "closeTask");
|
|
577
577
|
|
|
578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
579
579
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
580
580
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
581
581
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -604,7 +604,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
604
604
|
}, "priorityOf");
|
|
605
605
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
606
606
|
|
|
607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
607
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
608
608
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
609
609
|
async function find(id2) {
|
|
610
610
|
const task = await store.get(id2);
|
|
@@ -664,20 +664,20 @@ function median(values) {
|
|
|
664
664
|
}
|
|
665
665
|
__name(median, "median");
|
|
666
666
|
|
|
667
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
668
668
|
function matches(task, filter) {
|
|
669
669
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
670
670
|
}
|
|
671
671
|
__name(matches, "matches");
|
|
672
672
|
|
|
673
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
674
674
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
675
675
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
676
676
|
var ERASED_TEXT = "[source erased]";
|
|
677
677
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
678
678
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
679
679
|
|
|
680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
680
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
681
681
|
var text = string();
|
|
682
682
|
var id = pipe(string(), minLength(1));
|
|
683
683
|
var time = isoTime;
|
|
@@ -702,7 +702,7 @@ var author = strictObject({
|
|
|
702
702
|
name: nullable(text)
|
|
703
703
|
});
|
|
704
704
|
|
|
705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
706
706
|
var organization = strictObject({
|
|
707
707
|
id,
|
|
708
708
|
ref: reference,
|
|
@@ -732,7 +732,7 @@ var reminder = strictObject({
|
|
|
732
732
|
receipt: nullable(text)
|
|
733
733
|
});
|
|
734
734
|
|
|
735
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
735
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
736
736
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
737
737
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
738
738
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -853,7 +853,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
853
853
|
return { previous, cleared };
|
|
854
854
|
}, "recordDeepCheck");
|
|
855
855
|
|
|
856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
857
857
|
var CURRENCY_SCALES = {
|
|
858
858
|
AED: 2,
|
|
859
859
|
AMD: 2,
|
|
@@ -947,7 +947,7 @@ var quantityOf = /* @__PURE__ */ __name((text2) => {
|
|
|
947
947
|
}, "quantityOf");
|
|
948
948
|
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
949
949
|
|
|
950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
951
951
|
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
952
952
|
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
953
953
|
var MONEY_DIRECTIONS = ["in", "out"];
|
|
@@ -976,7 +976,7 @@ var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
|
976
976
|
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
977
977
|
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
978
978
|
|
|
979
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/business.js
|
|
980
980
|
var CATALOG_KINDS = ["product", "service"];
|
|
981
981
|
var BUSINESS_KINDS = ["invoice", "payment", "order", "contract", "subscription", "product", "wallet"];
|
|
982
982
|
var CONTRACT_KINDS = ["sale", "purchase", "service", "lease", "employment", "nda", "license", "other"];
|
|
@@ -1004,7 +1004,7 @@ var subscriptionLine = /* @__PURE__ */ __name((subscription) => `${subscription.
|
|
|
1004
1004
|
var walletLine = /* @__PURE__ */ __name((wallet) => `${wallet.name} \xB7 ${wallet.kind}, ${wallet.currency}${wallet.numberHint === null ? "" : `, \u2026${wallet.numberHint}`}` + notes(wallet.closed ? "closed" : null), "walletLine");
|
|
1005
1005
|
var transactionLine = /* @__PURE__ */ __name((transaction) => `${moneyLabel(transaction.amount, transaction.currency)} ${transaction.direction}${transaction.label === null ? "" : ` \xB7 ${transaction.label}`}, ${dayMonth(transaction.date)}` + notes(transaction.status === "pending" ? "pending" : null, pending(transaction.review)), "transactionLine");
|
|
1006
1006
|
|
|
1007
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
1008
1008
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
1009
1009
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
1010
1010
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -1012,7 +1012,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
1012
1012
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
1013
1013
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
1014
1014
|
|
|
1015
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
1016
1016
|
var SCHEME = "msg:";
|
|
1017
1017
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
1018
1018
|
var isLocator = /* @__PURE__ */ __name((reference2) => reference2.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -1033,7 +1033,7 @@ var parseLocator = /* @__PURE__ */ __name((reference2) => {
|
|
|
1033
1033
|
return { provider, account, chat, message };
|
|
1034
1034
|
}, "parseLocator");
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
1037
1037
|
var SIMPLE_REFERENCES = [
|
|
1038
1038
|
"note",
|
|
1039
1039
|
"document",
|
|
@@ -1196,7 +1196,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text2) => {
|
|
|
1196
1196
|
return match !== null && byPrefix.has(match[1]);
|
|
1197
1197
|
}, "looksLikeReference");
|
|
1198
1198
|
|
|
1199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
1200
1200
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events", "crm", "tracker"];
|
|
1201
1201
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
1202
1202
|
var PROVIDERS = [
|
|
@@ -1388,7 +1388,7 @@ var holdsKind = /* @__PURE__ */ __name((provider, kind2) => kindsIn(provider).in
|
|
|
1388
1388
|
var holdsKindOf = /* @__PURE__ */ __name((provider, kind2) => kindIn(provider) === void 0 ? kind2 === "messages" : holdsKind(provider, kind2), "holdsKindOf");
|
|
1389
1389
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
1390
1390
|
|
|
1391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1391
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/deals.js
|
|
1392
1392
|
var DEAL_KINDS = ["deal", "lead"];
|
|
1393
1393
|
var DEAL_STATUSES = ["open", "won", "lost"];
|
|
1394
1394
|
var STAGE_OUTCOMES = DEAL_STATUSES;
|
|
@@ -1398,7 +1398,7 @@ var dealLine = /* @__PURE__ */ __name((deal) => {
|
|
|
1398
1398
|
return `${deal.title} \xB7 ${deal.stage}${money}${deal.status === "open" ? "" : ` (${deal.status})`}`;
|
|
1399
1399
|
}, "dealLine");
|
|
1400
1400
|
|
|
1401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/orders.js
|
|
1402
1402
|
var ORDER_STATUSES = ["placed", "shipped", "delivered", "cancelled", "returned"];
|
|
1403
1403
|
var ORDER_PURPOSES = ["personal", "business", "client", "other"];
|
|
1404
1404
|
var orderLine = /* @__PURE__ */ __name((order) => {
|
|
@@ -1409,7 +1409,7 @@ var orderLine = /* @__PURE__ */ __name((order) => {
|
|
|
1409
1409
|
}, "orderLine");
|
|
1410
1410
|
var orderTitle = /* @__PURE__ */ __name((order) => `Order ${orderLine(order)}`, "orderTitle");
|
|
1411
1411
|
|
|
1412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/relations.js
|
|
1413
1413
|
var ORGANIZATION_ROLES = [
|
|
1414
1414
|
"employee",
|
|
1415
1415
|
"contractor",
|
|
@@ -1512,7 +1512,7 @@ var KEYED = "kind IN ('member-of', 'related-to', 'reports-to', 'customer-of', 'p
|
|
|
1512
1512
|
var notOverriddenSql = /* @__PURE__ */ __name((alias) => `NOT EXISTS (SELECT 1 FROM links override WHERE ${KEYED} AND override.kind = ${alias}.kind AND override.from_type = ${alias}.from_type AND override.from_id = ${alias}.from_id AND override.to_type = ${alias}.to_type AND override.to_id = ${alias}.to_id AND json_extract(override.metadata, '$.overrides') = ${alias}.id)`, "notOverriddenSql");
|
|
1513
1513
|
var usableLinkSql = /* @__PURE__ */ __name((alias, now) => `(${alias}.confirmed = 1 OR (${alias}.account_id IS NOT NULL AND ${alias}.deleted_at IS NULL))` + (now === void 0 ? "" : ` AND (${alias}.ends_at IS NULL OR ${alias}.ends_at > ${Math.trunc(now)})`), "usableLinkSql");
|
|
1514
1514
|
|
|
1515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1515
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/crm.js
|
|
1516
1516
|
var CRM_KINDS = ["organization", "person", "deal", "lead"];
|
|
1517
1517
|
var CRM_ACTIVITY_KINDS = ["call", "email", "meeting", "todo", "task", "comment", "other"];
|
|
1518
1518
|
var isCrmUserId = /* @__PURE__ */ __name((id2) => /^\d{1,20}$/.test(id2), "isCrmUserId");
|
|
@@ -1522,7 +1522,7 @@ var normalCrmUserId = /* @__PURE__ */ __name((id2) => {
|
|
|
1522
1522
|
}, "normalCrmUserId");
|
|
1523
1523
|
var isItemKind = /* @__PURE__ */ __name((kind2) => kind2 === "deal" || kind2 === "lead", "isItemKind");
|
|
1524
1524
|
|
|
1525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
1526
1526
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
1527
1527
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
1528
1528
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -1532,7 +1532,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
1532
1532
|
};
|
|
1533
1533
|
}, "sourceOf");
|
|
1534
1534
|
|
|
1535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1535
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
1536
1536
|
var LINK_KINDS = [
|
|
1537
1537
|
"links-to",
|
|
1538
1538
|
"blocked-by",
|
|
@@ -1556,7 +1556,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
|
1556
1556
|
var linkKind = /* @__PURE__ */ __name((kind2) => `'${kind2}'`, "linkKind");
|
|
1557
1557
|
var COUNTERPART_ROLE = "counterpart";
|
|
1558
1558
|
|
|
1559
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
1560
1560
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
1561
1561
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
1562
1562
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -1579,7 +1579,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
1579
1579
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
1580
1580
|
}, "sourceOf");
|
|
1581
1581
|
|
|
1582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1582
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
1583
1583
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
1584
1584
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
1585
1585
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1813,7 +1813,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind2) =
|
|
|
1813
1813
|
return { accounts: [...chosen.values()], skipped };
|
|
1814
1814
|
}, "fitting");
|
|
1815
1815
|
|
|
1816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1817
1817
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1818
1818
|
|
|
1819
1819
|
export {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.751.0_@wirecat+cli-base@0.132.0_commander@15.0.0_esbuild@0.28.2_typ_532b02f06c2b2e2f096ad6d107b7f8b7/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|