@pikku/cli 0.12.90 → 0.12.91
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 +25 -2
- package/console-app/assets/{index-C5Bd44e4.js → index-CpkvmAGb.js} +140 -140
- package/console-app/assets/{index-CSzCJzBb.css → index-D0HG8q0B.css} +1 -1
- package/console-app/index.html +2 -2
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +22 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +4 -4
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +9 -9
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +8 -0
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +8 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +10 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +4 -0
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts +1 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +10 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +4 -0
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +1 -1
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/ScenarioRunInput.schema.json +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-scenario-actors.gen.d.ts +19 -0
- package/dist/.pikku/workflow/pikku-scenario-actors.gen.js +17 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +152 -3
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +39 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/cli.wiring.js +22 -0
- package/dist/src/functions/commands/dev.js +2 -0
- package/dist/src/functions/commands/load-user-project.d.ts +7 -0
- package/dist/src/functions/commands/load-user-project.js +21 -0
- package/dist/src/functions/commands/pikku-command-bootstrap.js +12 -0
- package/dist/src/functions/commands/scenario-browser.d.ts +69 -0
- package/dist/src/functions/commands/scenario-browser.js +60 -0
- package/dist/src/functions/commands/scenario-formatter.d.ts +81 -0
- package/dist/src/functions/commands/scenario-formatter.js +120 -0
- package/dist/src/functions/commands/scenario-ladder.d.ts +66 -0
- package/dist/src/functions/commands/scenario-ladder.js +132 -0
- package/dist/src/functions/commands/scenario-plan.d.ts +61 -0
- package/dist/src/functions/commands/scenario-plan.js +106 -0
- package/dist/src/functions/commands/scenario.d.ts +18 -0
- package/dist/src/functions/commands/scenario.js +305 -38
- package/dist/src/functions/commands/serve.js +2 -0
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +26 -8
- package/dist/src/functions/wirings/functions/serialize-function-types.js +3 -3
- package/dist/src/functions/wirings/scenarios/scenario-partition.d.ts +29 -0
- package/dist/src/functions/wirings/scenarios/scenario-partition.js +58 -0
- package/dist/src/functions/wirings/scenarios/serialize-feature-meta.d.ts +14 -0
- package/dist/src/functions/wirings/scenarios/serialize-feature-meta.js +29 -0
- package/dist/src/functions/wirings/scenarios/serialize-scenario-meta.d.ts +12 -0
- package/dist/src/functions/wirings/scenarios/serialize-scenario-meta.js +56 -0
- package/dist/src/functions/wirings/scenarios/serialize-scenario-registration.d.ts +7 -0
- package/dist/src/functions/wirings/scenarios/serialize-scenario-registration.js +40 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +43 -8
- package/dist/src/functions/wirings/workflow/serialize-scenario-actors.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-scenario-actors.js +13 -2
- package/dist/src/functions/wirings/workflow/serialize-scenario-step-map.d.ts +4 -0
- package/dist/src/functions/wirings/workflow/serialize-scenario-step-map.js +62 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-bootstrap-map.js +10 -3
- package/dist/src/functions/wirings/workflow/serialize-workflow-map.js +10 -3
- package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +4 -4
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +232 -3
- package/dist/src/server/server-ready.d.ts +12 -0
- package/dist/src/server/server-ready.js +12 -0
- package/dist/src/server/spawn-dev-server.d.ts +50 -0
- package/dist/src/server/spawn-dev-server.js +112 -0
- package/dist/src/services.js +12 -1
- package/dist/src/utils/meta-diff.js +5 -2
- package/dist/src/utils/pikku-cli-config.js +26 -0
- package/dist/src/utils/resolve-scenario-actors.d.ts +23 -0
- package/dist/src/utils/resolve-scenario-actors.js +74 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -5
- package/skills/pikku-scenario/SKILL.md +196 -29
package/console-app/index.html
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
} catch (e) {}
|
|
23
23
|
</script>
|
|
24
|
-
<script type="module" crossorigin src="/console/assets/index-
|
|
25
|
-
<link rel="stylesheet" crossorigin href="/console/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/console/assets/index-CpkvmAGb.js"></script>
|
|
25
|
+
<link rel="stylesheet" crossorigin href="/console/assets/index-D0HG8q0B.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
28
28
|
<div id="root"></div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.91
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
|
|
5
5
|
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
@@ -338,13 +338,35 @@
|
|
|
338
338
|
"description": "Comma-separated flow names to run (default: all)",
|
|
339
339
|
"short": "f"
|
|
340
340
|
},
|
|
341
|
+
"features": {
|
|
342
|
+
"description": "Comma-separated feature names to run (pikkuFeature exports) — the feature is the run unit, so its hooks run once around the group"
|
|
343
|
+
},
|
|
341
344
|
"tags": {
|
|
342
345
|
"description": "Comma-separated tags — run flows matching any",
|
|
343
346
|
"short": "t"
|
|
344
347
|
},
|
|
348
|
+
"excludeTags": {
|
|
349
|
+
"description": "Comma-separated tags to hold back — flows matching any are not run, unless named directly with --flows"
|
|
350
|
+
},
|
|
345
351
|
"coverage": {
|
|
346
352
|
"description": "Reset/snapshot server coverage per scenario (target must run with --coverage); writes coverage/scenario-coverage.json",
|
|
347
353
|
"default": false
|
|
354
|
+
},
|
|
355
|
+
"browser": {
|
|
356
|
+
"description": "Run scenarios with browser steps. --no-browser skips them (they are reported as skipped, not failed)",
|
|
357
|
+
"default": true
|
|
358
|
+
},
|
|
359
|
+
"spawn": {
|
|
360
|
+
"description": "Start `pikku dev` on the environment's apiUrl for the run and stop it afterwards. Without it, the environment must already be serving",
|
|
361
|
+
"default": false
|
|
362
|
+
},
|
|
363
|
+
"keepAlive": {
|
|
364
|
+
"description": "With --spawn, leave the server running after the run (dev loop)",
|
|
365
|
+
"default": false
|
|
366
|
+
},
|
|
367
|
+
"trace": {
|
|
368
|
+
"description": "Keep every stack frame on a failure. Without it, only the project’s own frames are shown",
|
|
369
|
+
"default": false
|
|
348
370
|
}
|
|
349
371
|
},
|
|
350
372
|
"description": "Run scenarios against a configured environment (scenarios.environments in pikku.config.json). Actor secret comes from SCENARIO_ACTOR_SECRET.",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.91
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
@@ -17,7 +17,7 @@ import type { Services } from '../../types/application-types.d.js';
|
|
|
17
17
|
import type { Config } from '../../types/application-types.d.js';
|
|
18
18
|
import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
|
|
19
19
|
import type { RequiredSingletonServices, RequiredWireServices } from '../pikku-services.gen.js';
|
|
20
|
-
import type { TypedWorkflow, TypedScenario } from '../workflow/pikku-workflow-types.gen.js';
|
|
20
|
+
import type { TypedWorkflow, TypedScenario, TypedScenarioActors } from '../workflow/pikku-workflow-types.gen.js';
|
|
21
21
|
export type { SingletonServices as SingletonServices };
|
|
22
22
|
export type { Services as Services };
|
|
23
23
|
export type Session = UserSession;
|
|
@@ -226,7 +226,7 @@ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices e
|
|
|
226
226
|
* @template Out - The output type that the function returns
|
|
227
227
|
* @template RequiredServices - Services required by this function
|
|
228
228
|
*/
|
|
229
|
-
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends Services = WiredServices> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario>, RequiredWires>>;
|
|
229
|
+
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends Services = WiredServices> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedScenarioActors>, RequiredWires>>;
|
|
230
230
|
/**
|
|
231
231
|
* A session-aware API function that requires user authentication.
|
|
232
232
|
* Use this for protected endpoints that need access to user session data.
|
|
@@ -235,7 +235,7 @@ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires ex
|
|
|
235
235
|
* @template Out - The output type that the function returns
|
|
236
236
|
* @template RequiredServices - Services required by this function
|
|
237
237
|
*/
|
|
238
|
-
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends Services = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario>, RequiredWires>>;
|
|
238
|
+
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends Services = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedScenarioActors>, RequiredWires>>;
|
|
239
239
|
/**
|
|
240
240
|
* Helper type to infer the output type from a Standard Schema
|
|
241
241
|
*/
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
],
|
|
732
732
|
"outputs": [],
|
|
733
733
|
"remote": true,
|
|
734
|
-
"implementationHash": "
|
|
734
|
+
"implementationHash": "2be74ae8c0ad9a60"
|
|
735
735
|
},
|
|
736
736
|
"pikkuEmailsInit": {
|
|
737
737
|
"pikkuFuncId": "pikkuEmailsInit",
|
|
@@ -1426,7 +1426,7 @@
|
|
|
1426
1426
|
"BootstrapInput"
|
|
1427
1427
|
],
|
|
1428
1428
|
"outputs": [],
|
|
1429
|
-
"implementationHash": "
|
|
1429
|
+
"implementationHash": "09b4cfd94170ca40",
|
|
1430
1430
|
"contractHash": "d699dbed25674fbe",
|
|
1431
1431
|
"inputHash": "83f342c1",
|
|
1432
1432
|
"outputHash": "0d154de9"
|
|
@@ -1458,7 +1458,7 @@
|
|
|
1458
1458
|
"ScenarioListInput"
|
|
1459
1459
|
],
|
|
1460
1460
|
"outputs": [],
|
|
1461
|
-
"implementationHash": "
|
|
1461
|
+
"implementationHash": "8b859b85b1994f5f",
|
|
1462
1462
|
"contractHash": "e790690833f027f6",
|
|
1463
1463
|
"inputHash": "dbf3a3d0",
|
|
1464
1464
|
"outputHash": "4cdcffbb"
|
|
@@ -1475,9 +1475,9 @@
|
|
|
1475
1475
|
"ScenarioRunInput"
|
|
1476
1476
|
],
|
|
1477
1477
|
"outputs": [],
|
|
1478
|
-
"implementationHash": "
|
|
1479
|
-
"contractHash": "
|
|
1480
|
-
"inputHash": "
|
|
1478
|
+
"implementationHash": "094c55cb64c30fea",
|
|
1479
|
+
"contractHash": "f0b9f6f9e118fb8d",
|
|
1480
|
+
"inputHash": "bb074ca5",
|
|
1481
1481
|
"outputHash": "73729ce5"
|
|
1482
1482
|
},
|
|
1483
1483
|
"scopesAudit": {
|
|
@@ -1523,7 +1523,7 @@
|
|
|
1523
1523
|
],
|
|
1524
1524
|
"outputs": [],
|
|
1525
1525
|
"remote": true,
|
|
1526
|
-
"implementationHash": "
|
|
1526
|
+
"implementationHash": "14a058c5e2987c14"
|
|
1527
1527
|
},
|
|
1528
1528
|
"pikkuSkillsList": {
|
|
1529
1529
|
"pikkuFuncId": "pikkuSkillsList",
|
|
@@ -2184,7 +2184,7 @@
|
|
|
2184
2184
|
"outputs": [
|
|
2185
2185
|
"PikkuFunctionsOutput"
|
|
2186
2186
|
],
|
|
2187
|
-
"implementationHash": "
|
|
2187
|
+
"implementationHash": "042a4c0cca9a8a6c",
|
|
2188
2188
|
"middleware": [
|
|
2189
2189
|
{
|
|
2190
2190
|
"type": "wire",
|
|
@@ -3246,7 +3246,7 @@
|
|
|
3246
3246
|
"outputs": [
|
|
3247
3247
|
"PikkuWorkflowOutput"
|
|
3248
3248
|
],
|
|
3249
|
-
"implementationHash": "
|
|
3249
|
+
"implementationHash": "2b6fc206093884ae",
|
|
3250
3250
|
"middleware": [
|
|
3251
3251
|
{
|
|
3252
3252
|
"type": "wire",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.91
|
|
3
|
+
*/
|
|
4
|
+
import './pikku-bootstrap.gen.js';
|
|
5
|
+
import './scenarios/pikku-scenario-functions-meta.gen.js';
|
|
6
|
+
import './scenarios/pikku-scenario-functions.gen.js';
|
|
7
|
+
import './scenarios/pikku-scenario-wirings-meta.gen.js';
|
|
8
|
+
import './scenarios/pikku-scenario-wirings.gen.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.91
|
|
3
|
+
*/
|
|
4
|
+
import './pikku-bootstrap.gen.js';
|
|
5
|
+
import './scenarios/pikku-scenario-functions-meta.gen.js';
|
|
6
|
+
import './scenarios/pikku-scenario-functions.gen.js';
|
|
7
|
+
import './scenarios/pikku-scenario-wirings-meta.gen.js';
|
|
8
|
+
import './scenarios/pikku-scenario-wirings.gen.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../function/pikku-functions-meta.gen.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.91
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal';
|
|
5
|
+
import '../function/pikku-functions-meta.gen.js';
|
|
6
|
+
import metaData from './pikku-scenario-functions-meta.gen.json' with { type: 'json' };
|
|
7
|
+
pikkuState(null, 'function', 'meta', {
|
|
8
|
+
...pikkuState(null, 'function', 'meta'),
|
|
9
|
+
...metaData,
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '../workflow/pikku-workflow-wirings-meta.gen.js';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.91
|
|
3
|
+
*/
|
|
4
|
+
import { pikkuState } from '@pikku/core/internal';
|
|
5
|
+
import '../workflow/pikku-workflow-wirings-meta.gen.js';
|
|
6
|
+
const scenariosMeta = {};
|
|
7
|
+
pikkuState(null, 'workflows', 'meta', {
|
|
8
|
+
...pikkuState(null, 'workflows', 'meta'),
|
|
9
|
+
...scenariosMeta,
|
|
10
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|