@pikku/cli 0.12.68 → 0.12.70
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/cli.schema.json +1 -1
- package/console-app/assets/{index-CttM2Aiz.js → index-BY60UXB6.js} +132 -132
- 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 +7 -12
- 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 +23 -30
- 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 +1 -1
- 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 +39 -54
- package/dist/.pikku/function/pikku-functions.gen.js +1 -3
- 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/http/pikku-http-wirings-meta.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-wirings.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.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 +4 -2
- package/dist/.pikku/pikku-services.gen.js +2 -0
- 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/rpc/pikku-rpc-wirings-meta.internal.gen.json +2 -3
- 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 +5 -7
- package/dist/.pikku/schemas/schemas/DevInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/ScenarioRunInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ServeInput.schema.json +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-workflow-types.gen.d.ts +4 -4
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +2 -2
- 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/bin/pikku.js +1 -1
- package/dist/src/cli.wiring.js +23 -30
- package/dist/src/functions/commands/all.js +14 -1
- package/dist/src/functions/commands/bun-coverage-loader.d.ts +11 -0
- package/dist/src/functions/commands/bun-coverage-loader.js +42 -0
- package/dist/src/functions/commands/dev.d.ts +6 -3
- package/dist/src/functions/commands/dev.js +26 -9
- package/dist/src/functions/commands/{user-flow.d.ts → scenario.d.ts} +5 -2
- package/dist/src/functions/commands/{user-flow.js → scenario.js} +73 -32
- package/dist/src/functions/commands/serve-console.d.ts +2 -3
- package/dist/src/functions/commands/serve-console.js +5 -51
- package/dist/src/functions/commands/serve.d.ts +3 -3
- package/dist/src/functions/commands/serve.js +15 -7
- package/dist/src/functions/commands/start-coverage.d.ts +13 -0
- package/dist/src/functions/commands/start-coverage.js +26 -0
- package/dist/src/functions/commands/watch.js +2 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +6 -5
- package/dist/src/functions/wirings/workflow/serialize-scenario-actors.d.ts +2 -0
- package/dist/src/functions/wirings/workflow/serialize-scenario-actors.js +29 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +4 -4
- package/dist/src/services.js +14 -1
- package/dist/src/utils/file-writer.d.ts +1 -0
- package/dist/src/utils/file-writer.js +9 -0
- package/dist/src/utils/meta-diff.d.ts +32 -0
- package/dist/src/utils/meta-diff.js +144 -0
- package/dist/src/utils/pikku-cli-config.js +2 -2
- package/dist/src/utils/serialize-schemas.js +1 -1
- package/dist/src/utils/strip-verbose-meta.js +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -6
- package/dist/.pikku/schemas/schemas/ConsoleCommandInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/UserFlowRunInput.schema.json +0 -1
- package/dist/src/functions/commands/console.d.ts +0 -13
- package/dist/src/functions/commands/console.js +0 -122
- package/dist/src/functions/wirings/workflow/serialize-user-flow-actors.d.ts +0 -8
- package/dist/src/functions/wirings/workflow/serialize-user-flow-actors.js +0 -36
- /package/dist/.pikku/schemas/schemas/{UserFlowListInput.schema.json → ScenarioListInput.schema.json} +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PikkuCLIConfig } from '../../../../types/config.js';
|
|
2
|
-
/**
|
|
3
|
-
* Generate the typed user-flow actor registry from pikku.config.json's
|
|
4
|
-
* `userFlows.actors`. Apps wire the result as the `actors` singleton service:
|
|
5
|
-
*
|
|
6
|
-
* actors: createUserFlowActors({ apiUrl, secret })
|
|
7
|
-
*/
|
|
8
|
-
export declare const serializeUserFlowActors: (actors: NonNullable<NonNullable<PikkuCLIConfig["userFlows"]>["actors"]>) => string;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate the typed user-flow actor registry from pikku.config.json's
|
|
3
|
-
* `userFlows.actors`. Apps wire the result as the `actors` singleton service:
|
|
4
|
-
*
|
|
5
|
-
* actors: createUserFlowActors({ apiUrl, secret })
|
|
6
|
-
*/
|
|
7
|
-
export const serializeUserFlowActors = (actors) => {
|
|
8
|
-
return `/**
|
|
9
|
-
* User-flow actors declared in pikku.config.json (\`userFlows.actors\`).
|
|
10
|
-
* Any user flow can impersonate any actor.
|
|
11
|
-
*/
|
|
12
|
-
import {
|
|
13
|
-
createHttpUserFlowActors,
|
|
14
|
-
type HttpUserFlowActorsConfig,
|
|
15
|
-
type UserFlowActor,
|
|
16
|
-
type UserFlowActorConfig,
|
|
17
|
-
} from '@pikku/core/services'
|
|
18
|
-
|
|
19
|
-
export const userFlowActorConfigs = ${JSON.stringify(actors, null, 2)} as const satisfies Record<string, UserFlowActorConfig>
|
|
20
|
-
|
|
21
|
-
export type UserFlowActorName = keyof typeof userFlowActorConfigs
|
|
22
|
-
export type TypedUserFlowActors = Record<UserFlowActorName, UserFlowActor>
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Build the injected \`actors\` service: one lazy HTTP actor per registry
|
|
26
|
-
* entry, signing in via the Better Auth actor plugin on first invoke.
|
|
27
|
-
*/
|
|
28
|
-
export const createUserFlowActors = (
|
|
29
|
-
options: Omit<HttpUserFlowActorsConfig, 'actors'>
|
|
30
|
-
): TypedUserFlowActors =>
|
|
31
|
-
createHttpUserFlowActors({
|
|
32
|
-
...options,
|
|
33
|
-
actors: userFlowActorConfigs,
|
|
34
|
-
}) as TypedUserFlowActors
|
|
35
|
-
`;
|
|
36
|
-
};
|
/package/dist/.pikku/schemas/schemas/{UserFlowListInput.schema.json → ScenarioListInput.schema.json}
RENAMED
|
File without changes
|