@pithy-sh/core 0.13.0 → 0.15.0
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/README.md +54 -0
- package/dist/audit/auditEvent.js +1 -1
- package/dist/audit/chain.d.ts +289 -0
- package/dist/audit/chain.d.ts.map +1 -0
- package/dist/audit/chain.js +400 -0
- package/dist/audit/citations.d.ts +52 -0
- package/dist/audit/citations.d.ts.map +1 -0
- package/dist/audit/citations.js +13 -0
- package/dist/capability/bindings.d.ts +22 -0
- package/dist/capability/bindings.d.ts.map +1 -1
- package/dist/capability/bindings.js +32 -2
- package/dist/capability/capability.d.ts +123 -16
- package/dist/capability/capability.d.ts.map +1 -1
- package/dist/capability/capability.js +17 -2
- package/dist/capability/erasure.d.ts +75 -0
- package/dist/capability/erasure.d.ts.map +1 -0
- package/dist/capability/erasure.js +2 -0
- package/dist/capability/manifest.d.ts +5 -0
- package/dist/capability/manifest.d.ts.map +1 -1
- package/dist/capability/personColumns.d.ts +28 -0
- package/dist/capability/personColumns.d.ts.map +1 -0
- package/dist/capability/personColumns.js +66 -0
- package/dist/capability/personRows.d.ts +62 -0
- package/dist/capability/personRows.d.ts.map +1 -0
- package/dist/capability/personRows.js +59 -0
- package/dist/capability/purge.d.ts +86 -19
- package/dist/capability/purge.d.ts.map +1 -1
- package/dist/capability/purge.js +83 -5
- package/dist/capability/settings.d.ts +10 -0
- package/dist/capability/settings.d.ts.map +1 -1
- package/dist/capability/vectorIndex.d.ts +36 -0
- package/dist/capability/vectorIndex.d.ts.map +1 -0
- package/dist/capability/vectorIndex.js +25 -0
- package/dist/cli/commandCatalog.generated.d.ts +438 -3
- package/dist/cli/commandCatalog.generated.d.ts.map +1 -1
- package/dist/cli/commandCatalog.generated.js +454 -2
- package/dist/cli/commandFacts.d.ts +8 -5
- package/dist/cli/commandFacts.d.ts.map +1 -1
- package/dist/cli/commandFacts.js +12 -3
- package/dist/consent/purpose.d.ts +70 -0
- package/dist/consent/purpose.d.ts.map +1 -0
- package/dist/consent/purpose.js +97 -0
- package/dist/consent/reader.d.ts +99 -0
- package/dist/consent/reader.d.ts.map +1 -0
- package/dist/consent/reader.js +33 -0
- package/dist/controlPlane/audit/actions.d.ts +15 -4
- package/dist/controlPlane/audit/actions.d.ts.map +1 -1
- package/dist/controlPlane/audit/actions.js +16 -5
- package/dist/controlPlane/capability.d.ts +10 -0
- package/dist/controlPlane/capability.d.ts.map +1 -1
- package/dist/controlPlane/capability.js +56 -8
- package/dist/controlPlane/context.d.ts +4 -0
- package/dist/controlPlane/context.d.ts.map +1 -1
- package/dist/controlPlane/context.js +3 -2
- package/dist/controlPlane/data/connection.d.ts +21 -2
- package/dist/controlPlane/data/connection.d.ts.map +1 -1
- package/dist/controlPlane/data/connection.js +13 -4
- package/dist/controlPlane/data/connections.d.ts +94 -0
- package/dist/controlPlane/data/connections.d.ts.map +1 -0
- package/dist/controlPlane/data/connections.js +151 -0
- package/dist/controlPlane/data/hold.d.ts +46 -0
- package/dist/controlPlane/data/hold.d.ts.map +1 -0
- package/dist/controlPlane/data/hold.js +36 -0
- package/dist/controlPlane/data/oidcTrust.d.ts +122 -0
- package/dist/controlPlane/data/oidcTrust.d.ts.map +1 -0
- package/dist/controlPlane/data/oidcTrust.js +173 -0
- package/dist/controlPlane/data/tables.d.ts +4 -0
- package/dist/controlPlane/data/tables.d.ts.map +1 -1
- package/dist/controlPlane/data/tables.js +9 -4
- package/dist/controlPlane/data/trustFirstCall.d.ts +16 -0
- package/dist/controlPlane/data/trustFirstCall.d.ts.map +1 -0
- package/dist/controlPlane/data/trustFirstCall.js +25 -0
- package/dist/controlPlane/discovery/adminRoute.d.ts +165 -2
- package/dist/controlPlane/discovery/adminRoute.d.ts.map +1 -1
- package/dist/controlPlane/discovery/adminRoute.js +32 -8
- package/dist/controlPlane/discovery/routeInput.d.ts +23 -0
- package/dist/controlPlane/discovery/routeInput.d.ts.map +1 -0
- package/dist/controlPlane/discovery/routeInput.js +80 -0
- package/dist/controlPlane/discovery/toolName.d.ts +21 -0
- package/dist/controlPlane/discovery/toolName.d.ts.map +1 -0
- package/dist/controlPlane/discovery/toolName.js +25 -0
- package/dist/controlPlane/erasure/attest.d.ts +78 -0
- package/dist/controlPlane/erasure/attest.d.ts.map +1 -0
- package/dist/controlPlane/erasure/attest.js +164 -0
- package/dist/controlPlane/erasure/read.d.ts +39 -0
- package/dist/controlPlane/erasure/read.d.ts.map +1 -0
- package/dist/controlPlane/erasure/read.js +140 -0
- package/dist/controlPlane/error/errors.d.ts +61 -2
- package/dist/controlPlane/error/errors.d.ts.map +1 -1
- package/dist/controlPlane/error/errors.js +13 -0
- package/dist/controlPlane/evidence/derive.d.ts +124 -0
- package/dist/controlPlane/evidence/derive.d.ts.map +1 -0
- package/dist/controlPlane/evidence/derive.js +343 -0
- package/dist/controlPlane/evidence/mapping.d.ts +85 -0
- package/dist/controlPlane/evidence/mapping.d.ts.map +1 -0
- package/dist/controlPlane/evidence/mapping.js +114 -0
- package/dist/controlPlane/evidence/pack.d.ts +46 -0
- package/dist/controlPlane/evidence/pack.d.ts.map +1 -0
- package/dist/controlPlane/evidence/pack.js +124 -0
- package/dist/controlPlane/http/connections.d.ts +96 -0
- package/dist/controlPlane/http/connections.d.ts.map +1 -0
- package/dist/controlPlane/http/connections.js +109 -0
- package/dist/controlPlane/http/guard.d.ts +23 -2
- package/dist/controlPlane/http/guard.d.ts.map +1 -1
- package/dist/controlPlane/http/guard.js +69 -12
- package/dist/controlPlane/http/handlers.d.ts +212 -10
- package/dist/controlPlane/http/handlers.d.ts.map +1 -1
- package/dist/controlPlane/http/handlers.js +117 -26
- package/dist/controlPlane/http/holds.d.ts +57 -0
- package/dist/controlPlane/http/holds.d.ts.map +1 -0
- package/dist/controlPlane/http/holds.js +98 -0
- package/dist/controlPlane/http/presence.d.ts +27 -0
- package/dist/controlPlane/http/presence.d.ts.map +1 -0
- package/dist/controlPlane/http/presence.js +67 -0
- package/dist/controlPlane/http/processing.d.ts +73 -0
- package/dist/controlPlane/http/processing.d.ts.map +1 -0
- package/dist/controlPlane/http/processing.js +17 -0
- package/dist/controlPlane/http/responses.d.ts +927 -3
- package/dist/controlPlane/http/responses.d.ts.map +1 -1
- package/dist/controlPlane/http/responses.js +283 -7
- package/dist/controlPlane/http/routes.d.ts +12 -2
- package/dist/controlPlane/http/routes.d.ts.map +1 -1
- package/dist/controlPlane/http/routes.js +182 -5
- package/dist/controlPlane/http/schemas.d.ts +63 -0
- package/dist/controlPlane/http/schemas.d.ts.map +1 -1
- package/dist/controlPlane/http/schemas.js +39 -1
- package/dist/controlPlane/http/verify.d.ts.map +1 -1
- package/dist/controlPlane/http/verify.js +13 -1
- package/dist/controlPlane/http/verifyTrust.d.ts +76 -0
- package/dist/controlPlane/http/verifyTrust.d.ts.map +1 -0
- package/dist/controlPlane/http/verifyTrust.js +75 -0
- package/dist/controlPlane/migrations/0004_connection_trusts.d.ts +15 -0
- package/dist/controlPlane/migrations/0004_connection_trusts.d.ts.map +1 -0
- package/dist/controlPlane/migrations/0004_connection_trusts.js +23 -0
- package/dist/controlPlane/migrations/0005_holds.d.ts +12 -0
- package/dist/controlPlane/migrations/0005_holds.d.ts.map +1 -0
- package/dist/controlPlane/migrations/0005_holds.js +26 -0
- package/dist/controlPlane/processing/derive.d.ts +77 -0
- package/dist/controlPlane/processing/derive.d.ts.map +1 -0
- package/dist/controlPlane/processing/derive.js +206 -0
- package/dist/controlPlane/processing/read.d.ts +10 -0
- package/dist/controlPlane/processing/read.d.ts.map +1 -0
- package/dist/controlPlane/processing/read.js +89 -0
- package/dist/controlPlane/scope/kind.d.ts +46 -0
- package/dist/controlPlane/scope/kind.d.ts.map +1 -0
- package/dist/controlPlane/scope/kind.js +52 -0
- package/dist/controlPlane/scope/scope.d.ts +58 -3
- package/dist/controlPlane/scope/scope.d.ts.map +1 -1
- package/dist/controlPlane/scope/scope.js +59 -4
- package/dist/controlPlane/token/jws.js +1 -1
- package/dist/controlPlane/token/mint.js +1 -1
- package/dist/controlPlane/wire.d.ts +23 -0
- package/dist/controlPlane/wire.d.ts.map +1 -1
- package/dist/controlPlane/wire.js +24 -1
- package/dist/createBackend.d.ts +13 -0
- package/dist/createBackend.d.ts.map +1 -1
- package/dist/createBackend.js +11 -3
- package/dist/createEntrypoint.d.ts +7 -0
- package/dist/createEntrypoint.d.ts.map +1 -1
- package/dist/createEntrypoint.js +4 -0
- package/dist/error/http.d.ts +168 -0
- package/dist/error/http.d.ts.map +1 -1
- package/dist/error/payload.d.ts +336 -0
- package/dist/error/payload.d.ts.map +1 -1
- package/dist/error/payload.js +112 -0
- package/dist/error/pithyError.d.ts +22 -0
- package/dist/error/pithyError.d.ts.map +1 -1
- package/dist/error/pithyError.js +31 -1
- package/dist/http/routeSpec.d.ts +46 -1
- package/dist/http/routeSpec.d.ts.map +1 -1
- package/dist/http/routeSpec.js +39 -5
- package/dist/http/verification.d.ts.map +1 -1
- package/dist/http/verification.js +1 -1
- package/dist/i18n/translator.d.ts +2 -1
- package/dist/i18n/translator.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/logger/record.d.ts +98 -0
- package/dist/logger/record.d.ts.map +1 -1
- package/dist/mcp/annotations.d.ts +20 -0
- package/dist/mcp/annotations.d.ts.map +1 -0
- package/dist/mcp/annotations.js +23 -0
- package/dist/mcp/tools.d.ts +75 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +118 -0
- package/dist/openapi/document.d.ts.map +1 -1
- package/dist/openapi/document.js +8 -26
- package/dist/openapi/operations.d.ts +35 -0
- package/dist/openapi/operations.d.ts.map +1 -0
- package/dist/openapi/operations.js +37 -0
- package/dist/presence/channel.d.ts +11 -0
- package/dist/presence/channel.d.ts.map +1 -0
- package/dist/presence/channel.js +65 -0
- package/dist/presence/declaration.d.ts +154 -0
- package/dist/presence/declaration.d.ts.map +1 -0
- package/dist/presence/declaration.js +164 -0
- package/dist/presence/durableObject.d.ts +61 -0
- package/dist/presence/durableObject.d.ts.map +1 -0
- package/dist/presence/durableObject.js +257 -0
- package/dist/presence/frames.d.ts +166 -0
- package/dist/presence/frames.d.ts.map +1 -0
- package/dist/presence/frames.js +90 -0
- package/dist/presence/http/guard.d.ts +11 -0
- package/dist/presence/http/guard.d.ts.map +1 -0
- package/dist/presence/http/guard.js +20 -0
- package/dist/presence/http/responses.d.ts +31 -0
- package/dist/presence/http/responses.d.ts.map +1 -0
- package/dist/presence/http/responses.js +34 -0
- package/dist/presence/http/routes.d.ts +24 -0
- package/dist/presence/http/routes.d.ts.map +1 -0
- package/dist/presence/http/routes.js +127 -0
- package/dist/presence/http/schemas.d.ts +29 -0
- package/dist/presence/http/schemas.d.ts.map +1 -0
- package/dist/presence/http/schemas.js +28 -0
- package/dist/presence/names.d.ts +23 -0
- package/dist/presence/names.d.ts.map +1 -0
- package/dist/presence/names.js +22 -0
- package/dist/presence/room.d.ts +95 -0
- package/dist/presence/room.d.ts.map +1 -0
- package/dist/presence/room.js +105 -0
- package/dist/presence/ticket.d.ts +55 -0
- package/dist/presence/ticket.d.ts.map +1 -0
- package/dist/presence/ticket.js +109 -0
- package/dist/privacy/classify.js +1 -1
- package/dist/privacy/encrypted.js +1 -1
- package/dist/processing/activity.d.ts +134 -0
- package/dist/processing/activity.d.ts.map +1 -0
- package/dist/processing/activity.js +161 -0
- package/dist/processing/composed.d.ts +18 -0
- package/dist/processing/composed.d.ts.map +1 -0
- package/dist/processing/composed.js +28 -0
- package/dist/processing/vocabulary.d.ts +26 -0
- package/dist/processing/vocabulary.d.ts.map +1 -0
- package/dist/processing/vocabulary.js +35 -0
- package/dist/queue/consumer.d.ts +59 -0
- package/dist/queue/consumer.d.ts.map +1 -0
- package/dist/queue/consumer.js +46 -0
- package/dist/retention/composed.d.ts +37 -0
- package/dist/retention/composed.d.ts.map +1 -0
- package/dist/retention/composed.js +66 -0
- package/dist/retention/holds.d.ts +61 -0
- package/dist/retention/holds.d.ts.map +1 -0
- package/dist/retention/holds.js +107 -0
- package/dist/retention/holdsPurge.d.ts +22 -0
- package/dist/retention/holdsPurge.d.ts.map +1 -0
- package/dist/retention/holdsPurge.js +50 -0
- package/dist/retention/policy.d.ts +132 -0
- package/dist/retention/policy.d.ts.map +1 -0
- package/dist/retention/policy.js +197 -0
- package/dist/session/rotated.d.ts +34 -0
- package/dist/session/rotated.d.ts.map +1 -0
- package/dist/session/rotated.js +25 -0
- package/dist/test-utils/connectionFixtures.d.ts +13 -0
- package/dist/test-utils/connectionFixtures.d.ts.map +1 -0
- package/dist/test-utils/connectionFixtures.js +58 -0
- package/dist/test-utils/interleave.d.ts +12 -0
- package/dist/test-utils/interleave.d.ts.map +1 -0
- package/dist/test-utils/interleave.js +26 -0
- package/dist/testWorker.d.ts +8 -0
- package/dist/testWorker.d.ts.map +1 -0
- package/dist/testWorker.js +9 -0
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/dist/workflow/dispatchRoute.js +1 -1
- package/package.json +1 -1
- package/src/audit/auditEvent.ts +1 -1
- package/src/audit/chain.ts +551 -0
- package/src/audit/citations.ts +63 -0
- package/src/capability/bindings.ts +61 -0
- package/src/capability/capability.ts +156 -19
- package/src/capability/erasure.ts +82 -0
- package/src/capability/personColumns.ts +83 -0
- package/src/capability/personRows.ts +125 -0
- package/src/capability/purge.ts +158 -21
- package/src/capability/settings.ts +7 -0
- package/src/capability/vectorIndex.ts +60 -0
- package/src/cli/commandCatalog.generated.ts +487 -2
- package/src/cli/commandFacts.ts +12 -3
- package/src/cloudflare-test.d.ts +3 -1
- package/src/consent/purpose.ts +160 -0
- package/src/consent/reader.ts +134 -0
- package/src/controlPlane/audit/actions.ts +15 -4
- package/src/controlPlane/capability.ts +99 -20
- package/src/controlPlane/context.ts +10 -2
- package/src/controlPlane/data/connection.ts +16 -2
- package/src/controlPlane/data/connections.ts +231 -0
- package/src/controlPlane/data/hold.ts +52 -0
- package/src/controlPlane/data/oidcTrust.ts +249 -0
- package/src/controlPlane/data/tables.ts +7 -0
- package/src/controlPlane/data/trustFirstCall.ts +37 -0
- package/src/controlPlane/discovery/adminRoute.ts +71 -9
- package/src/controlPlane/discovery/routeInput.ts +86 -0
- package/src/controlPlane/discovery/toolName.ts +23 -0
- package/src/controlPlane/erasure/attest.ts +205 -0
- package/src/controlPlane/erasure/read.ts +169 -0
- package/src/controlPlane/error/errors.ts +69 -2
- package/src/controlPlane/evidence/derive.ts +426 -0
- package/src/controlPlane/evidence/mapping.ts +118 -0
- package/src/controlPlane/evidence/pack.ts +190 -0
- package/src/controlPlane/http/connections.ts +129 -0
- package/src/controlPlane/http/guard.ts +118 -9
- package/src/controlPlane/http/handlers.ts +172 -40
- package/src/controlPlane/http/holds.ts +108 -0
- package/src/controlPlane/http/presence.ts +71 -0
- package/src/controlPlane/http/processing.ts +19 -0
- package/src/controlPlane/http/responses.ts +590 -7
- package/src/controlPlane/http/routes.ts +302 -3
- package/src/controlPlane/http/schemas.ts +126 -0
- package/src/controlPlane/http/verify.ts +19 -2
- package/src/controlPlane/http/verifyTrust.ts +176 -0
- package/src/controlPlane/migrations/0004_connection_trusts.ts +30 -0
- package/src/controlPlane/migrations/0005_holds.ts +40 -0
- package/src/controlPlane/processing/derive.ts +359 -0
- package/src/controlPlane/processing/read.ts +102 -0
- package/src/controlPlane/scope/kind.ts +63 -0
- package/src/controlPlane/scope/scope.ts +65 -3
- package/src/controlPlane/wire.ts +26 -0
- package/src/createBackend.ts +31 -6
- package/src/createEntrypoint.ts +17 -0
- package/src/error/payload.ts +234 -0
- package/src/error/pithyError.ts +42 -0
- package/src/http/routeSpec.ts +75 -5
- package/src/http/verification.ts +3 -1
- package/src/i18n/translator.ts +2 -1
- package/src/index.ts +2 -0
- package/src/mcp/annotations.ts +38 -0
- package/src/mcp/tools.ts +220 -0
- package/src/openapi/document.ts +8 -28
- package/src/openapi/operations.ts +62 -0
- package/src/presence/channel.ts +46 -0
- package/src/presence/declaration.ts +283 -0
- package/src/presence/durableObject.ts +287 -0
- package/src/presence/frames.ts +153 -0
- package/src/presence/http/guard.ts +23 -0
- package/src/presence/http/responses.ts +63 -0
- package/src/presence/http/routes.ts +165 -0
- package/src/presence/http/schemas.ts +39 -0
- package/src/presence/names.ts +45 -0
- package/src/presence/room.ts +145 -0
- package/src/presence/ticket.ts +145 -0
- package/src/processing/activity.ts +289 -0
- package/src/processing/composed.ts +33 -0
- package/src/processing/vocabulary.ts +43 -0
- package/src/queue/consumer.ts +104 -0
- package/src/retention/composed.ts +75 -0
- package/src/retention/holds.ts +175 -0
- package/src/retention/holdsPurge.ts +50 -0
- package/src/retention/policy.ts +305 -0
- package/src/session/rotated.ts +53 -0
- package/src/test-utils/connectionFixtures.ts +58 -0
- package/src/test-utils/interleave.ts +31 -0
- package/src/testWorker.ts +13 -0
- package/src/version.generated.ts +1 -1
|
@@ -25,6 +25,11 @@ const COMMANDS = {
|
|
|
25
25
|
"required": false,
|
|
26
26
|
"repeatable": true
|
|
27
27
|
},
|
|
28
|
+
"--floor": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": false,
|
|
31
|
+
"repeatable": false
|
|
32
|
+
},
|
|
28
33
|
"--eject": {
|
|
29
34
|
"type": "boolean",
|
|
30
35
|
"required": false,
|
|
@@ -77,6 +82,67 @@ const COMMANDS = {
|
|
|
77
82
|
"flags": ["--remove", "--status"]
|
|
78
83
|
}]
|
|
79
84
|
},
|
|
85
|
+
"audit lock": {
|
|
86
|
+
"positionals": [],
|
|
87
|
+
"flags": {
|
|
88
|
+
"--env": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"required": false,
|
|
91
|
+
"repeatable": false
|
|
92
|
+
},
|
|
93
|
+
"--json": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"required": false,
|
|
96
|
+
"repeatable": false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"groups": []
|
|
100
|
+
},
|
|
101
|
+
"audit verify": {
|
|
102
|
+
"positionals": [{
|
|
103
|
+
"name": "file",
|
|
104
|
+
"required": true,
|
|
105
|
+
"variadic": false
|
|
106
|
+
}],
|
|
107
|
+
"flags": { "--json": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"required": false,
|
|
110
|
+
"repeatable": false
|
|
111
|
+
} },
|
|
112
|
+
"groups": []
|
|
113
|
+
},
|
|
114
|
+
"backup": {
|
|
115
|
+
"positionals": [],
|
|
116
|
+
"flags": {
|
|
117
|
+
"--env": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"required": false,
|
|
120
|
+
"repeatable": false,
|
|
121
|
+
"default": "dev"
|
|
122
|
+
},
|
|
123
|
+
"--worker": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"required": false,
|
|
126
|
+
"repeatable": false
|
|
127
|
+
},
|
|
128
|
+
"--binding": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"required": false,
|
|
131
|
+
"repeatable": false
|
|
132
|
+
},
|
|
133
|
+
"--output": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"required": false,
|
|
136
|
+
"repeatable": false
|
|
137
|
+
},
|
|
138
|
+
"--json": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"required": false,
|
|
141
|
+
"repeatable": false
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"groups": []
|
|
145
|
+
},
|
|
80
146
|
"cloudflare connect": {
|
|
81
147
|
"positionals": [],
|
|
82
148
|
"flags": {
|
|
@@ -276,9 +342,44 @@ const COMMANDS = {
|
|
|
276
342
|
"type": "string",
|
|
277
343
|
"required": false,
|
|
278
344
|
"repeatable": false
|
|
345
|
+
},
|
|
346
|
+
"--oidc-issuer": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"required": false,
|
|
349
|
+
"repeatable": false
|
|
350
|
+
},
|
|
351
|
+
"--oidc-claim": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"required": false,
|
|
354
|
+
"repeatable": true
|
|
355
|
+
},
|
|
356
|
+
"--oidc-audience": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"required": false,
|
|
359
|
+
"repeatable": false
|
|
279
360
|
}
|
|
280
361
|
},
|
|
281
362
|
"groups": [
|
|
363
|
+
{
|
|
364
|
+
"kind": "requires",
|
|
365
|
+
"flag": "--oidc-claim",
|
|
366
|
+
"needs": ["--oidc-issuer"],
|
|
367
|
+
"any": false
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"kind": "requires",
|
|
371
|
+
"flag": "--oidc-audience",
|
|
372
|
+
"needs": ["--oidc-issuer"],
|
|
373
|
+
"any": false
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"kind": "atMostOne",
|
|
377
|
+
"flags": ["--oidc-issuer", "--public-key"]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"kind": "atMostOne",
|
|
381
|
+
"flags": ["--oidc-issuer", "--update"]
|
|
382
|
+
},
|
|
282
383
|
{
|
|
283
384
|
"kind": "requires",
|
|
284
385
|
"flag": "--public-key",
|
|
@@ -300,8 +401,8 @@ const COMMANDS = {
|
|
|
300
401
|
{
|
|
301
402
|
"kind": "requires",
|
|
302
403
|
"flag": "--kind",
|
|
303
|
-
"needs": ["--public-key"],
|
|
304
|
-
"any":
|
|
404
|
+
"needs": ["--public-key", "--oidc-issuer"],
|
|
405
|
+
"any": true
|
|
305
406
|
},
|
|
306
407
|
{
|
|
307
408
|
"kind": "requires",
|
|
@@ -316,6 +417,47 @@ const COMMANDS = {
|
|
|
316
417
|
}
|
|
317
418
|
]
|
|
318
419
|
},
|
|
420
|
+
"dashboard connections": {
|
|
421
|
+
"positionals": [],
|
|
422
|
+
"flags": {
|
|
423
|
+
"--principal": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"required": true,
|
|
426
|
+
"repeatable": false
|
|
427
|
+
},
|
|
428
|
+
"--env": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"required": false,
|
|
431
|
+
"repeatable": false
|
|
432
|
+
},
|
|
433
|
+
"--worker": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"required": false,
|
|
436
|
+
"repeatable": false
|
|
437
|
+
},
|
|
438
|
+
"--revoke": {
|
|
439
|
+
"type": "boolean",
|
|
440
|
+
"required": false,
|
|
441
|
+
"repeatable": false
|
|
442
|
+
},
|
|
443
|
+
"--reason": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"required": false,
|
|
446
|
+
"repeatable": false
|
|
447
|
+
},
|
|
448
|
+
"--yes": {
|
|
449
|
+
"type": "boolean",
|
|
450
|
+
"required": false,
|
|
451
|
+
"repeatable": false
|
|
452
|
+
},
|
|
453
|
+
"--json": {
|
|
454
|
+
"type": "boolean",
|
|
455
|
+
"required": false,
|
|
456
|
+
"repeatable": false
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
"groups": []
|
|
460
|
+
},
|
|
319
461
|
"dashboard disconnect": {
|
|
320
462
|
"positionals": [],
|
|
321
463
|
"flags": {
|
|
@@ -400,6 +542,48 @@ const COMMANDS = {
|
|
|
400
542
|
},
|
|
401
543
|
"groups": []
|
|
402
544
|
},
|
|
545
|
+
"dashboard revoke-trust": {
|
|
546
|
+
"positionals": [],
|
|
547
|
+
"flags": {
|
|
548
|
+
"--env": {
|
|
549
|
+
"type": "string",
|
|
550
|
+
"required": false,
|
|
551
|
+
"repeatable": false,
|
|
552
|
+
"default": "dev"
|
|
553
|
+
},
|
|
554
|
+
"--worker": {
|
|
555
|
+
"type": "string",
|
|
556
|
+
"required": false,
|
|
557
|
+
"repeatable": false
|
|
558
|
+
},
|
|
559
|
+
"--origin": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"required": false,
|
|
562
|
+
"repeatable": false
|
|
563
|
+
},
|
|
564
|
+
"--json": {
|
|
565
|
+
"type": "boolean",
|
|
566
|
+
"required": false,
|
|
567
|
+
"repeatable": false
|
|
568
|
+
},
|
|
569
|
+
"--open": {
|
|
570
|
+
"type": "boolean",
|
|
571
|
+
"required": false,
|
|
572
|
+
"repeatable": false
|
|
573
|
+
},
|
|
574
|
+
"--trust-id": {
|
|
575
|
+
"type": "string",
|
|
576
|
+
"required": true,
|
|
577
|
+
"repeatable": false
|
|
578
|
+
},
|
|
579
|
+
"--yes": {
|
|
580
|
+
"type": "boolean",
|
|
581
|
+
"required": false,
|
|
582
|
+
"repeatable": false
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"groups": []
|
|
586
|
+
},
|
|
403
587
|
"dashboard rotate": {
|
|
404
588
|
"positionals": [],
|
|
405
589
|
"flags": {
|
|
@@ -982,6 +1166,36 @@ const COMMANDS = {
|
|
|
982
1166
|
"required": false,
|
|
983
1167
|
"repeatable": false
|
|
984
1168
|
},
|
|
1169
|
+
"--lint": {
|
|
1170
|
+
"type": "string",
|
|
1171
|
+
"required": false,
|
|
1172
|
+
"repeatable": false
|
|
1173
|
+
},
|
|
1174
|
+
"--react-native": {
|
|
1175
|
+
"type": "boolean",
|
|
1176
|
+
"required": false,
|
|
1177
|
+
"repeatable": false
|
|
1178
|
+
},
|
|
1179
|
+
"--app": {
|
|
1180
|
+
"type": "string",
|
|
1181
|
+
"required": false,
|
|
1182
|
+
"repeatable": false
|
|
1183
|
+
},
|
|
1184
|
+
"--ios-rail": {
|
|
1185
|
+
"type": "string",
|
|
1186
|
+
"required": false,
|
|
1187
|
+
"repeatable": false
|
|
1188
|
+
},
|
|
1189
|
+
"--android-rail": {
|
|
1190
|
+
"type": "string",
|
|
1191
|
+
"required": false,
|
|
1192
|
+
"repeatable": false
|
|
1193
|
+
},
|
|
1194
|
+
"--web-rail": {
|
|
1195
|
+
"type": "string",
|
|
1196
|
+
"required": false,
|
|
1197
|
+
"repeatable": false
|
|
1198
|
+
},
|
|
985
1199
|
"--dir": {
|
|
986
1200
|
"type": "string",
|
|
987
1201
|
"required": false,
|
|
@@ -996,6 +1210,156 @@ const COMMANDS = {
|
|
|
996
1210
|
},
|
|
997
1211
|
"groups": []
|
|
998
1212
|
},
|
|
1213
|
+
"mcp connect": {
|
|
1214
|
+
"positionals": [],
|
|
1215
|
+
"flags": {
|
|
1216
|
+
"--env": {
|
|
1217
|
+
"type": "string",
|
|
1218
|
+
"required": false,
|
|
1219
|
+
"repeatable": false,
|
|
1220
|
+
"default": "dev"
|
|
1221
|
+
},
|
|
1222
|
+
"--worker": {
|
|
1223
|
+
"type": "string",
|
|
1224
|
+
"required": false,
|
|
1225
|
+
"repeatable": false
|
|
1226
|
+
},
|
|
1227
|
+
"--worker-url": {
|
|
1228
|
+
"type": "string",
|
|
1229
|
+
"required": false,
|
|
1230
|
+
"repeatable": false
|
|
1231
|
+
},
|
|
1232
|
+
"--purpose": {
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"required": false,
|
|
1235
|
+
"repeatable": false
|
|
1236
|
+
},
|
|
1237
|
+
"--scope": {
|
|
1238
|
+
"type": "string",
|
|
1239
|
+
"required": false,
|
|
1240
|
+
"repeatable": true
|
|
1241
|
+
},
|
|
1242
|
+
"--update": {
|
|
1243
|
+
"type": "boolean",
|
|
1244
|
+
"required": false,
|
|
1245
|
+
"repeatable": false
|
|
1246
|
+
},
|
|
1247
|
+
"--oidc-issuer": {
|
|
1248
|
+
"type": "string",
|
|
1249
|
+
"required": false,
|
|
1250
|
+
"repeatable": false
|
|
1251
|
+
},
|
|
1252
|
+
"--oidc-claim": {
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"required": false,
|
|
1255
|
+
"repeatable": true
|
|
1256
|
+
},
|
|
1257
|
+
"--oidc-audience": {
|
|
1258
|
+
"type": "string",
|
|
1259
|
+
"required": false,
|
|
1260
|
+
"repeatable": false
|
|
1261
|
+
},
|
|
1262
|
+
"--oidc-token": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"required": false,
|
|
1265
|
+
"repeatable": false
|
|
1266
|
+
},
|
|
1267
|
+
"--client": {
|
|
1268
|
+
"type": "string",
|
|
1269
|
+
"required": false,
|
|
1270
|
+
"repeatable": false,
|
|
1271
|
+
"enum": [
|
|
1272
|
+
"claude-code",
|
|
1273
|
+
"cursor",
|
|
1274
|
+
"vscode",
|
|
1275
|
+
"gemini",
|
|
1276
|
+
"claude-desktop",
|
|
1277
|
+
"cline",
|
|
1278
|
+
"zed",
|
|
1279
|
+
"codex",
|
|
1280
|
+
"goose",
|
|
1281
|
+
"continue"
|
|
1282
|
+
]
|
|
1283
|
+
},
|
|
1284
|
+
"--all": {
|
|
1285
|
+
"type": "boolean",
|
|
1286
|
+
"required": false,
|
|
1287
|
+
"repeatable": false
|
|
1288
|
+
},
|
|
1289
|
+
"--json": {
|
|
1290
|
+
"type": "boolean",
|
|
1291
|
+
"required": false,
|
|
1292
|
+
"repeatable": false
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
"groups": [
|
|
1296
|
+
{
|
|
1297
|
+
"kind": "atMostOne",
|
|
1298
|
+
"flags": ["--client", "--all"]
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"kind": "atMostOne",
|
|
1302
|
+
"flags": ["--oidc-issuer", "--update"]
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"kind": "requires",
|
|
1306
|
+
"flag": "--oidc-claim",
|
|
1307
|
+
"needs": ["--oidc-issuer"],
|
|
1308
|
+
"any": false
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"kind": "requires",
|
|
1312
|
+
"flag": "--oidc-audience",
|
|
1313
|
+
"needs": ["--oidc-issuer"],
|
|
1314
|
+
"any": false
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"kind": "requires",
|
|
1318
|
+
"flag": "--oidc-token",
|
|
1319
|
+
"needs": ["--oidc-issuer"],
|
|
1320
|
+
"any": false
|
|
1321
|
+
}
|
|
1322
|
+
]
|
|
1323
|
+
},
|
|
1324
|
+
"mcp disconnect": {
|
|
1325
|
+
"positionals": [],
|
|
1326
|
+
"flags": {
|
|
1327
|
+
"--connection": {
|
|
1328
|
+
"type": "string",
|
|
1329
|
+
"required": true,
|
|
1330
|
+
"repeatable": false
|
|
1331
|
+
},
|
|
1332
|
+
"--worker": {
|
|
1333
|
+
"type": "string",
|
|
1334
|
+
"required": false,
|
|
1335
|
+
"repeatable": false
|
|
1336
|
+
},
|
|
1337
|
+
"--json": {
|
|
1338
|
+
"type": "boolean",
|
|
1339
|
+
"required": false,
|
|
1340
|
+
"repeatable": false
|
|
1341
|
+
}
|
|
1342
|
+
},
|
|
1343
|
+
"groups": []
|
|
1344
|
+
},
|
|
1345
|
+
"mcp serve": {
|
|
1346
|
+
"positionals": [],
|
|
1347
|
+
"flags": { "--connection": {
|
|
1348
|
+
"type": "string",
|
|
1349
|
+
"required": true,
|
|
1350
|
+
"repeatable": false
|
|
1351
|
+
} },
|
|
1352
|
+
"groups": []
|
|
1353
|
+
},
|
|
1354
|
+
"mcp status": {
|
|
1355
|
+
"positionals": [],
|
|
1356
|
+
"flags": { "--json": {
|
|
1357
|
+
"type": "boolean",
|
|
1358
|
+
"required": false,
|
|
1359
|
+
"repeatable": false
|
|
1360
|
+
} },
|
|
1361
|
+
"groups": []
|
|
1362
|
+
},
|
|
999
1363
|
"media deprovision": {
|
|
1000
1364
|
"positionals": [],
|
|
1001
1365
|
"flags": {
|
|
@@ -1280,6 +1644,47 @@ const COMMANDS = {
|
|
|
1280
1644
|
},
|
|
1281
1645
|
"groups": []
|
|
1282
1646
|
},
|
|
1647
|
+
"restore": {
|
|
1648
|
+
"positionals": [{
|
|
1649
|
+
"name": "dir",
|
|
1650
|
+
"required": true,
|
|
1651
|
+
"variadic": false
|
|
1652
|
+
}],
|
|
1653
|
+
"flags": {
|
|
1654
|
+
"--env": {
|
|
1655
|
+
"type": "string",
|
|
1656
|
+
"required": false,
|
|
1657
|
+
"repeatable": false,
|
|
1658
|
+
"default": "dev"
|
|
1659
|
+
},
|
|
1660
|
+
"--worker": {
|
|
1661
|
+
"type": "string",
|
|
1662
|
+
"required": false,
|
|
1663
|
+
"repeatable": false
|
|
1664
|
+
},
|
|
1665
|
+
"--binding": {
|
|
1666
|
+
"type": "string",
|
|
1667
|
+
"required": false,
|
|
1668
|
+
"repeatable": false
|
|
1669
|
+
},
|
|
1670
|
+
"--database": {
|
|
1671
|
+
"type": "string",
|
|
1672
|
+
"required": false,
|
|
1673
|
+
"repeatable": false
|
|
1674
|
+
},
|
|
1675
|
+
"--group": {
|
|
1676
|
+
"type": "string",
|
|
1677
|
+
"required": false,
|
|
1678
|
+
"repeatable": false
|
|
1679
|
+
},
|
|
1680
|
+
"--json": {
|
|
1681
|
+
"type": "boolean",
|
|
1682
|
+
"required": false,
|
|
1683
|
+
"repeatable": false
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
"groups": []
|
|
1687
|
+
},
|
|
1283
1688
|
"schema": {
|
|
1284
1689
|
"positionals": [{
|
|
1285
1690
|
"name": "command",
|
|
@@ -2237,6 +2642,26 @@ const COMMANDS = {
|
|
|
2237
2642
|
"required": false,
|
|
2238
2643
|
"repeatable": false
|
|
2239
2644
|
},
|
|
2645
|
+
"--app": {
|
|
2646
|
+
"type": "string",
|
|
2647
|
+
"required": false,
|
|
2648
|
+
"repeatable": false
|
|
2649
|
+
},
|
|
2650
|
+
"--ios-rail": {
|
|
2651
|
+
"type": "string",
|
|
2652
|
+
"required": false,
|
|
2653
|
+
"repeatable": false
|
|
2654
|
+
},
|
|
2655
|
+
"--android-rail": {
|
|
2656
|
+
"type": "string",
|
|
2657
|
+
"required": false,
|
|
2658
|
+
"repeatable": false
|
|
2659
|
+
},
|
|
2660
|
+
"--web-rail": {
|
|
2661
|
+
"type": "string",
|
|
2662
|
+
"required": false,
|
|
2663
|
+
"repeatable": false
|
|
2664
|
+
},
|
|
2240
2665
|
"--auth": {
|
|
2241
2666
|
"type": "boolean",
|
|
2242
2667
|
"required": false,
|
|
@@ -2252,6 +2677,11 @@ const COMMANDS = {
|
|
|
2252
2677
|
"required": false,
|
|
2253
2678
|
"repeatable": false
|
|
2254
2679
|
},
|
|
2680
|
+
"--consent": {
|
|
2681
|
+
"type": "boolean",
|
|
2682
|
+
"required": false,
|
|
2683
|
+
"repeatable": false
|
|
2684
|
+
},
|
|
2255
2685
|
"--dry-run": {
|
|
2256
2686
|
"type": "boolean",
|
|
2257
2687
|
"required": false,
|
|
@@ -2282,6 +2712,26 @@ const COMMANDS = {
|
|
|
2282
2712
|
"required": false,
|
|
2283
2713
|
"repeatable": false
|
|
2284
2714
|
},
|
|
2715
|
+
"--app": {
|
|
2716
|
+
"type": "string",
|
|
2717
|
+
"required": false,
|
|
2718
|
+
"repeatable": false
|
|
2719
|
+
},
|
|
2720
|
+
"--ios-rail": {
|
|
2721
|
+
"type": "string",
|
|
2722
|
+
"required": false,
|
|
2723
|
+
"repeatable": false
|
|
2724
|
+
},
|
|
2725
|
+
"--android-rail": {
|
|
2726
|
+
"type": "string",
|
|
2727
|
+
"required": false,
|
|
2728
|
+
"repeatable": false
|
|
2729
|
+
},
|
|
2730
|
+
"--web-rail": {
|
|
2731
|
+
"type": "string",
|
|
2732
|
+
"required": false,
|
|
2733
|
+
"repeatable": false
|
|
2734
|
+
},
|
|
2285
2735
|
"--check": {
|
|
2286
2736
|
"type": "boolean",
|
|
2287
2737
|
"required": false,
|
|
@@ -2603,11 +3053,13 @@ const GLOBAL_FLAGS = [
|
|
|
2603
3053
|
];
|
|
2604
3054
|
/** The groups, which only list their subcommands: a sentence may name one, and nobody runs one. */
|
|
2605
3055
|
const GROUPS = [
|
|
3056
|
+
"audit",
|
|
2606
3057
|
"cloudflare",
|
|
2607
3058
|
"dashboard",
|
|
2608
3059
|
"docs",
|
|
2609
3060
|
"email",
|
|
2610
3061
|
"feature",
|
|
3062
|
+
"mcp",
|
|
2611
3063
|
"media",
|
|
2612
3064
|
"payments",
|
|
2613
3065
|
"privacy",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2026 Pithy
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
/**
|
|
4
|
-
* **What the catalog cannot say about a `pithy` command, written down once
|
|
4
|
+
* **What the catalog cannot say about a `pithy` command, written down once.**
|
|
5
5
|
*
|
|
6
6
|
* `commandCatalog.generated.ts` is the parser's own account of every command: its arguments, its flags, which
|
|
7
7
|
* are required, which have defaults, which go together. Four facts are not in any parser, and each was the
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
* The commands that act on exactly one Worker, and refuse `input/required` without `--worker` when a project
|
|
25
25
|
* has several and the run cannot ask. Every line that names one names the Worker, by its `apps/` directory.
|
|
26
26
|
*/
|
|
27
|
-
export declare const WORKER_SCOPED: readonly ["add", "dashboard connect", "email provision", "media provision", "payments provision", "storage provision", "support provision", "testers provision", "turnstile deprovision", "turnstile provision", "ui add", "ui sync", "vector provision", "vector reprocess", "vector reset", "worker sync"];
|
|
27
|
+
export declare const WORKER_SCOPED: readonly ["add", "dashboard connect", "email provision", "mcp connect", "media provision", "payments provision", "storage provision", "support provision", "testers provision", "turnstile deprovision", "turnstile provision", "ui add", "ui sync", "vector provision", "vector reprocess", "vector reset", "worker sync"];
|
|
28
28
|
/** A command that acts on one Worker. */
|
|
29
29
|
export type WorkerScopedPath = (typeof WORKER_SCOPED)[number];
|
|
30
30
|
/**
|
|
31
31
|
* The commands that take `--worker` and do not need it: each fans out over every Worker, or falls back to the
|
|
32
32
|
* first that answers, and the flag narrows.
|
|
33
33
|
*/
|
|
34
|
-
export declare const WORKER_NARROWS: readonly ["contract", "dashboard disconnect", "dashboard revoke-key", "dashboard rotate", "dashboard status", "doctor", "env", "init", "migrate", "secrets tables", "seed", "support deprovision", "upgrade"];
|
|
34
|
+
export declare const WORKER_NARROWS: readonly ["backup", "contract", "dashboard connections", "dashboard disconnect", "dashboard revoke-key", "dashboard revoke-trust", "dashboard rotate", "dashboard status", "doctor", "env", "init", "mcp disconnect", "migrate", "restore", "secrets tables", "seed", "support deprovision", "upgrade"];
|
|
35
35
|
/**
|
|
36
36
|
* A command only a person runs, at a terminal, where the Worker is asked for. `pithy remove` refuses every run
|
|
37
37
|
* that cannot ask (`core/person_required`).
|
|
@@ -63,8 +63,10 @@ export declare const MEANING_ONLY_WITH: {
|
|
|
63
63
|
export declare const DESTRUCTIVE_COMMANDS: {
|
|
64
64
|
readonly "dashboard disconnect": "the environment's dashboard connection and the key it signs with";
|
|
65
65
|
readonly "dashboard revoke-key": "a signing key the dashboard holds";
|
|
66
|
+
readonly "dashboard revoke-trust": "an OIDC trust a workload calls under";
|
|
66
67
|
readonly "email deprovision": "the email Workers, and with --suppression the suppression database";
|
|
67
68
|
readonly "feature destroy": "the feature's worktree, its branch and every resource it provisioned";
|
|
69
|
+
readonly "mcp disconnect": "an agent's key or trust, its key file and its client entries";
|
|
68
70
|
readonly "media deprovision": "the media Worker, and with --storage its bucket";
|
|
69
71
|
readonly remove: "a capability's wiring";
|
|
70
72
|
readonly "secrets deprovision": "the secrets manager, and with --keys the store's keys";
|
|
@@ -88,6 +90,7 @@ export declare const DESTRUCTIVE_FLAGS: {
|
|
|
88
90
|
readonly "--destroy-retained": "a resource kept for recovery";
|
|
89
91
|
readonly "--drop": "a capability's tables";
|
|
90
92
|
readonly "--redo": "the data a seed wrote";
|
|
93
|
+
readonly "--revoke": "every key and trust a principal's connections hold";
|
|
91
94
|
readonly "--rollback": "the schema a migration group applied";
|
|
92
95
|
};
|
|
93
96
|
/** A flag that makes a command destroy something. */
|
|
@@ -139,14 +142,14 @@ export declare const PRODUCTION_CONFIRMS: {
|
|
|
139
142
|
/** A command whose production run is a person's decision. */
|
|
140
143
|
export type ProductionPath = keyof typeof PRODUCTION_CONFIRMS;
|
|
141
144
|
/**
|
|
142
|
-
* **A command that acts on every environment when its `--env` is left off
|
|
145
|
+
* **A command that acts on every environment when its `--env` is left off**, production among them. `pithy
|
|
143
146
|
* testers provision` with no `--env` provisions every declared environment, so the bare line touches production as
|
|
144
147
|
* surely as `--env prod` does, and is a person's decision for the same reason. Each declares `--env` with no
|
|
145
148
|
* default; `command.test.ts` holds that against the catalog.
|
|
146
149
|
*/
|
|
147
150
|
export declare const EVERY_ENVIRONMENT_WITHOUT_ENV: readonly ["testers provision"];
|
|
148
151
|
/**
|
|
149
|
-
* **A command that acts on every environment on every run
|
|
152
|
+
* **A command that acts on every environment on every run**, production among them, with no `--env` to narrow
|
|
150
153
|
* it. `pithy secrets provision` deploys each declared environment's manager and mints its store entries, so every line
|
|
151
154
|
* naming it touches production and is a person's decision — never the fix for one binding, one database or one
|
|
152
155
|
* setting. None declares `--env`; `command.test.ts` holds that against the catalog.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandFacts.d.ts","sourceRoot":"","sources":["../../src/cli/commandFacts.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa,YACxB,KAAK,EACL,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,aAAa,CACL,CAAC;AAEX,yCAAyC;AACzC,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc,YACzB,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,QAAQ,EACR,KAAK,EACL,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,qBAAqB,EACrB,SAAS,CACD,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,WAAW,YAAI,QAAQ,CAAU,CAAC;AAE/C,uHAAuH;AACvH,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAuB,CAAC;AAEhG;;;;GAIG;AACH,e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,eAAO,MAAM,wBAAwB,gCAAqE,CAAC;AAE3G;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAEnG,CAAC"}
|
package/dist/cli/commandFacts.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
//#region src/cli/commandFacts.ts
|
|
4
4
|
/**
|
|
5
|
-
* **What the catalog cannot say about a `pithy` command, written down once
|
|
5
|
+
* **What the catalog cannot say about a `pithy` command, written down once.**
|
|
6
6
|
*
|
|
7
7
|
* `commandCatalog.generated.ts` is the parser's own account of every command: its arguments, its flags, which
|
|
8
8
|
* are required, which have defaults, which go together. Four facts are not in any parser, and each was the
|
|
@@ -29,6 +29,7 @@ const WORKER_SCOPED = [
|
|
|
29
29
|
"add",
|
|
30
30
|
"dashboard connect",
|
|
31
31
|
"email provision",
|
|
32
|
+
"mcp connect",
|
|
32
33
|
"media provision",
|
|
33
34
|
"payments provision",
|
|
34
35
|
"storage provision",
|
|
@@ -48,15 +49,20 @@ const WORKER_SCOPED = [
|
|
|
48
49
|
* first that answers, and the flag narrows.
|
|
49
50
|
*/
|
|
50
51
|
const WORKER_NARROWS = [
|
|
52
|
+
"backup",
|
|
51
53
|
"contract",
|
|
54
|
+
"dashboard connections",
|
|
52
55
|
"dashboard disconnect",
|
|
53
56
|
"dashboard revoke-key",
|
|
57
|
+
"dashboard revoke-trust",
|
|
54
58
|
"dashboard rotate",
|
|
55
59
|
"dashboard status",
|
|
56
60
|
"doctor",
|
|
57
61
|
"env",
|
|
58
62
|
"init",
|
|
63
|
+
"mcp disconnect",
|
|
59
64
|
"migrate",
|
|
65
|
+
"restore",
|
|
60
66
|
"secrets tables",
|
|
61
67
|
"seed",
|
|
62
68
|
"support deprovision",
|
|
@@ -93,8 +99,10 @@ const MEANING_ONLY_WITH = {
|
|
|
93
99
|
const DESTRUCTIVE_COMMANDS = {
|
|
94
100
|
"dashboard disconnect": "the environment's dashboard connection and the key it signs with",
|
|
95
101
|
"dashboard revoke-key": "a signing key the dashboard holds",
|
|
102
|
+
"dashboard revoke-trust": "an OIDC trust a workload calls under",
|
|
96
103
|
"email deprovision": "the email Workers, and with --suppression the suppression database",
|
|
97
104
|
"feature destroy": "the feature's worktree, its branch and every resource it provisioned",
|
|
105
|
+
"mcp disconnect": "an agent's key or trust, its key file and its client entries",
|
|
98
106
|
"media deprovision": "the media Worker, and with --storage its bucket",
|
|
99
107
|
remove: "a capability's wiring",
|
|
100
108
|
"secrets deprovision": "the secrets manager, and with --keys the store's keys",
|
|
@@ -116,6 +124,7 @@ const DESTRUCTIVE_FLAGS = {
|
|
|
116
124
|
"--destroy-retained": "a resource kept for recovery",
|
|
117
125
|
"--drop": "a capability's tables",
|
|
118
126
|
"--redo": "the data a seed wrote",
|
|
127
|
+
"--revoke": "every key and trust a principal's connections hold",
|
|
119
128
|
"--rollback": "the schema a migration group applied"
|
|
120
129
|
};
|
|
121
130
|
/**
|
|
@@ -190,14 +199,14 @@ const PRODUCTION_CONFIRMS = {
|
|
|
190
199
|
"vector provision": null
|
|
191
200
|
};
|
|
192
201
|
/**
|
|
193
|
-
* **A command that acts on every environment when its `--env` is left off
|
|
202
|
+
* **A command that acts on every environment when its `--env` is left off**, production among them. `pithy
|
|
194
203
|
* testers provision` with no `--env` provisions every declared environment, so the bare line touches production as
|
|
195
204
|
* surely as `--env prod` does, and is a person's decision for the same reason. Each declares `--env` with no
|
|
196
205
|
* default; `command.test.ts` holds that against the catalog.
|
|
197
206
|
*/
|
|
198
207
|
const EVERY_ENVIRONMENT_WITHOUT_ENV = ["testers provision"];
|
|
199
208
|
/**
|
|
200
|
-
* **A command that acts on every environment on every run
|
|
209
|
+
* **A command that acts on every environment on every run**, production among them, with no `--env` to narrow
|
|
201
210
|
* it. `pithy secrets provision` deploys each declared environment's manager and mints its store entries, so every line
|
|
202
211
|
* naming it touches production and is a person's decision — never the fix for one binding, one database or one
|
|
203
212
|
* setting. None declares `--env`; `command.test.ts` holds that against the catalog.
|