@pikku/cli 0.12.81 → 0.12.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.schema.json +1 -1
- package/console-app/assets/{index-NmNeixvK.js → index-CN_U0k_D.js} +154 -144
- package/console-app/assets/{index-DwyRdRuZ.css → index-CpHRlBt-.css} +1 -1
- package/console-app/index.html +2 -2
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +3 -2
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +21 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +60 -3
- 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 +6 -12
- package/dist/.pikku/function/pikku-function-types.gen.js +3 -12
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +190 -12
- package/dist/.pikku/function/pikku-functions.gen.js +15 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -24
- package/dist/.pikku/http/pikku-http-types.gen.js +2 -24
- package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
- package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/pikku-services.gen.d.ts +4 -1
- package/dist/.pikku/pikku-services.gen.js +3 -0
- package/dist/.pikku/pikku-types.gen.d.ts +2 -1
- package/dist/.pikku/pikku-types.gen.js +3 -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 +9 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
- package/dist/.pikku/schemas/register.gen.js +13 -1
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/schemas/schemas/PikkuGraphWiringsOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuImportN8nInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuScopesInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuWebhookOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ScopesAuditInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ScopesPruneInput.schema.json +1 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +5 -0
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +4 -0
- package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +1 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +35 -0
- package/dist/.pikku/scopes/pikku-scopes.gen.js +27 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +11 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +11 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -3
- package/dist/.pikku/workflow/meta/allWorkflow.gen.json +48 -6
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +4 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
- package/dist/bin/pikku-bin.mjs +2 -2
- package/dist/src/cli.wiring.js +47 -4
- package/dist/src/deploy/analyzer/analyzer.js +6 -0
- package/dist/src/fabric/fabric-commands.d.ts +3 -3
- package/dist/src/fabric/functions/llm-key.function.d.ts +4 -4
- package/dist/src/fabric/functions/validate.function.js +42 -2
- package/dist/src/functions/commands/bootstrap.js +3 -0
- package/dist/src/functions/commands/dev.js +14 -3
- package/dist/src/functions/commands/enable.d.ts +1 -0
- package/dist/src/functions/commands/enable.js +10 -5
- package/dist/src/functions/commands/import-n8n.d.ts +10 -0
- package/dist/src/functions/commands/import-n8n.js +130 -0
- package/dist/src/functions/commands/info.js +0 -13
- package/dist/src/functions/commands/new-addon.js +33 -35
- package/dist/src/functions/commands/pikku-command-bootstrap.js +6 -0
- package/dist/src/functions/commands/scopes-audit.d.ts +1 -0
- package/dist/src/functions/commands/scopes-audit.js +37 -0
- package/dist/src/functions/commands/scopes-prune.d.ts +14 -0
- package/dist/src/functions/commands/scopes-prune.js +50 -0
- package/dist/src/functions/commands/scopes-shared.d.ts +39 -0
- package/dist/src/functions/commands/scopes-shared.js +83 -0
- package/dist/src/functions/commands/serve.js +4 -2
- package/dist/src/functions/commands/skills.js +18 -10
- package/dist/src/functions/wirings/ai-agent/serialize-ai-agent-types.js +2 -1
- package/dist/src/functions/wirings/console/serialize-console-functions.js +6 -0
- package/dist/src/functions/wirings/credentials/serialize-credentials-types.js +22 -0
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-function-types.js +2 -2
- package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-function-types.js +14 -16
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.d.ts +1 -1
- package/dist/src/functions/wirings/functions/serialize-pikku-types-hub.js +6 -2
- package/dist/src/functions/wirings/graph/pikku-command-graph-wirings.d.ts +1 -0
- package/dist/src/functions/wirings/graph/pikku-command-graph-wirings.js +21 -0
- package/dist/src/functions/wirings/graph/serialize-graph-wirings.d.ts +5 -0
- package/dist/src/functions/wirings/graph/serialize-graph-wirings.js +14 -0
- package/dist/src/functions/wirings/http/serialize-http-types.js +2 -30
- package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +1 -0
- package/dist/src/functions/wirings/package/pikku-command-package-types.js +14 -1
- package/dist/src/functions/wirings/package/serialize-package-types.d.ts +1 -0
- package/dist/src/functions/wirings/package/serialize-package-types.js +5 -0
- package/dist/src/functions/wirings/permissions/pikku-command-permissions.js +1 -3
- package/dist/src/functions/wirings/permissions/serialize-permissions-imports.d.ts +6 -1
- package/dist/src/functions/wirings/permissions/serialize-permissions-imports.js +7 -64
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +5 -0
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.js +20 -0
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.d.ts +1 -0
- package/dist/src/functions/wirings/rpc/serialize-typed-rpc-map.js +8 -3
- package/dist/src/functions/wirings/scopes/pikku-command-scopes.d.ts +7 -0
- package/dist/src/functions/wirings/scopes/pikku-command-scopes.js +34 -0
- package/dist/src/functions/wirings/scopes/serialize-scopes-types.d.ts +15 -0
- package/dist/src/functions/wirings/scopes/serialize-scopes-types.js +86 -0
- package/dist/src/functions/wirings/secrets/serialize-secrets-types.js +13 -0
- package/dist/src/functions/wirings/variables/serialize-variables-types.js +15 -2
- package/dist/src/functions/wirings/webhook/pikku-command-webhook.d.ts +1 -0
- package/dist/src/functions/wirings/webhook/pikku-command-webhook.js +25 -0
- package/dist/src/functions/wirings/webhook/serialize-webhook.d.ts +14 -0
- package/dist/src/functions/wirings/webhook/serialize-webhook.js +34 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-routes.js +29 -0
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +3 -0
- package/dist/src/functions/workflows/all.workflow.js +23 -3
- package/dist/src/services.d.ts +1 -0
- package/dist/src/services.js +1 -0
- package/dist/src/utils/pikku-cli-config.js +20 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -8
- package/skills/pikku-addon/SKILL.md +7 -3
- package/skills/pikku-ai-agent/SKILL.md +6 -3
- package/skills/pikku-ai-vercel/SKILL.md +6 -3
- package/skills/pikku-ai-voice/SKILL.md +6 -3
- package/skills/pikku-audit/SKILL.md +10 -3
- package/skills/pikku-aws/SKILL.md +9 -5
- package/skills/pikku-backblaze/SKILL.md +4 -3
- package/skills/pikku-better-auth/SKILL.md +10 -5
- package/skills/pikku-cli/SKILL.md +6 -3
- package/skills/pikku-concepts/SKILL.md +9 -4
- package/skills/pikku-concepts/references/concept-mapping.md +12 -10
- package/skills/pikku-config/SKILL.md +9 -5
- package/skills/pikku-cron/SKILL.md +6 -3
- package/skills/pikku-deploy-azure/SKILL.md +5 -3
- package/skills/pikku-deploy-cloudflare/SKILL.md +5 -3
- package/skills/pikku-deploy-express/SKILL.md +6 -3
- package/skills/pikku-deploy-fastify/SKILL.md +6 -3
- package/skills/pikku-deploy-lambda/SKILL.md +6 -3
- package/skills/pikku-deploy-nextjs/SKILL.md +5 -3
- package/skills/pikku-deploy-uws/SKILL.md +7 -4
- package/skills/pikku-deps/SKILL.md +13 -6
- package/skills/pikku-emails/SKILL.md +10 -5
- package/skills/pikku-feature/SKILL.md +1 -1
- package/skills/pikku-gateway-slack/SKILL.md +6 -3
- package/skills/pikku-http/SKILL.md +15 -21
- package/skills/pikku-http/references/http-options.md +0 -2
- package/skills/pikku-info/SKILL.md +9 -4
- package/skills/pikku-jose/SKILL.md +6 -3
- package/skills/pikku-kysely/SKILL.md +13 -5
- package/skills/pikku-machine-auth/SKILL.md +9 -3
- package/skills/pikku-mcp/SKILL.md +7 -3
- package/skills/pikku-middleware/SKILL.md +11 -6
- package/skills/pikku-mongodb/SKILL.md +8 -5
- package/skills/pikku-n8n-import/SKILL.md +109 -0
- package/skills/pikku-n8n-import/SPEC.md +84 -0
- package/skills/pikku-n8n-import/references/addon-mapping.md +121 -0
- package/skills/pikku-n8n-import/references/code-translation.md +121 -0
- package/skills/pikku-n8n-import/references/loops-and-control.md +87 -0
- package/skills/pikku-permissions/SKILL.md +26 -15
- package/skills/pikku-pino/SKILL.md +5 -3
- package/skills/pikku-product-second-opinion/README.md +43 -0
- package/skills/pikku-product-second-opinion/SKILL.md +158 -0
- package/skills/pikku-product-second-opinion/example/sample-report.md +90 -0
- package/skills/pikku-product-second-opinion/references/report-template.md +73 -0
- package/skills/pikku-queue/SKILL.md +7 -4
- package/skills/pikku-redis/SKILL.md +9 -6
- package/skills/pikku-rpc/SKILL.md +7 -4
- package/skills/pikku-rtl/SKILL.md +1 -1
- package/skills/pikku-scenario/SKILL.md +215 -0
- package/skills/pikku-schedule/SKILL.md +6 -3
- package/skills/pikku-schema-ajv/SKILL.md +5 -3
- package/skills/pikku-schema-cfworker/SKILL.md +6 -3
- package/skills/pikku-security/SKILL.md +8 -4
- package/skills/pikku-services/SKILL.md +8 -4
- package/skills/pikku-software-archaeology/README.md +70 -0
- package/skills/pikku-software-archaeology/SKILL.md +186 -0
- package/skills/pikku-software-archaeology/references/blueprint.schema.json +625 -0
- package/skills/pikku-software-archaeology/references/pikku-mapping.md +49 -0
- package/skills/pikku-software-archaeology/scripts/validate.mjs +173 -0
- package/skills/pikku-template-clone/SKILL.md +1 -1
- package/skills/pikku-trigger/SKILL.md +7 -3
- package/skills/pikku-versioning/SKILL.md +7 -3
- package/skills/pikku-websocket/SKILL.md +8 -4
- package/skills/pikku-workflow/SKILL.md +7 -3
- package/skills/pikku-ws/SKILL.md +5 -3
- package/skills/pikku-n8n-addon-map/SKILL.md +0 -178
- package/skills/pikku-n8n-code-translate/SKILL.md +0 -166
- package/skills/pikku-testing/SKILL.md +0 -328
- package/skills/pikku-testing/references/cucumber-bdd-testing.md +0 -176
package/console-app/index.html
CHANGED
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
} catch (e) {}
|
|
23
23
|
</script>
|
|
24
|
-
<script type="module" crossorigin src="/console/assets/index-
|
|
25
|
-
<link rel="stylesheet" crossorigin href="/console/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/console/assets/index-CN_U0k_D.js"></script>
|
|
25
|
+
<link rel="stylesheet" crossorigin href="/console/assets/index-CpHRlBt-.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
28
28
|
<div id="root"></div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.83
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
|
|
5
5
|
import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
6
6
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
7
7
|
import type { AIAgentMemoryConfig, AIAgentInput } from '@pikku/core/ai-agent';
|
|
8
8
|
import type { AgentMap } from './pikku-agent-map.gen.d.js';
|
|
9
|
-
type AIAgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware>, 'tools' | 'agents' | 'memory' | 'input' | 'output'> & {
|
|
9
|
+
type AIAgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware>, 'tools' | 'agents' | 'workflows' | 'memory' | 'input' | 'output'> & {
|
|
10
10
|
input?: InputSchema;
|
|
11
11
|
output?: OutputSchema;
|
|
12
12
|
memory?: Omit<AIAgentMemoryConfig, 'workingMemory'> & {
|
|
@@ -14,6 +14,7 @@ type AIAgentConfig<InputSchema extends StandardSchemaV1 | undefined = undefined,
|
|
|
14
14
|
};
|
|
15
15
|
tools?: object[];
|
|
16
16
|
agents?: AIAgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[];
|
|
17
|
+
workflows?: object[];
|
|
17
18
|
};
|
|
18
19
|
export declare const pikkuAIAgent: <InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(agent: AIAgentConfig<InputSchema, OutputSchema>) => AIAgentConfig<InputSchema, OutputSchema>;
|
|
19
20
|
export declare const pikkuAIMiddleware: <State extends Record<string, unknown> = Record<string, unknown>, RequiredServices extends Services = Services>(hooks: PikkuAIMiddlewareHooks<State, RequiredServices>) => PikkuAIMiddlewareHooks<State, RequiredServices>;
|
|
@@ -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.83
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* WebSocket channel backend for 'pikku' CLI commands
|
|
@@ -26,6 +26,8 @@ import { dbGenerate } from '../../src/functions/commands/db-generate.js';
|
|
|
26
26
|
import { dbSeed } from '../../src/functions/commands/db-seed.js';
|
|
27
27
|
import { dbReset } from '../../src/functions/commands/db-reset.js';
|
|
28
28
|
import { dbAudit } from '../../src/functions/commands/db-audit.js';
|
|
29
|
+
import { scopesAudit } from '../../src/functions/commands/scopes-audit.js';
|
|
30
|
+
import { scopesPrune } from '../../src/functions/commands/scopes-prune.js';
|
|
29
31
|
import { workspaceValidate } from '../../src/functions/commands/workspace-validate.js';
|
|
30
32
|
import { scenarioRun } from '../../src/functions/commands/scenario.js';
|
|
31
33
|
import { scenarioList } from '../../src/functions/commands/scenario.js';
|
|
@@ -70,11 +72,13 @@ import { enableAgent } from '../../src/functions/commands/enable.js';
|
|
|
70
72
|
import { enableWorkflow } from '../../src/functions/commands/enable.js';
|
|
71
73
|
import { enableEvents } from '../../src/functions/commands/enable.js';
|
|
72
74
|
import { enableRemoteRpc } from '../../src/functions/commands/enable.js';
|
|
75
|
+
import { enableWebhook } from '../../src/functions/commands/enable.js';
|
|
73
76
|
import { pikkuNewFunction } from '../../src/functions/commands/new-function.js';
|
|
74
77
|
import { pikkuNewWiring } from '../../src/functions/commands/new-wiring.js';
|
|
75
78
|
import { pikkuNewMiddleware } from '../../src/functions/commands/new-middleware.js';
|
|
76
79
|
import { pikkuNewPermission } from '../../src/functions/commands/new-permission.js';
|
|
77
80
|
import { pikkuNewAddon } from '../../src/functions/commands/new-addon.js';
|
|
81
|
+
import { pikkuImportN8n } from '../../src/functions/commands/import-n8n.js';
|
|
78
82
|
import { pikkuVersionsInit } from '../../src/functions/commands/versions-init.js';
|
|
79
83
|
import { pikkuVersionsCheck } from '../../src/functions/commands/versions-check.js';
|
|
80
84
|
import { pikkuVersionsUpdate } from '../../src/functions/commands/versions-update.js';
|
|
@@ -231,6 +235,14 @@ wireChannel({
|
|
|
231
235
|
func: dbAudit,
|
|
232
236
|
middleware: [cliCloseOnComplete],
|
|
233
237
|
},
|
|
238
|
+
'scopes.audit': {
|
|
239
|
+
func: scopesAudit,
|
|
240
|
+
middleware: [cliCloseOnComplete],
|
|
241
|
+
},
|
|
242
|
+
'scopes.prune': {
|
|
243
|
+
func: scopesPrune,
|
|
244
|
+
middleware: [cliCloseOnComplete],
|
|
245
|
+
},
|
|
234
246
|
'workspace.validate': {
|
|
235
247
|
func: workspaceValidate,
|
|
236
248
|
middleware: [cliCloseOnComplete],
|
|
@@ -407,6 +419,10 @@ wireChannel({
|
|
|
407
419
|
func: enableRemoteRpc,
|
|
408
420
|
middleware: [cliCloseOnComplete],
|
|
409
421
|
},
|
|
422
|
+
'enable.webhook': {
|
|
423
|
+
func: enableWebhook,
|
|
424
|
+
middleware: [cliCloseOnComplete],
|
|
425
|
+
},
|
|
410
426
|
'new.function': {
|
|
411
427
|
func: pikkuNewFunction,
|
|
412
428
|
middleware: [cliCloseOnComplete],
|
|
@@ -427,6 +443,10 @@ wireChannel({
|
|
|
427
443
|
func: pikkuNewAddon,
|
|
428
444
|
middleware: [cliCloseOnComplete],
|
|
429
445
|
},
|
|
446
|
+
'import.n8n': {
|
|
447
|
+
func: pikkuImportN8n,
|
|
448
|
+
middleware: [cliCloseOnComplete],
|
|
449
|
+
},
|
|
430
450
|
'versions.init': {
|
|
431
451
|
func: pikkuVersionsInit,
|
|
432
452
|
middleware: [cliCloseOnComplete],
|
|
@@ -254,6 +254,32 @@
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
|
+
"scopes": {
|
|
258
|
+
"pikkuFuncId": "",
|
|
259
|
+
"positionals": [],
|
|
260
|
+
"options": {},
|
|
261
|
+
"description": "Inspect and maintain declared authorization scopes",
|
|
262
|
+
"subcommands": {
|
|
263
|
+
"audit": {
|
|
264
|
+
"pikkuFuncId": "scopesAudit",
|
|
265
|
+
"positionals": [],
|
|
266
|
+
"options": {},
|
|
267
|
+
"description": "Report scopes in the database that are no longer declared in code, and the roles holding them"
|
|
268
|
+
},
|
|
269
|
+
"prune": {
|
|
270
|
+
"pikkuFuncId": "scopesPrune",
|
|
271
|
+
"positionals": [],
|
|
272
|
+
"options": {
|
|
273
|
+
"yes": {
|
|
274
|
+
"description": "Actually delete. Without it, prune only reports the blast radius",
|
|
275
|
+
"short": "y",
|
|
276
|
+
"default": false
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"description": "Remove scopes that are no longer declared in code, cascading them out of every role"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
257
283
|
"workspace": {
|
|
258
284
|
"pikkuFuncId": "",
|
|
259
285
|
"positionals": [],
|
|
@@ -936,6 +962,12 @@
|
|
|
936
962
|
}
|
|
937
963
|
},
|
|
938
964
|
"description": "Enable the remote internal RPC queue worker + HTTP endpoint (scaffolds rpc-remote.gen.ts)"
|
|
965
|
+
},
|
|
966
|
+
"webhook": {
|
|
967
|
+
"pikkuFuncId": "enableWebhook",
|
|
968
|
+
"positionals": [],
|
|
969
|
+
"options": {},
|
|
970
|
+
"description": "Enable the outgoing webhook delivery queue worker (scaffolds webhook.gen.ts)"
|
|
939
971
|
}
|
|
940
972
|
}
|
|
941
973
|
},
|
|
@@ -1049,7 +1081,7 @@
|
|
|
1049
1081
|
"default": false
|
|
1050
1082
|
},
|
|
1051
1083
|
"oauth": {
|
|
1052
|
-
"description": "Include OAuth2 credential wiring
|
|
1084
|
+
"description": "Include OAuth2 credential wiring; the API service reads its access token from the credential service",
|
|
1053
1085
|
"default": false
|
|
1054
1086
|
},
|
|
1055
1087
|
"credential": {
|
|
@@ -1079,6 +1111,31 @@
|
|
|
1079
1111
|
}
|
|
1080
1112
|
}
|
|
1081
1113
|
},
|
|
1114
|
+
"import": {
|
|
1115
|
+
"pikkuFuncId": "",
|
|
1116
|
+
"positionals": [],
|
|
1117
|
+
"options": {},
|
|
1118
|
+
"description": "Import workflows from other systems",
|
|
1119
|
+
"subcommands": {
|
|
1120
|
+
"n8n": {
|
|
1121
|
+
"pikkuFuncId": "pikkuImportN8n",
|
|
1122
|
+
"positionals": [
|
|
1123
|
+
{
|
|
1124
|
+
"name": "file",
|
|
1125
|
+
"required": true
|
|
1126
|
+
}
|
|
1127
|
+
],
|
|
1128
|
+
"options": {
|
|
1129
|
+
"out": {
|
|
1130
|
+
"description": "Output directory (defaults to scaffold.functionDir or cwd)",
|
|
1131
|
+
"short": "o"
|
|
1132
|
+
}
|
|
1133
|
+
},
|
|
1134
|
+
"description": "Import an n8n workflow JSON export (a single workflow, an export array, or a directory of exports) into Pikku workflow graphs + stub functions",
|
|
1135
|
+
"parameters": "<file>"
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1082
1139
|
"versions": {
|
|
1083
1140
|
"pikkuFuncId": "",
|
|
1084
1141
|
"positionals": [],
|
|
@@ -1185,7 +1242,7 @@
|
|
|
1185
1242
|
"pikkuFuncId": "",
|
|
1186
1243
|
"positionals": [],
|
|
1187
1244
|
"options": {},
|
|
1188
|
-
"description": "Install bundled agent skills (Claude Code
|
|
1245
|
+
"description": "Install bundled agent skills (Claude Code, opencode, pi; Codex/Gemini coming soon)",
|
|
1189
1246
|
"subcommands": {
|
|
1190
1247
|
"list": {
|
|
1191
1248
|
"pikkuFuncId": "pikkuSkillsList",
|
|
@@ -1198,7 +1255,7 @@
|
|
|
1198
1255
|
"positionals": [],
|
|
1199
1256
|
"options": {
|
|
1200
1257
|
"agent": {
|
|
1201
|
-
"description": "Target agent (claude | opencode |
|
|
1258
|
+
"description": "Target agent (claude | opencode | pi). Default: claude",
|
|
1202
1259
|
"default": "claude"
|
|
1203
1260
|
},
|
|
1204
1261
|
"only": {
|
|
@@ -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.83
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
@@ -8,6 +8,7 @@ import type { CorePikkuMiddleware, CorePermissionGroup, ListInput, ListOutput, P
|
|
|
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';
|
|
11
|
+
import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
|
|
11
12
|
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
12
13
|
import { CorePikkuFunction, CorePikkuFunctionSessionless } from '@pikku/core/function';
|
|
13
14
|
import type { UserSession } from '../../types/application-types.d.js';
|
|
@@ -237,7 +238,7 @@ export type InferSchemaOutput<T> = T extends StandardSchemaV1<any, infer Output>
|
|
|
237
238
|
* @template Out - The output type
|
|
238
239
|
* @template PikkuFunc - The function type (can be narrowed to PikkuFunction or PikkuFunctionSessionless)
|
|
239
240
|
*/
|
|
240
|
-
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>;
|
|
241
|
+
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>;
|
|
241
242
|
/**
|
|
242
243
|
* Configuration object for Pikku functions with Zod schema validation.
|
|
243
244
|
* Use this when you want to define input/output schemas using Zod.
|
|
@@ -248,7 +249,7 @@ type SchemaInferred<S, Fallback = unknown> = S extends StandardSchemaV1 ? InferS
|
|
|
248
249
|
* Schema-overload variant for pikkuFunc. Derived from CorePikkuFunctionConfig
|
|
249
250
|
* so adding a field on the core type automatically propagates here.
|
|
250
251
|
*/
|
|
251
|
-
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
|
|
252
|
+
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'> & {
|
|
252
253
|
func: PikkuFunction<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires> | PikkuFunctionSessionless<SchemaInferred<InputSchema>, SchemaInferred<OutputSchema>, RequiredWires>;
|
|
253
254
|
input?: InputSchema;
|
|
254
255
|
output?: OutputSchema;
|
|
@@ -432,13 +433,6 @@ export declare const addTagMiddleware: (tag: string, middleware: PikkuMiddleware
|
|
|
432
433
|
* addGlobalMiddleware([telemetryMiddleware])
|
|
433
434
|
*/
|
|
434
435
|
export declare const addGlobalMiddleware: (middleware: PikkuMiddleware[]) => void;
|
|
435
|
-
/**
|
|
436
|
-
* Tag-scoped permissions. Applies to any wiring that carries the matching tag.
|
|
437
|
-
*
|
|
438
|
-
* @example
|
|
439
|
-
* addTagPermission('admin', [adminPermission])
|
|
440
|
-
*/
|
|
441
|
-
export declare const addTagPermission: <In = unknown>(tag: string, permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
442
436
|
/**
|
|
443
437
|
* Wire-agnostic global permissions. Runs at the top of every wiring's
|
|
444
438
|
* permission resolution — before wire-, tag-, and function-level entries.
|
|
@@ -449,8 +443,8 @@ export declare const addTagPermission: <In = unknown>(tag: string, permissions:
|
|
|
449
443
|
* addGlobalPermission([signedInUser])
|
|
450
444
|
*/
|
|
451
445
|
export declare const addGlobalPermission: <In = unknown>(permissions: CorePermissionGroup<PikkuPermission<In>> | PikkuPermission<In>[]) => void;
|
|
452
|
-
export { wireAddon } from '@pikku/core/rpc';
|
|
453
|
-
export type { WireAddonConfig } from '@pikku/core/rpc';
|
|
446
|
+
export { wireAddon, wireRemoteAddon } from '@pikku/core/rpc';
|
|
447
|
+
export type { WireAddonConfig, WireRemoteAddonConfig, RemoteAddonAuth } from '@pikku/core/rpc';
|
|
454
448
|
/**
|
|
455
449
|
* Addon contract references. Generated from each wired addon's published
|
|
456
450
|
* contract metadata — no addon source is imported. Functions are proxied via
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.83
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Core function, middleware, and permission types for all wirings
|
|
6
6
|
*/
|
|
7
7
|
import { pikkuAuth as pikkuAuthCore } from '@pikku/core/function';
|
|
8
|
-
import { addTagMiddleware as addTagMiddlewareCore, addGlobalMiddleware as addGlobalMiddlewareCore,
|
|
8
|
+
import { addTagMiddleware as addTagMiddlewareCore, addGlobalMiddleware as addGlobalMiddlewareCore, addGlobalPermission as addGlobalPermissionCore, } from '@pikku/core/middleware';
|
|
9
9
|
import { pikkuState as __pikkuState } from '@pikku/core/internal';
|
|
10
10
|
/**
|
|
11
11
|
* Factory function for creating permissions with tree-shaking support.
|
|
@@ -293,15 +293,6 @@ export const addTagMiddleware = (tag, middleware) => {
|
|
|
293
293
|
export const addGlobalMiddleware = (middleware) => {
|
|
294
294
|
addGlobalMiddlewareCore(middleware, null);
|
|
295
295
|
};
|
|
296
|
-
/**
|
|
297
|
-
* Tag-scoped permissions. Applies to any wiring that carries the matching tag.
|
|
298
|
-
*
|
|
299
|
-
* @example
|
|
300
|
-
* addTagPermission('admin', [adminPermission])
|
|
301
|
-
*/
|
|
302
|
-
export const addTagPermission = (tag, permissions) => {
|
|
303
|
-
addTagPermissionCore(tag, permissions, null);
|
|
304
|
-
};
|
|
305
296
|
/**
|
|
306
297
|
* Wire-agnostic global permissions. Runs at the top of every wiring's
|
|
307
298
|
* permission resolution — before wire-, tag-, and function-level entries.
|
|
@@ -314,7 +305,7 @@ export const addTagPermission = (tag, permissions) => {
|
|
|
314
305
|
export const addGlobalPermission = (permissions) => {
|
|
315
306
|
addGlobalPermissionCore(permissions, null);
|
|
316
307
|
};
|
|
317
|
-
export { wireAddon } from '@pikku/core/rpc';
|
|
308
|
+
export { wireAddon, wireRemoteAddon } from '@pikku/core/rpc';
|
|
318
309
|
/**
|
|
319
310
|
* Addon contract references. Generated from each wired addon's published
|
|
320
311
|
* contract metadata — no addon source is imported. Functions are proxied via
|