@walkeros/cli 0.7.0-next.0 → 0.8.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/README.md +123 -37
- package/dist/examples/flow-order-complete.json +0 -1
- package/dist/examples/flow-simple.json +0 -3
- package/dist/examples/flow.json +0 -1
- package/dist/index.d.ts +23 -13
- package/dist/index.js +882 -846
- package/dist/index.js.map +1 -1
- package/dist/runtime/main.d.ts +2 -0
- package/dist/runtime/main.js +271 -0
- package/dist/runtime/main.js.map +1 -0
- package/dist/walker.js +1 -1
- package/examples/flow-order-complete.json +0 -1
- package/examples/flow-simple.json +0 -3
- package/examples/flow.json +0 -1
- package/package.json +10 -7
- package/CHANGELOG.md +0 -159
- package/dist/__tests__/bundle/bundler-helpers.test.d.ts +0 -2
- package/dist/__tests__/bundle/bundler-helpers.test.d.ts.map +0 -1
- package/dist/__tests__/bundle/bundler-helpers.test.js +0 -151
- package/dist/__tests__/bundle/bundler-helpers.test.js.map +0 -1
- package/dist/__tests__/bundle/bundler.test.d.ts +0 -2
- package/dist/__tests__/bundle/bundler.test.d.ts.map +0 -1
- package/dist/__tests__/bundle/bundler.test.js +0 -353
- package/dist/__tests__/bundle/bundler.test.js.map +0 -1
- package/dist/__tests__/bundle/programmatic.test.d.ts +0 -2
- package/dist/__tests__/bundle/programmatic.test.d.ts.map +0 -1
- package/dist/__tests__/bundle/programmatic.test.js +0 -148
- package/dist/__tests__/bundle/programmatic.test.js.map +0 -1
- package/dist/__tests__/cli-e2e.test.d.ts +0 -8
- package/dist/__tests__/cli-e2e.test.d.ts.map +0 -1
- package/dist/__tests__/cli-e2e.test.js +0 -130
- package/dist/__tests__/cli-e2e.test.js.map +0 -1
- package/dist/__tests__/cli.test.d.ts +0 -2
- package/dist/__tests__/cli.test.d.ts.map +0 -1
- package/dist/__tests__/cli.test.js +0 -180
- package/dist/__tests__/cli.test.js.map +0 -1
- package/dist/__tests__/config-loader.test.d.ts +0 -7
- package/dist/__tests__/config-loader.test.d.ts.map +0 -1
- package/dist/__tests__/config-loader.test.js +0 -414
- package/dist/__tests__/config-loader.test.js.map +0 -1
- package/dist/__tests__/core/asset-resolver.test.d.ts +0 -2
- package/dist/__tests__/core/asset-resolver.test.d.ts.map +0 -1
- package/dist/__tests__/core/asset-resolver.test.js +0 -14
- package/dist/__tests__/core/asset-resolver.test.js.map +0 -1
- package/dist/__tests__/core/build-cache.test.d.ts +0 -2
- package/dist/__tests__/core/build-cache.test.d.ts.map +0 -1
- package/dist/__tests__/core/build-cache.test.js +0 -55
- package/dist/__tests__/core/build-cache.test.js.map +0 -1
- package/dist/__tests__/core/cache-utils.test.d.ts +0 -2
- package/dist/__tests__/core/cache-utils.test.d.ts.map +0 -1
- package/dist/__tests__/core/cache-utils.test.js +0 -70
- package/dist/__tests__/core/cache-utils.test.js.map +0 -1
- package/dist/__tests__/core/config.test.d.ts +0 -2
- package/dist/__tests__/core/config.test.d.ts.map +0 -1
- package/dist/__tests__/core/config.test.js +0 -72
- package/dist/__tests__/core/config.test.js.map +0 -1
- package/dist/__tests__/core/docker-url.test.d.ts +0 -2
- package/dist/__tests__/core/docker-url.test.d.ts.map +0 -1
- package/dist/__tests__/core/docker-url.test.js +0 -54
- package/dist/__tests__/core/docker-url.test.js.map +0 -1
- package/dist/__tests__/core/logger.test.d.ts +0 -2
- package/dist/__tests__/core/logger.test.d.ts.map +0 -1
- package/dist/__tests__/core/logger.test.js +0 -53
- package/dist/__tests__/core/logger.test.js.map +0 -1
- package/dist/__tests__/integration/bundle-run.integration.test.d.ts +0 -8
- package/dist/__tests__/integration/bundle-run.integration.test.d.ts.map +0 -1
- package/dist/__tests__/integration/bundle-run.integration.test.js +0 -54
- package/dist/__tests__/integration/bundle-run.integration.test.js.map +0 -1
- package/dist/__tests__/push/push.test.d.ts +0 -7
- package/dist/__tests__/push/push.test.d.ts.map +0 -1
- package/dist/__tests__/push/push.test.js +0 -197
- package/dist/__tests__/push/push.test.js.map +0 -1
- package/dist/__tests__/simulate/env-loader.test.d.ts +0 -2
- package/dist/__tests__/simulate/env-loader.test.d.ts.map +0 -1
- package/dist/__tests__/simulate/env-loader.test.js +0 -47
- package/dist/__tests__/simulate/env-loader.test.js.map +0 -1
- package/dist/__tests__/simulate/node-executor.test.d.ts +0 -5
- package/dist/__tests__/simulate/node-executor.test.d.ts.map +0 -1
- package/dist/__tests__/simulate/node-executor.test.js +0 -25
- package/dist/__tests__/simulate/node-executor.test.js.map +0 -1
- package/dist/__tests__/simulate/server-simulate.integration.test.d.ts +0 -5
- package/dist/__tests__/simulate/server-simulate.integration.test.d.ts.map +0 -1
- package/dist/__tests__/simulate/server-simulate.integration.test.js +0 -58
- package/dist/__tests__/simulate/server-simulate.integration.test.js.map +0 -1
- package/dist/__tests__/smoke/production.smoke.test.d.ts +0 -8
- package/dist/__tests__/smoke/production.smoke.test.d.ts.map +0 -1
- package/dist/__tests__/smoke/production.smoke.test.js +0 -65
- package/dist/__tests__/smoke/production.smoke.test.js.map +0 -1
- package/dist/commands/bundle/bundler.d.ts +0 -32
- package/dist/commands/bundle/bundler.d.ts.map +0 -1
- package/dist/commands/bundle/bundler.js +0 -583
- package/dist/commands/bundle/bundler.js.map +0 -1
- package/dist/commands/bundle/index.d.ts +0 -57
- package/dist/commands/bundle/index.d.ts.map +0 -1
- package/dist/commands/bundle/index.js +0 -200
- package/dist/commands/bundle/index.js.map +0 -1
- package/dist/commands/bundle/package-manager.d.ts +0 -8
- package/dist/commands/bundle/package-manager.d.ts.map +0 -1
- package/dist/commands/bundle/package-manager.js +0 -197
- package/dist/commands/bundle/package-manager.js.map +0 -1
- package/dist/commands/bundle/stats.d.ts +0 -23
- package/dist/commands/bundle/stats.d.ts.map +0 -1
- package/dist/commands/bundle/stats.js +0 -52
- package/dist/commands/bundle/stats.js.map +0 -1
- package/dist/commands/cache.d.ts +0 -3
- package/dist/commands/cache.d.ts.map +0 -1
- package/dist/commands/cache.js +0 -44
- package/dist/commands/cache.js.map +0 -1
- package/dist/commands/push/index.d.ts +0 -7
- package/dist/commands/push/index.d.ts.map +0 -1
- package/dist/commands/push/index.js +0 -257
- package/dist/commands/push/index.js.map +0 -1
- package/dist/commands/push/types.d.ts +0 -21
- package/dist/commands/push/types.d.ts.map +0 -1
- package/dist/commands/push/types.js +0 -2
- package/dist/commands/push/types.js.map +0 -1
- package/dist/commands/run/__tests__/run.integration.test.d.ts +0 -8
- package/dist/commands/run/__tests__/run.integration.test.d.ts.map +0 -1
- package/dist/commands/run/__tests__/run.integration.test.js +0 -52
- package/dist/commands/run/__tests__/run.integration.test.js.map +0 -1
- package/dist/commands/run/__tests__/validators.test.d.ts +0 -2
- package/dist/commands/run/__tests__/validators.test.d.ts.map +0 -1
- package/dist/commands/run/__tests__/validators.test.js +0 -80
- package/dist/commands/run/__tests__/validators.test.js.map +0 -1
- package/dist/commands/run/execution.d.ts +0 -14
- package/dist/commands/run/execution.d.ts.map +0 -1
- package/dist/commands/run/execution.js +0 -41
- package/dist/commands/run/execution.js.map +0 -1
- package/dist/commands/run/index.d.ts +0 -39
- package/dist/commands/run/index.d.ts.map +0 -1
- package/dist/commands/run/index.js +0 -191
- package/dist/commands/run/index.js.map +0 -1
- package/dist/commands/run/types.d.ts +0 -60
- package/dist/commands/run/types.d.ts.map +0 -1
- package/dist/commands/run/types.js +0 -7
- package/dist/commands/run/types.js.map +0 -1
- package/dist/commands/run/utils.d.ts +0 -29
- package/dist/commands/run/utils.d.ts.map +0 -1
- package/dist/commands/run/utils.js +0 -52
- package/dist/commands/run/utils.js.map +0 -1
- package/dist/commands/run/validators.d.ts +0 -33
- package/dist/commands/run/validators.d.ts.map +0 -1
- package/dist/commands/run/validators.js +0 -58
- package/dist/commands/run/validators.js.map +0 -1
- package/dist/commands/simulate/env-loader.d.ts +0 -19
- package/dist/commands/simulate/env-loader.d.ts.map +0 -1
- package/dist/commands/simulate/env-loader.js +0 -46
- package/dist/commands/simulate/env-loader.js.map +0 -1
- package/dist/commands/simulate/index.d.ts +0 -48
- package/dist/commands/simulate/index.d.ts.map +0 -1
- package/dist/commands/simulate/index.js +0 -116
- package/dist/commands/simulate/index.js.map +0 -1
- package/dist/commands/simulate/jsdom-executor.d.ts +0 -37
- package/dist/commands/simulate/jsdom-executor.d.ts.map +0 -1
- package/dist/commands/simulate/jsdom-executor.js +0 -137
- package/dist/commands/simulate/jsdom-executor.js.map +0 -1
- package/dist/commands/simulate/node-executor.d.ts +0 -28
- package/dist/commands/simulate/node-executor.d.ts.map +0 -1
- package/dist/commands/simulate/node-executor.js +0 -94
- package/dist/commands/simulate/node-executor.js.map +0 -1
- package/dist/commands/simulate/simulator.d.ts +0 -14
- package/dist/commands/simulate/simulator.d.ts.map +0 -1
- package/dist/commands/simulate/simulator.js +0 -162
- package/dist/commands/simulate/simulator.js.map +0 -1
- package/dist/commands/simulate/tracker.d.ts +0 -30
- package/dist/commands/simulate/tracker.d.ts.map +0 -1
- package/dist/commands/simulate/tracker.js +0 -96
- package/dist/commands/simulate/tracker.js.map +0 -1
- package/dist/commands/simulate/types.d.ts +0 -18
- package/dist/commands/simulate/types.d.ts.map +0 -1
- package/dist/commands/simulate/types.js +0 -2
- package/dist/commands/simulate/types.js.map +0 -1
- package/dist/config/build-defaults.d.ts +0 -49
- package/dist/config/build-defaults.d.ts.map +0 -1
- package/dist/config/build-defaults.js +0 -70
- package/dist/config/build-defaults.js.map +0 -1
- package/dist/config/index.d.ts +0 -13
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -15
- package/dist/config/index.js.map +0 -1
- package/dist/config/loader.d.ts +0 -81
- package/dist/config/loader.d.ts.map +0 -1
- package/dist/config/loader.js +0 -155
- package/dist/config/loader.js.map +0 -1
- package/dist/config/utils.d.ts +0 -114
- package/dist/config/utils.d.ts.map +0 -1
- package/dist/config/utils.js +0 -257
- package/dist/config/utils.js.map +0 -1
- package/dist/config/validators.d.ts +0 -52
- package/dist/config/validators.d.ts.map +0 -1
- package/dist/config/validators.js +0 -85
- package/dist/config/validators.js.map +0 -1
- package/dist/core/asset-resolver.d.ts +0 -34
- package/dist/core/asset-resolver.d.ts.map +0 -1
- package/dist/core/asset-resolver.js +0 -70
- package/dist/core/asset-resolver.js.map +0 -1
- package/dist/core/build-cache.d.ts +0 -23
- package/dist/core/build-cache.d.ts.map +0 -1
- package/dist/core/build-cache.js +0 -43
- package/dist/core/build-cache.js.map +0 -1
- package/dist/core/cache-utils.d.ts +0 -27
- package/dist/core/cache-utils.d.ts.map +0 -1
- package/dist/core/cache-utils.js +0 -60
- package/dist/core/cache-utils.js.map +0 -1
- package/dist/core/docker.d.ts +0 -102
- package/dist/core/docker.d.ts.map +0 -1
- package/dist/core/docker.js +0 -278
- package/dist/core/docker.js.map +0 -1
- package/dist/core/execution.d.ts +0 -34
- package/dist/core/execution.d.ts.map +0 -1
- package/dist/core/execution.js +0 -64
- package/dist/core/execution.js.map +0 -1
- package/dist/core/index.d.ts +0 -10
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js +0 -10
- package/dist/core/index.js.map +0 -1
- package/dist/core/local-packages.d.ts +0 -19
- package/dist/core/local-packages.d.ts.map +0 -1
- package/dist/core/local-packages.js +0 -60
- package/dist/core/local-packages.js.map +0 -1
- package/dist/core/logger.d.ts +0 -28
- package/dist/core/logger.d.ts.map +0 -1
- package/dist/core/logger.js +0 -88
- package/dist/core/logger.js.map +0 -1
- package/dist/core/output.d.ts +0 -30
- package/dist/core/output.d.ts.map +0 -1
- package/dist/core/output.js +0 -46
- package/dist/core/output.js.map +0 -1
- package/dist/core/temp-manager.d.ts +0 -51
- package/dist/core/temp-manager.d.ts.map +0 -1
- package/dist/core/temp-manager.js +0 -73
- package/dist/core/temp-manager.js.map +0 -1
- package/dist/core/timer.d.ts +0 -14
- package/dist/core/timer.d.ts.map +0 -1
- package/dist/core/timer.js +0 -29
- package/dist/core/timer.js.map +0 -1
- package/dist/core/utils.d.ts +0 -10
- package/dist/core/utils.d.ts.map +0 -1
- package/dist/core/utils.js +0 -12
- package/dist/core/utils.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/schemas/index.d.ts +0 -9
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/index.js +0 -9
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/primitives.d.ts +0 -37
- package/dist/schemas/primitives.d.ts.map +0 -1
- package/dist/schemas/primitives.js +0 -43
- package/dist/schemas/primitives.js.map +0 -1
- package/dist/schemas/run.d.ts +0 -23
- package/dist/schemas/run.d.ts.map +0 -1
- package/dist/schemas/run.js +0 -20
- package/dist/schemas/run.js.map +0 -1
- package/dist/types/bundle.d.ts +0 -141
- package/dist/types/bundle.d.ts.map +0 -1
- package/dist/types/bundle.js +0 -10
- package/dist/types/bundle.js.map +0 -1
- package/dist/types/global.d.ts +0 -51
- package/dist/types/global.d.ts.map +0 -1
- package/dist/types/global.js +0 -30
- package/dist/types/global.js.map +0 -1
- package/dist/types/index.d.ts +0 -8
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -8
- package/dist/types/index.js.map +0 -1
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -27
- package/dist/version.js.map +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Primitive Schemas
|
|
3
|
-
*
|
|
4
|
-
* Basic Zod schemas for CLI parameter validation.
|
|
5
|
-
* Follows walkerOS patterns from @walkeros/core.
|
|
6
|
-
*/
|
|
7
|
-
import { z } from '@walkeros/core/dev';
|
|
8
|
-
/**
|
|
9
|
-
* Run mode schema.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* Validates CLI run mode for the `run` command.
|
|
13
|
-
* - `collect`: Run as event collector
|
|
14
|
-
* - `serve`: Run as HTTP server
|
|
15
|
-
*/
|
|
16
|
-
export const RunModeSchema = z
|
|
17
|
-
.enum(['collect', 'serve'])
|
|
18
|
-
.describe('CLI run mode: collect events or serve HTTP');
|
|
19
|
-
/**
|
|
20
|
-
* Port number schema.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Validates HTTP server port number.
|
|
24
|
-
* Must be integer between 1-65535.
|
|
25
|
-
*/
|
|
26
|
-
export const PortSchema = z
|
|
27
|
-
.number()
|
|
28
|
-
.int('Port must be an integer')
|
|
29
|
-
.min(1, 'Port must be at least 1')
|
|
30
|
-
.max(65535, 'Port must be at most 65535')
|
|
31
|
-
.describe('HTTP server port number');
|
|
32
|
-
/**
|
|
33
|
-
* File path schema.
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Basic string validation for file paths.
|
|
37
|
-
* File existence is checked separately (Zod can't check filesystem).
|
|
38
|
-
*/
|
|
39
|
-
export const FilePathSchema = z
|
|
40
|
-
.string()
|
|
41
|
-
.min(1, 'File path cannot be empty')
|
|
42
|
-
.describe('Path to configuration file');
|
|
43
|
-
//# sourceMappingURL=primitives.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../src/schemas/primitives.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAEvC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;KAC1B,QAAQ,CAAC,4CAA4C,CAAC,CAAC;AAI1D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,EAAE;KACR,GAAG,CAAC,yBAAyB,CAAC;KAC9B,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;KACjC,GAAG,CAAC,KAAK,EAAE,4BAA4B,CAAC;KACxC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;AAEvC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,2BAA2B,CAAC;KACnC,QAAQ,CAAC,4BAA4B,CAAC,CAAC"}
|
package/dist/schemas/run.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run Command Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for run command options validation.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from '@walkeros/core/dev';
|
|
7
|
-
/**
|
|
8
|
-
* Run command options schema.
|
|
9
|
-
*
|
|
10
|
-
* @remarks
|
|
11
|
-
* Validates all options for the `walkeros run` command.
|
|
12
|
-
*/
|
|
13
|
-
export declare const RunOptionsSchema: z.ZodObject<{
|
|
14
|
-
mode: z.ZodEnum<{
|
|
15
|
-
collect: "collect";
|
|
16
|
-
serve: "serve";
|
|
17
|
-
}>;
|
|
18
|
-
flow: z.ZodString;
|
|
19
|
-
port: z.ZodDefault<z.ZodNumber>;
|
|
20
|
-
flowName: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type RunOptions = z.infer<typeof RunOptionsSchema>;
|
|
23
|
-
//# sourceMappingURL=run.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/schemas/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AAGvC;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;iBAK3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/schemas/run.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Run Command Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas for run command options validation.
|
|
5
|
-
*/
|
|
6
|
-
import { z } from '@walkeros/core/dev';
|
|
7
|
-
import { RunModeSchema, PortSchema, FilePathSchema } from './primitives';
|
|
8
|
-
/**
|
|
9
|
-
* Run command options schema.
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* Validates all options for the `walkeros run` command.
|
|
13
|
-
*/
|
|
14
|
-
export const RunOptionsSchema = z.object({
|
|
15
|
-
mode: RunModeSchema,
|
|
16
|
-
flow: FilePathSchema,
|
|
17
|
-
port: PortSchema.default(8080),
|
|
18
|
-
flowName: z.string().optional().describe('Specific flow name to run'),
|
|
19
|
-
});
|
|
20
|
-
//# sourceMappingURL=run.js.map
|
package/dist/schemas/run.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.js","sourceRoot":"","sources":["../../src/schemas/run.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;CACtE,CAAC,CAAC"}
|
package/dist/types/bundle.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Build Configuration
|
|
3
|
-
*
|
|
4
|
-
* CLI-specific build options for walkerOS bundle generation.
|
|
5
|
-
* Uses Flow.Setup and Flow.Config from @walkeros/core for config structure.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
import type { Flow } from '@walkeros/core';
|
|
10
|
-
import type { BuildOptions as ESBuildOptions } from 'esbuild';
|
|
11
|
-
export type { Flow };
|
|
12
|
-
/**
|
|
13
|
-
* CLI-specific build options (public API).
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* These are CLI-only options not part of the config file.
|
|
17
|
-
* The config file uses Flow.Setup from @walkeros/core.
|
|
18
|
-
*
|
|
19
|
-
* Platform-derived defaults:
|
|
20
|
-
* - web: format=iife, target=es2020, platform=browser
|
|
21
|
-
* - server: format=esm, target=node18, platform=node
|
|
22
|
-
*/
|
|
23
|
-
export interface CLIBuildOptions extends Pick<ESBuildOptions, 'external'> {
|
|
24
|
-
/**
|
|
25
|
-
* Output file path (CLI argument, not in config).
|
|
26
|
-
* @default "./dist/walker.js" (web) or "./dist/bundle.mjs" (server)
|
|
27
|
-
*/
|
|
28
|
-
output?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Temporary directory for build artifacts.
|
|
31
|
-
* @default ".tmp"
|
|
32
|
-
*/
|
|
33
|
-
tempDir?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Enable package caching.
|
|
36
|
-
* @default true
|
|
37
|
-
*/
|
|
38
|
-
cache?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* User code to include in bundle.
|
|
41
|
-
*/
|
|
42
|
-
code?: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Internal build options used by the bundler.
|
|
46
|
-
*
|
|
47
|
-
* @remarks
|
|
48
|
-
* Combines CLI options with resolved esbuild settings.
|
|
49
|
-
* This is populated after processing config and CLI arguments.
|
|
50
|
-
*/
|
|
51
|
-
export interface BuildOptions extends CLIBuildOptions {
|
|
52
|
-
/**
|
|
53
|
-
* Output file path (required for bundler).
|
|
54
|
-
*/
|
|
55
|
-
output: string;
|
|
56
|
-
/**
|
|
57
|
-
* Packages to include in the bundle.
|
|
58
|
-
*/
|
|
59
|
-
packages: Flow.Packages;
|
|
60
|
-
/**
|
|
61
|
-
* Output format.
|
|
62
|
-
*/
|
|
63
|
-
format: 'esm' | 'iife' | 'cjs';
|
|
64
|
-
/**
|
|
65
|
-
* Target platform.
|
|
66
|
-
*/
|
|
67
|
-
platform: 'browser' | 'node';
|
|
68
|
-
/**
|
|
69
|
-
* Enable minification.
|
|
70
|
-
* @default true
|
|
71
|
-
*/
|
|
72
|
-
minify?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Enable source maps.
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
sourcemap?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* ECMAScript target version.
|
|
80
|
-
*/
|
|
81
|
-
target?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Minification options.
|
|
84
|
-
*/
|
|
85
|
-
minifyOptions?: MinifyOptions;
|
|
86
|
-
/**
|
|
87
|
-
* Window property name for collector (web platform only).
|
|
88
|
-
* @default "collector"
|
|
89
|
-
*/
|
|
90
|
-
windowCollector?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Window property name for elb function (web platform only).
|
|
93
|
-
* @default "elb"
|
|
94
|
-
*/
|
|
95
|
-
windowElb?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Folders to include in the output directory.
|
|
98
|
-
* These folders are copied alongside the bundle for runtime access.
|
|
99
|
-
* @default ["./shared"] if folder exists
|
|
100
|
-
*/
|
|
101
|
-
include?: string[];
|
|
102
|
-
/**
|
|
103
|
-
* Base directory for resolving include paths.
|
|
104
|
-
* Typically the directory containing the config file.
|
|
105
|
-
*/
|
|
106
|
-
configDir?: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Minification options.
|
|
110
|
-
*
|
|
111
|
-
* @remarks
|
|
112
|
-
* Controls esbuild's minification behavior.
|
|
113
|
-
*/
|
|
114
|
-
export interface MinifyOptions {
|
|
115
|
-
/**
|
|
116
|
-
* Minify identifiers (variable names).
|
|
117
|
-
* @default true
|
|
118
|
-
*/
|
|
119
|
-
identifiers?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Minify syntax (shorten code).
|
|
122
|
-
* @default true
|
|
123
|
-
*/
|
|
124
|
-
syntax?: boolean;
|
|
125
|
-
/**
|
|
126
|
-
* Minify whitespace.
|
|
127
|
-
* @default true
|
|
128
|
-
*/
|
|
129
|
-
whitespace?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Keep original function/class names.
|
|
132
|
-
* @default false
|
|
133
|
-
*/
|
|
134
|
-
keepNames?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* How to handle legal comments.
|
|
137
|
-
* @default "none"
|
|
138
|
-
*/
|
|
139
|
-
legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external';
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=bundle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/types/bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,IAAI,cAAc,EAAE,MAAM,SAAS,CAAC;AAG9D,YAAY,EAAE,IAAI,EAAE,CAAC;AAErB;;;;;;;;;;GAUG;AACH,MAAM,WAAW,eACf,SAAQ,IAAI,CACV,cAAc,EACd,UAAU,CACX;IACD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;IAExB;;OAEG;IACH,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;IAE/B;;OAEG;IACH,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAE7B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,UAAU,CAAC;CACnE"}
|
package/dist/types/bundle.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Build Configuration
|
|
3
|
-
*
|
|
4
|
-
* CLI-specific build options for walkerOS bundle generation.
|
|
5
|
-
* Uses Flow.Setup and Flow.Config from @walkeros/core for config structure.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=bundle.js.map
|
package/dist/types/bundle.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../src/types/bundle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
package/dist/types/global.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global CLI Options
|
|
3
|
-
*
|
|
4
|
-
* Options that apply to all commands.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Global options available across all CLI commands
|
|
8
|
-
*/
|
|
9
|
-
export interface GlobalOptions {
|
|
10
|
-
/**
|
|
11
|
-
* Execute using local Node.js environment (vs Docker container)
|
|
12
|
-
* @default false (Docker mode)
|
|
13
|
-
*/
|
|
14
|
-
local?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Show detailed execution logs
|
|
17
|
-
* @default false
|
|
18
|
-
*/
|
|
19
|
-
verbose?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Suppress all output except errors
|
|
22
|
-
* @default false
|
|
23
|
-
*/
|
|
24
|
-
silent?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Preview command without executing
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
dryRun?: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Execution mode for commands
|
|
33
|
-
*/
|
|
34
|
-
export type ExecutionMode = 'docker' | 'local';
|
|
35
|
-
/**
|
|
36
|
-
* Get execution mode from global options
|
|
37
|
-
*/
|
|
38
|
-
export declare function getExecutionMode(options: GlobalOptions): ExecutionMode;
|
|
39
|
-
/**
|
|
40
|
-
* Check if output should be shown based on global options
|
|
41
|
-
*/
|
|
42
|
-
export declare function shouldShowOutput(options: GlobalOptions): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Check if verbose output should be shown
|
|
45
|
-
*/
|
|
46
|
-
export declare function isVerbose(options: GlobalOptions): boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Check if this is a dry run
|
|
49
|
-
*/
|
|
50
|
-
export declare function isDryRun(options: GlobalOptions): boolean;
|
|
51
|
-
//# sourceMappingURL=global.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/types/global.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE/C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,CAEtE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEhE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAEzD;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAExD"}
|
package/dist/types/global.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global CLI Options
|
|
3
|
-
*
|
|
4
|
-
* Options that apply to all commands.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Get execution mode from global options
|
|
8
|
-
*/
|
|
9
|
-
export function getExecutionMode(options) {
|
|
10
|
-
return options.local ? 'local' : 'docker';
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Check if output should be shown based on global options
|
|
14
|
-
*/
|
|
15
|
-
export function shouldShowOutput(options) {
|
|
16
|
-
return !options.silent;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Check if verbose output should be shown
|
|
20
|
-
*/
|
|
21
|
-
export function isVerbose(options) {
|
|
22
|
-
return options.verbose === true;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Check if this is a dry run
|
|
26
|
-
*/
|
|
27
|
-
export function isDryRun(options) {
|
|
28
|
-
return options.dryRun === true;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=global.js.map
|
package/dist/types/global.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/types/global.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoCH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAsB;IACrD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAsB;IACrD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;AACzB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,OAAsB;IAC9C,OAAO,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC;AAClC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAsB;IAC7C,OAAO,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC;AACjC,CAAC"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,cAAc,aAAa,CAAC"}
|
package/dist/types/index.js
DELETED
package/dist/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,cAAc,aAAa,CAAC"}
|
package/dist/version.d.ts
DELETED
package/dist/version.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AA0BA,0BAA0B;AAC1B,eAAO,MAAM,OAAO,EAAE,MAA8C,CAAC"}
|
package/dist/version.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'fs';
|
|
2
|
-
import { fileURLToPath } from 'url';
|
|
3
|
-
import { dirname, join } from 'path';
|
|
4
|
-
const versionFilename = fileURLToPath(import.meta.url);
|
|
5
|
-
const versionDirname = dirname(versionFilename);
|
|
6
|
-
/**
|
|
7
|
-
* Find package.json in parent directories
|
|
8
|
-
* Handles both source (src/) and bundled (dist/) contexts
|
|
9
|
-
*/
|
|
10
|
-
function findPackageJson() {
|
|
11
|
-
const paths = [
|
|
12
|
-
join(versionDirname, '../package.json'), // dist/ or src/
|
|
13
|
-
join(versionDirname, '../../package.json'), // src/core/ (not used, but safe)
|
|
14
|
-
];
|
|
15
|
-
for (const p of paths) {
|
|
16
|
-
try {
|
|
17
|
-
return readFileSync(p, 'utf-8');
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
// Continue to next path
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return JSON.stringify({ version: '0.0.0' });
|
|
24
|
-
}
|
|
25
|
-
/** CLI package version */
|
|
26
|
-
export const VERSION = JSON.parse(findPackageJson()).version;
|
|
27
|
-
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACvD,MAAM,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEhD;;;GAGG;AACH,SAAS,eAAe;IACtB,MAAM,KAAK,GAAG;QACZ,IAAI,CAAC,cAAc,EAAE,iBAAiB,CAAC,EAAE,gBAAgB;QACzD,IAAI,CAAC,cAAc,EAAE,oBAAoB,CAAC,EAAE,iCAAiC;KAC9E,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,IAAI,CAAC;YACH,OAAO,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QAClC,CAAC;QAAC,MAAM,CAAC;YACP,wBAAwB;QAC1B,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED,0BAA0B;AAC1B,MAAM,CAAC,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC"}
|