@wirecat/attio-cli 0.5.3 → 0.7.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 +29 -0
- package/README.md +4 -4
- package/contracts/wirecat.json +45 -0
- package/dist/activities.d.ts +4 -0
- package/dist/activities.d.ts.map +1 -0
- package/dist/activities.js +83 -0
- package/dist/activities.js.map +1 -0
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-GUXXSLT5.js +38 -0
- package/dist/bundle/{all-profiles-ONLZNT2O.js → all-profiles-63N3EQ46.js} +10 -10
- package/dist/bundle/{anthropic-7NHDUCS7.js → anthropic-B4W7MZQE.js} +5 -5
- package/dist/bundle/{app-server-76UZBJNR.js → app-server-EXNGTHWO.js} +62 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-3M7LDMJY.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-WWPYULNT.js → bun-sqlite-NBAY7FR2.js} +6 -6
- package/dist/bundle/{chunk-H7RYW7CD.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-GHT7KPTC.js → chunk-2QDUP74I.js} +34 -34
- package/dist/bundle/{chunk-LQDZSJ3V.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-TL7NUBVM.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-3MZREGLN.js → chunk-3MSHGNVE.js} +12 -12
- package/dist/bundle/{chunk-A5A2I2DY.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-2HU7TYQK.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-3TFPJCTB.js → chunk-4RBMCXZT.js} +25 -25
- package/dist/bundle/{chunk-TVDBAZFO.js → chunk-4RSWOPKL.js} +13 -9
- package/dist/bundle/{chunk-SCBLAAZU.js → chunk-5JKTVAXX.js} +19 -19
- package/dist/bundle/chunk-5N2V6XO7.js +119 -0
- package/dist/bundle/{chunk-RDXB7HFB.js → chunk-5WD22IXQ.js} +3 -3
- package/dist/bundle/{chunk-RUNJPSJ3.js → chunk-6K4Z6CAM.js} +574 -599
- package/dist/bundle/{chunk-6MPA7CKD.js → chunk-6TD3DCWC.js} +2 -2
- package/dist/bundle/{chunk-Y2HZQMNK.js → chunk-7Z53MLQP.js} +7 -7
- package/dist/bundle/chunk-AATTOFNY.js +2045 -0
- package/dist/bundle/{chunk-OLKDUVWD.js → chunk-APARYILG.js} +19 -15
- package/dist/bundle/{chunk-S3SA2XXD.js → chunk-DM7KWVDZ.js} +47 -31
- package/dist/bundle/{chunk-VHPNTMJJ.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-PYFVVNAD.js → chunk-DPD4FMHN.js} +6 -6
- package/dist/bundle/{chunk-LJLUYRPY.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-NN7Z5RK6.js → chunk-DURNR4RO.js} +8 -8
- package/dist/bundle/{chunk-PZBQH5B7.js → chunk-EVUMQKV7.js} +3 -3
- package/dist/bundle/{chunk-3QYMX2QX.js → chunk-EY36BTKZ.js} +2 -2
- package/dist/bundle/{chunk-ABMNYUSQ.js → chunk-FH6OEGGN.js} +14 -14
- package/dist/bundle/{chunk-M62QM7VF.js → chunk-FOP6G45D.js} +10 -10
- package/dist/bundle/{chunk-PQHS4Z5G.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-UFFAPBAP.js → chunk-GTEX4IUO.js} +5 -5
- package/dist/bundle/{chunk-INCLKCAJ.js → chunk-HZ3C4WXD.js} +3 -3
- package/dist/bundle/{chunk-764RTGNI.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-WVXEVCMY.js → chunk-J6GVVISK.js} +8 -8
- package/dist/bundle/{chunk-T3QKHFGB.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-KTGIA7CC.js → chunk-JIGEJZ4I.js} +6650 -4822
- package/dist/bundle/{chunk-BSPMRKPS.js → chunk-KVTNYRDO.js} +6 -6
- package/dist/bundle/{chunk-LSFZSGQK.js → chunk-L45WN3AR.js} +3 -3
- package/dist/bundle/{chunk-FVBZHGFE.js → chunk-L72WUJAS.js} +2 -2
- package/dist/bundle/{chunk-KWJ4GAYR.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-V6RWAUX7.js → chunk-LM3W7YOM.js} +4 -4
- package/dist/bundle/{chunk-6MEPMDWU.js → chunk-M4AC55ZB.js} +165 -158
- package/dist/bundle/{chunk-STEUWWU5.js → chunk-MCLQTCGH.js} +91 -55
- package/dist/bundle/{chunk-X6NSSCMF.js → chunk-NB7EOAUZ.js} +1 -1
- package/dist/bundle/{chunk-WUECAFAJ.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-VNGG6O5T.js → chunk-OYEVYOCL.js} +6 -6
- package/dist/bundle/{chunk-NCYBA5FH.js → chunk-P7G5HFY3.js} +2 -2
- package/dist/bundle/{chunk-T2TW53JB.js → chunk-PAEKXVJW.js} +8 -8
- package/dist/bundle/{chunk-HPYDPVGU.js → chunk-PLPBEWD4.js} +3 -3
- package/dist/bundle/{chunk-PZE4D63W.js → chunk-PMQ7GP6X.js} +6 -6
- package/dist/bundle/{chunk-TF33UDFE.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-DDFQEOLX.js → chunk-QPPOIWPY.js} +8 -8
- package/dist/bundle/{chunk-MUDJABVF.js → chunk-QSJKSPWF.js} +4 -4
- package/dist/bundle/{chunk-PVZK2COW.js → chunk-RDVTHFPP.js} +5 -5
- package/dist/bundle/{chunk-N6VLRVCC.js → chunk-RQORQN2V.js} +61 -61
- package/dist/bundle/{chunk-U3KTIE6B.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-TSHMRHL6.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-YQNZFXOW.js → chunk-SCI7QEHF.js} +7 -7
- package/dist/bundle/{chunk-VIXMK7ZG.js → chunk-SSA6JBPA.js} +7 -7
- package/dist/bundle/{chunk-V2AF7BYP.js → chunk-T4J7XFXT.js} +181 -110
- package/dist/bundle/{chunk-F5IGO45Z.js → chunk-TTF5DP4V.js} +7 -7
- package/dist/bundle/{chunk-K34B37AP.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-BFESDJPU.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-EKRO2AYG.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-NGVO2UTA.js → chunk-UKHF37ZU.js} +17 -17
- package/dist/bundle/{chunk-MFPYCWMY.js → chunk-V57E7PJQ.js} +4 -4
- package/dist/bundle/{chunk-DOTBJMPB.js → chunk-V7IF2K3P.js} +3 -3
- package/dist/bundle/{chunk-S552I4P7.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-7ONN7UCC.js → chunk-VZ5PPYDG.js} +1 -1
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-AYF2JNHE.js → chunk-WXQGA6XK.js} +3 -3
- package/dist/bundle/{chunk-NKVJV5GN.js → chunk-X5UPBSTP.js} +1 -1
- package/dist/bundle/{chunk-65OPLJBL.js → chunk-XQGN2D44.js} +3 -3
- package/dist/bundle/{chunk-HGD4JW37.js → chunk-YNGU36GW.js} +12 -12
- package/dist/bundle/{chunk-JRHDYND7.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-QRHPXZST.js → chunk-ZZD2YPOX.js} +3 -3
- package/dist/bundle/command-contract-KCCW4LNI.js +37 -0
- package/dist/bundle/{command-server-entry-6UEGWYW7.js → command-server-entry-3NPPABQQ.js} +25 -25
- package/dist/bundle/{decode-BF2CNTOP.js → decode-26M7XE2B.js} +5 -5
- package/dist/bundle/{dispatch-ZRVKJENQ.js → dispatch-2FTOHA5D.js} +8 -8
- package/dist/bundle/{echarts-ELZMS7DC.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-SXU7JVUG.js → embed-XJLEAWXE.js} +6 -6
- package/dist/bundle/{embedder-ZVNBHGXC.js → embedder-OEL6PXEH.js} +9 -9
- package/dist/bundle/{failure-C2B7PYPJ.js → failure-OHIXWTR6.js} +2 -2
- package/dist/bundle/{first-run-SLIPSHPE.js → first-run-CIXGBXY6.js} +12 -12
- package/dist/bundle/first-screen-5FK4D45F.js +38 -0
- package/dist/bundle/{instructions-Q6QKH7MV.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/{mcp-VNOYBWW2.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-DMVGQNJ7.js +24 -0
- package/dist/bundle/{meeting-model-XJ6OWIAP.js → meeting-model-2THAT7OH.js} +11 -11
- package/dist/bundle/{meeting-semantic-7TJE4HX6.js → meeting-semantic-Q6XYFYUD.js} +6 -6
- package/dist/bundle/{node-YNLEE4BB.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-24VK6J3W.js → node-sqlite-2SWWGW6H.js} +7 -7
- package/dist/bundle/{oauth-4TLSBITF.js → oauth-V5LGTXF2.js} +7 -7
- package/dist/bundle/{open-U6M2RLYK.js → open-25EKOTZA.js} +5 -5
- package/dist/bundle/{openai-UKD2XQ5J.js → openai-VX3OLIHM.js} +15 -15
- package/dist/bundle/{process-UIE2CRFP.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-HXMBQWIM.js → program-F37JH2SO.js} +728 -644
- package/dist/bundle/{prompt-TSDXFP3E.js → prompt-2VSPX5S7.js} +5 -5
- package/dist/bundle/{recognize-Y534SZIK.js → recognize-NA5XUFKK.js} +4 -4
- package/dist/bundle/{remote-PJNOYKXU.js → remote-BOME6XOE.js} +9 -9
- package/dist/bundle/{rerank-TE4HIS5A.js → rerank-NG3XMFCV.js} +7 -7
- package/dist/bundle/{schemas-7JX36UC7.js → schemas-YGSTNU6F.js} +1 -1
- package/dist/bundle/{serve-ZOZWJKHB.js → serve-MR67OBED.js} +9 -9
- package/dist/bundle/server-4BWAGJQO.js +80 -0
- package/dist/bundle/{server-3K4IC4OA.js → server-OP2HJNXD.js} +54 -53
- package/dist/bundle/{sqlite-runtime-6R6CHLEM.js → sqlite-runtime-V5U6F5EB.js} +6 -6
- package/dist/bundle/{state-DFAH57DP.js → state-L4MWAATO.js} +6 -6
- package/dist/bundle/{store-LPO5SHGK.js → store-2ALTEH55.js} +18 -18
- package/dist/bundle/{store-6B5JF2LC.js → store-CXZFRG5D.js} +22 -20
- package/dist/bundle/store-maintenance-command-LC55DRQA.js +67 -0
- package/dist/bundle/surface-3GRJ7473.js +66 -0
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +4 -1
- package/dist/commands/crm.js.map +1 -1
- package/dist/config.d.ts +4 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +6 -2
- package/dist/config.js.map +1 -1
- package/dist/generated/definitions.d.ts +1 -1
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/manifest.d.ts +1 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js.map +1 -1
- package/dist/hooks.d.ts +37 -0
- package/dist/hooks.d.ts.map +1 -1
- package/dist/hooks.js +3 -3
- package/dist/hooks.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/attio-cli/SKILL.md +8 -7
- package/dist/bundle/agent-YCPGDAWJ.js +0 -37
- package/dist/bundle/chunk-J3ZQ4JWD.js +0 -2021
- package/dist/bundle/chunk-YJKP6UZC.js +0 -37
- package/dist/bundle/command-contract-7BABQLZN.js +0 -37
- package/dist/bundle/first-screen-UPNPU4MF.js +0 -37
- package/dist/bundle/meeting-combined-DLXVVC5J.js +0 -24
- package/dist/bundle/server-HPHPHKNF.js +0 -79
- package/dist/bundle/store-maintenance-command-UBNM3ADW.js +0 -66
- package/dist/bundle/surface-WQ7UR2NJ.js +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/attio-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.7.0 — 25.11.2026
|
|
6
|
+
|
|
7
|
+
### Changed — may break callers
|
|
8
|
+
|
|
9
|
+
- **attio is built on cli-core 1.0.0 and cli-base 1.0.0.** After its first run the store is at version 73, and only
|
|
10
|
+
tools on cli-core 1.0 open it: upgrade every WireCat CLI on this computer together. The migration keeps a rollback
|
|
11
|
+
copy, and refuses to run when it cannot write one (`store migrate --no-backup` migrates anyway).
|
|
12
|
+
- **`sync --rescan` no longer lets a sync mark most of a kind deleted.** It only lists everything again. When the
|
|
13
|
+
guard holds a pass, `sync --allow-deletions <count>` lets it mark at most that many records deleted. The flag is
|
|
14
|
+
for the owner in a terminal; the MCP server does not offer it.
|
|
15
|
+
- **A sync no longer marks records deleted when Attio could not list a whole kind.** The id pass is held until a
|
|
16
|
+
full list comes back.
|
|
17
|
+
- **An MCP call that names a refused folder answers `permission_error`**, not `validation_error`.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- **The command reference's contents list names notes and tasks.** The `activities` commands were on the page but
|
|
22
|
+
missing from the list at its top ([commands](docs/commands.md#attio-activities)).
|
|
23
|
+
|
|
24
|
+
## 0.6.0 — 25.11.2026
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- **Add a note or a task to a deal, a person or a company.** `activities create comment` adds a note,
|
|
29
|
+
`activities create task` a task with a title, a text and a deadline, and `activities close` marks a task done.
|
|
30
|
+
Each asks first, as every change to Attio does. `activities list` lists the notes and tasks the copy holds, open
|
|
31
|
+
tasks first. Adding them needs the token's `note:read-write` and `task:read-write` scopes
|
|
32
|
+
([usage](docs/usage.md#notes-and-tasks-on-a-deal)).
|
|
33
|
+
|
|
5
34
|
## 0.5.3 — 25.11.2026
|
|
6
35
|
|
|
7
36
|
### Fixed
|
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Agent: (runs attio work changes list change:won "at>=7d")
|
|
|
60
60
|
- **Your CRM beside your other context.** Deals sit in the same local store as your messages, mail, notes and
|
|
61
61
|
meetings from the other WireCat tools, so one search covers all of them.
|
|
62
62
|
- **The whole Attio API too.** Every operation is a command with its own help, for what has no command of its own
|
|
63
|
-
yet:
|
|
63
|
+
yet: lists, custom objects, meetings.
|
|
64
64
|
- **Free and open source.** Apache 2.0.
|
|
65
65
|
|
|
66
66
|
## Quick start
|
|
@@ -193,9 +193,9 @@ More: [permissions](https://github.com/WireCatLabs/attio-cli/blob/main/docs/perm
|
|
|
193
193
|
|
|
194
194
|
## Limits
|
|
195
195
|
|
|
196
|
-
-
|
|
197
|
-
[roadmap](https://github.com/WireCatLabs/attio-cli/blob/main/docs/roadmap.md). Reading notes and tasks
|
|
198
|
-
|
|
196
|
+
- Custom objects, lists and a one-click sign-in are on the
|
|
197
|
+
[roadmap](https://github.com/WireCatLabs/attio-cli/blob/main/docs/roadmap.md). Reading notes and tasks needs the
|
|
198
|
+
`activities` setting on.
|
|
199
199
|
- Only a workspace admin can make the token, and it reads the whole workspace.
|
|
200
200
|
- Attio documents 100 reads and 25 writes a second
|
|
201
201
|
([rate limits](https://docs.attio.com/rest-api/guides/rate-limiting)).
|
package/contracts/wirecat.json
CHANGED
|
@@ -1822,6 +1822,45 @@
|
|
|
1822
1822
|
"permission": "users.show",
|
|
1823
1823
|
"entity": "crm_user"
|
|
1824
1824
|
},
|
|
1825
|
+
{
|
|
1826
|
+
"path": [
|
|
1827
|
+
"activities",
|
|
1828
|
+
"list"
|
|
1829
|
+
],
|
|
1830
|
+
"summary": "activities copied from the CRM, open ones first by due time, then the rest…",
|
|
1831
|
+
"effects": {
|
|
1832
|
+
"remote": "none",
|
|
1833
|
+
"local": "read"
|
|
1834
|
+
},
|
|
1835
|
+
"permission": "activities.list",
|
|
1836
|
+
"entity": "crm_activity"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"path": [
|
|
1840
|
+
"activities",
|
|
1841
|
+
"create"
|
|
1842
|
+
],
|
|
1843
|
+
"summary": "add a comment or task to records of the CRM, then store the CRM's copy of it…",
|
|
1844
|
+
"effects": {
|
|
1845
|
+
"remote": "write",
|
|
1846
|
+
"local": "write"
|
|
1847
|
+
},
|
|
1848
|
+
"permission": "activities.create",
|
|
1849
|
+
"entity": "crm_activity_write"
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
"path": [
|
|
1853
|
+
"activities",
|
|
1854
|
+
"close"
|
|
1855
|
+
],
|
|
1856
|
+
"summary": "mark a task done in the CRM, then store the CRM's copy of it when the…",
|
|
1857
|
+
"effects": {
|
|
1858
|
+
"remote": "write",
|
|
1859
|
+
"local": "write"
|
|
1860
|
+
},
|
|
1861
|
+
"permission": "activities.close",
|
|
1862
|
+
"entity": "crm_activity_write"
|
|
1863
|
+
},
|
|
1825
1864
|
{
|
|
1826
1865
|
"path": [
|
|
1827
1866
|
"changes",
|
|
@@ -2297,6 +2336,12 @@
|
|
|
2297
2336
|
"department_ids"
|
|
2298
2337
|
]
|
|
2299
2338
|
},
|
|
2339
|
+
"crm_activity": {
|
|
2340
|
+
"fields": [
|
|
2341
|
+
"status",
|
|
2342
|
+
"kind"
|
|
2343
|
+
]
|
|
2344
|
+
},
|
|
2300
2345
|
"crm_change": {
|
|
2301
2346
|
"fields": [
|
|
2302
2347
|
"change"
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CrmManifestActivities } from "@wirecat/cli-core/crm";
|
|
2
|
+
/** Notes and tasks, written as `src/hooks.ts` reads them back, so a sync keeps each under the same id. */
|
|
3
|
+
export declare const ACTIVITIES: CrmManifestActivities;
|
|
4
|
+
//# sourceMappingURL=activities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activities.d.ts","sourceRoot":"","sources":["../src/activities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAwClE,0GAA0G;AAC1G,eAAO,MAAM,UAAU,EAAE,qBAoDxB,CAAA"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { CliError } from "@wirecat/cli-base";
|
|
2
|
+
import { KINDS, noteActivity, taskActivity } from "./hooks.js";
|
|
3
|
+
const SLUGS = Object.fromEntries(Object.entries(KINDS).map(([slug, kind]) => [kind, slug]));
|
|
4
|
+
const MOST_TASK = 2000;
|
|
5
|
+
const input = (body, path = {}) => ({
|
|
6
|
+
path,
|
|
7
|
+
query: {},
|
|
8
|
+
headers: {},
|
|
9
|
+
fields: {},
|
|
10
|
+
...(body === undefined ? {} : { body: JSON.stringify({ data: body }) }),
|
|
11
|
+
});
|
|
12
|
+
const slugOf = (kind) => {
|
|
13
|
+
const slug = SLUGS[kind];
|
|
14
|
+
if (!slug)
|
|
15
|
+
throw new CliError("validation_error", `Attio keeps notes and tasks on deals, people and companies, not a ${kind}`, {
|
|
16
|
+
reason: "crm.activity-invalid",
|
|
17
|
+
param: "--subject",
|
|
18
|
+
sent: false,
|
|
19
|
+
});
|
|
20
|
+
return slug;
|
|
21
|
+
};
|
|
22
|
+
// A task's answer names its records by the object's id; the slugs come from the workspace's objects.
|
|
23
|
+
const objectsOf = async (send) => {
|
|
24
|
+
const { data } = (await send("getV2Objects", input()));
|
|
25
|
+
return new Map(data.flatMap((one) => {
|
|
26
|
+
const kind = KINDS[one.api_slug];
|
|
27
|
+
return kind ? [[one.id.object_id, kind]] : [];
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
/** Notes and tasks, written as `src/hooks.ts` reads them back, so a sync keeps each under the same id. */
|
|
31
|
+
export const ACTIVITIES = {
|
|
32
|
+
operations: { comment: "postV2Notes", task: "postV2Tasks", close: "patchV2TasksByTaskId" },
|
|
33
|
+
async create(draft, send) {
|
|
34
|
+
if (draft.kind === "comment") {
|
|
35
|
+
const [parent, ...more] = draft.on;
|
|
36
|
+
if (!parent || more.length > 0)
|
|
37
|
+
throw new CliError("validation_error", "an Attio note is on one record: give --subject once", {
|
|
38
|
+
reason: "crm.activity-invalid",
|
|
39
|
+
param: "--subject",
|
|
40
|
+
sent: false,
|
|
41
|
+
});
|
|
42
|
+
const body = {
|
|
43
|
+
parent_object: slugOf(parent.kind),
|
|
44
|
+
parent_record_id: parent.externalId,
|
|
45
|
+
title: draft.subject ?? "",
|
|
46
|
+
format: "plaintext",
|
|
47
|
+
content: draft.body ?? "",
|
|
48
|
+
};
|
|
49
|
+
return noteActivity((await send("postV2Notes", input(body))).data);
|
|
50
|
+
}
|
|
51
|
+
// Attio's task is one text: a description given goes under the title.
|
|
52
|
+
const content = [draft.subject, draft.body].filter(Boolean).join("\n\n");
|
|
53
|
+
if (content.length > MOST_TASK)
|
|
54
|
+
throw new CliError("validation_error", `an Attio task is at most ${MOST_TASK} characters, title and text`, {
|
|
55
|
+
reason: "crm.activity-invalid",
|
|
56
|
+
param: "--text",
|
|
57
|
+
sent: false,
|
|
58
|
+
});
|
|
59
|
+
const body = {
|
|
60
|
+
content,
|
|
61
|
+
format: "plaintext",
|
|
62
|
+
deadline_at: draft.dueAt === undefined ? null : new Date(draft.dueAt).toISOString(),
|
|
63
|
+
is_completed: false,
|
|
64
|
+
linked_records: draft.on.map((one) => ({ target_object: slugOf(one.kind), target_record_id: one.externalId })),
|
|
65
|
+
assignees: draft.assignee === undefined
|
|
66
|
+
? []
|
|
67
|
+
: [{ referenced_actor_type: "workspace-member", referenced_actor_id: draft.assignee }],
|
|
68
|
+
};
|
|
69
|
+
const { data } = (await send("postV2Tasks", input(body)));
|
|
70
|
+
return taskActivity(data, await objectsOf(send));
|
|
71
|
+
},
|
|
72
|
+
async complete(externalId, send) {
|
|
73
|
+
const id = externalId.replace(/^task:/, "");
|
|
74
|
+
if (id === externalId)
|
|
75
|
+
throw new CliError("validation_error", "only a task is marked done: name it task:<id>, as activities list does", {
|
|
76
|
+
reason: "ref.malformed",
|
|
77
|
+
sent: false,
|
|
78
|
+
});
|
|
79
|
+
const answer = await send("patchV2TasksByTaskId", input({ is_completed: true }, { task_id: id }));
|
|
80
|
+
return taskActivity(answer.data, await objectsOf(send));
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=activities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activities.js","sourceRoot":"","sources":["../src/activities.ts"],"names":[],"mappings":"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"}
|
package/dist/bin/attio.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.7.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/agent-
|
|
31
|
+
const chunks = ["../bundle/agent-GUXXSLT5.js","../bundle/all-profiles-63N3EQ46.js","../bundle/anthropic-B4W7MZQE.js","../bundle/app-server-EXNGTHWO.js","../bundle/bun-OPDGMZZQ.js","../bundle/bun-sqlite-NBAY7FR2.js","../bundle/decode-26M7XE2B.js","../bundle/definitions-FODOIPM2.js","../bundle/dispatch-2FTOHA5D.js","../bundle/dist-EM7KLEG4.js","../bundle/dist-PAKDDIBT.js","../bundle/echarts-O3TNDAXJ.js","../bundle/embed-XJLEAWXE.js","../bundle/embedder-OEL6PXEH.js","../bundle/failure-OHIXWTR6.js","../bundle/first-screen-5FK4D45F.js","../bundle/instructions-AMH5RWVJ.js","../bundle/mcp-5HFPWC3W.js","../bundle/node-EGMCBAO7.js","../bundle/node-KM3CUABH.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-2SWWGW6H.js","../bundle/oauth-V5LGTXF2.js","../bundle/open-25EKOTZA.js","../bundle/openai-VX3OLIHM.js","../bundle/process-SGHEN6MQ.js","../bundle/program-F37JH2SO.js","../bundle/prompt-2VSPX5S7.js","../bundle/recognize-NA5XUFKK.js","../bundle/remote-BOME6XOE.js","../bundle/rerank-NG3XMFCV.js","../bundle/schemas-YGSTNU6F.js","../bundle/serve-MR67OBED.js","../bundle/server-4BWAGJQO.js","../bundle/server-OP2HJNXD.js","../bundle/sqlite-runtime-V5U6F5EB.js","../bundle/state-L4MWAATO.js","../bundle/store-2ALTEH55.js","../bundle/store-CXZFRG5D.js","../bundle/store-maintenance-command-LC55DRQA.js","../bundle/surface-3GRJ7473.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
runCommandForAgent,
|
|
5
|
+
toolsFromCommands
|
|
6
|
+
} from "./chunk-DM7KWVDZ.js";
|
|
7
|
+
import "./chunk-WXQGA6XK.js";
|
|
8
|
+
import "./chunk-RDVTHFPP.js";
|
|
9
|
+
import "./chunk-EY36BTKZ.js";
|
|
10
|
+
import "./chunk-APARYILG.js";
|
|
11
|
+
import "./chunk-WOPVBRPV.js";
|
|
12
|
+
import "./chunk-PL5P7UKW.js";
|
|
13
|
+
import "./chunk-M4AC55ZB.js";
|
|
14
|
+
import "./chunk-SCI7QEHF.js";
|
|
15
|
+
import "./chunk-V7IF2K3P.js";
|
|
16
|
+
import "./chunk-GTEX4IUO.js";
|
|
17
|
+
import "./chunk-3YM4B2GT.js";
|
|
18
|
+
import "./chunk-5WD22IXQ.js";
|
|
19
|
+
import "./chunk-L45WN3AR.js";
|
|
20
|
+
import "./chunk-AATTOFNY.js";
|
|
21
|
+
import "./chunk-ZZD2YPOX.js";
|
|
22
|
+
import "./chunk-RRTMPSQR.js";
|
|
23
|
+
import "./chunk-RQORQN2V.js";
|
|
24
|
+
import "./chunk-DNCLQPOM.js";
|
|
25
|
+
import "./chunk-7Z53MLQP.js";
|
|
26
|
+
import "./chunk-TTF5DP4V.js";
|
|
27
|
+
import "./chunk-LM3W7YOM.js";
|
|
28
|
+
import "./chunk-L72WUJAS.js";
|
|
29
|
+
import "./chunk-5JKTVAXX.js";
|
|
30
|
+
import "./chunk-QPPOIWPY.js";
|
|
31
|
+
import "./chunk-S4UUN6LD.js";
|
|
32
|
+
import "./chunk-Y5E2WNWB.js";
|
|
33
|
+
import "./chunk-S6JG4YUH.js";
|
|
34
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
35
|
+
export {
|
|
36
|
+
runCommandForAgent,
|
|
37
|
+
toolsFromCommands
|
|
38
|
+
};
|
|
@@ -4,34 +4,34 @@ import {
|
|
|
4
4
|
StdioServerTransport,
|
|
5
5
|
answeredWire,
|
|
6
6
|
serveStdio
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VB7FZOYX.js";
|
|
8
8
|
import {
|
|
9
9
|
CALLER_META_KEY,
|
|
10
10
|
PROXY_CLIENT_NAME,
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EY36BTKZ.js";
|
|
13
13
|
import {
|
|
14
14
|
InMemoryTransport,
|
|
15
15
|
McpServer
|
|
16
16
|
} from "./chunk-PL5P7UKW.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SCI7QEHF.js";
|
|
18
|
+
import "./chunk-ZZD2YPOX.js";
|
|
19
|
+
import "./chunk-DNCLQPOM.js";
|
|
20
|
+
import "./chunk-5JKTVAXX.js";
|
|
21
21
|
import {
|
|
22
22
|
errorObjectOf,
|
|
23
23
|
mcpErrorResult
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QPPOIWPY.js";
|
|
25
25
|
import "./chunk-S4UUN6LD.js";
|
|
26
26
|
import "./chunk-Y5E2WNWB.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-S6JG4YUH.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
35
35
|
import { spawn } from "node:child_process";
|
|
36
36
|
import { randomUUID } from "node:crypto";
|
|
37
37
|
var PROTOCOL = "2025-06-18";
|
|
@@ -290,7 +290,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
290
290
|
}, "serveAllProfilesOverStdio");
|
|
291
291
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
292
292
|
const { build, close } = allProfilesServer(options);
|
|
293
|
-
const { serveOverHttp } = await import("./serve-
|
|
293
|
+
const { serveOverHttp } = await import("./serve-MR67OBED.js");
|
|
294
294
|
const listening = await serveOverHttp(build, {
|
|
295
295
|
...http,
|
|
296
296
|
appName: options.command,
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EVUMQKV7.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-XQUUANA2.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5JKTVAXX.js";
|
|
13
|
+
import "./chunk-QPPOIWPY.js";
|
|
14
14
|
import {
|
|
15
15
|
array,
|
|
16
16
|
literal,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
unknown
|
|
23
23
|
} from "./chunk-S4UUN6LD.js";
|
|
24
24
|
import "./chunk-Y5E2WNWB.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-S6JG4YUH.js";
|
|
26
26
|
import {
|
|
27
27
|
__name
|
|
28
28
|
} from "./chunk-ZVVMGPBJ.js";
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
31
31
|
var options = strictObject({
|
|
32
32
|
stop_sequences: optional(array(string())),
|
|
33
33
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,58 +3,59 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2QDUP74I.js";
|
|
7
7
|
import {
|
|
8
8
|
mcpUrlOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4RBMCXZT.js";
|
|
10
10
|
import {
|
|
11
11
|
skillResources
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DPD4FMHN.js";
|
|
13
13
|
import {
|
|
14
14
|
StdioServerTransport,
|
|
15
15
|
answeredWire,
|
|
16
16
|
serveStdio
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-VB7FZOYX.js";
|
|
18
|
+
import "./chunk-Q7ICVP25.js";
|
|
19
|
+
import "./chunk-3MSHGNVE.js";
|
|
20
|
+
import "./chunk-DURNR4RO.js";
|
|
21
21
|
import {
|
|
22
22
|
runCommandForAgent,
|
|
23
23
|
toolsFromCommands
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-DM7KWVDZ.js";
|
|
25
|
+
import "./chunk-WXQGA6XK.js";
|
|
26
|
+
import "./chunk-RDVTHFPP.js";
|
|
27
27
|
import {
|
|
28
28
|
appInstructions
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-2XBDILVW.js";
|
|
30
30
|
import {
|
|
31
31
|
answered,
|
|
32
32
|
failed,
|
|
33
33
|
registerCommands
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FH6OEGGN.js";
|
|
35
35
|
import {
|
|
36
36
|
agentJson
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-MCLQTCGH.js";
|
|
38
|
+
import "./chunk-6K4Z6CAM.js";
|
|
39
|
+
import "./chunk-JG6LCSEX.js";
|
|
40
|
+
import "./chunk-5N2V6XO7.js";
|
|
41
|
+
import "./chunk-NB7EOAUZ.js";
|
|
42
|
+
import "./chunk-HZ3C4WXD.js";
|
|
43
|
+
import "./chunk-TY7NDMFY.js";
|
|
44
|
+
import "./chunk-EY36BTKZ.js";
|
|
45
|
+
import "./chunk-APARYILG.js";
|
|
46
|
+
import "./chunk-WOPVBRPV.js";
|
|
46
47
|
import {
|
|
47
48
|
McpServer
|
|
48
49
|
} from "./chunk-PL5P7UKW.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-EVUMQKV7.js";
|
|
51
|
+
import "./chunk-OYEVYOCL.js";
|
|
52
|
+
import "./chunk-FOP6G45D.js";
|
|
53
|
+
import "./chunk-PLPBEWD4.js";
|
|
53
54
|
import {
|
|
54
55
|
mcpHttpMarker
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
56
|
+
} from "./chunk-V57E7PJQ.js";
|
|
57
|
+
import "./chunk-XQGN2D44.js";
|
|
58
|
+
import "./chunk-QSJKSPWF.js";
|
|
58
59
|
import {
|
|
59
60
|
DEFAULT_OUTPUT_BYTES,
|
|
60
61
|
changesAuthorityAt,
|
|
@@ -65,49 +66,49 @@ import {
|
|
|
65
66
|
readOnlyLockOf,
|
|
66
67
|
readsOverMcpAt,
|
|
67
68
|
rootOf2 as rootOf
|
|
68
|
-
} from "./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-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-M4AC55ZB.js";
|
|
70
|
+
import "./chunk-SCI7QEHF.js";
|
|
71
|
+
import "./chunk-V7IF2K3P.js";
|
|
72
|
+
import "./chunk-GTEX4IUO.js";
|
|
73
|
+
import "./chunk-3YM4B2GT.js";
|
|
74
|
+
import "./chunk-YWDFYQOU.js";
|
|
75
|
+
import "./chunk-UKHF37ZU.js";
|
|
76
|
+
import "./chunk-5WD22IXQ.js";
|
|
77
|
+
import "./chunk-JIGEJZ4I.js";
|
|
78
|
+
import "./chunk-UDSL3MUU.js";
|
|
79
|
+
import "./chunk-L45WN3AR.js";
|
|
80
|
+
import "./chunk-SSA6JBPA.js";
|
|
81
|
+
import "./chunk-2JHVQMVC.js";
|
|
82
|
+
import "./chunk-AATTOFNY.js";
|
|
83
|
+
import "./chunk-ZZD2YPOX.js";
|
|
84
|
+
import "./chunk-RRTMPSQR.js";
|
|
85
|
+
import "./chunk-RQORQN2V.js";
|
|
86
|
+
import "./chunk-DNCLQPOM.js";
|
|
87
|
+
import "./chunk-J6GVVISK.js";
|
|
88
|
+
import "./chunk-7Z53MLQP.js";
|
|
89
|
+
import "./chunk-TTF5DP4V.js";
|
|
90
|
+
import "./chunk-KVTNYRDO.js";
|
|
91
|
+
import "./chunk-LM3W7YOM.js";
|
|
92
|
+
import "./chunk-TXDR6YSF.js";
|
|
92
93
|
import "./chunk-D72URWJE.js";
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-L72WUJAS.js";
|
|
95
|
+
import "./chunk-PMQ7GP6X.js";
|
|
96
|
+
import "./chunk-GGMAIIVE.js";
|
|
97
|
+
import "./chunk-5JKTVAXX.js";
|
|
97
98
|
import {
|
|
98
99
|
mcpErrorResult
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-QPPOIWPY.js";
|
|
100
101
|
import "./chunk-S4UUN6LD.js";
|
|
101
102
|
import "./chunk-Y5E2WNWB.js";
|
|
102
103
|
import {
|
|
103
104
|
CliError
|
|
104
|
-
} from "./chunk-
|
|
105
|
-
import "./chunk-
|
|
105
|
+
} from "./chunk-S6JG4YUH.js";
|
|
106
|
+
import "./chunk-4N7PP76S.js";
|
|
106
107
|
import {
|
|
107
108
|
__name
|
|
108
109
|
} from "./chunk-ZVVMGPBJ.js";
|
|
109
110
|
|
|
110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
111
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
111
112
|
var EXCLUDED = [["mcp"]];
|
|
112
113
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
113
114
|
let at = root;
|
|
@@ -223,7 +224,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
223
224
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
224
225
|
const { app } = options;
|
|
225
226
|
const { build } = createAppServer(command, context, options);
|
|
226
|
-
const { serveOverHttp } = await import("./serve-
|
|
227
|
+
const { serveOverHttp } = await import("./serve-MR67OBED.js");
|
|
227
228
|
const listening = await serveOverHttp(build, {
|
|
228
229
|
...http,
|
|
229
230
|
appName: app.command,
|
package/dist/bundle/attio.js
CHANGED
|
@@ -3,10 +3,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
3
3
|
const require = __bundleRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
DESKTOP
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X5UPBSTP.js";
|
|
7
7
|
import {
|
|
8
8
|
installerOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TXDR6YSF.js";
|
|
10
10
|
import {
|
|
11
11
|
DESCRIBE_FLAG,
|
|
12
12
|
DISPATCH_FLAG,
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
fileState,
|
|
18
18
|
shimFiles,
|
|
19
19
|
writeShim
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-DPV53EZC.js";
|
|
21
|
+
import "./chunk-5JKTVAXX.js";
|
|
22
22
|
import {
|
|
23
23
|
catchCrashes
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QPPOIWPY.js";
|
|
25
25
|
import "./chunk-S4UUN6LD.js";
|
|
26
26
|
import "./chunk-Y5E2WNWB.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-S6JG4YUH.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
// dist/bin/attio.js
|
|
33
33
|
import { enableCompileCache } from "node:module";
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.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
|
|
36
36
|
import { createHash } from "node:crypto";
|
|
37
37
|
import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
|
|
38
38
|
import { dirname as dirname2, join as join2 } from "node:path";
|
|
39
39
|
import { fileURLToPath } from "node:url";
|
|
40
40
|
|
|
41
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
41
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.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
|
|
42
42
|
import { readFileSync } from "node:fs";
|
|
43
43
|
import { basename, dirname, join, resolve } from "node:path";
|
|
44
44
|
var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
|
|
@@ -124,7 +124,7 @@ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
|
|
|
124
124
|
}
|
|
125
125
|
}, "ensureLauncher");
|
|
126
126
|
|
|
127
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
127
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.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
|
|
128
128
|
var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
129
129
|
const argv = io.argv ?? process.argv;
|
|
130
130
|
const env = io.env ?? process.env;
|
|
@@ -137,7 +137,7 @@ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
|
|
|
137
137
|
return { code: 0 };
|
|
138
138
|
}
|
|
139
139
|
if (first === DISPATCH_FLAG) {
|
|
140
|
-
const { runWcat } = await import("./dispatch-
|
|
140
|
+
const { runWcat } = await import("./dispatch-2FTOHA5D.js");
|
|
141
141
|
const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
|
|
142
142
|
return { code };
|
|
143
143
|
}
|
|
@@ -177,7 +177,7 @@ var wcat = await wcatStart(DESKTOP);
|
|
|
177
177
|
if (wcat.code !== void 0) {
|
|
178
178
|
process.exitCode = wcat.code;
|
|
179
179
|
} else {
|
|
180
|
-
const { run } = await import("./program-
|
|
180
|
+
const { run } = await import("./program-F37JH2SO.js");
|
|
181
181
|
process.exitCode = await run(process.argv.slice(2));
|
|
182
182
|
}
|
|
183
183
|
stopCatching();
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4N7PP76S.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|