@pikku/cli 0.12.116 → 0.12.118
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/CHANGELOG.md +54 -0
- package/dist/.pikku/addon/index.d.ts +1 -1
- package/dist/.pikku/addon/index.js +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
- package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
- package/dist/.pikku/agent/index.d.ts +1 -1
- package/dist/.pikku/agent/index.js +1 -1
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
- package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
- package/dist/.pikku/auth/index.d.ts +1 -1
- package/dist/.pikku/auth/index.js +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
- package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
- package/dist/.pikku/channel/index.d.ts +1 -1
- package/dist/.pikku/channel/index.js +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/index.d.ts +1 -1
- package/dist/.pikku/cli/index.js +1 -1
- package/dist/.pikku/cli/pikku-cli-channel.js +6 -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 +12 -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/error/index.d.ts +1 -1
- package/dist/.pikku/error/index.js +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
- package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
- package/dist/.pikku/function/index.d.ts +1 -1
- package/dist/.pikku/function/index.js +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 +18 -1
- package/dist/.pikku/function/pikku-functions.gen.js +1 -1
- package/dist/.pikku/gateway/index.d.ts +1 -1
- package/dist/.pikku/gateway/index.js +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
- package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
- package/dist/.pikku/http/index.d.ts +1 -1
- package/dist/.pikku/http/index.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/mcp/index.d.ts +1 -1
- package/dist/.pikku/mcp/index.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/middleware/index.d.ts +1 -1
- package/dist/.pikku/middleware/index.js +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +1 -1
- package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
- package/dist/.pikku/pikku-bootstrap-scenarios.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-services.gen.d.ts +1 -1
- package/dist/.pikku/queue/index.d.ts +1 -1
- package/dist/.pikku/queue/index.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/rpc/pikku-rpc-wirings-meta.internal.gen.json +1 -0
- package/dist/.pikku/scenarios/index.d.ts +1 -1
- package/dist/.pikku/scenarios/index.js +1 -1
- package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
- package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
- package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
- package/dist/.pikku/scheduler/index.d.ts +1 -1
- package/dist/.pikku/scheduler/index.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 +3 -1
- package/dist/.pikku/schemas/schemas/PikkuMetaApplyInput.schema.json +1 -0
- package/dist/.pikku/scopes/index.d.ts +1 -1
- package/dist/.pikku/scopes/index.js +1 -1
- package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
- package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
- package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
- package/dist/.pikku/secrets/index.d.ts +1 -1
- package/dist/.pikku/secrets/index.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/services/pikku-meta-service.gen.d.ts +1 -1
- package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
- package/dist/.pikku/setup/index.d.ts +1 -1
- package/dist/.pikku/setup/index.js +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
- package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
- package/dist/.pikku/trigger/index.d.ts +1 -1
- package/dist/.pikku/trigger/index.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/index.d.ts +1 -1
- package/dist/.pikku/variables/index.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/index.d.ts +1 -1
- package/dist/.pikku/workflow/index.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 +6 -1
- package/dist/src/fabric/functions/smoke.function.js +2 -2
- package/dist/src/fabric/functions/validate.function.js +2 -2
- package/dist/src/functions/commands/meta.d.ts +7 -0
- package/dist/src/functions/commands/meta.js +65 -0
- package/dist/src/utils/assert-single-core-version.js +63 -11
- package/package.json +4 -3
- package/surface.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
## 0.12.118
|
|
2
|
+
|
|
3
|
+
### Patch Changes
|
|
4
|
+
|
|
5
|
+
- 6ff72d3: Raise the supported Bun version to 1.4.
|
|
6
|
+
|
|
7
|
+
`@pikku/bun-server` and `@pikku/kysely-bun-sqlite` now declare `engines.bun: >=1.4.0`
|
|
8
|
+
and build against `@types/bun@^1.4.0`. `create-pikku` scaffolds
|
|
9
|
+
`"packageManager": "bun@1.4.0"`, and the fabric `smoke`/`validate` commands default to
|
|
10
|
+
and recommend the same version. CI pins `oven-sh/setup-bun` to 1.4.0 instead of
|
|
11
|
+
tracking `latest`.
|
|
12
|
+
|
|
13
|
+
- 56d6fde: `pikku meta apply` edits your own source from a batch of operations, so an agent
|
|
14
|
+
that wants to set a permission, retag a function or rewrite a body no longer has
|
|
15
|
+
to regenerate the whole project once per property.
|
|
16
|
+
|
|
17
|
+
Three things had to exist for that to be safe:
|
|
18
|
+
|
|
19
|
+
`permissions` joins the function change-set. Unlike every field before it, its
|
|
20
|
+
value is an identifier rather than a literal, so the change-set carries the
|
|
21
|
+
module each symbol comes from and the missing import is spliced in — widening an
|
|
22
|
+
existing import from that module rather than adding a second one. The same
|
|
23
|
+
mechanism fixes `tools`, which has always emitted `ref(...)` without ever
|
|
24
|
+
importing `ref`.
|
|
25
|
+
|
|
26
|
+
`applyOperations` is all-or-nothing. Every operation resolves against in-memory
|
|
27
|
+
content first and nothing is written unless all of them succeed, so a batch
|
|
28
|
+
cannot leave a project half-edited and uncompilable with no record of how far it
|
|
29
|
+
got. Operations on one file compose in order, each re-parsing the last result,
|
|
30
|
+
because a splice invalidates every offset after it. A failure names the
|
|
31
|
+
operation that caused it.
|
|
32
|
+
|
|
33
|
+
Newly added properties no longer leave a blank line behind them, and a missing
|
|
34
|
+
trailing comma is now added after the last property instead of on its own line.
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [6ff72d3]
|
|
37
|
+
- Updated dependencies [d1c6956]
|
|
38
|
+
- Updated dependencies [56d6fde]
|
|
39
|
+
- Updated dependencies [56d6fde]
|
|
40
|
+
- Updated dependencies [56d6fde]
|
|
41
|
+
- @pikku/bun-server@0.12.9
|
|
42
|
+
- @pikku/code-edit@0.12.1
|
|
43
|
+
- @pikku/skills@0.12.15
|
|
44
|
+
|
|
45
|
+
## 0.12.117
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- ad2b801: PKU717 no longer fires on a version bun or pnpm left in its store. Neither prunes
|
|
50
|
+
on upgrade, so one `@pikku/core` bump leaves both copies on disk while the links
|
|
51
|
+
resolve to one — and the guard reported a split on a tree that had none. The scan
|
|
52
|
+
now walks in from the `@pikku/*` links, so a store copy counts only when
|
|
53
|
+
something actually resolves to it.
|
|
54
|
+
|
|
1
55
|
## 0.12.116
|
|
2
56
|
|
|
3
57
|
### Patch Changes
|
|
@@ -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.118
|
|
3
3
|
*/
|
|
4
4
|
import { CoreAgent } from '@pikku/core/agent';
|
|
5
5
|
import { pikkuAgentScorer as corePikkuAgentScorer, pikkuAgentJudge as corePikkuAgentJudge } from '@pikku/core/agent-scorer';
|
package/dist/.pikku/cli/index.js
CHANGED
|
@@ -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.118
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* WebSocket channel backend for 'pikku' CLI commands
|
|
@@ -104,6 +104,7 @@ import { pikkuSkillsList } from '../../src/functions/commands/skills.js';
|
|
|
104
104
|
import { pikkuSkillsInstall } from '../../src/functions/commands/skills.js';
|
|
105
105
|
import { pikkuMetaContext } from '../../src/functions/commands/meta.js';
|
|
106
106
|
import { pikkuMetaClients } from '../../src/functions/commands/meta.js';
|
|
107
|
+
import { pikkuMetaApply } from '../../src/functions/commands/meta.js';
|
|
107
108
|
import { pikkuMetaFunctionsList } from '../../src/functions/commands/meta.js';
|
|
108
109
|
import { pikkuMetaFunctionsGet } from '../../src/functions/commands/meta.js';
|
|
109
110
|
import { pikkuMetaSchemasList } from '../../src/functions/commands/meta.js';
|
|
@@ -616,6 +617,10 @@ wireChannel({
|
|
|
616
617
|
func: pikkuMetaClients,
|
|
617
618
|
middleware: [cliCloseOnComplete],
|
|
618
619
|
},
|
|
620
|
+
'meta.apply': {
|
|
621
|
+
func: pikkuMetaApply,
|
|
622
|
+
middleware: [cliCloseOnComplete],
|
|
623
|
+
},
|
|
619
624
|
'meta.functions': {
|
|
620
625
|
func: pikkuMetaFunctionsList,
|
|
621
626
|
middleware: [cliCloseOnComplete],
|
|
@@ -1584,6 +1584,18 @@
|
|
|
1584
1584
|
"options": {},
|
|
1585
1585
|
"description": "Frontend-targeted metadata: exposed RPCs, workflows, channels with their input/output type names and descriptions"
|
|
1586
1586
|
},
|
|
1587
|
+
"apply": {
|
|
1588
|
+
"pikkuFuncId": "pikkuMetaApply",
|
|
1589
|
+
"positionals": [
|
|
1590
|
+
{
|
|
1591
|
+
"name": "file",
|
|
1592
|
+
"required": false
|
|
1593
|
+
}
|
|
1594
|
+
],
|
|
1595
|
+
"options": {},
|
|
1596
|
+
"description": "Apply a batch of edits to your own source, all-or-nothing. Takes JSON — a file, or stdin — of {operations: [{kind, sourceFile, exportedName, ...}]}, where kind is functionConfig, functionBody or agentConfig. Config edits are spliced into the original text, so formatting and comments survive, and a permission or tool written as an identifier brings its import with it. Nothing is written unless every operation resolves, so a batch either lands whole or not at all. Run `pikku all` once afterwards to refresh generated metadata.",
|
|
1597
|
+
"parameters": "[file]"
|
|
1598
|
+
},
|
|
1587
1599
|
"functions": {
|
|
1588
1600
|
"pikkuFuncId": "pikkuMetaFunctionsList",
|
|
1589
1601
|
"positionals": [],
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
"outputs": [
|
|
413
413
|
"FabricSmokeOutput"
|
|
414
414
|
],
|
|
415
|
-
"implementationHash": "
|
|
415
|
+
"implementationHash": "7504c3b9f2145011",
|
|
416
416
|
"contractHash": "761885179a417944",
|
|
417
417
|
"inputHash": "a0f23e01",
|
|
418
418
|
"outputHash": "65f77331"
|
|
@@ -1371,6 +1371,23 @@
|
|
|
1371
1371
|
"inputHash": "5ada4ca9",
|
|
1372
1372
|
"outputHash": "5a0adc87"
|
|
1373
1373
|
},
|
|
1374
|
+
"pikkuMetaApply": {
|
|
1375
|
+
"pikkuFuncId": "pikkuMetaApply",
|
|
1376
|
+
"functionType": "user",
|
|
1377
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
1378
|
+
"sessionless": true,
|
|
1379
|
+
"name": "pikkuMetaApply",
|
|
1380
|
+
"inputSchemaName": "PikkuMetaApplyInput",
|
|
1381
|
+
"outputSchemaName": null,
|
|
1382
|
+
"inputs": [
|
|
1383
|
+
"PikkuMetaApplyInput"
|
|
1384
|
+
],
|
|
1385
|
+
"outputs": [],
|
|
1386
|
+
"implementationHash": "4a8bb228c341e8c2",
|
|
1387
|
+
"contractHash": "fe5cad4d1f3c1816",
|
|
1388
|
+
"inputHash": "5a1a34d4",
|
|
1389
|
+
"outputHash": "73a48195"
|
|
1390
|
+
},
|
|
1374
1391
|
"pikkuNewAddon": {
|
|
1375
1392
|
"pikkuFuncId": "pikkuNewAddon",
|
|
1376
1393
|
"functionType": "user",
|
package/dist/.pikku/mcp/index.js
CHANGED