@alienplatform/core 1.11.1 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alienplatform/core",
3
- "version": "1.11.1",
3
+ "version": "1.12.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -40,7 +40,7 @@
40
40
  "@types/node": "^24.0.15",
41
41
  "tsdown": "^0.13.0",
42
42
  "typescript": "^5.8.3",
43
- "vitest": "^3.1.4",
43
+ "vitest": "^3.2.7",
44
44
  "@alienplatform/typescript-config": "^1.0.0"
45
45
  },
46
46
  "dependencies": {
package/src/error.ts CHANGED
@@ -224,6 +224,8 @@ export class AlienError<TContext extends z.ZodTypeAny = z.ZodAny> extends Error
224
224
  public readonly httpStatusCode: number
225
225
  /** Type-safe context data specific to this error */
226
226
  public readonly context?: z.infer<TContext>
227
+ /** Optional human-facing remediation hint */
228
+ public readonly hint?: string | null
227
229
  /** Source error that caused this error (for chaining) */
228
230
  public readonly source?: AlienError<any>
229
231
 
@@ -259,6 +261,7 @@ export class AlienError<TContext extends z.ZodTypeAny = z.ZodAny> extends Error
259
261
  this.internal = options.internal
260
262
  this.httpStatusCode = options.httpStatusCode ?? 500
261
263
  this.context = options.context
264
+ this.hint = options.hint
262
265
 
263
266
  // Handle source construction - check if it's a valid AlienErrorOptions object
264
267
  this.source = undefined
@@ -489,6 +492,7 @@ export class AlienError<TContext extends z.ZodTypeAny = z.ZodAny> extends Error
489
492
  internal: this.internal,
490
493
  httpStatusCode: this.httpStatusCode,
491
494
  context: this.context,
495
+ hint: this.hint,
492
496
  source: this.source?.toOptions(),
493
497
  }
494
498
 
@@ -519,6 +523,7 @@ export class AlienError<TContext extends z.ZodTypeAny = z.ZodAny> extends Error
519
523
  internal: this.internal,
520
524
  httpStatusCode: this.httpStatusCode,
521
525
  context: this.context,
526
+ hint: this.hint,
522
527
  source: this.source?.toOptions(),
523
528
  }
524
529
  }
@@ -565,6 +570,7 @@ export class AlienError<TContext extends z.ZodTypeAny = z.ZodAny> extends Error
565
570
  internal: this.internal,
566
571
  httpStatusCode: this.httpStatusCode,
567
572
  context: this.context,
573
+ hint: this.hint,
568
574
  source: this.source?.toExternal(),
569
575
  }
570
576
  }
