@astryxdesign/cli 0.7.8-canary.36cde5e → 0.7.8-canary.593f96f

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.
@@ -345,9 +345,6 @@ function failedHandler(message) {
345
345
  * process.exitCode, stdout, and every continuation the handler creates. A
346
346
  * timeout aborts the supplied signal, gives the handler one short turn to
347
347
  * observe it, then terminates the isolate before the next handler starts.
348
- * `timeoutMs` is the handler's own time and starts once its module has
349
- * loaded. Starting the worker and loading the module have the default
350
- * deadline.
351
348
  *
352
349
  * @param {Extract<HandlerEntry, {kind: 'handler'}>} entry
353
350
  * @param {GapReport} report cloned before this call
@@ -396,8 +393,7 @@ async function callHandler(entry, report, timeoutMs = HANDLER_TIMEOUT_MS) {
396
393
  .finally(() => resolve(outcome));
397
394
  };
398
395
 
399
- /** @param {number} deadlineMs */
400
- const beginTimeout = deadlineMs => {
396
+ const beginTimeout = () => {
401
397
  if (timeout !== undefined) clearTimeout(timeout);
402
398
  timeout = setTimeout(() => {
403
399
  if (settled) return;
@@ -411,13 +407,13 @@ async function callHandler(entry, report, timeoutMs = HANDLER_TIMEOUT_MS) {
411
407
  () => finish(timeoutOutcome),
412
408
  HANDLER_ABORT_GRACE_MS,
413
409
  );
414
- }, deadlineMs);
410
+ }, timeoutMs);
415
411
  };
416
412
 
417
413
  worker.on('message', message => {
418
414
  if (settled || timedOut) return;
419
415
  if (message?.kind === 'ready') {
420
- beginTimeout(timeoutMs);
416
+ beginTimeout();
421
417
  return;
422
418
  }
423
419
  if (message?.kind === 'exit-code') {
@@ -462,8 +458,7 @@ async function callHandler(entry, report, timeoutMs = HANDLER_TIMEOUT_MS) {
462
458
  finish(failedHandler(`Handler called process.exit(${String(code)}).`));
463
459
  });
464
460
 
465
- // A short handler budget must not cover a slow start on a busy machine.
466
- beginTimeout(Math.max(timeoutMs, HANDLER_TIMEOUT_MS));
461
+ beginTimeout();
467
462
  });
468
463
  }
469
464
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.8-canary.36cde5e",
3
+ "version": "0.7.8-canary.593f96f",
4
4
  "displayName": "CLI",
5
5
  "description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
6
6
  "author": "Meta Open Source",
@@ -124,10 +124,10 @@
124
124
  "zod": "^4.4.3"
125
125
  },
126
126
  "peerDependencies": {
127
- "@astryxdesign/charts": "0.7.8-canary.36cde5e",
128
- "@astryxdesign/core": "0.7.8-canary.36cde5e",
129
- "@astryxdesign/lab": "0.7.8-canary.36cde5e",
130
- "@astryxdesign/theme-neutral": "0.7.8-canary.36cde5e"
127
+ "@astryxdesign/charts": "0.7.8-canary.593f96f",
128
+ "@astryxdesign/core": "0.7.8-canary.593f96f",
129
+ "@astryxdesign/lab": "0.7.8-canary.593f96f",
130
+ "@astryxdesign/theme-neutral": "0.7.8-canary.593f96f"
131
131
  },
132
132
  "peerDependenciesMeta": {
133
133
  "@astryxdesign/charts": {
@@ -144,10 +144,10 @@
144
144
  }
145
145
  },
146
146
  "devDependencies": {
147
- "@astryxdesign/charts": "0.7.8-canary.36cde5e",
148
- "@astryxdesign/core": "0.7.8-canary.36cde5e",
149
- "@astryxdesign/lab": "0.7.8-canary.36cde5e",
150
- "@astryxdesign/theme-neutral": "0.7.8-canary.36cde5e",
147
+ "@astryxdesign/charts": "0.7.8-canary.593f96f",
148
+ "@astryxdesign/core": "0.7.8-canary.593f96f",
149
+ "@astryxdesign/lab": "0.7.8-canary.593f96f",
150
+ "@astryxdesign/theme-neutral": "0.7.8-canary.593f96f",
151
151
  "@heroicons/react": "^2.2.0",
152
152
  "@stylexjs/stylex": "^0.19.0",
153
153
  "@types/babel__core": "^7.20.5",