@pikku/cli 0.12.80 → 0.12.82
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-NmNeixvK.js → index-ChcXIEhS.js} +8 -8
- 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.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.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/fabric/functions/validate.function.js +42 -2
- package/dist/src/functions/commands/new-addon.js +2 -0
- package/package.json +3 -3
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-ChcXIEhS.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.82
|
|
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';
|
|
@@ -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.82
|
|
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.82') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.82 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
|
|
16
16
|
}
|
|
17
17
|
} catch {}
|
|
18
18
|
}
|
|
@@ -1058,8 +1058,48 @@ export async function runValidate(startDir = process.cwd()) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
// ── packages/theme + packages/components ──────────────────────────────
|
|
1060
1060
|
const designDocUrl = 'https://pikkufabric.dev/docs/design';
|
|
1061
|
-
|
|
1062
|
-
|
|
1061
|
+
const themePkgDir = join(root, 'packages', 'mantine-theme');
|
|
1062
|
+
if (!existsSync(themePkgDir)) {
|
|
1063
|
+
info('theme-missing', 'packages/mantine-theme/ not found — Fabric design features require a theme package', themePkgDir, `Create packages/mantine-theme/ with your Mantine theme tokens. See ${designDocUrl}`);
|
|
1064
|
+
}
|
|
1065
|
+
else {
|
|
1066
|
+
// The Fabric console's Design tab lists a theme only when it can read a
|
|
1067
|
+
// themes/<id>.json spec (+ active.json pointing at one) — that spec is the
|
|
1068
|
+
// single source of truth the app runtime and the console both consume. A
|
|
1069
|
+
// package that only hand-writes createTheme() renders fine but the console
|
|
1070
|
+
// reports "no theme set" and cannot edit it. Mirror getSandboxThemes' file
|
|
1071
|
+
// logic (themes/<id>.json where id matches THEME_ID_RE, + active.json.id).
|
|
1072
|
+
const themeIdRe = /^[a-z][a-z0-9-]{0,38}$/;
|
|
1073
|
+
const themesDir = join(themePkgDir, 'themes');
|
|
1074
|
+
let specIds = [];
|
|
1075
|
+
if (existsSync(themesDir)) {
|
|
1076
|
+
try {
|
|
1077
|
+
specIds = (await readdir(themesDir))
|
|
1078
|
+
.filter((f) => f.endsWith('.json'))
|
|
1079
|
+
.map((f) => f.slice(0, -'.json'.length))
|
|
1080
|
+
.filter((id) => themeIdRe.test(id));
|
|
1081
|
+
}
|
|
1082
|
+
catch {
|
|
1083
|
+
// readdir failure — treat as no specs
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
if (specIds.length === 0) {
|
|
1087
|
+
info('theme-no-spec', 'packages/mantine-theme/ has no themes/<id>.json spec — the Fabric console Design tab reports "no theme set" (and cannot edit the theme) even if the app is branded via a hand-written createTheme()', themesDir, lines('Add a theme spec the console can read:', '1. Create packages/mantine-theme/themes/<id>.json (id is kebab-case), e.g.:', '{', ' "name": "My Brand",', ' "brand": { "colors": { "primary": "#4f46e5" }, "fonts": { "body": "Inter" } },', ' "structure": { "defaultRadius": "md", "defaultColorScheme": "light" }', '}', '2. Create packages/mantine-theme/active.json: { "id": "<id>" }', '3. Build the Mantine theme from the active spec in index.ts.', `See ${designDocUrl}`));
|
|
1088
|
+
}
|
|
1089
|
+
else {
|
|
1090
|
+
// A spec exists — active.json must point at one, else the console has no
|
|
1091
|
+
// active theme (getSandboxThemes falls back to a "default" id that may
|
|
1092
|
+
// not exist among the specs).
|
|
1093
|
+
const activePath = join(themePkgDir, 'active.json');
|
|
1094
|
+
const active = await readJsonSafe(activePath);
|
|
1095
|
+
const activeId = typeof active?.id === 'string' ? active.id : null;
|
|
1096
|
+
if (!activeId) {
|
|
1097
|
+
info('theme-no-active', 'packages/mantine-theme/active.json is missing or has no string "id" — the Fabric console falls back to the "default" theme id, which may not match any themes/<id>.json', activePath, lines('Create packages/mantine-theme/active.json pointing at an existing spec:', `{ "id": "${specIds[0]}" }`));
|
|
1098
|
+
}
|
|
1099
|
+
else if (!specIds.includes(activeId)) {
|
|
1100
|
+
info('theme-active-mismatch', `packages/mantine-theme/active.json points at "${activeId}" but no themes/${activeId}.json exists — the Fabric console has no active theme`, activePath, lines(`Point active.json at an existing spec (${specIds.join(', ')}):`, `{ "id": "${specIds[0]}" }`));
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1063
1103
|
}
|
|
1064
1104
|
if (!existsSync(join(root, 'packages', 'components'))) {
|
|
1065
1105
|
info('components-missing', 'packages/components/ not found — Fabric design features require a components package', join(root, 'packages', 'components'), `Create packages/components/ with your shared UI components. See ${designDocUrl}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/cli",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.82",
|
|
4
4
|
"author": "yasser.fadl@gmail.com",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"imports": {
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@pikku/bun-server": "^0.12.4",
|
|
33
33
|
"@pikku/deploy-cloudflare": "^0.12.8",
|
|
34
34
|
"@pikku/fetch": "^0.12.7",
|
|
35
|
-
"@pikku/inspector": "^0.12.
|
|
35
|
+
"@pikku/inspector": "^0.12.42",
|
|
36
36
|
"@pikku/kysely": "^0.13.0",
|
|
37
37
|
"@pikku/kysely-node-sqlite": "^0.12.3",
|
|
38
38
|
"@pikku/node-http-server": "^0.12.6",
|
|
39
|
-
"@pikku/openapi-parser": "^0.12.
|
|
39
|
+
"@pikku/openapi-parser": "^0.12.15",
|
|
40
40
|
"@pikku/schedule": "^0.12.4",
|
|
41
41
|
"@pikku/ws": "^0.12.4",
|
|
42
42
|
"@types/cookie": "^1.0.0",
|