@paradigma-inc/flywheel 0.1.60 → 0.1.73
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 +35 -14
- package/package.json +4 -2
- package/skills/flywheel/SKILL.md +4 -3
- package/skills/flywheel/getting-started/flywheel-quickstart.md +4 -4
- package/skills/flywheel/references/flywheel-cli-tool-map.md +40 -36
- package/skills/flywheel/references/flywheel-mcp-tool-map.md +8 -5
- package/skills/flywheel/setting-up-flywheel/claude-code-cli-installation.md +3 -3
- package/skills/flywheel/setting-up-flywheel/codex-cli-installation.md +3 -3
- package/skills/flywheel/setting-up-flywheel/installation-overview.md +9 -8
- package/skills/flywheel/setting-up-flywheel/other-hosts-installation.md +1 -1
- package/skills/flywheel/setting-up-flywheel/updating-flywheel-mcp.md +4 -4
- package/skills/flywheel-auto/SKILL.md +4 -3
- package/skills/flywheel-auto/references/flywheel-cli-tool-map.md +37 -35
- package/skills/flywheel-auto/references/flywheel-mcp-tool-map.md +4 -4
- package/skills/flywheel-lookahead/SKILL.md +1 -1
- package/skills/flywheel-lookahead/references/flywheel-cli-tool-map.md +37 -35
- package/skills/flywheel-lookahead/references/flywheel-mcp-tool-map.md +4 -4
- package/skills/flywheel-prove/SKILL.md +1 -1
- package/skills/flywheel-reproduce/SKILL.md +4 -3
- package/skills/flywheel-reproduce/references/flywheel-cli-tool-map.md +37 -35
- package/skills/flywheel-reproduce/references/flywheel-mcp-tool-map.md +4 -4
- package/skills/flywheel-to-graph/SKILL.md +1 -1
- package/skills/flywheel-to-graph/references/flywheel-cli-tool-map.md +37 -35
- package/skills/flywheel-to-graph/references/flywheel-mcp-tool-map.md +4 -4
- package/skills/flywheel-tree/SKILL.md +1 -1
- package/src/cli.mjs +111 -26
- package/src/runtime/required-runtime-commands.json +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_admin-auth.d.ts +3 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/_admin-auth.js +23 -4
- package/src/runtime/vendor/flywheel-cli-dist/commands/_admin-auth.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/_artifacts-upload-helpers.d.ts +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/_artifacts-upload-helpers.js +6 -5
- package/src/runtime/vendor/flywheel-cli-dist/commands/_artifacts-upload-helpers.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/_browser-handoff.d.ts +21 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_browser-handoff.js +51 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_browser-handoff.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_open-url.d.ts +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/_open-url.js +6 -3
- package/src/runtime/vendor/flywheel-cli-dist/commands/_open-url.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/_secret-param.d.ts +7 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_secret-param.js +18 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_secret-param.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-detach.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-detach.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-emails-add.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-emails-add.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-emails-remove.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-emails-remove.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-emails-set-primary.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-emails-set-primary.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-get.d.ts +2 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-get.js +6 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-get.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-merge-preview.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-merge-preview.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-merge-proof.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-merge-proof.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-merge.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/account-merge.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-get.js +2 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-get.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-set.js +49 -13
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-set.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export-stream.js +2 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export-stream.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export.js +2 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-list.js +2 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-list.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-nodes-audit-list.js +2 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-nodes-audit-list.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/api-keys-list.d.ts +18 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/api-keys-list.js +38 -5
- package/src/runtime/vendor/flywheel-cli-dist/commands/api-keys-list.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/artifacts-delete.js +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/artifacts-delete.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/auth-mode.d.ts +4 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/auth-mode.js +42 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/auth-mode.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/auth-status.js +15 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/auth-status.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-grants-list.js +8 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-grants-list.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-grants-request-approval.js +6 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-grants-request-approval.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-release-all.js +18 -7
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-release-all.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/credits-billing-portal.js +8 -4
- package/src/runtime/vendor/flywheel-cli-dist/commands/credits-billing-portal.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/credits-purchase.js +8 -4
- package/src/runtime/vendor/flywheel-cli-dist/commands/credits-purchase.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/credits-subscribe.js +8 -4
- package/src/runtime/vendor/flywheel-cli-dist/commands/credits-subscribe.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/destructive-confirmation.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/destructive-confirmation.js +7 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/destructive-confirmation.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/enums.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/enums.js +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/enums.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/export-history.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/export-history.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/export-subgraph.js +12 -4
- package/src/runtime/vendor/flywheel-cli-dist/commands/export-subgraph.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/github-link.js +9 -14
- package/src/runtime/vendor/flywheel-cli-dist/commands/github-link.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/help-format.d.ts +31 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/help-format.js +69 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/help-format.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/help.d.ts +4 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/help.js +181 -129
- package/src/runtime/vendor/flywheel-cli-dist/commands/help.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/index.js +4 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/index.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/integrations-huggingface-set.js +7 -3
- package/src/runtime/vendor/flywheel-cli-dist/commands/integrations-huggingface-set.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/integrations-wandb-set.js +6 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/integrations-wandb-set.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-add-parent.js +6 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-add-parent.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-delete-bulk.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-delete-bulk.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-delete.js +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-delete.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-remove-parent.js +8 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-remove-parent.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-resolve-slug.js +55 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-resolve-slug.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/profile-list.js +13 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/profile-list.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/profile-show.js +16 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/profile-show.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/account.js +8 -7
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/account.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/admin.js +14 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/admin.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/api-keys.js +8 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/api-keys.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/approval.js +29 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/approval.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/artifacts.js +13 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/artifacts.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/budgets.js +11 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/budgets.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/compute.js +2 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/compute.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/credits.js +8 -6
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/credits.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/github.js +6 -14
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/github.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/hooks.d.ts +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/hooks.js +193 -125
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/hooks.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/integrations.js +22 -8
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/integrations.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/lifecycle.js +123 -11
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/lifecycle.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/sharing.js +12 -4
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/sharing.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry.d.ts +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry.js +42 -9
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/remote-artifacts-refresh.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/remote-artifacts-refresh.js +20 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/remote-artifacts-refresh.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/remote-artifacts-resolve.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/remote-artifacts-resolve.js +23 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/remote-artifacts-resolve.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/errors.d.ts +15 -0
- package/src/runtime/vendor/flywheel-cli-dist/errors.js +16 -1
- package/src/runtime/vendor/flywheel-cli-dist/errors.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/http/client.d.ts +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/http/client.js +75 -19
- package/src/runtime/vendor/flywheel-cli-dist/http/client.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/http/debug.d.ts +3 -0
- package/src/runtime/vendor/flywheel-cli-dist/http/debug.js +21 -2
- package/src/runtime/vendor/flywheel-cli-dist/http/debug.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/main.js +118 -9
- package/src/runtime/vendor/flywheel-cli-dist/main.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/output/format.js +44 -6
- package/src/runtime/vendor/flywheel-cli-dist/output/format.js.map +1 -1
- package/src/runtime/vendor/manifest.json +22 -1
- package/src/setup/base-url.mjs +43 -0
- package/src/setup/command.mjs +2 -0
- package/src/setup/modes/cli.mjs +33 -10
- package/src/setup/modes/mcp-command.mjs +48 -19
- package/src/setup/resolved-selection-record.mjs +25 -0
- package/src/setup-auth.mjs +3 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const CREDITS_BROWSER_HANDOFF = 'return browser_flow_required JSON with url, opened, and next_action';
|
|
2
|
+
const CREDITS_POST_BROWSER_VERIFY = 'After completing the browser flow, verify with flywheel credits:balance, credits:transactions, or credits:subscription.';
|
|
1
3
|
export const CREDITS_COMMANDS = [
|
|
2
4
|
{
|
|
3
5
|
name: 'credits:balance',
|
|
@@ -42,7 +44,7 @@ export const CREDITS_COMMANDS = [
|
|
|
42
44
|
{
|
|
43
45
|
name: 'credits:purchase',
|
|
44
46
|
group: 'account-credits',
|
|
45
|
-
summary:
|
|
47
|
+
summary: `Create a Stripe checkout session for a one-time purchase and ${CREDITS_BROWSER_HANDOFF}.`,
|
|
46
48
|
endpoints: ['POST /credits/purchase'],
|
|
47
49
|
required: [
|
|
48
50
|
{ name: 'amount_cents', type: 'integer', description: 'Purchase amount in cents.' },
|
|
@@ -50,7 +52,7 @@ export const CREDITS_COMMANDS = [
|
|
|
50
52
|
optional: [],
|
|
51
53
|
examples: [
|
|
52
54
|
{
|
|
53
|
-
description:
|
|
55
|
+
description: `Buy 25.00 of credit. ${CREDITS_POST_BROWSER_VERIFY}`,
|
|
54
56
|
invocation: 'flywheel credits:purchase --amount_cents 2500',
|
|
55
57
|
},
|
|
56
58
|
],
|
|
@@ -59,7 +61,7 @@ export const CREDITS_COMMANDS = [
|
|
|
59
61
|
{
|
|
60
62
|
name: 'credits:subscribe',
|
|
61
63
|
group: 'account-credits',
|
|
62
|
-
summary:
|
|
64
|
+
summary: `Create a Stripe checkout session for a subscription and ${CREDITS_BROWSER_HANDOFF}.`,
|
|
63
65
|
endpoints: ['POST /credits/subscribe'],
|
|
64
66
|
required: [],
|
|
65
67
|
optional: [
|
|
@@ -67,7 +69,7 @@ export const CREDITS_COMMANDS = [
|
|
|
67
69
|
],
|
|
68
70
|
examples: [
|
|
69
71
|
{
|
|
70
|
-
description:
|
|
72
|
+
description: `Subscribe. ${CREDITS_POST_BROWSER_VERIFY}`,
|
|
71
73
|
invocation: 'flywheel credits:subscribe --billing_interval monthly',
|
|
72
74
|
},
|
|
73
75
|
],
|
|
@@ -76,13 +78,13 @@ export const CREDITS_COMMANDS = [
|
|
|
76
78
|
{
|
|
77
79
|
name: 'credits:billing-portal',
|
|
78
80
|
group: 'account-credits',
|
|
79
|
-
summary:
|
|
81
|
+
summary: `Open the Stripe billing portal for the current user and ${CREDITS_BROWSER_HANDOFF}.`,
|
|
80
82
|
endpoints: ['POST /credits/billing-portal'],
|
|
81
83
|
required: [],
|
|
82
84
|
optional: [],
|
|
83
85
|
examples: [
|
|
84
86
|
{
|
|
85
|
-
description:
|
|
87
|
+
description: `Open billing settings in the browser. ${CREDITS_POST_BROWSER_VERIFY}`,
|
|
86
88
|
invocation: 'flywheel credits:billing-portal',
|
|
87
89
|
},
|
|
88
90
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/commands/registry/credits.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAqC;IAChE;QACE,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,iBAAiB;QACxB,OAAO,EAAE,iCAAiC;QAC1C,SAAS,EAAE,CAAC,cAAc,CAAC;QAC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I,EAAE,sBAAsB;QAC5B,KAAK,EAAE,iBAAiB;QACxB,OAAO,EAAE,gCAAgC;QACzC,SAAS,EAAE,CAAC,2BAA2B,CAAC;QACxC,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE;YACR;gBACE,WAAW,EAAE,eAAe;gBAC5B,UAAU,EAAE,+BAA+B;aAC5C;SACF;QACD,OAAO,EAAE,CAAC,mBAAmB,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,iBAAiB;QACxB,OAAO,EAAE,qCAAqC;QAC9C,SAAS,EAAE,CAAC,uBAAuB,CAAC;QACpC,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE;YACR,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,2BAA2B,EAAE;SACtE;QACD,OAAO,EAAE,CAAC,wBAAwB,CAAC;KACpC;IACD;QACE,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,iBAAiB;QACxB,OAAO,EAAE,sCAAsC;QAC/C,SAAS,EAAE,CAAC,8BAA8B,CAAC;QAC3C,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,CAAC;QAC3E,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE;YACR;gBACE,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,+CAA+C;aAC5D;SACF;QACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;KAC9B;CACF,CAAC"}
|
|
@@ -12,22 +12,14 @@ export const GITHUB_COMMANDS = [
|
|
|
12
12
|
{
|
|
13
13
|
name: 'github:link',
|
|
14
14
|
group: 'integrations',
|
|
15
|
-
summary: '
|
|
16
|
-
endpoints: ['
|
|
17
|
-
required: [
|
|
18
|
-
|
|
19
|
-
name: 'installation_id',
|
|
20
|
-
type: 'string',
|
|
21
|
-
description: 'GitHub App installation ID (from the install redirect).',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
optional: [
|
|
25
|
-
{ name: 'state', type: 'string', description: 'Signed state token from bootstrap flow.' },
|
|
26
|
-
],
|
|
15
|
+
summary: 'Start the GitHub App install/link browser flow.',
|
|
16
|
+
endpoints: ['GET /auth/github/install-url'],
|
|
17
|
+
required: [],
|
|
18
|
+
optional: [],
|
|
27
19
|
examples: [
|
|
28
20
|
{
|
|
29
|
-
description: '
|
|
30
|
-
invocation: 'flywheel github:link --
|
|
21
|
+
description: 'Open the GitHub App install flow.',
|
|
22
|
+
invocation: 'flywheel github:link --open',
|
|
31
23
|
},
|
|
32
24
|
],
|
|
33
25
|
related: ['github:disconnect'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/commands/registry/github.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAqC;IAC/D;QACE,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,iCAAiC;QAC1C,SAAS,EAAE,CAAC,yBAAyB,CAAC;QACtC,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,wBAAwB,EAAE,CAAC;QAC5E,OAAO,EAAE,CAAC,aAAa,CAAC;KACzB;IACD;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/commands/registry/github.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAqC;IAC/D;QACE,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,iCAAiC;QAC1C,SAAS,EAAE,CAAC,yBAAyB,CAAC;QACtC,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,wBAAwB,EAAE,CAAC;QAC5E,OAAO,EAAE,CAAC,aAAa,CAAC;KACzB;IACD;QACE,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,iDAAiD;QAC1D,SAAS,EAAE,CAAC,8BAA8B,CAAC;QAC3C,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE;YACR;gBACE,WAAW,EAAE,mCAAmC;gBAChD,UAAU,EAAE,6BAA6B;aAC1C;SACF;QACD,OAAO,EAAE,CAAC,mBAAmB,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,8CAA8C;QACvD,SAAS,EAAE,CAAC,iCAAiC,CAAC;QAC9C,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE;YACR,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,+BAA+B,EAAE;SACzE;QACD,OAAO,EAAE,CAAC,eAAe,CAAC;KAC3B;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,cAAc;QACrB,OAAO,EAAE,sCAAsC;QAC/C,SAAS,EAAE,CAAC,gCAAgC,CAAC;QAC7C,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE,EAAE;QACZ,QAAQ,EAAE;YACR,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,4BAA4B,EAAE;SACzE;QACD,OAAO,EAAE,CAAC,aAAa,CAAC;KACzB;CACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CommandDefinition } from
|
|
1
|
+
import type { CommandDefinition } from "../registry.js";
|
|
2
2
|
export declare const HOOKS_COMMANDS: ReadonlyArray<CommandDefinition>;
|
|
@@ -1,244 +1,312 @@
|
|
|
1
1
|
export const HOOKS_COMMANDS = [
|
|
2
2
|
{
|
|
3
|
-
name:
|
|
4
|
-
group:
|
|
5
|
-
summary:
|
|
6
|
-
endpoints: [
|
|
3
|
+
name: "hooks:list",
|
|
4
|
+
group: "hooks",
|
|
5
|
+
summary: "List hooks configured for an owner node.",
|
|
6
|
+
endpoints: ["GET /nodes/{owner_node_id}/hooks"],
|
|
7
7
|
required: [
|
|
8
|
-
{
|
|
8
|
+
{
|
|
9
|
+
name: "owner_node_id",
|
|
10
|
+
type: "string",
|
|
11
|
+
description: "Owner node identifier.",
|
|
12
|
+
},
|
|
9
13
|
],
|
|
10
14
|
optional: [
|
|
11
15
|
{
|
|
12
|
-
name:
|
|
13
|
-
type:
|
|
14
|
-
description:
|
|
16
|
+
name: "include_disabled",
|
|
17
|
+
type: "boolean",
|
|
18
|
+
description: "Include disabled hooks in the response.",
|
|
15
19
|
},
|
|
16
20
|
],
|
|
17
21
|
examples: [
|
|
18
22
|
{
|
|
19
|
-
description:
|
|
20
|
-
invocation:
|
|
23
|
+
description: "List all hooks including disabled entries.",
|
|
24
|
+
invocation: "flywheel hooks:list --owner_node_id n_owner --include_disabled",
|
|
21
25
|
},
|
|
22
26
|
],
|
|
23
|
-
related: [
|
|
27
|
+
related: ["hooks:create", "hooks:update", "hooks:runs:list"],
|
|
24
28
|
},
|
|
25
29
|
{
|
|
26
|
-
name:
|
|
27
|
-
group:
|
|
28
|
-
summary:
|
|
29
|
-
endpoints: [
|
|
30
|
+
name: "hooks:create",
|
|
31
|
+
group: "hooks",
|
|
32
|
+
summary: "Create a new hook on an owner node.",
|
|
33
|
+
endpoints: ["POST /nodes/{owner_node_id}/hooks"],
|
|
30
34
|
required: [
|
|
31
|
-
{ name: 'owner_node_id', type: 'string', description: 'Owner node identifier.' },
|
|
32
|
-
{ name: 'name', type: 'string', description: 'Human-readable hook name.' },
|
|
33
35
|
{
|
|
34
|
-
name:
|
|
35
|
-
type:
|
|
36
|
-
description:
|
|
36
|
+
name: "owner_node_id",
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "Owner node identifier.",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "name",
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "Human-readable hook name.",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "workflow_yaml",
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "Workflow YAML payload for hook execution.",
|
|
37
49
|
},
|
|
38
50
|
],
|
|
39
51
|
optional: [
|
|
40
52
|
{
|
|
41
|
-
name:
|
|
42
|
-
type:
|
|
43
|
-
description:
|
|
53
|
+
name: "trigger_event",
|
|
54
|
+
type: "string",
|
|
55
|
+
description: "Trigger event (currently only artifact.finalized).",
|
|
44
56
|
},
|
|
45
57
|
{
|
|
46
|
-
name:
|
|
47
|
-
type:
|
|
48
|
-
description:
|
|
58
|
+
name: "scope",
|
|
59
|
+
type: "string",
|
|
60
|
+
description: "Hook scope: self|subtree|graph.",
|
|
49
61
|
},
|
|
50
62
|
{
|
|
51
|
-
name:
|
|
52
|
-
type:
|
|
53
|
-
description:
|
|
63
|
+
name: "rerun_policy",
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "Rerun policy (currently only if_inputs_changed).",
|
|
54
66
|
},
|
|
55
67
|
{
|
|
56
|
-
name:
|
|
57
|
-
type:
|
|
58
|
-
description:
|
|
68
|
+
name: "enabled",
|
|
69
|
+
type: "boolean",
|
|
70
|
+
description: "Set initial enabled state.",
|
|
59
71
|
},
|
|
60
72
|
],
|
|
61
73
|
examples: [
|
|
62
74
|
{
|
|
63
|
-
description:
|
|
64
|
-
invocation: 'flywheel hooks:create --owner_node_id n_owner --name build --workflow_yaml "on:\\n artifact.finalized: {}\\njobs:\\n main:\\n steps:
|
|
75
|
+
description: "Create an enabled subtree hook.",
|
|
76
|
+
invocation: 'flywheel hooks:create --owner_node_id n_owner --name build --workflow_yaml "on:\\n artifact.finalized: {}\\njobs:\\n main:\\n steps:\\n - id: call_eval\\n uses: flywheel/http_request@v1\\n with:\\n url: https://example.invalid/eval\\n method: POST" --scope subtree --trigger_event artifact.finalized --enabled',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
description: "Create an enabled subtree hook that tags finalized submissions.",
|
|
80
|
+
invocation: "flywheel hooks:create --owner_node_id n_owner --name tag-red-submissions --workflow_yaml 'on:\\n artifact.finalized: {}\\nif:\\n any_artifact:\\n field: metadata.submission_kind\\n eq: red\\njobs:\\n main:\\n steps:\\n - id: tag_red_submission\\n uses: flywheel/add_node_tags@v1\\n with:\\n node_id: ${{ event.source_node_id }}\\n tag_ids:\\n - tag-red-submission' --scope subtree --trigger_event artifact.finalized --enabled",
|
|
65
81
|
},
|
|
66
82
|
],
|
|
67
|
-
related: [
|
|
83
|
+
related: ["hooks:list", "hooks:update", "hooks:set-enabled"],
|
|
68
84
|
},
|
|
69
85
|
{
|
|
70
|
-
name:
|
|
71
|
-
group:
|
|
72
|
-
summary:
|
|
73
|
-
endpoints: [
|
|
86
|
+
name: "hooks:update",
|
|
87
|
+
group: "hooks",
|
|
88
|
+
summary: "Update mutable hook fields for an existing hook.",
|
|
89
|
+
endpoints: ["PATCH /nodes/{owner_node_id}/hooks/{hook_id}"],
|
|
74
90
|
required: [
|
|
75
|
-
{
|
|
76
|
-
|
|
91
|
+
{
|
|
92
|
+
name: "owner_node_id",
|
|
93
|
+
type: "string",
|
|
94
|
+
description: "Owner node identifier.",
|
|
95
|
+
},
|
|
96
|
+
{ name: "hook_id", type: "string", description: "Hook identifier." },
|
|
77
97
|
],
|
|
78
98
|
optional: [
|
|
79
|
-
{ name:
|
|
99
|
+
{ name: "name", type: "string", description: "Updated hook name." },
|
|
80
100
|
{
|
|
81
|
-
name:
|
|
82
|
-
type:
|
|
83
|
-
description:
|
|
101
|
+
name: "trigger_event",
|
|
102
|
+
type: "string",
|
|
103
|
+
description: "Updated trigger event (artifact.finalized).",
|
|
84
104
|
},
|
|
85
105
|
{
|
|
86
|
-
name:
|
|
87
|
-
type:
|
|
88
|
-
description:
|
|
106
|
+
name: "scope",
|
|
107
|
+
type: "string",
|
|
108
|
+
description: "Updated scope: self|subtree|graph.",
|
|
89
109
|
},
|
|
90
110
|
{
|
|
91
|
-
name:
|
|
92
|
-
type:
|
|
93
|
-
description:
|
|
111
|
+
name: "workflow_yaml",
|
|
112
|
+
type: "string",
|
|
113
|
+
description: "Updated workflow YAML payload.",
|
|
94
114
|
},
|
|
95
115
|
{
|
|
96
|
-
name:
|
|
97
|
-
type:
|
|
98
|
-
description:
|
|
116
|
+
name: "rerun_policy",
|
|
117
|
+
type: "string",
|
|
118
|
+
description: "Updated rerun policy (if_inputs_changed).",
|
|
99
119
|
},
|
|
100
120
|
],
|
|
101
121
|
examples: [
|
|
102
122
|
{
|
|
103
|
-
description:
|
|
104
|
-
invocation:
|
|
123
|
+
description: "Move a hook to graph scope.",
|
|
124
|
+
invocation: "flywheel hooks:update --owner_node_id n_owner --hook_id hk_1 --scope graph",
|
|
105
125
|
},
|
|
106
126
|
],
|
|
107
|
-
related: [
|
|
127
|
+
related: ["hooks:list", "hooks:create", "hooks:delete"],
|
|
108
128
|
},
|
|
109
129
|
{
|
|
110
|
-
name:
|
|
111
|
-
group:
|
|
112
|
-
summary:
|
|
113
|
-
endpoints: [
|
|
130
|
+
name: "hooks:delete",
|
|
131
|
+
group: "hooks",
|
|
132
|
+
summary: "Delete a hook from an owner node.",
|
|
133
|
+
endpoints: ["DELETE /nodes/{owner_node_id}/hooks/{hook_id}"],
|
|
114
134
|
required: [
|
|
115
|
-
{
|
|
116
|
-
|
|
135
|
+
{
|
|
136
|
+
name: "owner_node_id",
|
|
137
|
+
type: "string",
|
|
138
|
+
description: "Owner node identifier.",
|
|
139
|
+
},
|
|
140
|
+
{ name: "hook_id", type: "string", description: "Hook identifier." },
|
|
117
141
|
],
|
|
118
142
|
optional: [],
|
|
119
143
|
examples: [
|
|
120
144
|
{
|
|
121
|
-
description:
|
|
122
|
-
invocation:
|
|
145
|
+
description: "Delete one hook.",
|
|
146
|
+
invocation: "flywheel hooks:delete --owner_node_id n_owner --hook_id hk_1",
|
|
123
147
|
},
|
|
124
148
|
],
|
|
125
|
-
related: [
|
|
149
|
+
related: ["hooks:list"],
|
|
126
150
|
},
|
|
127
151
|
{
|
|
128
|
-
name:
|
|
129
|
-
group:
|
|
130
|
-
summary:
|
|
131
|
-
endpoints: [
|
|
152
|
+
name: "hooks:set-enabled",
|
|
153
|
+
group: "hooks",
|
|
154
|
+
summary: "Enable or disable an existing hook.",
|
|
155
|
+
endpoints: ["PATCH /nodes/{owner_node_id}/hooks/{hook_id}/enabled"],
|
|
132
156
|
required: [
|
|
133
|
-
{
|
|
134
|
-
|
|
135
|
-
|
|
157
|
+
{
|
|
158
|
+
name: "owner_node_id",
|
|
159
|
+
type: "string",
|
|
160
|
+
description: "Owner node identifier.",
|
|
161
|
+
},
|
|
162
|
+
{ name: "hook_id", type: "string", description: "Hook identifier." },
|
|
163
|
+
{
|
|
164
|
+
name: "enabled",
|
|
165
|
+
type: "boolean",
|
|
166
|
+
description: "Desired enabled state.",
|
|
167
|
+
},
|
|
136
168
|
],
|
|
137
169
|
optional: [],
|
|
138
170
|
examples: [
|
|
139
171
|
{
|
|
140
|
-
description:
|
|
141
|
-
invocation:
|
|
172
|
+
description: "Disable one hook.",
|
|
173
|
+
invocation: "flywheel hooks:set-enabled --owner_node_id n_owner --hook_id hk_1 --enabled=false",
|
|
142
174
|
},
|
|
143
175
|
],
|
|
144
|
-
related: [
|
|
176
|
+
related: ["hooks:list", "hooks:update"],
|
|
145
177
|
},
|
|
146
178
|
{
|
|
147
|
-
name:
|
|
148
|
-
group:
|
|
149
|
-
summary:
|
|
150
|
-
endpoints: [
|
|
179
|
+
name: "hooks:runs:list",
|
|
180
|
+
group: "hooks",
|
|
181
|
+
summary: "List hook runs for an owner node.",
|
|
182
|
+
endpoints: ["GET /nodes/{owner_node_id}/hook-runs"],
|
|
151
183
|
required: [
|
|
152
|
-
{
|
|
184
|
+
{
|
|
185
|
+
name: "owner_node_id",
|
|
186
|
+
type: "string",
|
|
187
|
+
description: "Owner node identifier.",
|
|
188
|
+
},
|
|
153
189
|
],
|
|
154
190
|
optional: [
|
|
155
|
-
{ name: 'hook_id', type: 'string', description: 'Filter runs to one hook ID.' },
|
|
156
191
|
{
|
|
157
|
-
name:
|
|
158
|
-
type:
|
|
159
|
-
description:
|
|
192
|
+
name: "hook_id",
|
|
193
|
+
type: "string",
|
|
194
|
+
description: "Filter runs to one hook ID.",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "limit",
|
|
198
|
+
type: "integer",
|
|
199
|
+
description: "Maximum number of runs to return.",
|
|
160
200
|
},
|
|
161
201
|
],
|
|
162
202
|
examples: [
|
|
163
203
|
{
|
|
164
|
-
description:
|
|
165
|
-
invocation:
|
|
204
|
+
description: "List the last 25 runs for one hook.",
|
|
205
|
+
invocation: "flywheel hooks:runs:list --owner_node_id n_owner --hook_id hk_1 --limit 25",
|
|
166
206
|
},
|
|
167
207
|
],
|
|
168
|
-
related: [
|
|
208
|
+
related: ["hooks:list"],
|
|
169
209
|
},
|
|
170
210
|
{
|
|
171
|
-
name:
|
|
172
|
-
group:
|
|
173
|
-
summary:
|
|
174
|
-
endpoints: [
|
|
211
|
+
name: "hooks:secrets:list",
|
|
212
|
+
group: "hooks",
|
|
213
|
+
summary: "List hook secret metadata for an owner node.",
|
|
214
|
+
endpoints: ["GET /nodes/{owner_node_id}/hook-secrets"],
|
|
175
215
|
required: [
|
|
176
|
-
{
|
|
216
|
+
{
|
|
217
|
+
name: "owner_node_id",
|
|
218
|
+
type: "string",
|
|
219
|
+
description: "Owner node identifier.",
|
|
220
|
+
},
|
|
177
221
|
],
|
|
178
222
|
optional: [],
|
|
179
223
|
examples: [
|
|
180
224
|
{
|
|
181
|
-
description:
|
|
182
|
-
invocation:
|
|
225
|
+
description: "List secrets configured for hooks on an owner node.",
|
|
226
|
+
invocation: "flywheel hooks:secrets:list --owner_node_id n_owner",
|
|
183
227
|
},
|
|
184
228
|
],
|
|
185
|
-
related: [
|
|
229
|
+
related: [
|
|
230
|
+
"hooks:secrets:create",
|
|
231
|
+
"hooks:secrets:update",
|
|
232
|
+
"hooks:secrets:delete",
|
|
233
|
+
],
|
|
186
234
|
},
|
|
187
235
|
{
|
|
188
|
-
name:
|
|
189
|
-
group:
|
|
190
|
-
summary:
|
|
191
|
-
endpoints: [
|
|
236
|
+
name: "hooks:secrets:create",
|
|
237
|
+
group: "hooks",
|
|
238
|
+
summary: "Create a hook secret.",
|
|
239
|
+
endpoints: ["POST /nodes/{owner_node_id}/hook-secrets"],
|
|
192
240
|
required: [
|
|
193
|
-
{
|
|
194
|
-
|
|
195
|
-
|
|
241
|
+
{
|
|
242
|
+
name: "owner_node_id",
|
|
243
|
+
type: "string",
|
|
244
|
+
description: "Owner node identifier.",
|
|
245
|
+
},
|
|
246
|
+
{ name: "name", type: "string", description: "Secret name." },
|
|
247
|
+
{ name: "value", type: "string", description: "Secret plaintext value." },
|
|
196
248
|
],
|
|
197
249
|
optional: [],
|
|
198
250
|
examples: [
|
|
199
251
|
{
|
|
200
|
-
description:
|
|
201
|
-
invocation:
|
|
252
|
+
description: "Create one hook secret.",
|
|
253
|
+
invocation: "flywheel hooks:secrets:create --owner_node_id n_owner --name API_TOKEN --value token",
|
|
202
254
|
},
|
|
203
255
|
],
|
|
204
|
-
related: [
|
|
256
|
+
related: ["hooks:secrets:list", "hooks:secrets:update"],
|
|
205
257
|
},
|
|
206
258
|
{
|
|
207
|
-
name:
|
|
208
|
-
group:
|
|
209
|
-
summary:
|
|
210
|
-
endpoints: [
|
|
259
|
+
name: "hooks:secrets:update",
|
|
260
|
+
group: "hooks",
|
|
261
|
+
summary: "Rotate one hook secret value.",
|
|
262
|
+
endpoints: ["PATCH /nodes/{owner_node_id}/hook-secrets/{secret_id}"],
|
|
211
263
|
required: [
|
|
212
|
-
{
|
|
213
|
-
|
|
214
|
-
|
|
264
|
+
{
|
|
265
|
+
name: "owner_node_id",
|
|
266
|
+
type: "string",
|
|
267
|
+
description: "Owner node identifier.",
|
|
268
|
+
},
|
|
269
|
+
{ name: "secret_id", type: "string", description: "Secret identifier." },
|
|
270
|
+
{
|
|
271
|
+
name: "value",
|
|
272
|
+
type: "string",
|
|
273
|
+
description: "New secret plaintext value.",
|
|
274
|
+
},
|
|
215
275
|
],
|
|
216
276
|
optional: [],
|
|
217
277
|
examples: [
|
|
218
278
|
{
|
|
219
|
-
description:
|
|
220
|
-
invocation:
|
|
279
|
+
description: "Rotate one hook secret.",
|
|
280
|
+
invocation: "flywheel hooks:secrets:update --owner_node_id n_owner --secret_id hs_1 --value rotated",
|
|
221
281
|
},
|
|
222
282
|
],
|
|
223
|
-
related: [
|
|
283
|
+
related: [
|
|
284
|
+
"hooks:secrets:list",
|
|
285
|
+
"hooks:secrets:create",
|
|
286
|
+
"hooks:secrets:delete",
|
|
287
|
+
],
|
|
224
288
|
},
|
|
225
289
|
{
|
|
226
|
-
name:
|
|
227
|
-
group:
|
|
228
|
-
summary:
|
|
229
|
-
endpoints: [
|
|
290
|
+
name: "hooks:secrets:delete",
|
|
291
|
+
group: "hooks",
|
|
292
|
+
summary: "Delete one hook secret.",
|
|
293
|
+
endpoints: ["DELETE /nodes/{owner_node_id}/hook-secrets/{secret_id}"],
|
|
230
294
|
required: [
|
|
231
|
-
{
|
|
232
|
-
|
|
295
|
+
{
|
|
296
|
+
name: "owner_node_id",
|
|
297
|
+
type: "string",
|
|
298
|
+
description: "Owner node identifier.",
|
|
299
|
+
},
|
|
300
|
+
{ name: "secret_id", type: "string", description: "Secret identifier." },
|
|
233
301
|
],
|
|
234
302
|
optional: [],
|
|
235
303
|
examples: [
|
|
236
304
|
{
|
|
237
|
-
description:
|
|
238
|
-
invocation:
|
|
305
|
+
description: "Delete one hook secret.",
|
|
306
|
+
invocation: "flywheel hooks:secrets:delete --owner_node_id n_owner --secret_id hs_1",
|
|
239
307
|
},
|
|
240
308
|
],
|
|
241
|
-
related: [
|
|
309
|
+
related: ["hooks:secrets:list"],
|
|
242
310
|
},
|
|
243
311
|
];
|
|
244
312
|
//# sourceMappingURL=hooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/commands/registry/hooks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAqC;IAC9D;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/commands/registry/hooks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAqC;IAC9D;QACE,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,0CAA0C;QACnD,SAAS,EAAE,CAAC,kCAAkC,CAAC;QAC/C,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;aACtC;SACF;QACD,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,yCAAyC;aACvD;SACF;QACD,QAAQ,EAAE;YACR;gBACE,WAAW,EAAE,4CAA4C;gBACzD,UAAU,EACR,gEAAgE;aACnE;SACF;QACD,OAAO,EAAE,CAAC,cAAc,EAAE,cAAc,EAAE,iBAAiB,CAAC;KAC7D;IACD;QACE,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,qCAAqC;QAC9C,SAAS,EAAE,CAAC,mCAAmC,CAAC;QAChD,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wBAAwB;aACtC;YACD;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE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