@pikku/cli 0.12.54 → 0.12.56
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-DYnbceYg.js → index-xN8LW0II.js} +155 -155
- 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 +11 -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-contracts-meta.gen.json +14 -0
- 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 +29 -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 +8 -31
- 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 +1420 -1384
- package/dist/.pikku/function/pikku-functions.gen.js +3 -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 +4 -2
- package/dist/.pikku/pikku-services.gen.js +2 -0
- package/dist/.pikku/pikku-types.gen.d.ts +1 -1
- package/dist/.pikku/pikku-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
- package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
- package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +0 -248
- 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 +69 -67
- 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 +191 -185
- package/dist/.pikku/schemas/schemas/FabricAddonVerifyInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricAddonVerifyOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuAuthInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
- package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
- package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
- package/dist/.pikku/workflow/meta/allWorkflow.gen.json +9 -3
- 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 +15 -1
- package/dist/src/deploy/analyzer/analyzer.d.ts +6 -0
- package/dist/src/deploy/analyzer/analyzer.js +5 -4
- package/dist/src/deploy/build-pipeline.d.ts +5 -1
- package/dist/src/deploy/build-pipeline.js +5 -5
- package/dist/src/deploy/bundler/bun-bundler.d.ts +14 -0
- package/dist/src/deploy/bundler/bun-bundler.js +121 -0
- package/dist/src/deploy/bundler/bundler.d.ts +25 -30
- package/dist/src/deploy/bundler/bundler.interface.d.ts +54 -0
- package/dist/src/deploy/bundler/bundler.interface.js +11 -0
- package/dist/src/deploy/bundler/bundler.js +120 -190
- package/dist/src/deploy/bundler/dep-extractor.d.ts +11 -3
- package/dist/src/deploy/bundler/dep-extractor.js +12 -6
- package/dist/src/deploy/bundler/index.d.ts +5 -2
- package/dist/src/deploy/bundler/index.js +4 -2
- package/dist/src/deploy/bundler/node-bundler.d.ts +13 -0
- package/dist/src/deploy/bundler/node-bundler.js +80 -0
- package/dist/src/deploy/provider-adapter.d.ts +11 -0
- package/dist/src/deploy/server-entry.js +3 -1
- package/dist/src/fabric/fabric-commands.d.ts +109 -72
- package/dist/src/fabric/fabric-commands.js +8 -0
- package/dist/src/fabric/functions/add.function.d.ts +3 -3
- package/dist/src/fabric/functions/addon-verify.function.d.ts +54 -0
- package/dist/src/fabric/functions/addon-verify.function.js +153 -0
- 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/llm-key.function.js +1 -1
- 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/publish.function.d.ts +3 -3
- package/dist/src/fabric/functions/publish.function.js +8 -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/smoke.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.function.d.ts +3 -3
- package/dist/src/functions/commands/all.d.ts +1 -1
- package/dist/src/functions/commands/all.js +19 -2
- 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/bootstrap.js +3 -0
- 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-migrate.d.ts +1 -1
- package/dist/src/functions/commands/db-reset.d.ts +1 -1
- package/dist/src/functions/commands/db-seed.d.ts +1 -1
- package/dist/src/functions/commands/deploy-apply.d.ts +3 -3
- package/dist/src/functions/commands/deploy-apply.js +32 -1
- 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 +3 -1
- package/dist/src/functions/commands/dev.d.ts +3 -3
- package/dist/src/functions/commands/dev.js +17 -45
- package/dist/src/functions/commands/emails-init.d.ts +1 -1
- package/dist/src/functions/commands/enable.d.ts +6 -5
- package/dist/src/functions/commands/enable.js +4 -0
- package/dist/src/functions/commands/info.d.ts +4 -4
- package/dist/src/functions/commands/login.d.ts +7 -7
- 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/pikku-command-summary.js +6 -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/db-codegen.js +14 -0
- package/dist/src/functions/db/sqlite/sqlite-runtime-bun.js +10 -0
- 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/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 +7 -1
- package/dist/src/functions/wirings/auth/pikku-command-auth.js +14 -2
- package/dist/src/functions/wirings/auth/serialize-auth-types.d.ts +10 -0
- package/dist/src/functions/wirings/auth/serialize-auth-types.js +15 -0
- 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/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-function-types.js +10 -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/functions/serialize-function-types.js +6 -29
- 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/functions/workflows/all.workflow.js +6 -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/server/bun-server-runner.d.ts +17 -0
- package/dist/src/server/bun-server-runner.js +25 -0
- package/dist/src/server/dev-server-runner.interface.d.ts +31 -0
- package/dist/src/server/dev-server-runner.interface.js +11 -0
- package/dist/src/server/node-server-runner.d.ts +12 -0
- package/dist/src/server/node-server-runner.js +30 -0
- package/dist/src/services/cli-logger.service.js +7 -1
- package/dist/src/services.js +18 -0
- package/dist/src/utils/detect-better-auth.d.ts +7 -0
- package/dist/src/utils/detect-better-auth.js +29 -0
- package/dist/src/utils/parse-cli-filters.d.ts +1 -0
- package/dist/src/utils/parse-cli-filters.js +1 -0
- package/dist/src/utils/pikku-cli-config.js +1 -1
- package/dist/src/utils/serialize-schemas.js +5 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/skills/pikku-addon/SKILL.md +25 -117
- package/skills/pikku-addon/references/addon-package-manifest.md +63 -0
- package/skills/pikku-cli/SKILL.md +7 -93
- package/skills/pikku-cli/references/complete-example.md +82 -0
- package/skills/pikku-concepts/SKILL.md +17 -69
- package/skills/pikku-concepts/references/concept-mapping.md +37 -13
- package/skills/pikku-concepts/references/packages.md +29 -0
- package/skills/pikku-http/SKILL.md +14 -105
- package/skills/pikku-http/references/http-options.md +57 -0
- package/skills/pikku-middleware/SKILL.md +11 -68
- package/skills/pikku-middleware/references/middleware-patterns.md +61 -0
- package/skills/pikku-realtime/SKILL.md +56 -105
- package/skills/pikku-realtime/references/other-routes.md +23 -0
- package/skills/pikku-services/SKILL.md +25 -108
- package/skills/pikku-services/references/audit-wire-service.md +34 -0
- package/skills/pikku-testing/SKILL.md +51 -359
- package/skills/pikku-testing/references/cucumber-bdd-testing.md +176 -0
- package/skills/pikku-workflow/SKILL.md +93 -259
- package/skills/pikku-workflow/references/workflow-reference.md +63 -0
|
@@ -42,6 +42,7 @@ import { FabricValidate, renderValidate, } from './functions/validate.function.j
|
|
|
42
42
|
import { FabricSmoke, renderSmoke } from './functions/smoke.function.js';
|
|
43
43
|
import { FabricPublish } from './functions/publish.function.js';
|
|
44
44
|
import { FabricAdd } from './functions/add.function.js';
|
|
45
|
+
import { FabricAddonVerify, renderAddonVerify, } from './functions/addon-verify.function.js';
|
|
45
46
|
export const fabricCommands = defineCLICommands({
|
|
46
47
|
validate: pikkuCLICommand({
|
|
47
48
|
func: FabricValidate,
|
|
@@ -108,9 +109,16 @@ export const fabricCommands = defineCLICommands({
|
|
|
108
109
|
addon: {
|
|
109
110
|
description: 'Publish and install Fabric community-registry addons',
|
|
110
111
|
subcommands: {
|
|
112
|
+
verify: pikkuCLICommand({
|
|
113
|
+
parameters: '[dir]',
|
|
114
|
+
func: FabricAddonVerify,
|
|
115
|
+
description: 'Verify an addon directory is correctly built and ready to publish',
|
|
116
|
+
render: renderAddonVerify,
|
|
117
|
+
}),
|
|
111
118
|
publish: pikkuCLICommand({
|
|
112
119
|
parameters: '[dir]',
|
|
113
120
|
func: FabricPublish,
|
|
121
|
+
render: renderAddonVerify,
|
|
114
122
|
description: 'Publish the addon in this directory to the community registry (pack + upload)',
|
|
115
123
|
options: {
|
|
116
124
|
apiUrl: { description: 'Override the fabric-api URL for this call' },
|
|
@@ -29,7 +29,7 @@ export declare const FabricAdd: import("../../../.pikku/pikku-types.gen.js").Pik
|
|
|
29
29
|
name: string;
|
|
30
30
|
version: string;
|
|
31
31
|
path: string;
|
|
32
|
-
}, "
|
|
32
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
33
33
|
id: string;
|
|
34
34
|
dir?: string | undefined;
|
|
35
35
|
apiUrl?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const FabricAdd: import("../../../.pikku/pikku-types.gen.js").Pik
|
|
|
38
38
|
name: string;
|
|
39
39
|
version: string;
|
|
40
40
|
path: string;
|
|
41
|
-
}, "
|
|
41
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
42
42
|
id: string;
|
|
43
43
|
dir?: string | undefined;
|
|
44
44
|
apiUrl?: string | undefined;
|
|
@@ -47,4 +47,4 @@ export declare const FabricAdd: import("../../../.pikku/pikku-types.gen.js").Pik
|
|
|
47
47
|
name: string;
|
|
48
48
|
version: string;
|
|
49
49
|
path: string;
|
|
50
|
-
}, "
|
|
50
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FabricAddonVerifyInput: z.ZodObject<{
|
|
3
|
+
dir: z.ZodOptional<z.ZodString>;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const FabricAddonVerifyOutputSchema: z.ZodObject<{
|
|
6
|
+
ok: z.ZodBoolean;
|
|
7
|
+
addonDir: z.ZodString;
|
|
8
|
+
packageName: z.ZodOptional<z.ZodString>;
|
|
9
|
+
version: z.ZodOptional<z.ZodString>;
|
|
10
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
ok: z.ZodBoolean;
|
|
13
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type FabricAddonVerifyOutput = z.infer<typeof FabricAddonVerifyOutputSchema>;
|
|
17
|
+
export declare const FabricAddonVerify: import("../../../.pikku/pikku-types.gen.js").PikkuFunctionConfig<{
|
|
18
|
+
dir?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
ok: boolean;
|
|
21
|
+
addonDir: string;
|
|
22
|
+
checks: {
|
|
23
|
+
name: string;
|
|
24
|
+
ok: boolean;
|
|
25
|
+
detail?: string | undefined;
|
|
26
|
+
}[];
|
|
27
|
+
packageName?: string | undefined;
|
|
28
|
+
version?: string | undefined;
|
|
29
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
30
|
+
dir?: string | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
ok: boolean;
|
|
33
|
+
addonDir: string;
|
|
34
|
+
checks: {
|
|
35
|
+
name: string;
|
|
36
|
+
ok: boolean;
|
|
37
|
+
detail?: string | undefined;
|
|
38
|
+
}[];
|
|
39
|
+
packageName?: string | undefined;
|
|
40
|
+
version?: string | undefined;
|
|
41
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
42
|
+
dir?: string | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
ok: boolean;
|
|
45
|
+
addonDir: string;
|
|
46
|
+
checks: {
|
|
47
|
+
name: string;
|
|
48
|
+
ok: boolean;
|
|
49
|
+
detail?: string | undefined;
|
|
50
|
+
}[];
|
|
51
|
+
packageName?: string | undefined;
|
|
52
|
+
version?: string | undefined;
|
|
53
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
54
|
+
export declare function renderAddonVerify(_s: unknown, result: FabricAddonVerifyOutput): void;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { existsSync } from 'node:fs';
|
|
4
|
+
import { join, resolve } from 'node:path';
|
|
5
|
+
import { pikkuSessionlessFunc } from '../../../.pikku/pikku-types.gen.js';
|
|
6
|
+
import { added, removed, dim } from '../lib/output.js';
|
|
7
|
+
const CheckSchema = z.object({
|
|
8
|
+
name: z.string(),
|
|
9
|
+
ok: z.boolean(),
|
|
10
|
+
detail: z.string().optional(),
|
|
11
|
+
});
|
|
12
|
+
export const FabricAddonVerifyInput = z.object({
|
|
13
|
+
dir: z.string().optional(),
|
|
14
|
+
});
|
|
15
|
+
export const FabricAddonVerifyOutputSchema = z.object({
|
|
16
|
+
ok: z.boolean(),
|
|
17
|
+
addonDir: z.string(),
|
|
18
|
+
packageName: z.string().optional(),
|
|
19
|
+
version: z.string().optional(),
|
|
20
|
+
checks: z.array(CheckSchema),
|
|
21
|
+
});
|
|
22
|
+
async function readJsonSafe(path) {
|
|
23
|
+
if (!existsSync(path))
|
|
24
|
+
return { ok: false, reason: 'missing' };
|
|
25
|
+
try {
|
|
26
|
+
return { ok: true, value: JSON.parse(await readFile(path, 'utf8')) };
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return { ok: false, reason: 'invalid' };
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export const FabricAddonVerify = pikkuSessionlessFunc({
|
|
33
|
+
description: 'Verify an addon directory is correctly built and ready to publish',
|
|
34
|
+
input: FabricAddonVerifyInput,
|
|
35
|
+
output: FabricAddonVerifyOutputSchema,
|
|
36
|
+
func: async (_services, { dir }) => {
|
|
37
|
+
const addonDir = resolve(dir ?? process.cwd());
|
|
38
|
+
const checks = [];
|
|
39
|
+
const pass = (name, detail) => ({
|
|
40
|
+
name,
|
|
41
|
+
ok: true,
|
|
42
|
+
detail,
|
|
43
|
+
});
|
|
44
|
+
const fail = (name, detail) => ({
|
|
45
|
+
name,
|
|
46
|
+
ok: false,
|
|
47
|
+
detail,
|
|
48
|
+
});
|
|
49
|
+
const pkgResult = await readJsonSafe(join(addonDir, 'package.json'));
|
|
50
|
+
if (!pkgResult.ok) {
|
|
51
|
+
checks.push(fail('package.json', pkgResult.reason === 'missing' ? 'not found' : 'invalid JSON'));
|
|
52
|
+
return { ok: false, addonDir, checks };
|
|
53
|
+
}
|
|
54
|
+
checks.push(pass('package.json'));
|
|
55
|
+
const pkg = pkgResult.value;
|
|
56
|
+
if (!pkg.name)
|
|
57
|
+
checks.push(fail('package name', 'missing name field'));
|
|
58
|
+
else
|
|
59
|
+
checks.push(pass('package name', pkg.name));
|
|
60
|
+
if (!pkg.version)
|
|
61
|
+
checks.push(fail('package version', 'missing version field'));
|
|
62
|
+
else
|
|
63
|
+
checks.push(pass('package version', pkg.version));
|
|
64
|
+
const hasDistInFiles = pkg.files?.some((f) => f === 'dist' || f === 'dist/' || f.startsWith('dist/'));
|
|
65
|
+
if (!hasDistInFiles) {
|
|
66
|
+
checks.push(fail('files field', 'must include "dist" (or "dist/", "dist/**/*")'));
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
checks.push(pass('files field', '"dist" included'));
|
|
70
|
+
}
|
|
71
|
+
const pikkuConfigResult = await readJsonSafe(join(addonDir, 'pikku.config.json'));
|
|
72
|
+
if (!pikkuConfigResult.ok) {
|
|
73
|
+
checks.push(fail('pikku.config.json', pikkuConfigResult.reason === 'missing' ? 'not found' : 'invalid JSON'));
|
|
74
|
+
}
|
|
75
|
+
else if (!pikkuConfigResult.value.addon) {
|
|
76
|
+
checks.push(fail('pikku.config.json', 'addon: true not set'));
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
checks.push(pass('pikku.config.json', 'addon: true'));
|
|
80
|
+
}
|
|
81
|
+
if (!existsSync(join(addonDir, 'dist'))) {
|
|
82
|
+
checks.push(fail('dist/', 'not found — run build first'));
|
|
83
|
+
return {
|
|
84
|
+
ok: false,
|
|
85
|
+
addonDir,
|
|
86
|
+
packageName: pkg.name,
|
|
87
|
+
version: pkg.version,
|
|
88
|
+
checks,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
checks.push(pass('dist/'));
|
|
92
|
+
const distPikku = join(addonDir, 'dist', '.pikku');
|
|
93
|
+
if (!existsSync(distPikku)) {
|
|
94
|
+
checks.push(fail('dist/.pikku/', 'missing — build script must run `cp -r .pikku dist/`'));
|
|
95
|
+
return {
|
|
96
|
+
ok: false,
|
|
97
|
+
addonDir,
|
|
98
|
+
packageName: pkg.name,
|
|
99
|
+
version: pkg.version,
|
|
100
|
+
checks,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
checks.push(pass('dist/.pikku/'));
|
|
104
|
+
const funcsMetaResult = await readJsonSafe(join(distPikku, 'function', 'pikku-functions-meta.gen.json'));
|
|
105
|
+
const funcCount = funcsMetaResult.ok
|
|
106
|
+
? Object.keys(funcsMetaResult.value).length
|
|
107
|
+
: 0;
|
|
108
|
+
if (funcCount === 0) {
|
|
109
|
+
checks.push(fail('functions', 'no functions found in dist/.pikku/function/pikku-functions-meta.gen.json'));
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
checks.push(pass('functions', `${funcCount} function${funcCount === 1 ? '' : 's'} exported`));
|
|
113
|
+
}
|
|
114
|
+
const schemasDir = join(distPikku, 'schemas', 'schemas');
|
|
115
|
+
checks.push(pass('schemas dir', existsSync(schemasDir) ? 'present' : 'empty (ok)'));
|
|
116
|
+
if (!existsSync(join(addonDir, 'README.md'))) {
|
|
117
|
+
checks.push(fail('README.md', 'missing'));
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
checks.push(pass('README.md'));
|
|
121
|
+
}
|
|
122
|
+
const consoleMetaResult = await readJsonSafe(join(distPikku, 'console', 'pikku-addon-meta.gen.json'));
|
|
123
|
+
const icon = consoleMetaResult.ok
|
|
124
|
+
? consoleMetaResult.value.package?.icon
|
|
125
|
+
: undefined;
|
|
126
|
+
if (!icon) {
|
|
127
|
+
checks.push({ name: 'icon', ok: true, detail: 'none (optional)' });
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
checks.push(pass('icon', icon.slice(0, 40)));
|
|
131
|
+
}
|
|
132
|
+
const ok = checks.every((c) => c.ok);
|
|
133
|
+
return { ok, addonDir, packageName: pkg.name, version: pkg.version, checks };
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
export function renderAddonVerify(_s, result) {
|
|
137
|
+
console.log(`\n${dim('Addon:')} ${result.packageName ?? '(unknown)'}@${result.version ?? '?'}`);
|
|
138
|
+
console.log(`${dim('Dir: ')} ${result.addonDir}\n`);
|
|
139
|
+
for (const c of result.checks) {
|
|
140
|
+
const icon = c.ok ? added('✓') : removed('✗');
|
|
141
|
+
const label = c.ok ? c.name : removed(c.name);
|
|
142
|
+
const detail = c.detail ? ` ${dim(c.detail)}` : '';
|
|
143
|
+
console.log(` ${icon} ${label}${detail}`);
|
|
144
|
+
}
|
|
145
|
+
console.log('');
|
|
146
|
+
if (result.ok) {
|
|
147
|
+
console.log(added(' Ready to publish.'));
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
console.log(removed(' Fix the errors above before publishing.'));
|
|
151
|
+
process.exitCode = 1;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -11,17 +11,17 @@ export declare const FabricDbSchema: import("../../../.pikku/pikku-types.gen.js"
|
|
|
11
11
|
}, {
|
|
12
12
|
branch: string;
|
|
13
13
|
schema: any;
|
|
14
|
-
}, "
|
|
14
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
15
15
|
branch: string;
|
|
16
16
|
}, {
|
|
17
17
|
branch: string;
|
|
18
18
|
schema: any;
|
|
19
|
-
}, "
|
|
19
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
20
20
|
branch: string;
|
|
21
21
|
}, {
|
|
22
22
|
branch: string;
|
|
23
23
|
schema: any;
|
|
24
|
-
}, "
|
|
24
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
25
25
|
type Schema = {
|
|
26
26
|
tables?: {
|
|
27
27
|
name: string;
|
|
@@ -11,17 +11,17 @@ export declare const FabricDeployList: import("../../../.pikku/pikku-types.gen.j
|
|
|
11
11
|
}, {
|
|
12
12
|
branch: string;
|
|
13
13
|
deployments: any[];
|
|
14
|
-
}, "
|
|
14
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
15
15
|
branch: string;
|
|
16
16
|
}, {
|
|
17
17
|
branch: string;
|
|
18
18
|
deployments: any[];
|
|
19
|
-
}, "
|
|
19
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
20
20
|
branch: string;
|
|
21
21
|
}, {
|
|
22
22
|
branch: string;
|
|
23
23
|
deployments: any[];
|
|
24
|
-
}, "
|
|
24
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
25
25
|
type DeploymentRow = {
|
|
26
26
|
deploymentId: string;
|
|
27
27
|
status: string;
|
|
@@ -11,17 +11,17 @@ export declare const FabricDeployUnits: import("../../../.pikku/pikku-types.gen.
|
|
|
11
11
|
}, {
|
|
12
12
|
branch: string;
|
|
13
13
|
workers: any[];
|
|
14
|
-
}, "
|
|
14
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
15
15
|
branch: string;
|
|
16
16
|
}, {
|
|
17
17
|
branch: string;
|
|
18
18
|
workers: any[];
|
|
19
|
-
}, "
|
|
19
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
20
20
|
branch: string;
|
|
21
21
|
}, {
|
|
22
22
|
branch: string;
|
|
23
23
|
workers: any[];
|
|
24
|
-
}, "
|
|
24
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
25
25
|
type WorkerRow = {
|
|
26
26
|
name: string;
|
|
27
27
|
role: string;
|
|
@@ -38,7 +38,7 @@ export declare const FabricDeployPlan: import("../../../.pikku/pikku-types.gen.j
|
|
|
38
38
|
branch: string;
|
|
39
39
|
ref: string;
|
|
40
40
|
requestedRef?: string | undefined;
|
|
41
|
-
}, "
|
|
41
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
42
42
|
branch?: string | undefined;
|
|
43
43
|
production?: boolean | undefined;
|
|
44
44
|
ref?: string | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const FabricDeployPlan: import("../../../.pikku/pikku-types.gen.j
|
|
|
49
49
|
branch: string;
|
|
50
50
|
ref: string;
|
|
51
51
|
requestedRef?: string | undefined;
|
|
52
|
-
}, "
|
|
52
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
53
53
|
branch?: string | undefined;
|
|
54
54
|
production?: boolean | undefined;
|
|
55
55
|
ref?: string | undefined;
|
|
@@ -60,7 +60,7 @@ export declare const FabricDeployPlan: import("../../../.pikku/pikku-types.gen.j
|
|
|
60
60
|
branch: string;
|
|
61
61
|
ref: string;
|
|
62
62
|
requestedRef?: string | undefined;
|
|
63
|
-
}, "
|
|
63
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
64
64
|
export declare const FabricDeployApply: import("../../../.pikku/pikku-types.gen.js").PikkuFunctionConfig<{
|
|
65
65
|
branch?: string | undefined;
|
|
66
66
|
production?: boolean | undefined;
|
|
@@ -74,7 +74,7 @@ export declare const FabricDeployApply: import("../../../.pikku/pikku-types.gen.
|
|
|
74
74
|
deploymentId: string;
|
|
75
75
|
stageId: string;
|
|
76
76
|
runId: string;
|
|
77
|
-
}, "
|
|
77
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
78
78
|
branch?: string | undefined;
|
|
79
79
|
production?: boolean | undefined;
|
|
80
80
|
ref?: string | undefined;
|
|
@@ -87,7 +87,7 @@ export declare const FabricDeployApply: import("../../../.pikku/pikku-types.gen.
|
|
|
87
87
|
deploymentId: string;
|
|
88
88
|
stageId: string;
|
|
89
89
|
runId: string;
|
|
90
|
-
}, "
|
|
90
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
91
91
|
branch?: string | undefined;
|
|
92
92
|
production?: boolean | undefined;
|
|
93
93
|
ref?: string | undefined;
|
|
@@ -100,6 +100,6 @@ export declare const FabricDeployApply: import("../../../.pikku/pikku-types.gen.
|
|
|
100
100
|
deploymentId: string;
|
|
101
101
|
stageId: string;
|
|
102
102
|
runId: string;
|
|
103
|
-
}, "
|
|
103
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
104
104
|
export declare const renderDeployPlan: (_s: unknown, { projectId, branch, ref, requestedRef, }: z.infer<typeof FabricDeployPlanOutput>) => void;
|
|
105
105
|
export declare const renderDeployApply: (_s: unknown, { branch, ref, deploymentId }: z.infer<typeof FabricDeployApplyOutput>) => void;
|
|
@@ -18,18 +18,18 @@ export declare const FabricDomainsAdd: import("../../../.pikku/pikku-types.gen.j
|
|
|
18
18
|
}, {
|
|
19
19
|
hostname: string;
|
|
20
20
|
cnameTarget: string;
|
|
21
|
-
}, "
|
|
21
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
22
22
|
hostname: string;
|
|
23
23
|
target?: "api" | "app" | undefined;
|
|
24
24
|
apiUrl?: string | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
hostname: string;
|
|
27
27
|
cnameTarget: string;
|
|
28
|
-
}, "
|
|
28
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
29
29
|
hostname: string;
|
|
30
30
|
target?: "api" | "app" | undefined;
|
|
31
31
|
apiUrl?: string | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
hostname: string;
|
|
34
34
|
cnameTarget: string;
|
|
35
|
-
}, "
|
|
35
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -9,12 +9,12 @@ export declare const FabricDomainsList: import("../../../.pikku/pikku-types.gen.
|
|
|
9
9
|
apiUrl?: string | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
count: number;
|
|
12
|
-
}, "
|
|
12
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
13
13
|
apiUrl?: string | undefined;
|
|
14
14
|
}, {
|
|
15
15
|
count: number;
|
|
16
|
-
}, "
|
|
16
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
17
17
|
apiUrl?: string | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
count: number;
|
|
20
|
-
}, "
|
|
20
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -11,14 +11,14 @@ export declare const FabricDomainsRemove: import("../../../.pikku/pikku-types.ge
|
|
|
11
11
|
apiUrl?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
removed: boolean;
|
|
14
|
-
}, "
|
|
14
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
15
15
|
hostname: string;
|
|
16
16
|
apiUrl?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
removed: boolean;
|
|
19
|
-
}, "
|
|
19
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
20
20
|
hostname: string;
|
|
21
21
|
apiUrl?: string | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
removed: boolean;
|
|
24
|
-
}, "
|
|
24
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -18,19 +18,19 @@ export declare const FabricErrors: import("../../../.pikku/pikku-types.gen.js").
|
|
|
18
18
|
}, {
|
|
19
19
|
branch: string;
|
|
20
20
|
errors: any[];
|
|
21
|
-
}, "
|
|
21
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
22
22
|
branch: string;
|
|
23
23
|
function?: string | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
branch: string;
|
|
26
26
|
errors: any[];
|
|
27
|
-
}, "
|
|
27
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
28
28
|
branch: string;
|
|
29
29
|
function?: string | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
branch: string;
|
|
32
32
|
errors: any[];
|
|
33
|
-
}, "
|
|
33
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
34
34
|
type ErrorRow = {
|
|
35
35
|
timestamp: string;
|
|
36
36
|
functionName: string;
|
|
@@ -28,7 +28,7 @@ export declare const FabricInit: import("../../../.pikku/pikku-types.gen.js").Pi
|
|
|
28
28
|
projectId: string;
|
|
29
29
|
projectSlug: string;
|
|
30
30
|
path: string;
|
|
31
|
-
}, "
|
|
31
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
32
32
|
repo: string;
|
|
33
33
|
name?: string | undefined;
|
|
34
34
|
branch?: string | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const FabricInit: import("../../../.pikku/pikku-types.gen.js").Pi
|
|
|
38
38
|
projectId: string;
|
|
39
39
|
projectSlug: string;
|
|
40
40
|
path: string;
|
|
41
|
-
}, "
|
|
41
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
42
42
|
repo: string;
|
|
43
43
|
name?: string | undefined;
|
|
44
44
|
branch?: string | undefined;
|
|
@@ -48,4 +48,4 @@ export declare const FabricInit: import("../../../.pikku/pikku-types.gen.js").Pi
|
|
|
48
48
|
projectId: string;
|
|
49
49
|
projectSlug: string;
|
|
50
50
|
path: string;
|
|
51
|
-
}, "
|
|
51
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -15,18 +15,18 @@ export declare const FabricLink: import("../../../.pikku/pikku-types.gen.js").Pi
|
|
|
15
15
|
projectSlug: string;
|
|
16
16
|
deploymentId: string;
|
|
17
17
|
stageId: string;
|
|
18
|
-
}, "
|
|
18
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
19
19
|
apiUrl?: string | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
projectId: string;
|
|
22
22
|
projectSlug: string;
|
|
23
23
|
deploymentId: string;
|
|
24
24
|
stageId: string;
|
|
25
|
-
}, "
|
|
25
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
26
26
|
apiUrl?: string | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
projectId: string;
|
|
29
29
|
projectSlug: string;
|
|
30
30
|
deploymentId: string;
|
|
31
31
|
stageId: string;
|
|
32
|
-
}, "
|
|
32
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -22,7 +22,7 @@ export declare const FabricLLMKey: import("../../../.pikku/pikku-types.gen.js").
|
|
|
22
22
|
proxyUrl: string;
|
|
23
23
|
apiKey: string;
|
|
24
24
|
format: "text" | "json" | "env" | "shell";
|
|
25
|
-
}, "
|
|
25
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
26
26
|
shell?: boolean | undefined;
|
|
27
27
|
env?: boolean | undefined;
|
|
28
28
|
json?: boolean | undefined;
|
|
@@ -30,7 +30,7 @@ export declare const FabricLLMKey: import("../../../.pikku/pikku-types.gen.js").
|
|
|
30
30
|
proxyUrl: string;
|
|
31
31
|
apiKey: string;
|
|
32
32
|
format: "text" | "json" | "env" | "shell";
|
|
33
|
-
}, "
|
|
33
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
34
34
|
shell?: boolean | undefined;
|
|
35
35
|
env?: boolean | undefined;
|
|
36
36
|
json?: boolean | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const FabricLLMKey: import("../../../.pikku/pikku-types.gen.js").
|
|
|
38
38
|
proxyUrl: string;
|
|
39
39
|
apiKey: string;
|
|
40
40
|
format: "text" | "json" | "env" | "shell";
|
|
41
|
-
}, "
|
|
41
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
42
42
|
export declare const renderLLMKey: (_services: unknown, data: {
|
|
43
43
|
proxyUrl: string;
|
|
44
44
|
apiKey: string;
|
|
@@ -30,7 +30,7 @@ export const FabricLLMKey = pikkuSessionlessFunc({
|
|
|
30
30
|
throw new UnauthorizedError('Not logged in. Run `pikku fabric login` first.');
|
|
31
31
|
}
|
|
32
32
|
const rpc = getFabricRPC({ apiUrl: ctx.apiUrl, token: ctx.token });
|
|
33
|
-
const result =
|
|
33
|
+
const result = await rpc.invoke('getDeveloperLiteLLMKey', {});
|
|
34
34
|
const format = shell
|
|
35
35
|
? 'shell'
|
|
36
36
|
: env
|
|
@@ -23,7 +23,7 @@ export declare const FabricLogin: import("../../../.pikku/pikku-types.gen.js").P
|
|
|
23
23
|
}, {
|
|
24
24
|
ok: boolean;
|
|
25
25
|
apiUrl: string;
|
|
26
|
-
}, "
|
|
26
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
27
27
|
apiKey?: string | undefined;
|
|
28
28
|
token?: string | undefined;
|
|
29
29
|
apiUrl?: string | undefined;
|
|
@@ -31,7 +31,7 @@ export declare const FabricLogin: import("../../../.pikku/pikku-types.gen.js").P
|
|
|
31
31
|
}, {
|
|
32
32
|
ok: boolean;
|
|
33
33
|
apiUrl: string;
|
|
34
|
-
}, "
|
|
34
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
35
35
|
apiKey?: string | undefined;
|
|
36
36
|
token?: string | undefined;
|
|
37
37
|
apiUrl?: string | undefined;
|
|
@@ -39,4 +39,4 @@ export declare const FabricLogin: import("../../../.pikku/pikku-types.gen.js").P
|
|
|
39
39
|
}, {
|
|
40
40
|
ok: boolean;
|
|
41
41
|
apiUrl: string;
|
|
42
|
-
}, "
|
|
42
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -19,7 +19,7 @@ export declare const FabricLogs: import("../../../.pikku/pikku-types.gen.js").Pi
|
|
|
19
19
|
json?: boolean | undefined;
|
|
20
20
|
}, {
|
|
21
21
|
count: number;
|
|
22
|
-
}, "
|
|
22
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
23
23
|
branch?: string | undefined;
|
|
24
24
|
deployment?: string | undefined;
|
|
25
25
|
level?: string | undefined;
|
|
@@ -28,7 +28,7 @@ export declare const FabricLogs: import("../../../.pikku/pikku-types.gen.js").Pi
|
|
|
28
28
|
json?: boolean | undefined;
|
|
29
29
|
}, {
|
|
30
30
|
count: number;
|
|
31
|
-
}, "
|
|
31
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
32
32
|
branch?: string | undefined;
|
|
33
33
|
deployment?: string | undefined;
|
|
34
34
|
level?: string | undefined;
|
|
@@ -37,4 +37,4 @@ export declare const FabricLogs: import("../../../.pikku/pikku-types.gen.js").Pi
|
|
|
37
37
|
json?: boolean | undefined;
|
|
38
38
|
}, {
|
|
39
39
|
count: number;
|
|
40
|
-
}, "
|
|
40
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|
|
@@ -15,18 +15,18 @@ export declare const FabricMetrics: import("../../../.pikku/pikku-types.gen.js")
|
|
|
15
15
|
json?: boolean | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
count: number;
|
|
18
|
-
}, "
|
|
18
|
+
}, "rpc" | "session", import("../../../.pikku/pikku-types.gen.js").PikkuFunctionSessionless<{
|
|
19
19
|
branch: string;
|
|
20
20
|
hours?: number | undefined;
|
|
21
21
|
function?: string | undefined;
|
|
22
22
|
json?: boolean | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
count: number;
|
|
25
|
-
}, "
|
|
25
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services> | import("../../../.pikku/pikku-types.gen.js").PikkuFunction<{
|
|
26
26
|
branch: string;
|
|
27
27
|
hours?: number | undefined;
|
|
28
28
|
function?: string | undefined;
|
|
29
29
|
json?: boolean | undefined;
|
|
30
30
|
}, {
|
|
31
31
|
count: number;
|
|
32
|
-
}, "
|
|
32
|
+
}, "rpc" | "session", import("../../../types/application-types.js").Services>, undefined, undefined>;
|