@wix/himalaya-cli 0.1635.0 → 0.1637.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/app-config.d.ts +14 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/telemetry/wix-bi/src/oneapp.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bi.mjs +3 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{67feb362281a3040ee05592769227c58a98ec3c8073dac95ecb5629141c67061.bin → 289b89dc660fa050af31f8ce5f22ffd7332a60c7b80b8ffd2b141ec074fb2e22.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +234 -50
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/himi-mcp.md +5 -3
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -29065,8 +29065,177 @@ var init_screen_map = __esm({
|
|
|
29065
29065
|
}
|
|
29066
29066
|
});
|
|
29067
29067
|
|
|
29068
|
+
// ../../core/schema/bi/wix-api-rules.json
|
|
29069
|
+
var wix_api_rules_default;
|
|
29070
|
+
var init_wix_api_rules = __esm({
|
|
29071
|
+
"../../core/schema/bi/wix-api-rules.json"() {
|
|
29072
|
+
wix_api_rules_default = {
|
|
29073
|
+
_comment: "#4977 (epic #4973) \u2014 the Wix API bridge BI rules: a successful Wix API call -> the vertical outcome event the equivalent RN module sends. Evaluated by the host where every wixApi.call lands (iOS/Android WixApiCapability, the web host's transport), so a worker can neither strip nor fake them. `rn` cites the RN source (wix-private/bookings-mobile @ ef441378); `needs` lists fields RN sends that the API call does not carry (UI origin and the like: layer 4/5, never faked); `differs` says where firing on API success departs from RN. Served, without those three, as telemetryConfig.frog.apiRules. The bookings-data v2 loggers have endpoint '' (the frog root), written here as \"/\". RN's v2 logger adds businessId = the msid to every event (createEngineFacade.ts:166-188); the catalog's own logger, used for 358, adds only msid (useBILogger.ts:10-14). Every rule sends `msid` = the site the call was addressed at, so a call to another business than the active one is attributed to the business it changed (a Branded app's forced msid still wins in the oneapp builder). Host-stamped identity fields (contactId, member_id, uuid\u2026) are never sent from a rule: the oneapp builder owns them, as RN's engine does.",
|
|
29074
|
+
rules: [
|
|
29075
|
+
{
|
|
29076
|
+
id: "bookings.booking-created",
|
|
29077
|
+
method: "POST",
|
|
29078
|
+
path: "/bookings/v2/bookings",
|
|
29079
|
+
src: 16,
|
|
29080
|
+
endpoint: "/",
|
|
29081
|
+
evid: 526,
|
|
29082
|
+
module: "bookings",
|
|
29083
|
+
fields: {
|
|
29084
|
+
bookingId: "$res.booking.id",
|
|
29085
|
+
serviceId: "$req.booking.bookedEntity.slot.serviceId",
|
|
29086
|
+
sessionId: "$req.booking.bookedEntity.slot.sessionId",
|
|
29087
|
+
businessId: "$msid",
|
|
29088
|
+
bookingsPlatform: "mobile",
|
|
29089
|
+
msid: "$msid"
|
|
29090
|
+
},
|
|
29091
|
+
rn: "bookingsAppointmentBookedSrc16Evid526 (@wix/bi-logger-bookings-data v2): bookings-mobile-member/src/bookings/presentation/BookButton/viewModel/BookButtonViewModel.ts:1460 -> waitlist-actions/log-waitlist-actions-bi/LogWaitlistActionsBIInteractor.ts:111-126",
|
|
29092
|
+
needs: [
|
|
29093
|
+
"referal_info",
|
|
29094
|
+
"IsQuickBook",
|
|
29095
|
+
"isSkipEnanbled",
|
|
29096
|
+
"addOnIds",
|
|
29097
|
+
"type",
|
|
29098
|
+
"logged",
|
|
29099
|
+
"numParticipants"
|
|
29100
|
+
],
|
|
29101
|
+
differs: "RN sends it after the eCom checkout succeeds; a paid booking here sends it when the booking is created, before its checkout. RN's legacy appointment success screen builds a 526 it never sends (SuccessfullyBookedScreen.tsx:174). `type` is a hard-coded 'class' and `numParticipants` the slot's booked count in RN, so neither is copied."
|
|
29102
|
+
},
|
|
29103
|
+
{
|
|
29104
|
+
id: "bookings.booking-created-v1",
|
|
29105
|
+
method: "POST",
|
|
29106
|
+
path: "/bookings/v1/bookings",
|
|
29107
|
+
src: 16,
|
|
29108
|
+
endpoint: "/",
|
|
29109
|
+
evid: 526,
|
|
29110
|
+
module: "bookings",
|
|
29111
|
+
fields: {
|
|
29112
|
+
bookingId: "$res.booking.id",
|
|
29113
|
+
serviceId: "$req.booking.bookedEntity.slot.serviceId",
|
|
29114
|
+
sessionId: "$req.booking.bookedEntity.slot.sessionId",
|
|
29115
|
+
businessId: "$msid",
|
|
29116
|
+
bookingsPlatform: "mobile",
|
|
29117
|
+
msid: "$msid"
|
|
29118
|
+
},
|
|
29119
|
+
rn: "bookingsAppointmentBookedSrc16Evid526 (@wix/bi-logger-bookings-data v2): bookings-mobile-member/src/bookings/presentation/BookButton/viewModel/BookButtonViewModel.ts:1460 -> waitlist-actions/log-waitlist-actions-bi/LogWaitlistActionsBIInteractor.ts:111-126",
|
|
29120
|
+
needs: [
|
|
29121
|
+
"referal_info",
|
|
29122
|
+
"IsQuickBook",
|
|
29123
|
+
"isSkipEnanbled",
|
|
29124
|
+
"addOnIds",
|
|
29125
|
+
"type",
|
|
29126
|
+
"logged",
|
|
29127
|
+
"numParticipants"
|
|
29128
|
+
],
|
|
29129
|
+
differs: "The typed SDK's legacy createBooking (stdlib/wix-sdk/bookings-v2 index.ts) posts here; no Himi flow uses it today. Same event and fields as bookings.booking-created, with the same departures from RN."
|
|
29130
|
+
},
|
|
29131
|
+
{
|
|
29132
|
+
id: "bookings.booking-confirmed",
|
|
29133
|
+
method: "POST",
|
|
29134
|
+
path: "/bookings/v2/bookings/:bookingId/confirm",
|
|
29135
|
+
src: 16,
|
|
29136
|
+
endpoint: "/",
|
|
29137
|
+
evid: 360,
|
|
29138
|
+
module: "bookings",
|
|
29139
|
+
fields: {
|
|
29140
|
+
bookingId: "$path.bookingId",
|
|
29141
|
+
action: "approve",
|
|
29142
|
+
service_id: "$res.booking.bookedEntity.slot.serviceId",
|
|
29143
|
+
appointmentId: "$res.booking.bookedEntity.slot.sessionId",
|
|
29144
|
+
businessId: "$msid",
|
|
29145
|
+
msid: "$msid"
|
|
29146
|
+
},
|
|
29147
|
+
rn: "bookingsAppointmentPendingApprovalDeclineApproveReschedule (@wix/bi-logger-bookings-data v2): bookings-mobile-owner/src/bookings/presentation/BookingList/BookingItem/components/BookingItemLabels/viewModel/BookingItemLabelsViewModel.ts:351 -> LogBookingListInteractor.ts:202; ViewAppointment PendingApprovalButtonsViewModel.ts:30 -> LogViewAppointmentInteractor.ts:311",
|
|
29148
|
+
needs: [
|
|
29149
|
+
"referral_info",
|
|
29150
|
+
"type",
|
|
29151
|
+
"contactId"
|
|
29152
|
+
],
|
|
29153
|
+
differs: "RN sends it on the tap, before the API answers, so a confirm that then fails still counts there. `action` takes the schema's spelling (approve/decline); RN's list sends 'approved', its appointment page 'approve'. RN's `contactId` is the booking's contact; that name is a host-stamped identity field here (the oneapp builder sets it to the signed-in member's own), so it is not sent."
|
|
29154
|
+
},
|
|
29155
|
+
{
|
|
29156
|
+
id: "bookings.booking-declined",
|
|
29157
|
+
method: "POST",
|
|
29158
|
+
path: "/bookings/v2/bookings/:bookingId/decline",
|
|
29159
|
+
src: 16,
|
|
29160
|
+
endpoint: "/",
|
|
29161
|
+
evid: 360,
|
|
29162
|
+
module: "bookings",
|
|
29163
|
+
fields: {
|
|
29164
|
+
bookingId: "$path.bookingId",
|
|
29165
|
+
action: "decline",
|
|
29166
|
+
service_id: "$res.booking.bookedEntity.slot.serviceId",
|
|
29167
|
+
appointmentId: "$res.booking.bookedEntity.slot.sessionId",
|
|
29168
|
+
businessId: "$msid",
|
|
29169
|
+
msid: "$msid"
|
|
29170
|
+
},
|
|
29171
|
+
rn: "bookingsAppointmentPendingApprovalDeclineApproveReschedule (@wix/bi-logger-bookings-data v2): BookingItemLabelsViewModel.ts:410 -> LogBookingListInteractor.ts:224; PendingApprovalButtonsViewModel.ts:92 -> LogViewAppointmentInteractor.ts:335",
|
|
29172
|
+
needs: [
|
|
29173
|
+
"referral_info",
|
|
29174
|
+
"type",
|
|
29175
|
+
"contactId"
|
|
29176
|
+
],
|
|
29177
|
+
differs: "RN's booking list sends it before the confirmation dialog, so an owner who backs out still counts there; here only a decline Wix accepted is sent. RN's list spells it 'decline', its appointment page 'declined'. RN's `contactId` is the booking's contact; that name is a host-stamped identity field here (the oneapp builder sets it to the signed-in member's own), so it is not sent."
|
|
29178
|
+
},
|
|
29179
|
+
{
|
|
29180
|
+
id: "bookings.service-created",
|
|
29181
|
+
method: "POST",
|
|
29182
|
+
path: "/bookings/v2/services",
|
|
29183
|
+
src: 16,
|
|
29184
|
+
endpoint: "/",
|
|
29185
|
+
evid: 358,
|
|
29186
|
+
module: "bookings",
|
|
29187
|
+
fields: {
|
|
29188
|
+
service_id: "$res.service.id",
|
|
29189
|
+
success: "true",
|
|
29190
|
+
save_type: "create_new",
|
|
29191
|
+
bookingsPlatform: "mobile",
|
|
29192
|
+
saveOrigin: "mobile_service_form",
|
|
29193
|
+
msid: "$msid"
|
|
29194
|
+
},
|
|
29195
|
+
rn: "bookingsSaveServiceX (@wix/bi-logger-bookings-data v2): bookings-mobile-catalog/src/adapters/api/services/create.ts:26-34, after the create request returns",
|
|
29196
|
+
needs: [],
|
|
29197
|
+
differs: "None: RN also sends it only after the API returns, and never on failure."
|
|
29198
|
+
},
|
|
29199
|
+
{
|
|
29200
|
+
id: "bookings.service-updated",
|
|
29201
|
+
method: "PATCH",
|
|
29202
|
+
path: "/bookings/v2/services/:serviceId",
|
|
29203
|
+
src: 16,
|
|
29204
|
+
endpoint: "/",
|
|
29205
|
+
evid: 358,
|
|
29206
|
+
module: "bookings",
|
|
29207
|
+
fields: {
|
|
29208
|
+
service_id: "$path.serviceId",
|
|
29209
|
+
success: "true",
|
|
29210
|
+
save_type: "save_changes",
|
|
29211
|
+
bookingsPlatform: "mobile",
|
|
29212
|
+
saveOrigin: "mobile_service_form",
|
|
29213
|
+
msid: "$msid"
|
|
29214
|
+
},
|
|
29215
|
+
rn: "bookingsSaveServiceX (@wix/bi-logger-bookings-data v2): bookings-mobile-catalog/src/adapters/api/services/update.ts:41-49, after the update request returns",
|
|
29216
|
+
needs: [],
|
|
29217
|
+
differs: "RN's image picker and visibility toggle reach the same update and send 'mobile_service_form' too; so does every update here."
|
|
29218
|
+
}
|
|
29219
|
+
]
|
|
29220
|
+
};
|
|
29221
|
+
}
|
|
29222
|
+
});
|
|
29223
|
+
|
|
29068
29224
|
// ../../core/dev-server/src/app-config.ts
|
|
29069
29225
|
import { createHash as createHash8 } from "node:crypto";
|
|
29226
|
+
function servedWixApiRules() {
|
|
29227
|
+
return wix_api_rules_default.rules.map((r3) => ({
|
|
29228
|
+
id: r3.id,
|
|
29229
|
+
method: r3.method,
|
|
29230
|
+
path: r3.path,
|
|
29231
|
+
...r3.status ? { status: r3.status } : {},
|
|
29232
|
+
src: r3.src,
|
|
29233
|
+
evid: r3.evid,
|
|
29234
|
+
...r3.endpoint ? { endpoint: r3.endpoint } : {},
|
|
29235
|
+
...r3.module ? { module: r3.module } : {},
|
|
29236
|
+
fields: r3.fields
|
|
29237
|
+
}));
|
|
29238
|
+
}
|
|
29070
29239
|
function servedScreenMap(app) {
|
|
29071
29240
|
const entries = screen_map_default.apps[app];
|
|
29072
29241
|
if (!entries) return void 0;
|
|
@@ -29099,6 +29268,7 @@ function deriveTelemetryConfig(app) {
|
|
|
29099
29268
|
cfg.frog.lv = wp.bi.lv || "1.0.0|Himi";
|
|
29100
29269
|
const screenMap = servedScreenMap(app.name);
|
|
29101
29270
|
if (screenMap) cfg.frog.screenMap = screenMap;
|
|
29271
|
+
cfg.frog.apiRules = servedWixApiRules();
|
|
29102
29272
|
}
|
|
29103
29273
|
}
|
|
29104
29274
|
if (wp?.real?.monitoring === true) {
|
|
@@ -29338,6 +29508,7 @@ var init_app_config = __esm({
|
|
|
29338
29508
|
init_preview_surfaces();
|
|
29339
29509
|
init_wix_push_links();
|
|
29340
29510
|
init_screen_map();
|
|
29511
|
+
init_wix_api_rules();
|
|
29341
29512
|
SHARED_WIX_SENTRY_DSN = "https://5dfa4f23057c43149b6219c07d177472@sentry.io/84240";
|
|
29342
29513
|
NAV_OVERRIDES = {
|
|
29343
29514
|
reference: {
|
|
@@ -36082,7 +36253,7 @@ async function resolveAccountCredential(auth, fetchImpl) {
|
|
|
36082
36253
|
}
|
|
36083
36254
|
const account = toWixAccount(parsed && typeof parsed === "object" ? parsed.account : void 0);
|
|
36084
36255
|
if (!account) return { ok: false, reason: "upstream_failed", status: res.status, detail: "no_account" };
|
|
36085
|
-
return { ok: true, accounts: [account] };
|
|
36256
|
+
return { ok: true, accounts: [account], accountCredential: true };
|
|
36086
36257
|
}
|
|
36087
36258
|
var ACCOUNT_SERVER;
|
|
36088
36259
|
var init_wix_account = __esm({
|
|
@@ -177100,6 +177271,14 @@ async function appDir2(args, deps) {
|
|
|
177100
177271
|
function loginResult(s2) {
|
|
177101
177272
|
switch (s2.state) {
|
|
177102
177273
|
case "pending":
|
|
177274
|
+
if (s2.via === "wix") {
|
|
177275
|
+
return json4({
|
|
177276
|
+
ok: true,
|
|
177277
|
+
state: "pending",
|
|
177278
|
+
via: "wix",
|
|
177279
|
+
message: "Signing in with the Wix token held in WIX_TOKEN \u2014 no browser. Call himi_login again to confirm, or just retry the push."
|
|
177280
|
+
});
|
|
177281
|
+
}
|
|
177103
177282
|
return json4({
|
|
177104
177283
|
ok: true,
|
|
177105
177284
|
state: "pending",
|
|
@@ -177107,9 +177286,9 @@ function loginResult(s2) {
|
|
|
177107
177286
|
message: "A browser window opened for the user to sign in to Wix. If it did not open, give them `loginUrl`. Once they have signed in, call himi_login again to confirm, or just retry the push."
|
|
177108
177287
|
});
|
|
177109
177288
|
case "signed_in":
|
|
177110
|
-
return json4({ ok: true, state: "signed_in", account: s2.account, scope: s2.scope, expiresAt: s2.expiresAt });
|
|
177289
|
+
return json4({ ok: true, state: "signed_in", account: s2.account, scope: s2.scope, expiresAt: s2.expiresAt, ...s2.via ? { via: s2.via } : {} });
|
|
177111
177290
|
case "failed":
|
|
177112
|
-
return { ...json4({ ok: false, state: "failed", error: s2.error, hint:
|
|
177291
|
+
return { ...json4({ ok: false, state: "failed", error: s2.error, hint: `Call himi_login again to retry, or ask the user to run \`himi login --browser\` in a terminal. ${HELD_TOKEN_ROUTE}` }), isError: true };
|
|
177113
177292
|
default:
|
|
177114
177293
|
return json4({ ok: true, state: "idle" });
|
|
177115
177294
|
}
|
|
@@ -177349,7 +177528,7 @@ ${log}` : ""}`, true);
|
|
|
177349
177528
|
{
|
|
177350
177529
|
name: "himi_login",
|
|
177351
177530
|
title: "Sign in to Wix",
|
|
177352
|
-
description: "Open a browser window where the USER signs in to Wix, so himi_push and himi_share can publish. Returns at once with the sign-in link; call again to see whether the sign-in finished. Already signed in: says who, and opens nothing unless `switchAccount` is true. This server never sees the credential \u2014 the sign-in stores a scoped token on this machine.",
|
|
177531
|
+
description: "Open a browser window where the USER signs in to Wix, so himi_push and himi_share can publish. Returns at once with the sign-in link; call again to see whether the sign-in finished. Already signed in: says who, and opens nothing unless `switchAccount` is true. This server never sees the credential \u2014 the sign-in stores a scoped token on this machine. When the server was started with WIX_TOKEN (the owner's Wix token, held by the agent platform), it signs in with that instead and opens no browser.",
|
|
177353
177532
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
177354
177533
|
inputSchema: z4.object({
|
|
177355
177534
|
target: z4.string().optional().describe("Serve target. Default: the CLI's default."),
|
|
@@ -177496,7 +177675,7 @@ ${log}` : ""}`, true);
|
|
|
177496
177675
|
}
|
|
177497
177676
|
];
|
|
177498
177677
|
}
|
|
177499
|
-
var MAX_TEXT2, clip2, text7, json4, opt, sw, DIR2, LEARN, CHECK, LOCAL_WRITE, PUBLISH, READ_PLANE, APP_ID, RELEASE_ID, LOG_LEVEL, SINCE, LIMIT, PREVIEW_HINT, LOGIN_HINT, PATH_ARGS;
|
|
177678
|
+
var MAX_TEXT2, clip2, text7, json4, opt, sw, DIR2, LEARN, CHECK, LOCAL_WRITE, PUBLISH, READ_PLANE, APP_ID, RELEASE_ID, LOG_LEVEL, SINCE, LIMIT, PREVIEW_HINT, LOGIN_HINT, HELD_TOKEN_ROUTE, PATH_ARGS;
|
|
177500
177679
|
var init_tools = __esm({
|
|
177501
177680
|
"src/mcp/tools.ts"() {
|
|
177502
177681
|
init_define_HHP_CATALOG();
|
|
@@ -177522,6 +177701,7 @@ var init_tools = __esm({
|
|
|
177522
177701
|
LIMIT = z4.number().int().min(1).max(2e3).optional().describe("At most this many rows.");
|
|
177523
177702
|
PREVIEW_HINT = "The preview is already running: open `url` in your built-in browser \u2014 Claude Code desktop's browser pane, Cursor's Browser tool, the Browser in Codex inside the ChatGPT desktop app, VS Code's integrated browser. Do not also start the `himi-preview` launch configuration: it serves the same port, and is the way to start a preview only when none is running. A terminal-only agent should show the owner `himi_render` PNGs instead. `board` (when present) is the build board on the same origin.";
|
|
177524
177703
|
LOGIN_HINT = "Not signed in to the himi serve plane. Call himi_login: it opens a browser window where the user signs in to Wix (this server never sees the credential). A user with a terminal can run `himi login --browser` instead. Then retry.";
|
|
177704
|
+
HELD_TOKEN_ROUTE = "No browser on this machine (a sandbox, a cloud session)? An agent that holds the owner's Wix token signs in without one: run `printf '%s' \"$TOKEN\" | himi login --wix --wix-token-stdin` in a shell, or restart this MCP server with WIX_TOKEN set and call himi_login again. Never pass the token as a tool argument.";
|
|
177525
177705
|
PATH_ARGS = ["dir", "parentDir", "file", "out", "manifest", "plan", "merge", "report", "outDir", "plist"];
|
|
177526
177706
|
}
|
|
177527
177707
|
});
|
|
@@ -177540,8 +177720,10 @@ function createLoginSession(deps) {
|
|
|
177540
177720
|
start(target) {
|
|
177541
177721
|
if (current.state === "pending") return Promise.resolve(current);
|
|
177542
177722
|
const self2 = deps.selfCommand();
|
|
177543
|
-
const
|
|
177544
|
-
const
|
|
177723
|
+
const env = deps.env ?? process.env;
|
|
177724
|
+
const held = heldWixToken(env) !== void 0;
|
|
177725
|
+
const args = [...self2.args, "login", held ? "--wix" : "--browser", "--skip-version-check", ...target ? ["--target", target] : []];
|
|
177726
|
+
const pending = { state: "pending", startedAt: deps.now(), ...held ? { via: "wix" } : {} };
|
|
177545
177727
|
current = pending;
|
|
177546
177728
|
const out2 = [];
|
|
177547
177729
|
const err = [];
|
|
@@ -177554,7 +177736,7 @@ function createLoginSession(deps) {
|
|
|
177554
177736
|
};
|
|
177555
177737
|
let child;
|
|
177556
177738
|
try {
|
|
177557
|
-
child = deps.spawn(self2.cmd, args, { stdio: ["ignore", "pipe", "pipe"], env: { ...
|
|
177739
|
+
child = deps.spawn(self2.cmd, args, { stdio: ["ignore", "pipe", "pipe"], env: { ...env, HIMI_NO_UPDATE_CHECK: "1" } });
|
|
177558
177740
|
} catch (e2) {
|
|
177559
177741
|
current = { state: "failed", error: `could not start himi login: ${e2.message}` };
|
|
177560
177742
|
answer();
|
|
@@ -177576,7 +177758,7 @@ function createLoginSession(deps) {
|
|
|
177576
177758
|
child.once("exit", (code) => {
|
|
177577
177759
|
if (code === 0) {
|
|
177578
177760
|
const r3 = lastJson([out2.join("")]) ?? {};
|
|
177579
|
-
current = { state: "signed_in", account: r3.sub, scope: r3.scope, expiresAt: r3.exp };
|
|
177761
|
+
current = { state: "signed_in", account: r3.sub, scope: r3.scope, expiresAt: r3.exp, ...held ? { via: "wix" } : {} };
|
|
177580
177762
|
signedInTarget = target;
|
|
177581
177763
|
} else {
|
|
177582
177764
|
const e2 = lastJson(err.join("").split("\n"));
|
|
@@ -177594,6 +177776,7 @@ var init_login = __esm({
|
|
|
177594
177776
|
"src/mcp/login.ts"() {
|
|
177595
177777
|
init_define_HHP_CATALOG();
|
|
177596
177778
|
init_cli_bridge();
|
|
177779
|
+
init_wix_owner();
|
|
177597
177780
|
defaultLoginDeps = {
|
|
177598
177781
|
spawn: (cmd, args, opts) => nodeSpawn2(cmd, args, opts),
|
|
177599
177782
|
now: () => Date.now()
|
|
@@ -187274,47 +187457,48 @@ var init_preview_assets_generated = __esm({
|
|
|
187274
187457
|
init_define_HHP_CATALOG();
|
|
187275
187458
|
init_preview_assets_format();
|
|
187276
187459
|
PREVIEW_ASSET_MANIFEST = [
|
|
187277
|
-
{ key: "assets/DashboardHost-
|
|
187278
|
-
{ key: "assets/DevDrawer-
|
|
187279
|
-
{ key: "assets/IdiomCompare-
|
|
187280
|
-
{ key: "assets/LightboxViewer-
|
|
187281
|
-
{ key: "assets/OfflineReadingBar-
|
|
187282
|
-
{ key: "assets/PhonePreviewControl-
|
|
187283
|
-
{ key: "assets/SchemeCompare-
|
|
187284
|
-
{ key: "assets/WixFrogTelemetrySink-
|
|
187285
|
-
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
187286
|
-
{ key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
187287
|
-
{ key: "assets/catalogFontFaces-
|
|
187288
|
-
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset:
|
|
187289
|
-
{ key: "assets/files-transfer-
|
|
187290
|
-
{ key: "assets/
|
|
187291
|
-
{ key: "assets/
|
|
187292
|
-
{ key: "assets/
|
|
187293
|
-
{ key: "assets/
|
|
187294
|
-
{ key: "assets/
|
|
187295
|
-
{ key: "assets/pdf
|
|
187296
|
-
{ key: "assets/pdf.worker.min-
|
|
187297
|
-
{ key: "assets/
|
|
187298
|
-
{ key: "assets/
|
|
187299
|
-
{ key: "assets/
|
|
187300
|
-
{ key: "
|
|
187301
|
-
{ key: "fonts/Roboto-
|
|
187302
|
-
{ key: "fonts/
|
|
187303
|
-
{ key: "fonts/WixMadeforDisplay-
|
|
187304
|
-
{ key: "fonts/WixMadeforDisplay-
|
|
187305
|
-
{ key: "fonts/WixMadeforDisplay-
|
|
187306
|
-
{ key: "fonts/WixMadeforDisplay-
|
|
187307
|
-
{ key: "fonts/
|
|
187308
|
-
{ key: "fonts/WixMadeforText-
|
|
187309
|
-
{ key: "fonts/WixMadeforText-
|
|
187310
|
-
{ key: "fonts/WixMadeforText-
|
|
187311
|
-
{ key: "fonts/WixMadeforText-
|
|
187312
|
-
{ key: "
|
|
187313
|
-
{ key: "
|
|
187314
|
-
{ key: "
|
|
187315
|
-
{ key: "
|
|
187316
|
-
{ key: "
|
|
187317
|
-
{ key: "t5-
|
|
187460
|
+
{ key: "assets/DashboardHost-BqjjcyT-.js", contentType: "application/javascript; charset=utf-8", offset: 8, length: 2971, sha256: "e0cb957636a5dd916b2469b8b647d86afb868dd28fca54cfa61ee4f195c8e9fe" },
|
|
187461
|
+
{ key: "assets/DevDrawer-Cjzv-FvQ.js", contentType: "application/javascript; charset=utf-8", offset: 2979, length: 16783, sha256: "99befc70cf324dd083e34e3c70d304977d105cef503712ed3cc63887a9d5b2ee" },
|
|
187462
|
+
{ key: "assets/IdiomCompare-DBGm0Wja.js", contentType: "application/javascript; charset=utf-8", offset: 19762, length: 1926, sha256: "d410b4c06ee68992b37b261916770c45eb1af5cb93c74805063e9013aaa2729c" },
|
|
187463
|
+
{ key: "assets/LightboxViewer-Dphq5knI.js", contentType: "application/javascript; charset=utf-8", offset: 21688, length: 8171, sha256: "6ef75763658a9700f3763eb5502032e1d1ea84d7becef2f77efeb2de96fa0db9" },
|
|
187464
|
+
{ key: "assets/OfflineReadingBar-DMW03-8I.js", contentType: "application/javascript; charset=utf-8", offset: 29859, length: 1707, sha256: "ac3b65cb1fb3ef7be7e6a8a2d4c3532d218e0d4e177c8a2d116a70ed661c956d" },
|
|
187465
|
+
{ key: "assets/PhonePreviewControl-BWixiIFS.js", contentType: "application/javascript; charset=utf-8", offset: 31566, length: 37851, sha256: "19ece66a686149acb428c95274b64c98c9da2266418f6b636a06f1f82b138b7d" },
|
|
187466
|
+
{ key: "assets/SchemeCompare-D9py7OCL.js", contentType: "application/javascript; charset=utf-8", offset: 69417, length: 1858, sha256: "cd1b79d61068792bd739b31dfa4865f61c81d695b88acd805f4bda4866a251fa" },
|
|
187467
|
+
{ key: "assets/WixFrogTelemetrySink-aWa_O0yq.js", contentType: "application/javascript; charset=utf-8", offset: 71275, length: 4492, sha256: "6ab97269284623bfc6d94e3421ecc12f34746f08ad4cd79dc4a1a8689dc610c9" },
|
|
187468
|
+
{ key: "assets/calendar-ics-BvfIYWjG.js", contentType: "application/javascript; charset=utf-8", offset: 75767, length: 2192, sha256: "1636167041e9829ceccd3544297b86b8475c38bd2f759c4dbc17c813dc6e9254" },
|
|
187469
|
+
{ key: "assets/catalog-CAoUWITw.js", contentType: "application/javascript; charset=utf-8", offset: 77959, length: 26046, sha256: "4c270ca3051f77d761aef1297125e02339d48493dd2b84a0cacf0faf41aa8cb3" },
|
|
187470
|
+
{ key: "assets/catalogFontFaces-YS_x6BnU.js", contentType: "application/javascript; charset=utf-8", offset: 104005, length: 1111, sha256: "51225a7ec2863063668a6f516fee879fbc3ecdfdbde12a09608b1930802a968b" },
|
|
187471
|
+
{ key: "assets/contacts-vcard-BcohPQ0m.js", contentType: "application/javascript; charset=utf-8", offset: 105116, length: 2567, sha256: "c4ff75e96cd909bbb9182c5dc78794fcebc65139fbddef2537711d774fb33ad0" },
|
|
187472
|
+
{ key: "assets/files-transfer-CFlcuqbO.js", contentType: "application/javascript; charset=utf-8", offset: 107683, length: 6446, sha256: "79953712f40e37a8f63daf9cf78977e42818994c88fa37ec7f549c44cebef347" },
|
|
187473
|
+
{ key: "assets/frogApiRules-BAUMr0ae.js", contentType: "application/javascript; charset=utf-8", offset: 114129, length: 2207, sha256: "b75fc21bc1c57d05a4e943c23529c54d212c9970cb0fc66104f4150d090d51b6" },
|
|
187474
|
+
{ key: "assets/glassPreviewBrowser-DONaOehd.js", contentType: "application/javascript; charset=utf-8", offset: 116336, length: 6578, sha256: "4402c4cddd2a564e7466cdf1e12a0e0277c0400b288e1e5eda1d23e797599d31" },
|
|
187475
|
+
{ key: "assets/image-preparation-Cj4gldm6.js", contentType: "application/javascript; charset=utf-8", offset: 122914, length: 2704, sha256: "32944ea587c2f3b84389b66b50a850437560238f1c8d33b6275973ee04eee865" },
|
|
187476
|
+
{ key: "assets/index-CJV5xVZz.js", contentType: "application/javascript; charset=utf-8", offset: 125618, length: 1531875, sha256: "878956588e6190cc8813913fca8398d52246bea95fd423798c687611e9f90ed4" },
|
|
187477
|
+
{ key: "assets/jsx-runtime-CdvZGgm7.js", contentType: "application/javascript; charset=utf-8", offset: 1657493, length: 7751, sha256: "42a78b508d0f309f6a4a6efbb8669015211b3c26574c5b0929884c4d9d20b806" },
|
|
187478
|
+
{ key: "assets/pdf-D1ZDeakq.js", contentType: "application/javascript; charset=utf-8", offset: 1665244, length: 488215, sha256: "289b89dc660fa050af31f8ce5f22ffd7332a60c7b80b8ffd2b141ec074fb2e22" },
|
|
187479
|
+
{ key: "assets/pdf.worker.min-BGnVRhRG.js", contentType: "application/javascript; charset=utf-8", offset: 2153459, length: 90, sha256: "521a0e528916d678d7588b2cddf3dadd3bb959a6d62426382f61c77a82017e35" },
|
|
187480
|
+
{ key: "assets/pdf.worker.min-BmVo14Nb.mjs", contentType: "application/javascript; charset=utf-8", offset: 2153549, length: 1317034, sha256: "a33cfe728c584fdba4fcc1fd54bcdc2f9f2f13889ddbb5b2bd1d0f8cbe49b84e" },
|
|
187481
|
+
{ key: "assets/pdfDocument-B5Sfjn1z.js", contentType: "application/javascript; charset=utf-8", offset: 3470583, length: 3470, sha256: "bd8324751a60c6833afde4191293558bb2b800c4e3307e9481dd86cf6d7c6ff1" },
|
|
187482
|
+
{ key: "assets/pdfFetch-Cc8i1I1h.js", contentType: "application/javascript; charset=utf-8", offset: 3474053, length: 2266, sha256: "1d21ad008921942217c9eac0c35b1713773b9d89c71e3ab4412781f7bb88f463" },
|
|
187483
|
+
{ key: "assets/webviewBridgeHost-DrWioY2t.js", contentType: "application/javascript; charset=utf-8", offset: 3476319, length: 9888, sha256: "f7f7c35743b6beaee8175e7fa7294d2c9b01d2f29d40a12d7a107dad7e09ff39" },
|
|
187484
|
+
{ key: "fonts/Roboto-LICENSE.txt", contentType: "application/octet-stream", offset: 3486207, length: 4610, sha256: "994062dd7af4186a739de55dd9e151c63b6301f8e2cbafc608d35c2e87da0cd2" },
|
|
187485
|
+
{ key: "fonts/Roboto-Variable.ttf", contentType: "font/ttf", offset: 3490817, length: 488584, sha256: "d7598e12c5dbef095ff8272cfc55da0250bd07fbdecbac8a530b9b277872a134" },
|
|
187486
|
+
{ key: "fonts/WixMadeforDisplay-Bold.ttf", contentType: "font/ttf", offset: 3979401, length: 90924, sha256: "ec4c7d63772d980d6e147b2df6215fd2737e4b04cebe0cf7e11dc695fb63cdcf" },
|
|
187487
|
+
{ key: "fonts/WixMadeforDisplay-ExtraBold.ttf", contentType: "font/ttf", offset: 4070325, length: 90984, sha256: "bf4c16a2774edd38a921edf3099469866cd74c094fd596f3fa4e81f54a04dfaa" },
|
|
187488
|
+
{ key: "fonts/WixMadeforDisplay-Medium.ttf", contentType: "font/ttf", offset: 4161309, length: 90980, sha256: "368faca44fb9f7207e4af784e94750b1ee59c1098b8689e0f4a918926f244fb5" },
|
|
187489
|
+
{ key: "fonts/WixMadeforDisplay-Regular.ttf", contentType: "font/ttf", offset: 4252289, length: 90872, sha256: "97ed8f1a6772abe26e3d8af5cecfc4b02faa94497d585b0398b5053b739a70c1" },
|
|
187490
|
+
{ key: "fonts/WixMadeforDisplay-SemiBold.ttf", contentType: "font/ttf", offset: 4343161, length: 90980, sha256: "642feab8a48ddf6c7a89d7c2a7c0edfa0e6e773f671287e460e222703563191e" },
|
|
187491
|
+
{ key: "fonts/WixMadeforText-Bold.ttf", contentType: "font/ttf", offset: 4434141, length: 108636, sha256: "37c179b4fefb63ea9637322b84583a2df53aa226c150294eea1675c14b1b8e29" },
|
|
187492
|
+
{ key: "fonts/WixMadeforText-ExtraBold.ttf", contentType: "font/ttf", offset: 4542777, length: 109084, sha256: "62e2fe4718129f36ecdb0ae4de385bd6b81ecc876146447167c6c140fad699a9" },
|
|
187493
|
+
{ key: "fonts/WixMadeforText-Medium.ttf", contentType: "font/ttf", offset: 4651861, length: 109048, sha256: "4ecf270136af928612c76fe4ebade91d8156975e5ea4c0cf9225501dd1788e02" },
|
|
187494
|
+
{ key: "fonts/WixMadeforText-Regular.ttf", contentType: "font/ttf", offset: 4760909, length: 107700, sha256: "dee56f09fd3efc127c1ea95557edc74110c1460a46287da36e0af25efd341ef5" },
|
|
187495
|
+
{ key: "fonts/WixMadeforText-SemiBold.ttf", contentType: "font/ttf", offset: 4868609, length: 88108, sha256: "dced97a77624bc5f8b1ae65850360908297f4588e09feb6f22792d29dc7e765b" },
|
|
187496
|
+
{ key: "himi-sw.js", contentType: "application/javascript; charset=utf-8", offset: 4956717, length: 6818, sha256: "835250c3d8004f27c2b67f9b471984351ba6df07b916d97e33b43c691200a18c" },
|
|
187497
|
+
{ key: "index.html", contentType: "text/html; charset=utf-8", offset: 4963535, length: 4924, sha256: "7245f0df134ddb3af03d6f7560e79d48913ae431553c580e92e3f1c4dabeecdc" },
|
|
187498
|
+
{ key: "ios-glass-preview.css", contentType: "text/css; charset=utf-8", offset: 4968459, length: 11457, sha256: "6cb2b75264fa5fa2b4d28851878a5eab0712900e8b3a6c2370cc661d6d820805" },
|
|
187499
|
+
{ key: "kit-tab-bar.css", contentType: "text/css; charset=utf-8", offset: 4979916, length: 1171, sha256: "9e2c3a0faaf05d5471badf167a4d3bdf1c4e6dd65c432eea6d254158bfd99585" },
|
|
187500
|
+
{ key: "t5-frame.html", contentType: "text/html; charset=utf-8", offset: 4981087, length: 23047, sha256: "20d1459e3f896f344e478e613d0c979a0de02e81a929a45d3a0ef6a53af36441" },
|
|
187501
|
+
{ key: "t5-worker-frame.html", contentType: "text/html; charset=utf-8", offset: 5004134, length: 23064, sha256: "8655cfe9c74212ec5dafecb49d2fdeb48b19f1bd8a710091e3e55631f9b4ab06" }
|
|
187318
187502
|
];
|
|
187319
187503
|
}
|
|
187320
187504
|
});
|
|
Binary file
|
package/guides/himi-mcp.md
CHANGED
|
@@ -146,9 +146,11 @@ see, so they stay commands a person runs. Publishing needs a sign-in first: `him
|
|
|
146
146
|
browser sign-in for the user, or run `himi login --browser` in a terminal. Either way the server
|
|
147
147
|
never asks for or sees a credential — the browser hands a scoped token to a separate `himi login`
|
|
148
148
|
process, which stores it on this machine. On a server with no browser, `himi login --wix` is the
|
|
149
|
-
exception to that guarantee: the CLI reads
|
|
150
|
-
environment and sends it to the owner plane to mint
|
|
151
|
-
job, not of the MCP client.
|
|
149
|
+
exception to that guarantee: the CLI reads the owner's held Wix token from `WIX_TOKEN`, or a Wix
|
|
150
|
+
account API key from `WIX_API_KEY`, in its own environment and sends it to the owner plane to mint
|
|
151
|
+
the token, so keep it a secret of the job, not of the MCP client. Started with `WIX_TOKEN` set,
|
|
152
|
+
`himi_login` runs that `himi login --wix` itself instead of opening a browser; the token still
|
|
153
|
+
never passes through a tool input or result. A tool input that starts with `-` is refused, so nothing
|
|
152
154
|
can be passed through to a flag no tool offers.
|
|
153
155
|
|
|
154
156
|
## See the app inside your IDE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1637.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": [
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"artifactId": "himalaya-cli"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"falconPackageHash": "
|
|
75
|
+
"falconPackageHash": "21c6c964d718871e94853190ba896eec52be97501402d21da7cdf4c9"
|
|
76
76
|
}
|