@paradigma-inc/flywheel 0.1.53 → 0.1.72
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 +149 -17
- 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 +47 -35
- package/skills/flywheel/references/flywheel-mcp-tool-map.md +16 -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/agents.mjs +114 -48
- package/src/cli.mjs +373 -56
- package/src/mcp-writer.mjs +190 -17
- package/src/runtime/required-runtime-commands.json +19 -4
- package/src/runtime/vendor/flywheel-cli-dist/auth/login.d.ts +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/auth/login.js +3 -6
- package/src/runtime/vendor/flywheel-cli-dist/auth/login.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/auth/profiles.d.ts +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/auth/profiles.js +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/auth/profiles.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/_admin-auth.d.ts +27 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_admin-auth.js +54 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_admin-auth.js.map +1 -0
- 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/_stream-file-out.d.ts +39 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_stream-file-out.js +72 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/_stream-file-out.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.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-get.js +11 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-get.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-set.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-set.js +60 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-compute-policy-set.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export-stream.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export-stream.js +115 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export-stream.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export.js +12 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-export.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-list.d.ts +4 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-list.js +39 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-graphs-list.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-nodes-audit-list.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-nodes-audit-list.js +15 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/admin-nodes-audit-list.js.map +1 -0
- 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 +8 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/enums.js +4 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/enums.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/env.d.ts +0 -4
- package/src/runtime/vendor/flywheel-cli-dist/commands/env.js +7 -12
- package/src/runtime/vendor/flywheel-cli-dist/commands/env.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/export-history.js +42 -30
- 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 +6 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/help.js +226 -124
- package/src/runtime/vendor/flywheel-cli-dist/commands/help.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-create.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-create.js +25 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-create.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-delete.d.ts +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-delete.js +6 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-delete.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-list.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-list.js +10 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-list.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-runs-list.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-runs-list.js +15 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-runs-list.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-create.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-create.js +8 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-create.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-delete.d.ts +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-delete.js +6 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-delete.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-list.d.ts +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-list.js +6 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-list.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-update.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-update.js +8 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-secrets-update.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-set-enabled.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-set-enabled.js +8 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-set-enabled.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-update.d.ts +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-update.js +29 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/hooks-update.js.map +1 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/index.js +36 -6
- 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-set.js +4 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/profile-set.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.d.ts +8 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/admin.js +131 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/admin.js.map +1 -0
- 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/auth.js +2 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/auth.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/env.js +7 -5
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/env.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 +2 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/hooks.js +312 -0
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/hooks.js.map +1 -0
- 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 +122 -25
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/lifecycle.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/profile.js +2 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/profile.js.map +1 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/resources.js +1 -31
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry/resources.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 +2 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/registry.js +46 -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 +119 -10
- 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 +82 -10
- package/src/setup/base-url.mjs +43 -0
- package/src/setup/command.mjs +2 -0
- package/src/setup/io/patchers/json.mjs +2 -0
- package/src/setup/io/patchers/toml.mjs +7 -1
- package/src/setup/io/patchers/yaml.mjs +2 -0
- package/src/setup/modes/cli.mjs +72 -24
- package/src/setup/modes/mcp-command.mjs +146 -38
- package/src/setup/modes/mcp.mjs +26 -1
- package/src/setup/resolved-selection-record.mjs +25 -0
- package/src/setup/shared/prior-mode-detect.mjs +133 -14
- package/src/setup-auth.mjs +3 -2
- package/src/skill-installer.mjs +179 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-policy-get.d.ts +0 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-policy-get.js +0 -6
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-policy-get.js.map +0 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-policy-set.d.ts +0 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-policy-set.js +0 -19
- package/src/runtime/vendor/flywheel-cli-dist/commands/compute-policy-set.js.map +0 -1
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-audit-list.d.ts +0 -2
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-audit-list.js +0 -7
- package/src/runtime/vendor/flywheel-cli-dist/commands/nodes-audit-list.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks-secrets-list.js","sourceRoot":"","sources":["../../src/commands/hooks-secrets-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC;IAClD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,qCAAqC;CACpD,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { requiredString } from './utils.js';
|
|
2
|
+
export const hooksSecretsUpdateCommand = async (context) => {
|
|
3
|
+
const ownerNodeId = requiredString(context.params, 'owner_node_id');
|
|
4
|
+
const secretId = requiredString(context.params, 'secret_id');
|
|
5
|
+
const value = requiredString(context.params, 'value');
|
|
6
|
+
return context.requestJson('PATCH', `/nodes/${encodeURIComponent(ownerNodeId)}/hook-secrets/${encodeURIComponent(secretId)}`, { body: { value } });
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=hooks-secrets-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks-secrets-update.js","sourceRoot":"","sources":["../../src/commands/hooks-secrets-update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,yBAAyB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACzE,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC7D,MAAM,KAAK,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtD,OAAO,OAAO,CAAC,WAAW,CACxB,OAAO,EACP,UAAU,kBAAkB,CAAC,WAAW,CAAC,iBAAiB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,EACxF,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CACpB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { requiredBoolean, requiredString } from './utils.js';
|
|
2
|
+
export const hooksSetEnabledCommand = async (context) => {
|
|
3
|
+
const ownerNodeId = requiredString(context.params, 'owner_node_id');
|
|
4
|
+
const hookId = requiredString(context.params, 'hook_id');
|
|
5
|
+
const enabled = requiredBoolean(context.params, 'enabled');
|
|
6
|
+
return context.requestJson('PATCH', `/nodes/${encodeURIComponent(ownerNodeId)}/hooks/${encodeURIComponent(hookId)}/enabled`, { body: { enabled } });
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=hooks-set-enabled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks-set-enabled.js","sourceRoot":"","sources":["../../src/commands/hooks-set-enabled.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE7D,MAAM,CAAC,MAAM,sBAAsB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACtE,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACpE,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC3D,OAAO,OAAO,CAAC,WAAW,CACxB,OAAO,EACP,UAAU,kBAAkB,CAAC,WAAW,CAAC,UAAU,kBAAkB,CAAC,MAAM,CAAC,UAAU,EACvF,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,CACtB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HOOK_RERUN_POLICIES, HOOK_SCOPES, HOOK_TRIGGER_EVENTS, } from './enums.js';
|
|
2
|
+
import { optionalEnum, optionalString, requiredString } from './utils.js';
|
|
3
|
+
export const hooksUpdateCommand = async (context) => {
|
|
4
|
+
const ownerNodeId = requiredString(context.params, 'owner_node_id');
|
|
5
|
+
const hookId = requiredString(context.params, 'hook_id');
|
|
6
|
+
const body = {};
|
|
7
|
+
const name = optionalString(context.params, 'name');
|
|
8
|
+
if (name !== undefined) {
|
|
9
|
+
body.name = name;
|
|
10
|
+
}
|
|
11
|
+
const triggerEvent = optionalEnum(context.params, 'trigger_event', HOOK_TRIGGER_EVENTS);
|
|
12
|
+
if (triggerEvent !== undefined) {
|
|
13
|
+
body.trigger_event = triggerEvent;
|
|
14
|
+
}
|
|
15
|
+
const scope = optionalEnum(context.params, 'scope', HOOK_SCOPES);
|
|
16
|
+
if (scope !== undefined) {
|
|
17
|
+
body.scope = scope;
|
|
18
|
+
}
|
|
19
|
+
const workflowYaml = optionalString(context.params, 'workflow_yaml');
|
|
20
|
+
if (workflowYaml !== undefined) {
|
|
21
|
+
body.workflow_yaml = workflowYaml;
|
|
22
|
+
}
|
|
23
|
+
const rerunPolicy = optionalEnum(context.params, 'rerun_policy', HOOK_RERUN_POLICIES);
|
|
24
|
+
if (rerunPolicy !== undefined) {
|
|
25
|
+
body.rerun_policy = rerunPolicy;
|
|
26
|
+
}
|
|
27
|
+
return context.requestJson('PATCH', `/nodes/${encodeURIComponent(ownerNodeId)}/hooks/${encodeURIComponent(hookId)}`, { body });
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=hooks-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks-update.js","sourceRoot":"","sources":["../../src/commands/hooks-update.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,CAAC,MAAM,kBAAkB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IAClE,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACpE,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,IAAI,GAA4B,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,MAAM,YAAY,GAAG,YAAY,CAC/B,OAAO,CAAC,MAAM,EACd,eAAe,EACf,mBAAmB,CACpB,CAAC;IACF,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IACjE,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IACrE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;QAC/B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;IACpC,CAAC;IAED,MAAM,WAAW,GAAG,YAAY,CAC9B,OAAO,CAAC,MAAM,EACd,cAAc,EACd,mBAAmB,CACpB,CAAC;IACF,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;IAClC,CAAC;IAED,OAAO,OAAO,CAAC,WAAW,CACxB,OAAO,EACP,UAAU,kBAAkB,CAAC,WAAW,CAAC,UAAU,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAC/E,EAAE,IAAI,EAAE,CACT,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -3,6 +3,9 @@ import { artifactsListCommand } from './artifacts-list.js';
|
|
|
3
3
|
import { authLoginCommand } from './auth-login.js';
|
|
4
4
|
import { authStatusCommand } from './auth-status.js';
|
|
5
5
|
import { computeStatusCommand } from './compute-status.js';
|
|
6
|
+
import { adminGraphsExportCommand } from './admin-graphs-export.js';
|
|
7
|
+
import { adminGraphsExportStreamCommand } from './admin-graphs-export-stream.js';
|
|
8
|
+
import { adminGraphsListCommand } from './admin-graphs-list.js';
|
|
6
9
|
import { exportSubgraphCommand } from './export-subgraph.js';
|
|
7
10
|
import { nodesCommitCommand } from './nodes-commit.js';
|
|
8
11
|
import { nodesCommitNewCommand } from './nodes-commit-new.js';
|
|
@@ -24,7 +27,7 @@ import { nodesSharingSetCommand } from './nodes-sharing-set.js';
|
|
|
24
27
|
import { nodesSharingSetBulkCommand } from './nodes-sharing-set-bulk.js';
|
|
25
28
|
import { nodesSharingSummariesCommand } from './nodes-sharing-summaries.js';
|
|
26
29
|
import { nodesResolveSlugCommand } from './nodes-resolve-slug.js';
|
|
27
|
-
import {
|
|
30
|
+
import { adminNodesAuditListCommand } from './admin-nodes-audit-list.js';
|
|
28
31
|
import { nodesRenderAncestryCommand } from './nodes-render-ancestry.js';
|
|
29
32
|
import { nodesRenderSummaryCommand } from './nodes-render-summary.js';
|
|
30
33
|
import { nodesAddParentCommand } from './nodes-add-parent.js';
|
|
@@ -36,6 +39,8 @@ import { nodesFilesCommand } from './nodes-files.js';
|
|
|
36
39
|
import { nodesStageLeaseHeartbeatCommand } from './nodes-stage-lease-heartbeat.js';
|
|
37
40
|
import { nodesStageLeaseReleaseCommand } from './nodes-stage-lease-release.js';
|
|
38
41
|
import { campaignSnapshotCommand } from './campaign-snapshot.js';
|
|
42
|
+
import { remoteArtifactsRefreshCommand } from './remote-artifacts-refresh.js';
|
|
43
|
+
import { remoteArtifactsResolveCommand } from './remote-artifacts-resolve.js';
|
|
39
44
|
import { nodesCreateCommand } from './nodes-create.js';
|
|
40
45
|
import { nodesStageBackfillHypothesisCommand } from './nodes-stage-backfill-hypothesis.js';
|
|
41
46
|
import { nodesStageBackfillInsightsCommand } from './nodes-stage-backfill-insights.js';
|
|
@@ -44,6 +49,16 @@ import { artifactsUploadFinalizeCommand } from './artifacts-upload-finalize.js';
|
|
|
44
49
|
import { artifactsUploadCommand } from './artifacts-upload.js';
|
|
45
50
|
import { artifactsDeleteCommand } from './artifacts-delete.js';
|
|
46
51
|
import { artifactsNoteSetCommand } from './artifacts-note-set.js';
|
|
52
|
+
import { hooksListCommand } from './hooks-list.js';
|
|
53
|
+
import { hooksCreateCommand } from './hooks-create.js';
|
|
54
|
+
import { hooksUpdateCommand } from './hooks-update.js';
|
|
55
|
+
import { hooksDeleteCommand } from './hooks-delete.js';
|
|
56
|
+
import { hooksSetEnabledCommand } from './hooks-set-enabled.js';
|
|
57
|
+
import { hooksRunsListCommand } from './hooks-runs-list.js';
|
|
58
|
+
import { hooksSecretsListCommand } from './hooks-secrets-list.js';
|
|
59
|
+
import { hooksSecretsCreateCommand } from './hooks-secrets-create.js';
|
|
60
|
+
import { hooksSecretsUpdateCommand } from './hooks-secrets-update.js';
|
|
61
|
+
import { hooksSecretsDeleteCommand } from './hooks-secrets-delete.js';
|
|
47
62
|
import { executionsLaunchCommand } from './executions-launch.js';
|
|
48
63
|
import { executionsListCommand } from './executions-list.js';
|
|
49
64
|
import { executionsTerminateCommand } from './executions-terminate.js';
|
|
@@ -62,8 +77,8 @@ import { campaignBudgetsListCommand } from './campaign-budgets-list.js';
|
|
|
62
77
|
import { campaignBudgetsCreateCommand } from './campaign-budgets-create.js';
|
|
63
78
|
import { campaignBudgetsUpdateCommand } from './campaign-budgets-update.js';
|
|
64
79
|
import { campaignBudgetsRevokeCommand } from './campaign-budgets-revoke.js';
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
80
|
+
import { adminComputePolicyGetCommand } from './admin-compute-policy-get.js';
|
|
81
|
+
import { adminComputePolicySetCommand } from './admin-compute-policy-set.js';
|
|
67
82
|
import { computeBudgetsCommand } from './compute-budgets.js';
|
|
68
83
|
import { machinesListCommand } from './machines-list.js';
|
|
69
84
|
import { blobsGetCommand } from './blobs-get.js';
|
|
@@ -142,7 +157,7 @@ export const MVP_COMMAND_HANDLERS = {
|
|
|
142
157
|
'nodes:sharing:set-bulk': nodesSharingSetBulkCommand,
|
|
143
158
|
'nodes:sharing:summaries': nodesSharingSummariesCommand,
|
|
144
159
|
'nodes:resolve-slug': nodesResolveSlugCommand,
|
|
145
|
-
'nodes:audit:list':
|
|
160
|
+
'admin:nodes:audit:list': adminNodesAuditListCommand,
|
|
146
161
|
'nodes:render:ancestry': nodesRenderAncestryCommand,
|
|
147
162
|
'nodes:render:summary': nodesRenderSummaryCommand,
|
|
148
163
|
'nodes:add-parent': nodesAddParentCommand,
|
|
@@ -154,6 +169,8 @@ export const MVP_COMMAND_HANDLERS = {
|
|
|
154
169
|
'nodes:stage:lease:heartbeat': nodesStageLeaseHeartbeatCommand,
|
|
155
170
|
'nodes:stage:lease:release': nodesStageLeaseReleaseCommand,
|
|
156
171
|
'campaign:snapshot': campaignSnapshotCommand,
|
|
172
|
+
'remote-artifacts:resolve': remoteArtifactsResolveCommand,
|
|
173
|
+
'remote-artifacts:refresh': remoteArtifactsRefreshCommand,
|
|
157
174
|
'nodes:create': nodesCreateCommand,
|
|
158
175
|
'nodes:stage:backfill:hypothesis': nodesStageBackfillHypothesisCommand,
|
|
159
176
|
'nodes:stage:backfill:insights': nodesStageBackfillInsightsCommand,
|
|
@@ -162,6 +179,16 @@ export const MVP_COMMAND_HANDLERS = {
|
|
|
162
179
|
'artifacts:upload': artifactsUploadCommand,
|
|
163
180
|
'artifacts:delete': artifactsDeleteCommand,
|
|
164
181
|
'artifacts:note:set': artifactsNoteSetCommand,
|
|
182
|
+
'hooks:list': hooksListCommand,
|
|
183
|
+
'hooks:create': hooksCreateCommand,
|
|
184
|
+
'hooks:update': hooksUpdateCommand,
|
|
185
|
+
'hooks:delete': hooksDeleteCommand,
|
|
186
|
+
'hooks:set-enabled': hooksSetEnabledCommand,
|
|
187
|
+
'hooks:runs:list': hooksRunsListCommand,
|
|
188
|
+
'hooks:secrets:list': hooksSecretsListCommand,
|
|
189
|
+
'hooks:secrets:create': hooksSecretsCreateCommand,
|
|
190
|
+
'hooks:secrets:update': hooksSecretsUpdateCommand,
|
|
191
|
+
'hooks:secrets:delete': hooksSecretsDeleteCommand,
|
|
165
192
|
'executions:launch': executionsLaunchCommand,
|
|
166
193
|
'executions:list': executionsListCommand,
|
|
167
194
|
'executions:terminate': executionsTerminateCommand,
|
|
@@ -180,8 +207,8 @@ export const MVP_COMMAND_HANDLERS = {
|
|
|
180
207
|
'campaign-budgets:create': campaignBudgetsCreateCommand,
|
|
181
208
|
'campaign-budgets:update': campaignBudgetsUpdateCommand,
|
|
182
209
|
'campaign-budgets:revoke': campaignBudgetsRevokeCommand,
|
|
183
|
-
'compute:policy:get':
|
|
184
|
-
'compute:policy:set':
|
|
210
|
+
'admin:compute:policy:get': adminComputePolicyGetCommand,
|
|
211
|
+
'admin:compute:policy:set': adminComputePolicySetCommand,
|
|
185
212
|
'compute:budgets': computeBudgetsCommand,
|
|
186
213
|
'machines:list': machinesListCommand,
|
|
187
214
|
'blobs:get': blobsGetCommand,
|
|
@@ -232,6 +259,9 @@ export const MVP_COMMAND_HANDLERS = {
|
|
|
232
259
|
// 'api-keys:setup-exchange:redeem': apiKeysSetupExchangeRedeemCommand,
|
|
233
260
|
'auth:keychain:set': authKeychainSetCommand,
|
|
234
261
|
'auth:keychain:clear': authKeychainClearCommand,
|
|
262
|
+
'admin:graphs:list': adminGraphsListCommand,
|
|
263
|
+
'admin:graphs:export': adminGraphsExportCommand,
|
|
264
|
+
'admin:graphs:export:stream': adminGraphsExportStreamCommand,
|
|
235
265
|
'env:list': envListCommand,
|
|
236
266
|
'env:switch': envSwitchCommand,
|
|
237
267
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE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AE,sBAAsB;IAC1C,mBAAmB,EAAE,uBAAuB;IAC5C,wBAAwB,EAAE,2BAA2B;IACrD,sBAAsB,EAAE,0BAA0B;IAClD,kBAAkB,EAAE,sBAAsB;IAC1C,wBAAwB,EAAE,2BAA2B;IACrD,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,iBAAiB;IAChC,sBAAsB,EAAE,yBAAyB;IACjD,mBAAmB,EAAE,uBAAuB;IAC5C,qBAAqB,EAAE,yBAAyB;IAChD,wBAAwB,EAAE,2BAA2B;IACrD,2BAA2B,EAAE,8BAA8B;IAC3D,8BAA8B,EAAE,iCAAiC;IACjE,iCAAiC,EAAE,oCAAoC;IACvE,eAAe,EAAE,kBAAkB;IACnC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,8EAA8E;IAC9E,uEAAuE;IACvE,uEAAuE;IACvE,mBAAmB,EAAE,sBAAsB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,mBAAmB,EAAE,sBAAsB;IAC3C,qBAAqB,EAAE,wBAAwB;IAC/C,4BAA4B,EAAE,8BAA8B;IAC5D,UAAU,EAAE,cAAc;IAC1B,YAAY,EAAE,gBAAgB;CAC/B,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveSecretParam } from './_secret-param.js';
|
|
2
2
|
export const integrationsHuggingfaceSetCommand = async (context) => {
|
|
3
|
-
const token =
|
|
4
|
-
|
|
3
|
+
const token = resolveSecretParam(context.params, {
|
|
4
|
+
valueKey: 'token',
|
|
5
|
+
envKey: 'token_env',
|
|
6
|
+
label: 'Hugging Face access token',
|
|
7
|
+
});
|
|
8
|
+
return context.requestJson('PUT', '/auth/integrations/huggingface', { body: { access_token: token } });
|
|
5
9
|
};
|
|
6
10
|
//# sourceMappingURL=integrations-huggingface-set.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations-huggingface-set.js","sourceRoot":"","sources":["../../src/commands/integrations-huggingface-set.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"integrations-huggingface-set.js","sourceRoot":"","sources":["../../src/commands/integrations-huggingface-set.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,iCAAiC,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACjF,MAAM,KAAK,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE;QAC/C,QAAQ,EAAE,OAAO;QACjB,MAAM,EAAE,WAAW;QACnB,KAAK,EAAE,2BAA2B;KACnC,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,gCAAgC,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;AACzG,CAAC,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolveSecretParam } from './_secret-param.js';
|
|
2
2
|
export const integrationsWandbSetCommand = async (context) => {
|
|
3
|
-
const apiKey =
|
|
3
|
+
const apiKey = resolveSecretParam(context.params, {
|
|
4
|
+
valueKey: 'api_key',
|
|
5
|
+
envKey: 'api_key_env',
|
|
6
|
+
label: 'W&B API key',
|
|
7
|
+
});
|
|
4
8
|
return context.requestJson('PUT', '/auth/integrations/wandb', { body: { api_key: apiKey } });
|
|
5
9
|
};
|
|
6
10
|
//# sourceMappingURL=integrations-wandb-set.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations-wandb-set.js","sourceRoot":"","sources":["../../src/commands/integrations-wandb-set.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"integrations-wandb-set.js","sourceRoot":"","sources":["../../src/commands/integrations-wandb-set.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,2BAA2B,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IAC3E,MAAM,MAAM,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE;QAChD,QAAQ,EAAE,SAAS;QACnB,MAAM,EAAE,aAAa;QACrB,KAAK,EAAE,aAAa;KACrB,CAAC,CAAC;IACH,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,0BAA0B,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;AAC/F,CAAC,CAAC"}
|
|
@@ -3,8 +3,13 @@ export const nodesAddParentCommand = async (context) => {
|
|
|
3
3
|
const nodeId = requiredString(context.params, 'node_id');
|
|
4
4
|
const parentId = requiredString(context.params, 'parent_id');
|
|
5
5
|
const expectedRevision = requiredInt(context.params, 'expected_revision');
|
|
6
|
+
const expectedParentRevision = requiredInt(context.params, 'expected_parent_revision');
|
|
6
7
|
return context.requestJson('POST', `/nodes/${encodeURIComponent(nodeId)}/parents/add`, {
|
|
7
|
-
body: {
|
|
8
|
+
body: {
|
|
9
|
+
parent_id: parentId,
|
|
10
|
+
expected_revision: expectedRevision,
|
|
11
|
+
expected_parent_revision: expectedParentRevision,
|
|
12
|
+
},
|
|
8
13
|
});
|
|
9
14
|
};
|
|
10
15
|
//# sourceMappingURL=nodes-add-parent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes-add-parent.js","sourceRoot":"","sources":["../../src/commands/nodes-add-parent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACrE,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC7D,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC1E,OAAO,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,kBAAkB,CAAC,MAAM,CAAC,cAAc,EAAE;QACrF,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"nodes-add-parent.js","sourceRoot":"","sources":["../../src/commands/nodes-add-parent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,qBAAqB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACrE,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC7D,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC1E,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvF,OAAO,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,kBAAkB,CAAC,MAAM,CAAC,cAAc,EAAE;QACrF,IAAI,EAAE;YACJ,SAAS,EAAE,QAAQ;YACnB,iBAAiB,EAAE,gBAAgB;YACnC,wBAAwB,EAAE,sBAAsB;SACjD;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DELETE_MODES } from './enums.js';
|
|
2
2
|
import { optionalEnum, requiredString } from './utils.js';
|
|
3
|
+
import { requireDestructiveConfirmation } from './destructive-confirmation.js';
|
|
3
4
|
export const nodesDeleteBulkCommand = async (context) => {
|
|
4
5
|
const nodeIds = requiredString(context.params, 'node_ids')
|
|
5
6
|
.split(',')
|
|
6
7
|
.map((v) => v.trim())
|
|
7
8
|
.filter(Boolean);
|
|
8
9
|
const deleteMode = optionalEnum(context.params, 'delete_mode', DELETE_MODES);
|
|
10
|
+
requireDestructiveConfirmation(context, 'nodes:delete-bulk');
|
|
9
11
|
const body = { node_ids: nodeIds };
|
|
10
12
|
if (deleteMode)
|
|
11
13
|
body.delete_mode = deleteMode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes-delete-bulk.js","sourceRoot":"","sources":["../../src/commands/nodes-delete-bulk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"nodes-delete-bulk.js","sourceRoot":"","sources":["../../src/commands/nodes-delete-bulk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,CAAC,MAAM,sBAAsB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACtE,MAAM,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC;SACvD,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,OAAO,CAAC,CAAC;IACnB,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;IAC7E,8BAA8B,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;IAC7D,MAAM,IAAI,GAA4B,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;IAC5D,IAAI,UAAU;QAAE,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;IAC9C,OAAO,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,oBAAoB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AACrE,CAAC,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { DELETE_MODES } from './enums.js';
|
|
2
2
|
import { optionalEnum, requiredString } from './utils.js';
|
|
3
|
+
import { requireDestructiveConfirmation } from './destructive-confirmation.js';
|
|
3
4
|
export const nodesDeleteCommand = async (context) => {
|
|
4
5
|
const nodeId = requiredString(context.params, 'node_id');
|
|
5
6
|
const deleteMode = optionalEnum(context.params, 'delete_mode', DELETE_MODES);
|
|
7
|
+
requireDestructiveConfirmation(context, 'nodes:delete');
|
|
6
8
|
const opts = deleteMode ? { query: { delete_mode: deleteMode } } : undefined;
|
|
7
9
|
return context.requestJson('DELETE', `/nodes/${encodeURIComponent(nodeId)}`, opts);
|
|
8
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes-delete.js","sourceRoot":"","sources":["../../src/commands/nodes-delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"nodes-delete.js","sourceRoot":"","sources":["../../src/commands/nodes-delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IAClE,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;IAC7E,8BAA8B,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IACxD,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7E,OAAO,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,UAAU,kBAAkB,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;AACrF,CAAC,CAAC"}
|
|
@@ -3,6 +3,13 @@ export const nodesRemoveParentCommand = async (context) => {
|
|
|
3
3
|
const nodeId = requiredString(context.params, 'node_id');
|
|
4
4
|
const parentId = requiredString(context.params, 'parent_id');
|
|
5
5
|
const expectedRevision = requiredInt(context.params, 'expected_revision');
|
|
6
|
-
|
|
6
|
+
const expectedParentRevision = requiredInt(context.params, 'expected_parent_revision');
|
|
7
|
+
return context.requestJson('POST', `/nodes/${encodeURIComponent(nodeId)}/parents/remove`, {
|
|
8
|
+
body: {
|
|
9
|
+
parent_id: parentId,
|
|
10
|
+
expected_revision: expectedRevision,
|
|
11
|
+
expected_parent_revision: expectedParentRevision,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
7
14
|
};
|
|
8
15
|
//# sourceMappingURL=nodes-remove-parent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes-remove-parent.js","sourceRoot":"","sources":["../../src/commands/nodes-remove-parent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,wBAAwB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACxE,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC7D,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC1E,OAAO,OAAO,CAAC,WAAW,CACxB,MAAM,EACN,UAAU,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,EACrD,
|
|
1
|
+
{"version":3,"file":"nodes-remove-parent.js","sourceRoot":"","sources":["../../src/commands/nodes-remove-parent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,CAAC,MAAM,wBAAwB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACxE,MAAM,MAAM,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,QAAQ,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC7D,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC1E,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACvF,OAAO,OAAO,CAAC,WAAW,CACxB,MAAM,EACN,UAAU,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,EACrD;QACE,IAAI,EAAE;YACJ,SAAS,EAAE,QAAQ;YACnB,iBAAiB,EAAE,gBAAgB;YACnC,wBAAwB,EAAE,sBAAsB;SACjD;KACF,CACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,13 +1,66 @@
|
|
|
1
1
|
import { pickQuery } from './handler-factory.js';
|
|
2
|
-
import { requiredString } from './utils.js';
|
|
2
|
+
import { optionalEnum, requiredString } from './utils.js';
|
|
3
|
+
function compactNode(value) {
|
|
4
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
const node = value;
|
|
8
|
+
const out = {};
|
|
9
|
+
for (const key of ['node_id', 'title', 'slug_name', 'kind', 'node_type', 'revision', 'updated_at']) {
|
|
10
|
+
if (node[key] !== undefined) {
|
|
11
|
+
out[key] = node[key];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return out;
|
|
15
|
+
}
|
|
16
|
+
function compactResolveSlugPayload(payload) {
|
|
17
|
+
const compact = {};
|
|
18
|
+
for (const key of [
|
|
19
|
+
'status',
|
|
20
|
+
'slug_name',
|
|
21
|
+
'requires_user_input',
|
|
22
|
+
'context_node_id',
|
|
23
|
+
'context_root_node_id',
|
|
24
|
+
'message',
|
|
25
|
+
]) {
|
|
26
|
+
if (payload[key] !== undefined) {
|
|
27
|
+
compact[key] = payload[key];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const selectedNode = compactNode(payload.node);
|
|
31
|
+
if (selectedNode?.node_id !== undefined) {
|
|
32
|
+
compact.node_id = selectedNode.node_id;
|
|
33
|
+
}
|
|
34
|
+
if (payload.root_node_id !== undefined) {
|
|
35
|
+
compact.root_node_id = payload.root_node_id;
|
|
36
|
+
}
|
|
37
|
+
if (Array.isArray(payload.candidates)) {
|
|
38
|
+
compact.candidates = payload.candidates.map((entry) => {
|
|
39
|
+
if (!entry || typeof entry !== 'object' || Array.isArray(entry)) {
|
|
40
|
+
return entry;
|
|
41
|
+
}
|
|
42
|
+
const rawCandidate = entry;
|
|
43
|
+
const candidateNode = compactNode(rawCandidate.node) ?? {};
|
|
44
|
+
return {
|
|
45
|
+
...candidateNode,
|
|
46
|
+
...(rawCandidate.root_node_id !== undefined
|
|
47
|
+
? { root_node_id: rawCandidate.root_node_id }
|
|
48
|
+
: {}),
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return compact;
|
|
53
|
+
}
|
|
3
54
|
export const nodesResolveSlugCommand = async (context) => {
|
|
4
55
|
const slugName = requiredString(context.params, 'slug_name');
|
|
56
|
+
const detail = optionalEnum(context.params, 'detail', ['compact', 'full']);
|
|
5
57
|
const query = { slug_name: slugName };
|
|
6
58
|
const ctxId = context.params.context_node_id;
|
|
7
59
|
if (typeof ctxId === 'string' && ctxId.trim()) {
|
|
8
60
|
query.context_node_id = ctxId.trim();
|
|
9
61
|
}
|
|
10
62
|
void pickQuery;
|
|
11
|
-
|
|
63
|
+
const payload = await context.requestJson('GET', '/nodes/resolve-by-slug', { query });
|
|
64
|
+
return detail === 'full' ? payload : compactResolveSlugPayload(payload);
|
|
12
65
|
};
|
|
13
66
|
//# sourceMappingURL=nodes-resolve-slug.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes-resolve-slug.js","sourceRoot":"","sources":["../../src/commands/nodes-resolve-slug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"nodes-resolve-slug.js","sourceRoot":"","sources":["../../src/commands/nodes-resolve-slug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAI1D,SAAS,WAAW,CAAC,KAAc;IACjC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAChE,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,IAAI,GAAG,KAAgC,CAAC;IAC9C,MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,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{ BUILTIN_PROFILES, BUILTIN_PROFILE_NAMES } from '../auth/profiles.js';
|
|
3
|
+
import { isInternalMode } from './help.js';
|
|
2
4
|
export const profileListCommand = async () => {
|
|
3
5
|
const names = await listProfiles(resolveProfilesDir());
|
|
4
|
-
|
|
6
|
+
const internal = isInternalMode();
|
|
7
|
+
const builtinNames = BUILTIN_PROFILE_NAMES.filter((name) => internal || !BUILTIN_PROFILES[name].hidden);
|
|
8
|
+
return {
|
|
9
|
+
profiles: names,
|
|
10
|
+
user_profiles: names.map((name) => ({ name, source: 'user' })),
|
|
11
|
+
builtin_profiles: builtinNames.map((name) => ({
|
|
12
|
+
name,
|
|
13
|
+
source: 'builtin',
|
|
14
|
+
baseUrl: BUILTIN_PROFILES[name].baseUrl,
|
|
15
|
+
})),
|
|
16
|
+
};
|
|
5
17
|
};
|
|
6
18
|
//# sourceMappingURL=profile-list.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-list.js","sourceRoot":"","sources":["../../src/commands/profile-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"profile-list.js","sourceRoot":"","sources":["../../src/commands/profile-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAG3C,MAAM,CAAC,MAAM,kBAAkB,GAAmB,KAAK,IAAI,EAAE;IAC3D,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,kBAAkB,EAAE,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,cAAc,EAAE,CAAC;IAClC,MAAM,YAAY,GAAG,qBAAqB,CAAC,MAAM,CAC/C,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,MAAM,CACrD,CAAC;IACF,OAAO;QACL,QAAQ,EAAE,KAAK;QACf,aAAa,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC9D,gBAAgB,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC5C,IAAI;YACJ,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC,OAAO;SACxC,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { resolveProfilesDir, saveProfile } from '../auth/profile.js';
|
|
2
|
-
import { BUILTIN_PROFILE_NAMES, isBuiltinProfileName, } from '../auth/profiles.js';
|
|
2
|
+
import { BUILTIN_PROFILES, BUILTIN_PROFILE_NAMES, isBuiltinProfileName, } from '../auth/profiles.js';
|
|
3
3
|
import { CliUsageError } from '../errors.js';
|
|
4
4
|
import { EXIT_USAGE } from '../exit-codes.js';
|
|
5
|
+
import { isInternalMode } from './help.js';
|
|
5
6
|
import { requiredString } from './utils.js';
|
|
6
7
|
const FORMAT_VALUES = ['json', 'tsv', 'csv', 'table'];
|
|
7
8
|
export const profileSetCommand = async (context) => {
|
|
@@ -14,7 +15,8 @@ export const profileSetCommand = async (context) => {
|
|
|
14
15
|
// Reject at creation/update time so the failure is immediate and
|
|
15
16
|
// actionable. Mirrors the same-named guard in `env:switch`.
|
|
16
17
|
if (isBuiltinProfileName(name)) {
|
|
17
|
-
const
|
|
18
|
+
const internal = isInternalMode();
|
|
19
|
+
const reserved = BUILTIN_PROFILE_NAMES.filter((n) => internal || !BUILTIN_PROFILES[n].hidden).join(', ');
|
|
18
20
|
throw new CliUsageError(`profile name "${name}" is reserved for built-in profiles (${reserved}); ` +
|
|
19
21
|
'use `env:switch` to select a built-in, or pick a different name.', { exitCode: EXIT_USAGE });
|
|
20
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-set.js","sourceRoot":"","sources":["../../src/commands/profile-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAgB,MAAM,oBAAoB,CAAC;AACnF,OAAO,EACL,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"profile-set.js","sourceRoot":"","sources":["../../src/commands/profile-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAgB,MAAM,oBAAoB,CAAC;AACnF,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,aAAa,GAAgC,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AAEnF,MAAM,CAAC,MAAM,iBAAiB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IACjE,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,gEAAgE;IAChE,uEAAuE;IACvE,kEAAkE;IAClE,oEAAoE;IACpE,oEAAoE;IACpE,iEAAiE;IACjE,4DAA4D;IAC5D,IAAI,oBAAoB,CAAC,IAAI,CA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O,CAAC,aAAa,GAAG,GAAmB,CAAC;IAC9C,CAAC;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC;IACjD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QAC5C,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;YAC9D,MAAM,IAAI,aAAa,CAAC,6BAA6B,OAAO,EAAE,CAAC,CAAC;QAClE,CAAC;QACD,qEAAqE;QACrE,wEAAwE;QACxE,oEAAoE;QACpE,+BAA+B;QAC/B,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YAClC,MAAM,IAAI,aAAa,CACrB,6BAA6B,OAAO,uCAAuC,CAC5E,CAAC;QACJ,CAAC;QACD,OAAO,CAAC,eAAe,GAAG,MAAM,CAAC;IACnC,CAAC;IAED,MAAM,WAAW,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACjD,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC;AAC7C,CAAC,CAAC"}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
import { loadProfile, resolveProfilesDir } from '../auth/profile.js';
|
|
2
|
+
import { BUILTIN_PROFILES, isBuiltinProfileName, } from '../auth/profiles.js';
|
|
2
3
|
import { CliUsageError } from '../errors.js';
|
|
4
|
+
import { isInternalMode } from './help.js';
|
|
3
5
|
import { requiredString } from './utils.js';
|
|
4
6
|
export const profileShowCommand = async (context) => {
|
|
5
7
|
const name = requiredString(context.params, 'name');
|
|
8
|
+
if (isBuiltinProfileName(name) &&
|
|
9
|
+
(isInternalMode() || !BUILTIN_PROFILES[name].hidden)) {
|
|
10
|
+
return {
|
|
11
|
+
name,
|
|
12
|
+
baseUrl: BUILTIN_PROFILES[name].baseUrl,
|
|
13
|
+
source: 'builtin',
|
|
14
|
+
built_in: true,
|
|
15
|
+
};
|
|
16
|
+
}
|
|
6
17
|
const profile = await loadProfile(name, resolveProfilesDir());
|
|
7
18
|
if (!profile) {
|
|
8
19
|
throw new CliUsageError(`unknown profile: ${name}`);
|
|
9
20
|
}
|
|
10
|
-
return
|
|
21
|
+
return {
|
|
22
|
+
...profile,
|
|
23
|
+
source: 'user',
|
|
24
|
+
built_in: false,
|
|
25
|
+
};
|
|
11
26
|
};
|
|
12
27
|
//# sourceMappingURL=profile-show.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-show.js","sourceRoot":"","sources":["../../src/commands/profile-show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"profile-show.js","sourceRoot":"","sources":["../../src/commands/profile-show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,CAAC,MAAM,kBAAkB,GAAmB,KAAK,EAAE,OAAO,EAAE,EAAE;IAClE,MAAM,IAAI,GAAG,cAAc,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpD,IACE,oBAAoB,CAAC,IAAI,CAAC;QAC1B,CAAC,cAAc,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EACpD,CAAC;QACD,OAAO;YACL,IAAI;YACJ,OAAO,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC,OAAO;YACvC,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,IAAI;SACf,CAAC;IACJ,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC9D,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,aAAa,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IACD,OAAO;QACL,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;AACJ,CAAC,CAAC"}
|