Skip to content

KZN-19166 - Support calling the admin CLI with current credentials - #38

Merged
keegandonley merged 4 commits into
mainfrom
feature/KZN-19166-merge-CLI-implementations
Oct 22, 2026
Merged

keegandonley merged 4 commits into
mainfrom
feature/KZN-19166-merge-CLI-implementations

Conversation

@keegandonley

@keegandonley keegandonley commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Support wrapper for calling the admin CLI directly from the app builder

Jira: https://kizen.atlassian.net/browse/KZN-19166

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Missing contract documentation prevents completing the required compatibility validation of the authentication and execution integration.

No open issues 🎉

What changed in this PR

Adds appbuilder admin so plugin developers can run Kizen’s admin CLI using their current appbuilder credentials.

Changes:

  • Adds admin command forwarding and account-bound authentication.
  • Provisions a pinned Kizen CLI in a private Python environment and shares Python discovery with the local code-step runner.
  • Adds tests, documents usage, and bumps the CLI to version 1.17.0.

The required .copilot-docs/ documentation was unavailable during review, leaving contract validation incomplete.

File Description
src/​server/​pythonExecutor.ts Uses shared Python discovery helpers.
src/​program.ts Registers the admin command.
src/​program.test.ts Tests admin wiring and argument forwarding.
src/​lib/​pythonProbe.ts Extracts shared Python version probing and selection.
src/​lib/​pythonProbe.test.ts Tests interpreter selection for both runners.
src/​lib/​oauthCommands.ts Adds account-bound token retrieval.
src/​lib/​oauthCommands.test.ts Tests account binding and account-switch failures.
src/​lib/​kizenVenv.ts Provisions, verifies, caches, and prunes Kizen environments.
src/​lib/​kizenVenv.test.ts Tests installation, recovery, concurrency, and pruning.
src/​lib/​kizenAdmin.ts Implements admin parsing, session setup, and process execution.
src/​lib/​kizenAdmin.test.ts Tests authentication setup, forwarding, and process handling.
src/​commands/​auth.ts Exposes account-binding options for auth-header.
src/​commands/​admin.ts Defines admin command wiring and help.
src/​__snapshots__/​program.test.ts.snap Adds admin to the help snapshot.
README.md Documents admin usage, installation, and authentication behavior.
package.json Bumps the version to 1.17.0.
CONTRIBUTING.md Updates version-bump guidance for pull requests.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human review is needed because contract documentation was unavailable and parent-only SIGINT cancellation remains unresolved.

1 open issue

Review effort: Balanced

Comment thread src/lib/kizenAdmin.ts Outdated

return [signal, forward] as const;
}),
['SIGINT', (): void => undefined] as const,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@mauricebecnel400 mauricebecnel400 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@keegandonley
keegandonley merged commit d9d38e3 into main Oct 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants