@wirecat/cli-memo 0.131.54 → 0.131.56
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/dist/author.d.ts +2 -0
- package/dist/author.d.ts.map +1 -1
- package/dist/author.js +3 -1
- package/dist/author.js.map +1 -1
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-PJR2VHDP.js → all-profiles-XWRUFNP2.js} +7 -7
- package/dist/bundle/{anthropic-ZUDIWREK.js → anthropic-266QJJGV.js} +5 -5
- package/dist/bundle/{app-server-EYNQ4L2V.js → app-server-CS3FQXPR.js} +38 -38
- package/dist/bundle/auto-XHUADK6H.js +86 -0
- package/dist/bundle/{bun-W2ZP6I6Z.js → bun-22MM6T54.js} +2 -2
- package/dist/bundle/{bun-sqlite-T2CTJ6AR.js → bun-sqlite-V73FFF2C.js} +4 -4
- package/dist/bundle/{chunk-K236JZLF.js → chunk-2BVVXH5V.js} +6 -6
- package/dist/bundle/{chunk-MGDBKE7E.js → chunk-2CF2R7SA.js} +7 -7
- package/dist/bundle/{chunk-VQTU4ILC.js → chunk-2LPPNYOZ.js} +1 -1
- package/dist/bundle/{chunk-T5WGWLY2.js → chunk-2Q3O33AD.js} +11 -11
- package/dist/bundle/{chunk-6NJ5OI2S.js → chunk-3BWYMNWP.js} +1 -1
- package/dist/bundle/{chunk-2NVP4FZH.js → chunk-3N7LEJRT.js} +2 -2
- package/dist/bundle/{chunk-4335SGVD.js → chunk-4XKHXETB.js} +7007 -2683
- package/dist/bundle/{chunk-7ZO2LAFF.js → chunk-5FYDQEM7.js} +5 -5
- package/dist/bundle/{chunk-KK2ATSEC.js → chunk-5LFQPARU.js} +7 -7
- package/dist/bundle/{chunk-DIFRVXKQ.js → chunk-62DGJ757.js} +1124 -435
- package/dist/bundle/{chunk-IVDBHH3N.js → chunk-6FABO4WB.js} +1 -1
- package/dist/bundle/{chunk-OSPAMIIY.js → chunk-72ZEEKOJ.js} +3 -3
- package/dist/bundle/{chunk-MZMJALJT.js → chunk-ASWLM74P.js} +2 -2
- package/dist/bundle/{chunk-5UM2OEOR.js → chunk-ATEHG5O6.js} +2 -2
- package/dist/bundle/{chunk-JBQP2M7J.js → chunk-BLCYVRW3.js} +8 -8
- package/dist/bundle/{chunk-ZRBXOHNH.js → chunk-CKNH2HT6.js} +2 -2
- package/dist/bundle/{chunk-PSJB456T.js → chunk-CQPMBTB6.js} +1 -1
- package/dist/bundle/{chunk-O7CBAY6J.js → chunk-DQWHLOKG.js} +4 -4
- package/dist/bundle/{chunk-MU4MPJCU.js → chunk-DUBGCFRO.js} +3 -3
- package/dist/bundle/{chunk-WLKDS65F.js → chunk-EMNQPMZO.js} +1 -1
- package/dist/bundle/{chunk-LCE5LBZC.js → chunk-EQQIUVLP.js} +4 -4
- package/dist/bundle/{chunk-4VQ7FPNW.js → chunk-EUE76Q4D.js} +3 -3
- package/dist/bundle/{chunk-JGY2PJ3N.js → chunk-F5DOQOCK.js} +12 -12
- package/dist/bundle/{chunk-DDD3CXHR.js → chunk-FCWUSKUI.js} +31 -24
- package/dist/bundle/{chunk-OKERVM3M.js → chunk-FG7ZGEZ6.js} +4 -4
- package/dist/bundle/{chunk-26QKDK5P.js → chunk-FU3XDL34.js} +5 -5
- package/dist/bundle/{chunk-KTVYCPJW.js → chunk-HVHUHYNF.js} +1 -1
- package/dist/bundle/{chunk-WYZDNDQ5.js → chunk-IF3RIN4C.js} +734 -491
- package/dist/bundle/{chunk-P3MKPY7D.js → chunk-IFUB2B2A.js} +74 -15
- package/dist/bundle/{chunk-JI4LJ563.js → chunk-IX5KCS2V.js} +7 -7
- package/dist/bundle/{chunk-P5UTNYA7.js → chunk-IY7GB2SJ.js} +2 -2
- package/dist/bundle/{chunk-YHHR7NQ3.js → chunk-KKBA3FAY.js} +33 -33
- package/dist/bundle/{chunk-HIF4YBD7.js → chunk-KO24NP3R.js} +5 -5
- package/dist/bundle/{chunk-MV5W4FLV.js → chunk-N2TGYTKE.js} +1 -1
- package/dist/bundle/{chunk-UBZN4EWJ.js → chunk-NDCURVJS.js} +5 -5
- package/dist/bundle/{chunk-VPCNLTME.js → chunk-NEWKSMXP.js} +2 -2
- package/dist/bundle/{chunk-AYY5CYJJ.js → chunk-ONJNZ2RJ.js} +1 -1
- package/dist/bundle/{chunk-RSBROHX4.js → chunk-OROO3KYQ.js} +2 -2
- package/dist/bundle/{chunk-PHP3T567.js → chunk-PBVG3KJR.js} +3 -3
- package/dist/bundle/{chunk-BEO6VJ2E.js → chunk-PWUR2XTO.js} +106 -96
- package/dist/bundle/{chunk-B5VQSSL2.js → chunk-QWZPIELU.js} +14 -14
- package/dist/bundle/{chunk-64JCY7XJ.js → chunk-RCGFSWZE.js} +44 -0
- package/dist/bundle/{chunk-BC7N6IQ6.js → chunk-RJWL3NEL.js} +1 -1
- package/dist/bundle/{chunk-GESLAB4N.js → chunk-RTROEIYE.js} +2 -2
- package/dist/bundle/{chunk-JB43Q2QL.js → chunk-RYDNM3K2.js} +1 -1
- package/dist/bundle/{chunk-AF2ZDP3M.js → chunk-TB4IRRAC.js} +1 -1
- package/dist/bundle/{chunk-ME5RFKKD.js → chunk-UCTUYZER.js} +5 -5
- package/dist/bundle/{chunk-CADGAURO.js → chunk-USZH2ELR.js} +29 -29
- package/dist/bundle/{chunk-SR3ZNX24.js → chunk-V4BKQWDS.js} +132 -114
- package/dist/bundle/{chunk-RX6JTLKD.js → chunk-VEDOHZEU.js} +7 -7
- package/dist/bundle/{chunk-VXZ7FWKU.js → chunk-VQKSJO45.js} +3 -3
- package/dist/bundle/{chunk-FUINFNUC.js → chunk-XEQPZBIH.js} +1 -1
- package/dist/bundle/{chunk-MFVZXEQN.js → chunk-XIS7K5HT.js} +22 -22
- package/dist/bundle/{chunk-643B3X4D.js → chunk-XLYMVYMU.js} +2 -2
- package/dist/bundle/{chunk-IRFHHNSX.js → chunk-XN5POYJL.js} +319 -182
- package/dist/bundle/{chunk-3MWNNJII.js → chunk-Y6PP45D4.js} +9 -9
- package/dist/bundle/{chunk-34GJQ4ZR.js → chunk-YTAQKOAW.js} +1 -1
- package/dist/bundle/{chunk-VBYV6XQI.js → chunk-Z6RSOFHK.js} +2 -2
- package/dist/bundle/{chunk-OQVLH2BS.js → chunk-ZA6ZKUGT.js} +5 -5
- package/dist/bundle/{chunk-ZTM4UUCP.js → chunk-ZGSAA2H5.js} +10 -10
- package/dist/bundle/{command-contract-EWPKHGAZ.js → command-contract-RST6OGMR.js} +13 -13
- package/dist/bundle/{decode-UWT3Y66W.js → decode-JHVAOF3N.js} +4 -4
- package/dist/bundle/{dispatch-W4ZVXTJT.js → dispatch-CRYB6Q2V.js} +1 -1
- package/dist/bundle/{echarts-7VGTR45R.js → echarts-KCOXA225.js} +2 -2
- package/dist/bundle/{embed-CM2QSTNK.js → embed-4NYYOVNS.js} +5 -5
- package/dist/bundle/{embedder-CDCAMVV7.js → embedder-SHPWEDIQ.js} +8 -8
- package/dist/bundle/{entry-WHEWBNJL.js → entry-4WKYFX5K.js} +6 -6
- package/dist/bundle/failure-BBE2DUGO.js +66 -0
- package/dist/bundle/{failure-GQHAQVGH.js → failure-ZMQJF3RO.js} +1 -1
- package/dist/bundle/{first-run-ZBIQO5RZ.js → first-run-2JHWQLHM.js} +8 -8
- package/dist/bundle/first-screen-AVSHZ6KK.js +30 -0
- package/dist/bundle/{instructions-LYKSTUGQ.js → instructions-ER3ONEOR.js} +1 -1
- package/dist/bundle/mcp-VBBKPKEG.js +90 -0
- package/dist/bundle/memo.js +9 -9
- package/dist/bundle/{node-LFRTSZBZ.js → node-DBZKVPDA.js} +2 -2
- package/dist/bundle/{node-sqlite-Y47T5FTT.js → node-sqlite-UZVU7EXS.js} +5 -5
- package/dist/bundle/{oauth-YM5C6VS3.js → oauth-VEFHKRWG.js} +6 -6
- package/dist/bundle/{open-WPA4DW5G.js → open-XNRAMLOK.js} +4 -4
- package/dist/bundle/{openai-RCPT23DA.js → openai-4XIX5RN2.js} +9 -9
- package/dist/bundle/{process-P2X2KFMR.js → process-EIGF77RB.js} +1 -1
- package/dist/bundle/{program-AJPT7C4I.js → program-RWAKY3P6.js} +87 -62
- package/dist/bundle/{prompt-65WPTVYC.js → prompt-V7RFTWTA.js} +4 -4
- package/dist/bundle/{recognize-MEFMK7HT.js → recognize-7PWWI67V.js} +3 -3
- package/dist/bundle/{remote-4XIR3ZYK.js → remote-NOKKQ2U5.js} +6 -6
- package/dist/bundle/{rerank-YRLAXFFL.js → rerank-X7UWX2ZF.js} +6 -6
- package/dist/bundle/{serve-6SPZH6CY.js → serve-Z6YCLXXP.js} +8 -8
- package/dist/bundle/server-GWH7J45V.js +48 -0
- package/dist/bundle/{server-ISFSZGGI.js → server-PIJV3LG4.js} +54 -54
- package/dist/bundle/server-WDE4WIHG.js +61 -0
- package/dist/bundle/{state-G34NVZ7F.js → state-K5D3BMKT.js} +5 -5
- package/dist/bundle/{store-6U4SYK4Q.js → store-6SZBCSUF.js} +21 -11
- package/dist/bundle/store-maintenance-command-Q2ABF4CG.js +48 -0
- package/dist/bundle/update-EKDVFRAG.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +4 -0
- package/dist/examples.js.map +1 -1
- package/dist/mcp/catalogue.js +1 -1
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/notes/command.d.ts.map +1 -1
- package/dist/notes/command.js +18 -2
- package/dist/notes/command.js.map +1 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +8 -0
- package/dist/search/answers.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/auto-3IGKVB3G.js +0 -86
- package/dist/bundle/failure-LGDSH47N.js +0 -66
- package/dist/bundle/first-screen-CUAY5N6E.js +0 -30
- package/dist/bundle/mcp-I72UY3QP.js +0 -90
- package/dist/bundle/server-FB75UHSF.js +0 -48
- package/dist/bundle/server-IELXA6S2.js +0 -61
- package/dist/bundle/store-maintenance-command-ONVPBZLT.js +0 -48
- package/dist/bundle/update-SAJHFRB2.js +0 -69
- /package/dist/bundle/{chunk-2H36DXV7.js → chunk-SO2HNIPX.js} +0 -0
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XIS7K5HT.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
QUICK_HEALTH_CHECKS,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
typedQuery,
|
|
30
30
|
withQuery,
|
|
31
31
|
withTimeLimit
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-IF3RIN4C.js";
|
|
33
33
|
import {
|
|
34
34
|
stringWidth,
|
|
35
35
|
wrapAnsi
|
|
@@ -61,20 +61,20 @@ import {
|
|
|
61
61
|
snakeKeys,
|
|
62
62
|
storeTable,
|
|
63
63
|
withoutProviderRefs
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-XN5POYJL.js";
|
|
65
65
|
import {
|
|
66
66
|
envName
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-3BWYMNWP.js";
|
|
68
68
|
import {
|
|
69
69
|
holdLock,
|
|
70
70
|
lockPath,
|
|
71
71
|
releaseLock,
|
|
72
72
|
servingProfiles,
|
|
73
73
|
takeLock
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-DUBGCFRO.js";
|
|
75
75
|
import {
|
|
76
76
|
holdersOf
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-ONJNZ2RJ.js";
|
|
78
78
|
import {
|
|
79
79
|
CORPORA,
|
|
80
80
|
MIGRATIONS,
|
|
@@ -110,41 +110,41 @@ import {
|
|
|
110
110
|
storeClients,
|
|
111
111
|
storeContents,
|
|
112
112
|
vectorIndexCounts
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-4XKHXETB.js";
|
|
114
114
|
import {
|
|
115
115
|
queryFieldsOf,
|
|
116
116
|
readDamageMark,
|
|
117
117
|
readHealthMark,
|
|
118
118
|
recordDeepCheck
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-V4BKQWDS.js";
|
|
120
120
|
import {
|
|
121
121
|
failureKey,
|
|
122
122
|
isStoreDamage
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-IY7GB2SJ.js";
|
|
124
124
|
import {
|
|
125
125
|
readSecret
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-XLYMVYMU.js";
|
|
127
127
|
import {
|
|
128
128
|
checkedOptions,
|
|
129
129
|
range
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-3N7LEJRT.js";
|
|
131
131
|
import {
|
|
132
132
|
messagesFor,
|
|
133
133
|
systemFor,
|
|
134
134
|
validateImages
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-HVHUHYNF.js";
|
|
136
136
|
import {
|
|
137
137
|
storePath
|
|
138
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-OROO3KYQ.js";
|
|
139
139
|
import {
|
|
140
140
|
openCache
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-5FYDQEM7.js";
|
|
142
142
|
import {
|
|
143
143
|
Credentials,
|
|
144
144
|
pathsAreOverridden,
|
|
145
145
|
resolvePaths,
|
|
146
146
|
writeSecurely
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-EMNQPMZO.js";
|
|
148
148
|
import {
|
|
149
149
|
array,
|
|
150
150
|
boolean,
|
|
@@ -168,7 +168,7 @@ import {
|
|
|
168
168
|
transform,
|
|
169
169
|
trim,
|
|
170
170
|
union
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-RCGFSWZE.js";
|
|
172
172
|
import {
|
|
173
173
|
CliError,
|
|
174
174
|
singleLine,
|
|
@@ -2712,7 +2712,7 @@ var require_liquid_node = __commonJS({
|
|
|
2712
2712
|
this.token = token;
|
|
2713
2713
|
}
|
|
2714
2714
|
};
|
|
2715
|
-
var
|
|
2715
|
+
var Tag3 = class extends TemplateImpl {
|
|
2716
2716
|
static {
|
|
2717
2717
|
__name(this, "Tag");
|
|
2718
2718
|
}
|
|
@@ -2743,7 +2743,7 @@ var require_liquid_node = __commonJS({
|
|
|
2743
2743
|
}
|
|
2744
2744
|
};
|
|
2745
2745
|
function createTagClass(options2) {
|
|
2746
|
-
return class extends
|
|
2746
|
+
return class extends Tag3 {
|
|
2747
2747
|
constructor(token, tokens, liquid) {
|
|
2748
2748
|
super(token, tokens, liquid);
|
|
2749
2749
|
if (isFunction(options2.parse)) {
|
|
@@ -4311,7 +4311,7 @@ var require_liquid_node = __commonJS({
|
|
|
4311
4311
|
...cryptoFilters,
|
|
4312
4312
|
...misc
|
|
4313
4313
|
};
|
|
4314
|
-
var AssignTag = class extends
|
|
4314
|
+
var AssignTag = class extends Tag3 {
|
|
4315
4315
|
static {
|
|
4316
4316
|
__name(this, "AssignTag");
|
|
4317
4317
|
}
|
|
@@ -4336,7 +4336,7 @@ var require_liquid_node = __commonJS({
|
|
|
4336
4336
|
}
|
|
4337
4337
|
};
|
|
4338
4338
|
var MODIFIERS = ["offset", "limit", "reversed"];
|
|
4339
|
-
var ForTag = class extends
|
|
4339
|
+
var ForTag = class extends Tag3 {
|
|
4340
4340
|
static {
|
|
4341
4341
|
__name(this, "ForTag");
|
|
4342
4342
|
}
|
|
@@ -4429,7 +4429,7 @@ var require_liquid_node = __commonJS({
|
|
|
4429
4429
|
return arr.slice(0, count3);
|
|
4430
4430
|
}
|
|
4431
4431
|
__name(limit2, "limit");
|
|
4432
|
-
var CaptureTag = class extends
|
|
4432
|
+
var CaptureTag = class extends Tag3 {
|
|
4433
4433
|
static {
|
|
4434
4434
|
__name(this, "CaptureTag");
|
|
4435
4435
|
}
|
|
@@ -4467,7 +4467,7 @@ var require_liquid_node = __commonJS({
|
|
|
4467
4467
|
yield this.identifier;
|
|
4468
4468
|
}
|
|
4469
4469
|
};
|
|
4470
|
-
var CaseTag = class extends
|
|
4470
|
+
var CaseTag = class extends Tag3 {
|
|
4471
4471
|
static {
|
|
4472
4472
|
__name(this, "CaseTag");
|
|
4473
4473
|
}
|
|
@@ -4540,7 +4540,7 @@ var require_liquid_node = __commonJS({
|
|
|
4540
4540
|
return templates;
|
|
4541
4541
|
}
|
|
4542
4542
|
};
|
|
4543
|
-
var CommentTag = class extends
|
|
4543
|
+
var CommentTag = class extends Tag3 {
|
|
4544
4544
|
static {
|
|
4545
4545
|
__name(this, "CommentTag");
|
|
4546
4546
|
}
|
|
@@ -4556,7 +4556,7 @@ var require_liquid_node = __commonJS({
|
|
|
4556
4556
|
render() {
|
|
4557
4557
|
}
|
|
4558
4558
|
};
|
|
4559
|
-
var RenderTag = class extends
|
|
4559
|
+
var RenderTag = class extends Tag3 {
|
|
4560
4560
|
static {
|
|
4561
4561
|
__name(this, "RenderTag");
|
|
4562
4562
|
}
|
|
@@ -4703,7 +4703,7 @@ var require_liquid_node = __commonJS({
|
|
|
4703
4703
|
return yield evalToken(file2, ctx);
|
|
4704
4704
|
}
|
|
4705
4705
|
__name(renderFilePath, "renderFilePath");
|
|
4706
|
-
var IncludeTag = class extends
|
|
4706
|
+
var IncludeTag = class extends Tag3 {
|
|
4707
4707
|
static {
|
|
4708
4708
|
__name(this, "IncludeTag");
|
|
4709
4709
|
}
|
|
@@ -4771,7 +4771,7 @@ var require_liquid_node = __commonJS({
|
|
|
4771
4771
|
}
|
|
4772
4772
|
}
|
|
4773
4773
|
};
|
|
4774
|
-
var DecrementTag = class extends
|
|
4774
|
+
var DecrementTag = class extends Tag3 {
|
|
4775
4775
|
static {
|
|
4776
4776
|
__name(this, "DecrementTag");
|
|
4777
4777
|
}
|
|
@@ -4791,7 +4791,7 @@ var require_liquid_node = __commonJS({
|
|
|
4791
4791
|
yield this.identifier;
|
|
4792
4792
|
}
|
|
4793
4793
|
};
|
|
4794
|
-
var CycleTag = class extends
|
|
4794
|
+
var CycleTag = class extends Tag3 {
|
|
4795
4795
|
static {
|
|
4796
4796
|
__name(this, "CycleTag");
|
|
4797
4797
|
}
|
|
@@ -4835,7 +4835,7 @@ var require_liquid_node = __commonJS({
|
|
|
4835
4835
|
}
|
|
4836
4836
|
}
|
|
4837
4837
|
};
|
|
4838
|
-
var IfTag = class extends
|
|
4838
|
+
var IfTag = class extends Tag3 {
|
|
4839
4839
|
static {
|
|
4840
4840
|
__name(this, "IfTag");
|
|
4841
4841
|
}
|
|
@@ -4885,7 +4885,7 @@ var require_liquid_node = __commonJS({
|
|
|
4885
4885
|
return this.branches.map((b) => b.value);
|
|
4886
4886
|
}
|
|
4887
4887
|
};
|
|
4888
|
-
var IncrementTag = class extends
|
|
4888
|
+
var IncrementTag = class extends Tag3 {
|
|
4889
4889
|
static {
|
|
4890
4890
|
__name(this, "IncrementTag");
|
|
4891
4891
|
}
|
|
@@ -4907,7 +4907,7 @@ var require_liquid_node = __commonJS({
|
|
|
4907
4907
|
yield this.identifier;
|
|
4908
4908
|
}
|
|
4909
4909
|
};
|
|
4910
|
-
var LayoutTag = class extends
|
|
4910
|
+
var LayoutTag = class extends Tag3 {
|
|
4911
4911
|
static {
|
|
4912
4912
|
__name(this, "LayoutTag");
|
|
4913
4913
|
}
|
|
@@ -4962,7 +4962,7 @@ var require_liquid_node = __commonJS({
|
|
|
4962
4962
|
}
|
|
4963
4963
|
}
|
|
4964
4964
|
};
|
|
4965
|
-
var BlockTag = class extends
|
|
4965
|
+
var BlockTag = class extends Tag3 {
|
|
4966
4966
|
static {
|
|
4967
4967
|
__name(this, "BlockTag");
|
|
4968
4968
|
}
|
|
@@ -5011,7 +5011,7 @@ var require_liquid_node = __commonJS({
|
|
|
5011
5011
|
return ["block"];
|
|
5012
5012
|
}
|
|
5013
5013
|
};
|
|
5014
|
-
var RawTag = class extends
|
|
5014
|
+
var RawTag = class extends Tag3 {
|
|
5015
5015
|
static {
|
|
5016
5016
|
__name(this, "RawTag");
|
|
5017
5017
|
}
|
|
@@ -5055,7 +5055,7 @@ var require_liquid_node = __commonJS({
|
|
|
5055
5055
|
return this.col() === this.cols;
|
|
5056
5056
|
}
|
|
5057
5057
|
};
|
|
5058
|
-
var TablerowTag = class extends
|
|
5058
|
+
var TablerowTag = class extends Tag3 {
|
|
5059
5059
|
static {
|
|
5060
5060
|
__name(this, "TablerowTag");
|
|
5061
5061
|
}
|
|
@@ -5119,7 +5119,7 @@ var require_liquid_node = __commonJS({
|
|
|
5119
5119
|
return [this.variable, "tablerowloop"];
|
|
5120
5120
|
}
|
|
5121
5121
|
};
|
|
5122
|
-
var UnlessTag = class extends
|
|
5122
|
+
var UnlessTag = class extends Tag3 {
|
|
5123
5123
|
static {
|
|
5124
5124
|
__name(this, "UnlessTag");
|
|
5125
5125
|
}
|
|
@@ -5178,7 +5178,7 @@ var require_liquid_node = __commonJS({
|
|
|
5178
5178
|
return this.branches.map((b) => b.value);
|
|
5179
5179
|
}
|
|
5180
5180
|
};
|
|
5181
|
-
var BreakTag = class extends
|
|
5181
|
+
var BreakTag = class extends Tag3 {
|
|
5182
5182
|
static {
|
|
5183
5183
|
__name(this, "BreakTag");
|
|
5184
5184
|
}
|
|
@@ -5186,7 +5186,7 @@ var require_liquid_node = __commonJS({
|
|
|
5186
5186
|
ctx.breakCalled = true;
|
|
5187
5187
|
}
|
|
5188
5188
|
};
|
|
5189
|
-
var ContinueTag = class extends
|
|
5189
|
+
var ContinueTag = class extends Tag3 {
|
|
5190
5190
|
static {
|
|
5191
5191
|
__name(this, "ContinueTag");
|
|
5192
5192
|
}
|
|
@@ -5194,7 +5194,7 @@ var require_liquid_node = __commonJS({
|
|
|
5194
5194
|
ctx.continueCalled = true;
|
|
5195
5195
|
}
|
|
5196
5196
|
};
|
|
5197
|
-
var EchoTag = class extends
|
|
5197
|
+
var EchoTag = class extends Tag3 {
|
|
5198
5198
|
static {
|
|
5199
5199
|
__name(this, "EchoTag");
|
|
5200
5200
|
}
|
|
@@ -5217,7 +5217,7 @@ var require_liquid_node = __commonJS({
|
|
|
5217
5217
|
}
|
|
5218
5218
|
}
|
|
5219
5219
|
};
|
|
5220
|
-
var LiquidTag = class extends
|
|
5220
|
+
var LiquidTag = class extends Tag3 {
|
|
5221
5221
|
static {
|
|
5222
5222
|
__name(this, "LiquidTag");
|
|
5223
5223
|
}
|
|
@@ -5233,7 +5233,7 @@ var require_liquid_node = __commonJS({
|
|
|
5233
5233
|
return this.templates;
|
|
5234
5234
|
}
|
|
5235
5235
|
};
|
|
5236
|
-
var InlineCommentTag = class extends
|
|
5236
|
+
var InlineCommentTag = class extends Tag3 {
|
|
5237
5237
|
static {
|
|
5238
5238
|
__name(this, "InlineCommentTag");
|
|
5239
5239
|
}
|
|
@@ -5483,7 +5483,7 @@ var require_liquid_node = __commonJS({
|
|
|
5483
5483
|
exports.RenderError = RenderError;
|
|
5484
5484
|
exports.RenderTag = RenderTag;
|
|
5485
5485
|
exports.TablerowTag = TablerowTag;
|
|
5486
|
-
exports.Tag =
|
|
5486
|
+
exports.Tag = Tag3;
|
|
5487
5487
|
exports.TagToken = TagToken;
|
|
5488
5488
|
exports.Token = Token;
|
|
5489
5489
|
exports.TokenizationError = TokenizationError;
|
|
@@ -5513,11 +5513,11 @@ var require_liquid_node = __commonJS({
|
|
|
5513
5513
|
}
|
|
5514
5514
|
});
|
|
5515
5515
|
|
|
5516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5516
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5517
5517
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync9, mkdirSync, realpathSync as realpathSync2, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5518
5518
|
import { dirname as dirname2, resolve } from "node:path";
|
|
5519
5519
|
|
|
5520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5521
5521
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5522
5522
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5523
5523
|
import { Transform } from "node:stream";
|
|
@@ -5624,7 +5624,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5624
5624
|
renameSync(pending, to);
|
|
5625
5625
|
}, "unsealFile");
|
|
5626
5626
|
|
|
5627
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5627
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5628
5628
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5629
5629
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5630
5630
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5648,7 +5648,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5648
5648
|
};
|
|
5649
5649
|
}, "compatibilityOf");
|
|
5650
5650
|
|
|
5651
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5652
5652
|
import { createHash as createHash2 } from "node:crypto";
|
|
5653
5653
|
var COPY_MARK = "__repair_";
|
|
5654
5654
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5902,13 +5902,13 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5902
5902
|
return found;
|
|
5903
5903
|
}, "deleteCopy");
|
|
5904
5904
|
|
|
5905
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5905
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5906
5906
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5907
5907
|
|
|
5908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5909
5909
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5910
5910
|
|
|
5911
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5912
5912
|
import { execFileSync, spawn } from "node:child_process";
|
|
5913
5913
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5914
5914
|
import { basename, dirname, join } from "node:path";
|
|
@@ -6305,7 +6305,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6305
6305
|
}
|
|
6306
6306
|
}, "recoverLocked");
|
|
6307
6307
|
|
|
6308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6308
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6309
6309
|
var COUNTED = [
|
|
6310
6310
|
"accounts",
|
|
6311
6311
|
"chats",
|
|
@@ -6438,7 +6438,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6438
6438
|
return recover;
|
|
6439
6439
|
}, "storeRecoverCommand");
|
|
6440
6440
|
|
|
6441
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6441
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6442
6442
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6443
6443
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6444
6444
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6484,7 +6484,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6484
6484
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6485
6485
|
}), "storeInfoCommand");
|
|
6486
6486
|
|
|
6487
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6487
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6488
6488
|
var ENCRYPT_OPTION = [
|
|
6489
6489
|
"--encrypt",
|
|
6490
6490
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6503,7 +6503,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6503
6503
|
return password;
|
|
6504
6504
|
}, "passwordOf");
|
|
6505
6505
|
|
|
6506
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6507
6507
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6508
6508
|
import { join as join2 } from "node:path";
|
|
6509
6509
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6674,7 +6674,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6674
6674
|
}, "problem");
|
|
6675
6675
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6676
6676
|
|
|
6677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6678
6678
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6679
6679
|
import { join as join3 } from "node:path";
|
|
6680
6680
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6727,7 +6727,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6727
6727
|
}, "recordReply");
|
|
6728
6728
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6729
6729
|
|
|
6730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6731
6731
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6732
6732
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6733
6733
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6833,8 +6833,37 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6833
6833
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6834
6834
|
}, "filled");
|
|
6835
6835
|
|
|
6836
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6837
|
+
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
6838
|
+
|
|
6839
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
6837
6840
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6841
|
+
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
6842
|
+
const engine = new import_liquidjs.Liquid({
|
|
6843
|
+
ownPropertyOnly: true,
|
|
6844
|
+
strictVariables: true,
|
|
6845
|
+
strictFilters: true,
|
|
6846
|
+
lenientIf: false,
|
|
6847
|
+
parseLimit: limits.parse,
|
|
6848
|
+
renderLimit: limits.milliseconds,
|
|
6849
|
+
memoryLimit: limits.memory,
|
|
6850
|
+
preserveTimezones: true
|
|
6851
|
+
});
|
|
6852
|
+
for (const name of ["include", "render", "layout"]) {
|
|
6853
|
+
engine.registerTag(name, class extends import_liquidjs.Tag {
|
|
6854
|
+
constructor(token, tokens, liquid) {
|
|
6855
|
+
super(token, tokens, liquid);
|
|
6856
|
+
throw new Error("templates cannot read files");
|
|
6857
|
+
}
|
|
6858
|
+
render() {
|
|
6859
|
+
return "";
|
|
6860
|
+
}
|
|
6861
|
+
});
|
|
6862
|
+
}
|
|
6863
|
+
return engine;
|
|
6864
|
+
}, "safeLiquid");
|
|
6865
|
+
|
|
6866
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6838
6867
|
var TEMPLATE_LIMITS = {
|
|
6839
6868
|
parse: 32768,
|
|
6840
6869
|
renders: 2e3,
|
|
@@ -6888,28 +6917,8 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6888
6917
|
hourCycle: "h23"
|
|
6889
6918
|
}).formatToParts(input.now).map(({ type, value }) => [type, value]));
|
|
6890
6919
|
const localTime = `${parts2.year}-${parts2.month}-${parts2.day}T${parts2.hour}:${parts2.minute}:${parts2.second}${parts2.timeZoneName?.replace("GMT", "") || "+00:00"}`;
|
|
6891
|
-
const engine =
|
|
6892
|
-
|
|
6893
|
-
strictVariables: true,
|
|
6894
|
-
strictFilters: true,
|
|
6895
|
-
lenientIf: false,
|
|
6896
|
-
parseLimit: limits.parse,
|
|
6897
|
-
renderLimit: limits.milliseconds,
|
|
6898
|
-
memoryLimit: limits.memory,
|
|
6899
|
-
preserveTimezones: true
|
|
6900
|
-
});
|
|
6901
|
-
for (const name2 of ["include", "render", "layout"]) {
|
|
6902
|
-
engine.registerTag(name2, class extends import_liquidjs.Tag {
|
|
6903
|
-
constructor(token, tokens, liquid) {
|
|
6904
|
-
super(token, tokens, liquid);
|
|
6905
|
-
throw new Error("reply templates cannot read files");
|
|
6906
|
-
}
|
|
6907
|
-
render() {
|
|
6908
|
-
return "";
|
|
6909
|
-
}
|
|
6910
|
-
});
|
|
6911
|
-
}
|
|
6912
|
-
engine.registerTag("ai", class extends import_liquidjs.Tag {
|
|
6920
|
+
const engine = safeLiquid({ parse: limits.parse, memory: limits.memory, milliseconds: limits.milliseconds });
|
|
6921
|
+
engine.registerTag("ai", class extends import_liquidjs2.Tag {
|
|
6913
6922
|
body = [];
|
|
6914
6923
|
fallback = null;
|
|
6915
6924
|
constructor(token, tokens, liquid, parser) {
|
|
@@ -6970,7 +6979,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6970
6979
|
});
|
|
6971
6980
|
const templates = engine.parse(source);
|
|
6972
6981
|
const name = input.senderName?.trim() ?? "";
|
|
6973
|
-
const context = new
|
|
6982
|
+
const context = new import_liquidjs2.Context({
|
|
6974
6983
|
sender: { firstName: name.split(/\s+/)[0] ?? "", name },
|
|
6975
6984
|
chat: { title: input.chat.title ?? "", kind: input.chat.kind },
|
|
6976
6985
|
now: localTime
|
|
@@ -6993,7 +7002,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6993
7002
|
}
|
|
6994
7003
|
}, "renderReplyTemplate");
|
|
6995
7004
|
|
|
6996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6997
7006
|
var DRY_RUN_DAYS = 7;
|
|
6998
7007
|
var PAGE = 500;
|
|
6999
7008
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7107,7 +7116,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7107
7116
|
}
|
|
7108
7117
|
}, "storedSince");
|
|
7109
7118
|
|
|
7110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7119
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
7111
7120
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
7112
7121
|
const host = new URL(baseUrl).host;
|
|
7113
7122
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -7138,7 +7147,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
7138
7147
|
};
|
|
7139
7148
|
}, "embeddingKeys");
|
|
7140
7149
|
|
|
7141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
7142
7151
|
var options = strictObject({
|
|
7143
7152
|
temperature: range(0, 2),
|
|
7144
7153
|
top_p: range(0, 1),
|
|
@@ -7187,7 +7196,7 @@ var openai = {
|
|
|
7187
7196
|
}), "complete")
|
|
7188
7197
|
};
|
|
7189
7198
|
|
|
7190
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7199
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
7191
7200
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
7192
7201
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
7193
7202
|
if (deps.signal?.aborted)
|
|
@@ -7202,7 +7211,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
7202
7211
|
if (!adapter && target.provider === "openai")
|
|
7203
7212
|
adapter = openai;
|
|
7204
7213
|
if (!adapter && target.provider === "anthropic")
|
|
7205
|
-
adapter = (await import("./anthropic-
|
|
7214
|
+
adapter = (await import("./anthropic-266QJJGV.js")).anthropic;
|
|
7206
7215
|
if (!adapter)
|
|
7207
7216
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
7208
7217
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -7243,7 +7252,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
7243
7252
|
}, "complete")
|
|
7244
7253
|
}), "modelGateway");
|
|
7245
7254
|
|
|
7246
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7255
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7247
7256
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7248
7257
|
import { join as join4 } from "node:path";
|
|
7249
7258
|
var shape = strictObject({
|
|
@@ -7268,7 +7277,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7268
7277
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7269
7278
|
}, "mayModelReply");
|
|
7270
7279
|
|
|
7271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7272
7281
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
7273
7282
|
ai: true
|
|
7274
7283
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7315,7 +7324,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7315
7324
|
return result2;
|
|
7316
7325
|
}, "replyRenderer");
|
|
7317
7326
|
|
|
7318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7319
7328
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7320
7329
|
var NO_RULES = "no rules";
|
|
7321
7330
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7408,7 +7417,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7408
7417
|
return { skip: why };
|
|
7409
7418
|
}, "replyTo");
|
|
7410
7419
|
|
|
7411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7412
7421
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7413
7422
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7414
7423
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7485,7 +7494,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
|
|
|
7485
7494
|
};
|
|
7486
7495
|
}, "startSync");
|
|
7487
7496
|
|
|
7488
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7489
7498
|
var FIRST_FETCH_MS = 6e4;
|
|
7490
7499
|
var DAY_MS = 864e5;
|
|
7491
7500
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7539,7 +7548,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
7539
7548
|
};
|
|
7540
7549
|
}, "memberFetches");
|
|
7541
7550
|
|
|
7542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7543
7552
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7544
7553
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7545
7554
|
if (context.format === "pretty") {
|
|
@@ -7572,7 +7581,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7572
7581
|
return context;
|
|
7573
7582
|
}, "recordDiagnostics");
|
|
7574
7583
|
|
|
7575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7576
7585
|
var STEMS_EVERY_MS = 3e4;
|
|
7577
7586
|
var STEMS_SLICE_MS = 2e3;
|
|
7578
7587
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7612,7 +7621,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7612
7621
|
};
|
|
7613
7622
|
}, "stemFills");
|
|
7614
7623
|
|
|
7615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7624
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7616
7625
|
import { styleText } from "node:util";
|
|
7617
7626
|
var TIME_WIDTH = 8;
|
|
7618
7627
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7788,7 +7797,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7788
7797
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7789
7798
|
}, "editedAt");
|
|
7790
7799
|
|
|
7791
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7792
7801
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7793
7802
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7794
7803
|
kind: attachment.kind,
|
|
@@ -7883,7 +7892,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7883
7892
|
locale: messenger.app.locale
|
|
7884
7893
|
}), "viewOf");
|
|
7885
7894
|
|
|
7886
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7887
7896
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7888
7897
|
value: value.value,
|
|
7889
7898
|
observed_at: value.observedAt,
|
|
@@ -7950,7 +7959,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7950
7959
|
}
|
|
7951
7960
|
}, "watchEventItem");
|
|
7952
7961
|
|
|
7953
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7954
7963
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7955
7964
|
output: { entity: "watch_item" },
|
|
7956
7965
|
effects: REMOTE_READ,
|
|
@@ -8105,7 +8114,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8105
8114
|
}
|
|
8106
8115
|
}, "describe");
|
|
8107
8116
|
|
|
8108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8109
8118
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8110
8119
|
const command = annotate(new Command("serve"), {
|
|
8111
8120
|
output: { entity: "serve_summary" },
|
|
@@ -8369,7 +8378,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8369
8378
|
};
|
|
8370
8379
|
}, "tasking");
|
|
8371
8380
|
|
|
8372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8373
8382
|
import { existsSync as existsSync8 } from "node:fs";
|
|
8374
8383
|
var PATH = "store tables list";
|
|
8375
8384
|
var STORE_TABLES_QUERY = {
|
|
@@ -8412,7 +8421,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8412
8421
|
return tables;
|
|
8413
8422
|
}, "storeTablesCommand");
|
|
8414
8423
|
|
|
8415
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8424
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.609.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_cc90521890eb0d504a7d45d35f643969/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8416
8425
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8417
8426
|
var WORD_INDEX = "message_words";
|
|
8418
8427
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -9100,6 +9109,7 @@ export {
|
|
|
9100
9109
|
readRepliesState,
|
|
9101
9110
|
writeRepliesState,
|
|
9102
9111
|
paused,
|
|
9112
|
+
safeLiquid,
|
|
9103
9113
|
DRY_RUN_DAYS,
|
|
9104
9114
|
dryRun,
|
|
9105
9115
|
endpointKeyName,
|