@pikku/cli 0.12.58 → 0.12.59
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/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 +1 -1
- 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 +1 -1
- 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/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 +1 -1
- package/dist/src/functions/commands/tests-init.js +2 -2
- package/dist/src/functions/db/db-codegen.d.ts +1 -1
- package/dist/src/functions/db/db-codegen.js +2 -2
- package/dist/src/functions/db/local-db.js +1 -1
- package/dist/src/functions/db/zod-codegen.d.ts +1 -1
- package/package.json +3 -3
|
@@ -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.59
|
|
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';
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"pikkuFuncId": "dbMigrate",
|
|
227
227
|
"positionals": [],
|
|
228
228
|
"options": {},
|
|
229
|
-
"description": "Apply pending SQL migrations and regenerate db/schema.gen.
|
|
229
|
+
"description": "Apply pending SQL migrations and regenerate db/schema.gen.ts"
|
|
230
230
|
},
|
|
231
231
|
"generate": {
|
|
232
232
|
"pikkuFuncId": "dbGenerate",
|
|
@@ -1415,7 +1415,7 @@
|
|
|
1415
1415
|
"PikkuTestsInitInput"
|
|
1416
1416
|
],
|
|
1417
1417
|
"outputs": [],
|
|
1418
|
-
"implementationHash": "
|
|
1418
|
+
"implementationHash": "6e0f65d79fca9faf",
|
|
1419
1419
|
"contractHash": "e37968c2b9c365cc",
|
|
1420
1420
|
"inputHash": "e27fe9ce",
|
|
1421
1421
|
"outputHash": "4a703d6e"
|
|
@@ -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.59
|
|
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.59') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.59 → ${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
|
@@ -305,7 +305,7 @@ wireCLI({
|
|
|
305
305
|
subcommands: {
|
|
306
306
|
migrate: pikkuCLICommand({
|
|
307
307
|
func: dbMigrate,
|
|
308
|
-
description: 'Apply pending SQL migrations and regenerate db/schema.gen.
|
|
308
|
+
description: 'Apply pending SQL migrations and regenerate db/schema.gen.ts',
|
|
309
309
|
}),
|
|
310
310
|
generate: pikkuCLICommand({
|
|
311
311
|
func: dbGenerate,
|
|
@@ -212,8 +212,8 @@ export const pikkuTestsInit = pikkuSessionlessFunc({
|
|
|
212
212
|
const configImport = toJs(rel(pikkuConfigFactory.file));
|
|
213
213
|
const servicesImport = toJs(rel(singletonServicesFactory.file));
|
|
214
214
|
// coercion/schema may live under outDir/db (new default) or rootDir/db (legacy)
|
|
215
|
-
const schemaInOutDir = join(config.outDir, 'db', 'schema.gen.
|
|
216
|
-
const schemaInRootDir = join(config.rootDir, 'db', 'schema.gen.
|
|
215
|
+
const schemaInOutDir = join(config.outDir, 'db', 'schema.gen.ts');
|
|
216
|
+
const schemaInRootDir = join(config.rootDir, 'db', 'schema.gen.ts');
|
|
217
217
|
const schemaFile = existsSync(schemaInOutDir)
|
|
218
218
|
? schemaInOutDir
|
|
219
219
|
: schemaInRootDir;
|
|
@@ -36,7 +36,7 @@ export interface CodegenResult {
|
|
|
36
36
|
/**
|
|
37
37
|
* Per-interface, per-field zod `format` overrides for the zod codegen. Keyed
|
|
38
38
|
* by interface name (PascalCase) and field name (camelCase), matching the
|
|
39
|
-
* shapes the zod emitter parses out of `schema.gen.
|
|
39
|
+
* shapes the zod emitter parses out of `schema.gen.ts`.
|
|
40
40
|
*/
|
|
41
41
|
zodFormats: Record<string, Record<string, ZodFormat>>;
|
|
42
42
|
}
|
|
@@ -335,7 +335,7 @@ function emitClassificationMap(tables) {
|
|
|
335
335
|
}
|
|
336
336
|
/**
|
|
337
337
|
* Introspect `introspector` and emit:
|
|
338
|
-
* - `schema.gen.
|
|
338
|
+
* - `schema.gen.ts` Kysely DB type with classification brands
|
|
339
339
|
* - `coercion.gen.ts` Runtime CoercionMap for date/bool/json coercion
|
|
340
340
|
* - `classification.gen.ts` Data-classification manifest (when manifestFile set)
|
|
341
341
|
*/
|
|
@@ -395,7 +395,7 @@ export async function generateSchemaTypes(introspector, options) {
|
|
|
395
395
|
enumByName.set(e.name, e.values);
|
|
396
396
|
enumByName.set(`${e.schema}.${e.name}`, e.values);
|
|
397
397
|
}
|
|
398
|
-
// ── schema.gen.
|
|
398
|
+
// ── schema.gen.ts ────────────────────────────────────────────────────────────
|
|
399
399
|
const warnings = [];
|
|
400
400
|
const zodFormats = {};
|
|
401
401
|
const interfaces = tables
|
|
@@ -42,7 +42,7 @@ export function resolveDb(userConfig, rootDir, outDir, runtimeDir) {
|
|
|
42
42
|
const base = (sub) => ({
|
|
43
43
|
rootDir,
|
|
44
44
|
migrationsDir: resolveAgainst(rootDir, sub),
|
|
45
|
-
schemaFile: join(outDir, 'db', 'schema.gen.
|
|
45
|
+
schemaFile: join(outDir, 'db', 'schema.gen.ts'),
|
|
46
46
|
coercionFile: join(outDir, 'db', 'coercion.gen.ts'),
|
|
47
47
|
manifestFile: join(outDir, 'db', 'classification.gen.ts'),
|
|
48
48
|
classificationMapFile: join(outDir, 'db', 'classification-map.gen.d.ts'),
|
|
@@ -33,7 +33,7 @@ export interface ZodCodegenOptions {
|
|
|
33
33
|
outFile: string;
|
|
34
34
|
/**
|
|
35
35
|
* Per-interface, per-field `format` overrides. Keyed by the *interface* name
|
|
36
|
-
* (PascalCase, as it appears in `schema.gen.
|
|
36
|
+
* (PascalCase, as it appears in `schema.gen.ts`) and the *field* name (camelCase),
|
|
37
37
|
* matching how `parseTables` reads the schema. Computed by `db-codegen` (which
|
|
38
38
|
* owns the snake→Pascal/camel name mapping) so this emitter stays a dumb
|
|
39
39
|
* string→zod translator.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.59",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"imports": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@openapi-contrib/json-schema-to-openapi-schema": "^4.3.1",
|
|
30
30
|
"@pikku/better-auth": "^0.12.12",
|
|
31
31
|
"@pikku/bun-server": "^0.12.1",
|
|
32
|
-
"@pikku/core": "^0.12.
|
|
32
|
+
"@pikku/core": "^0.12.42",
|
|
33
33
|
"@pikku/deploy-cloudflare": "^0.12.6",
|
|
34
34
|
"@pikku/fetch": "^0.12.5",
|
|
35
|
-
"@pikku/inspector": "^0.12.
|
|
35
|
+
"@pikku/inspector": "^0.12.29",
|
|
36
36
|
"@pikku/kysely": "^0.12.18",
|
|
37
37
|
"@pikku/kysely-node-sqlite": "^0.12.2",
|
|
38
38
|
"@pikku/node-http-server": "^0.12.3",
|