@wix/himalaya-cli 0.1121.0 → 0.1122.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/dist/cli.mjs +31 -24
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -54680,7 +54680,7 @@ __export(server_exports, {
|
|
|
54680
54680
|
protectStdout: () => protectStdout,
|
|
54681
54681
|
startMcpServer: () => startMcpServer
|
|
54682
54682
|
});
|
|
54683
|
-
import { readFileSync as readFileSync60 } from "node:fs";
|
|
54683
|
+
import { mkdirSync as mkdirSync27, readFileSync as readFileSync60 } from "node:fs";
|
|
54684
54684
|
import { fileURLToPath as fileURLToPath21 } from "node:url";
|
|
54685
54685
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
54686
54686
|
import { serveStdio, StdioServerTransport } from "@modelcontextprotocol/server/stdio";
|
|
@@ -54717,6 +54717,13 @@ async function startMcpServer(opts) {
|
|
|
54717
54717
|
const stdin = opts.stdin ?? process.stdin;
|
|
54718
54718
|
const stdout = opts.stdout ?? process.stdout;
|
|
54719
54719
|
const runCli = createCliBridge(opts.run);
|
|
54720
|
+
if (opts.workspace) {
|
|
54721
|
+
try {
|
|
54722
|
+
mkdirSync27(opts.workspace, { recursive: true });
|
|
54723
|
+
} catch (e) {
|
|
54724
|
+
console.error(`[himi mcp] could not create the workspace folder ${opts.workspace}: ${e.message}`);
|
|
54725
|
+
}
|
|
54726
|
+
}
|
|
54720
54727
|
const previewDeps = { ...defaultPreviewDeps, ...opts.preview };
|
|
54721
54728
|
let pinned;
|
|
54722
54729
|
let rootDir;
|
|
@@ -55294,7 +55301,7 @@ __export(coverage_exports, {
|
|
|
55294
55301
|
suppressedNativeKeys: () => suppressedNativeKeys,
|
|
55295
55302
|
trendAndStore: () => trendAndStore
|
|
55296
55303
|
});
|
|
55297
|
-
import { existsSync as existsSync57, mkdirSync as
|
|
55304
|
+
import { existsSync as existsSync57, mkdirSync as mkdirSync28, readFileSync as readFileSync63, writeFileSync as writeFileSync22 } from "node:fs";
|
|
55298
55305
|
import { dirname as dirname31, join as join56 } from "node:path";
|
|
55299
55306
|
function suppressedNativeKeys(oracle) {
|
|
55300
55307
|
return [...oracle.ios ? [] : ["native-decode|ios"], ...oracle.android ? [] : ["native-decode|android"]];
|
|
@@ -55487,7 +55494,7 @@ function trendAndStore(dir, entries, suppressed) {
|
|
|
55487
55494
|
const current = entries.map((e) => e.key);
|
|
55488
55495
|
const stored = [.../* @__PURE__ */ new Set([...current, ...(previous ?? []).filter((key2) => (suppressed ?? []).includes(key2))])];
|
|
55489
55496
|
try {
|
|
55490
|
-
|
|
55497
|
+
mkdirSync28(dirname31(p), { recursive: true });
|
|
55491
55498
|
writeFileSync22(p, JSON.stringify({ keys: stored, ts: (/* @__PURE__ */ new Date()).toISOString() }, null, 2));
|
|
55492
55499
|
} catch {
|
|
55493
55500
|
return null;
|
|
@@ -55532,7 +55539,7 @@ function diffAndStoreObservations(dir, current) {
|
|
|
55532
55539
|
} catch {
|
|
55533
55540
|
}
|
|
55534
55541
|
try {
|
|
55535
|
-
|
|
55542
|
+
mkdirSync28(dirname31(p), { recursive: true });
|
|
55536
55543
|
writeFileSync22(p, JSON.stringify({ screens: current, ts: (/* @__PURE__ */ new Date()).toISOString() }, null, 2));
|
|
55537
55544
|
} catch {
|
|
55538
55545
|
return null;
|
|
@@ -57456,7 +57463,7 @@ __export(run_exports, {
|
|
|
57456
57463
|
runPackage: () => runPackage,
|
|
57457
57464
|
withoutProdServe: () => withoutProdServe
|
|
57458
57465
|
});
|
|
57459
|
-
import { cpSync as cpSync2, existsSync as existsSync59, mkdirSync as
|
|
57466
|
+
import { cpSync as cpSync2, existsSync as existsSync59, mkdirSync as mkdirSync29, mkdtempSync as mkdtempSync3, readFileSync as readFileSync66, rmSync as rmSync14, statSync as statSync15 } from "node:fs";
|
|
57460
57467
|
import { networkInterfaces as osNetworkInterfaces, tmpdir as tmpdir4 } from "node:os";
|
|
57461
57468
|
import { dirname as dirname32, join as join58 } from "node:path";
|
|
57462
57469
|
import { fileURLToPath as fileURLToPath24 } from "node:url";
|
|
@@ -57500,7 +57507,7 @@ async function resolvePackage(source, workDir) {
|
|
|
57500
57507
|
const root2 = workDir ?? mkdtempSync3(join58(tmpdir4(), "himi-run-"));
|
|
57501
57508
|
const target = join58(root2, app2);
|
|
57502
57509
|
if (join58(source) !== target) {
|
|
57503
|
-
|
|
57510
|
+
mkdirSync29(root2, { recursive: true });
|
|
57504
57511
|
rmSync14(target, { recursive: true, force: true });
|
|
57505
57512
|
cpSync2(source, target, { recursive: true });
|
|
57506
57513
|
}
|
|
@@ -57695,7 +57702,7 @@ __export(run_watch_exports, {
|
|
|
57695
57702
|
watchedContentDir: () => watchedContentDir,
|
|
57696
57703
|
writeRunRecord: () => writeRunRecord
|
|
57697
57704
|
});
|
|
57698
|
-
import { closeSync as closeSync5, constants as constants2, existsSync as existsSync60, fstatSync, lstatSync as lstatSync13, statSync as statSync16, mkdirSync as
|
|
57705
|
+
import { closeSync as closeSync5, constants as constants2, existsSync as existsSync60, fstatSync, lstatSync as lstatSync13, statSync as statSync16, mkdirSync as mkdirSync30, openSync as openSync4, readFileSync as readFileSync67, realpathSync as realpathSync9, renameSync as renameSync7, rmSync as rmSync15, writeFileSync as writeFileSync23, watch as fsWatch } from "node:fs";
|
|
57699
57706
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
57700
57707
|
import { extname as extname4, join as join59, resolve as resolve47, sep as sep16 } from "node:path";
|
|
57701
57708
|
function diffReleases(prev, next) {
|
|
@@ -57821,7 +57828,7 @@ function himiDir(dir) {
|
|
|
57821
57828
|
return lstatSync13(root).isDirectory() ? root : null;
|
|
57822
57829
|
} catch (e) {
|
|
57823
57830
|
if (e.code !== "ENOENT") return null;
|
|
57824
|
-
|
|
57831
|
+
mkdirSync30(root, { recursive: true });
|
|
57825
57832
|
return lstatSync13(root).isDirectory() ? root : null;
|
|
57826
57833
|
}
|
|
57827
57834
|
}
|
|
@@ -60007,7 +60014,7 @@ __export(notify_exports, {
|
|
|
60007
60014
|
runNotify: () => runNotify,
|
|
60008
60015
|
saveAdminSession: () => saveAdminSession
|
|
60009
60016
|
});
|
|
60010
|
-
import { chmodSync as chmodSync3, mkdirSync as
|
|
60017
|
+
import { chmodSync as chmodSync3, mkdirSync as mkdirSync31, readFileSync as readFileSync76, writeFileSync as writeFileSync25 } from "node:fs";
|
|
60011
60018
|
import { homedir as homedir6 } from "node:os";
|
|
60012
60019
|
import { dirname as dirname35, join as join62 } from "node:path";
|
|
60013
60020
|
function defaultSessionsPath() {
|
|
@@ -60023,7 +60030,7 @@ function loadSessionsFile(path2 = defaultSessionsPath()) {
|
|
|
60023
60030
|
function saveAdminSession(adminUrl, session, path2 = defaultSessionsPath()) {
|
|
60024
60031
|
const file = loadSessionsFile(path2);
|
|
60025
60032
|
file.sessions = { ...file.sessions, [adminUrl]: session };
|
|
60026
|
-
|
|
60033
|
+
mkdirSync31(dirname35(path2), { recursive: true, mode: 448 });
|
|
60027
60034
|
writeFileSync25(path2, JSON.stringify(file, null, 2) + "\n", { mode: 384 });
|
|
60028
60035
|
try {
|
|
60029
60036
|
chmodSync3(dirname35(path2), 448);
|
|
@@ -63783,7 +63790,7 @@ var init_brand_font = __esm({
|
|
|
63783
63790
|
});
|
|
63784
63791
|
|
|
63785
63792
|
// src/site-analyze/write-artifacts.ts
|
|
63786
|
-
import { mkdirSync as
|
|
63793
|
+
import { mkdirSync as mkdirSync32, writeFileSync as writeFileSync26 } from "node:fs";
|
|
63787
63794
|
import { join as join63 } from "node:path";
|
|
63788
63795
|
function attachVeloSources(book, sources, put) {
|
|
63789
63796
|
const byPath = new Map((sources ?? []).map((s) => [s.path, s.text]));
|
|
@@ -63939,12 +63946,12 @@ async function downloadMedia(book, fetchImpl, put) {
|
|
|
63939
63946
|
}
|
|
63940
63947
|
async function writeBusinessBook(result, opts) {
|
|
63941
63948
|
const out2 = opts.outDir;
|
|
63942
|
-
|
|
63943
|
-
|
|
63949
|
+
mkdirSync32(join63(out2, "evidence/pages"), { recursive: true });
|
|
63950
|
+
mkdirSync32(join63(out2, "media/catalog"), { recursive: true });
|
|
63944
63951
|
const files = [];
|
|
63945
63952
|
const put = (rel, body) => {
|
|
63946
63953
|
const p = join63(out2, rel);
|
|
63947
|
-
|
|
63954
|
+
mkdirSync32(join63(p, ".."), { recursive: true });
|
|
63948
63955
|
writeFileSync26(p, body);
|
|
63949
63956
|
files.push(rel);
|
|
63950
63957
|
};
|
|
@@ -64038,7 +64045,7 @@ var init_customer_build = __esm({
|
|
|
64038
64045
|
});
|
|
64039
64046
|
|
|
64040
64047
|
// src/site-analyze/apply.ts
|
|
64041
|
-
import { existsSync as existsSync65, readFileSync as readFileSync77, writeFileSync as writeFileSync27, copyFileSync as copyFileSync3, mkdirSync as
|
|
64048
|
+
import { existsSync as existsSync65, readFileSync as readFileSync77, writeFileSync as writeFileSync27, copyFileSync as copyFileSync3, mkdirSync as mkdirSync33, realpathSync as realpathSync10, statSync as statSync18 } from "node:fs";
|
|
64042
64049
|
import { dirname as dirname36, isAbsolute as isAbsolute7, join as join64, resolve as resolve51, sep as sep17 } from "node:path";
|
|
64043
64050
|
import { spawnSync as spawnSync4 } from "node:child_process";
|
|
64044
64051
|
function unpairedRedirectNote(overlay) {
|
|
@@ -64154,7 +64161,7 @@ function buildMergedContract(options) {
|
|
|
64154
64161
|
if (!real.startsWith(realRoot + sep17)) return void 0;
|
|
64155
64162
|
try {
|
|
64156
64163
|
if (!statSync18(real).isFile()) return void 0;
|
|
64157
|
-
|
|
64164
|
+
mkdirSync33(dirname36(to), { recursive: true });
|
|
64158
64165
|
copyFileSync3(real, to);
|
|
64159
64166
|
} catch {
|
|
64160
64167
|
return void 0;
|
|
@@ -64192,7 +64199,7 @@ function buildMergedContract(options) {
|
|
|
64192
64199
|
const path2 = join64(packageDir, "provisioning.contract.json");
|
|
64193
64200
|
writeFileSync27(path2, body);
|
|
64194
64201
|
const localPath = join64(appDir3, LOCAL_CONTRACT_REL);
|
|
64195
|
-
|
|
64202
|
+
mkdirSync33(dirname36(localPath), { recursive: true });
|
|
64196
64203
|
writeFileSync27(localPath, body);
|
|
64197
64204
|
staged.push(localPath);
|
|
64198
64205
|
return { path: path2, staged };
|
|
@@ -69929,7 +69936,7 @@ var init_context = __esm({
|
|
|
69929
69936
|
});
|
|
69930
69937
|
|
|
69931
69938
|
// src/cli.ts
|
|
69932
|
-
import { mkdtempSync as mkdtempSync4, readFileSync as readFileSync80, mkdirSync as
|
|
69939
|
+
import { mkdtempSync as mkdtempSync4, readFileSync as readFileSync80, mkdirSync as mkdirSync34, writeFileSync as writeFileSync29, existsSync as existsSync67, rmSync as rmSync16, readdirSync as readdirSync31, statSync as statSync19, lstatSync as lstatSync14, accessSync, constants as constants3, renameSync as renameSync8, cpSync as cpSync3 } from "node:fs";
|
|
69933
69940
|
import { execFile, execFileSync as execFileSync7, spawnSync as spawnSync5, spawn as spawn7 } from "node:child_process";
|
|
69934
69941
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
69935
69942
|
import { createHash as createHash32, randomUUID as randomUUID7 } from "node:crypto";
|
|
@@ -72992,7 +72999,7 @@ function readUpdateCache(path2) {
|
|
|
72992
72999
|
}
|
|
72993
73000
|
function writeUpdateCache(path2, cache) {
|
|
72994
73001
|
try {
|
|
72995
|
-
|
|
73002
|
+
mkdirSync34(dirname37(path2), { recursive: true, mode: 448 });
|
|
72996
73003
|
writeFileSync29(path2, JSON.stringify(cache, null, 2) + "\n", { mode: 384 });
|
|
72997
73004
|
} catch {
|
|
72998
73005
|
}
|
|
@@ -73149,7 +73156,7 @@ function acquireUpdateLock(cachePath, now, hooks = {}) {
|
|
|
73149
73156
|
};
|
|
73150
73157
|
const release = () => removeIfMine(lockPath);
|
|
73151
73158
|
try {
|
|
73152
|
-
|
|
73159
|
+
mkdirSync34(dirname37(lockPath), { recursive: true, mode: 448 });
|
|
73153
73160
|
} catch {
|
|
73154
73161
|
return () => {
|
|
73155
73162
|
};
|
|
@@ -73849,7 +73856,7 @@ function readConfigSource(dir) {
|
|
|
73849
73856
|
}
|
|
73850
73857
|
}
|
|
73851
73858
|
function writePngFile(path2, base64) {
|
|
73852
|
-
|
|
73859
|
+
mkdirSync34(dirname37(path2), { recursive: true });
|
|
73853
73860
|
writeFileSync29(path2, Buffer.from(base64, "base64"));
|
|
73854
73861
|
return path2;
|
|
73855
73862
|
}
|
|
@@ -74019,7 +74026,7 @@ function materializeForPreview(appDir3, slug, displayName) {
|
|
|
74019
74026
|
}
|
|
74020
74027
|
const dest = join65(root, `${slug}-${process.pid}`);
|
|
74021
74028
|
rmSync16(dest, { recursive: true, force: true });
|
|
74022
|
-
|
|
74029
|
+
mkdirSync34(dest, { recursive: true });
|
|
74023
74030
|
try {
|
|
74024
74031
|
materializeSource(forBuild, displayName, dest, slug);
|
|
74025
74032
|
} catch (e) {
|
|
@@ -75472,7 +75479,7 @@ ${doNow.map((l) => ` ${l}`).join("\n")}`);
|
|
|
75472
75479
|
const dir = resolve53(out2);
|
|
75473
75480
|
const files = himiPluginFiles2(skills.skillMd);
|
|
75474
75481
|
for (const f of files) {
|
|
75475
|
-
|
|
75482
|
+
mkdirSync34(dirname37(join65(dir, f.path)), { recursive: true });
|
|
75476
75483
|
writeFileSync29(join65(dir, f.path), f.text);
|
|
75477
75484
|
}
|
|
75478
75485
|
print({ ok: true, dir, files: files.map((f) => f.path), next: [`claude plugin validate ${dir}`, `claude --plugin-dir ${dir}`] });
|
|
@@ -75498,7 +75505,7 @@ ${doNow.map((l) => ` ${l}`).join("\n")}`);
|
|
|
75498
75505
|
const { buildReel: buildReel2 } = await Promise.resolve().then(() => (init_studio_reel(), studio_reel_exports));
|
|
75499
75506
|
const out2 = resolve53(str8(flags.out) ?? join65(dir, ".himi", "making-of.html"));
|
|
75500
75507
|
const { html, plan } = buildReel2(dir);
|
|
75501
|
-
|
|
75508
|
+
mkdirSync34(dirname37(out2), { recursive: true });
|
|
75502
75509
|
writeFileSync29(out2, html);
|
|
75503
75510
|
const { pathToFileURL: pathToFileURL9 } = await import("node:url");
|
|
75504
75511
|
const url2 = pathToFileURL9(out2).href;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1122.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"artifactId": "himalaya-cli"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"falconPackageHash": "
|
|
70
|
+
"falconPackageHash": "2373a9ad5a2e49d640d2916874394d6c5b2ba0e45bb6382a551aef76"
|
|
71
71
|
}
|