@kodycodes/cli 3.34.10 → 3.34.12

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.
@@ -1,22 +1,54 @@
1
1
  import type { LifecycleStateOf } from '@kody-internal/shared/state-machine.ts';
2
- export declare const hostCommandState: import("xstate").StateMachine<import("xstate").MachineContext, {
3
- type: "TIMEOUT";
4
- } | {
5
- type: "SPAWN_ERROR";
6
- } | {
7
- type: "EXIT";
8
- } | {
9
- type: "KILL";
10
- }, {}, never, never, never, never, "failed" | "running" | "timed_out" | "exited" | "killed", string, import("xstate").NonReducibleUnknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
2
+ export declare const hostCommandState: import("xstate").StateMachine<import("xstate").MachineContext, import("xstate").InferEvents<{
3
+ readonly TIMEOUT: import("xstate").TypeSchema<{}>;
4
+ readonly SPAWN_ERROR: import("xstate").TypeSchema<{}>;
5
+ readonly EXIT: import("xstate").TypeSchema<{}>;
6
+ readonly KILL: import("xstate").TypeSchema<{}>;
7
+ }>, {
8
+ [x: string]: import("xstate").AnyActor;
9
+ }, "failed" | "running" | "timed_out" | "exited" | "killed", string, unknown, undefined, {
10
+ type: string;
11
+ }, never, {
12
+ input: undefined;
13
+ } & {
11
14
  id: "host_background_command.state";
15
+ } & {
16
+ initial: "running";
17
+ } & {
12
18
  states: {
13
- readonly running: {};
14
- readonly exited: {};
15
- readonly killed: {};
16
- readonly timed_out: {};
17
- readonly failed: {};
19
+ readonly running: {
20
+ input: undefined;
21
+ };
22
+ readonly exited: {
23
+ input: undefined;
24
+ } & {
25
+ type: "final";
26
+ };
27
+ readonly killed: {
28
+ input: undefined;
29
+ };
30
+ readonly timed_out: {
31
+ input: undefined;
32
+ };
33
+ readonly failed: {
34
+ input: undefined;
35
+ } & {
36
+ type: "final";
37
+ };
18
38
  };
19
- }, import("xstate").MetaObject>;
39
+ } & {
40
+ schemas: {
41
+ events: Omit<{}, "TIMEOUT" | "SPAWN_ERROR" | "EXIT" | "KILL"> & {
42
+ readonly TIMEOUT: import("xstate").TypeSchema<{}>;
43
+ readonly SPAWN_ERROR: import("xstate").TypeSchema<{}>;
44
+ readonly EXIT: import("xstate").TypeSchema<{}>;
45
+ readonly KILL: import("xstate").TypeSchema<{}>;
46
+ };
47
+ };
48
+ }, {}, {}, {}, {}, never, never> & {
49
+ readonly id: "host_background_command.state";
50
+ readonly version: undefined;
51
+ };
20
52
  /**
21
53
  * Background host-command lifecycle. `killed` and `timed_out` are not final: a
22
54
  * late spawn error can still move them to `failed`.
@@ -2,6 +2,7 @@
2
2
  * Walk a package entry's relative imports and collect fetch bodies that still
3
3
  * go through secret resolution. Stays off node_modules and test files.
4
4
  */
5
+ import { type Loader } from 'esbuild';
5
6
  export declare function findPackageFetchBodyWarnings(input: {
6
7
  entryPath: string;
7
8
  packageRoot: string;
@@ -9,3 +10,9 @@ export declare function findPackageFetchBodyWarnings(input: {
9
10
  path: string;
10
11
  line: number;
11
12
  }>>;
13
+ /**
14
+ * es-module-lexer reads JavaScript only, so TypeScript and JSX are stripped
15
+ * first with the loader the bundler picks for the extension (`.ts` is not
16
+ * TSX, so `<T>(x: T) => x` stays a generic arrow).
17
+ */
18
+ export declare function moduleLoaderForPath(path: string): Loader;