@pikku/cli 0.12.66 → 0.12.67
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-94z1KYC_.js → index-CttM2Aiz.js} +141 -141
- 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-meta.gen.json +5 -5
- 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 +1 -1
- package/dist/src/functions/commands/audit.js +25 -8
- package/dist/src/functions/commands/console.js +1 -1
- package/dist/src/functions/commands/enable.js +4 -4
- package/dist/src/functions/validate/workspace-validate.js +1 -1
- package/dist/src/functions/wirings/console/pikku-command-console-functions.js +13 -0
- package/dist/src/functions/wirings/console/pikku-command-nodes-meta.js +5 -1
- package/dist/src/functions/wirings/console/serialize-console-functions.js +6 -11
- package/dist/src/functions/wirings/functions/pikku-command-functions.js +5 -3
- package/dist/src/utils/strip-verbose-meta.d.ts +3 -0
- package/dist/src/utils/strip-verbose-meta.js +8 -0
- package/package.json +3 -3
- package/skills/pikku-better-auth/SKILL.md +4 -0
- package/skills/pikku-deps/SKILL.md +91 -0
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="/assets/index-
|
|
24
|
+
<script type="module" crossorigin src="/assets/index-CttM2Aiz.js"></script>
|
|
25
25
|
<link rel="stylesheet" crossorigin href="/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.67
|
|
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';
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
"AuditInput"
|
|
500
500
|
],
|
|
501
501
|
"outputs": [],
|
|
502
|
-
"implementationHash": "
|
|
502
|
+
"implementationHash": "f972c748de41bb38",
|
|
503
503
|
"contractHash": "ed4fac2f4a098384",
|
|
504
504
|
"inputHash": "522c66d4",
|
|
505
505
|
"outputHash": "d3163c8e"
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
],
|
|
548
548
|
"outputs": [],
|
|
549
549
|
"remote": true,
|
|
550
|
-
"implementationHash": "
|
|
550
|
+
"implementationHash": "1a5d72b67945f25a"
|
|
551
551
|
},
|
|
552
552
|
"dbAudit": {
|
|
553
553
|
"pikkuFuncId": "dbAudit",
|
|
@@ -1908,7 +1908,7 @@
|
|
|
1908
1908
|
"outputs": [
|
|
1909
1909
|
"PikkuConsoleFunctionsOutput"
|
|
1910
1910
|
],
|
|
1911
|
-
"implementationHash": "
|
|
1911
|
+
"implementationHash": "26961b323b57e0a6",
|
|
1912
1912
|
"middleware": [
|
|
1913
1913
|
{
|
|
1914
1914
|
"type": "wire",
|
|
@@ -1954,7 +1954,7 @@
|
|
|
1954
1954
|
"outputs": [
|
|
1955
1955
|
"PikkuNodesMetaOutput"
|
|
1956
1956
|
],
|
|
1957
|
-
"implementationHash": "
|
|
1957
|
+
"implementationHash": "7e61570576c5684d",
|
|
1958
1958
|
"middleware": [
|
|
1959
1959
|
{
|
|
1960
1960
|
"type": "wire",
|
|
@@ -2096,7 +2096,7 @@
|
|
|
2096
2096
|
"outputs": [
|
|
2097
2097
|
"PikkuFunctionsOutput"
|
|
2098
2098
|
],
|
|
2099
|
-
"implementationHash": "
|
|
2099
|
+
"implementationHash": "4c36b401529dd16f",
|
|
2100
2100
|
"middleware": [
|
|
2101
2101
|
{
|
|
2102
2102
|
"type": "wire",
|
|
@@ -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.67
|
|
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.67') {
|
|
15
|
+
process.stderr.write(`\n Update available 0.12.67 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
|
|
16
16
|
}
|
|
17
17
|
} catch {}
|
|
18
18
|
}
|
|
@@ -228,7 +228,7 @@ export async function runValidate(startDir = process.cwd()) {
|
|
|
228
228
|
key: 'console',
|
|
229
229
|
severity: 'error',
|
|
230
230
|
surface: 'app introspection (console:getFunctionsMeta and friends) — the sandbox builder shows no functions',
|
|
231
|
-
value: '"
|
|
231
|
+
value: '"auth"',
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
key: 'rpc',
|
|
@@ -4,6 +4,9 @@ import { spawnSync } from 'node:child_process';
|
|
|
4
4
|
import { pikkuSessionlessFunc } from '#pikku';
|
|
5
5
|
const SCHEMA_VERSION = 1;
|
|
6
6
|
const SEVERITY_ORDER = ['critical', 'high', 'moderate', 'low', 'info'];
|
|
7
|
+
// Artifact shape (SecurityAuditReport / …Issue / …Update) is the canonical type
|
|
8
|
+
// from @pikku/core — imported above. `Severity`/`PackageManager` below are local
|
|
9
|
+
// runtime-helper aliases, not a second copy of the artifact.
|
|
7
10
|
const stripAnsi = (s) => s.replace(/\x1b\[[0-9;]*m/g, '');
|
|
8
11
|
// Walk up from startDir to the nearest workspace root — the dir whose lockfile
|
|
9
12
|
// the package manager audits. Falls back to startDir.
|
|
@@ -30,10 +33,17 @@ function runBun(args, cwd) {
|
|
|
30
33
|
cwd,
|
|
31
34
|
encoding: 'utf8',
|
|
32
35
|
maxBuffer: 32 * 1024 * 1024,
|
|
36
|
+
timeout: 120_000,
|
|
33
37
|
env: { ...process.env, NO_COLOR: '1' },
|
|
34
38
|
});
|
|
35
|
-
//
|
|
36
|
-
//
|
|
39
|
+
// A launch failure (bun missing, timeout, maxBuffer exceeded) or a non-zero
|
|
40
|
+
// exit with *no* output means the audit never produced data — surface it so a
|
|
41
|
+
// failed run can't masquerade as "0 advisories". (bun audit exits non-zero
|
|
42
|
+
// WHEN it finds advisories, but still writes the payload to stdout, so a
|
|
43
|
+
// non-zero exit *with* stdout is fine.)
|
|
44
|
+
if (res.error || (res.status !== 0 && !res.stdout)) {
|
|
45
|
+
throw new Error(`bun ${args.join(' ')} failed: ${res.error?.message ?? res.stderr ?? `exit ${res.status}`}`);
|
|
46
|
+
}
|
|
37
47
|
return res.stdout || '';
|
|
38
48
|
}
|
|
39
49
|
function normaliseSeverity(sev) {
|
|
@@ -138,12 +148,19 @@ export const pikkuAudit = pikkuSessionlessFunc({
|
|
|
138
148
|
const { root, pm } = findProjectRoot(config.rootDir);
|
|
139
149
|
let report;
|
|
140
150
|
if (pm === 'bun') {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
151
|
+
try {
|
|
152
|
+
const issues = parseBunAudit(runBun(['audit', '--json'], root));
|
|
153
|
+
const updates = includeOutdated ? parseBunOutdated(runBun(['outdated'], root)) : [];
|
|
154
|
+
const latestByPkg = new Map(updates.map((u) => [u.package, u.latest]));
|
|
155
|
+
for (const i of issues)
|
|
156
|
+
i.recommendedVersion = latestByPkg.get(i.package) ?? null;
|
|
157
|
+
report = summarise('bun', issues, updates);
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
// A failed run must NOT read as clean — emit a note so the UI shows
|
|
161
|
+
// "audit not run" instead of a reassuring "no vulnerabilities".
|
|
162
|
+
report = summarise('bun', [], [], `Security audit could not run: ${e instanceof Error ? e.message : String(e)}`);
|
|
163
|
+
}
|
|
147
164
|
}
|
|
148
165
|
else {
|
|
149
166
|
report = summarise(pm, [], [], `Security audit is not yet supported for the '${pm}' package manager — only bun is implemented.`);
|
|
@@ -27,7 +27,7 @@ export const consoleCommand = pikkuSessionlessFunc({
|
|
|
27
27
|
...new Set([config.emailTemplatesDir, ...config.srcDirectories].filter(Boolean)),
|
|
28
28
|
];
|
|
29
29
|
if (!config.scaffold?.console) {
|
|
30
|
-
logger.error('Console is not enabled. Add { "scaffold": { "console": "
|
|
30
|
+
logger.error('Console is not enabled. Add { "scaffold": { "console": "auth" } } to your pikku.config.json (the console requires an authenticated session — set up Better Auth)');
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
33
|
const consoleDir = join(fileURLToPath(import.meta.url), '..', '..', '..', '..', '..', 'console-app');
|