@@ -1 +1 @@
1
- {"type":"object","description":"Status of a single agent in the dev server","required":["id","name","status","resources","createdAt"],"properties":{"commandsUrl":{"type":["string","null"],"description":"Commands endpoint URL for the deployment"},"createdAt":{"type":"string","description":"ISO 8601 timestamp when agent was created"},"error":{"oneOf":[{"type":"null"},{"description":"Error if this agent has failed","type":"object","required":["code","message","retryable","internal"],"properties":{"code":{"type":"string","description":"A unique identifier for the type of error.\n\nThis should be a short, machine-readable string that can be used\nby clients to programmatically handle different error types.\nExamples: \"NOT_FOUND\", \"VALIDATION_ERROR\", \"TIMEOUT\"","example":"NOT_FOUND","maxLength":128},"context":{"description":"Additional diagnostic information about the error context.\n\nThis optional field can contain structured data providing more details\nabout the error, such as validation errors, request parameters that\ncaused the issue, or other relevant context information."},"hint":{"type":["string","null"],"description":"Optional human-facing remediation hint."},"httpStatusCode":{"type":["integer","null"],"format":"int32","description":"HTTP status code for this error.\n\nUsed when converting the error to an HTTP response. If None, falls back to\nthe error type's default status code or 500.","maximum":599,"minimum":100},"internal":{"type":"boolean","description":"Indicates if this is an internal error that should not be exposed to users.\n\nWhen `true`, this error contains sensitive information or implementation\ndetails that should not be shown to end-users. Such errors should be\nlogged for debugging but replaced with generic error messages in responses."},"message":{"type":"string","description":"Human-readable error message.\n\nThis message should be clear and actionable for developers or end-users,\nproviding context about what went wrong and potentially how to fix it.","example":"Item not found.","maxLength":16384},"retryable":{"type":"boolean","description":"Indicates whether the operation that caused the error should be retried.\n\nWhen `true`, the error is transient and the operation might succeed\nif attempted again. When `false`, retrying the same operation is\nunlikely to succeed without changes.","default":false},"source":{"description":"The underlying error that caused this error, creating an error chain.\n\nThis allows for proper error propagation and debugging by maintaining\nthe full context of how an error occurred through multiple layers\nof an application."}},"x-readme-ref-name":"AlienError"}]},"id":{"type":"string","description":"Deployment ID (e.g., dep_xyz123)"},"name":{"type":"string","description":"Agent name (from --agent-name flag)"},"resources":{"type":"object","description":"Resources deployed by this agent (keyed by resource name)","additionalProperties":{"type":"object","description":"Information about a deployed resource","required":["url"],"properties":{"resourceType":{"type":["string","null"],"description":"Resource type (\"worker\" | \"container\")"},"url":{"type":"string","description":"Resource URL (e.g., http://localhost:8080)"}},"x-readme-ref-name":"DevResourceInfo"},"propertyNames":{"type":"string"}},"status":{"description":"Deployment status (running, provisioning, etc.)","type":"string","enum":["pending","preflights-failed","initial-setup","initial-setup-failed","provisioning","provisioning-failed","running","refresh-failed","update-pending","updating","update-failed","delete-pending","deleting","delete-failed","teardown-required","teardown-failed","deleted","error"],"x-readme-ref-name":"DeploymentStatus"}},"x-readme-ref-name":"AgentStatus"}
1
+ {"type":"object","description":"Status of a single agent in the dev server","required":["id","name","status","resources","createdAt"],"properties":{"commandsUrl":{"type":["string","null"],"description":"Commands endpoint URL for the deployment"},"createdAt":{"type":"string","description":"ISO 8601 timestamp when agent was created"},"error":{"oneOf":[{"type":"null"},{"description":"Error if this agent has failed","type":"object","required":["code","message","retryable","internal"],"properties":{"code":{"type":"string","description":"A unique identifier for the type of error.\n\nThis should be a short, machine-readable string that can be used\nby clients to programmatically handle different error types.\nExamples: \"NOT_FOUND\", \"VALIDATION_ERROR\", \"TIMEOUT\"","example":"NOT_FOUND","maxLength":128},"context":{"description":"Additional diagnostic information about the error context.\n\nThis optional field can contain structured data providing more details\nabout the error, such as validation errors, request parameters that\ncaused the issue, or other relevant context information."},"hint":{"type":["string","null"],"description":"Optional human-facing remediation hint."},"httpStatusCode":{"type":["integer","null"],"format":"int32","description":"HTTP status code for this error.\n\nUsed when converting the error to an HTTP response. If None, falls back to\nthe error type's default status code or 500.","maximum":599,"minimum":100},"internal":{"type":"boolean","description":"Indicates if this is an internal error that should not be exposed to users.\n\nWhen `true`, this error contains sensitive information or implementation\ndetails that should not be shown to end-users. Such errors should be\nlogged for debugging but replaced with generic error messages in responses."},"message":{"type":"string","description":"Human-readable error message.\n\nThis message should be clear and actionable for developers or end-users,\nproviding context about what went wrong and potentially how to fix it.","example":"Item not found.","maxLength":16384},"retryable":{"type":"boolean","description":"Indicates whether the operation that caused the error should be retried.\n\nWhen `true`, the error is transient and the operation might succeed\nif attempted again. When `false`, retrying the same operation is\nunlikely to succeed without changes.","default":false},"source":{"description":"The underlying error that caused this error, creating an error chain.\n\nThis allows for proper error propagation and debugging by maintaining\nthe full context of how an error occurred through multiple layers\nof an application."}},"x-readme-ref-name":"AlienError"}]},"id":{"type":"string","description":"Deployment ID (e.g., dep_xyz123)"},"name":{"type":"string","description":"Agent name (from --agent-name flag)"},"resources":{"type":"object","description":"Resources deployed by this agent (keyed by resource name)","additionalProperties":{"type":"object","description":"Information about a deployed resource","required":["url"],"properties":{"resourceType":{"type":["string","null"],"description":"Resource type (\"worker\" | \"container\")"},"url":{"type":"string","description":"Resource URL (e.g., http://localhost:8080)"}},"x-readme-ref-name":"DevResourceInfo"},"propertyNames":{"type":"string"}},"status":{"description":"Deployment status (running, provisioning, etc.)","type":"string","enum":["pending","preflights-failed","initial-setup","initial-setup-failed","provisioning","waiting-for-machines","provisioning-failed","running","refresh-failed","update-pending","updating","update-failed","delete-pending","deleting","delete-failed","teardown-required","teardown-failed","deleted","error"],"x-readme-ref-name":"DeploymentStatus"}},"x-readme-ref-name":"AgentStatus"}
@@ -1 +1 @@
1
- {"type":"string","description":"Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.","enum":["pending","preflights-failed","initial-setup","initial-setup-failed","provisioning","provisioning-failed","running","refresh-failed","update-pending","updating","update-failed","delete-pending","deleting","delete-failed","teardown-required","teardown-failed","deleted","error"],"x-readme-ref-name":"DeploymentStatus"}
1
+ {"type":"string","description":"Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.","enum":["pending","preflights-failed","initial-setup","initial-setup-failed","provisioning","waiting-for-machines","provisioning-failed","running","refresh-failed","update-pending","updating","update-failed","delete-pending","deleting","delete-failed","teardown-required","teardown-failed","deleted","error"],"x-readme-ref-name":"DeploymentStatus"}
@@ -1 +1 @@
1
- {"type":"object","description":"Overall status of the dev server","required":["pid","platform","stackId","stateDir","apiUrl","startedAt","status","agents","lastUpdated"],"properties":{"agents":{"type":"object","description":"Agents being managed by this dev server (keyed by agent name)","additionalProperties":{"type":"object","description":"Status of a single agent in the dev server","required":["id","name","status","resources","createdAt"],"properties":{"commandsUrl":{"type":["string","null"],"description":"Commands endpoint URL for the deployment"},"createdAt":{"type":"string","description":"ISO 8601 timestamp when agent was created"},"error":{"oneOf":[{"type":"null"},{"description":"Error if this agent has failed","type":"object","required":["code","message","retryable","internal"],"properties":{"code":{"type":"string","description":"A unique identifier for the type of error.\n\nThis should be a short, machine-readable string that can be used\nby clients to programmatically handle different error types.\nExamples: \"NOT_FOUND\", \"VALIDATION_ERROR\", \"TIMEOUT\"","example":"NOT_FOUND","maxLength":128},"context":{"description":"Additional diagnostic information about the error context.\n\nThis optional field can contain structured data providing more details\nabout the error, such as validation errors, request parameters that\ncaused the issue, or other relevant context information."},"hint":{"type":["string","null"],"description":"Optional human-facing remediation hint."},"httpStatusCode":{"type":["integer","null"],"format":"int32","description":"HTTP status code for this error.\n\nUsed when converting the error to an HTTP response. If None, falls back to\nthe error type's default status code or 500.","maximum":599,"minimum":100},"internal":{"type":"boolean","description":"Indicates if this is an internal error that should not be exposed to users.\n\nWhen `true`, this error contains sensitive information or implementation\ndetails that should not be shown to end-users. Such errors should be\nlogged for debugging but replaced with generic error messages in responses."},"message":{"type":"string","description":"Human-readable error message.\n\nThis message should be clear and actionable for developers or end-users,\nproviding context about what went wrong and potentially how to fix it.","example":"Item not found.","maxLength":16384},"retryable":{"type":"boolean","description":"Indicates whether the operation that caused the error should be retried.\n\nWhen `true`, the error is transient and the operation might succeed\nif attempted again. When `false`, retrying the same operation is\nunlikely to succeed without changes.","default":false},"source":{"description":"The underlying error that caused this error, creating an error chain.\n\nThis allows for proper error propagation and debugging by maintaining\nthe full context of how an error occurred through multiple layers\nof an application."}},"x-readme-ref-name":"AlienError"}]},"id":{"type":"string","description":"Deployment ID (e.g., dep_xyz123)"},"name":{"type":"string","description":"Agent name (from --agent-name flag)"},"resources":{"type":"object","description":"Resources deployed by this agent (keyed by resource name)","additionalProperties":{"type":"object","description":"Information about a deployed resource","required":["url"],"properties":{"resourceType":{"type":["string","null"],"description":"Resource type (\"worker\" | \"container\")"},"url":{"type":"string","description":"Resource URL (e.g., http://localhost:8080)"}},"x-readme-ref-name":"DevResourceInfo"},"propertyNames":{"type":"string"}},"status":{"description":"Deployment status (running, provisioning, etc.)","type":"string","enum":["pending","preflights-failed","initial-setup","initial-setup-failed","provisioning","provisioning-failed","running","refresh-failed","update-pending","updating","update-failed","delete-pending","deleting","delete-failed","teardown-required","teardown-failed","deleted","error"],"x-readme-ref-name":"DeploymentStatus"}},"x-readme-ref-name":"AgentStatus"},"propertyNames":{"type":"string"}},"apiUrl":{"type":"string","description":"Dev server API URL (e.g., http://localhost:9090)"},"error":{"oneOf":[{"type":"null"},{"description":"Global error if dev server itself has an error","type":"object","required":["code","message","retryable","internal"],"properties":{"code":{"type":"string","description":"A unique identifier for the type of error.\n\nThis should be a short, machine-readable string that can be used\nby clients to programmatically handle different error types.\nExamples: \"NOT_FOUND\", \"VALIDATION_ERROR\", \"TIMEOUT\"","example":"NOT_FOUND","maxLength":128},"context":{"description":"Additional diagnostic information about the error context.\n\nThis optional field can contain structured data providing more details\nabout the error, such as validation errors, request parameters that\ncaused the issue, or other relevant context information."},"hint":{"type":["string","null"],"description":"Optional human-facing remediation hint."},"httpStatusCode":{"type":["integer","null"],"format":"int32","description":"HTTP status code for this error.\n\nUsed when converting the error to an HTTP response. If None, falls back to\nthe error type's default status code or 500.","maximum":599,"minimum":100},"internal":{"type":"boolean","description":"Indicates if this is an internal error that should not be exposed to users.\n\nWhen `true`, this error contains sensitive information or implementation\ndetails that should not be shown to end-users. Such errors should be\nlogged for debugging but replaced with generic error messages in responses."},"message":{"type":"string","description":"Human-readable error message.\n\nThis message should be clear and actionable for developers or end-users,\nproviding context about what went wrong and potentially how to fix it.","example":"Item not found.","maxLength":16384},"retryable":{"type":"boolean","description":"Indicates whether the operation that caused the error should be retried.\n\nWhen `true`, the error is transient and the operation might succeed\nif attempted again. When `false`, retrying the same operation is\nunlikely to succeed without changes.","default":false},"source":{"description":"The underlying error that caused this error, creating an error chain.\n\nThis allows for proper error propagation and debugging by maintaining\nthe full context of how an error occurred through multiple layers\nof an application."}},"x-readme-ref-name":"AlienError"}]},"lastUpdated":{"type":"string","description":"ISO 8601 timestamp of last status update"},"pid":{"type":"integer","format":"int32","description":"Dev server process ID","minimum":0},"platform":{"type":"string","description":"Platform (always \"local\" for dev server)"},"stackId":{"type":"string","description":"Stack ID (always \"dev\" for dev server)"},"startedAt":{"type":"string","description":"ISO 8601 timestamp when dev server started"},"stateDir":{"type":"string","description":"Path to state directory"},"status":{"description":"Overall dev server status","type":"string","enum":["initializing","ready","error","shuttingDown"],"x-readme-ref-name":"DevStatusState"}},"x-readme-ref-name":"DevStatus"}
1
+ {"type":"object","description":"Overall status of the dev server","required":["pid","platform","stackId","stateDir","apiUrl","startedAt","status","agents","lastUpdated"],"properties":{"agents":{"type":"object","description":"Agents being managed by this dev server (keyed by agent name)","additionalProperties":{"type":"object","description":"Status of a single agent in the dev server","required":["id","name","status","resources","createdAt"],"properties":{"commandsUrl":{"type":["string","null"],"description":"Commands endpoint URL for the deployment"},"createdAt":{"type":"string","description":"ISO 8601 timestamp when agent was created"},"error":{"oneOf":[{"type":"null"},{"description":"Error if this agent has failed","type":"object","required":["code","message","retryable","internal"],"properties":{"code":{"type":"string","description":"A unique identifier for the type of error.\n\nThis should be a short, machine-readable string that can be used\nby clients to programmatically handle different error types.\nExamples: \"NOT_FOUND\", \"VALIDATION_ERROR\", \"TIMEOUT\"","example":"NOT_FOUND","maxLength":128},"context":{"description":"Additional diagnostic information about the error context.\n\nThis optional field can contain structured data providing more details\nabout the error, such as validation errors, request parameters that\ncaused the issue, or other relevant context information."},"hint":{"type":["string","null"],"description":"Optional human-facing remediation hint."},"httpStatusCode":{"type":["integer","null"],"format":"int32","description":"HTTP status code for this error.\n\nUsed when converting the error to an HTTP response. If None, falls back to\nthe error type's default status code or 500.","maximum":599,"minimum":100},"internal":{"type":"boolean","description":"Indicates if this is an internal error that should not be exposed to users.\n\nWhen `true`, this error contains sensitive information or implementation\ndetails that should not be shown to end-users. Such errors should be\nlogged for debugging but replaced with generic error messages in responses."},"message":{"type":"string","description":"Human-readable error message.\n\nThis message should be clear and actionable for developers or end-users,\nproviding context about what went wrong and potentially how to fix it.","example":"Item not found.","maxLength":16384},"retryable":{"type":"boolean","description":"Indicates whether the operation that caused the error should be retried.\n\nWhen `true`, the error is transient and the operation might succeed\nif attempted again. When `false`, retrying the same operation is\nunlikely to succeed without changes.","default":false},"source":{"description":"The underlying error that caused this error, creating an error chain.\n\nThis allows for proper error propagation and debugging by maintaining\nthe full context of how an error occurred through multiple layers\nof an application."}},"x-readme-ref-name":"AlienError"}]},"id":{"type":"string","description":"Deployment ID (e.g., dep_xyz123)"},"name":{"type":"string","description":"Agent name (from --agent-name flag)"},"resources":{"type":"object","description":"Resources deployed by this agent (keyed by resource name)","additionalProperties":{"type":"object","description":"Information about a deployed resource","required":["url"],"properties":{"resourceType":{"type":["string","null"],"description":"Resource type (\"worker\" | \"container\")"},"url":{"type":"string","description":"Resource URL (e.g., http://localhost:8080)"}},"x-readme-ref-name":"DevResourceInfo"},"propertyNames":{"type":"string"}},"status":{"description":"Deployment status (running, provisioning, etc.)","type":"string","enum":["pending","preflights-failed","initial-setup","initial-setup-failed","provisioning","waiting-for-machines","provisioning-failed","running","refresh-failed","update-pending","updating","update-failed","delete-pending","deleting","delete-failed","teardown-required","teardown-failed","deleted","error"],"x-readme-ref-name":"DeploymentStatus"}},"x-readme-ref-name":"AgentStatus"},"propertyNames":{"type":"string"}},"apiUrl":{"type":"string","description":"Dev server API URL (e.g., http://localhost:9090)"},"error":{"oneOf":[{"type":"null"},{"description":"Global error if dev server itself has an error","type":"object","required":["code","message","retryable","internal"],"properties":{"code":{"type":"string","description":"A unique identifier for the type of error.\n\nThis should be a short, machine-readable string that can be used\nby clients to programmatically handle different error types.\nExamples: \"NOT_FOUND\", \"VALIDATION_ERROR\", \"TIMEOUT\"","example":"NOT_FOUND","maxLength":128},"context":{"description":"Additional diagnostic information about the error context.\n\nThis optional field can contain structured data providing more details\nabout the error, such as validation errors, request parameters that\ncaused the issue, or other relevant context information."},"hint":{"type":["string","null"],"description":"Optional human-facing remediation hint."},"httpStatusCode":{"type":["integer","null"],"format":"int32","description":"HTTP status code for this error.\n\nUsed when converting the error to an HTTP response. If None, falls back to\nthe error type's default status code or 500.","maximum":599,"minimum":100},"internal":{"type":"boolean","description":"Indicates if this is an internal error that should not be exposed to users.\n\nWhen `true`, this error contains sensitive information or implementation\ndetails that should not be shown to end-users. Such errors should be\nlogged for debugging but replaced with generic error messages in responses."},"message":{"type":"string","description":"Human-readable error message.\n\nThis message should be clear and actionable for developers or end-users,\nproviding context about what went wrong and potentially how to fix it.","example":"Item not found.","maxLength":16384},"retryable":{"type":"boolean","description":"Indicates whether the operation that caused the error should be retried.\n\nWhen `true`, the error is transient and the operation might succeed\nif attempted again. When `false`, retrying the same operation is\nunlikely to succeed without changes.","default":false},"source":{"description":"The underlying error that caused this error, creating an error chain.\n\nThis allows for proper error propagation and debugging by maintaining\nthe full context of how an error occurred through multiple layers\nof an application."}},"x-readme-ref-name":"AlienError"}]},"lastUpdated":{"type":"string","description":"ISO 8601 timestamp of last status update"},"pid":{"type":"integer","format":"int32","description":"Dev server process ID","minimum":0},"platform":{"type":"string","description":"Platform (always \"local\" for dev server)"},"stackId":{"type":"string","description":"Stack ID (always \"dev\" for dev server)"},"startedAt":{"type":"string","description":"ISO 8601 timestamp when dev server started"},"stateDir":{"type":"string","description":"Path to state directory"},"status":{"description":"Overall dev server status","type":"string","enum":["initializing","ready","error","shuttingDown"],"x-readme-ref-name":"DevStatusState"}},"x-readme-ref-name":"DevStatus"}
@@ -8,6 +8,6 @@ import * as z from "zod";
8
8
  /**
9
9
  * @description Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.
10
10
  */
