@pikku/cli 0.12.39 → 0.12.41
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-Dxl3JsMK.js → index-D9Z9rySK.js} +2 -2
- package/console-app/index.html +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +3 -3
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.d.ts +6 -6
- package/dist/.pikku/cli/pikku-cli-channel.js +16 -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 +47 -0
- package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
- package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +2 -2
- package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
- package/dist/.pikku/function/pikku-functions-meta.gen.json +229 -178
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
- package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
- package/dist/.pikku/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 +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 +5 -2
- 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 -9
- package/dist/.pikku/schemas/schemas/LogoutInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WhoamiInput.schema.json +1 -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.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -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 +45 -0
- package/dist/src/deploy/build-pipeline.d.ts +1 -0
- package/dist/src/deploy/build-pipeline.js +1 -1
- package/dist/src/fabric/fabric-commands.d.ts +63 -63
- package/dist/src/fabric/functions/db-schema.function.d.ts +3 -3
- package/dist/src/fabric/functions/deploy-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/deploy-units.function.d.ts +3 -3
- package/dist/src/fabric/functions/deploy.function.d.ts +6 -6
- package/dist/src/fabric/functions/domains-add.function.d.ts +3 -3
- package/dist/src/fabric/functions/domains-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/domains-remove.function.d.ts +3 -3
- package/dist/src/fabric/functions/errors.function.d.ts +3 -3
- package/dist/src/fabric/functions/init.function.d.ts +3 -3
- package/dist/src/fabric/functions/link.function.d.ts +3 -3
- package/dist/src/fabric/functions/llm-key.function.d.ts +3 -3
- package/dist/src/fabric/functions/login.function.d.ts +3 -3
- package/dist/src/fabric/functions/logs.function.d.ts +3 -3
- package/dist/src/fabric/functions/metrics.function.d.ts +3 -3
- package/dist/src/fabric/functions/rollback.function.d.ts +3 -3
- package/dist/src/fabric/functions/secrets-list.function.d.ts +3 -3
- package/dist/src/fabric/functions/secrets-set.function.d.ts +3 -3
- package/dist/src/fabric/functions/status.function.d.ts +3 -3
- package/dist/src/fabric/functions/trace.function.d.ts +3 -3
- package/dist/src/fabric/functions/validate-core.js +2 -7
- package/dist/src/fabric/functions/validate.function.d.ts +3 -3
- package/dist/src/fabric/functions/validate.function.js +16 -14
- package/dist/src/functions/commands/all.d.ts +1 -1
- package/dist/src/functions/commands/binary.d.ts +3 -3
- package/dist/src/functions/commands/bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/console.d.ts +3 -3
- package/dist/src/functions/commands/db-audit.d.ts +1 -1
- package/dist/src/functions/commands/db-generate.d.ts +1 -1
- package/dist/src/functions/commands/db-generate.js +0 -3
- package/dist/src/functions/commands/db-migrate.d.ts +1 -1
- package/dist/src/functions/commands/db-reset.d.ts +1 -1
- package/dist/src/functions/commands/db-reset.js +11 -7
- package/dist/src/functions/commands/db-seed.d.ts +1 -1
- package/dist/src/functions/commands/db-seed.js +4 -7
- package/dist/src/functions/commands/db-shared.js +2 -4
- package/dist/src/functions/commands/deploy-apply.d.ts +3 -3
- package/dist/src/functions/commands/deploy-apply.js +1 -0
- package/dist/src/functions/commands/deploy-info.d.ts +1 -1
- package/dist/src/functions/commands/deploy-plan.d.ts +3 -3
- package/dist/src/functions/commands/deploy-plan.js +1 -0
- package/dist/src/functions/commands/dev.d.ts +3 -3
- package/dist/src/functions/commands/dev.js +1 -1
- package/dist/src/functions/commands/emails-init.d.ts +1 -1
- package/dist/src/functions/commands/enable.d.ts +5 -5
- package/dist/src/functions/commands/info.d.ts +4 -4
- package/dist/src/functions/commands/login.d.ts +37 -0
- package/dist/src/functions/commands/login.js +85 -0
- package/dist/src/functions/commands/meta.d.ts +31 -31
- package/dist/src/functions/commands/new-addon.d.ts +3 -3
- package/dist/src/functions/commands/new-function.d.ts +3 -3
- package/dist/src/functions/commands/new-middleware.d.ts +3 -3
- package/dist/src/functions/commands/new-permission.d.ts +3 -3
- package/dist/src/functions/commands/new-wiring.d.ts +3 -3
- package/dist/src/functions/commands/pikku-command-bootstrap.d.ts +1 -1
- package/dist/src/functions/commands/pikku-command-summary.d.ts +1 -1
- package/dist/src/functions/commands/skills.d.ts +6 -6
- package/dist/src/functions/commands/tests-coverage.d.ts +3 -3
- package/dist/src/functions/commands/tests-init.d.ts +3 -3
- package/dist/src/functions/commands/versions-check.d.ts +1 -1
- package/dist/src/functions/commands/versions-init.d.ts +3 -3
- package/dist/src/functions/commands/versions-update.d.ts +1 -1
- package/dist/src/functions/commands/watch.d.ts +3 -3
- package/dist/src/functions/commands/workspace-validate.d.ts +3 -3
- package/dist/src/functions/db/local-db.d.ts +9 -5
- package/dist/src/functions/db/local-db.js +275 -107
- package/dist/src/functions/db/postgres/pglite-kysely.d.ts +8 -0
- package/dist/src/functions/db/postgres/pglite-kysely.js +79 -0
- package/dist/src/functions/db/postgres/postgres-introspector.d.ts +1 -0
- package/dist/src/functions/db/postgres/postgres-introspector.js +6 -1
- package/dist/src/functions/db/postgres/postgres-migrator.d.ts +7 -2
- package/dist/src/functions/db/postgres/postgres-migrator.js +6 -1
- package/dist/src/functions/runtimes/fetch/index.d.ts +1 -1
- package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.d.ts +1 -1
- package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.d.ts +1 -1
- package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.d.ts +1 -1
- package/dist/src/functions/validate/workspace-validate.js +4 -4
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent-types.d.ts +1 -1
- package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent.d.ts +1 -1
- package/dist/src/functions/wirings/ai-agent/pikku-command-public-agent.d.ts +1 -1
- package/dist/src/functions/wirings/auth/pikku-command-auth.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-channels.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -1
- package/dist/src/functions/wirings/channels/pikku-command-channels.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli-entry.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +1 -1
- package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -1
- package/dist/src/functions/wirings/cli/serialize-channel-cli-client.js +38 -7
- package/dist/src/functions/wirings/console/pikku-command-console-functions.d.ts +1 -1
- package/dist/src/functions/wirings/console/pikku-command-node-types.d.ts +1 -1
- package/dist/src/functions/wirings/console/pikku-command-nodes-meta.d.ts +1 -1
- package/dist/src/functions/wirings/credentials/pikku-command-credentials.d.ts +1 -1
- package/dist/src/functions/wirings/emails/pikku-command-emails.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-addon-types.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +3 -3
- package/dist/src/functions/wirings/functions/pikku-command-function-types.d.ts +3 -3
- package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -1
- package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
- package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
- package/dist/src/functions/wirings/gateway/pikku-command-gateway.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-routes.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-http-types.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -1
- package/dist/src/functions/wirings/http/pikku-http-routes.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.d.ts +1 -1
- package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -1
- package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -1
- package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +2 -2
- package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -1
- package/dist/src/functions/wirings/permissions/pikku-command-permissions.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-map.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-service.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue-types.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-command-queue.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-queue-map.d.ts +1 -1
- package/dist/src/functions/wirings/queue/pikku-queue.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.d.ts +1 -1
- package/dist/src/functions/wirings/realtime/pikku-command-realtime.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.d.ts +1 -1
- package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +2 -2
- package/dist/src/functions/wirings/rpc/pikku-command-rpc.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -1
- package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -1
- package/dist/src/functions/wirings/secrets/pikku-command-secrets.d.ts +1 -1
- package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.d.ts +3 -3
- package/dist/src/functions/wirings/triggers/pikku-command-trigger.d.ts +1 -1
- package/dist/src/functions/wirings/variables/pikku-command-variables.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +1 -1
- package/dist/src/scaffold/rpc-remote.gen.d.ts +3 -3
- package/dist/src/scaffold/rpc-remote.gen.js +1 -1
- package/dist/src/utils/cli-session.d.ts +40 -0
- package/dist/src/utils/cli-session.js +73 -0
- package/dist/src/utils/device-auth.d.ts +28 -0
- package/dist/src/utils/device-auth.js +111 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/skills/pikku-machine-auth/SKILL.md +177 -0
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
"pikkuOpenAPI": "pikkuOpenAPI",
|
|
10
10
|
"pikkuNext": "pikkuNext",
|
|
11
11
|
"pikkuEmails": "pikkuEmails",
|
|
12
|
+
"login": "login",
|
|
13
|
+
"logout": "logout",
|
|
14
|
+
"whoami": "whoami",
|
|
12
15
|
"pikkuEmailsInit": "pikkuEmailsInit",
|
|
13
16
|
"pikkuInfoFunctions": "pikkuInfoFunctions",
|
|
14
17
|
"pikkuInfoTags": "pikkuInfoTags",
|
|
@@ -107,11 +110,11 @@
|
|
|
107
110
|
"pikkuNodeTypes": "pikkuNodeTypes",
|
|
108
111
|
"pikkuNodesMeta": "pikkuNodesMeta",
|
|
109
112
|
"pikkuCredentials": "pikkuCredentials",
|
|
113
|
+
"pikkuGateway": "pikkuGateway",
|
|
110
114
|
"pikkuFunctionTypesSplit": "pikkuFunctionTypesSplit",
|
|
111
115
|
"pikkuFunctionTypes": "pikkuFunctionTypes",
|
|
112
116
|
"pikkuFunctions": "pikkuFunctions",
|
|
113
117
|
"pikkuServices": "pikkuServices",
|
|
114
|
-
"pikkuGateway": "pikkuGateway",
|
|
115
118
|
"pikkuHTTPMap": "pikkuHTTPMap",
|
|
116
119
|
"pikkuCommandHTTP": "pikkuCommandHTTP",
|
|
117
120
|
"pikkuHTTPTypes": "pikkuHTTPTypes",
|
|
@@ -124,12 +127,12 @@
|
|
|
124
127
|
"pikkuVariableDefinitionTypes": "pikkuVariableDefinitionTypes",
|
|
125
128
|
"pikkuPackage": "pikkuPackage",
|
|
126
129
|
"pikkuPermissions": "pikkuPermissions",
|
|
127
|
-
"pikkuEventsScaffold": "pikkuEventsScaffold",
|
|
128
130
|
"pikkuCommandQueueMap": "pikkuCommandQueueMap",
|
|
129
131
|
"pikkuQueueTypes": "pikkuQueueTypes",
|
|
130
132
|
"pikkuCommandQueue": "pikkuCommandQueue",
|
|
131
133
|
"pikkuQueueMap": "pikkuQueueMap",
|
|
132
134
|
"pikkuQueue": "pikkuQueue",
|
|
135
|
+
"pikkuEventsScaffold": "pikkuEventsScaffold",
|
|
133
136
|
"pikkuPublicRPC": "pikkuPublicRPC",
|
|
134
137
|
"pikkuRemoteRPC": "pikkuRemoteRPC",
|
|
135
138
|
"pikkuRPCInternalMap": "pikkuRPCInternalMap",
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.41
|
|
3
3
|
*/
|
|
4
4
|
import { addSchema } from '@pikku/core/schema';
|
|
5
5
|
import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' with { type: 'json' };
|
|
6
6
|
addSchema('PikkuSchemasOutput', PikkuSchemasOutput);
|
|
7
7
|
import * as PikkuEmailsOutput from './schemas/PikkuEmailsOutput.schema.json' with { type: 'json' };
|
|
8
8
|
addSchema('PikkuEmailsOutput', PikkuEmailsOutput);
|
|
9
|
+
import * as LogoutInput from './schemas/LogoutInput.schema.json' with { type: 'json' };
|
|
10
|
+
addSchema('LogoutInput', LogoutInput);
|
|
11
|
+
import * as WhoamiInput from './schemas/WhoamiInput.schema.json' with { type: 'json' };
|
|
12
|
+
addSchema('WhoamiInput', WhoamiInput);
|
|
9
13
|
import * as BootstrapInput from './schemas/BootstrapInput.schema.json' with { type: 'json' };
|
|
10
14
|
addSchema('BootstrapInput', BootstrapInput);
|
|
11
15
|
import * as PikkuWorkflowOutput from './schemas/PikkuWorkflowOutput.schema.json' with { type: 'json' };
|
|
@@ -180,12 +184,12 @@ import * as PikkuMetaClientsInput from './schemas/PikkuMetaClientsInput.schema.j
|
|
|
180
184
|
addSchema('PikkuMetaClientsInput', PikkuMetaClientsInput);
|
|
181
185
|
import * as RemoteRPCHandlerInput from './schemas/RemoteRPCHandlerInput.schema.json' with { type: 'json' };
|
|
182
186
|
addSchema('RemoteRPCHandlerInput', RemoteRPCHandlerInput);
|
|
183
|
-
import * as PikkuCommandChannelsOutput from './schemas/PikkuCommandChannelsOutput.schema.json' with { type: 'json' };
|
|
184
|
-
addSchema('PikkuCommandChannelsOutput', PikkuCommandChannelsOutput);
|
|
185
187
|
import * as PikkuAIAgentOutput from './schemas/PikkuAIAgentOutput.schema.json' with { type: 'json' };
|
|
186
188
|
addSchema('PikkuAIAgentOutput', PikkuAIAgentOutput);
|
|
187
189
|
import * as PikkuPublicAgentOutput from './schemas/PikkuPublicAgentOutput.schema.json' with { type: 'json' };
|
|
188
190
|
addSchema('PikkuPublicAgentOutput', PikkuPublicAgentOutput);
|
|
191
|
+
import * as PikkuCommandChannelsOutput from './schemas/PikkuCommandChannelsOutput.schema.json' with { type: 'json' };
|
|
192
|
+
addSchema('PikkuCommandChannelsOutput', PikkuCommandChannelsOutput);
|
|
189
193
|
import * as PikkuCLIEntryOutput from './schemas/PikkuCLIEntryOutput.schema.json' with { type: 'json' };
|
|
190
194
|
addSchema('PikkuCLIEntryOutput', PikkuCLIEntryOutput);
|
|
191
195
|
import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' };
|
|
@@ -200,6 +204,8 @@ import * as PikkuFunctionTypesInput from './schemas/PikkuFunctionTypesInput.sche
|
|
|
200
204
|
addSchema('PikkuFunctionTypesInput', PikkuFunctionTypesInput);
|
|
201
205
|
import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' };
|
|
202
206
|
addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput);
|
|
207
|
+
import * as PikkuGatewayOutput from './schemas/PikkuGatewayOutput.schema.json' with { type: 'json' };
|
|
208
|
+
addSchema('PikkuGatewayOutput', PikkuGatewayOutput);
|
|
203
209
|
import * as PikkuCommandHTTPOutput from './schemas/PikkuCommandHTTPOutput.schema.json' with { type: 'json' };
|
|
204
210
|
addSchema('PikkuCommandHTTPOutput', PikkuCommandHTTPOutput);
|
|
205
211
|
import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' };
|
|
@@ -210,24 +216,22 @@ import * as PikkuMiddlewareOutput from './schemas/PikkuMiddlewareOutput.schema.j
|
|
|
210
216
|
addSchema('PikkuMiddlewareOutput', PikkuMiddlewareOutput);
|
|
211
217
|
import * as PikkuPackageOutput from './schemas/PikkuPackageOutput.schema.json' with { type: 'json' };
|
|
212
218
|
addSchema('PikkuPackageOutput', PikkuPackageOutput);
|
|
213
|
-
import * as PikkuGatewayOutput from './schemas/PikkuGatewayOutput.schema.json' with { type: 'json' };
|
|
214
|
-
addSchema('PikkuGatewayOutput', PikkuGatewayOutput);
|
|
215
219
|
import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema.json' with { type: 'json' };
|
|
216
220
|
addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput);
|
|
221
|
+
import * as PikkuEventsScaffoldOutput from './schemas/PikkuEventsScaffoldOutput.schema.json' with { type: 'json' };
|
|
222
|
+
addSchema('PikkuEventsScaffoldOutput', PikkuEventsScaffoldOutput);
|
|
217
223
|
import * as PikkuCommandQueueOutput from './schemas/PikkuCommandQueueOutput.schema.json' with { type: 'json' };
|
|
218
224
|
addSchema('PikkuCommandQueueOutput', PikkuCommandQueueOutput);
|
|
219
225
|
import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' };
|
|
220
226
|
addSchema('PikkuQueueOutput', PikkuQueueOutput);
|
|
221
|
-
import * as PikkuEventsScaffoldOutput from './schemas/PikkuEventsScaffoldOutput.schema.json' with { type: 'json' };
|
|
222
|
-
addSchema('PikkuEventsScaffoldOutput', PikkuEventsScaffoldOutput);
|
|
223
|
-
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
224
|
-
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
225
227
|
import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' };
|
|
226
228
|
addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput);
|
|
227
229
|
import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' };
|
|
228
230
|
addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput);
|
|
229
231
|
import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' };
|
|
230
232
|
addSchema('PikkuRPCOutput', PikkuRPCOutput);
|
|
233
|
+
import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' };
|
|
234
|
+
addSchema('PikkuSchedulerOutput', PikkuSchedulerOutput);
|
|
231
235
|
import * as PikkuTriggerTypesInput from './schemas/PikkuTriggerTypesInput.schema.json' with { type: 'json' };
|
|
232
236
|
addSchema('PikkuTriggerTypesInput', PikkuTriggerTypesInput);
|
|
233
237
|
import * as PikkuTriggerOutput from './schemas/PikkuTriggerOutput.schema.json' with { type: 'json' };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "url": { "type": "string" } }, "additionalProperties": false, "definitions": {} }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "url": { "type": "string" } }, "additionalProperties": false, "definitions": {} }
|
|
@@ -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.41
|
|
3
3
|
*/
|
|
4
4
|
export { wireVariable } from '@pikku/core/variable';
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
|
package/dist/bin/pikku-bin.mjs
CHANGED
|
@@ -11,8 +11,8 @@ async function checkForUpdate() {
|
|
|
11
11
|
})
|
|
12
12
|
if (!res.ok) return
|
|
13
13
|
const { version: latest } = await res.json()
|
|
14
|
-
if (latest !== '0.12.
|
|
15
|
-
process.stderr.write(`\n Update available 0.12.
|
|
14
|
+
if (latest !== '0.12.41') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.41 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
|
|
16
16
|
}
|
|
17
17
|
} catch {}
|
|
18
18
|
}
|
package/dist/src/cli.wiring.js
CHANGED
|
@@ -14,6 +14,7 @@ import { all } from './functions/commands/all.js';
|
|
|
14
14
|
import { bootstrap } from './functions/commands/bootstrap.js';
|
|
15
15
|
import { watch } from './functions/commands/watch.js';
|
|
16
16
|
import { consoleCommand } from './functions/commands/console.js';
|
|
17
|
+
import { login, logout, whoami } from './functions/commands/login.js';
|
|
17
18
|
import { dev } from './functions/commands/dev.js';
|
|
18
19
|
import { dbMigrate } from './functions/commands/db-migrate.js';
|
|
19
20
|
import { dbGenerate } from './functions/commands/db-generate.js';
|
|
@@ -195,6 +196,50 @@ wireCLI({
|
|
|
195
196
|
},
|
|
196
197
|
},
|
|
197
198
|
}),
|
|
199
|
+
login: pikkuCLICommand({
|
|
200
|
+
func: login,
|
|
201
|
+
description: 'Authenticate the CLI against a pikku server (device-authorization flow)',
|
|
202
|
+
options: {
|
|
203
|
+
url: {
|
|
204
|
+
description: 'Server base URL (default: http://localhost:3000)',
|
|
205
|
+
short: 'u',
|
|
206
|
+
},
|
|
207
|
+
clientId: {
|
|
208
|
+
description: 'Client identifier sent to the device flow',
|
|
209
|
+
default: 'pikku-cli',
|
|
210
|
+
},
|
|
211
|
+
scope: {
|
|
212
|
+
description: 'Optional space-separated scopes to request',
|
|
213
|
+
},
|
|
214
|
+
authPath: {
|
|
215
|
+
description: "better-auth base path (default: '/auth')",
|
|
216
|
+
},
|
|
217
|
+
open: {
|
|
218
|
+
description: 'Open the verification URL in a browser',
|
|
219
|
+
default: true,
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
}),
|
|
223
|
+
logout: pikkuCLICommand({
|
|
224
|
+
func: logout,
|
|
225
|
+
description: 'Remove a stored CLI session',
|
|
226
|
+
options: {
|
|
227
|
+
url: {
|
|
228
|
+
description: 'Server base URL to log out of (default: current)',
|
|
229
|
+
short: 'u',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
}),
|
|
233
|
+
whoami: pikkuCLICommand({
|
|
234
|
+
func: whoami,
|
|
235
|
+
description: 'Show the current CLI session',
|
|
236
|
+
options: {
|
|
237
|
+
url: {
|
|
238
|
+
description: 'Server base URL to inspect (default: current)',
|
|
239
|
+
short: 'u',
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
}),
|
|
198
243
|
schemas: pikkuCLICommand({
|
|
199
244
|
func: pikkuSchemas,
|
|
200
245
|
description: 'Generate JSON schemas for function input/output types',
|
|
@@ -37,5 +37,6 @@ export declare function runBuildPipeline(options: {
|
|
|
37
37
|
serverlessIncompatible?: string[];
|
|
38
38
|
getEntryContext: (unitDir: string, pikkuDir: string, unit: DeploymentManifest['units'][0], state: InspectorState) => unknown;
|
|
39
39
|
deployDir?: string;
|
|
40
|
+
outDir?: string;
|
|
40
41
|
logger: BuildLogger;
|
|
41
42
|
}): Promise<BuildPipelineResult>;
|
|
@@ -71,7 +71,7 @@ export async function runBuildPipeline(options) {
|
|
|
71
71
|
};
|
|
72
72
|
manifest.units = [singleUnit];
|
|
73
73
|
const unitDir = join(providerDir, unitName);
|
|
74
|
-
const pikkuDir = join(projectDir, '.pikku');
|
|
74
|
+
const pikkuDir = options.outDir ?? join(projectDir, '.pikku');
|
|
75
75
|
await mkdir(unitDir, { recursive: true });
|
|
76
76
|
const ctx = getEntryContext(unitDir, pikkuDir, singleUnit, inspectorState);
|
|
77
77
|
const source = provider.generateEntrySource(ctx);
|