@wirecat/attio-cli 0.2.1 → 0.3.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/CHANGELOG.md +47 -0
- package/README.md +13 -9
- package/contracts/wirecat.json +268 -21
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-HM6ST5HY.js +37 -0
- package/dist/bundle/{all-profiles-LZDKPHN2.js → all-profiles-7GUR2SM3.js} +10 -10
- package/dist/bundle/{anthropic-BF72H77D.js → anthropic-4CN3TJYB.js} +5 -5
- package/dist/bundle/{app-server-H57FZJX5.js → app-server-HSQEPWRY.js} +61 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-WO77T4LG.js → bun-DTF5MNDQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BP7JDVO.js → bun-sqlite-NFVPKLZD.js} +6 -6
- package/dist/bundle/{chunk-IDU4ESRZ.js → chunk-2AVWKAHP.js} +29 -1
- package/dist/bundle/{chunk-X6R74TWX.js → chunk-2KP5LRCK.js} +4 -4
- package/dist/bundle/{chunk-RU5J7DWY.js → chunk-2PDJCM3U.js} +156 -14
- package/dist/bundle/{chunk-4SMGM2Q6.js → chunk-2SM6G7CP.js} +4 -4
- package/dist/bundle/{chunk-TF7ZGCOK.js → chunk-3HFUSESO.js} +3 -3
- package/dist/bundle/{chunk-BUGROVF3.js → chunk-3JZNNESS.js} +2 -2
- package/dist/bundle/{chunk-5K3FGXZH.js → chunk-3L3ZRFKH.js} +1 -1
- package/dist/bundle/{chunk-6NDJDDSQ.js → chunk-3PPTBPRU.js} +42 -38
- package/dist/bundle/{chunk-76RRELCU.js → chunk-4A5E32BA.js} +1747 -826
- package/dist/bundle/{chunk-CMO5ND3Y.js → chunk-4BHD26FI.js} +34 -34
- package/dist/bundle/{chunk-JA26HG7T.js → chunk-4GGTI6J2.js} +8 -8
- package/dist/bundle/{chunk-J5P5VSRG.js → chunk-4IASSY4K.js} +21 -8
- package/dist/bundle/{chunk-DSRXCLPO.js → chunk-55OZY4JK.js} +1 -1
- package/dist/bundle/{chunk-L5WS6CYZ.js → chunk-6GLKKI5B.js} +2 -2
- package/dist/bundle/{chunk-PMP37KLR.js → chunk-6GVBDIY7.js} +3 -3
- package/dist/bundle/{chunk-VDMIJ3JW.js → chunk-6MKREZYW.js} +3 -3
- package/dist/bundle/{chunk-7MXCUMHG.js → chunk-6UVYOUKX.js} +1 -1
- package/dist/bundle/{chunk-4STBJZR4.js → chunk-73D7FXGY.js} +177 -40
- package/dist/bundle/{chunk-3I2FGNWO.js → chunk-77PCNTJY.js} +1 -1
- package/dist/bundle/{chunk-7ZUOI3HY.js → chunk-AO6N3HLS.js} +16 -3
- package/dist/bundle/{chunk-IXCIQ7FZ.js → chunk-CEY7LGCR.js} +4 -4
- package/dist/bundle/{chunk-MNQACPXG.js → chunk-CV65DYDO.js} +31 -27
- package/dist/bundle/{chunk-OBXDRUO4.js → chunk-CWLNO3ZU.js} +1 -1
- package/dist/bundle/{chunk-CHZ26CW5.js → chunk-D3BQH24W.js} +77 -59
- package/dist/bundle/{chunk-ERW2WOJT.js → chunk-EBVOFSWE.js} +1 -1
- package/dist/bundle/{chunk-ESH2QGCA.js → chunk-ECPUCPPX.js} +24 -8
- package/dist/bundle/{chunk-6SK3YB2B.js → chunk-FJUBFNIH.js} +12 -12
- package/dist/bundle/{chunk-Q7BSTQ3T.js → chunk-GFKYZJN4.js} +1 -1
- package/dist/bundle/{chunk-ASCUOOLO.js → chunk-GJFFI6OA.js} +1 -1
- package/dist/bundle/{chunk-S7K2XFQB.js → chunk-GMRYIIGP.js} +6 -6
- package/dist/bundle/{chunk-G3JTLVVL.js → chunk-GS3LY5S5.js} +14 -7
- package/dist/bundle/{chunk-WARIIYSW.js → chunk-H55WJPRM.js} +2 -2
- package/dist/bundle/{chunk-H7QDPW3D.js → chunk-HS7TLG6U.js} +3 -4
- package/dist/bundle/{chunk-EEPE3SOW.js → chunk-HVLKBGYN.js} +5 -5
- package/dist/bundle/{chunk-XXLQNHKF.js → chunk-IFDR5RYE.js} +2 -2
- package/dist/bundle/{chunk-3YFDZSM3.js → chunk-IQSXBZA7.js} +1 -1
- package/dist/bundle/{chunk-GLHFJPYS.js → chunk-IWC3ECVF.js} +3 -3
- package/dist/bundle/{chunk-EQXT7KO4.js → chunk-J3KE3D3L.js} +6 -6
- package/dist/bundle/{chunk-JSTBW7F4.js → chunk-KP7U75NI.js} +6 -6
- package/dist/bundle/{chunk-O4A33Y54.js → chunk-KRCE3EBI.js} +2 -2
- package/dist/bundle/{chunk-ZDBTYBFR.js → chunk-LC4KJJZ2.js} +3 -3
- package/dist/bundle/{chunk-3NVOKVRY.js → chunk-LX6IMPKX.js} +2361 -845
- package/dist/bundle/{chunk-V6BTAILB.js → chunk-MCNZCQ6P.js} +61 -61
- package/dist/bundle/{chunk-DF2IIO32.js → chunk-N7EFLZNW.js} +202 -163
- package/dist/bundle/{chunk-G6FQMVKW.js → chunk-NE65S7F6.js} +3 -3
- package/dist/bundle/{chunk-HG7FT3H3.js → chunk-NK32ZZRV.js} +7 -7
- package/dist/bundle/{chunk-VW5F6FK3.js → chunk-NTW3Z4ZC.js} +4 -4
- package/dist/bundle/{chunk-XXOTX4M3.js → chunk-OOS57MMX.js} +7 -7
- package/dist/bundle/{chunk-2E6JGBM5.js → chunk-PBUBZNIA.js} +25 -174
- package/dist/bundle/{chunk-AFAULIL5.js → chunk-PCYDTU6N.js} +3 -2
- package/dist/bundle/{chunk-WK7GLHHL.js → chunk-PTBGWRI4.js} +5 -5
- package/dist/bundle/{chunk-X5S5KUSU.js → chunk-PX5XI2UR.js} +19 -19
- package/dist/bundle/{chunk-KHDXRFJZ.js → chunk-ROJF7524.js} +8 -8
- package/dist/bundle/{chunk-AMUONYQR.js → chunk-RPL3VL7F.js} +2 -2
- package/dist/bundle/{chunk-MOSH2KPD.js → chunk-SDZJIDMF.js} +10 -10
- package/dist/bundle/{chunk-OFR3YYT6.js → chunk-SEZLN6OX.js} +1 -1
- package/dist/bundle/{chunk-MT2ZUZRA.js → chunk-SIYP5IZG.js} +43 -64
- package/dist/bundle/{chunk-I3WS6V5H.js → chunk-SNUCQQQU.js} +8 -8
- package/dist/bundle/{chunk-34FJ26K2.js → chunk-SRU4EQYO.js} +2 -2
- package/dist/bundle/{chunk-LWJ4ZGUM.js → chunk-SVUQKDBZ.js} +13 -13
- package/dist/bundle/{chunk-GW4G5KLS.js → chunk-SZ76WGXS.js} +8 -8
- package/dist/bundle/{chunk-DQ6P3R4B.js → chunk-UN63OIS5.js} +3 -3
- package/dist/bundle/{chunk-MRREDVPY.js → chunk-UNI5OO3J.js} +20 -14
- package/dist/bundle/{chunk-EQGXEKSV.js → chunk-UXT4532H.js} +7 -7
- package/dist/bundle/{chunk-ZGADZ4CH.js → chunk-V6RIJ22V.js} +15 -15
- package/dist/bundle/{chunk-6ALPRBNV.js → chunk-WAOJEEGU.js} +3 -3
- package/dist/bundle/{chunk-QLHDUYGE.js → chunk-WE6UGOBO.js} +1 -1
- package/dist/bundle/{chunk-Q3JCUUOR.js → chunk-WYPHP2AM.js} +3 -3
- package/dist/bundle/{chunk-W6F2CQZ6.js → chunk-Y6QUAEEJ.js} +17 -17
- package/dist/bundle/{chunk-GBZ6JUXU.js → chunk-YERPSSUC.js} +2 -2
- package/dist/bundle/{chunk-MC2RQ2OB.js → chunk-ZAZUNEZB.js} +1 -1
- package/dist/bundle/{chunk-SQHDE3TC.js → chunk-ZSO3T2W4.js} +4 -4
- package/dist/bundle/command-contract-XZKDRLEC.js +37 -0
- package/dist/bundle/{command-server-entry-MNVPYQZ3.js → command-server-entry-VTYSKZSD.js} +25 -25
- package/dist/bundle/{decode-MQNKNXLK.js → decode-EJCGQVLX.js} +5 -5
- package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-YGAG263C.js} +8 -8
- package/dist/bundle/{echarts-6ZSUNO4L.js → echarts-LHBWIDKI.js} +2 -2
- package/dist/bundle/{embed-PHCCJJ5Z.js → embed-QKVPSZLS.js} +6 -6
- package/dist/bundle/{embedder-WLZZQTKZ.js → embedder-NYO6EOFU.js} +9 -9
- package/dist/bundle/{failure-MR2XVHFP.js → failure-SE7VJEXI.js} +2 -2
- package/dist/bundle/{first-run-64LREHSV.js → first-run-P5QA7RNU.js} +12 -12
- package/dist/bundle/first-screen-EUIV6PVE.js +37 -0
- package/dist/bundle/{instructions-22GCKNR5.js → instructions-T6LGIEPV.js} +1 -1
- package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-PVQZS6IH.js} +2 -2
- package/dist/bundle/meeting-combined-GOBZBEX2.js +24 -0
- package/dist/bundle/{meeting-model-JWDTCGLZ.js → meeting-model-7UBHXIVW.js} +11 -11
- package/dist/bundle/{meeting-semantic-375GYPZQ.js → meeting-semantic-RXCWAIZZ.js} +6 -6
- package/dist/bundle/{node-ITDTNRRZ.js → node-UBG6VKKA.js} +2 -2
- package/dist/bundle/{node-sqlite-IRAGRMEZ.js → node-sqlite-PYNAIHR6.js} +7 -7
- package/dist/bundle/{oauth-CACOQJEL.js → oauth-BLOW6XVT.js} +7 -7
- package/dist/bundle/{open-HU4KHKDR.js → open-VWILPEZ2.js} +5 -5
- package/dist/bundle/{openai-JQUPAVKX.js → openai-N37NPTEE.js} +15 -15
- package/dist/bundle/{process-QS5OHEUK.js → process-DMYM7PNQ.js} +1 -1
- package/dist/bundle/{program-5OTAVU5S.js → program-5QZLUWS4.js} +4240 -4056
- package/dist/bundle/{prompt-VA5MKXJU.js → prompt-EJHIAH4K.js} +5 -5
- package/dist/bundle/{recognize-JGA5IVKC.js → recognize-67LER7ZN.js} +4 -4
- package/dist/bundle/{remote-NPY2KZQ4.js → remote-BONPKWRO.js} +9 -9
- package/dist/bundle/{rerank-4H2QR4XU.js → rerank-FK2AFC3Y.js} +7 -7
- package/dist/bundle/{schemas-THAI3G5S.js → schemas-4E76I6ME.js} +1 -1
- package/dist/bundle/{serve-UH46SZQG.js → serve-ZIXWKUE3.js} +9 -9
- package/dist/bundle/{server-6H7JS6SU.js → server-4RX3LBCA.js} +53 -53
- package/dist/bundle/server-RL6NIURH.js +79 -0
- package/dist/bundle/{sqlite-runtime-EJWEUTBR.js → sqlite-runtime-WDXPYP7C.js} +6 -6
- package/dist/bundle/{state-34B6AUQZ.js → state-NE7WPOBK.js} +6 -6
- package/dist/bundle/{store-3R4ILTCJ.js → store-2LX2ZQY5.js} +22 -18
- package/dist/bundle/{store-XSE35P3U.js → store-PUAKYH6Z.js} +24 -20
- package/dist/bundle/store-maintenance-command-CSYN4LXT.js +66 -0
- package/dist/bundle/surface-HJIDG2KX.js +65 -0
- package/dist/commands/crm.d.ts +3 -0
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +35 -8
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/schedule.d.ts +3 -0
- package/dist/commands/schedule.d.ts.map +1 -0
- package/dist/commands/schedule.js +9 -0
- package/dist/commands/schedule.js.map +1 -0
- package/dist/commands/session.d.ts +2 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +5 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +0 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -5
- package/dist/config.js.map +1 -1
- package/dist/generated/wirecat-config.d.ts.map +1 -1
- package/dist/generated/wirecat-config.js +175 -0
- package/dist/generated/wirecat-config.js.map +1 -1
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +10 -2
- package/dist/hooks.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +4 -2
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +11 -1
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -4
- package/skills/attio-cli/SKILL.md +18 -3
- package/dist/bundle/agent-DYTWDBTT.js +0 -37
- package/dist/bundle/command-contract-7M6EPH3D.js +0 -37
- package/dist/bundle/first-screen-YSCAZIYJ.js +0 -37
- package/dist/bundle/meeting-combined-YX3T5WJD.js +0 -24
- package/dist/bundle/server-SR52KBL3.js +0 -79
- package/dist/bundle/store-maintenance-command-ABJARLI4.js +0 -66
- package/dist/bundle/surface-NOTIEJB5.js +0 -65
|
@@ -2,34 +2,34 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
commandAvailability
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6MKREZYW.js";
|
|
6
6
|
import {
|
|
7
7
|
lentConnection
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HVLKBGYN.js";
|
|
9
9
|
import {
|
|
10
10
|
QUERY_ARGUMENT
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-UNI5OO3J.js";
|
|
12
12
|
import {
|
|
13
13
|
authorityAllowed,
|
|
14
14
|
botApiAllowed,
|
|
15
15
|
changesMessenger,
|
|
16
16
|
flatten
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-N7EFLZNW.js";
|
|
18
18
|
import {
|
|
19
19
|
currentCaller
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OOS57MMX.js";
|
|
21
21
|
import {
|
|
22
22
|
enclosingTraceId,
|
|
23
23
|
inRun,
|
|
24
24
|
newRunId,
|
|
25
25
|
traceOf
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3PPTBPRU.js";
|
|
27
27
|
import {
|
|
28
28
|
queryDescription
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MCNZCQ6P.js";
|
|
30
30
|
import {
|
|
31
31
|
captureStreams
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-PX5XI2UR.js";
|
|
33
33
|
import {
|
|
34
34
|
COMPACT_FLAG,
|
|
35
35
|
SNAKE_CASE,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
text,
|
|
40
40
|
word,
|
|
41
41
|
writes
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4IASSY4K.js";
|
|
43
43
|
import {
|
|
44
44
|
array,
|
|
45
45
|
boolean,
|
|
@@ -63,15 +63,15 @@ import {
|
|
|
63
63
|
} from "./chunk-S4UUN6LD.js";
|
|
64
64
|
import {
|
|
65
65
|
CliError
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-3JZNNESS.js";
|
|
67
67
|
import {
|
|
68
68
|
__name
|
|
69
69
|
} from "./chunk-ZVVMGPBJ.js";
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
72
72
|
import { Readable } from "node:stream";
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
75
75
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
76
76
|
var lintRuleSchema = strictObject({
|
|
77
77
|
id: word,
|
|
@@ -217,7 +217,7 @@ var overrideSchema = strictObject({
|
|
|
217
217
|
});
|
|
218
218
|
var overridesSchema = array(overrideSchema);
|
|
219
219
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
220
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
221
221
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
222
222
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
223
223
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -328,7 +328,13 @@ var FAMILY_SINCE_0_98 = [
|
|
|
328
328
|
review(ENTITY, "entity lead", "b24's CRM lead and memo's differ (measured 2026-11-13)"),
|
|
329
329
|
review(ENTITY, "entity product", "b24's CRM product and memo's differ (measured 2026-11-13)"),
|
|
330
330
|
review(REASON, "reason ai.address-refused=model.address-refused", "one failure under two names; cli-core 0.650.0 keeps one"),
|
|
331
|
-
review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)")
|
|
331
|
+
review(REASON, "reason profile.unknown: code", "b24 gives it not_found, drive validation_error (measured 2026-11-13)"),
|
|
332
|
+
{
|
|
333
|
+
rule: REASON,
|
|
334
|
+
target: "reason account-remove.unknown-profile=account-rename.unknown-profile",
|
|
335
|
+
reason: "one failure under two names in cli-core 0.715\u20130.716; 0.717.0 gives account rename profile.unknown",
|
|
336
|
+
review_after: "2026-12-10"
|
|
337
|
+
}
|
|
332
338
|
];
|
|
333
339
|
var PARITY_GROUPS = defineParityGroups([
|
|
334
340
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: MESSENGERS_SINCE_0_98 },
|
|
@@ -357,18 +363,37 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
357
363
|
},
|
|
358
364
|
// bitrix24-cli's search is cli-core's CRM `search all`, and beeline-cli's and asterisk-cli's meetings take call
|
|
359
365
|
// recordings, not zoom-cli's: they are compared on the root commands every CLI shares, the way gcal and mail are.
|
|
360
|
-
// amo-cli and
|
|
366
|
+
// amo-cli, hubspot-cli and attio-cli share them too, and their CRM commands are compared with b24 in `crm` below.
|
|
367
|
+
// wordpress-cli shares only these roots: it is the first content CLI, so its posts commands have no group yet.
|
|
368
|
+
// linear-cli shares only these roots too: it is the first tracker CLI, so its issues commands have no group yet.
|
|
361
369
|
// notion-cli joins here until its documents commands ship; then it moves next to drive. ydisk joins here too: in "all"
|
|
362
370
|
// its search and notes differ from the messengers' and memo's as drive's do, and a documents group of drive, notion
|
|
363
371
|
// and ydisk differs in 39 paths (session, folders browse, summaries; measured on the published CLIs 2026-11-17).
|
|
364
372
|
{
|
|
365
373
|
name: "shared-roots",
|
|
366
|
-
members: [
|
|
374
|
+
members: [
|
|
375
|
+
"tg",
|
|
376
|
+
"max",
|
|
377
|
+
"memo",
|
|
378
|
+
"drive",
|
|
379
|
+
"zm",
|
|
380
|
+
"wa",
|
|
381
|
+
"b24",
|
|
382
|
+
"beeline",
|
|
383
|
+
"pbx",
|
|
384
|
+
"notion",
|
|
385
|
+
"amo",
|
|
386
|
+
"hubspot",
|
|
387
|
+
"attio",
|
|
388
|
+
"ydisk",
|
|
389
|
+
"wordpress",
|
|
390
|
+
"linear"
|
|
391
|
+
],
|
|
367
392
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade"],
|
|
368
393
|
differences: [...MEMO_HAS_NO_PROFILES, ...MEMO_MCP_SUMMARIES, MEMO_DOCTOR_DEEP]
|
|
369
394
|
},
|
|
370
|
-
// The CRM CLIs on cli-core's shared CRM commands.
|
|
371
|
-
//
|
|
395
|
+
// The CRM CLIs on cli-core's shared CRM commands. hubspot-cli is not in the family packages, so `audit --family`
|
|
396
|
+
// skips it, as beeline. Only b24 and hubspot have `leads` (amoCRM
|
|
372
397
|
// has no lead apart from a deal), only b24 has `products` (amo leaves them for later) and `deals delete` (amoCRM's
|
|
373
398
|
// API v4 cannot delete a lead, https://www.amocrm.ru/developers/content/crm_platform/leads-api), and hubspot writes
|
|
374
399
|
// no deals yet; a list of roots does not compare presence, so these need no difference. `people`, `organizations`,
|
|
@@ -376,7 +401,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
376
401
|
// commands: measured against b24 0.23.0 on 2026-11-16 they differ in options, outputs and summaries.
|
|
377
402
|
{
|
|
378
403
|
name: "crm",
|
|
379
|
-
members: ["b24", "amo", "hubspot"],
|
|
404
|
+
members: ["b24", "amo", "hubspot", "attio"],
|
|
380
405
|
covers: ["deals", "sync", "search", "store", "schedule", "account"],
|
|
381
406
|
differences: [
|
|
382
407
|
{
|
|
@@ -403,7 +428,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
403
428
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
404
429
|
]);
|
|
405
430
|
|
|
406
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
431
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
407
432
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
408
433
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
409
434
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -419,7 +444,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
419
444
|
}
|
|
420
445
|
]);
|
|
421
446
|
|
|
422
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
447
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
423
448
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
424
449
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
425
450
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -441,7 +466,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
441
466
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
442
467
|
]);
|
|
443
468
|
|
|
444
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
469
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-account.js
|
|
445
470
|
var ACCOUNT_FLAGS = [
|
|
446
471
|
{
|
|
447
472
|
name: "--client-id",
|
|
@@ -478,7 +503,7 @@ var ACCOUNT_FLAGS = [
|
|
|
478
503
|
{ name: "--hide-phone", role: "output", type: "switch", meaning: "leave the phone number out of the answer" }
|
|
479
504
|
];
|
|
480
505
|
|
|
481
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
506
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
482
507
|
var CALENDAR_FLAGS = [
|
|
483
508
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
484
509
|
{
|
|
@@ -566,7 +591,45 @@ var CALENDAR_FLAGS = [
|
|
|
566
591
|
}
|
|
567
592
|
];
|
|
568
593
|
|
|
569
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
594
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-content.js
|
|
595
|
+
var CONTENT_FLAGS = [
|
|
596
|
+
{ name: "--slug", value: "<slug>", role: "value", type: "string", meaning: "the last part of its web address" },
|
|
597
|
+
{
|
|
598
|
+
name: "--tags",
|
|
599
|
+
value: "<ids>",
|
|
600
|
+
role: "value",
|
|
601
|
+
type: "list",
|
|
602
|
+
meaning: "its tags and categories, by comma-separated ids; replaces the ones it has"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
name: "--replace-body",
|
|
606
|
+
role: "mode",
|
|
607
|
+
type: "switch",
|
|
608
|
+
meaning: "write the new text over a body the tool cannot fully read back, losing what it could not show"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
name: "--from-template",
|
|
612
|
+
value: "<template>",
|
|
613
|
+
role: "value",
|
|
614
|
+
type: "string",
|
|
615
|
+
meaning: "start the new page from one of the source's page templates, by name or id; not a message --template"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: "--cover",
|
|
619
|
+
value: "<link>",
|
|
620
|
+
role: "value",
|
|
621
|
+
type: "string",
|
|
622
|
+
meaning: "the page's cover image, by an https link, or none to take it away; a local image file is --photo"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
name: "--allow-deleting-content",
|
|
626
|
+
role: "mode",
|
|
627
|
+
type: "switch",
|
|
628
|
+
meaning: "let an update delete the child pages and databases its new text leaves out; the source keeps them in its trash, unlike --allow-delete"
|
|
629
|
+
}
|
|
630
|
+
];
|
|
631
|
+
|
|
632
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-crm.js
|
|
570
633
|
var CRM_FLAGS = [
|
|
571
634
|
{
|
|
572
635
|
name: "--email",
|
|
@@ -730,7 +793,7 @@ var CRM_FLAGS = [
|
|
|
730
793
|
}
|
|
731
794
|
];
|
|
732
795
|
|
|
733
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
796
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
734
797
|
var HOW_FLAGS = [
|
|
735
798
|
{
|
|
736
799
|
name: "--limit",
|
|
@@ -1110,13 +1173,7 @@ var HOW_FLAGS = [
|
|
|
1110
1173
|
type: "string",
|
|
1111
1174
|
meaning: "a person whose reply counts as an answer; repeat it for more"
|
|
1112
1175
|
},
|
|
1113
|
-
{
|
|
1114
|
-
name: "--browser",
|
|
1115
|
-
value: "<program>",
|
|
1116
|
-
role: "mode",
|
|
1117
|
-
type: "string",
|
|
1118
|
-
meaning: "the browser program to open for sign-in"
|
|
1119
|
-
},
|
|
1176
|
+
{ name: "--browser", value: "<program>", role: "mode", type: "string", meaning: "the browser to open for sign-in" },
|
|
1120
1177
|
{
|
|
1121
1178
|
name: "--credential-storage",
|
|
1122
1179
|
value: "<storage>",
|
|
@@ -1125,6 +1182,8 @@ var HOW_FLAGS = [
|
|
|
1125
1182
|
meaning: "where a sign-in is kept: keyring, which falls back to a private file by itself, or file (WC-SECR-4)"
|
|
1126
1183
|
},
|
|
1127
1184
|
{ name: "--checkpoint", value: "<file>", role: "mode", type: "path", meaning: "keep resume progress in this file" },
|
|
1185
|
+
{ name: "--site", value: "<address>", role: "mode", type: "string", meaning: "the owner's site a sign-in is for" },
|
|
1186
|
+
{ name: "--login", value: "<name>", role: "mode", type: "string", meaning: "the user name a password is for" },
|
|
1128
1187
|
{
|
|
1129
1188
|
name: "--expected-event-id",
|
|
1130
1189
|
value: "<id>",
|
|
@@ -1727,7 +1786,7 @@ var HOW_FLAGS = [
|
|
|
1727
1786
|
}
|
|
1728
1787
|
];
|
|
1729
1788
|
|
|
1730
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1789
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-knowledge.js
|
|
1731
1790
|
var KNOWLEDGE_FLAGS = [
|
|
1732
1791
|
{
|
|
1733
1792
|
name: "--accept-terms",
|
|
@@ -1783,10 +1842,24 @@ var KNOWLEDGE_FLAGS = [
|
|
|
1783
1842
|
role: "target",
|
|
1784
1843
|
type: "string",
|
|
1785
1844
|
meaning: "every stored thing a search with this query finds, in its query language; the command acts on each"
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
name: "--since",
|
|
1848
|
+
value: "<time>",
|
|
1849
|
+
role: "target",
|
|
1850
|
+
type: "time",
|
|
1851
|
+
meaning: "from this time on: a time, or a duration ago such as 1d"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
name: "--event",
|
|
1855
|
+
value: "<events>",
|
|
1856
|
+
role: "target",
|
|
1857
|
+
type: "list",
|
|
1858
|
+
meaning: "only these kinds of event, comma separated; the command lists them"
|
|
1786
1859
|
}
|
|
1787
1860
|
];
|
|
1788
1861
|
|
|
1789
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1862
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1790
1863
|
var MAIL_FLAGS = [
|
|
1791
1864
|
{
|
|
1792
1865
|
name: "--cc",
|
|
@@ -1816,7 +1889,38 @@ var MAIL_FLAGS = [
|
|
|
1816
1889
|
}
|
|
1817
1890
|
];
|
|
1818
1891
|
|
|
1819
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1892
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mirror.js
|
|
1893
|
+
var MIRROR_FLAGS = [
|
|
1894
|
+
{
|
|
1895
|
+
name: "--keep",
|
|
1896
|
+
value: "<side>",
|
|
1897
|
+
role: "mode",
|
|
1898
|
+
type: "choice",
|
|
1899
|
+
meaning: "settle a conflict with one side: local, the remote by its own name (disk, drive), or both, the other kept as a conflict copy"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
name: "--allow-deletions",
|
|
1903
|
+
value: "<count>",
|
|
1904
|
+
role: "mode",
|
|
1905
|
+
type: "count",
|
|
1906
|
+
meaning: "let this run delete up to this many files when the mirror's guard stops it; owner only"
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
name: "--allow-replacements",
|
|
1910
|
+
value: "<count>",
|
|
1911
|
+
role: "mode",
|
|
1912
|
+
type: "count",
|
|
1913
|
+
meaning: "let this run overwrite up to this many existing files when the mirror's guard stops it; owner only"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
name: "--repin",
|
|
1917
|
+
role: "mode",
|
|
1918
|
+
type: "switch",
|
|
1919
|
+
meaning: "accept that a replaced local or remote folder is the mirror's folder now, and sync it; owner only"
|
|
1920
|
+
}
|
|
1921
|
+
];
|
|
1922
|
+
|
|
1923
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-privacy.js
|
|
1820
1924
|
var PRIVACY_FLAGS = [
|
|
1821
1925
|
{
|
|
1822
1926
|
name: "--about-text",
|
|
@@ -1877,7 +1981,7 @@ var PRIVACY_FLAGS = [
|
|
|
1877
1981
|
{ name: "--read-receipts", value: "<on|off>", role: "value", type: "choice", meaning: "send read receipts" }
|
|
1878
1982
|
];
|
|
1879
1983
|
|
|
1880
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1984
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-schedule.js
|
|
1881
1985
|
var SCHEDULE_FLAGS = [
|
|
1882
1986
|
{
|
|
1883
1987
|
name: "--locale",
|
|
@@ -1910,7 +2014,18 @@ var SCHEDULE_FLAGS = [
|
|
|
1910
2014
|
}
|
|
1911
2015
|
];
|
|
1912
2016
|
|
|
1913
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2017
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-search.js
|
|
2018
|
+
var SEARCH_FLAGS = [
|
|
2019
|
+
{
|
|
2020
|
+
name: "--like",
|
|
2021
|
+
value: "<text>",
|
|
2022
|
+
role: "query",
|
|
2023
|
+
type: "string",
|
|
2024
|
+
meaning: "a made-up example of the text sought, such as a reply that would answer the question, searched by meaning beside the query"
|
|
2025
|
+
}
|
|
2026
|
+
];
|
|
2027
|
+
|
|
2028
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1914
2029
|
var WHAT_FLAGS = [
|
|
1915
2030
|
{
|
|
1916
2031
|
name: "--analysis-provider",
|
|
@@ -2907,7 +3022,7 @@ var WHAT_FLAGS = [
|
|
|
2907
3022
|
}
|
|
2908
3023
|
];
|
|
2909
3024
|
|
|
2910
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3025
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2911
3026
|
var FLAG_TYPES = [
|
|
2912
3027
|
"switch",
|
|
2913
3028
|
"count",
|
|
@@ -3065,6 +3180,7 @@ var verbs = [
|
|
|
3065
3180
|
"look at a source before taking anything from it: a chat link without joining, a mailbox without importing"
|
|
3066
3181
|
],
|
|
3067
3182
|
["send", "send a message"],
|
|
3183
|
+
["reply", "answer in a comment thread at the source, under the comment that started it"],
|
|
3068
3184
|
["call", "call one provider API method by its own name, generated from the provider's method list"],
|
|
3069
3185
|
["edit", "change a sent message"],
|
|
3070
3186
|
["forward", "send an existing message on to another chat"],
|
|
@@ -3137,6 +3253,8 @@ var collections = [
|
|
|
3137
3253
|
["messages", "posts in a messenger chat, or emails"],
|
|
3138
3254
|
["drafts", "e-mails saved in a mailbox's Drafts folder, written and not sent"],
|
|
3139
3255
|
["polls", "polls in a chat"],
|
|
3256
|
+
["posts", "posts and pages on a site or blog the owner publishes"],
|
|
3257
|
+
["channels", "the sites and social accounts the owner publishes posts on"],
|
|
3140
3258
|
["reactions", "reactions to a message"],
|
|
3141
3259
|
["recipients", "who a message goes to"],
|
|
3142
3260
|
["replies", "the automatic replies of a profile"],
|
|
@@ -3199,7 +3317,17 @@ var collections = [
|
|
|
3199
3317
|
["relationships", "confirmed or suggested links between people, organizations and projects"],
|
|
3200
3318
|
["roles", "the parts a person plays in a relationship, built in or the owner's own"],
|
|
3201
3319
|
["sheets", "remote spreadsheets and their cell ranges, read or changed through a provider"],
|
|
3320
|
+
[
|
|
3321
|
+
"databases",
|
|
3322
|
+
"a source's databases, such as Notion's, each a set of rows with typed properties; the local store's are tables"
|
|
3323
|
+
],
|
|
3324
|
+
["rows", "the records of a database at the source, each with typed values; an order's or an invoice's are lines"],
|
|
3202
3325
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
3326
|
+
["mirrors", "saved pairings of a local folder and a folder in the source, which sync keeps the same both ways"],
|
|
3327
|
+
[
|
|
3328
|
+
"conflicts",
|
|
3329
|
+
"files a mirror's sync found changed on both sides and could not merge, each waiting for a side or a final file"
|
|
3330
|
+
],
|
|
3203
3331
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
3204
3332
|
["meetings", "stored meetings, from Zoom or another provider"],
|
|
3205
3333
|
["calls", "phone calls a phone system recorded, stored as meetings with their transcripts"],
|
|
@@ -3255,6 +3383,10 @@ var singulars = [
|
|
|
3255
3383
|
["privacy", "who may find, see, call or add the account"],
|
|
3256
3384
|
["metadata", "a profile's cached source attributes"],
|
|
3257
3385
|
["auth", "the credentials a bot profile uses: its token and the secrets beside it"],
|
|
3386
|
+
[
|
|
3387
|
+
"scheduled",
|
|
3388
|
+
"a chat's messages the messenger will send later; their ids are their own, never the ids of sent messages"
|
|
3389
|
+
],
|
|
3258
3390
|
[
|
|
3259
3391
|
"schedule",
|
|
3260
3392
|
"a profile's timers the owner saved, each running a command of this tool or an agent; the tool's own background work is jobs"
|
|
@@ -3262,8 +3394,10 @@ var singulars = [
|
|
|
3262
3394
|
];
|
|
3263
3395
|
var views = [
|
|
3264
3396
|
["tree", "the parent and child hierarchy of stored sources"],
|
|
3397
|
+
["stats", "a thing's own numbers, such as a post's views, as read at each sync"],
|
|
3265
3398
|
["logs", "the log of a running process"],
|
|
3266
3399
|
["events", "what happened in a thing over time"],
|
|
3400
|
+
["changes", "what a sync changed in the local copy since a time: added, changed, deleted or no longer visible"],
|
|
3267
3401
|
["scheduled", "what is scheduled to happen"],
|
|
3268
3402
|
["context", "what surrounds one thing"],
|
|
3269
3403
|
["path", "where a thing is on this machine"],
|
|
@@ -3334,11 +3468,14 @@ var VOCABULARY = defineVocabulary({
|
|
|
3334
3468
|
...MAIL_FLAGS,
|
|
3335
3469
|
...KNOWLEDGE_FLAGS,
|
|
3336
3470
|
...CRM_FLAGS,
|
|
3337
|
-
...SCHEDULE_FLAGS
|
|
3471
|
+
...SCHEDULE_FLAGS,
|
|
3472
|
+
...CONTENT_FLAGS,
|
|
3473
|
+
...SEARCH_FLAGS,
|
|
3474
|
+
...MIRROR_FLAGS
|
|
3338
3475
|
]
|
|
3339
3476
|
});
|
|
3340
3477
|
|
|
3341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
3342
3479
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
3343
3480
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
3344
3481
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/installer.js
|
|
8
8
|
var installerOf = /* @__PURE__ */ __name((scriptPath) => {
|
|
9
9
|
const path = scriptPath.replaceAll("\\", "/");
|
|
10
10
|
if (path.includes("/_npx/"))
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CWLNO3ZU.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PX5XI2UR.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -53,6 +53,17 @@ var releaseLock = /* @__PURE__ */ __name((path, pid = process.pid) => {
|
|
|
53
53
|
if (readLock(path)?.pid === pid)
|
|
54
54
|
rmSync(path, { force: true });
|
|
55
55
|
}, "releaseLock");
|
|
56
|
+
var currentPath = /* @__PURE__ */ __name((lock) => lock.replace(/\.lock$/, ".current"), "currentPath");
|
|
57
|
+
var markCurrent = /* @__PURE__ */ __name((lock, at = /* @__PURE__ */ new Date()) => writeSecurely(currentPath(lock), `${JSON.stringify({ at: at.toISOString() })}
|
|
58
|
+
`, 384), "markCurrent");
|
|
59
|
+
var readCurrent = /* @__PURE__ */ __name((lock) => {
|
|
60
|
+
try {
|
|
61
|
+
const { at } = JSON.parse(readFileSync(currentPath(lock), "utf8"));
|
|
62
|
+
return typeof at === "string" ? at : void 0;
|
|
63
|
+
} catch {
|
|
64
|
+
return void 0;
|
|
65
|
+
}
|
|
66
|
+
}, "readCurrent");
|
|
56
67
|
var servingProfiles = /* @__PURE__ */ __name((app, env) => {
|
|
57
68
|
const dir = dirname(lockPath(app, "default", env));
|
|
58
69
|
if (!existsSync(dir))
|
|
@@ -69,5 +80,7 @@ export {
|
|
|
69
80
|
holdLock,
|
|
70
81
|
takeLock,
|
|
71
82
|
releaseLock,
|
|
83
|
+
markCurrent,
|
|
84
|
+
readCurrent,
|
|
72
85
|
servingProfiles
|
|
73
86
|
};
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AO6N3HLS.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.726.0_@wirecat+cli-base@0.129.0_commander@15.0.0_esbuild@0.28.2_typ_3f4b9568bff5aeba8fd797c766b422a4/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|