@rubytech/create-maxy 1.0.805 → 1.0.806

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.
@@ -0,0 +1,31 @@
1
+ import {
2
+ _evictAllForTest,
3
+ _poolSnapshotForTest,
4
+ acquireClient,
5
+ acquireOneShotClient,
6
+ evictClient,
7
+ getActiveClient,
8
+ interruptClient,
9
+ pushUserMessage,
10
+ recordCachedTokens,
11
+ recordCrash,
12
+ setInflight,
13
+ startIdleEvictTick,
14
+ stopIdleEvictTick
15
+ } from "./chunk-LTIWPCUF.js";
16
+ import "./chunk-JSBRDJBE.js";
17
+ export {
18
+ _evictAllForTest,
19
+ _poolSnapshotForTest,
20
+ acquireClient,
21
+ acquireOneShotClient,
22
+ evictClient,
23
+ getActiveClient,
24
+ interruptClient,
25
+ pushUserMessage,
26
+ recordCachedTokens,
27
+ recordCrash,
28
+ setInflight,
29
+ startIdleEvictTick,
30
+ stopIdleEvictTick
31
+ };
@@ -16,8 +16,8 @@ import {
16
16
  sanitizeClientCorrId,
17
17
  streamActionEvents,
18
18
  vncLog
19
- } from "./chunk-OH4OLVBN.js";
20
- import "./chunk-5ABJJQ5K.js";
19
+ } from "./chunk-SC3ZSD7N.js";
20
+ import "./chunk-LTIWPCUF.js";
21
21
  import "./chunk-JSBRDJBE.js";
22
22
 
23
23
  // server/edge.ts
@@ -50,7 +50,7 @@ import {
50
50
  vncLog,
51
51
  waitForExit,
52
52
  writeChromiumWrapper
53
- } from "./chunk-OH4OLVBN.js";
53
+ } from "./chunk-SC3ZSD7N.js";
54
54
  import {
55
55
  ACCOUNTS_DIR,
56
56
  GREETING_DIRECTIVE,
@@ -113,7 +113,7 @@ import {
113
113
  verifyAndGetConversationUpdatedAt,
114
114
  verifyConversationOwnership,
115
115
  writeAdminUserAndPerson
116
- } from "./chunk-5ABJJQ5K.js";
116
+ } from "./chunk-LTIWPCUF.js";
117
117
  import {
118
118
  __commonJS,
119
119
  __toESM
@@ -923,6 +923,27 @@ function defaultRules() {
923
923
  // this rule it was written but never read (the review-detector had no
924
924
  // rule coverage for it). A single ERR line is worth surfacing; the
925
925
  // tee'd output is typically noise-free.
926
+ // Task 862: setup-tunnel.sh emits `[script:setup-tunnel]
927
+ // step=onboarding-persist result=skipped reason=no-account-dir` via
928
+ // phase_line when ACCOUNT_DIR is unset. Pre-Task-862, the form-driven
929
+ // action runner threaded STREAM_LOG_PATH but not ACCOUNT_DIR, so the
930
+ // line landed in the agent's stream log (system source) and the user
931
+ // looped on currentStep=6 indefinitely.
932
+ // The agent-via-Bash path also threads STREAM_LOG_PATH; operator-SSH
933
+ // does not — that's the disambiguator. If this pattern reappears in
934
+ // a system log, a future invocation surface forgot to declare
935
+ // ACCOUNT_DIR. Fix at action-runner.ts WHITELIST['cloudflare-setup'],
936
+ // not in the script.
937
+ id: "cloudflare-setup-account-dir-missing",
938
+ name: "cloudflare-setup ran without ACCOUNT_DIR \u2014 onboarding step-7 will not persist",
939
+ type: "silent-catch",
940
+ logSource: "system",
941
+ pattern: "\\[script:setup-tunnel\\] step=onboarding-persist result=skipped reason=no-account-dir",
942
+ thresholdCount: 0,
943
+ thresholdWindowMinutes: 0,
944
+ suggestedAction: "An invocation surface for setup-tunnel.sh failed to declare ACCOUNT_DIR. Without it the script's step-7 persist block (Task 562) skips, leaving OnboardingState.currentStep=6 forever. Inspect platform/ui/server/lib/action-runner.ts WHITELIST['cloudflare-setup'].build (Task 862 thread) and platform/ui/app/lib/claude-agent/spawn-env.ts buildSpawnEnv (Task 562 thread) \u2014 confirm ACCOUNT_DIR is in the env map for whichever surface the action-id prefix indicates. Do NOT change setup-tunnel.sh; the skipped branch is correct for operator-SSH reconfigure flows."
945
+ },
946
+ {
926
947
  id: "cloudflared-edge-errors",
927
948
  name: "cloudflared edge connectivity errors",
928
949
  type: "silent-catch",
@@ -8525,7 +8546,7 @@ var app11 = new Hono();
8525
8546
  app11.post("/cancel", requireAdminSession, async (c) => {
8526
8547
  const session_key = c.var.sessionKey;
8527
8548
  try {
8528
- const { interruptClient: interruptClient2 } = await import("./client-pool-S4UZCYDJ.js");
8549
+ const { interruptClient: interruptClient2 } = await import("./client-pool-CD7WHZIK.js");
8529
8550
  await interruptClient2(session_key);
8530
8551
  return c.json({ ok: true });
8531
8552
  } catch (err) {
@@ -10067,6 +10088,14 @@ app21.post("/setup", requireAdminSession, async (c) => {
10067
10088
  const publicFqdn = body.publicLabel ? `${body.publicLabel}.${body.publicDomain}` : void 0;
10068
10089
  const apex = body.apex && body.apex.length > 0 ? body.apex : void 0;
10069
10090
  log(`phase=submit-received admin=${adminFqdn} public=${publicFqdn ?? "absent"} apex=${apex ?? "absent"}`);
10091
+ const account = resolveAccount();
10092
+ if (!account) {
10093
+ return err("script", "No account on disk for this device \u2014 re-run installer.");
10094
+ }
10095
+ if (account.accountId !== accountId) {
10096
+ return err("script", `Session/device account drift: session=${accountId.slice(0, 8)} device=${account.accountId.slice(0, 8)}`);
10097
+ }
10098
+ const accountDir = account.accountDir;
10070
10099
  try {
10071
10100
  await setRemotePassword(body.password);
10072
10101
  log(`phase=password-set`);
@@ -10092,7 +10121,7 @@ app21.post("/setup", requireAdminSession, async (c) => {
10092
10121
  let actionId;
10093
10122
  let unit;
10094
10123
  try {
10095
- const launched = await launchAction("cloudflare-setup", { positional: args, streamLogPath });
10124
+ const launched = await launchAction("cloudflare-setup", { positional: args, streamLogPath, accountDir });
10096
10125
  actionId = launched.actionId;
10097
10126
  unit = launched.unit;
10098
10127
  } catch (e) {