@kora-platform/cli 0.7.0-rc1 → 0.8.0-rc10

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.
Files changed (49) hide show
  1. package/README.md +21 -0
  2. package/dist/api-client.d.ts +274 -106
  3. package/dist/api-client.js +192 -167
  4. package/dist/api-types.d.ts +301 -163
  5. package/dist/artifact-api-client.d.ts +28 -1
  6. package/dist/artifact-api-client.js +33 -0
  7. package/dist/artifact-commands.d.ts +5 -0
  8. package/dist/artifact-commands.js +177 -4
  9. package/dist/audit-commands.d.ts +12 -0
  10. package/dist/audit-commands.js +74 -0
  11. package/dist/auth-commands.d.ts +1 -0
  12. package/dist/auth-commands.js +195 -32
  13. package/dist/cli-errors.d.ts +7 -1
  14. package/dist/cli-errors.js +12 -1
  15. package/dist/command-builders.d.ts +1 -0
  16. package/dist/command-builders.js +1 -0
  17. package/dist/command-flags.d.ts +1 -0
  18. package/dist/command-flags.js +7 -0
  19. package/dist/command-groups.js +10 -12
  20. package/dist/command-registry.js +595 -277
  21. package/dist/commands.js +728 -636
  22. package/dist/environment-context.d.ts +9 -0
  23. package/dist/environment-context.js +32 -0
  24. package/dist/error-code.d.ts +2 -0
  25. package/dist/error-code.js +9 -0
  26. package/dist/{integration-commands.d.ts → extension-commands.d.ts} +3 -2
  27. package/dist/extension-commands.js +446 -0
  28. package/dist/files.d.ts +44 -4
  29. package/dist/files.js +349 -26
  30. package/dist/format.d.ts +6 -0
  31. package/dist/format.js +83 -1
  32. package/dist/runner.js +28 -10
  33. package/dist/schema-registry-data.d.ts +318 -571
  34. package/dist/schema-registry-data.js +356 -698
  35. package/dist/session-store.js +80 -0
  36. package/dist/session.d.ts +1 -0
  37. package/dist/transport-refresh.d.ts +10 -0
  38. package/dist/transport-refresh.js +51 -0
  39. package/dist/transport.d.ts +31 -0
  40. package/dist/transport.js +102 -36
  41. package/dist/types.d.ts +2 -1
  42. package/dist/workspace-source.d.ts +1 -0
  43. package/dist/workspace-source.js +13 -0
  44. package/package.json +2 -1
  45. package/dist/dotenv.d.ts +0 -1
  46. package/dist/dotenv.js +0 -26
  47. package/dist/integration-api-client.d.ts +0 -29
  48. package/dist/integration-api-client.js +0 -50
  49. package/dist/integration-commands.js +0 -208
@@ -3,6 +3,7 @@ export declare function arg(name: string, description: string, required?: boolea
3
3
  export declare function flag(name: string, description: string, input?: {
4
4
  acceptsValue?: boolean;
5
5
  defaultValue?: boolean | number | string;
6
+ hiddenWhenCommandFiltered?: boolean;
6
7
  knownValues?: string[];
7
8
  repeatable?: boolean;
8
9
  required?: boolean;
@@ -10,6 +10,7 @@ export function flag(name, description, input = {}) {
10
10
  acceptsValue: input.acceptsValue ?? false,
11
11
  ...(input.defaultValue !== undefined ? { defaultValue: input.defaultValue } : {}),
12
12
  description,
13
+ ...(input.hiddenWhenCommandFiltered ? { hiddenWhenCommandFiltered: true } : {}),
13
14
  ...(input.knownValues ? { knownValues: input.knownValues } : {}),
14
15
  name,
15
16
  ...(input.repeatable ? { repeatable: true } : {}),
@@ -1,4 +1,5 @@
1
1
  import type { ParsedCommand } from "./runner.js";
2
2
  export declare function readOptionalStringFlag(parsed: ParsedCommand, name: string): string | undefined;
3
3
  export declare function readRequiredStringFlag(parsed: ParsedCommand, name: string): string;
4
+ export declare function readRequiredStringFlagPreservingEmpty(parsed: ParsedCommand, name: string): string;
4
5
  export declare function readOptionalNumberFlag(parsed: ParsedCommand, name: string): number | undefined;
@@ -10,6 +10,13 @@ export function readRequiredStringFlag(parsed, name) {
10
10
  }
11
11
  return value;
12
12
  }
13
+ export function readRequiredStringFlagPreservingEmpty(parsed, name) {
14
+ const value = parsed.flags[name];
15
+ if (typeof value !== "string") {
16
+ throw usageProblem(`Missing required flag --${name}.`, parsed.definition.id);
17
+ }
18
+ return value;
19
+ }
13
20
  export function readOptionalNumberFlag(parsed, name) {
14
21
  const value = parsed.flags[name];
15
22
  return typeof value === "number" ? value : undefined;
@@ -5,29 +5,27 @@ const COMMAND_GROUP_DESCRIPTIONS = new Map([
5
5
  ["access members", "Organization member inspection and membership lifecycle."],
6
6
  ["activity", "Recent workflow, agent, person, and capability activity."],
7
7
  ["admin", "Platform-admin lifecycle controls."],
8
- ["artifact", "Managed workflow artifact upload and inspection."],
8
+ ["artifact", "Managed runtime artifact upload and inspection."],
9
+ ["audit", "Organization admin audit event inspection."],
9
10
  ["auth", "Current identity and login session management."],
10
- ["chat", "Chat session inspection, draft state, and draft application."],
11
+ ["chat", "Chat session health and history inspection."],
11
12
  ["completion", "Shell completion and completion helpers."],
12
- ["env", "Runtime variables for the active organization."],
13
- ["integrations", "Backend-discovered integration catalog, diagnostics, and CLI-safe actions."],
14
- ["mcp", "Organization-managed MCP servers."],
15
- ["skills", "Organization-managed skill packages."],
13
+ ["deployment", "Environment deployment inspection."],
14
+ ["env", "Runtime variables for an environment."],
15
+ ["environment", "Deployment environments and environment actions."],
16
+ ["extensions", "Extension package, install, and built-in lifecycle."],
17
+ ["extensions built-ins", "Kora-provided built-in extension catalog and installation."],
16
18
  ["secrets", "Organization secret definitions."],
17
- ["org", "Organization selection, settings, import, and bundle inspection."],
18
- ["org bundle", "Current organization bundle inspection."],
19
+ ["org", "Organization selection and settings."],
19
20
  ["org settings", "Applied organization settings."],
20
21
  ["org-model", "Modeled people, roles, agents, assignments, capabilities, operations, and related inventory."],
21
22
  ["org-model agents", "Modeled agents in the executable organization model."],
22
23
  ["org-model assignments", "Role and capability assignments in the executable organization model."],
23
24
  ["org-model capabilities", "Modeled capabilities in the executable organization model."],
24
- ["org-model connectors", "Modeled connectors in the executable organization model."],
25
- ["org-model mcp-servers", "Modeled MCP servers in the executable organization model."],
26
25
  ["org-model operations", "Modeled operations in the executable organization model."],
27
26
  ["org-model people", "Modeled people in the executable organization model."],
28
27
  ["org-model roles", "Modeled roles in the executable organization model."],
29
- ["release", "Draft changes, releases, and deployment inspection."],
30
- ["release deployment", "Deployment inspection for a release."],
28
+ ["release", "Release artifacts and deployment readiness."],
31
29
  ["run", "Workflow run inspection and run control."],
32
30
  ["schema", "Product and resource schemas."],
33
31
  ["task", "Task and inbox inspection plus task completion."],