@wirecat/files-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 (85) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/LICENSE +204 -0
  3. package/README.md +68 -2
  4. package/contracts/wirecat.json +751 -0
  5. package/dist/answer.js +60 -0
  6. package/dist/app.js +6 -0
  7. package/dist/author.js +87 -0
  8. package/dist/bin/files.js +40 -0
  9. package/dist/bundle/chunk-GNDPV4HK.js +263 -0
  10. package/dist/bundle/files.js +21 -0
  11. package/dist/bundle/program-EN7Z757N.js +12291 -0
  12. package/dist/config.js +65 -0
  13. package/dist/entities.js +103 -0
  14. package/dist/failure.js +21 -0
  15. package/dist/identity.js +27 -0
  16. package/dist/import/audio.js +96 -0
  17. package/dist/import/command.js +156 -0
  18. package/dist/import/external-id.js +44 -0
  19. package/dist/import/files.js +206 -0
  20. package/dist/import/readers.js +80 -0
  21. package/dist/index.js +3 -0
  22. package/dist/migrate.js +192 -0
  23. package/dist/notes/about.js +55 -0
  24. package/dist/notes/bound.js +39 -0
  25. package/dist/notes/command.js +241 -0
  26. package/dist/notes/dates.js +15 -0
  27. package/dist/notes/dialects/common.js +79 -0
  28. package/dist/notes/dialects/index.js +6 -0
  29. package/dist/notes/dialects/markdown.js +51 -0
  30. package/dist/notes/dialects/obsidian.js +33 -0
  31. package/dist/notes/dialects/types.js +2 -0
  32. package/dist/notes/embed.js +97 -0
  33. package/dist/notes/export.js +76 -0
  34. package/dist/notes/files.js +81 -0
  35. package/dist/notes/folders-command.js +172 -0
  36. package/dist/notes/folders.js +88 -0
  37. package/dist/notes/import.js +234 -0
  38. package/dist/notes/internal.js +51 -0
  39. package/dist/notes/links.js +44 -0
  40. package/dist/notes/list.js +23 -0
  41. package/dist/notes/renames.js +24 -0
  42. package/dist/notes/search.js +16 -0
  43. package/dist/notes/state.js +33 -0
  44. package/dist/options.js +9 -0
  45. package/dist/output.js +4 -0
  46. package/dist/paths.js +5 -0
  47. package/dist/people/identity.js +19 -0
  48. package/dist/people/notes-map.js +58 -0
  49. package/dist/people/owner.js +14 -0
  50. package/dist/people/subject.js +19 -0
  51. package/dist/program.js +98 -0
  52. package/dist/progress.js +19 -0
  53. package/dist/reasons.js +187 -0
  54. package/dist/records/input.js +114 -0
  55. package/dist/records/receipt.js +25 -0
  56. package/dist/records/source.js +12 -0
  57. package/dist/refs.js +28 -0
  58. package/dist/run/lock.js +21 -0
  59. package/dist/save-help.js +3 -0
  60. package/dist/search.js +63 -0
  61. package/dist/sources/command.js +295 -0
  62. package/dist/sources/copy.js +32 -0
  63. package/dist/sources/mentions.js +78 -0
  64. package/dist/sources/read.js +261 -0
  65. package/dist/sources/readers/ai-model.js +74 -0
  66. package/dist/sources/readers/api.js +48 -0
  67. package/dist/sources/readers/claude-code.js +74 -0
  68. package/dist/sources/readers/codex.js +72 -0
  69. package/dist/sources/readers/index.js +10 -0
  70. package/dist/sources/readers/keys.js +31 -0
  71. package/dist/sources/readers/ollama.js +84 -0
  72. package/dist/sources/readers/process.js +49 -0
  73. package/dist/sources/readers/types.js +2 -0
  74. package/dist/sources/suggest-command.js +253 -0
  75. package/dist/sources/suggest.js +142 -0
  76. package/dist/sources/transcript.js +52 -0
  77. package/dist/store/group.js +8 -0
  78. package/dist/store/scope.js +25 -0
  79. package/dist/store/source-list.js +22 -0
  80. package/dist/sync.js +156 -0
  81. package/dist/terminal.js +16 -0
  82. package/dist/version.js +2 -0
  83. package/dist/wcat.js +4 -0
  84. package/package.json +89 -4
  85. package/skills/files-cli/SKILL.md +41 -0