11
- export const DeploymentStatusSchema = z.enum(["pending", "preflights-failed", "initial-setup", "initial-setup-failed", "provisioning", "provisioning-failed", "running", "refresh-failed", "update-pending", "updating", "update-failed", "delete-pending", "deleting", "delete-failed", "teardown-required", "teardown-failed", "deleted", "error"]).describe("Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.")
11
+ export const DeploymentStatusSchema = z.enum(["pending", "preflights-failed", "initial-setup", "initial-setup-failed", "provisioning", "waiting-for-machines", "provisioning-failed", "running", "refresh-failed", "update-pending", "updating", "update-failed", "delete-pending", "deleting", "delete-failed", "teardown-required", "teardown-failed", "deleted", "error"]).describe("Deployment status in the deployment lifecycle.\n\nFor observe-only deployments with no release or stack state, `Running`\nmeans the Operator is attached. Connectivity comes from `lastHeartbeatAt`;\nresource health comes from inventory and resource heartbeat data.")
12
12
 
13
13
  export type DeploymentStatus = z.infer<typeof DeploymentStatusSchema>
@@ -11,7 +11,7 @@ import { KubernetesTlsSecretRefSchema } from "./kubernetes-tls-secret-ref-schema
11
11
  */
12
12
  export const KubernetesCertificateModeSchema = z.union([z.lazy(() => KubernetesTlsSecretRefSchema).and(z.object({
13
13
  "mode": z.enum(["tlsSecretRef"])
14
- })), z.object({
14
+ })).describe("Namespace-scoped Kubernetes TLS Secret reference."), z.object({
15
15
  "mode": z.enum(["managedAcmImport"]),
16
16
  "region": z.string().describe("ACM region. Defaults to the deployment region when omitted.").nullish(),
17
17
  "tags": z.optional(z.object({
@@ -12,8 +12,8 @@ import { KubernetesIngressRouteProfileSchema } from "./kubernetes-ingress-route-
12
12
  */
13
13
  export const KubernetesRouteProfileSchema = z.union([z.lazy(() => KubernetesIngressRouteProfileSchema).and(z.object({
14
14
  "routeApi": z.enum(["ingress"])
15
- })), z.lazy(() => KubernetesGatewayRouteProfileSchema).and(z.object({
15
+ })).describe("Shared Ingress route profile values."), z.lazy(() => KubernetesGatewayRouteProfileSchema).and(z.object({
16
16
  "routeApi": z.enum(["gateway"])
17
- }))]).describe("Kubernetes route API selected for public endpoints.")
17
+ })).describe("Shared Gateway API route profile values.")]).describe("Kubernetes route API selected for public endpoints.")
18
18
 
19
19
  export type KubernetesRouteProfile = z.infer<typeof KubernetesRouteProfileSchema>
@@ -13,11 +13,11 @@ import { GcpManagementConfigSchema } from "./gcp-management-config-schema.js";
13
13
  */
14
14
  export const ManagementConfigSchema = z.union([z.lazy(() => AwsManagementConfigSchema).and(z.object({
15
15
  "platform": z.enum(["aws"])
16
- })), z.lazy(() => GcpManagementConfigSchema).and(z.object({
16
+ })).describe("AWS management configuration extracted from stack settings"), z.lazy(() => GcpManagementConfigSchema).and(z.object({
17
17
  "platform": z.enum(["gcp"])
18
- })), z.lazy(() => AzureManagementConfigSchema).and(z.object({
18
+ })).describe("GCP management configuration extracted from stack settings"), z.lazy(() => AzureManagementConfigSchema).and(z.object({
19
19
  "platform": z.enum(["azure"])
20
- })), z.object({
20
+ })).describe("Azure management configuration extracted from stack settings"), z.object({
21
21
  "platform": z.enum(["kubernetes"])
22
22
  })]).describe("Management configuration for different cloud platforms.\n\nPlatform-derived configuration for cross-account/cross-tenant access.\nThis is NOT user-specified - it's derived from the Manager's ServiceAccount.")
