@pikku/cli 0.12.133 → 0.12.134
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 +44 -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 +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-contracts-meta.gen.json +13 -10
- 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 +13 -10
- 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 +3 -3
- 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/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 +1 -1
- package/dist/.pikku/schemas/schemas/FabricDeployApplyInput.schema.json +1 -1
- 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 +3 -3
- package/dist/src/fabric/fabric-commands.js +7 -6
- package/dist/src/fabric/functions/deploy.function.d.ts +14 -5
- package/dist/src/fabric/functions/deploy.function.js +49 -20
- package/dist/src/fabric/lib/stage.js +1 -1
- package/package.json +1 -1
- package/surface.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
## 0.12.134
|
|
2
|
+
|
|
3
|
+
### Patch Changes
|
|
4
|
+
|
|
5
|
+
- a0047d1: `fabric deploy apply` waits by default, takes the branch positionally, and gains `-y`
|
|
6
|
+
|
|
7
|
+
Shipping a branch unattended took four flags and a `--branch` that would not
|
|
8
|
+
accept the branch as an argument:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pikku fabric deploy apply --branch my-branch --sync --auto-approve
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Three changes, all subtractive:
|
|
15
|
+
|
|
16
|
+
- The branch is **positional**, matching `fabric rollback`, and defaults to the
|
|
17
|
+
checked-out branch when nothing names a target.
|
|
18
|
+
- `--auto-approve` gains the short form **`-y`**, matching `rollback --yes`.
|
|
19
|
+
- **`--sync` is gone: waiting is now the default.** `--detach` opts out.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pikku fabric deploy apply -y # deploys, waits, reports
|
|
23
|
+
pikku fabric deploy apply my-branch -y # a named branch
|
|
24
|
+
pikku fabric deploy apply --detach -y --json # queue and exit, for split CI jobs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Waiting became the default because the old one reported success before anything
|
|
28
|
+
had happened: without `--sync`, `apply` queued the deployment and exited 0
|
|
29
|
+
whether or not it went on to fail. That is the exotic case, and it now costs the
|
|
30
|
+
flag rather than the other way round.
|
|
31
|
+
|
|
32
|
+
`-y` answers prompts and nothing else — in particular it does **not** approve
|
|
33
|
+
migrations that drop or rewrite data. That remains `--allow-destructive`, typed
|
|
34
|
+
out on purpose, and still refuses to self-approve without it.
|
|
35
|
+
|
|
36
|
+
Branch inference is safe because the existing git safety check refuses a branch
|
|
37
|
+
with no upstream or one out of sync with it, so it cannot ship an unpushed
|
|
38
|
+
commit; the chosen branch is printed before the build starts, and a detached
|
|
39
|
+
HEAD is refused by name.
|
|
40
|
+
|
|
41
|
+
Breaking: `--sync` and `--branch`/`-b` are gone. Pass the branch positionally,
|
|
42
|
+
and `--detach` where you relied on queue-and-exit. Passing a branch together
|
|
43
|
+
with `--production` is now an error, where previously passing neither was.
|
|
44
|
+
|
|
1
45
|
## 0.12.133
|
|
2
46
|
|
|
3
47
|
### 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.134
|
|
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
|
@@ -157,12 +157,13 @@
|
|
|
157
157
|
"subcommands": {
|
|
158
158
|
"apply": {
|
|
159
159
|
"pikkuFuncId": "FabricDeployApply",
|
|
160
|
-
"positionals": [
|
|
160
|
+
"positionals": [
|
|
161
|
+
{
|
|
162
|
+
"name": "branch",
|
|
163
|
+
"required": false
|
|
164
|
+
}
|
|
165
|
+
],
|
|
161
166
|
"options": {
|
|
162
|
-
"branch": {
|
|
163
|
-
"description": "Target branch to deploy",
|
|
164
|
-
"short": "b"
|
|
165
|
-
},
|
|
166
167
|
"production": {
|
|
167
168
|
"description": "Deploy production (always main)",
|
|
168
169
|
"default": false
|
|
@@ -171,28 +172,30 @@
|
|
|
171
172
|
"description": "Deploy a specific ref instead of the branch head"
|
|
172
173
|
},
|
|
173
174
|
"deploymentId": {
|
|
174
|
-
"description": "Attach to an existing deployment instead of creating one (not with
|
|
175
|
+
"description": "Attach to an existing deployment instead of creating one (not with a branch/--production)"
|
|
175
176
|
},
|
|
176
|
-
"
|
|
177
|
-
"description": "
|
|
177
|
+
"detach": {
|
|
178
|
+
"description": "Queue the deployment and exit without waiting, reporting nothing about whether it landed",
|
|
178
179
|
"default": false
|
|
179
180
|
},
|
|
180
181
|
"autoApprove": {
|
|
181
182
|
"description": "Answer the confirmation prompt and publish a plan parked at the approval gate",
|
|
183
|
+
"short": "y",
|
|
182
184
|
"default": false
|
|
183
185
|
},
|
|
184
186
|
"allowDestructive": {
|
|
185
|
-
"description": "Approve a plan whose migrations drop or rewrite data (
|
|
187
|
+
"description": "Approve a plan whose migrations drop or rewrite data (-y alone will not)",
|
|
186
188
|
"default": false
|
|
187
189
|
},
|
|
188
190
|
"timeout": {
|
|
189
|
-
"description": "Seconds to wait
|
|
191
|
+
"description": "Seconds to wait for the deployment (default 900)"
|
|
190
192
|
},
|
|
191
193
|
"json": {
|
|
192
194
|
"description": "Machine-readable output (NDJSON)",
|
|
193
195
|
"default": false
|
|
194
196
|
}
|
|
195
197
|
},
|
|
198
|
+
"parameters": "[branch]",
|
|
196
199
|
"renderName": "renderDeployApply",
|
|
197
200
|
"description": "Build + deploy a named branch or production (main), or attach to an existing deployment"
|
|
198
201
|
},
|
|
@@ -893,12 +893,13 @@
|
|
|
893
893
|
"subcommands": {
|
|
894
894
|
"apply": {
|
|
895
895
|
"pikkuFuncId": "FabricDeployApply",
|
|
896
|
-
"positionals": [
|
|
896
|
+
"positionals": [
|
|
897
|
+
{
|
|
898
|
+
"name": "branch",
|
|
899
|
+
"required": false
|
|
900
|
+
}
|
|
901
|
+
],
|
|
897
902
|
"options": {
|
|
898
|
-
"branch": {
|
|
899
|
-
"description": "Target branch to deploy",
|
|
900
|
-
"short": "b"
|
|
901
|
-
},
|
|
902
903
|
"production": {
|
|
903
904
|
"description": "Deploy production (always main)",
|
|
904
905
|
"default": false
|
|
@@ -907,28 +908,30 @@
|
|
|
907
908
|
"description": "Deploy a specific ref instead of the branch head"
|
|
908
909
|
},
|
|
909
910
|
"deploymentId": {
|
|
910
|
-
"description": "Attach to an existing deployment instead of creating one (not with
|
|
911
|
+
"description": "Attach to an existing deployment instead of creating one (not with a branch/--production)"
|
|
911
912
|
},
|
|
912
|
-
"
|
|
913
|
-
"description": "
|
|
913
|
+
"detach": {
|
|
914
|
+
"description": "Queue the deployment and exit without waiting, reporting nothing about whether it landed",
|
|
914
915
|
"default": false
|
|
915
916
|
},
|
|
916
917
|
"autoApprove": {
|
|
917
918
|
"description": "Answer the confirmation prompt and publish a plan parked at the approval gate",
|
|
919
|
+
"short": "y",
|
|
918
920
|
"default": false
|
|
919
921
|
},
|
|
920
922
|
"allowDestructive": {
|
|
921
|
-
"description": "Approve a plan whose migrations drop or rewrite data (
|
|
923
|
+
"description": "Approve a plan whose migrations drop or rewrite data (-y alone will not)",
|
|
922
924
|
"default": false
|
|
923
925
|
},
|
|
924
926
|
"timeout": {
|
|
925
|
-
"description": "Seconds to wait
|
|
927
|
+
"description": "Seconds to wait for the deployment (default 900)"
|
|
926
928
|
},
|
|
927
929
|
"json": {
|
|
928
930
|
"description": "Machine-readable output (NDJSON)",
|
|
929
931
|
"default": false
|
|
930
932
|
}
|
|
931
933
|
},
|
|
934
|
+
"parameters": "[branch]",
|
|
932
935
|
"renderName": "renderDeployApply",
|
|
933
936
|
"description": "Build + deploy a named branch or production (main), or attach to an existing deployment"
|
|
934
937
|
},
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
"outputs": [
|
|
109
109
|
"FabricDeployApplyOutput"
|
|
110
110
|
],
|
|
111
|
-
"implementationHash": "
|
|
112
|
-
"contractHash": "
|
|
113
|
-
"inputHash": "
|
|
111
|
+
"implementationHash": "1a768c83c5b4e1e6",
|
|
112
|
+
"contractHash": "1584af3c440e22e3",
|
|
113
|
+
"inputHash": "0ffa4faa",
|
|
114
114
|
"outputHash": "8133c760"
|
|
115
115
|
},
|
|
116
116
|
"FabricDomainsAdd": {
|
package/dist/.pikku/mcp/index.js
CHANGED