@pylair/cli 0.1.0-rc.3 → 0.1.0-rc.31

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 (112) hide show
  1. package/README.md +3 -2
  2. package/dist/bin.d.ts +3 -0
  3. package/dist/bin.d.ts.map +1 -0
  4. package/dist/bin.js +7 -0
  5. package/dist/bin.js.map +1 -0
  6. package/dist/build/artifacts.d.ts +14 -0
  7. package/dist/build/artifacts.d.ts.map +1 -0
  8. package/dist/build/artifacts.js +61 -0
  9. package/dist/build/artifacts.js.map +1 -0
  10. package/dist/build/bytecode.d.ts +29 -0
  11. package/dist/build/bytecode.d.ts.map +1 -0
  12. package/dist/build/bytecode.js +65 -0
  13. package/dist/build/bytecode.js.map +1 -0
  14. package/dist/build/download.d.ts +53 -0
  15. package/dist/build/download.d.ts.map +1 -0
  16. package/dist/build/download.js +327 -0
  17. package/dist/build/download.js.map +1 -0
  18. package/dist/build/notices.d.ts +10 -0
  19. package/dist/build/notices.d.ts.map +1 -0
  20. package/dist/build/notices.js +109 -0
  21. package/dist/build/notices.js.map +1 -0
  22. package/dist/build/pbs.d.ts +12 -0
  23. package/dist/build/pbs.d.ts.map +1 -0
  24. package/dist/build/pbs.js +36 -0
  25. package/dist/build/pbs.js.map +1 -0
  26. package/dist/build/python.d.ts +24 -0
  27. package/dist/build/python.d.ts.map +1 -0
  28. package/dist/build/python.js +106 -0
  29. package/dist/build/python.js.map +1 -0
  30. package/dist/build/sign.d.ts +18 -0
  31. package/dist/build/sign.d.ts.map +1 -0
  32. package/dist/build/sign.js +182 -0
  33. package/dist/build/sign.js.map +1 -0
  34. package/dist/build/source.d.ts +19 -0
  35. package/dist/build/source.d.ts.map +1 -0
  36. package/dist/build/source.js +91 -0
  37. package/dist/build/source.js.map +1 -0
  38. package/dist/build/util.d.ts +20 -0
  39. package/dist/build/util.d.ts.map +1 -0
  40. package/dist/build/util.js +62 -0
  41. package/dist/build/util.js.map +1 -0
  42. package/dist/build.d.ts +26 -12
  43. package/dist/build.d.ts.map +1 -1
  44. package/dist/build.js +240 -270
  45. package/dist/build.js.map +1 -1
  46. package/dist/capabilities.d.ts +51 -0
  47. package/dist/capabilities.d.ts.map +1 -0
  48. package/dist/capabilities.js +232 -0
  49. package/dist/capabilities.js.map +1 -0
  50. package/dist/cli.d.ts +38 -1
  51. package/dist/cli.d.ts.map +1 -1
  52. package/dist/cli.js +266 -39
  53. package/dist/cli.js.map +1 -1
  54. package/dist/codegen.d.ts.map +1 -1
  55. package/dist/codegen.js +12 -1
  56. package/dist/codegen.js.map +1 -1
  57. package/dist/config.d.ts +25 -1
  58. package/dist/config.d.ts.map +1 -1
  59. package/dist/config.js +31 -12
  60. package/dist/config.js.map +1 -1
  61. package/dist/dev.d.ts +7 -3
  62. package/dist/dev.d.ts.map +1 -1
  63. package/dist/dev.js +120 -16
  64. package/dist/dev.js.map +1 -1
  65. package/dist/doctor.d.ts +34 -1
  66. package/dist/doctor.d.ts.map +1 -1
  67. package/dist/doctor.js +268 -19
  68. package/dist/doctor.js.map +1 -1
  69. package/dist/keys.d.ts +50 -0
  70. package/dist/keys.d.ts.map +1 -0
  71. package/dist/keys.js +192 -0
  72. package/dist/keys.js.map +1 -0
  73. package/dist/prune.d.ts.map +1 -1
  74. package/dist/prune.js +1 -0
  75. package/dist/prune.js.map +1 -1
  76. package/dist/ui/caps.d.ts +45 -0
  77. package/dist/ui/caps.d.ts.map +1 -0
  78. package/dist/ui/caps.js +81 -0
  79. package/dist/ui/caps.js.map +1 -0
  80. package/dist/ui/index.d.ts +106 -0
  81. package/dist/ui/index.d.ts.map +1 -0
  82. package/dist/ui/index.js +264 -0
  83. package/dist/ui/index.js.map +1 -0
  84. package/dist/ui/prompts.d.ts +39 -0
  85. package/dist/ui/prompts.d.ts.map +1 -0
  86. package/dist/ui/prompts.js +209 -0
  87. package/dist/ui/prompts.js.map +1 -0
  88. package/dist/ui/style.d.ts +27 -0
  89. package/dist/ui/style.d.ts.map +1 -0
  90. package/dist/ui/style.js +71 -0
  91. package/dist/ui/style.js.map +1 -0
  92. package/dist/update.d.ts +64 -0
  93. package/dist/update.d.ts.map +1 -0
  94. package/dist/update.js +266 -0
  95. package/dist/update.js.map +1 -0
  96. package/dist/version.d.ts +5 -0
  97. package/dist/version.d.ts.map +1 -0
  98. package/dist/version.js +15 -0
  99. package/dist/version.js.map +1 -0
  100. package/dist/wrap.d.ts +69 -0
  101. package/dist/wrap.d.ts.map +1 -0
  102. package/dist/wrap.js +292 -0
  103. package/dist/wrap.js.map +1 -0
  104. package/dist/wrapbuild.d.ts +33 -0
  105. package/dist/wrapbuild.d.ts.map +1 -0
  106. package/dist/wrapbuild.js +83 -0
  107. package/dist/wrapbuild.js.map +1 -0
  108. package/dist/wrapconfig.d.ts +52 -0
  109. package/dist/wrapconfig.d.ts.map +1 -0
  110. package/dist/wrapconfig.js +117 -0
  111. package/dist/wrapconfig.js.map +1 -0
  112. package/package.json +4 -3
