@pikku/cli 0.12.93 → 0.12.96
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/{index-CmAplHjZ.js → index-CeQodYfg.js} +149 -149
- package/console-app/assets/{index-BYj7ZbUU.css → index-CyYHTGWZ.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.d.ts +13 -15
- package/dist/.pikku/cli/pikku-cli-channel.js +62 -3
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +14 -4
- package/dist/.pikku/cli/pikku-cli-client.gen.js +20 -10
- 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 +129 -2
- 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 +55 -20
- 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 +138 -13
- package/dist/.pikku/function/pikku-functions.gen.js +11 -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 +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 +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/rpc/pikku-rpc-wirings-meta.internal.gen.json +7 -0
- 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 +13 -3
- 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/PikkuCLIConfig.schema.json +1 -1
- 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/RolesAuditInput.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 +27 -3
- 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 +96 -19
- 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 +101 -2
- 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 +4 -4
- package/dist/src/functions/commands/bootstrap.js +3 -0
- 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 +9 -4
- 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 +12 -12
- 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 +217 -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 +51 -2
- package/dist/src/functions/commands/scenario.d.ts +7 -0
- package/dist/src/functions/commands/scenario.js +79 -17
- package/dist/src/functions/commands/scopes-shared.d.ts +8 -0
- package/dist/src/functions/commands/scopes-shared.js +1 -1
- package/dist/src/functions/commands/serve.js +7 -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/local-db.js +38 -1
- package/dist/src/functions/validate/workspace-validate.js +1 -1
- 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 +8 -8
- 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 +32 -18
- package/dist/src/functions/wirings/cli/serialize-channel-cli.js +63 -6
- package/dist/src/functions/wirings/console/serialize-console-functions.js +4 -7
- package/dist/src/functions/wirings/functions/serialize-function-types.js +88 -28
- package/dist/src/functions/wirings/middleware/serialize-middleware-imports.js +25 -9
- package/dist/src/functions/wirings/package/serialize-package-types.js +5 -3
- package/dist/src/functions/wirings/personas/pikku-command-personas.d.ts +7 -0
- package/dist/src/functions/wirings/personas/pikku-command-personas.js +43 -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/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/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 +11 -2
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +165 -29
- package/dist/src/functions/workflows/all.workflow.js +7 -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.d.ts +3 -1
- package/dist/src/services.js +2 -1
- package/dist/src/utils/pikku-cli-config.js +45 -2
- package/dist/src/utils/resolve-personas.d.ts +32 -0
- package/dist/src/utils/resolve-personas.js +46 -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 +17 -14
- 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/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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
6
6
|
*/
|
|
7
|
-
import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, PikkuWire, PickRequired } from '@pikku/core';
|
|
7
|
+
import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, PikkuWire, PickRequired, SecretlessServices, SecretService } from '@pikku/core';
|
|
8
8
|
import type { CorePikkuFunctionConfig, CorePikkuAuth, CorePikkuAuthConfig, CorePikkuPermission } from '@pikku/core/function';
|
|
9
9
|
import { CreateWireServices } from '@pikku/core/internal';
|
|
10
10
|
import type { NodeType } from '@pikku/core/node';
|
|
@@ -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,
|
|
20
|
+
import type { TypedWorkflow, TypedScenario, TypedPersonas } 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;
|
|
@@ -30,7 +30,20 @@ export type Session = UserSession;
|
|
|
30
30
|
* why an `if (!service)` guard inside a function body is always dead code.
|
|
31
31
|
*/
|
|
32
32
|
export type WiredSingletonServices = RequiredSingletonServices & SingletonServices;
|
|
33
|
-
export type WiredServices = RequiredSingletonServices & Services
|
|
33
|
+
export type WiredServices = SecretlessServices<RequiredSingletonServices & Services>;
|
|
34
|
+
/** `WiredSingletonServices` without `secrets`, for auth gates. */
|
|
35
|
+
export type WiredAuthServices = SecretlessServices<WiredSingletonServices>;
|
|
36
|
+
/**
|
|
37
|
+
* `WiredServices` with `secrets` restored, for the console's secret-admin
|
|
38
|
+
* functions. Reached by declaring `secretBroker: true` on a `pikkuFunc` config.
|
|
39
|
+
*
|
|
40
|
+
* Declaring it does not grant the service. The runner hands out the real
|
|
41
|
+
* `SecretService` only to the functions the inspector marks as secret brokers;
|
|
42
|
+
* every other function still receives the throwing accessor.
|
|
43
|
+
*/
|
|
44
|
+
export type WiredSecretBrokerServices = WiredServices & {
|
|
45
|
+
secrets: SecretService;
|
|
46
|
+
};
|
|
34
47
|
/**
|
|
35
48
|
* Inline node configuration for function definitions.
|
|
36
49
|
*/
|
|
@@ -47,7 +60,7 @@ export type NodeConfig = {
|
|
|
47
60
|
* @template In - The input type that the permission check will receive
|
|
48
61
|
* @template RequiredServices - The services required for this permission check
|
|
49
62
|
*/
|
|
50
|
-
export type PikkuPermission<In = unknown, RequiredServices extends Services = WiredServices> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>;
|
|
63
|
+
export type PikkuPermission<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuPermission<In, RequiredServices, PikkuWire<In, never, false, Session>>;
|
|
51
64
|
/**
|
|
52
65
|
* Type-safe middleware definition that can access your application's services and session.
|
|
53
66
|
* Use this to define reusable middleware that can be applied to multiple wirings.
|
|
@@ -58,7 +71,7 @@ export type PikkuMiddleware<RequiredServices extends SingletonServices = WiredSi
|
|
|
58
71
|
/**
|
|
59
72
|
* Configuration object for creating a permission with metadata
|
|
60
73
|
*/
|
|
61
|
-
export type PikkuPermissionConfig<In = unknown, RequiredServices extends Services = WiredServices> = {
|
|
74
|
+
export type PikkuPermissionConfig<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = {
|
|
62
75
|
/** The permission function */
|
|
63
76
|
func: PikkuPermission<In, RequiredServices>;
|
|
64
77
|
/** Optional human-readable name for the permission */
|
|
@@ -97,11 +110,11 @@ export declare const pikkuPermission: <In>(permission: PikkuPermission<In> | Pik
|
|
|
97
110
|
*
|
|
98
111
|
* @template RequiredServices - The services required for this auth check
|
|
99
112
|
*/
|
|
100
|
-
export type PikkuAuth<RequiredServices extends SingletonServices =
|
|
113
|
+
export type PikkuAuth<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuth<RequiredServices, Session>;
|
|
101
114
|
/**
|
|
102
115
|
* Configuration object for creating an auth permission with metadata
|
|
103
116
|
*/
|
|
104
|
-
export type PikkuAuthConfig<RequiredServices extends SingletonServices =
|
|
117
|
+
export type PikkuAuthConfig<RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices> = CorePikkuAuthConfig<RequiredServices, Session>;
|
|
105
118
|
/**
|
|
106
119
|
* Factory function for creating auth-only permissions with tree-shaking support.
|
|
107
120
|
* Auth permissions only receive services and session (no request data),
|
|
@@ -122,7 +135,7 @@ export type PikkuAuthConfig<RequiredServices extends SingletonServices = WiredSi
|
|
|
122
135
|
* })
|
|
123
136
|
* \`\`\`
|
|
124
137
|
*/
|
|
125
|
-
export declare const pikkuAuth: <RequiredServices extends SingletonServices =
|
|
138
|
+
export declare const pikkuAuth: <RequiredServices extends SecretlessServices<SingletonServices> = WiredAuthServices>(auth: PikkuAuth<RequiredServices> | PikkuAuthConfig<RequiredServices>) => PikkuPermission<any, any>;
|
|
126
139
|
/**
|
|
127
140
|
* Configuration object for creating middleware with metadata
|
|
128
141
|
*/
|
|
@@ -203,7 +216,7 @@ export declare const pikkuPermissionFactory: <In = any>(factory: (input: In) =>
|
|
|
203
216
|
* @template In - The input type (same as the function it describes)
|
|
204
217
|
* @template RequiredServices - The services required for this description function
|
|
205
218
|
*/
|
|
206
|
-
export type PikkuApprovalDescription<In = unknown, RequiredServices extends Services = WiredServices> = (services: RequiredServices, data: In) => Promise<string>;
|
|
219
|
+
export type PikkuApprovalDescription<In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices> = (services: RequiredServices, data: In) => Promise<string>;
|
|
207
220
|
/**
|
|
208
221
|
* Factory function for creating approval description functions with tree-shaking support.
|
|
209
222
|
*
|
|
@@ -217,7 +230,7 @@ export type PikkuApprovalDescription<In = unknown, RequiredServices extends Serv
|
|
|
217
230
|
* )
|
|
218
231
|
* ```
|
|
219
232
|
*/
|
|
220
|
-
export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends Services = WiredServices>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
|
|
233
|
+
export declare const pikkuApprovalDescription: <In = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(fn: PikkuApprovalDescription<In, RequiredServices>) => PikkuApprovalDescription<In, RequiredServices>;
|
|
221
234
|
/**
|
|
222
235
|
* A sessionless API function that doesn't require user authentication.
|
|
223
236
|
* Use this for public endpoints, health checks, or operations that don't need user context.
|
|
@@ -226,7 +239,7 @@ export declare const pikkuApprovalDescription: <In = unknown, RequiredServices e
|
|
|
226
239
|
* @template Out - The output type that the function returns
|
|
227
240
|
* @template RequiredServices - Services required by this function
|
|
228
241
|
*/
|
|
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,
|
|
242
|
+
export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunctionSessionless<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, false, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas>, RequiredWires>>;
|
|
230
243
|
/**
|
|
231
244
|
* A session-aware API function that requires user authentication.
|
|
232
245
|
* Use this for protected endpoints that need access to user session data.
|
|
@@ -235,7 +248,7 @@ export type PikkuFunctionSessionless<In = unknown, Out = never, RequiredWires ex
|
|
|
235
248
|
* @template Out - The output type that the function returns
|
|
236
249
|
* @template RequiredServices - Services required by this function
|
|
237
250
|
*/
|
|
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,
|
|
251
|
+
export type PikkuFunction<In = unknown, Out = never, RequiredWires extends keyof PikkuWire = 'session', RequiredServices extends SecretlessServices<Services> = WiredServices> = CorePikkuFunction<In, Out, RequiredServices, Session, PickRequired<PikkuWire<In, Out, true, Session, TypedPikkuRPC, null, any, TypedWorkflow, unknown, TypedScenario, TypedPersonas>, RequiredWires>>;
|
|
239
252
|
/**
|
|
240
253
|
* Helper type to infer the output type from a Standard Schema
|
|
241
254
|
*/
|
|
@@ -248,7 +261,7 @@ export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output>
|
|
|
248
261
|
* @template Out - The output type
|
|
249
262
|
* @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
|
|
250
263
|
*/
|
|
251
|
-
export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>;
|
|
264
|
+
export type PikkuFunctionConfig<In = unknown, Out = unknown, RequiredWires extends keyof PikkuWire = never, PikkuFunc extends PikkuFunction<In, Out, RequiredWires, any> | PikkuFunctionSessionless<In, Out, RequiredWires, any> = PikkuFunction<In, Out, RequiredWires> | PikkuFunctionSessionless<In, Out, RequiredWires>, InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = CorePikkuFunctionConfig<PikkuFunc, PikkuPermission<In>, PikkuMiddleware, InputSchema, OutputSchema, ScopeId>;
|
|
252
265
|
/**
|
|
253
266
|
* Configuration object for Pikku functions with Zod schema validation.
|
|
254
267
|
* Use this when you want to define input/output schemas using Zod.
|
|
@@ -259,8 +272,8 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferS
|
|
|
259
272
|
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
260
273
|
* so adding a field on the core type automatically propagates here.
|
|
261
274
|
*/
|
|
262
|
-
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
|
|
263
|
-
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires>;
|
|
275
|
+
export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>, CorePikkuPermission<any>, PikkuMiddleware, undefined, undefined, ScopeId>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
|
|
276
|
+
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
264
277
|
input?: InputSchema;
|
|
265
278
|
output?: OutputSchema;
|
|
266
279
|
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
@@ -292,6 +305,9 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 |
|
|
|
292
305
|
* })
|
|
293
306
|
* ```
|
|
294
307
|
*/
|
|
308
|
+
export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', WiredSecretBrokerServices> & {
|
|
309
|
+
secretBroker: true;
|
|
310
|
+
}): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
295
311
|
export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
296
312
|
export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
297
313
|
export type PikkuListFunction<F extends Record<string, unknown> = {}, Row = unknown, S extends string = never> = PikkuFunction<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'> | PikkuFunctionSessionless<ListInput<F, S>, ListOutput<Row>, 'session' | 'rpc'>;
|
|
@@ -303,8 +319,8 @@ export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row
|
|
|
303
319
|
* Schema-overload variant for pikkuSessionlessFunc. Derived from
|
|
304
320
|
* CorePikkuFunctionConfig to stay in sync with the generic-typed config.
|
|
305
321
|
*/
|
|
306
|
-
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never> = Omit<CorePikkuFunctionConfig<PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires>>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
|
|
307
|
-
func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires>;
|
|
322
|
+
export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredWires extends keyof PikkuWire = never, RequiredServices extends SecretlessServices<Services> = WiredServices> = Omit<CorePikkuFunctionConfig<PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>>, 'func' | 'input' | 'output' | 'permissions' | 'approvalDescription'> & {
|
|
323
|
+
func: PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires, RequiredServices>;
|
|
308
324
|
input?: InputSchema;
|
|
309
325
|
output?: OutputSchema;
|
|
310
326
|
permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
|
|
@@ -334,8 +350,8 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
|
|
|
334
350
|
* })
|
|
335
351
|
* ```
|
|
336
352
|
*/
|
|
337
|
-
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
338
|
-
export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'
|
|
353
|
+
export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredServices extends SecretlessServices<Services> = WiredServices>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', RequiredServices>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
|
|
354
|
+
export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
|
|
339
355
|
/**
|
|
340
356
|
* Creates a function that takes no input and returns no output.
|
|
341
357
|
* Useful for health checks, triggers, or cleanup operations.
|
|
@@ -371,6 +387,25 @@ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void,
|
|
|
371
387
|
* ```
|
|
372
388
|
*/
|
|
373
389
|
export declare const ref: <Name extends keyof FlattenedRPCMap>(rpcName: Name) => PikkuFunctionConfig<FlattenedRPCMap[Name]["input"], FlattenedRPCMap[Name]["output"], "session" | "rpc">;
|
|
390
|
+
/**
|
|
391
|
+
* Declares a capability the connected client answers, reachable from any
|
|
392
|
+
* `wireChannel` function as `channel.remote(name, input)`.
|
|
393
|
+
*
|
|
394
|
+
* There is no `func`: this side owns the contract, the client owns the body.
|
|
395
|
+
* The `description` is what a person is shown when asked to approve the call,
|
|
396
|
+
* so write it for them rather than for the caller.
|
|
397
|
+
*
|
|
398
|
+
* @example
|
|
399
|
+
* ```typescript
|
|
400
|
+
* export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
|
|
401
|
+
*
|
|
402
|
+
* export const localCheckout = pikkuRemoteChannelFunc({
|
|
403
|
+
* description: 'Read the current commit and branch of your working tree',
|
|
404
|
+
* output: localCheckoutOutput,
|
|
405
|
+
* })
|
|
406
|
+
* ```
|
|
407
|
+
*/
|
|
408
|
+
export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: Omit<PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>, 'func'>): PikkuFunctionConfig<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, 'session' | 'rpc'>;
|
|
374
409
|
/**
|
|
375
410
|
* Creates a Pikku config factory.
|
|
376
411
|
* Use this to define your application's configuration factory.
|
|
@@ -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.96
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
@@ -192,6 +192,32 @@ export const ref = (rpcName) => {
|
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
|
+
/**
|
|
196
|
+
* Declares a capability the connected client answers, reachable from any
|
|
197
|
+
* `wireChannel` function as `channel.remote(name, input)`.
|
|
198
|
+
*
|
|
199
|
+
* There is no `func`: this side owns the contract, the client owns the body.
|
|
200
|
+
* The `description` is what a person is shown when asked to approve the call,
|
|
201
|
+
* so write it for them rather than for the caller.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```typescript
|
|
205
|
+
* export const localCheckoutOutput = z.object({ sha: z.string(), branch: z.string() })
|
|
206
|
+
*
|
|
207
|
+
* export const localCheckout = pikkuRemoteChannelFunc({
|
|
208
|
+
* description: 'Read the current commit and branch of your working tree',
|
|
209
|
+
* output: localCheckoutOutput,
|
|
210
|
+
* })
|
|
211
|
+
* ```
|
|
212
|
+
*/
|
|
213
|
+
export function pikkuRemoteChannelFunc(config) {
|
|
214
|
+
return {
|
|
215
|
+
...config,
|
|
216
|
+
func: async (_services, _data, _wire) => {
|
|
217
|
+
throw new Error(`${config.title ?? 'This'} is a remote channel capability and has no local implementation — reach it with channel.remote() on the channel whose client exposes it.`);
|
|
218
|
+
},
|
|
219
|
+
};
|
|
220
|
+
}
|
|
195
221
|
/**
|
|
196
222
|
* Creates a Pikku config factory.
|
|
197
223
|
* Use this to define your application's configuration factory.
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
"inputs": [],
|
|
552
552
|
"outputs": [],
|
|
553
553
|
"remote": true,
|
|
554
|
-
"implementationHash": "
|
|
554
|
+
"implementationHash": "ada89cdedc610d42"
|
|
555
555
|
},
|
|
556
556
|
"dbAudit": {
|
|
557
557
|
"pikkuFuncId": "dbAudit",
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
],
|
|
751
751
|
"outputs": [],
|
|
752
752
|
"remote": true,
|
|
753
|
-
"implementationHash": "
|
|
753
|
+
"implementationHash": "f84702bbe3753086"
|
|
754
754
|
},
|
|
755
755
|
"pikkuEmailsInit": {
|
|
756
756
|
"pikkuFuncId": "pikkuEmailsInit",
|
|
@@ -1471,6 +1471,53 @@
|
|
|
1471
1471
|
"inputHash": "7034161d",
|
|
1472
1472
|
"outputHash": "fe940ba5"
|
|
1473
1473
|
},
|
|
1474
|
+
"personaSync": {
|
|
1475
|
+
"pikkuFuncId": "personaSync",
|
|
1476
|
+
"functionType": "user",
|
|
1477
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1478
|
+
"sessionless": true,
|
|
1479
|
+
"name": "personaSync",
|
|
1480
|
+
"inputSchemaName": "PersonaSyncInput",
|
|
1481
|
+
"outputSchemaName": null,
|
|
1482
|
+
"inputs": [
|
|
1483
|
+
"PersonaSyncInput"
|
|
1484
|
+
],
|
|
1485
|
+
"outputs": [],
|
|
1486
|
+
"remote": true,
|
|
1487
|
+
"implementationHash": "612c80e1814cadf5"
|
|
1488
|
+
},
|
|
1489
|
+
"personaRun": {
|
|
1490
|
+
"pikkuFuncId": "personaRun",
|
|
1491
|
+
"functionType": "user",
|
|
1492
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1493
|
+
"sessionless": true,
|
|
1494
|
+
"name": "personaRun",
|
|
1495
|
+
"inputSchemaName": "PersonaRunInput",
|
|
1496
|
+
"outputSchemaName": null,
|
|
1497
|
+
"inputs": [
|
|
1498
|
+
"PersonaRunInput"
|
|
1499
|
+
],
|
|
1500
|
+
"outputs": [],
|
|
1501
|
+
"implementationHash": "f25d1104a05fb96a",
|
|
1502
|
+
"contractHash": "b8d9a71fb0cde9b7",
|
|
1503
|
+
"inputHash": "79b1ac3d",
|
|
1504
|
+
"outputHash": "14154fe3"
|
|
1505
|
+
},
|
|
1506
|
+
"personaList": {
|
|
1507
|
+
"pikkuFuncId": "personaList",
|
|
1508
|
+
"functionType": "user",
|
|
1509
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1510
|
+
"sessionless": true,
|
|
1511
|
+
"name": "personaList",
|
|
1512
|
+
"inputSchemaName": null,
|
|
1513
|
+
"outputSchemaName": null,
|
|
1514
|
+
"inputs": [],
|
|
1515
|
+
"outputs": [],
|
|
1516
|
+
"implementationHash": "63b7e99179b4e2f9",
|
|
1517
|
+
"contractHash": "4145e8286a5c52e0",
|
|
1518
|
+
"inputHash": "67a062ca",
|
|
1519
|
+
"outputHash": "b20ca8fc"
|
|
1520
|
+
},
|
|
1474
1521
|
"pikkuBootstrap": {
|
|
1475
1522
|
"pikkuFuncId": "pikkuBootstrap",
|
|
1476
1523
|
"functionType": "user",
|
|
@@ -1503,6 +1550,36 @@
|
|
|
1503
1550
|
"inputHash": "914f8a46",
|
|
1504
1551
|
"outputHash": "dc82a9b9"
|
|
1505
1552
|
},
|
|
1553
|
+
"rolesAudit": {
|
|
1554
|
+
"pikkuFuncId": "rolesAudit",
|
|
1555
|
+
"functionType": "user",
|
|
1556
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1557
|
+
"sessionless": true,
|
|
1558
|
+
"name": "rolesAudit",
|
|
1559
|
+
"inputSchemaName": "RolesAuditInput",
|
|
1560
|
+
"outputSchemaName": null,
|
|
1561
|
+
"inputs": [
|
|
1562
|
+
"RolesAuditInput"
|
|
1563
|
+
],
|
|
1564
|
+
"outputs": [],
|
|
1565
|
+
"remote": true,
|
|
1566
|
+
"implementationHash": "1a53646e97a53d66"
|
|
1567
|
+
},
|
|
1568
|
+
"rolesPrune": {
|
|
1569
|
+
"pikkuFuncId": "rolesPrune",
|
|
1570
|
+
"functionType": "user",
|
|
1571
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1572
|
+
"sessionless": true,
|
|
1573
|
+
"name": "rolesPrune",
|
|
1574
|
+
"inputSchemaName": "RolesPruneInput",
|
|
1575
|
+
"outputSchemaName": null,
|
|
1576
|
+
"inputs": [
|
|
1577
|
+
"RolesPruneInput"
|
|
1578
|
+
],
|
|
1579
|
+
"outputs": [],
|
|
1580
|
+
"remote": true,
|
|
1581
|
+
"implementationHash": "be08d55d26bdc4d0"
|
|
1582
|
+
},
|
|
1506
1583
|
"scenarioList": {
|
|
1507
1584
|
"pikkuFuncId": "scenarioList",
|
|
1508
1585
|
"functionType": "user",
|
|
@@ -1532,9 +1609,9 @@
|
|
|
1532
1609
|
"ScenarioRunInput"
|
|
1533
1610
|
],
|
|
1534
1611
|
"outputs": [],
|
|
1535
|
-
"implementationHash": "
|
|
1536
|
-
"contractHash": "
|
|
1537
|
-
"inputHash": "
|
|
1612
|
+
"implementationHash": "4e21555c8e6a53cd",
|
|
1613
|
+
"contractHash": "346e500e709d7f93",
|
|
1614
|
+
"inputHash": "c033e2c4",
|
|
1538
1615
|
"outputHash": "73729ce5"
|
|
1539
1616
|
},
|
|
1540
1617
|
"scopesAudit": {
|
|
@@ -1580,7 +1657,7 @@
|
|
|
1580
1657
|
],
|
|
1581
1658
|
"outputs": [],
|
|
1582
1659
|
"remote": true,
|
|
1583
|
-
"implementationHash": "
|
|
1660
|
+
"implementationHash": "67fbbb819b0c3898"
|
|
1584
1661
|
},
|
|
1585
1662
|
"pikkuSkillsList": {
|
|
1586
1663
|
"pikkuFuncId": "pikkuSkillsList",
|
|
@@ -1843,7 +1920,7 @@
|
|
|
1843
1920
|
"outputs": [
|
|
1844
1921
|
"PikkuPublicAgentOutput"
|
|
1845
1922
|
],
|
|
1846
|
-
"implementationHash": "
|
|
1923
|
+
"implementationHash": "fad892b27fad1b99",
|
|
1847
1924
|
"middleware": [
|
|
1848
1925
|
{
|
|
1849
1926
|
"type": "wire",
|
|
@@ -2667,6 +2744,30 @@
|
|
|
2667
2744
|
"inputHash": "d7b18af5",
|
|
2668
2745
|
"outputHash": "09d7f16a"
|
|
2669
2746
|
},
|
|
2747
|
+
"pikkuPersonas": {
|
|
2748
|
+
"pikkuFuncId": "pikkuPersonas",
|
|
2749
|
+
"functionType": "user",
|
|
2750
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2751
|
+
"sessionless": true,
|
|
2752
|
+
"name": "pikkuPersonas",
|
|
2753
|
+
"inputSchemaName": "PikkuPersonasInput",
|
|
2754
|
+
"outputSchemaName": null,
|
|
2755
|
+
"inputs": [
|
|
2756
|
+
"PikkuPersonasInput"
|
|
2757
|
+
],
|
|
2758
|
+
"outputs": [],
|
|
2759
|
+
"implementationHash": "9a04f80d68ac818f",
|
|
2760
|
+
"middleware": [
|
|
2761
|
+
{
|
|
2762
|
+
"type": "wire",
|
|
2763
|
+
"name": "logCommandInfoAndTime",
|
|
2764
|
+
"inline": false
|
|
2765
|
+
}
|
|
2766
|
+
],
|
|
2767
|
+
"contractHash": "c2a10af2f542e3ca",
|
|
2768
|
+
"inputHash": "52c1e871",
|
|
2769
|
+
"outputHash": "090c7bc1"
|
|
2770
|
+
},
|
|
2670
2771
|
"pikkuCommandQueueMap": {
|
|
2671
2772
|
"pikkuFuncId": "pikkuCommandQueueMap",
|
|
2672
2773
|
"functionType": "user",
|
|
@@ -2815,7 +2916,7 @@
|
|
|
2815
2916
|
"outputs": [
|
|
2816
2917
|
"PikkuEventsScaffoldOutput"
|
|
2817
2918
|
],
|
|
2818
|
-
"implementationHash": "
|
|
2919
|
+
"implementationHash": "6a86ff2af6fcb9e9",
|
|
2819
2920
|
"middleware": [
|
|
2820
2921
|
{
|
|
2821
2922
|
"type": "wire",
|
|
@@ -2849,6 +2950,30 @@
|
|
|
2849
2950
|
"inputHash": "b8beaacf",
|
|
2850
2951
|
"outputHash": "df7ce0f6"
|
|
2851
2952
|
},
|
|
2953
|
+
"pikkuRoles": {
|
|
2954
|
+
"pikkuFuncId": "pikkuRoles",
|
|
2955
|
+
"functionType": "user",
|
|
2956
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
2957
|
+
"sessionless": true,
|
|
2958
|
+
"name": "pikkuRoles",
|
|
2959
|
+
"inputSchemaName": "PikkuRolesInput",
|
|
2960
|
+
"outputSchemaName": null,
|
|
2961
|
+
"inputs": [
|
|
2962
|
+
"PikkuRolesInput"
|
|
2963
|
+
],
|
|
2964
|
+
"outputs": [],
|
|
2965
|
+
"implementationHash": "31d0fe86d21412d0",
|
|
2966
|
+
"middleware": [
|
|
2967
|
+
{
|
|
2968
|
+
"type": "wire",
|
|
2969
|
+
"name": "logCommandInfoAndTime",
|
|
2970
|
+
"inline": false
|
|
2971
|
+
}
|
|
2972
|
+
],
|
|
2973
|
+
"contractHash": "0d5e9c9ad9b564bc",
|
|
2974
|
+
"inputHash": "c432d4bb",
|
|
2975
|
+
"outputHash": "306527ae"
|
|
2976
|
+
},
|
|
2852
2977
|
"pikkuPublicRPC": {
|
|
2853
2978
|
"pikkuFuncId": "pikkuPublicRPC",
|
|
2854
2979
|
"functionType": "user",
|
|
@@ -2861,7 +2986,7 @@
|
|
|
2861
2986
|
"outputs": [
|
|
2862
2987
|
"PikkuPublicRPCOutput"
|
|
2863
2988
|
],
|
|
2864
|
-
"implementationHash": "
|
|
2989
|
+
"implementationHash": "9e532d246ad0f002",
|
|
2865
2990
|
"middleware": [
|
|
2866
2991
|
{
|
|
2867
2992
|
"type": "wire",
|
|
@@ -3183,7 +3308,7 @@
|
|
|
3183
3308
|
"outputs": [
|
|
3184
3309
|
"PikkuUserAdminFunctionsOutput"
|
|
3185
3310
|
],
|
|
3186
|
-
"implementationHash": "
|
|
3311
|
+
"implementationHash": "2f56f5186bcbf7cf",
|
|
3187
3312
|
"middleware": [
|
|
3188
3313
|
{
|
|
3189
3314
|
"type": "wire",
|
|
@@ -3253,7 +3378,7 @@
|
|
|
3253
3378
|
"outputs": [
|
|
3254
3379
|
"PikkuWorkflowRoutesOutput"
|
|
3255
3380
|
],
|
|
3256
|
-
"implementationHash": "
|
|
3381
|
+
"implementationHash": "35983d43b838eaba",
|
|
3257
3382
|
"middleware": [
|
|
3258
3383
|
{
|
|
3259
3384
|
"type": "wire",
|
|
@@ -3279,7 +3404,7 @@
|
|
|
3279
3404
|
"outputs": [
|
|
3280
3405
|
"PikkuWorkflowOutput"
|
|
3281
3406
|
],
|
|
3282
|
-
"implementationHash": "
|
|
3407
|
+
"implementationHash": "74146a47629d69d5",
|
|
3283
3408
|
"middleware": [
|
|
3284
3409
|
{
|
|
3285
3410
|
"type": "wire",
|
|
@@ -3301,7 +3426,7 @@
|
|
|
3301
3426
|
"outputSchemaName": null,
|
|
3302
3427
|
"inputs": [],
|
|
3303
3428
|
"outputs": [],
|
|
3304
|
-
"implementationHash": "
|
|
3429
|
+
"implementationHash": "7e9b506e9d8a8c66",
|
|
3305
3430
|
"contractHash": "5cf046fc5045a072",
|
|
3306
3431
|
"inputHash": "d5ff2f31",
|
|
3307
3432
|
"outputHash": "391c291d"
|
|
@@ -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.96
|
|
3
3
|
*/
|
|
4
4
|
/* Import and register functions used by RPCs */
|
|
5
5
|
import { addFunction } from '@pikku/core/function';
|
|
@@ -16,6 +16,7 @@ import { dbReset } from '../../src/functions/commands/db-reset.js';
|
|
|
16
16
|
import { dbSeed } from '../../src/functions/commands/db-seed.js';
|
|
17
17
|
import { dev } from '../../src/functions/commands/dev.js';
|
|
18
18
|
import { FabricAddonVerify } from '../../src/fabric/functions/addon-verify.function.js';
|
|
19
|
+
import { personaSync } from '../../src/functions/commands/persona-sync.js';
|
|
19
20
|
import { pikkuAddonTypes } from '../../src/functions/wirings/functions/pikku-command-addon-types.js';
|
|
20
21
|
import { pikkuAIAgent } from '../../src/functions/wirings/ai-agent/pikku-command-ai-agent.js';
|
|
21
22
|
import { pikkuAIAgentTypes } from '../../src/functions/wirings/ai-agent/pikku-command-ai-agent-types.js';
|
|
@@ -52,6 +53,7 @@ import { pikkuNodeTypes } from '../../src/functions/wirings/console/pikku-comman
|
|
|
52
53
|
import { pikkuOpenAPI } from '../../src/functions/wirings/http/pikku-command-openapi.js';
|
|
53
54
|
import { pikkuPackage } from '../../src/functions/wirings/package/pikku-command-package.js';
|
|
54
55
|
import { pikkuPermissions } from '../../src/functions/wirings/permissions/pikku-command-permissions.js';
|
|
56
|
+
import { pikkuPersonas } from '../../src/functions/wirings/personas/pikku-command-personas.js';
|
|
55
57
|
import { pikkuPublicAgent } from '../../src/functions/wirings/ai-agent/pikku-command-public-agent.js';
|
|
56
58
|
import { pikkuPublicRPC } from '../../src/functions/wirings/rpc/pikku-command-public-rpc.js';
|
|
57
59
|
import { pikkuQueueService } from '../../src/functions/wirings/queue/pikku-command-queue-service.js';
|
|
@@ -59,6 +61,7 @@ import { pikkuQueueTypes } from '../../src/functions/wirings/queue/pikku-command
|
|
|
59
61
|
import { pikkuReactQuery } from '../../src/functions/wirings/rpc/pikku-command-react-query.js';
|
|
60
62
|
import { pikkuRealtime } from '../../src/functions/wirings/realtime/pikku-command-realtime.js';
|
|
61
63
|
import { pikkuRemoteRPC } from '../../src/functions/wirings/rpc/pikku-command-remote-rpc.js';
|
|
64
|
+
import { pikkuRoles } from '../../src/functions/wirings/roles/pikku-command-roles.js';
|
|
62
65
|
import { pikkuRPC } from '../../src/functions/wirings/rpc/pikku-command-rpc.js';
|
|
63
66
|
import { pikkuRPCClient } from '../../src/functions/wirings/rpc/pikku-command-rpc-client.js';
|
|
64
67
|
import { pikkuRPCExposedMap } from '../../src/functions/wirings/rpc/pikku-command-rpc-map.js';
|
|
@@ -84,6 +87,8 @@ import { pikkuWebhook } from '../../src/functions/wirings/webhook/pikku-command-
|
|
|
84
87
|
import { pikkuWebSocketTyped } from '../../src/functions/runtimes/websocket/pikku-command-websocket-typed.js';
|
|
85
88
|
import { pikkuWorkflow } from '../../src/functions/wirings/workflow/pikku-command-workflow.js';
|
|
86
89
|
import { pikkuWorkflowRoutes } from '../../src/functions/wirings/workflow/pikku-command-workflow-routes.js';
|
|
90
|
+
import { rolesAudit } from '../../src/functions/commands/roles-audit.js';
|
|
91
|
+
import { rolesPrune } from '../../src/functions/commands/roles-prune.js';
|
|
87
92
|
import { scopesAudit } from '../../src/functions/commands/scopes-audit.js';
|
|
88
93
|
import { scopesPrune } from '../../src/functions/commands/scopes-prune.js';
|
|
89
94
|
import { serve } from '../../src/functions/commands/serve.js';
|
|
@@ -101,6 +106,7 @@ addFunction('dbReset', dbReset);
|
|
|
101
106
|
addFunction('dbSeed', dbSeed);
|
|
102
107
|
addFunction('dev', dev);
|
|
103
108
|
addFunction('FabricAddonVerify', FabricAddonVerify);
|
|
109
|
+
addFunction('personaSync', personaSync);
|
|
104
110
|
addFunction('pikkuAddonTypes', pikkuAddonTypes);
|
|
105
111
|
addFunction('pikkuAIAgent', pikkuAIAgent);
|
|
106
112
|
addFunction('pikkuAIAgentTypes', pikkuAIAgentTypes);
|
|
@@ -137,6 +143,7 @@ addFunction('pikkuNodeTypes', pikkuNodeTypes);
|
|
|
137
143
|
addFunction('pikkuOpenAPI', pikkuOpenAPI);
|
|
138
144
|
addFunction('pikkuPackage', pikkuPackage);
|
|
139
145
|
addFunction('pikkuPermissions', pikkuPermissions);
|
|
146
|
+
addFunction('pikkuPersonas', pikkuPersonas);
|
|
140
147
|
addFunction('pikkuPublicAgent', pikkuPublicAgent);
|
|
141
148
|
addFunction('pikkuPublicRPC', pikkuPublicRPC);
|
|
142
149
|
addFunction('pikkuQueueService', pikkuQueueService);
|
|
@@ -144,6 +151,7 @@ addFunction('pikkuQueueTypes', pikkuQueueTypes);
|
|
|
144
151
|
addFunction('pikkuReactQuery', pikkuReactQuery);
|
|
145
152
|
addFunction('pikkuRealtime', pikkuRealtime);
|
|
146
153
|
addFunction('pikkuRemoteRPC', pikkuRemoteRPC);
|
|
154
|
+
addFunction('pikkuRoles', pikkuRoles);
|
|
147
155
|
addFunction('pikkuRPC', pikkuRPC);
|
|
148
156
|
addFunction('pikkuRPCClient', pikkuRPCClient);
|
|
149
157
|
addFunction('pikkuRPCExposedMap', pikkuRPCExposedMap);
|
|
@@ -169,6 +177,8 @@ addFunction('pikkuWebhook', pikkuWebhook);
|
|
|
169
177
|
addFunction('pikkuWebSocketTyped', pikkuWebSocketTyped);
|
|
170
178
|
addFunction('pikkuWorkflow', pikkuWorkflow);
|
|
171
179
|
addFunction('pikkuWorkflowRoutes', pikkuWorkflowRoutes);
|
|
180
|
+
addFunction('rolesAudit', rolesAudit);
|
|
181
|
+
addFunction('rolesPrune', rolesPrune);
|
|
172
182
|
addFunction('scopesAudit', scopesAudit);
|
|
173
183
|
addFunction('scopesPrune', scopesPrune);
|
|
174
184
|
addFunction('serve', serve);
|