23
23
 
@@ -11,12 +11,12 @@ import { LocalPostgresHeartbeatDataSchema } from "./local-postgres-heartbeat-dat
11
11
 
12
12
  export const PostgresHeartbeatDataSchema = z.union([z.lazy(() => AuroraPostgresHeartbeatDataSchema).and(z.object({
13
13
  "backend": z.enum(["aurora"])
14
- })), z.lazy(() => GcpCloudSqlPostgresHeartbeatDataSchema).and(z.object({
14
+ })).describe("AWS Aurora Serverless v2 backend."), z.lazy(() => GcpCloudSqlPostgresHeartbeatDataSchema).and(z.object({
15
15
  "backend": z.enum(["cloudSql"])
16
- })), z.lazy(() => AzureFlexibleServerPostgresHeartbeatDataSchema).and(z.object({
16
+ })).describe("GCP Cloud SQL backend."), z.lazy(() => AzureFlexibleServerPostgresHeartbeatDataSchema).and(z.object({
17
17
  "backend": z.enum(["flexibleServer"])
18
- })), z.lazy(() => LocalPostgresHeartbeatDataSchema).and(z.object({
18
+ })).describe("Azure Flexible Server backend."), z.lazy(() => LocalPostgresHeartbeatDataSchema).and(z.object({
19
19
  "backend": z.enum(["local"])
20
- }))])
20
+ })).describe("Local embedded Postgres backend.")])
21
21
 
22
22
  export type PostgresHeartbeatData = z.infer<typeof PostgresHeartbeatDataSchema>
@@ -9,6 +9,6 @@ import { CommandResponseSchema } from "./command-response-schema.js";
9
9
  /**
10
10
  * @description Request to submit a command response (from deployment)
11
11
  */
12
- export const SubmitResponseRequestSchema = z.lazy(() => CommandResponseSchema).describe("Request to submit a command response (from deployment)")
12
+ export const SubmitResponseRequestSchema = z.lazy(() => CommandResponseSchema).describe("Command response from deployment").describe("Request to submit a command response (from deployment)")
13
13
 
14
14
  export type SubmitResponseRequest = z.infer<typeof SubmitResponseRequestSchema>