package/dist/update.js ADDED
@@ -0,0 +1,266 @@
1
+ /** Auto-update support (decision 0011): `pylair update manifest` plus the
2
+ * checks `pylair build` runs on updater-enabled apps.
3
+ *
4
+ * The manifest is Tauri's update JSON:
5
+ * {version, notes?, pub_date, platforms: {<os>-<arch>: {signature, url}}}
6
+ * plus a per-platform `sha256` extension (unknown keys are ignored by the
7
+ * plugin; it is the skip-list key of 0011 §3).
8
+ */
9
+ import { createHash } from "node:crypto";
10
+ import { existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync, } from "node:fs";
11
+ import { tmpdir } from "node:os";
12
+ import { dirname, join } from "node:path";
13
+ import { parse as parseToml } from "smol-toml";
14
+ import { x as untar } from "tar";
15
+ import { loadTauriConfig } from "./config.js";
16
+ import { ui } from "./ui/index.js";
17
+ /** bundle/<kind> directory → the manifest platform's OS half. */
18
+ const KIND_OS = {
19
+ appimage: "linux",
20
+ macos: "darwin",
21
+ nsis: "windows",
22
+ };
23
+ /** Per bundle kind, what counts as an updater payload (its `.sig` sibling
24
+ * is found separately). macOS has no version in the name. */
25
+ const KIND_FILE = {
26
+ appimage: /\.appimage$/i,
27
+ macos: /\.app\.tar\.gz$/i,
28
+ nsis: /-setup\.(exe|nsis\.zip)$/i,
29
+ };
30
+ /** Arch spellings → the rust-target spelling the manifest platform keys use
31
+ * (`x86_64`/`aarch64`/`i686`): node `process.arch` names, rust-triple
32
+ * prefixes, and the `amd64`/`x64` tokens artifact filenames carry. */
33
+ const ARCH_CANON = {
34
+ x86_64: "x86_64",
35
+ amd64: "x86_64",
36
+ x64: "x86_64",
37
+ aarch64: "aarch64",
38
+ arm64: "aarch64",
39
+ i686: "i686",
40
+ i586: "i686",
41
+ x86: "i686",
42
+ ia32: "i686",
43
+ armv7: "armv7",
44
+ };
45
+ /** Rust-triple arch prefixes (the first `-`-separated segment). */
46
+ const TRIPLE_ARCHS = new Set(Object.keys(ARCH_CANON).concat(["riscv64gc"]));
47
+ export function canonArch(a) {
48
+ return ARCH_CANON[a.toLowerCase()] ?? a.toLowerCase();
49
+ }
50
+ /** `<product>_<version>_<arch>-setup.exe` etc. — the version embedded in an
51
+ * artifact's name, when it carries one (semver-shaped token). */
52
+ function nameVersion(file) {
53
+ return file.match(/(\d+\.\d+\.\d+(?:-[0-9A-Za-z][0-9A-Za-z.-]*)?)/)?.[1];
54
+ }
55
+ function nameArch(file) {
56
+ const m = file.match(/(?:^|[_-])(aarch64|arm64|x86_64|x64|amd64|i686|i586|x86)(?:[_.-]|$)/i);
57
+ return m ? canonArch(m[1]) : undefined;
58
+ }
59
+ /** Where tauri build writes bundles: `<target>/release/bundle` directly and
60
+ * per `--target <triple>` one level down — same root set as findArtifacts. */
61
+ function bundleRoots(tauriDir, env) {
62
+ const target = env.CARGO_TARGET_DIR ? env.CARGO_TARGET_DIR : join(tauriDir, "target");
63
+ const profile = "release";
64
+ const roots = [join(target, profile, "bundle")];
65
+ if (existsSync(target))
66
+ for (const e of readdirSync(target, { withFileTypes: true }))
67
+ if (e.isDirectory() && e.name !== "release" && e.name !== "debug")
68
+ roots.push(join(target, e.name, profile, "bundle"));
69
+ return roots;
70
+ }
71
+ /** The signed updater artifacts under every bundle root, keyed by platform.
72
+ * Arch comes from the `--target <triple>` dir name, then the filename, then
73
+ * the host — a host build of `aarch64.app.tar.gz` still lands darwin-aarch64. */
74
+ export function findUpdaterArtifacts(tauriDir, env = process.env) {
75
+ const byPlatform = new Map();
76
+ for (const root of bundleRoots(tauriDir, env)) {
77
+ if (!existsSync(root))
78
+ continue;
79
+ // <target>/<triple>/release/bundle roots carry the arch in the triple
80
+ // segment two levels up; the flat release/bundle root has none.
81
+ const triple = root.split(/[\\/]/).at(-3) ?? "";
82
+ const tripleArch = /^[a-z0-9_]+-/.test(triple) && TRIPLE_ARCHS.has(triple.split("-")[0])
83
+ ? canonArch(triple.split("-")[0])
84
+ : "";
85
+ // A universal-apple-darwin build serves BOTH mac arches from one
86
+ // fat artifact: the triple dir segment, or a `_universal` arch
87
+ // token in the filename, marks it.
88
+ const tripleUniversal = triple.split("-")[0] === "universal";
89
+ for (const kind of readdirSync(root, { withFileTypes: true })) {
90
+ const os = KIND_OS[kind.name];
91
+ if (!kind.isDirectory() || !os)
92
+ continue;
93
+ const re = KIND_FILE[kind.name];
94
+ for (const file of readdirSync(join(root, kind.name))) {
95
+ if (!re.test(file))
96
+ continue;
97
+ const universal = os === "darwin" &&
98
+ (tripleUniversal || /(?:^|[_-])universal(?:[_.-]|$)/i.test(file));
99
+ const arch = tripleArch || nameArch(file) || canonArch(process.arch);
100
+ for (const a of universal ? ["aarch64", "x86_64"] : [arch]) {
101
+ const platform = `${os}-${a}`;
102
+ const artifact = {
103
+ path: join(root, kind.name, file),
104
+ file,
105
+ platform,
106
+ version: nameVersion(file),
107
+ };
108
+ const prev = byPlatform.get(platform);
109
+ // Two spellings of the same payload (.exe and .nsis.zip): the exe wins.
110
+ if (prev && !(prev.file.endsWith(".zip") && file.endsWith(".exe")))
111
+ throw new Error(`multiple updater artifacts for ${platform}: ${prev.file} and ${file} ` +
112
+ `(${join(root, kind.name)}) - clean the bundle dir and rebuild`);
113
+ byPlatform.set(platform, artifact);
114
+ }
115
+ }
116
+ }
117
+ }
118
+ return [...byPlatform.values()].sort((a, b) => a.platform.localeCompare(b.platform));
119
+ }
120
+ /** tauri.conf.json `version` must equal src-tauri/Cargo.toml `[package]
121
+ * version`: the updater compares the offer against the CONF value baked into
122
+ * the bundle, while `env!("CARGO_PKG_VERSION")` reads Cargo.toml — a drifted
123
+ * pair makes an app report the wrong version after update (0011 §1). Run for
124
+ * every build of an updater-enabled app. */
125
+ export function assertUpdaterVersionSync(tauriDir, confVersion) {
126
+ const cargoPath = join(tauriDir, "Cargo.toml");
127
+ if (!existsSync(cargoPath))
128
+ return; // not a tauri app after all
129
+ const doc = parseToml(readFileSync(cargoPath, "utf-8"));
130
+ const cargoVersion = doc.package?.version;
131
+ if (cargoVersion === undefined || cargoVersion === confVersion)
132
+ return;
133
+ throw new Error(`version mismatch: src-tauri/tauri.conf.json says "${confVersion}" but ` +
134
+ `src-tauri/Cargo.toml [package] says "${cargoVersion}". The updater ` +
135
+ "compares offers against tauri.conf.json; bump both or the app will " +
136
+ "report a stale version after an update (decision 0011, section 1).");
137
+ }
138
+ /** The manifest's artifact directory base: --base-url, or the app's own
139
+ * endpoint minus its manifest filename. Trailing-slash normalized. */
140
+ function resolveBaseUrl(opts, tconf) {
141
+ let base = opts.baseUrl?.trim();
142
+ if (!base) {
143
+ const endpoint = tconf.updater?.endpoints?.[0];
144
+ if (endpoint) {
145
+ base = endpoint.replace(/\/[^/]*$/, "");
146
+ }
147
+ }
148
+ if (!base)
149
+ throw new Error("no base url: pass --base-url https://host/dir (the directory the manifest " +
150
+ "and artifacts are uploaded to), or configure plugins.updater.endpoints");
151
+ let url;
152
+ try {
153
+ url = new URL(base);
154
+ }
155
+ catch {
156
+ throw new Error(`--base-url is not a URL: ${base}`);
157
+ }
158
+ if (url.protocol !== "https:" && !opts.insecureDev)
159
+ throw new Error(`--base-url must be https (${base}); endpoints are https-only outside dev ` +
160
+ "(decision 0011, section 1). For a local dev server pass --insecure-dev.");
161
+ if (url.protocol !== "https:" && url.protocol !== "http:")
162
+ throw new Error(`--base-url must be https: got ${url.protocol}// (${base})`);
163
+ return base.replace(/\/+$/, "");
164
+ }
165
+ function sha256File(path) {
166
+ return createHash("sha256").update(readFileSync(path)).digest("hex");
167
+ }
168
+ /** The CFBundleShortVersionString inside a `<name>.app.tar.gz` updater
169
+ * artifact: the filename carries no version, so without this check a stale
170
+ * bundle (validly signed) would be published under the new version - and
171
+ * Macs would keep being re-offered the old build. Only the matching
172
+ * Contents/Info.plist entry is extracted; tauri writes it as XML. */
173
+ export function appTarVersion(path, file) {
174
+ const tmp = mkdtempSync(join(tmpdir(), "pylair-uptar-"));
175
+ try {
176
+ const plists = [];
177
+ try {
178
+ untar({
179
+ file: path,
180
+ cwd: tmp,
181
+ sync: true,
182
+ filter: (p) => /(^|\/)Contents\/Info\.plist$/.test(p),
183
+ onentry: (e) => {
184
+ if (e.type === "File")
185
+ plists.push(e.path);
186
+ },
187
+ });
188
+ }
189
+ catch (e) {
190
+ throw new Error(`${file}: not a readable .app.tar.gz (${e.message}) - ` +
191
+ "was it produced by tauri bundle?");
192
+ }
193
+ for (const p of plists) {
194
+ const m = readFileSync(join(tmp, p), "utf-8").match(/<key>\s*CFBundleShortVersionString\s*<\/key>\s*<string>\s*([^<]+?)\s*<\/string>/);
195
+ if (m)
196
+ return m[1].trim();
197
+ }
198
+ throw new Error(`${file}: no CFBundleShortVersionString in any Contents/Info.plist ` +
199
+ "inside the tarball - not a macOS app bundle?");
200
+ }
201
+ finally {
202
+ rmSync(tmp, { recursive: true, force: true });
203
+ }
204
+ }
205
+ /** Scan the bundle output for signed updater artifacts and write
206
+ * `latest[-<channel>].json`. Returns the manifest path. Fails loudly on: no
207
+ * artifacts, a missing `.sig`, artifacts whose embedded version disagrees
208
+ * with tauri.conf.json, or a non-https base url. */
209
+ export function updateManifest(opts) {
210
+ const tauriDir = join(opts.appDir, "src-tauri");
211
+ const env = opts.env ?? process.env;
212
+ const tconf = loadTauriConfig(opts.appDir);
213
+ const version = tconf.version;
214
+ if (typeof version !== "string" || !version)
215
+ throw new Error(`tauri.conf.json has no "version" - the manifest needs one`);
216
+ const artifacts = findUpdaterArtifacts(tauriDir, env);
217
+ if (!artifacts.length)
218
+ throw new Error(`no updater artifacts under ${tauriDir}/target/.../bundle - build signed ` +
219
+ "updater artifacts first (`pylair build --sign`, or bundle." +
220
+ "createUpdaterArtifacts + TAURI_SIGNING_PRIVATE_KEY)");
221
+ const base = resolveBaseUrl(opts, tconf);
222
+ const platforms = {};
223
+ for (const a of artifacts) {
224
+ // macOS tarballs carry no version in the name - read the bundled
225
+ // Info.plist instead; other platforms carry it in the filename.
226
+ const darwin = a.platform.startsWith("darwin-");
227
+ const actual = darwin ? appTarVersion(a.path, a.file) : a.version;
228
+ if (actual !== undefined && actual !== version)
229
+ throw new Error(`artifact version mismatch: ${a.file} ` +
230
+ (darwin
231
+ ? `bundles CFBundleShortVersionString "${actual}" `
232
+ : `is ${actual} `) +
233
+ `but tauri.conf.json says ${version} - rebuild the version you're shipping`);
234
+ const sig = `${a.path}.sig`;
235
+ if (!existsSync(sig))
236
+ throw new Error(`unsigned updater artifact: ${a.file} has no ${a.file}.sig - ` +
237
+ "was the build signed? (createUpdaterArtifacts + TAURI_SIGNING_PRIVATE_KEY)");
238
+ const signature = readFileSync(sig, "utf-8").trim();
239
+ if (!signature)
240
+ throw new Error(`empty signature file: ${sig}`);
241
+ platforms[a.platform] = {
242
+ signature,
243
+ url: `${base}/${encodeURIComponent(a.file)}`,
244
+ sha256: sha256File(a.path),
245
+ };
246
+ }
247
+ const manifest = {
248
+ version,
249
+ ...(opts.notes ? { notes: opts.notes } : {}),
250
+ pub_date: (opts.now ?? (() => new Date()))().toISOString(),
251
+ platforms,
252
+ };
253
+ const name = `latest${opts.channel ? `-${opts.channel}` : ""}.json`;
254
+ const out = opts.out ?? join(bundleRoots(tauriDir, env)[0], name);
255
+ mkdirSync(dirname(out), { recursive: true });
256
+ writeFileSync(out, JSON.stringify(manifest, null, 2) + "\n");
257
+ return { file: out, platforms: Object.keys(platforms) };
258
+ }
259
+ /** `pylair update manifest`. */
260
+ export function updateManifestCommand(opts) {
261
+ const { file, platforms } = updateManifest(opts);
262
+ ui.ok(`update manifest: wrote ${file}`);
263
+ ui.note(` platforms: ${platforms.join(", ")}`);
264
+ return 0;
265
+ }
266
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../src/update.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,YAAY,EACZ,MAAM,EACN,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,CAAC,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,eAAe,EAAoB,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAqBnC,iEAAiE;AACjE,MAAM,OAAO,GAA2B;IACtC,QAAQ,EAAE,OAAO;IACjB,KAAK,EAAE,QAAQ;IACf,IAAI,EAAE,SAAS;CAChB,CAAC;AAEF;6DAC6D;AAC7D,MAAM,SAAS,GAA2B;IACxC,QAAQ,EAAE,cAAc;IACxB,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,2BAA2B;CAClC,CAAC;AAEF;;sEAEsE;AACtE,MAAM,UAAU,GAA2B;IACzC,MAAM,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E,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7D,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;AAC1D,CAAC;AAED,gCAAgC;AAChC,MAAM,UAAU,qBAAqB,CAAC,IAA2B;IAC/D,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IACjD,EAAE,CAAC,EAAE,CAAC,0BAA0B,IAAI,EAAE,CAAC,CAAC;IACxC,EAAE,CAAC,IAAI,CAAC,gBAAgB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChD,OAAO,CAAC,CAAC;AACX,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** The CLI's own version, read from package.json relative to this built
2
+ * file (dist/version.js -> ../package.json), so it works from any cwd and
3
+ * from the published tarball. Falls back to 0.0.0 if unreadable. */
4
+ export declare function cliVersion(): string;
5
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA;;oEAEoE;AACpE,wBAAgB,UAAU,IAAI,MAAM,CASnC"}
@@ -0,0 +1,15 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { fileURLToPath } from "node:url";
3
+ /** The CLI's own version, read from package.json relative to this built
4
+ * file (dist/version.js -> ../package.json), so it works from any cwd and
5
+ * from the published tarball. Falls back to 0.0.0 if unreadable. */
6
+ export function cliVersion() {
7
+ try {
8
+ const pkg = JSON.parse(readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf-8"));
9
+ return String(pkg.version ?? "0.0.0");
10
+ }
11
+ catch {
12
+ return "0.0.0";
13
+ }
14
+ }
15
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;oEAEoE;AACpE,MAAM,UAAU,UAAU;IACxB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CACpB,YAAY,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC,CAClF,CAAC;QACF,OAAO,MAAM,CAAC,GAAG,CAAC,OAAO,IAAI,OAAO,CAAC,CAAC;IACxC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC"}
package/dist/wrap.d.ts ADDED
@@ -0,0 +1,69 @@
1
+ /** `pylair wrap` (alias `pylair init --mode wrap`): turn an existing Python
2
+ * web app into a Pylair wrap-mode app, in place.
3
+ *
4
+ * pylair wrap [entry.py] [--framework command|gradio|streamlit]
5
+ * [--cmd <argv...>] [--source <dir>] [--dir <path>]
6
+ *
7
+ * Dependencies must come from a manifest (docs/wrap-mode-brief.md, decision
8
+ * 3): `pyproject.toml` (ideally with `uv.lock`), or `requirements.txt` as
9
+ * the warned fallback. A bare `app.py` gets an error that offers `uv init`;
10
+ * Pylair does not infer dependencies from imports.
11
+ *
12
+ * What it writes: `[tool.pylair]` / `[tool.pylair.wrap]` in pyproject.toml,
13
+ * and the wrap template's `src-tauri/`, `ui/` and `package.json`, never
14
+ * overwriting a file that exists.
15
+ */
16
+ import { type WrapConfig, type WrapFramework } from "./wrapconfig.js";
17
+ export interface InitWrapOptions {
18
+ appDir: string;
19
+ /** Entry file for gradio / streamlit (relative to `source`). */
20
+ entry?: string;
21
+ framework?: WrapFramework;
22
+ /** Server argv for `command`. */
23
+ cmd?: string[];
24
+ /** Directory holding the app (relative to appDir). Default: where `entry`
25
+ * lives, else "app". */
26
+ source?: string;
27
+ /** Point the scaffold's dependencies at a Pylair checkout. */
28
+ local?: string;
29
+ /** Ask a yes/no question (the `uv init` offer). Default: prompt on a TTY,
30
+ * answer no otherwise. */
31
+ ask?: (question: string) => Promise<boolean>;
32
+ /** Pick a framework when none can be inferred. Default: an interactive
33
+ * select on a TTY, undefined otherwise (the caller then errors). */
34
+ chooseFramework?: () => Promise<WrapFramework | undefined>;
35
+ /** Ask for the entry file a non-command framework needs. Default: an
36
+ * interactive text prompt on a TTY, undefined otherwise. */
37
+ askEntry?: () => Promise<string | undefined>;
38
+ /** Ask for the server command a "command" framework needs. Default: an
39
+ * interactive text prompt on a TTY, undefined otherwise. */
40
+ askCmd?: () => Promise<string[] | undefined>;
41
+ log?: (msg: string) => void;
42
+ }
43
+ export interface InitWrapResult {
44
+ config: WrapConfig;
45
+ source: string;
46
+ wrote: string[];
47
+ kept: string[];
48
+ }
49
+ export declare const NO_MANIFEST_HELP: (dir: string) => string;
50
+ /** Which framework the manifest says the app uses, if it says. */
51
+ export declare function inferFramework(manifestText: string): WrapFramework | undefined;
52
+ /** The requirement lines of a requirements.txt as pyproject dependencies,
53
+ * or undefined when it uses anything pip-specific (-r, -e, --hash, urls with
54
+ * options) that does not translate one to one. */
55
+ export declare function requirementsToDependencies(text: string): string[] | undefined;
56
+ export declare function wrapToml(w: WrapConfig, source: string): string;
57
+ /** Split a typed command line into argv, honoring single and double quotes.
58
+ * Not a shell parser: no escapes or operators, just quoting. */
59
+ export declare function splitCmd(text: string): string[];
60
+ export declare function initWrap(opts: InitWrapOptions): Promise<InitWrapResult>;
61
+ /** Run `create-pylair --mode wrap --into <dir>`. From a Pylair checkout
62
+ * (`--local`) that is the checkout's own build; otherwise the scaffolder
63
+ * published at this CLI's exact version, so templates and pins always match.
64
+ * `PYLAIR_CREATE_PYLAIR` overrides the script (tests). */
65
+ export declare function runScaffolder(appDir: string, name: string, local?: string): {
66
+ written: string[];
67
+ k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