@pikku/cli 0.12.121 → 0.12.122
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 +25 -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 +11 -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-contracts-meta.gen.json +49 -0
- 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 +49 -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 +38 -0
- 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 +2 -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 +9 -1
- package/dist/.pikku/schemas/schemas/FabricVariablesGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricVariablesGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricVariablesSetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/FabricVariablesSetOutput.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/fabric/fabric-commands.d.ts +52 -0
- package/dist/src/fabric/fabric-commands.js +25 -0
- package/dist/src/fabric/functions/variables-get.function.d.ts +36 -0
- package/dist/src/fabric/functions/variables-get.function.js +46 -0
- package/dist/src/fabric/functions/variables-set.function.d.ts +32 -0
- package/dist/src/fabric/functions/variables-set.function.js +41 -0
- package/dist/src/fabric/lib/variable-value.d.ts +15 -0
- package/dist/src/fabric/lib/variable-value.js +22 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/surface.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
## 0.12.122
|
|
2
|
+
|
|
3
|
+
### Patch Changes
|
|
4
|
+
|
|
5
|
+
- 7d8082a: Add `pikku fabric variables set` and `pikku fabric variables get`
|
|
6
|
+
|
|
7
|
+
`secrets` was the only stage-scoped store the CLI exposed, so a value declared
|
|
8
|
+
with `defineVariable` could be set locally through `.env` and not at all on a
|
|
9
|
+
deployed stage — `variables.get('NAME')` compiled, ran, and answered `undefined`
|
|
10
|
+
forever, with nothing saying why. The fabric API already had
|
|
11
|
+
`setStageConsoleVariable` and `getStageConsoleVariable`; only the CLI surface was
|
|
12
|
+
missing.
|
|
13
|
+
|
|
14
|
+
`set` stores the value the way `LocalVariablesService` reads one: `JSON.parse`,
|
|
15
|
+
falling back to the raw string. `--value true` is therefore the boolean on a
|
|
16
|
+
stage exactly as it is from `.env`, and `--value '"true"'` is the string. `get`
|
|
17
|
+
prints the stored value as JSON so the two are distinguishable, which is usually
|
|
18
|
+
why you are looking.
|
|
19
|
+
|
|
20
|
+
Variables are not sealed and are readable back — that is the difference from
|
|
21
|
+
`secrets`, and anything that would hurt to print belongs in `secrets set`.
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [7d8082a]
|
|
24
|
+
- @pikku/skills@0.12.18
|
|
25
|
+
|
|
1
26
|
## 0.12.121
|
|
2
27
|
|
|
3
28
|
### 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.122
|
|
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.122
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* WebSocket channel backend for 'pikku' CLI commands
|
|
@@ -60,6 +60,8 @@ import { FabricRollback } from '../../src/fabric/functions/rollback.function.js'
|
|
|
60
60
|
import { FabricSecretsSet } from '../../src/fabric/functions/secrets-set.function.js';
|
|
61
61
|
import { FabricSecretsList } from '../../src/fabric/functions/secrets-list.function.js';
|
|
62
62
|
import { FabricSecretsRotate } from '../../src/fabric/functions/secrets-rotate.function.js';
|
|
63
|
+
import { FabricVariablesSet } from '../../src/fabric/functions/variables-set.function.js';
|
|
64
|
+
import { FabricVariablesGet } from '../../src/fabric/functions/variables-get.function.js';
|
|
63
65
|
import { FabricLogs } from '../../src/fabric/functions/logs.function.js';
|
|
64
66
|
import { FabricMetrics } from '../../src/fabric/functions/metrics.function.js';
|
|
65
67
|
import { FabricTrace } from '../../src/fabric/functions/trace.function.js';
|
|
@@ -441,6 +443,14 @@ wireChannel({
|
|
|
441
443
|
func: FabricSecretsRotate,
|
|
442
444
|
middleware: [cliCloseOnComplete],
|
|
443
445
|
},
|
|
446
|
+
'fabric.variables.set': {
|
|
447
|
+
func: FabricVariablesSet,
|
|
448
|
+
middleware: [cliCloseOnComplete],
|
|
449
|
+
},
|
|
450
|
+
'fabric.variables.get': {
|
|
451
|
+
func: FabricVariablesGet,
|
|
452
|
+
middleware: [cliCloseOnComplete],
|
|
453
|
+
},
|
|
444
454
|
'fabric.logs': {
|
|
445
455
|
func: FabricLogs,
|
|
446
456
|
middleware: [cliCloseOnComplete],
|
|
@@ -314,6 +314,55 @@
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
+
"variables": {
|
|
318
|
+
"pikkuFuncId": "",
|
|
319
|
+
"positionals": [],
|
|
320
|
+
"options": {},
|
|
321
|
+
"description": "Manage stage-scoped variables",
|
|
322
|
+
"subcommands": {
|
|
323
|
+
"set": {
|
|
324
|
+
"pikkuFuncId": "FabricVariablesSet",
|
|
325
|
+
"positionals": [
|
|
326
|
+
{
|
|
327
|
+
"name": "name",
|
|
328
|
+
"required": true
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"options": {
|
|
332
|
+
"branch": {
|
|
333
|
+
"description": "Target branch",
|
|
334
|
+
"short": "b"
|
|
335
|
+
},
|
|
336
|
+
"value": {
|
|
337
|
+
"description": "Variable value, read as JSON when it parses"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"parameters": "<name>",
|
|
341
|
+
"description": "Set a stage-scoped variable"
|
|
342
|
+
},
|
|
343
|
+
"get": {
|
|
344
|
+
"pikkuFuncId": "FabricVariablesGet",
|
|
345
|
+
"positionals": [
|
|
346
|
+
{
|
|
347
|
+
"name": "name",
|
|
348
|
+
"required": true
|
|
349
|
+
}
|
|
350
|
+
],
|
|
351
|
+
"options": {
|
|
352
|
+
"branch": {
|
|
353
|
+
"description": "Target branch",
|
|
354
|
+
"short": "b"
|
|
355
|
+
},
|
|
356
|
+
"json": {
|
|
357
|
+
"description": "Machine-readable output",
|
|
358
|
+
"default": false
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"parameters": "<name>",
|
|
362
|
+
"description": "Read a stage-scoped variable back"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
},
|
|
317
366
|
"logs": {
|
|
318
367
|
"pikkuFuncId": "FabricLogs",
|
|
319
368
|
"positionals": [],
|
|
@@ -941,6 +941,55 @@
|
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
},
|
|
944
|
+
"variables": {
|
|
945
|
+
"pikkuFuncId": "",
|
|
946
|
+
"positionals": [],
|
|
947
|
+
"options": {},
|
|
948
|
+
"description": "Manage stage-scoped variables",
|
|
949
|
+
"subcommands": {
|
|
950
|
+
"set": {
|
|
951
|
+
"pikkuFuncId": "FabricVariablesSet",
|
|
952
|
+
"positionals": [
|
|
953
|
+
{
|
|
954
|
+
"name": "name",
|
|
955
|
+
"required": true
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
"options": {
|
|
959
|
+
"branch": {
|
|
960
|
+
"description": "Target branch",
|
|
961
|
+
"short": "b"
|
|
962
|
+
},
|
|
963
|
+
"value": {
|
|
964
|
+
"description": "Variable value, read as JSON when it parses"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"parameters": "<name>",
|
|
968
|
+
"description": "Set a stage-scoped variable"
|
|
969
|
+
},
|
|
970
|
+
"get": {
|
|
971
|
+
"pikkuFuncId": "FabricVariablesGet",
|
|
972
|
+
"positionals": [
|
|
973
|
+
{
|
|
974
|
+
"name": "name",
|
|
975
|
+
"required": true
|
|
976
|
+
}
|
|
977
|
+
],
|
|
978
|
+
"options": {
|
|
979
|
+
"branch": {
|
|
980
|
+
"description": "Target branch",
|
|
981
|
+
"short": "b"
|
|
982
|
+
},
|
|
983
|
+
"json": {
|
|
984
|
+
"description": "Machine-readable output",
|
|
985
|
+
"default": false
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"parameters": "<name>",
|
|
989
|
+
"description": "Read a stage-scoped variable back"
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
},
|
|
944
993
|
"logs": {
|
|
945
994
|
"pikkuFuncId": "FabricLogs",
|
|
946
995
|
"positionals": [],
|
|
@@ -474,6 +474,44 @@
|
|
|
474
474
|
"inputHash": "2f00fd21",
|
|
475
475
|
"outputHash": "bb91f545"
|
|
476
476
|
},
|
|
477
|
+
"FabricVariablesGet": {
|
|
478
|
+
"pikkuFuncId": "FabricVariablesGet",
|
|
479
|
+
"functionType": "user",
|
|
480
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
481
|
+
"sessionless": true,
|
|
482
|
+
"name": "FabricVariablesGet",
|
|
483
|
+
"inputSchemaName": "FabricVariablesGetInput",
|
|
484
|
+
"outputSchemaName": "FabricVariablesGetOutput",
|
|
485
|
+
"inputs": [
|
|
486
|
+
"FabricVariablesGetInput"
|
|
487
|
+
],
|
|
488
|
+
"outputs": [
|
|
489
|
+
"FabricVariablesGetOutput"
|
|
490
|
+
],
|
|
491
|
+
"implementationHash": "4b73a62e017c47f7",
|
|
492
|
+
"contractHash": "62e887328831e6aa",
|
|
493
|
+
"inputHash": "7f4abdd8",
|
|
494
|
+
"outputHash": "739df02c"
|
|
495
|
+
},
|
|
496
|
+
"FabricVariablesSet": {
|
|
497
|
+
"pikkuFuncId": "FabricVariablesSet",
|
|
498
|
+
"functionType": "user",
|
|
499
|
+
"funcWrapper": "pikkuSessionlessFunc",
|
|
500
|
+
"sessionless": true,
|
|
501
|
+
"name": "FabricVariablesSet",
|
|
502
|
+
"inputSchemaName": "FabricVariablesSetInput",
|
|
503
|
+
"outputSchemaName": "FabricVariablesSetOutput",
|
|
504
|
+
"inputs": [
|
|
505
|
+
"FabricVariablesSetInput"
|
|
506
|
+
],
|
|
507
|
+
"outputs": [
|
|
508
|
+
"FabricVariablesSetOutput"
|
|
509
|
+
],
|
|
510
|
+
"implementationHash": "c656dc39497de9da",
|
|
511
|
+
"contractHash": "db025cda5818089a",
|
|
512
|
+
"inputHash": "f15747cc",
|
|
513
|
+
"outputHash": "60e4dfcc"
|
|
514
|
+
},
|
|
477
515
|
"all": {
|
|
478
516
|
"pikkuFuncId": "all",
|
|
479
517
|
"functionType": "user",
|
package/dist/.pikku/mcp/index.js
CHANGED