package/dist/answer.js ADDED
@@ -0,0 +1,60 @@
1
+ import { itemOf, listOf, openStore, outputFor, renderAnswer, rootOf, } from "@wirecat/cli-core";
2
+ import { STORE_CLIENT } from "./app.js";
3
+ import { decisionPolicy } from "./config.js";
4
+ import { snakeKeys } from "./output.js";
5
+ export const itemAnswer = (value, extra) => itemOf(snakeKeys(value), extra);
6
+ /**
7
+ * A list. One that takes neither `--cursor` nor `--page` shows more only by a higher `--limit`, so it names no
8
+ * next page and no `page.next` step: both would point at a flag the command does not have.
9
+ */
10
+ export const listAnswer = (command, input) => {
11
+ const body = listOf(command, { ...input, items: snakeKeys(input.items) });
12
+ if (input.cursor !== undefined || input.page !== undefined)
13
+ return body;
14
+ if (body.page.mode === "page")
15
+ delete body.page.next_page;
16
+ const next = body.next?.filter(({ step }) => step !== "page.next") ?? [];
17
+ if (next.length > 0)
18
+ body.next = next;
19
+ else
20
+ delete body.next;
21
+ return body;
22
+ };
23
+ export const wholeList = (command, items) => listAnswer(command, { items, limit: Math.max(1, items.length), has_more: false });
24
+ export const openFilesStore = (env) => openStore({ env, ...STORE_CLIENT, decisions: decisionPolicy(env) });
25
+ export const withStore = async (env, work) => {
26
+ const store = await openFilesStore(env);
27
+ try {
28
+ return await work(store);
29
+ }
30
+ finally {
31
+ await store.close();
32
+ }
33
+ };
34
+ const running = new WeakMap();
35
+ /**
36
+ * The builders' root remembers the command that runs, so an answer is drawn for that command's own flags. The hook
37
+ * sits on each group: the groups are moved under cli-core's program before they run.
38
+ */
39
+ export const trackAnswers = (root) => {
40
+ for (const group of root.commands)
41
+ group.hook("preAction", (_group, leaf) => {
42
+ running.set(root, leaf);
43
+ });
44
+ };
45
+ /**
46
+ * Prints answers through cli-core's renderer: the whole envelope for `--json`, one line per item for `--compact`,
47
+ * otherwise `text`. The output flags are the program's own, so `json` is not read here.
48
+ */
49
+ export const answers = (program, _streams, env) => {
50
+ const print = (_json, body, text) => {
51
+ const leaf = running.get(program) ?? rootOf(program);
52
+ const output = outputFor(leaf);
53
+ renderAnswer(leaf, output, body, text === undefined ? undefined : () => `${text}\n`);
54
+ };
55
+ return {
56
+ print,
57
+ run: async (json, work) => print(json, await withStore(env, work)),
58
+ };
59
+ };
60
+ //# sourceMappingURL=answer.js.map
package/dist/app.js ADDED
@@ -0,0 +1,6 @@
1
+ import { IDENTITY } from "./identity.js";
2
+ /** How files names itself to the shared services: in their hints, their files and its errors. */
3
+ export const APP = IDENTITY;
4
+ /** What cli-core records about each CLI that opens the shared store, so an upgrade can name files. */
5
+ export const STORE_CLIENT = { command: APP.command, version: APP.version };
6
+ //# sourceMappingURL=app.js.map
package/dist/author.js ADDED
@@ -0,0 +1,87 @@
1
+ import { openSync } from "node:fs";
2
+ import { createInterface } from "node:readline";
3
+ import { ReadStream } from "node:tty";
4
+ import { CliError } from "@wirecat/cli-base";
5
+ import { environmentOf } from "@wirecat/cli-core";
6
+ import { terminalOf } from "./terminal.js";
7
+ /**
8
+ * The bot a run is recorded as when nothing names who runs it: no agent variable, and no person at a terminal. A
9
+ * missing variable proves nothing; such a run proposes, and never decides.
10
+ */
11
+ const UNATTENDED = "unattended";
12
+ /** Read from the terminal itself, not stdin, which may hold the command's input. */
13
+ const fromTerminal = async (question) => {
14
+ if (!process.stdin.isTTY || !process.stderr.isTTY)
15
+ return null;
16
+ let input;
17
+ try {
18
+ input = new ReadStream(openSync("/dev/tty", "r"));
19
+ }
20
+ catch {
21
+ return null;
22
+ }
23
+ const reader = createInterface({ input, output: process.stderr, terminal: true });
24
+ try {
25
+ return await new Promise((resolve, reject) => {
26
+ const cancel = () => reject(new CliError("cancelled", "cancelled — nothing was done"));
27
+ reader.once("SIGINT", cancel);
28
+ reader.once("close", cancel);
29
+ reader.question(question, resolve);
30
+ });
31
+ }
32
+ finally {
33
+ reader.close();
34
+ input.destroy();
35
+ }
36
+ };
37
+ /**
38
+ * The agent named by the variables cli-base's skill hint reads. `AI_AGENT` carries a version
39
+ * (`claude-code_2-1-296_agent`); one bot per release would split the agent's history, so only the name before it is
40
+ * kept.
41
+ */
42
+ const agentIn = (env) => {
43
+ const agent = env.AI_AGENT?.trim().split("_")[0];
44
+ if (agent)
45
+ return agent;
46
+ return env.CLAUDECODE ? "claude-code" : undefined;
47
+ };
48
+ const ownerSays = async (command, question) => {
49
+ const machine = command.optsWithGlobals().json !== undefined;
50
+ // A harness that gives an agent a terminal would wait for ever on a question under --json.
51
+ const answer = terminalOf(command).present && !machine
52
+ ? await (terminalOf(command).answer ?? environmentOf(command).answer ?? fromTerminal)(`${question} [y/N] `)
53
+ : null;
54
+ if (answer === null)
55
+ throw new CliError("confirmation_required", "--as-owner asks at a terminal, and nobody is at one to answer; the owner runs it there, without --json", { reason: "decision.owner-unconfirmed" });
56
+ if (!/^\s*y(es)?\s*$/i.test(answer))
57
+ throw new CliError("cancelled", "not done — the answer was no");
58
+ };
59
+ /** A run for an agent through files' MCP server: its stdin is the server's, and its files are this computer's. */
60
+ export const isMcpRun = (command, _env) => environmentOf(command).agent !== undefined;
61
+ /**
62
+ * Who runs this command. An MCP call is the agent's. `--from-app` is the owner's: the app says the owner clicked, and
63
+ * files takes its word, even with an agent variable set (NEED-2403). An agent's terminal is the agent's; `--as-owner`
64
+ * there makes it the owner's only after a yes at a real terminal. With no agent named, the owner only when stdin and
65
+ * stdout are a terminal: anything else is an unattended run, recorded as one.
66
+ */
67
+ export const whoRuns = async (command, env, { asOwner = false, question }) => {
68
+ if (isMcpRun(command, env)) {
69
+ if (asOwner)
70
+ throw new CliError("permission_error", "an agent cannot act as the owner; the owner runs this command");
71
+ return { bot: agentIn(env) ?? "files-mcp" };
72
+ }
73
+ if (command.opts().fromApp)
74
+ return "owner";
75
+ const agent = agentIn(env);
76
+ if (agent === undefined && terminalOf(command).present)
77
+ return "owner";
78
+ if (!asOwner)
79
+ return { bot: agent ?? UNATTENDED };
80
+ await ownerSays(command, question);
81
+ return "owner";
82
+ };
83
+ /** An app's claim, not a check: anything that runs files can pass it, so it is no security boundary. */
84
+ const fromAppOption = (command) => command.option("--from-app", "you did this in WireCat Desktop: record it as yours, with no terminal question");
85
+ export const byOption = (command) => fromAppOption(command.option("--as-owner", "act as you although an agent's terminal runs files (AI_AGENT or CLAUDECODE set); asks y/N at the terminal"));
86
+ export const reasonOption = (command) => command.option("--reason <text>", "why, in a few words; required when an agent decides for you");
87
+ //# sourceMappingURL=author.js.map
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env node
2
+ // cli-dev bundle loader
3
+ import * as module from "node:module"
4
+
5
+ const words = process.argv.slice(2)
6
+ // As the CLI answers it, unless a test records the argv: then the CLI writes the record too.
7
+ if (
8
+ words.length === 1 &&
9
+ (words[0] === "--version" || words[0] === "-V") &&
10
+ !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
+ ) {
12
+ process.stdout.write("0.1.0\n")
13
+ } else {
14
+ // Before the bundle compiles: the bundle's own call comes after its chunks.
15
+ module.enableCompileCache()
16
+ const serves = ((words) => {
17
+ const plain = words.filter((word) => !word.startsWith("-"));
18
+ return plain.slice(0, 4).some((word, at) => word === "serve" || word === "watch" || word === "mcp" && plain[at + 1] === void 0);
19
+ })(words)
20
+ if (serves && module.registerHooks) {
21
+ const bundle = new URL("../bundle/", import.meta.url).href
22
+ module.registerHooks({
23
+ resolve: (specifier, context, next) =>
24
+ specifier.startsWith("./") && context.parentURL?.startsWith(bundle)
25
+ ? { url: new URL(specifier, context.parentURL).href, format: "module", shortCircuit: true }
26
+ : next(specifier, context),
27
+ })
28
+ }
29
+ const chunks = ["../bundle/program-EN7Z757N.js"]
30
+ const preload = () =>
31
+ Promise.allSettled([
32
+ ...chunks.map((chunk) => import(chunk)),
33
+ ...["@wirecat/cli-core/preload","@wirecat/cli-base/preload"].map((name) => import(name).then((loaded) => loaded.preload())),
34
+ ])
35
+ if (((words) => words.filter((word) => !word.startsWith("-")).slice(0, 2).includes("upgrade"))(words)) await preload()
36
+ const running = import("../bundle/files.js")
37
+ // After the server answers its first request, so it starts no later.
38
+ if (serves) setTimeout(() => void preload(), 2000).unref()
39
+ await running
40
+ }
@@ -0,0 +1,263 @@
1
+ import { createRequire as __bundleRequire } from "node:module";
2
+ const require = __bundleRequire(import.meta.url);
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
11
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
12
+ }) : x)(function(x) {
13
+ if (typeof require !== "undefined") return require.apply(this, arguments);
14
+ throw Error('Dynamic require of "' + x + '" is not supported');
15
+ });
16
+ var __commonJS = (cb, mod) => function __require2() {
17
+ try {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ } catch (e) {
20
+ throw mod = 0, e;
21
+ }
22
+ };
23
+ var __copyProps = (to, from, except, desc) => {
24
+ if (from && typeof from === "object" || typeof from === "function") {
25
+ for (let key of __getOwnPropNames(from))
26
+ if (!__hasOwnProp.call(to, key) && key !== except)
27
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
28
+ }
29
+ return to;
30
+ };
31
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
32
+ // If the importer is in node compatibility mode or this is not an ESM
33
+ // file that has been converted to a CommonJS file using a Babel-
34
+ // compatible transform (i.e. "__esModule" has not been set), then set
35
+ // "default" to the CommonJS "module.exports" for node compatibility.
36
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
37
+ mod
38
+ ));
39
+
40
+ // dist/reasons.js
41
+ import { defineReasons } from "@wirecat/cli-base/standards";
42
+ var REASONS = defineReasons([
43
+ {
44
+ reason: "source.agent-fetch",
45
+ code: "permission_error",
46
+ message: "an agent over MCP cannot make files fetch an address",
47
+ details: []
48
+ },
49
+ {
50
+ reason: "ref.bare-number",
51
+ code: "validation_error",
52
+ message: "{value} is a bare number, which names no one kind of record here; give a reference such as {suggestion}",
53
+ details: ["value", "suggestion"]
54
+ },
55
+ {
56
+ reason: "decision.owner-unconfirmed",
57
+ code: "confirmation_required",
58
+ message: "--as-owner asks at a terminal, and nobody is at one to answer; the owner runs it there, without --json",
59
+ details: []
60
+ },
61
+ {
62
+ reason: "decision.decider-unknown",
63
+ code: "confirmation_required",
64
+ message: "nothing shows who decides; the owner decides at a terminal, an agent from its own session with --reason",
65
+ details: []
66
+ },
67
+ {
68
+ reason: "records.file-missing",
69
+ code: "not_found",
70
+ message: "no records file {path}: give a file that exists, or - for stdin",
71
+ details: ["path"]
72
+ },
73
+ {
74
+ reason: "records.file-unreadable",
75
+ code: "validation_error",
76
+ message: "the records file {path} cannot be read: {why}",
77
+ details: ["path", "why"]
78
+ },
79
+ {
80
+ reason: "sync.running",
81
+ code: "rate_limited",
82
+ message: "another files sync is running (process {pid}); try again when it ends",
83
+ details: ["pid"]
84
+ },
85
+ {
86
+ reason: "folder.unbound",
87
+ code: "configuration_error",
88
+ message: "the notes folder {path} has no folder id; files folders add or files folders update gives it one",
89
+ details: ["path"]
90
+ },
91
+ { reason: "folder.not-found", code: "not_found", message: "the store has no such folder of notes", details: [] },
92
+ {
93
+ reason: "folder.overlap",
94
+ code: "validation_error",
95
+ message: "{path} is inside or around {other}, which files already reads; remove one of them first",
96
+ details: ["path", "other"]
97
+ },
98
+ {
99
+ reason: "folder.delete-notes",
100
+ code: "confirmation_required",
101
+ message: "removing the folder deletes {notes} of its notes from the store; nothing was changed \u2014 add --yes",
102
+ details: ["notes"]
103
+ },
104
+ {
105
+ reason: "notes.folder-missing",
106
+ code: "not_found",
107
+ message: "the notes folder {path} is missing \u2014 connect its disk; if it moved, files folders update <id> <new path>",
108
+ details: ["path"]
109
+ },
110
+ {
111
+ reason: "note.not-imported",
112
+ code: "not_found",
113
+ message: "the note is not imported; files sync",
114
+ details: []
115
+ },
116
+ {
117
+ reason: "import.too-many-files",
118
+ code: "validation_error",
119
+ message: "{path} holds more files than one import reads: import them by folder",
120
+ details: ["path"]
121
+ },
122
+ {
123
+ reason: "mail.account-unknown",
124
+ code: "not_found",
125
+ message: "no stored mailbox by that address; the mail CLI syncs one",
126
+ details: ["account"]
127
+ },
128
+ { reason: "person.not-found", code: "not_found", message: "the store has no person by that name", details: [] },
129
+ {
130
+ reason: "identity.not-found",
131
+ code: "not_found",
132
+ message: "no identity has that exact id; people show lists them",
133
+ details: []
134
+ },
135
+ {
136
+ reason: "identity.no-messenger",
137
+ code: "validation_error",
138
+ message: "the name has no messenger; write it as <messenger>:<name or id>",
139
+ details: []
140
+ },
141
+ {
142
+ reason: "deal.not-readable",
143
+ code: "not_found",
144
+ message: "the deal or lead is in a CRM copy whose sign-in may not read it (SEC-197)",
145
+ details: []
146
+ },
147
+ {
148
+ reason: "reader.none-chosen",
149
+ code: "configuration_error",
150
+ message: "no reader is chosen for sources; the owner picks one with files sources readers set <reader>",
151
+ details: ["readers"]
152
+ },
153
+ {
154
+ reason: "reader.owner-picks",
155
+ code: "permission_error",
156
+ message: "only the owner picks the reader that reads a source; an agent uses the one the owner chose",
157
+ details: []
158
+ },
159
+ {
160
+ reason: "reader.unknown",
161
+ code: "validation_error",
162
+ message: "{reader} is not a reader files knows; it reads with one of {readers}",
163
+ details: ["reader", "readers"]
164
+ },
165
+ {
166
+ reason: "reader.unavailable",
167
+ code: "configuration_error",
168
+ message: "the chosen reader cannot read now; files sources readers says why and what fixes it",
169
+ details: []
170
+ },
171
+ {
172
+ reason: "reader.address-refused",
173
+ code: "validation_error",
174
+ message: "the reader's address must be on this computer (localhost, 127.x.x.x or [::1]); --base-url is Ollama's only",
175
+ details: []
176
+ },
177
+ {
178
+ reason: "reader.model-missing",
179
+ code: "configuration_error",
180
+ message: "the reader needs a model the owner names; files sources readers set <reader> --model <model>",
181
+ details: []
182
+ },
183
+ {
184
+ reason: "reader.ai-not-set",
185
+ code: "configuration_error",
186
+ message: "no AI model is chosen for every tool; wcat models ai set <provider> --model <model> chooses one",
187
+ details: []
188
+ },
189
+ {
190
+ reason: "reader.no-key",
191
+ code: "authentication_error",
192
+ message: "no API key is kept for the reader's provider; wcat models ai set <provider> --secret-stdin keeps one",
193
+ details: []
194
+ },
195
+ {
196
+ reason: "reader.not-running",
197
+ code: "provider_unavailable",
198
+ message: "the local model server is not running on this computer; start it, then try again",
199
+ details: []
200
+ },
201
+ {
202
+ reason: "reader.timeout",
203
+ code: "timeout",
204
+ message: "the reader gave no answer in time; try again, or a smaller source",
205
+ details: []
206
+ },
207
+ {
208
+ reason: "reader.limit",
209
+ code: "rate_limited",
210
+ message: "the reader's provider says the limit is reached; try again later",
211
+ details: []
212
+ },
213
+ {
214
+ reason: "reader.failed",
215
+ code: "invalid_response",
216
+ message: "the reader failed; check its sign-in, key, model and credit, then try again",
217
+ details: []
218
+ },
219
+ {
220
+ reason: "reader.unusable-answer",
221
+ code: "invalid_response",
222
+ message: "the reader's answer was not the JSON files asked for; nothing was staged, so try again",
223
+ details: []
224
+ }
225
+ ]);
226
+
227
+ // dist/version.js
228
+ var VERSION = "0.1.0";
229
+
230
+ // dist/identity.js
231
+ var PACKAGE = "@wirecat/files-cli";
232
+ var IDENTITY = {
233
+ command: "files",
234
+ appName: "files-cli",
235
+ envPrefix: "FILES",
236
+ description: "notes folders, documents and transcripts on this computer, in the shared local store",
237
+ version: VERSION,
238
+ issues: "https://github.com/WireCatLabs/files-cli/issues/new",
239
+ messenger: false,
240
+ contentLanguages: ["en", "ru", "es"],
241
+ errors: { reasons: REASONS }
242
+ };
243
+ var DESKTOP = {
244
+ ...IDENTITY,
245
+ docs: "https://github.com/WireCatLabs/files-cli#readme",
246
+ tagline: "Your notes, PDFs and transcripts for your agent",
247
+ syncs: "notes folders",
248
+ // The default endpoints of the readers and AI models; the owner may point either at another address.
249
+ hosts: ["api.openai.com", "api.anthropic.com", "localhost", "127.0.0.1"],
250
+ userHosts: "the web pages you add as sources, and the address you set for a reader or an AI model"
251
+ };
252
+ var SKILL = new URL("../skills/files-cli/SKILL.md", new URL("../identity.js", import.meta.url).href);
253
+
254
+ export {
255
+ __name,
256
+ __require,
257
+ __commonJS,
258
+ __toESM,
259
+ PACKAGE,
260
+ IDENTITY,
261
+ DESKTOP,
262
+ SKILL
263
+ };
@@ -0,0 +1,21 @@
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-GNDPV4HK.js";
7
+
8
+ // dist/bin/files.js
9
+ import { enableCompileCache } from "node:module";
10
+ import { catchCrashes } from "@wirecat/cli-base";
11
+ import { wcatStart } from "@wirecat/cli-base/wcat/start";
12
+ enableCompileCache();
13
+ var stopCatching = catchCrashes({ cli: DESKTOP.command, interactive: process.stdout.isTTY === true });
14
+ var wcat = await wcatStart(DESKTOP);
15
+ if (wcat.code !== void 0) {
16
+ process.exitCode = wcat.code;
17
+ } else {
18
+ const { run } = await import("./program-EN7Z757N.js");
19
+ process.exitCode = await run(process.argv.slice(2));
20
+ }
21
+ stopCatching();