@wirecat/yandex-disk-cli 0.0.0-stage → 0.1.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.
Files changed (235) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE +204 -0
  3. package/README.md +243 -2
  4. package/contracts/wirecat.json +1554 -0
  5. package/dist/bin/ydisk.d.ts +3 -0
  6. package/dist/bin/ydisk.d.ts.map +1 -0
  7. package/dist/bin/ydisk.js +40 -0
  8. package/dist/bin/ydisk.js.map +1 -0
  9. package/dist/bundle/all-profiles-4OLZF3RT.js +279 -0
  10. package/dist/bundle/anthropic-DKB4OJXZ.js +91 -0
  11. package/dist/bundle/app-server-G4545SSV.js +247 -0
  12. package/dist/bundle/bun-RXEQKFED.js +169 -0
  13. package/dist/bundle/bun-sqlite-VHT5LN7U.js +76 -0
  14. package/dist/bundle/chunk-2BITUXGC.js +12289 -0
  15. package/dist/bundle/chunk-2CLWDQKA.js +39330 -0
  16. package/dist/bundle/chunk-2JFDOPKA.js +9575 -0
  17. package/dist/bundle/chunk-3GVI2MAO.js +106 -0
  18. package/dist/bundle/chunk-3SZBWBMI.js +131 -0
  19. package/dist/bundle/chunk-44VSEXW6.js +4054 -0
  20. package/dist/bundle/chunk-4YPRRQBE.js +95 -0
  21. package/dist/bundle/chunk-5COYRL5B.js +379 -0
  22. package/dist/bundle/chunk-5D4AEUVA.js +24783 -0
  23. package/dist/bundle/chunk-5DM7DIZL.js +1402 -0
  24. package/dist/bundle/chunk-6R2DVTVZ.js +24 -0
  25. package/dist/bundle/chunk-762BS35H.js +2787 -0
  26. package/dist/bundle/chunk-AG64V7AB.js +1233 -0
  27. package/dist/bundle/chunk-BC5HGIXB.js +334 -0
  28. package/dist/bundle/chunk-BH7LFEX7.js +36 -0
  29. package/dist/bundle/chunk-BLNPGY7N.js +53 -0
  30. package/dist/bundle/chunk-CNIA2LJF.js +372 -0
  31. package/dist/bundle/chunk-COSXMDC7.js +230 -0
  32. package/dist/bundle/chunk-D72URWJE.js +532 -0
  33. package/dist/bundle/chunk-D7FO33KU.js +785 -0
  34. package/dist/bundle/chunk-DFDN6AUB.js +21 -0
  35. package/dist/bundle/chunk-DJH26PQ3.js +1396 -0
  36. package/dist/bundle/chunk-DJPT7IUC.js +64567 -0
  37. package/dist/bundle/chunk-DTMSCZDW.js +209 -0
  38. package/dist/bundle/chunk-E6LGZ5LX.js +16 -0
  39. package/dist/bundle/chunk-E6YRIHS5.js +92 -0
  40. package/dist/bundle/chunk-EH6ZEJGT.js +932 -0
  41. package/dist/bundle/chunk-F3DDSZTF.js +78 -0
  42. package/dist/bundle/chunk-F4WWTQNL.js +188 -0
  43. package/dist/bundle/chunk-FDDAUASC.js +1028 -0
  44. package/dist/bundle/chunk-FMNPG6N2.js +170 -0
  45. package/dist/bundle/chunk-FOKJ4POB.js +274 -0
  46. package/dist/bundle/chunk-G22C7JG6.js +731 -0
  47. package/dist/bundle/chunk-GA442SYZ.js +161 -0
  48. package/dist/bundle/chunk-GEBSW7UK.js +6848 -0
  49. package/dist/bundle/chunk-GGRKWAOK.js +594 -0
  50. package/dist/bundle/chunk-HHINRNZA.js +788 -0
  51. package/dist/bundle/chunk-HUZCL33L.js +128 -0
  52. package/dist/bundle/chunk-IALSIQVT.js +142 -0
  53. package/dist/bundle/chunk-IOXR2QBX.js +398 -0
  54. package/dist/bundle/chunk-J5CXR6VX.js +63 -0
  55. package/dist/bundle/chunk-J5PWSTOX.js +82 -0
  56. package/dist/bundle/chunk-J7BVAEHR.js +364 -0
  57. package/dist/bundle/chunk-JH46HMZW.js +1334 -0
  58. package/dist/bundle/chunk-JOBO7F6W.js +52 -0
  59. package/dist/bundle/chunk-JXZ5B3L5.js +2333 -0
  60. package/dist/bundle/chunk-KBIAMDZN.js +66 -0
  61. package/dist/bundle/chunk-KFVDL2QS.js +146 -0
  62. package/dist/bundle/chunk-LNHTLSR5.js +288 -0
  63. package/dist/bundle/chunk-M24RAKMJ.js +58 -0
  64. package/dist/bundle/chunk-MDQ57Q3H.js +1197 -0
  65. package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
  66. package/dist/bundle/chunk-MLXQ4X5L.js +206 -0
  67. package/dist/bundle/chunk-NQAKARHE.js +54 -0
  68. package/dist/bundle/chunk-OF7VVUDQ.js +23 -0
  69. package/dist/bundle/chunk-OQVPE3XK.js +324 -0
  70. package/dist/bundle/chunk-OR3QG7UR.js +259 -0
  71. package/dist/bundle/chunk-OUUYVROP.js +76 -0
  72. package/dist/bundle/chunk-PQBAM64O.js +168 -0
  73. package/dist/bundle/chunk-PYVIA7WF.js +88 -0
  74. package/dist/bundle/chunk-Q6HK3PHE.js +72 -0
  75. package/dist/bundle/chunk-QB3KECV2.js +218 -0
  76. package/dist/bundle/chunk-QGWXSFYN.js +73 -0
  77. package/dist/bundle/chunk-RC5QAAAE.js +29 -0
  78. package/dist/bundle/chunk-RMJ26HLB.js +18 -0
  79. package/dist/bundle/chunk-S4UUN6LD.js +1410 -0
  80. package/dist/bundle/chunk-T7ZUDA4C.js +72 -0
  81. package/dist/bundle/chunk-TRCSMVV5.js +72 -0
  82. package/dist/bundle/chunk-UD2BQEKA.js +46 -0
  83. package/dist/bundle/chunk-V4TL55GS.js +1068 -0
  84. package/dist/bundle/chunk-VJNWN5VU.js +4072 -0
  85. package/dist/bundle/chunk-VRRNBLMA.js +1227 -0
  86. package/dist/bundle/chunk-WUCMMNFJ.js +771 -0
  87. package/dist/bundle/chunk-XDESE3NY.js +44 -0
  88. package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
  89. package/dist/bundle/chunk-XQUUANA2.js +24600 -0
  90. package/dist/bundle/chunk-Y5E2WNWB.js +35 -0
  91. package/dist/bundle/chunk-Z2QEON7B.js +2275 -0
  92. package/dist/bundle/chunk-ZMJ56GME.js +7 -0
  93. package/dist/bundle/chunk-ZTSB3D7Q.js +100 -0
  94. package/dist/bundle/chunk-ZVJWD3FK.js +38 -0
  95. package/dist/bundle/chunk-ZVVMGPBJ.js +50 -0
  96. package/dist/bundle/command-contract-YIOYGPJA.js +40 -0
  97. package/dist/bundle/command-server-entry-MHBQDXS4.js +169 -0
  98. package/dist/bundle/decode-NUGJIOUW.js +297 -0
  99. package/dist/bundle/definitions-AILHKEQT.js +2005 -0
  100. package/dist/bundle/dispatch-5LC4UEGY.js +411 -0
  101. package/dist/bundle/dist-4I2W6X2I.js +7577 -0
  102. package/dist/bundle/echarts-MHSH6PGC.js +42501 -0
  103. package/dist/bundle/embed-ZDXTHHYS.js +38 -0
  104. package/dist/bundle/embedder-XFEELFUL.js +111 -0
  105. package/dist/bundle/failure-5S7VPBYK.js +25 -0
  106. package/dist/bundle/first-run-JHCHT3RJ.js +29 -0
  107. package/dist/bundle/first-screen-FHGQ6QRV.js +40 -0
  108. package/dist/bundle/instructions-WKSMBUFX.js +11 -0
  109. package/dist/bundle/mcp-HS2ZDUVR.js +167 -0
  110. package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
  111. package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
  112. package/dist/bundle/meeting-combined-K4U4NYRZ.js +25 -0
  113. package/dist/bundle/meeting-model-KCEG6Y5O.js +26 -0
  114. package/dist/bundle/meeting-semantic-VYGSV3H6.js +22 -0
  115. package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
  116. package/dist/bundle/node-CM6NC6UE.js +176 -0
  117. package/dist/bundle/node-KM3CUABH.js +2340 -0
  118. package/dist/bundle/node-TLZSIHIJ.js +21 -0
  119. package/dist/bundle/node-sqlite-5YDQ3LIJ.js +74 -0
  120. package/dist/bundle/notes-search-PGO7KM2U.js +62 -0
  121. package/dist/bundle/oauth-NY4C5UCK.js +20 -0
  122. package/dist/bundle/open-YNUTA6ZE.js +23 -0
  123. package/dist/bundle/openai-4CVT5PHH.js +241 -0
  124. package/dist/bundle/process-2XT3TL27.js +91 -0
  125. package/dist/bundle/program-FMIVF5T6.js +31904 -0
  126. package/dist/bundle/prompt-VNWY3H6S.js +17 -0
  127. package/dist/bundle/recognize-JS4PBPSZ.js +26 -0
  128. package/dist/bundle/remote-RCLFH4V2.js +32 -0
  129. package/dist/bundle/rerank-EG6VKYGO.js +52 -0
  130. package/dist/bundle/schemas-ED2LHKXK.js +645 -0
  131. package/dist/bundle/serve-AHG25QXB.js +199 -0
  132. package/dist/bundle/server-5FTB7WM3.js +78 -0
  133. package/dist/bundle/server-JNZVSAZE.js +209 -0
  134. package/dist/bundle/sqlite-runtime-XSZOAQPF.js +20 -0
  135. package/dist/bundle/state-XGVAJFF7.js +36 -0
  136. package/dist/bundle/store-OHSCWZEV.js +177 -0
  137. package/dist/bundle/store-PKSPKJXL.js +293 -0
  138. package/dist/bundle/store-maintenance-command-KAWGBSWK.js +69 -0
  139. package/dist/bundle/ydisk.js +183 -0
  140. package/dist/commands/api.d.ts +9 -0
  141. package/dist/commands/api.d.ts.map +1 -0
  142. package/dist/commands/api.js +59 -0
  143. package/dist/commands/api.js.map +1 -0
  144. package/dist/commands/comments.d.ts +3 -0
  145. package/dist/commands/comments.d.ts.map +1 -0
  146. package/dist/commands/comments.js +114 -0
  147. package/dist/commands/comments.js.map +1 -0
  148. package/dist/commands/files.d.ts +3 -0
  149. package/dist/commands/files.d.ts.map +1 -0
  150. package/dist/commands/files.js +272 -0
  151. package/dist/commands/files.js.map +1 -0
  152. package/dist/commands/library.d.ts +13 -0
  153. package/dist/commands/library.d.ts.map +1 -0
  154. package/dist/commands/library.js +118 -0
  155. package/dist/commands/library.js.map +1 -0
  156. package/dist/commands/session.d.ts +3 -0
  157. package/dist/commands/session.d.ts.map +1 -0
  158. package/dist/commands/session.js +99 -0
  159. package/dist/commands/session.js.map +1 -0
  160. package/dist/config.d.ts +18 -0
  161. package/dist/config.d.ts.map +1 -0
  162. package/dist/config.js +62 -0
  163. package/dist/config.js.map +1 -0
  164. package/dist/context.d.ts +80 -0
  165. package/dist/context.d.ts.map +1 -0
  166. package/dist/context.js +77 -0
  167. package/dist/context.js.map +1 -0
  168. package/dist/generated/definitions.d.ts +3 -0
  169. package/dist/generated/definitions.d.ts.map +1 -0
  170. package/dist/generated/definitions.js +2001 -0
  171. package/dist/generated/definitions.js.map +1 -0
  172. package/dist/generated/manifest.d.ts +6 -0
  173. package/dist/generated/manifest.d.ts.map +1 -0
  174. package/dist/generated/manifest.js +1473 -0
  175. package/dist/generated/manifest.js.map +1 -0
  176. package/dist/generated/schemas.d.ts +127 -0
  177. package/dist/generated/schemas.d.ts.map +1 -0
  178. package/dist/generated/schemas.js +545 -0
  179. package/dist/generated/schemas.js.map +1 -0
  180. package/dist/generated/types.d.ts +829 -0
  181. package/dist/generated/types.d.ts.map +1 -0
  182. package/dist/generated/types.js +5 -0
  183. package/dist/generated/types.js.map +1 -0
  184. package/dist/identity.d.ts +10 -0
  185. package/dist/identity.d.ts.map +1 -0
  186. package/dist/identity.js +33 -0
  187. package/dist/identity.js.map +1 -0
  188. package/dist/index.d.ts +3 -0
  189. package/dist/index.d.ts.map +1 -0
  190. package/dist/index.js +3 -0
  191. package/dist/index.js.map +1 -0
  192. package/dist/program.d.ts +6 -0
  193. package/dist/program.d.ts.map +1 -0
  194. package/dist/program.js +65 -0
  195. package/dist/program.js.map +1 -0
  196. package/dist/sample/comments.d.ts +61 -0
  197. package/dist/sample/comments.d.ts.map +1 -0
  198. package/dist/sample/comments.js +39 -0
  199. package/dist/sample/comments.js.map +1 -0
  200. package/dist/sample/records.d.ts +16 -0
  201. package/dist/sample/records.d.ts.map +1 -0
  202. package/dist/sample/records.js +22 -0
  203. package/dist/sample/records.js.map +1 -0
  204. package/dist/sample/transport.d.ts +42 -0
  205. package/dist/sample/transport.d.ts.map +1 -0
  206. package/dist/sample/transport.js +153 -0
  207. package/dist/sample/transport.js.map +1 -0
  208. package/dist/version.d.ts +2 -0
  209. package/dist/version.d.ts.map +1 -0
  210. package/dist/version.js +2 -0
  211. package/dist/version.js.map +1 -0
  212. package/dist/wcat.d.ts +3 -0
  213. package/dist/wcat.d.ts.map +1 -0
  214. package/dist/wcat.js +4 -0
  215. package/dist/wcat.js.map +1 -0
  216. package/dist/yandex/source.d.ts +39 -0
  217. package/dist/yandex/source.d.ts.map +1 -0
  218. package/dist/yandex/source.js +189 -0
  219. package/dist/yandex/source.js.map +1 -0
  220. package/dist/yandex/transport.d.ts +41 -0
  221. package/dist/yandex/transport.d.ts.map +1 -0
  222. package/dist/yandex/transport.js +152 -0
  223. package/dist/yandex/transport.js.map +1 -0
  224. package/dist/yandex/writes.d.ts +27 -0
  225. package/dist/yandex/writes.d.ts.map +1 -0
  226. package/dist/yandex/writes.js +61 -0
  227. package/dist/yandex/writes.js.map +1 -0
  228. package/package.json +88 -4
  229. package/skills/yandex-disk-cli/SKILL.md +46 -0
  230. package/skills/yandex-disk-cli/references/api/api-disk-operations-operation-id.md +13 -0
  231. package/skills/yandex-disk-cli/references/api/api-disk-public-resources.md +50 -0
  232. package/skills/yandex-disk-cli/references/api/api-disk-resources.md +171 -0
  233. package/skills/yandex-disk-cli/references/api/api-disk-trash-resources.md +48 -0
  234. package/skills/yandex-disk-cli/references/api/api-disk.md +13 -0
  235. package/skills/yandex-disk-cli/references/api.md +17 -0
