@getforgeai/protocol 0.1.0-beta.1 → 0.1.0-beta.2

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.
@@ -0,0 +1,13 @@
1
+ /**
2
+ * AI coding agent engines the CLI can run inside its Docker sessions.
3
+ * Shared by the CLI (spawn profiles, config validation) and the Cloud
4
+ * (device settings, Zod boundaries).
5
+ */
6
+ export declare const AGENT_TYPE: readonly ["CLAUDE_CODE", "CODEX", "OPENCODE"];
7
+ export type AgentType = (typeof AGENT_TYPE)[number];
8
+ /** Human-readable labels for UI display. */
9
+ export declare const AGENT_TYPE_LABELS: Record<AgentType, string>;
10
+ export declare const DEFAULT_AGENT_TYPE: AgentType;
11
+ /** Narrow an arbitrary string (config file, DB column) to a known AgentType. */
12
+ export declare function isAgentType(value: string): value is AgentType;
13
+ //# sourceMappingURL=agent-type.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * AI coding agent engines the CLI can run inside its Docker sessions.
3
+ * Shared by the CLI (spawn profiles, config validation) and the Cloud
4
+ * (device settings, Zod boundaries).
5
+ */
6
+ export const AGENT_TYPE = ["CLAUDE_CODE", "CODEX", "OPENCODE"];
7
+ /** Human-readable labels for UI display. */
8
+ export const AGENT_TYPE_LABELS = {
9
+ CLAUDE_CODE: "Claude Code",
10
+ CODEX: "Codex",
11
+ OPENCODE: "OpenCode",
12
+ };
13
+ export const DEFAULT_AGENT_TYPE = "CLAUDE_CODE";
14
+ /** Narrow an arbitrary string (config file, DB column) to a known AgentType. */
15
+ export function isAgentType(value) {
16
+ return AGENT_TYPE.includes(value);
17
+ }
18
+ //# sourceMappingURL=agent-type.js.map
@@ -391,7 +391,14 @@ export type ProjectKanbanConfigPayload = SocketEventEnvelope & {
391
391
  }[];
392
392
  };
393
393
  export type CliConfigUpdatedPayload = {
394
- agentSlots: number;
394
+ /** New agent slot capacity, present when it changed. */
395
+ agentSlots?: number;
396
+ /**
397
+ * New agent engine (see AGENT_TYPE in constants/agent-type.ts), present when
398
+ * it changed. The CLI persists it to its local config and uses it for
399
+ * subsequent agent spawns.
400
+ */
401
+ agentType?: string;
395
402
  };
396
403
  export type SocketErrorPayload = {
397
404
  message: string;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export { KANBAN_SUB_STATUS, DEFAULT_KANBAN_COLUMNS, KANBAN_COLUMN_COLORS, DEFAULT_MAX_REQUEUE, } from "./constants/task-status.js";
2
2
  export type { KanbanColumnConfig } from "./constants/task-status.js";
3
3
  export { AGENT_STATUS } from "./constants/agent-status.js";
4
+ export { AGENT_TYPE, AGENT_TYPE_LABELS, DEFAULT_AGENT_TYPE, isAgentType, } from "./constants/agent-type.js";
5
+ export type { AgentType } from "./constants/agent-type.js";
4
6
  export { CLI_STATUS } from "./constants/cli-status.js";
5
7
  export { WORKFLOW_TYPE } from "./constants/workflow-type.js";
6
8
  export type { WorkflowType } from "./constants/workflow-type.js";
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // Constants
2
2
  export { KANBAN_SUB_STATUS, DEFAULT_KANBAN_COLUMNS, KANBAN_COLUMN_COLORS, DEFAULT_MAX_REQUEUE, } from "./constants/task-status.js";
3
3
  export { AGENT_STATUS } from "./constants/agent-status.js";
4
+ export { AGENT_TYPE, AGENT_TYPE_LABELS, DEFAULT_AGENT_TYPE, isAgentType, } from "./constants/agent-type.js";
4
5
  export { CLI_STATUS } from "./constants/cli-status.js";
5
6
  export { WORKFLOW_TYPE } from "./constants/workflow-type.js";
6
7
  export { WORKFLOW_SCOPE } from "./constants/workflow-scope.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getforgeai/protocol",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.0-beta.2",
4
4
  "description": "Shared types, constants, Socket.io event definitions and Zod schemas for the ForgeAI CLI/Cloud contract.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",