@pikku/cli 0.12.93 → 0.12.99
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/console-app/assets/abnfDiagram-VRR7QNED-CytV-CG1.js +1 -0
- package/console-app/assets/arc-C5PvmnaA.js +1 -0
- package/console-app/assets/architecture-TIHT7OUA-C1_ScvPX.js +1 -0
- package/console-app/assets/architectureDiagram-ZJ3FMSHR-CJ2xb7C-.js +36 -0
- package/console-app/assets/array-BifhSqXX.js +1 -0
- package/console-app/assets/blockDiagram-677ZJIJ3-CCecrBrk.js +132 -0
- package/console-app/assets/c4Diagram-LMCZKHZV-CBnpukvQ.js +10 -0
- package/console-app/assets/channel-CwDOkXGI.js +1 -0
- package/console-app/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/console-app/assets/chunk-32BRIVSS-D8qWWZRQ.js +1 -0
- package/console-app/assets/chunk-52WLFC77-BEpXHMsp.js +10 -0
- package/console-app/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/console-app/assets/chunk-7BUUIJ7U-Bb538aSH.js +1 -0
- package/console-app/assets/chunk-C7G6YPKG-DsHUMkOp.js +1 -0
- package/console-app/assets/chunk-EX3LRPZG-mM7TjVx9.js +231 -0
- package/console-app/assets/chunk-FWX5IMBZ-CndRAn18.js +2 -0
- package/console-app/assets/chunk-HOUHSVGY-D1kT8umn.js +1 -0
- package/console-app/assets/chunk-ICXQ74PX-CeSaGyro.js +2 -0
- package/console-app/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/console-app/assets/chunk-KEIR6QF5-DNzq6p3w.js +161 -0
- package/console-app/assets/chunk-MOJQB5TN-CaZOCHYr.js +88 -0
- package/console-app/assets/chunk-OGEWGWER-CnB1CsPt.js +1 -0
- package/console-app/assets/chunk-PUDLZKDR-BbGulHJm.js +156 -0
- package/console-app/assets/chunk-Q4XR5HBZ-BywwzeeR.js +70 -0
- package/console-app/assets/chunk-RYQCIY6F-CV0R1Adv.js +1 -0
- package/console-app/assets/chunk-V7JOEXUC-DGFaAWzB.js +206 -0
- package/console-app/assets/chunk-VAUOI2AC-DxPUd8Yb.js +1 -0
- package/console-app/assets/chunk-VR4S4FIN-D4-UaW_J.js +1 -0
- package/console-app/assets/chunk-WYO6CB5R-D_TFN0d9.js +127 -0
- package/console-app/assets/chunk-XXDRQBXY-BzVuweA_.js +1 -0
- package/console-app/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/console-app/assets/chunk-ZGVPDNZ5-C6hdkGQb.js +62 -0
- package/console-app/assets/chunk-ZIRB5QZD-H-kepumB.js +32 -0
- package/console-app/assets/classDiagram-OUVF2IWQ-CTYJkTT0.js +1 -0
- package/console-app/assets/classDiagram-v2-EOCWNBFH-CTYJkTT0.js +1 -0
- package/console-app/assets/cose-bilkent-JH36ORCC-B6ZPxN6v.js +1 -0
- package/console-app/assets/cynefin-VYW2F7L2-D_nmxNz_.js +1 -0
- package/console-app/assets/cynefinDiagram-TSTJHNR4-CHy5QN0S.js +62 -0
- package/console-app/assets/cytoscape.esm-h6BdjjI9.js +321 -0
- package/console-app/assets/dagre-CXRCoUWR.js +1 -0
- package/console-app/assets/dagre-VKFMJZFB-DYfukM34.js +4 -0
- package/console-app/assets/defaultLocale-C8Fc0cco.js +1 -0
- package/console-app/assets/diagram-FQU43EPY-Dgb9TPSB.js +3 -0
- package/console-app/assets/diagram-G47NLZAW-CnFNZs9Z.js +24 -0
- package/console-app/assets/diagram-NH7WQ7WH-DN7h2DU-.js +24 -0
- package/console-app/assets/diagram-OA4YK3LP-RLaQaNtK.js +30 -0
- package/console-app/assets/diagram-WEI45ONY-DxHWhVGd.js +41 -0
- package/console-app/assets/dist-BaJNIo4I.js +1 -0
- package/console-app/assets/ebnfDiagram-CCIWWBDH-UN3Z81-l.js +1 -0
- package/console-app/assets/erDiagram-Q63AITRT-C9lGAY3i.js +85 -0
- package/console-app/assets/eventmodeling-45OFAUF4-Dc5wNSSK.js +1 -0
- package/console-app/assets/flowDiagram-23GEKE2U-zPyGHMi4.js +1 -0
- package/console-app/assets/ganttDiagram-NO4QXBWP-CvBjBcdK.js +292 -0
- package/console-app/assets/gitGraph-TEB2WS4Q-Cs5Z9jMo.js +1 -0
- package/console-app/assets/gitGraphDiagram-IHSO6WYX-B0i_IJ5r.js +106 -0
- package/console-app/assets/graphlib-B8gBHxth.js +1 -0
- package/console-app/assets/{index-CmAplHjZ.js → index-71U8EEj7.js} +155 -153
- package/console-app/assets/{index-BYj7ZbUU.css → index-BXMjqLQ5.css} +1 -1
- package/console-app/assets/info-DKCQHKI2-DHL0afNl.js +1 -0
- package/console-app/assets/infoDiagram-FWYZ7A6U-CBWykodX.js +2 -0
- package/console-app/assets/init-D6jRqBbL.js +1 -0
- package/console-app/assets/ishikawaDiagram-FXEZZL3T-DM377eW_.js +70 -0
- package/console-app/assets/journeyDiagram-5HDEW3XC-BpX_-Cns.js +139 -0
- package/console-app/assets/kanban-definition-HUTT4EX6-D3xFsQkO.js +89 -0
- package/console-app/assets/katex-Vhh-h91d.js +257 -0
- package/console-app/assets/line-CTSKHTE0.js +1 -0
- package/console-app/assets/linear-R5GlBvXT.js +1 -0
- package/console-app/assets/map-DsCK-0Cs.js +1 -0
- package/console-app/assets/mermaid-parser.core-CkHk4BPi.js +7 -0
- package/console-app/assets/mermaid.core-CcjGXuV6.js +11 -0
- package/console-app/assets/mindmap-definition-LN4V7U3C-CtolazqQ.js +96 -0
- package/console-app/assets/ordinal-hYBb2elL.js +1 -0
- package/console-app/assets/packet-7NZHBO7P-BxSOj_Ny.js +1 -0
- package/console-app/assets/path-BWPyau1x.js +1 -0
- package/console-app/assets/pegDiagram-2B236MQR-BNsMtxsM.js +1 -0
- package/console-app/assets/pie-RZYD4A2V-BbkKQBA5.js +1 -0
- package/console-app/assets/pieDiagram-ENE6RG2P-BAZLIz2f.js +39 -0
- package/console-app/assets/quadrantDiagram-ABIIQ3AL-Dpvn-1Fs.js +7 -0
- package/console-app/assets/radar-I7S5WNFK-B-uKXIAH.js +1 -0
- package/console-app/assets/railroad-3IZDKUUU-BHXXK04t.js +1 -0
- package/console-app/assets/railroad-abnf-AHOZXSZD-tXSQaBvY.js +1 -0
- package/console-app/assets/railroad-ebnf-EBAXGLYW-DG3aohR0.js +1 -0
- package/console-app/assets/railroad-peg-LSFZ7HO6-DY_gBA-x.js +1 -0
- package/console-app/assets/railroadDiagram-RFXS5EU6-DfUApEQj.js +1 -0
- package/console-app/assets/requirementDiagram-TGXJPOKE-B2zX0jqo.js +84 -0
- package/console-app/assets/rough.esm-CSKSodPl.js +1 -0
- package/console-app/assets/sankeyDiagram-HTMAVEWB-CbQ2zc7z.js +40 -0
- package/console-app/assets/sequenceDiagram-DBY2YBRQ-BLT8PXI_.js +162 -0
- package/console-app/assets/sizeCapture-X5ZJPWSS-B0uUizjq.js +1 -0
- package/console-app/assets/src-BLuPUFWW.js +1 -0
- package/console-app/assets/stateDiagram-2N3HPSRC-BvEyVp85.js +1 -0
- package/console-app/assets/stateDiagram-v2-6OUMAXLB-RGKS9iU4.js +1 -0
- package/console-app/assets/swimlanes-5IMT3BWC-1AZ459s6.js +2 -0
- package/console-app/assets/swimlanesDiagram-G3AALYLV-Ck_0-rfN.js +8 -0
- package/console-app/assets/timeline-definition-FHXFAJF6-dLuvH4s2.js +120 -0
- package/console-app/assets/treeView-QDETBFTQ-xL2msjo2.js +1 -0
- package/console-app/assets/treemap-6X3UGDF4-C98ichVP.js +1 -0
- package/console-app/assets/vennDiagram-L72KCM5P-HbUmidhv.js +34 -0
- package/console-app/assets/wardley-OPB4EBWU-C4gJS-m2.js +1 -0
- package/console-app/assets/wardleyDiagram-EHGQE667-B7b-LB02.js +78 -0
- package/console-app/assets/xychartDiagram-FW5EYKEG-Cm03zUGy.js +7 -0
- package/console-app/index.html +2 -2
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/auth/auth.types.d.ts +1 -1
- package/dist/.pikku/auth/auth.types.js +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.d.ts +13 -15
- package/dist/.pikku/cli/pikku-cli-channel.js +62 -8
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +14 -4
- package/dist/.pikku/cli/pikku-cli-client.gen.js +55 -18
- 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 +136 -10
- 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 +18 -2
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +64 -23
- package/dist/.pikku/function/pikku-function-types.gen.js +27 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +171 -37
- package/dist/.pikku/function/pikku-functions.gen.js +13 -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/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 +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.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 +2 -1
- package/dist/.pikku/pikku-services.gen.js +1 -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 +8 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
- 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 +15 -5
- package/dist/.pikku/schemas/schemas/DbResetInput.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PersonaRunInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PersonaSyncInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuPersonasInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuRolesInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuVirtualUserFunctionsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RolesPruneInput.schema.json +1 -0
- package/dist/.pikku/scopes/pikku-personas-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-personas.gen.d.ts +36 -0
- package/dist/.pikku/scopes/pikku-personas.gen.js +17 -0
- package/dist/.pikku/scopes/pikku-roles-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +30 -0
- package/dist/.pikku/scopes/pikku-roles.gen.js +18 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +4 -2
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +3 -2
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +2 -2
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +2 -2
- 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 +2 -2
- package/dist/.pikku/variables/pikku-variable-types.gen.js +2 -2
- 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/meta/allWorkflow.gen.json +46 -16
- package/dist/.pikku/workflow/pikku-personas.gen.d.ts +15 -0
- package/dist/.pikku/workflow/pikku-personas.gen.js +17 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +101 -24
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +22 -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 +0 -0
- package/dist/src/cli.wiring.js +108 -8
- package/dist/src/deploy/analyzer/analyzer.js +14 -0
- package/dist/src/deploy/analyzer/manifest.d.ts +11 -0
- package/dist/src/fabric/functions/validate.function.js +77 -177
- package/dist/src/functions/commands/all.d.ts +1 -1
- package/dist/src/functions/commands/bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/bootstrap.js +3 -0
- package/dist/src/functions/commands/db-audit.js +1 -1
- package/dist/src/functions/commands/db-baseline.js +1 -1
- package/dist/src/functions/commands/db-check.js +6 -5
- package/dist/src/functions/commands/db-codegen.js +1 -1
- package/dist/src/functions/commands/db-generate.js +1 -1
- package/dist/src/functions/commands/db-migrate.js +1 -1
- package/dist/src/functions/commands/db-reset.d.ts +15 -1
- package/dist/src/functions/commands/db-reset.js +18 -6
- package/dist/src/functions/commands/db-shared.d.ts +14 -0
- package/dist/src/functions/commands/deploy-info.d.ts +1 -1
- package/dist/src/functions/commands/dev-ai-runner.d.ts +16 -4
- package/dist/src/functions/commands/dev-ai-runner.js +63 -29
- package/dist/src/functions/commands/dev.js +10 -5
- package/dist/src/functions/commands/enable.d.ts +8 -8
- package/dist/src/functions/commands/enable.js +15 -19
- package/dist/src/functions/commands/{scenario-environment.d.ts → environment.d.ts} +9 -6
- package/dist/src/functions/commands/{scenario-environment.js → environment.js} +5 -4
- package/dist/src/functions/commands/new-addon.js +14 -14
- package/dist/src/functions/commands/persona-sync.d.ts +33 -0
- package/dist/src/functions/commands/persona-sync.js +151 -0
- package/dist/src/functions/commands/persona.d.ts +58 -0
- package/dist/src/functions/commands/persona.js +215 -0
- package/dist/src/functions/commands/roles-audit.d.ts +1 -0
- package/dist/src/functions/commands/roles-audit.js +37 -0
- package/dist/src/functions/commands/roles-prune.d.ts +16 -0
- package/dist/src/functions/commands/roles-prune.js +52 -0
- package/dist/src/functions/commands/roles-shared.d.ts +40 -0
- package/dist/src/functions/commands/roles-shared.js +77 -0
- package/dist/src/functions/commands/scenario-browser.d.ts +3 -3
- package/dist/src/functions/commands/scenario-browser.js +1 -1
- package/dist/src/functions/commands/scenario-ladder.d.ts +44 -2
- package/dist/src/functions/commands/scenario-ladder.js +52 -3
- package/dist/src/functions/commands/scenario.d.ts +7 -0
- package/dist/src/functions/commands/scenario.js +82 -18
- package/dist/src/functions/commands/scopes-shared.d.ts +12 -0
- package/dist/src/functions/commands/scopes-shared.js +2 -2
- package/dist/src/functions/commands/serve.js +8 -4
- package/dist/src/functions/commands/versions-check.js +3 -3
- package/dist/src/functions/commands/virtual-user-formatter.d.ts +30 -0
- package/dist/src/functions/commands/virtual-user-formatter.js +65 -0
- package/dist/src/functions/db/annotation-parser.d.ts +14 -0
- package/dist/src/functions/db/annotation-parser.js +50 -2
- package/dist/src/functions/db/better-auth-schema.js +2 -1
- package/dist/src/functions/db/db-codegen.d.ts +12 -0
- package/dist/src/functions/db/db-codegen.js +149 -16
- package/dist/src/functions/db/local-db.d.ts +87 -6
- package/dist/src/functions/db/local-db.js +239 -35
- package/dist/src/functions/db/sqlite/dev-seed.d.ts +12 -0
- package/dist/src/functions/db/sqlite/dev-seed.js +23 -0
- package/dist/src/functions/db/sqlite/sqlite-runtime-bun.js +1 -1
- package/dist/src/functions/validate/bootstrap-checks.d.ts +19 -0
- package/dist/src/functions/validate/bootstrap-checks.js +90 -0
- package/dist/src/functions/validate/persona-checks.d.ts +24 -0
- package/dist/src/functions/validate/persona-checks.js +136 -0
- package/dist/src/functions/validate/scenario-file-checks.d.ts +17 -0
- package/dist/src/functions/validate/scenario-file-checks.js +123 -0
- package/dist/src/functions/validate/shared-checks.d.ts +59 -0
- package/dist/src/functions/validate/shared-checks.js +311 -0
- package/dist/src/functions/validate/workspace-validate.d.ts +1 -2
- package/dist/src/functions/validate/workspace-validate.js +4 -196
- package/dist/src/functions/wirings/ai-agent/pikku-command-public-agent.js +2 -1
- package/dist/src/functions/wirings/ai-agent/serialize-public-agent.js +1 -0
- package/dist/src/functions/wirings/auth/serialize-auth-gen.d.ts +2 -2
- package/dist/src/functions/wirings/auth/serialize-auth-gen.js +24 -9
- package/dist/src/functions/wirings/auth/serialize-auth-types.d.ts +3 -1
- package/dist/src/functions/wirings/auth/serialize-auth-types.js +3 -1
- package/dist/src/functions/wirings/channels/pikku-channels.d.ts +1 -1
- package/dist/src/functions/wirings/channels/serialize-typed-channel-map.js +10 -2
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +9 -4
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.d.ts +7 -3
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +64 -28
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +63 -6
- package/dist/src/functions/wirings/cli/serialize-cli-entrypoint-guard.d.ts +12 -0
- package/dist/src/functions/wirings/cli/serialize-cli-entrypoint-guard.js +28 -0
- package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.js +4 -1
- package/dist/src/functions/wirings/console/serialize-console-functions.js +5 -8
- package/dist/src/functions/wirings/functions/serialize-addon-types.js +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +106 -32
- package/dist/src/functions/wirings/middleware/serialize-middleware-imports.js +25 -9
- package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +3 -3
- package/dist/src/functions/wirings/package/serialize-package-types.js +5 -3
- package/dist/src/functions/wirings/personas/personas-secrets-file.d.ts +8 -0
- package/dist/src/functions/wirings/personas/personas-secrets-file.js +9 -0
- package/dist/src/functions/wirings/personas/pikku-command-personas.d.ts +7 -0
- package/dist/src/functions/wirings/personas/pikku-command-personas.js +57 -0
- package/dist/src/functions/wirings/personas/serialize-personas-secrets.d.ts +16 -0
- package/dist/src/functions/wirings/personas/serialize-personas-secrets.js +34 -0
- package/dist/src/functions/wirings/personas/serialize-personas-types.d.ts +18 -0
- package/dist/src/functions/wirings/personas/serialize-personas-types.js +76 -0
- package/dist/src/functions/wirings/queue/serialize-queue-map.js +2 -1
- package/dist/src/functions/wirings/queue/serialize-queue-wrapper.js +2 -1
- package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.js +2 -1
- package/dist/src/functions/wirings/roles/pikku-command-roles.d.ts +7 -0
- package/dist/src/functions/wirings/roles/pikku-command-roles.js +33 -0
- package/dist/src/functions/wirings/roles/serialize-roles-types.d.ts +14 -0
- package/dist/src/functions/wirings/roles/serialize-roles-types.js +55 -0
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.js +2 -1
- package/dist/src/functions/wirings/scenarios/register-scenario-instrumentation.d.ts +3 -3
- package/dist/src/functions/wirings/scenarios/register-scenario-instrumentation.js +3 -3
- package/dist/src/functions/wirings/scopes/serialize-scopes-types.d.ts +1 -1
- package/dist/src/functions/wirings/scopes/serialize-scopes-types.js +1 -1
- package/dist/src/functions/wirings/user-admin/pikku-command-user-admin-functions.js +2 -1
- package/dist/src/functions/wirings/user-admin/serialize-user-admin-functions.js +2 -2
- package/dist/src/functions/wirings/virtual-user/pikku-command-virtual-user-functions.d.ts +1 -0
- package/dist/src/functions/wirings/virtual-user/pikku-command-virtual-user-functions.js +42 -0
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.d.ts +28 -0
- package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.js +439 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.js +2 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +13 -13
- package/dist/src/functions/wirings/workflow/serialize-personas.d.ts +10 -0
- package/dist/src/functions/wirings/workflow/serialize-personas.js +46 -0
- package/dist/src/functions/wirings/workflow/serialize-scenario-step-map.js +13 -4
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +170 -40
- package/dist/src/functions/workflows/all.workflow.js +55 -16
- package/dist/src/server/bun-server-runner.d.ts +2 -2
- package/dist/src/server/bun-server-runner.js +5 -1
- package/dist/src/server/content-signing-jwt.d.ts +13 -0
- package/dist/src/server/content-signing-jwt.js +51 -0
- package/dist/src/server/dev-server-runner.interface.d.ts +10 -2
- package/dist/src/server/node-server-runner.d.ts +2 -2
- package/dist/src/server/node-server-runner.js +2 -1
- package/dist/src/services/cli-logger.service.d.ts +28 -16
- package/dist/src/services/cli-logger.service.js +25 -16
- package/dist/src/services.d.ts +3 -1
- package/dist/src/services.js +10 -1
- package/dist/src/utils/file-import-path.js +9 -0
- package/dist/src/utils/pikku-cli-config.js +52 -2
- package/dist/src/utils/resolve-personas.d.ts +27 -0
- package/dist/src/utils/resolve-personas.js +35 -0
- package/dist/src/utils/resolve-scaffold-feature.d.ts +19 -0
- package/dist/src/utils/resolve-scaffold-feature.js +49 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -17
- package/dist/.pikku/schemas/schemas/BootstrapInput.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +0 -1
- package/dist/.pikku/schemas/schemas/ScenarioRunInput.schema.json +0 -1
- package/dist/.pikku/workflow/pikku-scenario-actors.gen.d.ts +0 -19
- package/dist/.pikku/workflow/pikku-scenario-actors.gen.js +0 -17
- package/dist/src/functions/commands/db-seed.d.ts +0 -1
- package/dist/src/functions/commands/db-seed.js +0 -24
- package/dist/src/functions/db/sqlite/seed.d.ts +0 -11
- package/dist/src/functions/db/sqlite/seed.js +0 -22
- package/dist/src/functions/wirings/workflow/serialize-scenario-actors.d.ts +0 -2
- package/dist/src/functions/wirings/workflow/serialize-scenario-actors.js +0 -40
- package/dist/src/utils/resolve-scenario-actors.d.ts +0 -23
- package/dist/src/utils/resolve-scenario-actors.js +0 -74
- /package/dist/.pikku/schemas/schemas/{DbSeedInput.schema.json → RolesAuditInput.schema.json} +0 -0
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"dbGenerate": "dbGenerate",
|
|
38
38
|
"dbMigrate": "dbMigrate",
|
|
39
39
|
"dbReset": "dbReset",
|
|
40
|
-
"dbSeed": "dbSeed",
|
|
41
40
|
"deployApply": "deployApply",
|
|
42
41
|
"deployInfo": "deployInfo",
|
|
43
42
|
"deployPlan": "deployPlan",
|
|
@@ -85,8 +84,13 @@
|
|
|
85
84
|
"pikkuNewMiddleware": "pikkuNewMiddleware",
|
|
86
85
|
"pikkuNewPermission": "pikkuNewPermission",
|
|
87
86
|
"pikkuNewWiring": "pikkuNewWiring",
|
|
87
|
+
"personaSync": "personaSync",
|
|
88
|
+
"personaRun": "personaRun",
|
|
89
|
+
"personaList": "personaList",
|
|
88
90
|
"pikkuBootstrap": "pikkuBootstrap",
|
|
89
91
|
"pikkuSummary": "pikkuSummary",
|
|
92
|
+
"rolesAudit": "rolesAudit",
|
|
93
|
+
"rolesPrune": "rolesPrune",
|
|
90
94
|
"scenarioList": "scenarioList",
|
|
91
95
|
"scenarioRun": "scenarioRun",
|
|
92
96
|
"scopesAudit": "scopesAudit",
|
|
@@ -141,6 +145,7 @@
|
|
|
141
145
|
"pikkuVariableDefinitionTypes": "pikkuVariableDefinitionTypes",
|
|
142
146
|
"pikkuPackage": "pikkuPackage",
|
|
143
147
|
"pikkuPermissions": "pikkuPermissions",
|
|
148
|
+
"pikkuPersonas": "pikkuPersonas",
|
|
144
149
|
"pikkuCommandQueueMap": "pikkuCommandQueueMap",
|
|
145
150
|
"pikkuQueueService": "pikkuQueueService",
|
|
146
151
|
"pikkuQueueTypes": "pikkuQueueTypes",
|
|
@@ -149,6 +154,7 @@
|
|
|
149
154
|
"pikkuQueue": "pikkuQueue",
|
|
150
155
|
"pikkuEventsScaffold": "pikkuEventsScaffold",
|
|
151
156
|
"pikkuRealtime": "pikkuRealtime",
|
|
157
|
+
"pikkuRoles": "pikkuRoles",
|
|
152
158
|
"pikkuPublicRPC": "pikkuPublicRPC",
|
|
153
159
|
"pikkuReactQuery": "pikkuReactQuery",
|
|
154
160
|
"pikkuRemoteRPC": "pikkuRemoteRPC",
|
|
@@ -165,6 +171,7 @@
|
|
|
165
171
|
"pikkuTrigger": "pikkuTrigger",
|
|
166
172
|
"pikkuUserAdminFunctions": "pikkuUserAdminFunctions",
|
|
167
173
|
"pikkuVariables": "pikkuVariables",
|
|
174
|
+
"pikkuVirtualUserFunctions": "pikkuVirtualUserFunctions",
|
|
168
175
|
"pikkuWebhook": "pikkuWebhook",
|
|
169
176
|
"pikkuWorkflowRoutes": "pikkuWorkflowRoutes",
|
|
170
177
|
"pikkuWorkflow": "pikkuWorkflow"
|
|
@@ -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.99
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as BinaryInput from './schemas/BinaryInput.schema.json' with { type: 'json' };
|
|
@@ -20,8 +20,6 @@ import * as DbMigrateInput from './schemas/DbMigrateInput.schema.json' with { ty
|
|
|
20
20
|
addSchema('DbMigrateInput', DbMigrateInput);
|
|
21
21
|
import * as DbResetInput from './schemas/DbResetInput.schema.json' with { type: 'json' };
|
|
22
22
|
addSchema('DbResetInput', DbResetInput);
|
|
23
|
-
import * as DbSeedInput from './schemas/DbSeedInput.schema.json' with { type: 'json' };
|
|
24
|
-
addSchema('DbSeedInput', DbSeedInput);
|
|
25
23
|
import * as DeployApplyInput from './schemas/DeployApplyInput.schema.json' with { type: 'json' };
|
|
26
24
|
addSchema('DeployApplyInput', DeployApplyInput);
|
|
27
25
|
import * as DeployPlanInput from './schemas/DeployPlanInput.schema.json' with { type: 'json' };
|
|
@@ -142,6 +140,10 @@ import * as KnowledgeValidateOutput from './schemas/KnowledgeValidateOutput.sche
|
|
|
142
140
|
addSchema('KnowledgeValidateOutput', KnowledgeValidateOutput);
|
|
143
141
|
import * as LogoutInput from './schemas/LogoutInput.schema.json' with { type: 'json' };
|
|
144
142
|
addSchema('LogoutInput', LogoutInput);
|
|
143
|
+
import * as PersonaRunInput from './schemas/PersonaRunInput.schema.json' with { type: 'json' };
|
|
144
|
+
addSchema('PersonaRunInput', PersonaRunInput);
|
|
145
|
+
import * as PersonaSyncInput from './schemas/PersonaSyncInput.schema.json' with { type: 'json' };
|
|
146
|
+
addSchema('PersonaSyncInput', PersonaSyncInput);
|
|
145
147
|
import * as PikkuAIAgentOutput from './schemas/PikkuAIAgentOutput.schema.json' with { type: 'json' };
|
|
146
148
|
addSchema('PikkuAIAgentOutput', PikkuAIAgentOutput);
|
|
147
149
|
import * as PikkuAuthInput from './schemas/PikkuAuthInput.schema.json' with { type: 'json' };
|
|
@@ -234,6 +236,8 @@ import * as PikkuPackageOutput from './schemas/PikkuPackageOutput.schema.json' w
|
|
|
234
236
|
addSchema('PikkuPackageOutput', PikkuPackageOutput);
|
|
235
237
|
import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema.json' with { type: 'json' };
|
|
236
238
|
addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput);
|
|
239
|
+
import * as PikkuPersonasInput from './schemas/PikkuPersonasInput.schema.json' with { type: 'json' };
|
|
240
|
+
addSchema('PikkuPersonasInput', PikkuPersonasInput);
|
|
237
241
|
import * as PikkuPublicAgentOutput from './schemas/PikkuPublicAgentOutput.schema.json' with { type: 'json' };
|
|
238
242
|
addSchema('PikkuPublicAgentOutput', PikkuPublicAgentOutput);
|
|
239
243
|
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
|
|
@@ -244,6 +248,8 @@ import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { ty
|
|
|
244
248
|
addSchema('PikkuRPCOutput', PikkuRPCOutput);
|
|
245
249
|
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
|
|
246
250
|
addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
|
|
251
|
+
import * as PikkuRolesInput from './schemas/PikkuRolesInput.schema.json' with { type: 'json' };
|
|
252
|
+
addSchema('PikkuRolesInput', PikkuRolesInput);
|
|
247
253
|
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
248
254
|
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
249
255
|
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
@@ -262,16 +268,20 @@ import * as PikkuUserAdminFunctionsOutput from './schemas/PikkuUserAdminFunction
|
|
|
262
268
|
addSchema('PikkuUserAdminFunctionsOutput', PikkuUserAdminFunctionsOutput);
|
|
263
269
|
import * as PikkuVersionsInitInput from './schemas/PikkuVersionsInitInput.schema.json' with { type: 'json' };
|
|
264
270
|
addSchema('PikkuVersionsInitInput', PikkuVersionsInitInput);
|
|
271
|
+
import * as PikkuVirtualUserFunctionsOutput from './schemas/PikkuVirtualUserFunctionsOutput.schema.json' with { type: 'json' };
|
|
272
|
+
addSchema('PikkuVirtualUserFunctionsOutput', PikkuVirtualUserFunctionsOutput);
|
|
265
273
|
import * as PikkuWebhookOutput from './schemas/PikkuWebhookOutput.schema.json' with { type: 'json' };
|
|
266
274
|
addSchema('PikkuWebhookOutput', PikkuWebhookOutput);
|
|
267
275
|
import * as PikkuWorkflowOutput from './schemas/PikkuWorkflowOutput.schema.json' with { type: 'json' };
|
|
268
276
|
addSchema('PikkuWorkflowOutput', PikkuWorkflowOutput);
|
|
269
277
|
import * as PikkuWorkflowRoutesOutput from './schemas/PikkuWorkflowRoutesOutput.schema.json' with { type: 'json' };
|
|
270
278
|
addSchema('PikkuWorkflowRoutesOutput', PikkuWorkflowRoutesOutput);
|
|
279
|
+
import * as RolesAuditInput from './schemas/RolesAuditInput.schema.json' with { type: 'json' };
|
|
280
|
+
addSchema('RolesAuditInput', RolesAuditInput);
|
|
281
|
+
import * as RolesPruneInput from './schemas/RolesPruneInput.schema.json' with { type: 'json' };
|
|
282
|
+
addSchema('RolesPruneInput', RolesPruneInput);
|
|
271
283
|
import * as ScenarioListInput from './schemas/ScenarioListInput.schema.json' with { type: 'json' };
|
|
272
284
|
addSchema('ScenarioListInput', ScenarioListInput);
|
|
273
|
-
import * as ScenarioRunInput from './schemas/ScenarioRunInput.schema.json' with { type: 'json' };
|
|
274
|
-
addSchema('ScenarioRunInput', ScenarioRunInput);
|
|
275
285
|
import * as ScopesAuditInput from './schemas/ScopesAuditInput.schema.json' with { type: 'json' };
|
|
276
286
|
addSchema('ScopesAuditInput', ScopesAuditInput);
|
|
277
287
|
import * as ScopesPruneInput from './schemas/ScopesPruneInput.schema.json' with { type: 'json' };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "definitions": {} }
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "noSeed": { "type": "boolean" } }, "additionalProperties": false, "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "environment": { "type": "string" }, "persona": { "type": "string" }, "disposition": { "type": "string" }, "goals": { "type": "string" }, "steps": { "type": "string" }, "mutations": { "type": "string" }, "duration": { "type": "string" }, "seed": { "type": "string" }, "model": { "type": "string" }, "apiUrl": { "type": "string" }, "allowApproval": { "type": "boolean" }, "skipRoleCheck": { "type": "boolean" }, "out": { "type": "string" } }, "required": ["environment", "persona"], "additionalProperties": false, "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "environment": { "type": "string" }, "apiUrl": { "type": "string" }, "dryRun": { "type": "boolean" } }, "required": ["environment"], "additionalProperties": false, "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "bootstrap": { "type": "boolean" } }, "additionalProperties": false, "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "bootstrap": { "type": "boolean" } }, "additionalProperties": false, "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "boolean", "enum": [false, true], "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "yes": { "type": "boolean" } }, "additionalProperties": false, "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CorePersona, PersonaMeta, PersonasMeta } from '@pikku/core/persona';
|
|
2
|
+
import type { SystemRoleName } from './pikku-roles.gen.js';
|
|
3
|
+
/** Every declared persona. */
|
|
4
|
+
export type PersonaId = never;
|
|
5
|
+
/**
|
|
6
|
+
* The personas a virtual user can actually be.
|
|
7
|
+
*
|
|
8
|
+
* Excludes anyone whose only login is a provider account — driving a consent
|
|
9
|
+
* screen needs a human — and anyone declared `runnable: false`, who exists to
|
|
10
|
+
* be acted upon rather than to act.
|
|
11
|
+
*/
|
|
12
|
+
export type RunnablePersonaId = never;
|
|
13
|
+
/** Every environment configured in pikku.config.json. */
|
|
14
|
+
export type EnvironmentName = never;
|
|
15
|
+
/**
|
|
16
|
+
* A persona whose roles are checked against `defineSystemRole` and whose
|
|
17
|
+
* environments are checked against the config.
|
|
18
|
+
*
|
|
19
|
+
* Omitting `environments` means every environment except the ones flagged
|
|
20
|
+
* `production: true`. Naming a production one additionally requires
|
|
21
|
+
* `disposition: 'accountable'`, which the type cannot express and `pikku`
|
|
22
|
+
* refuses at build time.
|
|
23
|
+
*/
|
|
24
|
+
export type TypedPersona = Omit<CorePersona, 'roles' | 'environments'> & {
|
|
25
|
+
roles?: SystemRoleName[];
|
|
26
|
+
environments?: EnvironmentName[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Declare the people who use this application.
|
|
30
|
+
*
|
|
31
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
32
|
+
*/
|
|
33
|
+
export declare const definePersonas: (personas: Record<string, TypedPersona>) => void;
|
|
34
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
35
|
+
export declare const PERSONAS: PersonasMeta;
|
|
36
|
+
export declare const PERSONA_LIST: PersonaMeta[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.99
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import { definePersonas as definePersonasCore } from '@pikku/core/persona';
|
|
8
|
+
import definitions from './pikku-personas-meta.gen.json' with { type: 'json' };
|
|
9
|
+
/**
|
|
10
|
+
* Declare the people who use this application.
|
|
11
|
+
*
|
|
12
|
+
* A persona while running is a virtual user; there is no second declaration.
|
|
13
|
+
*/
|
|
14
|
+
export const definePersonas = (personas) => definePersonasCore(personas);
|
|
15
|
+
/** Declared personas, keyed by id. Read by the console and `pikku persona`. */
|
|
16
|
+
export const PERSONAS = definitions;
|
|
17
|
+
export const PERSONA_LIST = Object.values(PERSONAS);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.99
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This file was generated by the @pikku/cli
|
|
6
|
+
*/
|
|
7
|
+
import type { SystemRole } from '@pikku/core/role';
|
|
8
|
+
/**
|
|
9
|
+
* Every role that ships with this application.
|
|
10
|
+
*
|
|
11
|
+
* Roles an admin composes in the console are not here and cannot be: they do
|
|
12
|
+
* not exist at build time, and can be deleted after it.
|
|
13
|
+
*/
|
|
14
|
+
export type SystemRoleName = never;
|
|
15
|
+
/**
|
|
16
|
+
* The declared role set, for a ScopeService to sync into its store.
|
|
17
|
+
*
|
|
18
|
+
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
19
|
+
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
20
|
+
* its compiled output, and a host reads that .json to merge the addon's roles
|
|
21
|
+
* into its own union.
|
|
22
|
+
*
|
|
23
|
+
* Additive on removal: a deleted declaration leaves an inert row rather than
|
|
24
|
+
* revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SYSTEM_ROLES: SystemRole[];
|
|
27
|
+
/** Declared roles, keyed by name. Rendered by the console when granting. */
|
|
28
|
+
export declare const SYSTEM_ROLES_META: Record<string, SystemRole>;
|
|
29
|
+
/** Whether a role name is declared in code, and therefore not editable. */
|
|
30
|
+
export declare const isSystemRole: (name: string) => boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { flattenSystemRoleDefinitions } from '@pikku/core/role';
|
|
2
|
+
import definitions from './pikku-roles-meta.gen.json' with { type: 'json' };
|
|
3
|
+
/**
|
|
4
|
+
* The declared role set, for a ScopeService to sync into its store.
|
|
5
|
+
*
|
|
6
|
+
* Derived from the metadata sidecar rather than inlined, so the import above
|
|
7
|
+
* forces tsc to emit the .json alongside this file — an addon publishes only
|
|
8
|
+
* its compiled output, and a host reads that .json to merge the addon's roles
|
|
9
|
+
* into its own union.
|
|
10
|
+
*
|
|
11
|
+
* Additive on removal: a deleted declaration leaves an inert row rather than
|
|
12
|
+
* revoking everyone's grant on deploy. Use `pikku roles prune` to remove them.
|
|
13
|
+
*/
|
|
14
|
+
export const SYSTEM_ROLES = flattenSystemRoleDefinitions(Object.values(definitions));
|
|
15
|
+
/** Declared roles, keyed by name. Rendered by the console when granting. */
|
|
16
|
+
export const SYSTEM_ROLES_META = Object.fromEntries(SYSTEM_ROLES.map((role) => [role.name, role]));
|
|
17
|
+
/** Whether a role name is declared in code, and therefore not editable. */
|
|
18
|
+
export const isSystemRole = (name) => Object.prototype.hasOwnProperty.call(SYSTEM_ROLES_META, name);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.99
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineScope } from '@pikku/core/scope';
|
|
5
5
|
export type { CoreScopes, CoreScopeNode, FlatScope, ScopeDefinitionMeta, ScopeDefinitionsMeta } from '@pikku/core/scope';
|
|
6
|
+
export { defineSystemRole } from '@pikku/core/role';
|
|
7
|
+
export type { CoreSystemRole, CoreSystemRoles, SystemRole, SystemRoleDefinitionMeta, SystemRoleDefinitionsMeta } from '@pikku/core/role';
|
|
@@ -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.99
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineSecret } from '@pikku/core/secret';
|
|
5
5
|
export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/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.99
|
|
3
3
|
*/
|
|
4
4
|
import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
|
|
5
5
|
import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' };
|
|
@@ -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.99
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { defineVariable } from '@pikku/core/variable';
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
|
|
@@ -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.99
|
|
3
3
|
*/
|
|
4
4
|
import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
|
|
5
5
|
import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' };
|
|
@@ -17,9 +17,21 @@
|
|
|
17
17
|
"Bootstrap scopes": {
|
|
18
18
|
"nodeId": "Bootstrap scopes",
|
|
19
19
|
"rpcName": "pikkuScopes",
|
|
20
|
-
"next": "Bootstrap
|
|
20
|
+
"next": "Bootstrap roles",
|
|
21
21
|
"stepHash": "41fa180b51ca"
|
|
22
22
|
},
|
|
23
|
+
"Bootstrap roles": {
|
|
24
|
+
"nodeId": "Bootstrap roles",
|
|
25
|
+
"rpcName": "pikkuRoles",
|
|
26
|
+
"next": "Bootstrap personas",
|
|
27
|
+
"stepHash": "90dda4d88b2d"
|
|
28
|
+
},
|
|
29
|
+
"Bootstrap personas": {
|
|
30
|
+
"nodeId": "Bootstrap personas",
|
|
31
|
+
"rpcName": "pikkuPersonas",
|
|
32
|
+
"next": "Bootstrap function types split",
|
|
33
|
+
"stepHash": "f04e62ca075c"
|
|
34
|
+
},
|
|
23
35
|
"Bootstrap function types split": {
|
|
24
36
|
"nodeId": "Bootstrap function types split",
|
|
25
37
|
"rpcName": "pikkuFunctionTypesSplit",
|
|
@@ -249,9 +261,15 @@
|
|
|
249
261
|
"User admin functions": {
|
|
250
262
|
"nodeId": "User admin functions",
|
|
251
263
|
"rpcName": "pikkuUserAdminFunctions",
|
|
252
|
-
"next": "
|
|
264
|
+
"next": "Virtual user functions",
|
|
253
265
|
"stepHash": "831f37173651"
|
|
254
266
|
},
|
|
267
|
+
"Virtual user functions": {
|
|
268
|
+
"nodeId": "Virtual user functions",
|
|
269
|
+
"rpcName": "pikkuVirtualUserFunctions",
|
|
270
|
+
"next": "Events scaffold",
|
|
271
|
+
"stepHash": "4f96c6158127"
|
|
272
|
+
},
|
|
255
273
|
"Events scaffold": {
|
|
256
274
|
"nodeId": "Events scaffold",
|
|
257
275
|
"rpcName": "pikkuEventsScaffold",
|
|
@@ -297,9 +315,21 @@
|
|
|
297
315
|
"Scopes": {
|
|
298
316
|
"nodeId": "Scopes",
|
|
299
317
|
"rpcName": "pikkuScopes",
|
|
300
|
-
"next": "
|
|
318
|
+
"next": "Roles",
|
|
301
319
|
"stepHash": "1ca929a3b6de"
|
|
302
320
|
},
|
|
321
|
+
"Roles": {
|
|
322
|
+
"nodeId": "Roles",
|
|
323
|
+
"rpcName": "pikkuRoles",
|
|
324
|
+
"next": "Personas",
|
|
325
|
+
"stepHash": "fa13d3597a32"
|
|
326
|
+
},
|
|
327
|
+
"Personas": {
|
|
328
|
+
"nodeId": "Personas",
|
|
329
|
+
"rpcName": "pikkuPersonas",
|
|
330
|
+
"next": "Variable definition types",
|
|
331
|
+
"stepHash": "c17594d64ea5"
|
|
332
|
+
},
|
|
303
333
|
"Variable definition types": {
|
|
304
334
|
"nodeId": "Variable definition types",
|
|
305
335
|
"rpcName": "pikkuVariableDefinitionTypes",
|
|
@@ -321,25 +351,25 @@
|
|
|
321
351
|
"Re-inspect after agents": {
|
|
322
352
|
"nodeId": "Re-inspect after agents",
|
|
323
353
|
"flow": "inline",
|
|
324
|
-
"next": "Secrets (post-
|
|
354
|
+
"next": "Secrets (post-scaffold)"
|
|
325
355
|
},
|
|
326
|
-
"Secrets (post-
|
|
327
|
-
"nodeId": "Secrets (post-
|
|
356
|
+
"Secrets (post-scaffold)": {
|
|
357
|
+
"nodeId": "Secrets (post-scaffold)",
|
|
328
358
|
"rpcName": "pikkuSecrets",
|
|
329
|
-
"next": "Credentials (post-
|
|
330
|
-
"stepHash": "
|
|
359
|
+
"next": "Credentials (post-scaffold)",
|
|
360
|
+
"stepHash": "39dc613ab885"
|
|
331
361
|
},
|
|
332
|
-
"Credentials (post-
|
|
333
|
-
"nodeId": "Credentials (post-
|
|
362
|
+
"Credentials (post-scaffold)": {
|
|
363
|
+
"nodeId": "Credentials (post-scaffold)",
|
|
334
364
|
"rpcName": "pikkuCredentials",
|
|
335
|
-
"next": "Variables (post-
|
|
336
|
-
"stepHash": "
|
|
365
|
+
"next": "Variables (post-scaffold)",
|
|
366
|
+
"stepHash": "c9c202f0bf70"
|
|
337
367
|
},
|
|
338
|
-
"Variables (post-
|
|
339
|
-
"nodeId": "Variables (post-
|
|
368
|
+
"Variables (post-scaffold)": {
|
|
369
|
+
"nodeId": "Variables (post-scaffold)",
|
|
340
370
|
"rpcName": "pikkuVariables",
|
|
341
371
|
"next": "Schemas",
|
|
342
|
-
"stepHash": "
|
|
372
|
+
"stepHash": "047ea7a92357"
|
|
343
373
|
},
|
|
344
374
|
"Schemas": {
|
|
345
375
|
"nodeId": "Schemas",
|
|
@@ -604,5 +634,5 @@
|
|
|
604
634
|
"entryNodeIds": [
|
|
605
635
|
"Bootstrap inspect"
|
|
606
636
|
],
|
|
607
|
-
"graphHash": "
|
|
637
|
+
"graphHash": "c8f162576369"
|
|
608
638
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HttpPersonasConfig, ScenarioPersona, ResolvedPersona } from '@pikku/core/services';
|
|
2
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js';
|
|
3
|
+
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js';
|
|
4
|
+
export declare const personaConfigs: {};
|
|
5
|
+
export type PersonaName = keyof typeof personaConfigs;
|
|
6
|
+
/**
|
|
7
|
+
* The same personas as a list, widened to `ResolvedPersona`. Iterating
|
|
8
|
+
* `personaConfigs` directly yields the literal type of each entry, on which an
|
|
9
|
+
* optional field a persona did not declare does not exist — so a seed reading
|
|
10
|
+
* `roles` off every persona needs this instead.
|
|
11
|
+
*/
|
|
12
|
+
export declare const personaList: ResolvedPersona[];
|
|
13
|
+
export type AgentName = keyof AgentMap & string;
|
|
14
|
+
export type TypedPersonas = Record<PersonaName, ScenarioPersona<AgentName, FlattenedRPCMap>>;
|
|
15
|
+
export declare const createPersonas: (options: Omit<HttpPersonasConfig, "personas">) => TypedPersonas;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.99
|
|
3
|
+
*/
|
|
4
|
+
/** Personas declared with definePersonas() */
|
|
5
|
+
import { createHttpPersonas } from '@pikku/core/persona';
|
|
6
|
+
export const personaConfigs = {};
|
|
7
|
+
/**
|
|
8
|
+
* The same personas as a list, widened to `ResolvedPersona`. Iterating
|
|
9
|
+
* `personaConfigs` directly yields the literal type of each entry, on which an
|
|
10
|
+
* optional field a persona did not declare does not exist — so a seed reading
|
|
11
|
+
* `roles` off every persona needs this instead.
|
|
12
|
+
*/
|
|
13
|
+
export const personaList = Object.values(personaConfigs);
|
|
14
|
+
export const createPersonas = (options) => createHttpPersonas({
|
|
15
|
+
...options,
|
|
16
|
+
personas: personaConfigs,
|
|
17
|
+
});
|