@wirecat/amo-cli 0.2.0 → 0.4.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 +19 -14
- package/contracts/wirecat.json +58 -19
- package/dist/amo/button.d.ts +53 -0
- package/dist/amo/button.d.ts.map +1 -0
- package/dist/amo/button.js +234 -0
- package/dist/amo/button.js.map +1 -0
- package/dist/amo/oauth.d.ts +12 -3
- package/dist/amo/oauth.d.ts.map +1 -1
- package/dist/amo/oauth.js +19 -6
- package/dist/amo/oauth.js.map +1 -1
- package/dist/bin/amo.js +2 -2
- package/dist/bundle/agent-43BMVBX2.js +40 -0
- package/dist/bundle/{all-profiles-3KQVWDV4.js → all-profiles-PRNXEZRH.js} +63 -21
- package/dist/bundle/amo.js +28 -26
- package/dist/bundle/{anthropic-N5NOX7K7.js → anthropic-FDI24DU2.js} +5 -5
- package/dist/bundle/{app-server-2MST5EZ5.js → app-server-WAKJVDLN.js} +79 -68
- package/dist/bundle/{bun-4NHWOFX2.js → bun-YPXUXMBI.js} +2 -2
- package/dist/bundle/{bun-sqlite-DRSXPWPR.js → bun-sqlite-UBQ5M47X.js} +6 -6
- package/dist/bundle/chunk-23AQD7JU.js +559 -0
- package/dist/bundle/{chunk-2I5UVMLW.js → chunk-2AIG2SSJ.js} +1733 -1160
- package/dist/bundle/{chunk-DQV2IKCF.js → chunk-2UJ7ZZZC.js} +10 -3
- package/dist/bundle/{chunk-ODNQU7DH.js → chunk-3K6T2G52.js} +43 -64
- package/dist/bundle/chunk-3PCVQCCV.js +108 -0
- package/dist/bundle/{chunk-UMVRT7VQ.js → chunk-3WG4MTQI.js} +1 -1
- package/dist/bundle/chunk-4PQECIU2.js +30 -0
- package/dist/bundle/{chunk-T2UDLX76.js → chunk-5HZMXHRH.js} +6 -6
- package/dist/bundle/{chunk-P3WQRTYZ.js → chunk-5II6TAJE.js} +1 -1
- package/dist/bundle/{chunk-RPWAJYI6.js → chunk-5SJEJYQZ.js} +3 -3
- package/dist/bundle/{chunk-5QFHNBGB.js → chunk-6PILR4AX.js} +2 -2
- package/dist/bundle/{chunk-TNUFLULO.js → chunk-6QMSKJB4.js} +8 -8
- package/dist/bundle/{chunk-5RLUHTK6.js → chunk-745FMNI5.js} +1 -1
- package/dist/bundle/{chunk-AUBB72VF.js → chunk-7OVTUADG.js} +41 -10
- package/dist/bundle/{chunk-7U5HJEPZ.js → chunk-A4W7J6VN.js} +34 -22
- package/dist/bundle/chunk-ABMPZL2P.js +734 -0
- package/dist/bundle/{chunk-EROSAUNP.js → chunk-AN6IJYH3.js} +5 -5
- package/dist/bundle/{chunk-SZ2V62HB.js → chunk-AP3CWDRK.js} +2 -2
- package/dist/bundle/{chunk-ESZSMZKT.js → chunk-ASU63X5C.js} +2 -2
- package/dist/bundle/{chunk-EPOV5UIO.js → chunk-BCIZAUDV.js} +11 -11
- package/dist/bundle/{chunk-7PKFYX7V.js → chunk-CEBX63XY.js} +8 -8
- package/dist/bundle/{chunk-7GTUZY7M.js → chunk-CYHIM5SL.js} +3 -3
- package/dist/bundle/chunk-DWA5TZMP.js +209 -0
- package/dist/bundle/{chunk-LDEBZ3IX.js → chunk-DWD3KDJA.js} +1 -1
- package/dist/bundle/{chunk-GQ7VFIYM.js → chunk-E3EWS6DF.js} +23 -7
- package/dist/bundle/{chunk-NJYAL3UW.js → chunk-EAX5RO7S.js} +1 -1
- package/dist/bundle/{chunk-LJQUYECN.js → chunk-EBNCUQLV.js} +1 -1
- package/dist/bundle/{chunk-UBRREVLJ.js → chunk-ELAKOEIO.js} +2 -2
- package/dist/bundle/{chunk-DAY6TSPF.js → chunk-FEUNZG7U.js} +62 -50
- package/dist/bundle/{chunk-63F65DHU.js → chunk-FQRP6JWX.js} +2 -2
- package/dist/bundle/{chunk-SMSTGO2G.js → chunk-G3LAYJJJ.js} +4 -4
- package/dist/bundle/{chunk-LGQXGOPJ.js → chunk-GBQ76X6T.js} +2 -2
- package/dist/bundle/{chunk-CHUKWON6.js → chunk-GJBOZAUD.js} +3 -3
- package/dist/bundle/{chunk-A33TIM5D.js → chunk-GMHRPX5M.js} +225 -225
- package/dist/bundle/{chunk-O2UCU52O.js → chunk-GQKEMBM6.js} +171 -569
- package/dist/bundle/{chunk-EQUKVVHX.js → chunk-HDZNSOV5.js} +7 -7
- package/dist/bundle/{chunk-ZM7I52EP.js → chunk-HZZ56JO7.js} +3 -4
- package/dist/bundle/{chunk-XQL7FEF4.js → chunk-IBEHYGG6.js} +9 -9
- package/dist/bundle/{chunk-U7RLVJ34.js → chunk-IPNIF5JE.js} +4 -4
- package/dist/bundle/{chunk-QDMXZZG4.js → chunk-KBAOJISR.js} +18 -8
- package/dist/bundle/{chunk-ADEWU4P4.js → chunk-KORZEYZN.js} +1 -1
- package/dist/bundle/{chunk-JMDLPBXK.js → chunk-KQZTX4LM.js} +17 -17
- package/dist/bundle/{chunk-NHXJYS4R.js → chunk-KRD375P7.js} +32 -28
- package/dist/bundle/{chunk-ULXQ5MJM.js → chunk-LAR2DLTI.js} +4 -4
- package/dist/bundle/{chunk-NC76INB2.js → chunk-LZ4IWN43.js} +3088 -2266
- package/dist/bundle/{chunk-BVMNXI53.js → chunk-M33XHJTM.js} +25 -25
- package/dist/bundle/{chunk-WCYCUTSK.js → chunk-M54YKD3I.js} +7 -7
- package/dist/bundle/{chunk-LSND5QYI.js → chunk-MW7HUD6R.js} +9 -9
- package/dist/bundle/{chunk-AHJ4W2IL.js → chunk-NFWD4QX3.js} +2 -2
- package/dist/bundle/{chunk-PM77PRB6.js → chunk-NKYWQTS2.js} +189 -163
- package/dist/bundle/{chunk-LRBPT7LQ.js → chunk-NXNUCGGO.js} +6 -6
- package/dist/bundle/{chunk-5D4Z2B5B.js → chunk-O3WE5IGP.js} +9 -9
- package/dist/bundle/chunk-OYMHPQF7.js +52 -0
- package/dist/bundle/{chunk-VVHRQ46X.js → chunk-PIOR6PIO.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-XEFAMLSD.js → chunk-PL7TNKAY.js} +3 -3
- package/dist/bundle/chunk-PLU2IQXC.js +80 -0
- package/dist/bundle/{chunk-73CXFE36.js → chunk-QGFURWEP.js} +29 -1
- package/dist/bundle/{chunk-CDY2NJFE.js → chunk-RQPB2BSH.js} +2 -2
- package/dist/bundle/{chunk-QRQYUHCZ.js → chunk-S6DTLAOB.js} +12 -12
- package/dist/bundle/{chunk-DJD7TBYG.js → chunk-SCMB4LI6.js} +76 -74
- package/dist/bundle/{chunk-TGEQNS6G.js → chunk-SFZVMKB6.js} +1 -1
- package/dist/bundle/{chunk-PFO76YFP.js → chunk-SHOSFYI7.js} +18 -18
- package/dist/bundle/{chunk-5SBLU7D7.js → chunk-SMM7GS4Q.js} +1 -1
- package/dist/bundle/{chunk-EQ7A6NA6.js → chunk-SNBYFQHT.js} +1 -1
- package/dist/bundle/{chunk-GNTJMB6X.js → chunk-SZX7EPPY.js} +4 -4
- package/dist/bundle/{chunk-VX37MPTJ.js → chunk-TCSVW7BA.js} +1 -1
- package/dist/bundle/{chunk-P5LYZRKW.js → chunk-TEGQVVCZ.js} +1992 -885
- package/dist/bundle/{chunk-Q2VNBY4Y.js → chunk-TIR3AB35.js} +758 -1205
- package/dist/bundle/{chunk-5HGGG3QO.js → chunk-U46RNOEQ.js} +16 -3
- package/dist/bundle/{chunk-Y37A3232.js → chunk-UCM7C773.js} +130 -8
- package/dist/bundle/{chunk-L6AFE73L.js → chunk-UEN5NWNW.js} +1 -1
- package/dist/bundle/{chunk-6RS7OYTD.js → chunk-V2QWX6B3.js} +3 -3
- package/dist/bundle/{chunk-3IRJDH2U.js → chunk-V5SETIQK.js} +2 -100
- package/dist/bundle/{chunk-JR6TSMFX.js → chunk-VEFAYLKX.js} +103 -70
- package/dist/bundle/{chunk-CUZRHF34.js → chunk-VG26HDKH.js} +4 -4
- package/dist/bundle/{chunk-4ZAK773N.js → chunk-VG2ERHFJ.js} +3 -3
- package/dist/bundle/{chunk-CHH42KI4.js → chunk-WAFB3IWJ.js} +8 -8
- package/dist/bundle/{chunk-5Z5PEEKP.js → chunk-WASBOYI2.js} +4 -4
- package/dist/bundle/{chunk-DXGGCGRP.js → chunk-WEWJA42Q.js} +14 -14
- package/dist/bundle/chunk-WR2FPZTE.js +353 -0
- package/dist/bundle/chunk-XEYT2EQT.js +338 -0
- package/dist/bundle/{chunk-DOSJONCX.js → chunk-YFRTEJ6V.js} +7 -7
- package/dist/bundle/{chunk-XRTD2GCU.js → chunk-YHVHDRED.js} +19 -258
- package/dist/bundle/{chunk-JH3UOHRE.js → chunk-YREKMP24.js} +4 -4
- package/dist/bundle/{chunk-V77XNPXG.js → chunk-Z2B3VNRI.js} +11 -11
- package/dist/bundle/{chunk-FKR3M62D.js → chunk-ZJC2XJQC.js} +13 -13
- package/dist/bundle/{chunk-5E5R65CA.js → chunk-ZKRWNL4T.js} +2 -2
- package/dist/bundle/{cli-QVWTXADI.js → cli-QDPKC2HJ.js} +150 -103
- package/dist/bundle/command-contract-KWNCP3MQ.js +39 -0
- package/dist/bundle/{command-server-entry-5VL5U5EE.js → command-server-entry-TX7WNN7G.js} +28 -28
- package/dist/bundle/{decode-SQ5WGNDX.js → decode-BLPC7OYE.js} +5 -5
- package/dist/bundle/{dispatch-LA4DFXJD.js → dispatch-5JUT55CS.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-25Z3RINX.js → echarts-54D3FOCL.js} +2 -2
- package/dist/bundle/{embed-BNOTNXMA.js → embed-O7KMDYM7.js} +6 -6
- package/dist/bundle/{embedder-BCUT7KKV.js → embedder-4PE67CLX.js} +9 -9
- package/dist/bundle/{failure-PKAC6XCT.js → failure-NNQYTB3Z.js} +2 -2
- package/dist/bundle/{first-run-EO5K5GME.js → first-run-EAU5SHBI.js} +12 -12
- package/dist/bundle/first-screen-APSNGZYZ.js +39 -0
- package/dist/bundle/{instructions-VLM3QAYB.js → instructions-ONXP5DZQ.js} +1 -1
- package/dist/bundle/{mcp-7ILNMJH5.js → mcp-ZNULRPZ4.js} +2 -2
- package/dist/bundle/meeting-combined-W2XIYXFU.js +24 -0
- package/dist/bundle/{meeting-model-GHMMUQ34.js → meeting-model-FWIZRKVN.js} +11 -11
- package/dist/bundle/{meeting-semantic-BMP6323L.js → meeting-semantic-M4YVJ57W.js} +6 -6
- package/dist/bundle/{node-CT3N3TNL.js → node-UTQCYQF5.js} +2 -2
- package/dist/bundle/{node-sqlite-MELD2SBX.js → node-sqlite-APJG6MGL.js} +7 -7
- package/dist/bundle/{oauth-YBH5OKC2.js → oauth-TY7RMIBL.js} +8 -8
- package/dist/bundle/{open-WNSBWTAG.js → open-WDVEQL75.js} +5 -5
- package/dist/bundle/{openai-XSNMNLW6.js → openai-H5UJHSEZ.js} +15 -15
- package/dist/bundle/{process-I2QKOMM7.js → process-MGMXXPMY.js} +1 -1
- package/dist/bundle/{program-G6O3IJR2.js → program-IF36C6VR.js} +969 -1127
- package/dist/bundle/{prompt-SOG4AKPM.js → prompt-4RLIWLMF.js} +5 -5
- package/dist/bundle/{recognize-WMQLWMXH.js → recognize-UIRTMWM4.js} +4 -4
- package/dist/bundle/{remote-4BTFOLFY.js → remote-L3MNWZQK.js} +9 -9
- package/dist/bundle/{rerank-LJ3TWRNV.js → rerank-F4KZQTY6.js} +7 -7
- package/dist/bundle/{serve-B6UANKXN.js → serve-37AUYTWS.js} +10 -10
- package/dist/bundle/server-CRF4QSZR.js +86 -0
- package/dist/bundle/{server-YRH6GJ5Z.js → server-UBG676ZJ.js} +73 -61
- package/dist/bundle/source-Z7GH7T4B.js +44 -0
- package/dist/bundle/{sqlite-runtime-R7QFWFE7.js → sqlite-runtime-CI3RW7VA.js} +6 -6
- package/dist/bundle/{state-DIJ5YUOE.js → state-JOHLSLUO.js} +6 -6
- package/dist/bundle/{store-MYTYDV6A.js → store-2MBG4IUS.js} +28 -21
- package/dist/bundle/{store-6WFWW7EC.js → store-OSOUXBYL.js} +28 -23
- package/dist/bundle/store-SNW6U32Y.js +34 -0
- package/dist/bundle/store-maintenance-command-W7V54SLT.js +73 -0
- package/dist/bundle/surface-ESJS2FUI.js +72 -0
- package/dist/bundle/writer-BJDQMKUV.js +46 -0
- package/dist/commands/account.d.ts +3 -2
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +38 -77
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/crm-shared.d.ts.map +1 -1
- package/dist/commands/crm-shared.js +2 -0
- package/dist/commands/crm-shared.js.map +1 -1
- package/dist/commands/session.d.ts +23 -6
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +122 -77
- package/dist/commands/session.js.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/identity.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +0 -2
- package/dist/program.js.map +1 -1
- package/dist/reasons.js +2 -2
- package/dist/reasons.js.map +1 -1
- package/dist/setup/flow.d.ts.map +1 -1
- package/dist/setup/flow.js +74 -4
- package/dist/setup/flow.js.map +1 -1
- package/dist/setup/texts.en.json +22 -1
- package/dist/setup/texts.es.json +22 -1
- package/dist/setup/texts.ru.json +22 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/amo-cli/references/setup.md +8 -2
- package/dist/bundle/command-contract-QBUQBXH7.js +0 -39
- package/dist/bundle/first-screen-GMN3T6RW.js +0 -39
- package/dist/bundle/meeting-combined-LAMF7S2B.js +0 -24
- package/dist/bundle/server-S6XD6V6E.js +0 -77
- package/dist/bundle/source-DGFTA2TN.js +0 -42
- package/dist/bundle/store-CHWY2USQ.js +0 -32
- package/dist/bundle/store-maintenance-command-B5TMKFMG.js +0 -68
- package/dist/bundle/writer-GP7VIMAU.js +0 -44
package/dist/amo/oauth.js
CHANGED
|
@@ -6,11 +6,22 @@ import { accountOrigin } from "./account.js";
|
|
|
6
6
|
import { isRecord } from "./json.js";
|
|
7
7
|
export const PROVIDER = "amocrm";
|
|
8
8
|
/**
|
|
9
|
-
* The
|
|
10
|
-
* oauth/step-by-step). The static page forwards any `code` and `state` to the
|
|
11
|
-
* public/webhooks/apps/amo-callback.html).
|
|
9
|
+
* The Redirect URI of an integration the owner creates for `--client-id`, which amoCRM sends the browser to with
|
|
10
|
+
* `code` and `state` (amocrm.ru developers oauth/step-by-step). The static page forwards any `code` and `state` to the
|
|
11
|
+
* waiting local port (cli-docs public/webhooks/apps/amo-callback.html).
|
|
12
12
|
*/
|
|
13
13
|
export const RELAY_URL = "https://wirecat.dev/webhooks/apps/amo-callback";
|
|
14
|
+
/**
|
|
15
|
+
* The one-click sign-in runs on connect.wirecat.dev, a server in Russia (cli-docs services/amo-connect): amoCRM's
|
|
16
|
+
* servers post the new integration's keys from Russia, where Cloudflare, which serves wirecat.dev, is blocked.
|
|
17
|
+
*/
|
|
18
|
+
const CONNECT_ORIGIN = "https://connect.wirecat.dev";
|
|
19
|
+
/** The Redirect URI amoCRM's button gives the integration it creates; the same page as RELAY_URL, on that server. */
|
|
20
|
+
export const BUTTON_RELAY_URL = `${CONNECT_ORIGIN}/webhooks/apps/amo-callback`;
|
|
21
|
+
/** The page with amoCRM's button, which reads `state` from the fragment (cli-docs services/amo-connect). */
|
|
22
|
+
export const CONNECT_PAGE_URL = `${CONNECT_ORIGIN}/connect/amo.html`;
|
|
23
|
+
/** Hands over once the keys amoCRM posted for a `state`. */
|
|
24
|
+
export const CLAIM_URL = `${CONNECT_ORIGIN}/api/amo/claim`;
|
|
14
25
|
const REQUEST_MS = 30_000;
|
|
15
26
|
const HINT = /^[\w .,:'`-]{1,200}$/;
|
|
16
27
|
const account = accountTokenCodec(PROVIDER);
|
|
@@ -25,10 +36,12 @@ export const appCodec = {
|
|
|
25
36
|
const stored = account.decode(raw);
|
|
26
37
|
const entry = JSON.parse(raw);
|
|
27
38
|
const redirectUri = isRecord(entry) && typeof entry.redirectUri === "string" ? entry.redirectUri : RELAY_URL;
|
|
28
|
-
return Object.assign(stored, { redirectUri });
|
|
39
|
+
return Object.assign(stored, { redirectUri, browser: isRecord(entry) && entry.browser === true });
|
|
29
40
|
},
|
|
30
41
|
};
|
|
31
42
|
const paths = (env) => resolvePaths({ appName: IDENTITY.appName, prefix: IDENTITY.envPrefix, env });
|
|
43
|
+
/** The folder cli-core's sign-in lock lives in, beside the config. */
|
|
44
|
+
export const lockDirOf = (env) => paths(env).config;
|
|
32
45
|
const credentialsOf = (env, keyring, storage) => ({
|
|
33
46
|
configDir: paths(env).config,
|
|
34
47
|
service: IDENTITY.appName,
|
|
@@ -136,7 +149,7 @@ export const appProvider = (origin, client, redirectUri = RELAY_URL) => ({
|
|
|
136
149
|
authorizeParams: { mode: "post_message" },
|
|
137
150
|
exchange: (params, context) => exchange(origin, redirectUri, params, context),
|
|
138
151
|
});
|
|
139
|
-
const fetchFor = (origin, given) => given ?? hostFetch({ hosts: [new URL(origin).hostname], timeoutMs: REQUEST_MS });
|
|
152
|
+
export const fetchFor = (origin, given) => given ?? hostFetch({ hosts: [new URL(origin).hostname], timeoutMs: REQUEST_MS });
|
|
140
153
|
/**
|
|
141
154
|
* The integration's sign-in: authorize in the browser, exchange the code on the account the owner named, ask that
|
|
142
155
|
* account who it is, then keep it. A code from another account fails there, before anything is saved.
|
|
@@ -181,7 +194,7 @@ export const appAuthOf = (options) => {
|
|
|
181
194
|
storage,
|
|
182
195
|
lockDir: paths(options.env).config,
|
|
183
196
|
fetch: fetchFor(origin, options.fetch),
|
|
184
|
-
signInCommand: `${IDENTITY.command} ${options.profile} session start --host ${origin} --client-id ${stored.client.clientId}`,
|
|
197
|
+
signInCommand: `${IDENTITY.command} ${options.profile} session start --host ${origin} ${stored.browser ? "--one-click" : `--client-id ${stored.client.clientId}`}`,
|
|
185
198
|
...(options.signal ? { signal: options.signal } : {}),
|
|
186
199
|
});
|
|
187
200
|
return { origin, userId: stored.account.userId, accessToken: (refresh) => keeper.accessToken({ refresh }) };
|
package/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,eAAe,MAAM,CAAC,MAAM,CAAC,QAAQ,EACxE,EAAE;QACF,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACtD,CAAC,CAAA;IACF,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAA;AAC7G,CAAC,CAAA"}
|
package/dist/bin/amo.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.4.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/agent-43BMVBX2.js","../bundle/all-profiles-PRNXEZRH.js","../bundle/anthropic-FDI24DU2.js","../bundle/app-server-WAKJVDLN.js","../bundle/bun-YPXUXMBI.js","../bundle/bun-sqlite-UBQ5M47X.js","../bundle/cli-QDPKC2HJ.js","../bundle/command-contract-KWNCP3MQ.js","../bundle/command-server-entry-TX7WNN7G.js","../bundle/decode-BLPC7OYE.js","../bundle/dispatch-5JUT55CS.js","../bundle/dist-PAKDDIBT.js","../bundle/dist-T54K3FJV.js","../bundle/echarts-54D3FOCL.js","../bundle/embed-O7KMDYM7.js","../bundle/embedder-4PE67CLX.js","../bundle/failure-NNQYTB3Z.js","../bundle/first-run-EAU5SHBI.js","../bundle/first-screen-APSNGZYZ.js","../bundle/instructions-ONXP5DZQ.js","../bundle/mcp-ZNULRPZ4.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-UTQCYQF5.js","../bundle/node-sqlite-APJG6MGL.js","../bundle/oauth-TY7RMIBL.js","../bundle/open-WDVEQL75.js","../bundle/openai-H5UJHSEZ.js","../bundle/process-MGMXXPMY.js","../bundle/program-IF36C6VR.js","../bundle/prompt-4RLIWLMF.js","../bundle/recognize-UIRTMWM4.js","../bundle/remote-L3MNWZQK.js","../bundle/rerank-F4KZQTY6.js","../bundle/serve-37AUYTWS.js","../bundle/server-CRF4QSZR.js","../bundle/server-UBG676ZJ.js","../bundle/source-Z7GH7T4B.js","../bundle/sqlite-runtime-CI3RW7VA.js","../bundle/state-JOHLSLUO.js","../bundle/store-2MBG4IUS.js","../bundle/store-OSOUXBYL.js","../bundle/store-SNW6U32Y.js","../bundle/store-maintenance-command-W7V54SLT.js","../bundle/surface-ESJS2FUI.js","../bundle/writer-BJDQMKUV.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
runCommandForAgent,
|
|
5
|
+
toolsFromCommands
|
|
6
|
+
} from "./chunk-GQKEMBM6.js";
|
|
7
|
+
import "./chunk-OYMHPQF7.js";
|
|
8
|
+
import "./chunk-XEYT2EQT.js";
|
|
9
|
+
import "./chunk-3PCVQCCV.js";
|
|
10
|
+
import "./chunk-4PQECIU2.js";
|
|
11
|
+
import "./chunk-ABMPZL2P.js";
|
|
12
|
+
import "./chunk-PL5P7UKW.js";
|
|
13
|
+
import "./chunk-NKYWQTS2.js";
|
|
14
|
+
import "./chunk-M54YKD3I.js";
|
|
15
|
+
import "./chunk-G3LAYJJJ.js";
|
|
16
|
+
import "./chunk-O3WE5IGP.js";
|
|
17
|
+
import "./chunk-SMM7GS4Q.js";
|
|
18
|
+
import "./chunk-V2QWX6B3.js";
|
|
19
|
+
import "./chunk-PLU2IQXC.js";
|
|
20
|
+
import "./chunk-M33XHJTM.js";
|
|
21
|
+
import "./chunk-ELAKOEIO.js";
|
|
22
|
+
import "./chunk-E3EWS6DF.js";
|
|
23
|
+
import "./chunk-IPNIF5JE.js";
|
|
24
|
+
import "./chunk-KBAOJISR.js";
|
|
25
|
+
import "./chunk-S6DTLAOB.js";
|
|
26
|
+
import "./chunk-EAX5RO7S.js";
|
|
27
|
+
import "./chunk-FQRP6JWX.js";
|
|
28
|
+
import "./chunk-GMHRPX5M.js";
|
|
29
|
+
import "./chunk-TCSVW7BA.js";
|
|
30
|
+
import "./chunk-YFRTEJ6V.js";
|
|
31
|
+
import "./chunk-ZKRWNL4T.js";
|
|
32
|
+
import "./chunk-SCMB4LI6.js";
|
|
33
|
+
import "./chunk-7OVTUADG.js";
|
|
34
|
+
import "./chunk-Y5E2WNWB.js";
|
|
35
|
+
import "./chunk-AP3CWDRK.js";
|
|
36
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
37
|
+
export {
|
|
38
|
+
runCommandForAgent,
|
|
39
|
+
toolsFromCommands
|
|
40
|
+
};
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
-
CALLER_META_KEY,
|
|
5
|
-
PROXY_CLIENT_NAME,
|
|
6
4
|
StdioServerTransport,
|
|
7
5
|
answeredWire,
|
|
8
|
-
callerOf,
|
|
9
6
|
serveStdio
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V5SETIQK.js";
|
|
8
|
+
import {
|
|
9
|
+
CALLER_META_KEY,
|
|
10
|
+
PROXY_CLIENT_NAME,
|
|
11
|
+
callerOf
|
|
12
|
+
} from "./chunk-3PCVQCCV.js";
|
|
11
13
|
import {
|
|
14
|
+
InMemoryTransport,
|
|
12
15
|
McpServer
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-PL5P7UKW.js";
|
|
17
|
+
import "./chunk-M54YKD3I.js";
|
|
18
|
+
import "./chunk-ELAKOEIO.js";
|
|
19
|
+
import "./chunk-EAX5RO7S.js";
|
|
20
|
+
import "./chunk-TCSVW7BA.js";
|
|
21
|
+
import "./chunk-SCMB4LI6.js";
|
|
19
22
|
import {
|
|
20
23
|
errorObjectOf,
|
|
21
24
|
mcpErrorResult
|
|
22
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-7OVTUADG.js";
|
|
23
26
|
import "./chunk-Y5E2WNWB.js";
|
|
24
27
|
import {
|
|
25
28
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AP3CWDRK.js";
|
|
27
30
|
import {
|
|
28
31
|
__name
|
|
29
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
33
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
35
|
import { spawn } from "node:child_process";
|
|
33
36
|
import { randomUUID } from "node:crypto";
|
|
34
37
|
var PROTOCOL = "2025-06-18";
|
|
@@ -169,13 +172,16 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
|
|
|
169
172
|
inputSchema: {
|
|
170
173
|
...tool.inputSchema,
|
|
171
174
|
properties: {
|
|
172
|
-
profile:
|
|
175
|
+
profile: profiles.length === 0 ? (
|
|
176
|
+
// An empty enum matches nothing, and a directory that checks the schema refuses the tool.
|
|
177
|
+
{
|
|
178
|
+
type: "string",
|
|
179
|
+
description: `Which ${name} account, by its profile. None is set up on this computer yet.`
|
|
180
|
+
}
|
|
181
|
+
) : {
|
|
173
182
|
type: "string",
|
|
174
183
|
enum: [...profiles],
|
|
175
|
-
oneOf: profiles.map((
|
|
176
|
-
const: profile,
|
|
177
|
-
title: signedIn(profile) ? profile : `${profile} \u2014 not signed in`
|
|
178
|
-
})),
|
|
184
|
+
oneOf: profiles.map((one) => ({ const: one, title: signedIn(one) ? one : `${one} \u2014 not signed in` })),
|
|
179
185
|
description: `Which ${name} account, by its profile. If the owner did not name one, ask which \u2014 never guess.${states}`
|
|
180
186
|
},
|
|
181
187
|
...schema.properties
|
|
@@ -198,9 +204,14 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
198
204
|
const signedIn = /* @__PURE__ */ __name((profile) => options.signedIn?.(profile) ?? true, "signedIn");
|
|
199
205
|
const build = /* @__PURE__ */ __name(() => {
|
|
200
206
|
const profiles = [...options.profiles()].sort();
|
|
201
|
-
const server = new McpServer({ name: options.command, version: options.version }, {
|
|
207
|
+
const server = new McpServer({ name: options.command, version: options.version }, {
|
|
208
|
+
capabilities: { tools: {} },
|
|
209
|
+
// Read per session, as the profiles are: clients cut the instructions short, so this line comes first.
|
|
210
|
+
instructions: profiles.length === 0 && options.setup ? `${options.setup.charAt(0).toUpperCase()}${options.setup.slice(1)}.
|
|
211
|
+
${options.instructions}` : options.instructions
|
|
212
|
+
});
|
|
202
213
|
server.server.setRequestHandler("tools/list", async () => ({
|
|
203
|
-
tools: profiles.length === 0 ? [] :
|
|
214
|
+
tools: (profiles.length === 0 ? await options.catalogue?.() ?? [] : await tools(profiles)).map((one) => withProfile(one, profiles, options.name, signedIn))
|
|
204
215
|
}));
|
|
205
216
|
const callers = {
|
|
206
217
|
env: options.env ?? process.env,
|
|
@@ -210,6 +221,8 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
210
221
|
server.server.setRequestHandler("tools/call", async (request, ctx) => {
|
|
211
222
|
const { name, arguments: given = {}, _meta } = request.params;
|
|
212
223
|
const { profile, ...rest } = given;
|
|
224
|
+
if (profiles.length === 0)
|
|
225
|
+
return refusal("configuration_error", options.setup ?? `no ${options.command} profile on this computer yet.`);
|
|
213
226
|
if (typeof profile !== "string" || !profiles.includes(profile))
|
|
214
227
|
return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
215
228
|
if (!signedIn(profile))
|
|
@@ -231,6 +244,34 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
231
244
|
}, "build");
|
|
232
245
|
return { build, close: /* @__PURE__ */ __name(() => children.close(), "close") };
|
|
233
246
|
}, "allProfilesServer");
|
|
247
|
+
var listedTools = /* @__PURE__ */ __name(async (server) => {
|
|
248
|
+
const [own, other] = InMemoryTransport.createLinkedPair();
|
|
249
|
+
const answers = /* @__PURE__ */ new Map();
|
|
250
|
+
other.onmessage = (message) => {
|
|
251
|
+
const { id, result, error } = message;
|
|
252
|
+
if (typeof id === "number")
|
|
253
|
+
answers.get(id)?.(result, error);
|
|
254
|
+
};
|
|
255
|
+
const ask = /* @__PURE__ */ __name((id, method, params) => new Promise((resolve, reject) => {
|
|
256
|
+
answers.set(id, (result, error) => error || !result ? reject(new Error(error?.message ?? `${method} had no answer`)) : resolve(result));
|
|
257
|
+
void other.send({ jsonrpc: "2.0", id, method, params });
|
|
258
|
+
}), "ask");
|
|
259
|
+
await server.connect(own);
|
|
260
|
+
try {
|
|
261
|
+
await ask(1, "initialize", {
|
|
262
|
+
protocolVersion: PROTOCOL,
|
|
263
|
+
capabilities: {},
|
|
264
|
+
clientInfo: { name: PROXY_CLIENT_NAME, version: "1" }
|
|
265
|
+
});
|
|
266
|
+
await other.send({ jsonrpc: "2.0", method: "notifications/initialized" });
|
|
267
|
+
const answer = await ask(2, "tools/list", {});
|
|
268
|
+
if (!Array.isArray(answer.tools))
|
|
269
|
+
throw new Error("the catalogue server listed no tools");
|
|
270
|
+
return answer.tools;
|
|
271
|
+
} finally {
|
|
272
|
+
await server.close();
|
|
273
|
+
}
|
|
274
|
+
}, "listedTools");
|
|
234
275
|
var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {}) => {
|
|
235
276
|
const { build, close } = allProfilesServer(options);
|
|
236
277
|
const own = io.stdin !== void 0 && io.stdin !== process.stdin;
|
|
@@ -249,7 +290,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
249
290
|
}, "serveAllProfilesOverStdio");
|
|
250
291
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
251
292
|
const { build, close } = allProfilesServer(options);
|
|
252
|
-
const { serveOverHttp } = await import("./serve-
|
|
293
|
+
const { serveOverHttp } = await import("./serve-37AUYTWS.js");
|
|
253
294
|
const listening = await serveOverHttp(build, {
|
|
254
295
|
...http,
|
|
255
296
|
appName: options.command,
|
|
@@ -272,6 +313,7 @@ var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
|
272
313
|
export {
|
|
273
314
|
CHILD_IDLE_MS,
|
|
274
315
|
allProfilesServer,
|
|
316
|
+
listedTools,
|
|
275
317
|
serveAllProfilesOverHttp,
|
|
276
318
|
serveAllProfilesOverStdio,
|
|
277
319
|
withProfile
|
package/dist/bundle/amo.js
CHANGED
|
@@ -3,24 +3,25 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
DESKTOP
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-VVHRQ46X.js";
|
|
10
|
-
import "./chunk-LSND5QYI.js";
|
|
6
|
+
} from "./chunk-WAFB3IWJ.js";
|
|
7
|
+
import "./chunk-RQPB2BSH.js";
|
|
8
|
+
import "./chunk-PIOR6PIO.js";
|
|
11
9
|
import "./chunk-EH6ZEJGT.js";
|
|
10
|
+
import "./chunk-UCM7C773.js";
|
|
11
|
+
import "./chunk-MW7HUD6R.js";
|
|
12
12
|
import {
|
|
13
13
|
installerOf
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-745FMNI5.js";
|
|
15
|
+
import "./chunk-KBAOJISR.js";
|
|
16
|
+
import "./chunk-SHOSFYI7.js";
|
|
17
|
+
import "./chunk-2UJ7ZZZC.js";
|
|
18
|
+
import "./chunk-SFZVMKB6.js";
|
|
19
|
+
import "./chunk-S6DTLAOB.js";
|
|
20
|
+
import "./chunk-EAX5RO7S.js";
|
|
21
|
+
import "./chunk-FQRP6JWX.js";
|
|
22
|
+
import "./chunk-GMHRPX5M.js";
|
|
23
|
+
import "./chunk-TCSVW7BA.js";
|
|
24
|
+
import "./chunk-YFRTEJ6V.js";
|
|
24
25
|
import {
|
|
25
26
|
DESCRIBE_FLAG,
|
|
26
27
|
DISPATCH_FLAG,
|
|
@@ -31,15 +32,16 @@ import {
|
|
|
31
32
|
fileState,
|
|
32
33
|
shimFiles,
|
|
33
34
|
writeShim
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-WASBOYI2.js";
|
|
36
|
+
import "./chunk-VG2ERHFJ.js";
|
|
37
|
+
import "./chunk-ASU63X5C.js";
|
|
38
|
+
import "./chunk-ZKRWNL4T.js";
|
|
39
|
+
import "./chunk-SCMB4LI6.js";
|
|
38
40
|
import {
|
|
39
41
|
catchCrashes
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7OVTUADG.js";
|
|
41
43
|
import "./chunk-Y5E2WNWB.js";
|
|
42
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-AP3CWDRK.js";
|
|
43
45
|
import {
|
|
44
46
|
__name
|
|
45
47
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -47,13 +49,13 @@ import {
|
|
|
47
49
|
// dist/bin/amo.js
|
|
48
50
|
import { enableCompileCache } from "node:module";
|
|
49
51
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
52
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
|
|
51
53
|
import { createHash } from "node:crypto";
|
|
52
54
|
import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
53
55
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
54
56
|
import { fileURLToPath } from "node:url";
|
|
55
57
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
58
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
|
|
57
59
|
import { readFileSync } from "node:fs";
|
|
58
60
|
import { basename, dirname, join, resolve } from "node:path";
|
|
59
61
|
var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
|
|
@@ -139,7 +141,7 @@ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
|
|
|
139
141
|
}
|
|
140
142
|
}, "ensureLauncher");
|
|
141
143
|
|
|
142
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
144
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/start.js
|
|
143
145
|
var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
144
146
|
const argv = io.argv ?? process.argv;
|
|
145
147
|
const env = io.env ?? process.env;
|
|
@@ -152,7 +154,7 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
|
152
154
|
return { code: 0 };
|
|
153
155
|
}
|
|
154
156
|
if (first === DISPATCH_FLAG) {
|
|
155
|
-
const { runWcat } = await import("./dispatch-
|
|
157
|
+
const { runWcat } = await import("./dispatch-5JUT55CS.js");
|
|
156
158
|
const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
|
|
157
159
|
return { code };
|
|
158
160
|
}
|
|
@@ -192,7 +194,7 @@ var wcat = await wcatStart(DESKTOP);
|
|
|
192
194
|
if (wcat.code !== void 0) {
|
|
193
195
|
process.exitCode = wcat.code;
|
|
194
196
|
} else {
|
|
195
|
-
const { run } = await import("./program-
|
|
197
|
+
const { run } = await import("./program-IF36C6VR.js");
|
|
196
198
|
process.exitCode = await run(process.argv.slice(2));
|
|
197
199
|
}
|
|
198
200
|
stopCatching();
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LAR2DLTI.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-ADLS6FVG.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SCMB4LI6.js";
|
|
13
13
|
import {
|
|
14
14
|
array,
|
|
15
15
|
literal,
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
strictObject,
|
|
20
20
|
string,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7OVTUADG.js";
|
|
23
23
|
import "./chunk-Y5E2WNWB.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-AP3CWDRK.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
30
30
|
var options = strictObject({
|
|
31
31
|
stop_sequences: optional(array(string())),
|
|
32
32
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,49 +3,59 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FEUNZG7U.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-L6AFE73L.js";
|
|
9
|
+
} from "./chunk-KRD375P7.js";
|
|
11
10
|
import {
|
|
12
|
-
answered,
|
|
13
|
-
failed,
|
|
14
|
-
registerCommands,
|
|
15
|
-
runCommandForAgent,
|
|
16
|
-
toolsFromCommands
|
|
17
|
-
} from "./chunk-O2UCU52O.js";
|
|
18
|
-
import {
|
|
19
|
-
agentJson,
|
|
20
11
|
skillResources
|
|
21
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YHVHDRED.js";
|
|
22
13
|
import {
|
|
23
14
|
StdioServerTransport,
|
|
24
15
|
answeredWire,
|
|
25
16
|
serveStdio
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
} from "./chunk-V5SETIQK.js";
|
|
18
|
+
import "./chunk-UEN5NWNW.js";
|
|
19
|
+
import "./chunk-A4W7J6VN.js";
|
|
20
|
+
import "./chunk-WR2FPZTE.js";
|
|
21
|
+
import {
|
|
22
|
+
runCommandForAgent,
|
|
23
|
+
toolsFromCommands
|
|
24
|
+
} from "./chunk-GQKEMBM6.js";
|
|
25
|
+
import "./chunk-OYMHPQF7.js";
|
|
26
|
+
import "./chunk-XEYT2EQT.js";
|
|
34
27
|
import {
|
|
35
28
|
appInstructions
|
|
36
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SNBYFQHT.js";
|
|
30
|
+
import {
|
|
31
|
+
answered,
|
|
32
|
+
failed,
|
|
33
|
+
registerCommands
|
|
34
|
+
} from "./chunk-23AQD7JU.js";
|
|
35
|
+
import {
|
|
36
|
+
agentJson
|
|
37
|
+
} from "./chunk-DWA5TZMP.js";
|
|
38
|
+
import "./chunk-TIR3AB35.js";
|
|
39
|
+
import "./chunk-ZJC2XJQC.js";
|
|
40
|
+
import "./chunk-2AIG2SSJ.js";
|
|
41
|
+
import "./chunk-QGFURWEP.js";
|
|
42
|
+
import "./chunk-SZX7EPPY.js";
|
|
43
|
+
import "./chunk-3WG4MTQI.js";
|
|
44
|
+
import "./chunk-3PCVQCCV.js";
|
|
45
|
+
import "./chunk-4PQECIU2.js";
|
|
46
|
+
import "./chunk-ABMPZL2P.js";
|
|
37
47
|
import {
|
|
38
48
|
McpServer
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-PL5P7UKW.js";
|
|
50
|
+
import "./chunk-LAR2DLTI.js";
|
|
51
|
+
import "./chunk-5HZMXHRH.js";
|
|
52
|
+
import "./chunk-Z2B3VNRI.js";
|
|
53
|
+
import "./chunk-CYHIM5SL.js";
|
|
44
54
|
import {
|
|
45
55
|
mcpHttpMarker
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-YREKMP24.js";
|
|
57
|
+
import "./chunk-U46RNOEQ.js";
|
|
58
|
+
import "./chunk-AN6IJYH3.js";
|
|
49
59
|
import {
|
|
50
60
|
DEFAULT_OUTPUT_BYTES,
|
|
51
61
|
changesAuthorityAt,
|
|
@@ -56,54 +66,55 @@ import {
|
|
|
56
66
|
readOnlyLockOf,
|
|
57
67
|
readsOverMcpAt,
|
|
58
68
|
rootOf2 as rootOf
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-NKYWQTS2.js";
|
|
70
|
+
import "./chunk-M54YKD3I.js";
|
|
71
|
+
import "./chunk-G3LAYJJJ.js";
|
|
72
|
+
import "./chunk-O3WE5IGP.js";
|
|
73
|
+
import "./chunk-SMM7GS4Q.js";
|
|
74
|
+
import "./chunk-KQZTX4LM.js";
|
|
75
|
+
import "./chunk-V2QWX6B3.js";
|
|
76
|
+
import "./chunk-TEGQVVCZ.js";
|
|
77
|
+
import "./chunk-6QMSKJB4.js";
|
|
78
|
+
import "./chunk-PLU2IQXC.js";
|
|
79
|
+
import "./chunk-IBEHYGG6.js";
|
|
80
|
+
import "./chunk-M33XHJTM.js";
|
|
81
|
+
import "./chunk-ELAKOEIO.js";
|
|
82
|
+
import "./chunk-BCIZAUDV.js";
|
|
83
|
+
import "./chunk-E3EWS6DF.js";
|
|
84
|
+
import "./chunk-3K6T2G52.js";
|
|
85
|
+
import "./chunk-IPNIF5JE.js";
|
|
86
|
+
import "./chunk-UCM7C773.js";
|
|
87
|
+
import "./chunk-MW7HUD6R.js";
|
|
88
|
+
import "./chunk-745FMNI5.js";
|
|
89
|
+
import "./chunk-KBAOJISR.js";
|
|
90
|
+
import "./chunk-SHOSFYI7.js";
|
|
91
|
+
import "./chunk-2UJ7ZZZC.js";
|
|
92
|
+
import "./chunk-SFZVMKB6.js";
|
|
93
|
+
import "./chunk-S6DTLAOB.js";
|
|
94
|
+
import "./chunk-EAX5RO7S.js";
|
|
95
|
+
import "./chunk-FQRP6JWX.js";
|
|
96
|
+
import "./chunk-GMHRPX5M.js";
|
|
97
|
+
import "./chunk-TCSVW7BA.js";
|
|
98
|
+
import "./chunk-YFRTEJ6V.js";
|
|
88
99
|
import "./chunk-D72URWJE.js";
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-ASU63X5C.js";
|
|
101
|
+
import "./chunk-ZKRWNL4T.js";
|
|
102
|
+
import "./chunk-NXNUCGGO.js";
|
|
103
|
+
import "./chunk-KORZEYZN.js";
|
|
104
|
+
import "./chunk-SCMB4LI6.js";
|
|
94
105
|
import {
|
|
95
106
|
mcpErrorResult
|
|
96
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-7OVTUADG.js";
|
|
97
108
|
import "./chunk-Y5E2WNWB.js";
|
|
98
109
|
import {
|
|
99
110
|
CliError
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
111
|
+
} from "./chunk-AP3CWDRK.js";
|
|
112
|
+
import "./chunk-EBNCUQLV.js";
|
|
102
113
|
import {
|
|
103
114
|
__name
|
|
104
115
|
} from "./chunk-ZVVMGPBJ.js";
|
|
105
116
|
|
|
106
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.127.0_commander@15.0.0_esbuild@0.28.2_typ_d2bed0cfbe6b4358c89d465b9e07afcb/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
107
118
|
var EXCLUDED = [["mcp"]];
|
|
108
119
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
109
120
|
let at = root;
|
|
@@ -219,7 +230,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
219
230
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
220
231
|
const { app } = options;
|
|
221
232
|
const { build } = createAppServer(command, context, options);
|
|
222
|
-
const { serveOverHttp } = await import("./serve-
|
|
233
|
+
const { serveOverHttp } = await import("./serve-37AUYTWS.js");
|
|
223
234
|
const listening = await serveOverHttp(build, {
|
|
224
235
|
...http,
|
|
225
236
|
appName: app.command,
|