@@ -0,0 +1,177 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ AGENDA_COLUMNS,
5
+ BACKFILL_ON_OPEN,
6
+ BUSINESS_FIND_MAX,
7
+ CHAT_COLUMNS,
8
+ CHAT_LIST_KEY,
9
+ CONVERSATION_COLUMNS,
10
+ CRM_FILE_LIMITS,
11
+ DEFAULT_AGENT_CLOSE,
12
+ DEFAULT_FIRST_PASS_PER_CHAT,
13
+ DEFAULT_OWNER_LANGUAGES,
14
+ ENRICHMENT_SUBJECTS,
15
+ MAIL_AGENDA_COLUMNS,
16
+ MENTION_QUERY,
17
+ MENTION_STATUSES,
18
+ OTHER_SOURCES,
19
+ THREAD_COLUMNS,
20
+ TRACKED_CHAT_COLUMNS,
21
+ accountGroupsOf,
22
+ attachmentColumns,
23
+ crmSettingsOf,
24
+ drainNoteIndex,
25
+ dropAllUnusedVectors,
26
+ fetchedKey,
27
+ fileFacts,
28
+ fillSearchIndex,
29
+ fillStems,
30
+ firstPassPerChatOf,
31
+ foldedWords,
32
+ historyStartKey,
33
+ inboxKey,
34
+ involvementStoreOver,
35
+ mergeId,
36
+ messageOfEmail,
37
+ noteIndexState,
38
+ openSqlite,
39
+ openStore,
40
+ orphanPointers,
41
+ ownerLanguages,
42
+ parseCrmSetting,
43
+ parseCrmSettingValue,
44
+ parseMergeId,
45
+ parseOwnerLanguages,
46
+ pendingNormalization,
47
+ queryFilter,
48
+ readStoreTables,
49
+ registerProvider,
50
+ resetAttachmentWords,
51
+ resetCrmFileWords,
52
+ resetNoteIndex,
53
+ resetSearchIndex,
54
+ resetStems,
55
+ rollBack,
56
+ rowCounts,
57
+ saveCrmSetting,
58
+ saveOwnerLanguages,
59
+ saveStorePhoneCountries,
60
+ savedAgentClose,
61
+ savedFirstPassPerChat,
62
+ savedOwnerLanguages,
63
+ savedPhoneCountries,
64
+ savedStemmers,
65
+ savedTaskCategories,
66
+ searchIndexState,
67
+ seenBy,
68
+ stemmerCache,
69
+ stemmersOrigin,
70
+ stemsState,
71
+ storeClients,
72
+ storeContents,
73
+ storedTemplateBodies,
74
+ threadConversation,
75
+ titlePart,
76
+ vectorIndexCounts
77
+ } from "./chunk-DJPT7IUC.js";
78
+ import "./chunk-GGRKWAOK.js";
79
+ import "./chunk-JXZ5B3L5.js";
80
+ import "./chunk-WUCMMNFJ.js";
81
+ import "./chunk-E6LGZ5LX.js";
82
+ import {
83
+ BUSINESS_KINDS
84
+ } from "./chunk-D7FO33KU.js";
85
+ import "./chunk-E6YRIHS5.js";
86
+ import "./chunk-VRRNBLMA.js";
87
+ import "./chunk-TRCSMVV5.js";
88
+ import "./chunk-RC5QAAAE.js";
89
+ import "./chunk-VJNWN5VU.js";
90
+ import "./chunk-ZMJ56GME.js";
91
+ import "./chunk-MDQ57Q3H.js";
92
+ import "./chunk-NQAKARHE.js";
93
+ import "./chunk-4YPRRQBE.js";
94
+ import "./chunk-ZVJWD3FK.js";
95
+ import "./chunk-762BS35H.js";
96
+ import "./chunk-AG64V7AB.js";
97
+ import "./chunk-S4UUN6LD.js";
98
+ import "./chunk-Y5E2WNWB.js";
99
+ import "./chunk-T7ZUDA4C.js";
100
+ import "./chunk-GEBSW7UK.js";
101
+ import "./chunk-ZVVMGPBJ.js";
102
+ export {
103
+ AGENDA_COLUMNS,
104
+ BACKFILL_ON_OPEN,
105
+ BUSINESS_FIND_MAX,
106
+ BUSINESS_KINDS,
107
+ CHAT_COLUMNS,
108
+ CHAT_LIST_KEY,
109
+ CONVERSATION_COLUMNS,
110
+ CRM_FILE_LIMITS,
111
+ DEFAULT_AGENT_CLOSE,
112
+ DEFAULT_FIRST_PASS_PER_CHAT,
113
+ DEFAULT_OWNER_LANGUAGES,
114
+ ENRICHMENT_SUBJECTS,
115
+ MAIL_AGENDA_COLUMNS,
116
+ MENTION_QUERY,
117
+ MENTION_STATUSES,
118
+ OTHER_SOURCES,
119
+ THREAD_COLUMNS,
120
+ TRACKED_CHAT_COLUMNS,
121
+ accountGroupsOf,
122
+ attachmentColumns,
123
+ crmSettingsOf,
124
+ drainNoteIndex,
125
+ dropAllUnusedVectors,
126
+ fetchedKey,
127
+ fileFacts,
128
+ fillSearchIndex,
129
+ fillStems,
130
+ firstPassPerChatOf,
131
+ foldedWords,
132
+ historyStartKey,
133
+ inboxKey,
134
+ involvementStoreOver,
135
+ mergeId,
136
+ messageOfEmail,
137
+ noteIndexState,
138
+ openSqlite,
139
+ openStore,
140
+ orphanPointers,
141
+ ownerLanguages,
142
+ parseCrmSetting,
143
+ parseCrmSettingValue,
144
+ parseMergeId,
145
+ parseOwnerLanguages,
146
+ pendingNormalization,
147
+ queryFilter,
148
+ readStoreTables,
149
+ registerProvider,
150
+ resetAttachmentWords,
151
+ resetCrmFileWords,
152
+ resetNoteIndex,
153
+ resetSearchIndex,
154
+ resetStems,
155
+ rollBack,
156
+ rowCounts,
157
+ saveCrmSetting,
158
+ saveOwnerLanguages,
159
+ saveStorePhoneCountries,
160
+ savedAgentClose,
161
+ savedFirstPassPerChat,
162
+ savedOwnerLanguages,
163
+ savedPhoneCountries,
164
+ savedStemmers,
165
+ savedTaskCategories,
166
+ searchIndexState,
167
+ seenBy,
168
+ stemmerCache,
169
+ stemmersOrigin,
170
+ stemsState,
171
+ storeClients,
172
+ storeContents,
173
+ storedTemplateBodies,
174
+ threadConversation,
175
+ titlePart,
176
+ vectorIndexCounts
177
+ };
@@ -0,0 +1,293 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ QUICK_HEALTH_CHECKS,
5
+ applyDocumentTransfer,
6
+ previewDocumentTransfer,
7
+ previewProjectAnnotationSnapshot,
8
+ snapshotProjectAnnotations,
9
+ storeDamageReport,
10
+ storeHealth
11
+ } from "./chunk-V4TL55GS.js";
12
+ import {
13
+ note
14
+ } from "./chunk-KBIAMDZN.js";
15
+ import {
16
+ ADDED_KINDS,
17
+ ALWAYS_SHOWN,
18
+ BUSINESS_FIND_MAX,
19
+ CALLBACK_PREFIX,
20
+ CATALOG_QUERY,
21
+ COMPANY_TYPE_MEANINGS,
22
+ CRM_CHANGES,
23
+ CRM_LINK_MODES,
24
+ DECISION_ACTIONS,
25
+ DECISION_TTL_MS,
26
+ DEFAULT_DECISION_POLICY,
27
+ DEFAULT_OWNER_LANGUAGES,
28
+ DOCUMENT_KINDS,
29
+ DOUBT_REASONS,
30
+ EVENT_FIELDS,
31
+ EVIDENCE_FINDINGS_KIND,
32
+ IDENTITY_LINK_KIND,
33
+ IDENTITY_LINK_SIGNALS,
34
+ IDENTITY_SPLIT_KIND,
35
+ IMPORTED_DOCUMENT_QUERY,
36
+ LINK_WEAKNESSES,
37
+ MAIL_FINDINGS_KIND,
38
+ MEETING_ROW_KINDS,
39
+ MENTION_QUERY,
40
+ MENTION_STATUSES,
41
+ MIGRATIONS,
42
+ NOTE_FIELDS,
43
+ ORGANIZATIONS_QUERY,
44
+ ORGANIZATION_KINDS,
45
+ OTHER_SOURCES,
46
+ PEOPLE_SORTS,
47
+ PERSON_KINDS,
48
+ PERSON_TIES,
49
+ PROJECTS_QUERY,
50
+ PROJECT_ANNOTATIONS_MAX_BYTES,
51
+ PROJECT_TASK_FIELDS,
52
+ PROJECT_TYPES,
53
+ PROPOSAL_STATUSES,
54
+ QUOTE_LIMIT,
55
+ REMINDERS_QUERY,
56
+ SCOPES,
57
+ SMALL_GROUP_MEMBERS,
58
+ TASK_EVENT_KINDS,
59
+ TASK_PAIR_DECISIONS,
60
+ TASK_RELATION_KINDS,
61
+ TASK_ROLES,
62
+ TASK_SORTS,
63
+ addedSourceKeyOf,
64
+ assertGenericAction,
65
+ assertMayDecide,
66
+ backfillNormalized,
67
+ baseSettingKey,
68
+ callbackDataOf,
69
+ certaintyOf,
70
+ createTagRedirectIndex,
71
+ crmIdentityId,
72
+ crmSettingKey,
73
+ decodeProjectAnnotationSnapshot,
74
+ decodeProjectAnnotations,
75
+ fillSearchIndex,
76
+ isDecisionToken,
77
+ isOwnerOnlyKind,
78
+ mayDecide,
79
+ mergeId,
80
+ migrate,
81
+ openStore,
82
+ ownerLanguages,
83
+ parseCallbackData,
84
+ parseMergeId,
85
+ pendingNormalization,
86
+ planProjectAnnotationSnapshot,
87
+ planProjectAnnotations,
88
+ projectAnnotationSnapshotFingerprint,
89
+ projectAnnotationSnapshotSchema,
90
+ projectAnnotationsFingerprint,
91
+ proposerOfAction,
92
+ quoteKept,
93
+ registerProvider,
94
+ resetAttachmentWords,
95
+ resetSearchIndex,
96
+ searchIndexState,
97
+ validateEvidenceFindings,
98
+ waitingPointer,
99
+ withoutField
100
+ } from "./chunk-DJPT7IUC.js";
101
+ import "./chunk-GGRKWAOK.js";
102
+ import "./chunk-JXZ5B3L5.js";
103
+ import "./chunk-WUCMMNFJ.js";
104
+ import "./chunk-E6LGZ5LX.js";
105
+ import {
106
+ BUSINESS_KINDS,
107
+ CLOSED_STATES,
108
+ FACT_STATUSES,
109
+ MEMORY_KINDS,
110
+ MEMORY_SCOPES,
111
+ MEMORY_STATUSES,
112
+ PRIORITY_LABELS,
113
+ SOURCE_REVIEW_CAUSES,
114
+ SOURCE_REVIEW_KIND,
115
+ TASK_STATES,
116
+ TASK_TYPES,
117
+ WORK_TASK_TYPES,
118
+ clearDamageMark,
119
+ damageMarkPath,
120
+ healthMarkPath,
121
+ isClosedState,
122
+ journalMarkPath,
123
+ markStoreDamaged,
124
+ organization,
125
+ priorityLabel,
126
+ priorityOf,
127
+ priorityOption,
128
+ project,
129
+ readDamageMark,
130
+ readHealthMark,
131
+ readJournalMark,
132
+ recordDeepCheck,
133
+ reminder
134
+ } from "./chunk-D7FO33KU.js";
135
+ import "./chunk-E6YRIHS5.js";
136
+ import "./chunk-VRRNBLMA.js";
137
+ import "./chunk-TRCSMVV5.js";
138
+ import "./chunk-RC5QAAAE.js";
139
+ import {
140
+ FACT_TYPES,
141
+ PAYMENT_DIRECTIONS,
142
+ PAYMENT_STATES,
143
+ paymentTitle,
144
+ validatePayment
145
+ } from "./chunk-VJNWN5VU.js";
146
+ import "./chunk-ZMJ56GME.js";
147
+ import "./chunk-MDQ57Q3H.js";
148
+ import {
149
+ storePath
150
+ } from "./chunk-NQAKARHE.js";
151
+ import {
152
+ openCache
153
+ } from "./chunk-4YPRRQBE.js";
154
+ import {
155
+ PRAGMAS
156
+ } from "./chunk-ZVJWD3FK.js";
157
+ import "./chunk-762BS35H.js";
158
+ import "./chunk-AG64V7AB.js";
159
+ import "./chunk-S4UUN6LD.js";
160
+ import "./chunk-Y5E2WNWB.js";
161
+ import "./chunk-T7ZUDA4C.js";
162
+ import "./chunk-GEBSW7UK.js";
163
+ import "./chunk-ZVVMGPBJ.js";
164
+ export {
165
+ ADDED_KINDS,
166
+ ALWAYS_SHOWN,
167
+ BUSINESS_FIND_MAX,
168
+ BUSINESS_KINDS,
169
+ CALLBACK_PREFIX,
170
+ CATALOG_QUERY,
171
+ CLOSED_STATES,
172
+ COMPANY_TYPE_MEANINGS,
173
+ CRM_CHANGES,
174
+ CRM_LINK_MODES,
175
+ DECISION_ACTIONS,
176
+ DECISION_TTL_MS,
177
+ DEFAULT_DECISION_POLICY,
178
+ DEFAULT_OWNER_LANGUAGES,
179
+ DOCUMENT_KINDS,
180
+ DOUBT_REASONS,
181
+ EVENT_FIELDS,
182
+ EVIDENCE_FINDINGS_KIND,
183
+ FACT_STATUSES,
184
+ FACT_TYPES,
185
+ IDENTITY_LINK_KIND,
186
+ IDENTITY_LINK_SIGNALS,
187
+ IDENTITY_SPLIT_KIND,
188
+ IMPORTED_DOCUMENT_QUERY,
189
+ LINK_WEAKNESSES,
190
+ MAIL_FINDINGS_KIND,
191
+ MEETING_ROW_KINDS,
192
+ MEMORY_KINDS,
193
+ MEMORY_SCOPES,
194
+ MEMORY_STATUSES,
195
+ MENTION_QUERY,
196
+ MENTION_STATUSES,
197
+ MIGRATIONS,
198
+ NOTE_FIELDS,
199
+ ORGANIZATIONS_QUERY,
200
+ ORGANIZATION_KINDS,
201
+ OTHER_SOURCES,
202
+ PAYMENT_DIRECTIONS,
203
+ PAYMENT_STATES,
204
+ PEOPLE_SORTS,
205
+ PERSON_KINDS,
206
+ PERSON_TIES,
207
+ PRAGMAS,
208
+ PRIORITY_LABELS,
209
+ PROJECTS_QUERY,
210
+ PROJECT_ANNOTATIONS_MAX_BYTES,
211
+ PROJECT_TASK_FIELDS,
212
+ PROJECT_TYPES,
213
+ PROPOSAL_STATUSES,
214
+ QUICK_HEALTH_CHECKS,
215
+ QUOTE_LIMIT,
216
+ REMINDERS_QUERY,
217
+ SCOPES,
218
+ SMALL_GROUP_MEMBERS,
219
+ SOURCE_REVIEW_CAUSES,
220
+ SOURCE_REVIEW_KIND,
221
+ TASK_EVENT_KINDS,
222
+ TASK_PAIR_DECISIONS,
223
+ TASK_RELATION_KINDS,
224
+ TASK_ROLES,
225
+ TASK_SORTS,
226
+ TASK_STATES,
227
+ TASK_TYPES,
228
+ WORK_TASK_TYPES,
229
+ addedSourceKeyOf,
230
+ applyDocumentTransfer,
231
+ assertGenericAction,
232
+ assertMayDecide,
233
+ backfillNormalized,
234
+ baseSettingKey,
235
+ callbackDataOf,
236
+ certaintyOf,
237
+ clearDamageMark,
238
+ createTagRedirectIndex,
239
+ crmIdentityId,
240
+ crmSettingKey,
241
+ damageMarkPath,
242
+ decodeProjectAnnotationSnapshot,
243
+ decodeProjectAnnotations,
244
+ fillSearchIndex,
245
+ healthMarkPath,
246
+ isClosedState,
247
+ isDecisionToken,
248
+ isOwnerOnlyKind,
249
+ journalMarkPath,
250
+ markStoreDamaged,
251
+ mayDecide,
252
+ mergeId,
253
+ migrate,
254
+ note,
255
+ openCache,
256
+ openStore,
257
+ organization,
258
+ ownerLanguages,
259
+ parseCallbackData,
260
+ parseMergeId,
261
+ paymentTitle,
262
+ pendingNormalization,
263
+ planProjectAnnotationSnapshot,
264
+ planProjectAnnotations,
265
+ previewDocumentTransfer,
266
+ previewProjectAnnotationSnapshot,
267
+ priorityLabel,
268
+ priorityOf,
269
+ priorityOption,
270
+ project,
271
+ projectAnnotationSnapshotFingerprint,
272
+ projectAnnotationSnapshotSchema,
273
+ projectAnnotationsFingerprint,
274
+ proposerOfAction,
275
+ quoteKept,
276
+ readDamageMark,
277
+ readHealthMark,
278
+ readJournalMark,
279
+ recordDeepCheck,
280
+ registerProvider,
281
+ reminder,
282
+ resetAttachmentWords,
283
+ resetSearchIndex,
284
+ searchIndexState,
285
+ snapshotProjectAnnotations,
286
+ storeDamageReport,
287
+ storeHealth,
288
+ storePath,
289
+ validateEvidenceFindings,
290
+ validatePayment,
291
+ waitingPointer,
292
+ withoutField
293
+ };
@@ -0,0 +1,69 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ import {
4
+ addStoreMaintenanceCommands,
5
+ buildStems,
6
+ storeMaintenanceCommands,
7
+ storeSummary
8
+ } from "./chunk-2JFDOPKA.js";
9
+ import "./chunk-DJH26PQ3.js";
10
+ import "./chunk-2CLWDQKA.js";
11
+ import "./chunk-5COYRL5B.js";
12
+ import "./chunk-ZTSB3D7Q.js";
13
+ import "./chunk-J5PWSTOX.js";
14
+ import "./chunk-EH6ZEJGT.js";
15
+ import "./chunk-PYVIA7WF.js";
16
+ import "./chunk-IALSIQVT.js";
17
+ import "./chunk-UD2BQEKA.js";
18
+ import "./chunk-Z2QEON7B.js";
19
+ import "./chunk-BH7LFEX7.js";
20
+ import "./chunk-OUUYVROP.js";
21
+ import "./chunk-OR3QG7UR.js";
22
+ import "./chunk-DTMSCZDW.js";
23
+ import "./chunk-PQBAM64O.js";
24
+ import "./chunk-FMNPG6N2.js";
25
+ import "./chunk-QGWXSFYN.js";
26
+ import "./chunk-2BITUXGC.js";
27
+ import "./chunk-J7BVAEHR.js";
28
+ import "./chunk-JOBO7F6W.js";
29
+ import "./chunk-IOXR2QBX.js";
30
+ import "./chunk-BC5HGIXB.js";
31
+ import "./chunk-J5CXR6VX.js";
32
+ import "./chunk-V4TL55GS.js";
33
+ import "./chunk-KBIAMDZN.js";
34
+ import "./chunk-DJPT7IUC.js";
35
+ import "./chunk-GGRKWAOK.js";
36
+ import "./chunk-JXZ5B3L5.js";
37
+ import "./chunk-WUCMMNFJ.js";
38
+ import "./chunk-E6LGZ5LX.js";
39
+ import "./chunk-D7FO33KU.js";
40
+ import "./chunk-E6YRIHS5.js";
41
+ import "./chunk-VRRNBLMA.js";
42
+ import "./chunk-TRCSMVV5.js";
43
+ import "./chunk-RC5QAAAE.js";
44
+ import "./chunk-VJNWN5VU.js";
45
+ import "./chunk-ZMJ56GME.js";
46
+ import "./chunk-HUZCL33L.js";
47
+ import "./chunk-Q6HK3PHE.js";
48
+ import "./chunk-CNIA2LJF.js";
49
+ import "./chunk-MDQ57Q3H.js";
50
+ import "./chunk-FDDAUASC.js";
51
+ import "./chunk-FOKJ4POB.js";
52
+ import "./chunk-OF7VVUDQ.js";
53
+ import "./chunk-D72URWJE.js";
54
+ import "./chunk-NQAKARHE.js";
55
+ import "./chunk-4YPRRQBE.js";
56
+ import "./chunk-ZVJWD3FK.js";
57
+ import "./chunk-762BS35H.js";
58
+ import "./chunk-AG64V7AB.js";
59
+ import "./chunk-S4UUN6LD.js";
60
+ import "./chunk-Y5E2WNWB.js";
61
+ import "./chunk-T7ZUDA4C.js";
62
+ import "./chunk-GEBSW7UK.js";
63
+ import "./chunk-ZVVMGPBJ.js";
64
+ export {
65
+ addStoreMaintenanceCommands,
66
+ buildStems,
67
+ storeMaintenanceCommands,
68
+ storeSummary
69
+ };
@@ -0,0 +1,183 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __bundleRequire } from "node:module";
3
+ const require = __bundleRequire(import.meta.url);
4
+ import {
5
+ DESKTOP
6
+ } from "./chunk-XDESE3NY.js";
7
+ import {
8
+ installerOf
9
+ } from "./chunk-OF7VVUDQ.js";
10
+ import {
11
+ DESCRIBE_FLAG,
12
+ DISPATCH_FLAG,
13
+ PROGRAM_PREFIX,
14
+ SHIM_FORMAT,
15
+ describeAnswer,
16
+ exists,
17
+ fileState,
18
+ shimFiles,
19
+ writeShim
20
+ } from "./chunk-MLXQ4X5L.js";
21
+ import "./chunk-762BS35H.js";
22
+ import {
23
+ catchCrashes
24
+ } from "./chunk-AG64V7AB.js";
25
+ import "./chunk-S4UUN6LD.js";
26
+ import "./chunk-Y5E2WNWB.js";
27
+ import "./chunk-T7ZUDA4C.js";
28
+ import {
29
+ __name
30
+ } from "./chunk-ZVVMGPBJ.js";
31
+
32
+ // dist/bin/ydisk.js
33
+ import { enableCompileCache } from "node:module";
34
+
35
+ // node_modules/.pnpm/@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_commander@15.0.0_esbuild@0.28._2fe0e09d29eda9827e2087fd1a1cce67/node_modules/@wirecat/cli-base/dist/wcat/start.js
36
+ import { createHash } from "node:crypto";
37
+ import { existsSync, readFileSync as readFileSync2, realpathSync } from "node:fs";
38
+ import { dirname as dirname2, join as join2 } from "node:path";
39
+ import { fileURLToPath } from "node:url";
40
+
41
+ // node_modules/.pnpm/@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_commander@15.0.0_esbuild@0.28._2fe0e09d29eda9827e2087fd1a1cce67/node_modules/@wirecat/cli-base/dist/wcat/launcher.js
42
+ import { readFileSync } from "node:fs";
43
+ import { basename, dirname, join, resolve } from "node:path";
44
+ var posix = /* @__PURE__ */ __name((path) => path.replaceAll("\\", "/"), "posix");
45
+ var pnpmHome = /* @__PURE__ */ __name((path, env) => {
46
+ const home = env.PNPM_HOME;
47
+ return home && path.startsWith(`${posix(home).replace(/\/+$/, "")}/`) ? home : void 0;
48
+ }, "pnpmHome");
49
+ var layoutFolders = /* @__PURE__ */ __name((script, env) => {
50
+ const path = posix(script);
51
+ const home = pnpmHome(path, env);
52
+ if (home)
53
+ return [join(home, "bin"), home];
54
+ switch (installerOf(script)) {
55
+ case "bun":
56
+ return [`${path.slice(0, path.indexOf("/install/global/node_modules/"))}/bin`];
57
+ case "npm": {
58
+ const root = path.slice(0, path.indexOf("/node_modules/"));
59
+ return [basename(root) === "lib" ? join(dirname(root), "bin") : root];
60
+ }
61
+ default:
62
+ return [];
63
+ }
64
+ }, "layoutFolders");
65
+ var binFolder = /* @__PURE__ */ __name(({ name, argv1, script, env, platform }) => {
66
+ if (!["npm", "pnpm", "bun"].includes(installerOf(script)) && !pnpmHome(posix(script), env))
67
+ return void 0;
68
+ const extensions = platform === "win32" ? [".cmd", ".exe"] : [""];
69
+ const candidates = [argv1 ? dirname(argv1) : void 0, ...layoutFolders(script, env)];
70
+ for (const dir of new Set(candidates)) {
71
+ if (dir === void 0 || basename(dir) === ".bin")
72
+ continue;
73
+ for (const extension of extensions) {
74
+ const program = `${PROGRAM_PREFIX}${name}${extension}`;
75
+ if (exists(join(dir, program)))
76
+ return { dir, program };
77
+ }
78
+ }
79
+ return void 0;
80
+ }, "binFolder");
81
+ var installed = /* @__PURE__ */ __name((dir, program) => {
82
+ if (!exists(join(dir, program)))
83
+ return false;
84
+ if (!program.toLowerCase().endsWith(".exe"))
85
+ return true;
86
+ let script;
87
+ try {
88
+ script = readFileSync(join(dir, `${program.slice(0, -4)}.bunx`)).toString("utf16le").split('"')[0] ?? "";
89
+ } catch {
90
+ return true;
91
+ }
92
+ if (script === "" || exists(resolve(dir, script)))
93
+ return true;
94
+ const at = posix(script).lastIndexOf("/install/global/node_modules/");
95
+ return at < 0 || exists(join(dirname(dir), posix(script).slice(at + 1)));
96
+ }, "installed");
97
+ var NAME = "wcat";
98
+ var ensureLauncher = /* @__PURE__ */ __name(({ dir, program, platform }) => {
99
+ try {
100
+ if (!exists(join(dir, program)))
101
+ return "failed";
102
+ const mine = shimFiles("launcher", { dir, name: NAME, target: program, platform });
103
+ const states = mine.map((file) => fileState(file.path));
104
+ if (states.some((one) => one.state === "foreign"))
105
+ return "foreign";
106
+ const ours = states.flatMap((one) => one.state === "ours" ? [one] : []);
107
+ if (ours.some(({ mark }) => mark.format > SHIM_FORMAT))
108
+ return "newer";
109
+ if (ours.some(({ mark }) => mark.kind !== "launcher"))
110
+ return "foreign";
111
+ const current = ours.find(({ mark }) => installed(dir, mark.target))?.mark.target;
112
+ const wanted = shimFiles("launcher", { dir, name: NAME, target: current ?? program, platform });
113
+ const stale = wanted.filter((file, at) => {
114
+ const state = states[at];
115
+ return state?.state !== "ours" || state.text !== file.text;
116
+ });
117
+ if (stale.length === 0)
118
+ return "kept";
119
+ for (const file of stale)
120
+ writeShim(file);
121
+ return "written";
122
+ } catch {
123
+ return "failed";
124
+ }
125
+ }, "ensureLauncher");
126
+
127
+ // node_modules/.pnpm/@wirecat+cli-base@0.110.0_@scalar+openapi-upgrader@0.4.6_commander@15.0.0_esbuild@0.28._2fe0e09d29eda9827e2087fd1a1cce67/node_modules/@wirecat/cli-base/dist/wcat/start.js
128
+ var wcatStart = /* @__PURE__ */ __name(async (tool, io = {}) => {
129
+ const argv = io.argv ?? process.argv;
130
+ const env = io.env ?? process.env;
131
+ const platform = io.platform ?? process.platform;
132
+ const stdout = io.stdout ?? process.stdout;
133
+ const [first, ...rest] = argv.slice(2);
134
+ if (first === DESCRIBE_FLAG) {
135
+ stdout.write(`${JSON.stringify(describeAnswer(tool, shippedManifest(argv[1])))}
136
+ `);
137
+ return { code: 0 };
138
+ }
139
+ if (first === DISPATCH_FLAG) {
140
+ const { runWcat } = await import("./dispatch-5LC4UEGY.js");
141
+ const code = await runWcat(rest, { env, platform, stdout, stderr: io.stderr ?? process.stderr, self: tool });
142
+ return { code };
143
+ }
144
+ const folder = binFolder({
145
+ name: tool.command,
146
+ argv1: argv[1],
147
+ script: io.script ?? fileURLToPath(new URL("wcat/start.js", import.meta.resolve("@wirecat/cli-base")).href),
148
+ env,
149
+ platform
150
+ });
151
+ return folder ? { launcher: ensureLauncher({ ...folder, platform }) } : {};
152
+ }, "wcatStart");
153
+ var shippedManifest = /* @__PURE__ */ __name((bin) => {
154
+ if (!bin)
155
+ return void 0;
156
+ try {
157
+ for (let dir = dirname2(realpathSync(bin)); ; dir = dirname2(dir)) {
158
+ if (existsSync(join2(dir, "package.json"))) {
159
+ const bytes = readFileSync2(join2(dir, "contracts", "wirecat.json"));
160
+ const { wcat_manifest: format, desktop } = JSON.parse(bytes.toString("utf8"));
161
+ if (format !== 2 || typeof desktop !== "object" || desktop === null)
162
+ return void 0;
163
+ return { desktop, sha256: createHash("sha256").update(bytes).digest("hex") };
164
+ }
165
+ if (dirname2(dir) === dir)
166
+ return void 0;
167
+ }
168
+ } catch {
169
+ return void 0;
170
+ }
171
+ }, "shippedManifest");
172
+
173
+ // dist/bin/ydisk.js
174
+ enableCompileCache();
175
+ var stopCatching = catchCrashes({ cli: DESKTOP.command, interactive: process.stdout.isTTY === true });
176
+ var wcat = await wcatStart(DESKTOP);
177
+ if (wcat.code !== void 0) {
178
+ process.exitCode = wcat.code;
179
+ } else {
180
+ const { run } = await import("./program-FMIVF5T6.js");
181
+ process.exitCode = await run(process.argv.slice(2));
182
+ }
183
+ stopCatching();