@pikku/cli 0.12.76 → 0.12.77
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-M7009WaW.js → index-NmNeixvK.js} +140 -140
- 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 +1 -1
- package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +1 -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 +3 -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 +1 -1
- 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 +6 -6
- 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/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 +1 -1
- package/dist/.pikku/schemas/schemas/PikkuNewAddonInput.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/pikku-workflow-types.gen.d.ts +5 -4
- 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 +3 -0
- package/dist/src/functions/commands/db-migrate.js +3 -0
- package/dist/src/functions/commands/db-reset.js +3 -0
- package/dist/src/functions/commands/new-addon.d.ts +3 -0
- package/dist/src/functions/commands/new-addon.js +53 -4
- package/dist/src/functions/db/db-codegen.d.ts +7 -2
- package/dist/src/functions/db/db-codegen.js +32 -14
- package/dist/src/functions/db/db-introspector.d.ts +13 -0
- package/dist/src/functions/db/local-db.js +1 -2
- package/dist/src/functions/db/postgres/postgres-introspector.d.ts +3 -2
- package/dist/src/functions/db/postgres/postgres-introspector.js +109 -7
- package/dist/src/functions/db/sqlite/sqlite-introspector.d.ts +2 -0
- package/dist/src/functions/db/sqlite/sqlite-introspector.js +16 -0
- package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +2 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +1 -1
- package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +16 -4
- package/package.json +11 -11
package/console-app/index.html
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
} catch (e) {}
|
|
23
23
|
</script>
|
|
24
|
-
<script type="module" crossorigin src="/console/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/console/assets/index-NmNeixvK.js"></script>
|
|
25
25
|
<link rel="stylesheet" crossorigin href="/console/assets/index-DwyRdRuZ.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
@@ -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.77
|
|
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';
|
|
@@ -1062,6 +1062,9 @@
|
|
|
1062
1062
|
"openapi": {
|
|
1063
1063
|
"description": "Path to OpenAPI YAML/JSON spec to generate functions from"
|
|
1064
1064
|
},
|
|
1065
|
+
"authConfig": {
|
|
1066
|
+
"description": "Path to an auth-config JSON overriding the spec (custom auth header, delegated login)"
|
|
1067
|
+
},
|
|
1065
1068
|
"mcp": {
|
|
1066
1069
|
"description": "Add mcp: true to generated functions (expose as MCP tools)",
|
|
1067
1070
|
"default": false
|
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
],
|
|
578
578
|
"outputs": [],
|
|
579
579
|
"remote": true,
|
|
580
|
-
"implementationHash": "
|
|
580
|
+
"implementationHash": "e60ea0589df3652b"
|
|
581
581
|
},
|
|
582
582
|
"dbReset": {
|
|
583
583
|
"pikkuFuncId": "dbReset",
|
|
@@ -592,7 +592,7 @@
|
|
|
592
592
|
],
|
|
593
593
|
"outputs": [],
|
|
594
594
|
"remote": true,
|
|
595
|
-
"implementationHash": "
|
|
595
|
+
"implementationHash": "1448eada37a65724"
|
|
596
596
|
},
|
|
597
597
|
"dbSeed": {
|
|
598
598
|
"pikkuFuncId": "dbSeed",
|
|
@@ -1249,9 +1249,9 @@
|
|
|
1249
1249
|
"PikkuNewAddonInput"
|
|
1250
1250
|
],
|
|
1251
1251
|
"outputs": [],
|
|
1252
|
-
"implementationHash": "
|
|
1253
|
-
"contractHash": "
|
|
1254
|
-
"inputHash": "
|
|
1252
|
+
"implementationHash": "5431f57ca054a509",
|
|
1253
|
+
"contractHash": "7ad6280aa8f3e18e",
|
|
1254
|
+
"inputHash": "87a4bbd4",
|
|
1255
1255
|
"outputHash": "77e837d4"
|
|
1256
1256
|
},
|
|
1257
1257
|
"pikkuNewFunction": {
|
|
@@ -2984,7 +2984,7 @@
|
|
|
2984
2984
|
"outputs": [
|
|
2985
2985
|
"PikkuWorkflowOutput"
|
|
2986
2986
|
],
|
|
2987
|
-
"implementationHash": "
|
|
2987
|
+
"implementationHash": "20655832837c2fec",
|
|
2988
2988
|
"middleware": [
|
|
2989
2989
|
{
|
|
2990
2990
|
"type": "wire",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "name": { "type": "string" }, "displayName": { "type": "string" }, "description": { "type": "string" }, "category": { "type": "string" }, "dir": { "type": "string" }, "secret": { "type": "boolean" }, "variable": { "type": "boolean" }, "oauth": { "type": "boolean" }, "credential": { "type": "string" }, "test": { "type": "boolean" }, "openapi": { "type": "string" }, "mcp": { "type": "boolean" }, "camelCase": { "type": "boolean" } }, "required": ["name"], "additionalProperties": false, "definitions": {} }
|
|
1
|
+
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "name": { "type": "string" }, "displayName": { "type": "string" }, "description": { "type": "string" }, "category": { "type": "string" }, "dir": { "type": "string" }, "secret": { "type": "boolean" }, "variable": { "type": "boolean" }, "oauth": { "type": "boolean" }, "credential": { "type": "string" }, "test": { "type": "boolean" }, "openapi": { "type": "string" }, "authConfig": { "type": "string" }, "mcp": { "type": "boolean" }, "camelCase": { "type": "boolean" } }, "required": ["name"], "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.77
|
|
3
3
|
*/
|
|
4
4
|
export { wireVariable } from '@pikku/core/variable';
|
|
5
5
|
export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file was generated by @pikku/cli@0.12.
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.77
|
|
3
3
|
*/
|
|
4
4
|
import { WorkflowCancelledException } from '@pikku/core/workflow';
|
|
5
5
|
import { template } from '@pikku/core/workflow';
|
|
@@ -9,6 +9,7 @@ export { WorkflowCancelledException };
|
|
|
9
9
|
import type { PikkuFunctionSessionless, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
|
|
10
10
|
import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
|
|
11
11
|
import type { FlattenedWorkflowMap } from './pikku-workflow-map.gen.d.js';
|
|
12
|
+
import type { AgentMap as FlattenedAgentMap } from '../agent/pikku-agent-map.gen.d.js';
|
|
12
13
|
export { template };
|
|
13
14
|
export interface TypedWorkflow extends PikkuWorkflowWire {
|
|
14
15
|
do<K extends keyof FlattenedRPCMap>(stepName: string, rpcName: K, data: FlattenedRPCMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedRPCMap[K]['output']>;
|
|
@@ -75,8 +76,8 @@ type TemplateString = {
|
|
|
75
76
|
type InputWithRefs<T> = {
|
|
76
77
|
[K in keyof T]?: T[K] | TypedRef<T[K]> | TypedRef<unknown> | TemplateString;
|
|
77
78
|
};
|
|
78
|
-
type NodeInputType<FuncMap extends Record<string, string>, K extends keyof FuncMap> = FuncMap[K] extends keyof FlattenedRPCMap ? InputWithRefs<FlattenedRPCMap[FuncMap[K]]['input']> : Record<string, unknown>;
|
|
79
|
-
type NodeOutputKeys<FuncMap extends Record<string, string>, N extends string> = N extends keyof FuncMap ? FuncMap[N] extends keyof FlattenedRPCMap ? keyof FlattenedRPCMap[FuncMap[N]]['output'] & string : string : string;
|
|
79
|
+
type NodeInputType<FuncMap extends Record<string, string>, K extends keyof FuncMap> = FuncMap[K] extends keyof FlattenedRPCMap ? InputWithRefs<FlattenedRPCMap[FuncMap[K]]['input']> : FuncMap[K] extends keyof FlattenedWorkflowMap ? InputWithRefs<FlattenedWorkflowMap[FuncMap[K]]['input']> : Record<string, unknown>;
|
|
80
|
+
type NodeOutputKeys<FuncMap extends Record<string, string>, N extends string> = N extends keyof FuncMap ? FuncMap[N] extends keyof FlattenedRPCMap ? keyof FlattenedRPCMap[FuncMap[N]]['output'] & string : FuncMap[N] extends keyof FlattenedWorkflowMap ? keyof FlattenedWorkflowMap[FuncMap[N]]['output'] & string : FuncMap[N] extends keyof FlattenedAgentMap ? keyof FlattenedAgentMap[FuncMap[N]]['output'] & string : string : string;
|
|
80
81
|
type RefFunction<FuncMap extends Record<string, string>> = {
|
|
81
82
|
<N extends Extract<keyof FuncMap, string>>(nodeId: N, path: NodeOutputKeys<FuncMap, N>): TypedRef<unknown>;
|
|
82
83
|
(nodeId: 'trigger' | '$item', path?: string): TypedRef<unknown>;
|
|
@@ -94,4 +95,4 @@ type NextConfig<NodeIds extends string> = NodeIds | NodeIds[] | {
|
|
|
94
95
|
then: NodeIds;
|
|
95
96
|
else?: NodeIds;
|
|
96
97
|
};
|
|
97
|
-
export declare function pikkuWorkflowGraph<const FuncMap extends Record<string, keyof FlattenedRPCMap & string>>(config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>): PikkuWorkflowGraphResult;
|
|
98
|
+
export declare function pikkuWorkflowGraph<const FuncMap extends Record<string, (keyof FlattenedRPCMap & string) | (keyof FlattenedWorkflowMap & string) | (keyof FlattenedAgentMap & string)>>(config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>): PikkuWorkflowGraphResult;
|
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.77') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.77 → ${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
|
@@ -577,6 +577,9 @@ wireCLI({
|
|
|
577
577
|
openapi: {
|
|
578
578
|
description: 'Path to OpenAPI YAML/JSON spec to generate functions from',
|
|
579
579
|
},
|
|
580
|
+
authConfig: {
|
|
581
|
+
description: 'Path to an auth-config JSON overriding the spec (custom auth header, delegated login)',
|
|
582
|
+
},
|
|
580
583
|
mcp: {
|
|
581
584
|
description: 'Add mcp: true to generated functions (expose as MCP tools)',
|
|
582
585
|
default: false,
|
|
@@ -13,6 +13,9 @@ export const dbMigrate = pikkuSessionlessFunc({
|
|
|
13
13
|
throw new Error('no database configured');
|
|
14
14
|
}
|
|
15
15
|
const { migrate, codegen, zod } = await migrateAndCodegen(resolved);
|
|
16
|
+
for (const warning of codegen.warnings) {
|
|
17
|
+
logger.diagnostic(warning);
|
|
18
|
+
}
|
|
16
19
|
if (migrate.applied.length === 0) {
|
|
17
20
|
logger.info(`db migrate: no pending migrations (${migrate.skipped.length} already applied)`);
|
|
18
21
|
}
|
|
@@ -23,6 +23,9 @@ export const dbReset = pikkuSessionlessFunc({
|
|
|
23
23
|
? `db reset: removed ${resolved.pgliteDir}`
|
|
24
24
|
: 'db reset: cleared non-system Postgres schemas');
|
|
25
25
|
const { migrate, codegen, zod } = await migrateAndCodegen(resolved);
|
|
26
|
+
for (const warning of codegen.warnings) {
|
|
27
|
+
logger.diagnostic(warning);
|
|
28
|
+
}
|
|
26
29
|
for (const name of migrate.applied) {
|
|
27
30
|
logger.info(`db reset: applied ${name}`);
|
|
28
31
|
}
|