@codeam/shared 2.63.0 → 2.64.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/dist/index.d.mts CHANGED
@@ -1774,6 +1774,45 @@ interface SwitchAgentResult {
1774
1774
  error?: string;
1775
1775
  }
1776
1776
 
1777
+ /**
1778
+ * Agent Squad wire types — @-mention routing, roster, and agent-proposed
1779
+ * handoffs. Canonical owner (api-v2 + mobile consume the published npm
1780
+ * package; the cm-repo packages/shared mirror re-exports).
1781
+ * Spec: docs/superpowers/specs/2026-08-13-agent-squad-mentions-handoffs-design.md
1782
+ */
1783
+
1784
+ /** start_task payload — makes the previously-dead agentId field a real wire contract. */
1785
+ interface StartTaskPayload {
1786
+ prompt?: string;
1787
+ files?: Array<{
1788
+ filename: string;
1789
+ base64?: string;
1790
+ mimeType?: string;
1791
+ }>;
1792
+ /** Internal runtime id. Present + ≠ active agent → the runner swaps before running. */
1793
+ agentId?: string;
1794
+ }
1795
+ interface SquadRosterAgent {
1796
+ agentId: string;
1797
+ displayName: string;
1798
+ }
1799
+ /** Response data of POST /api/plugin/agents/roster. */
1800
+ interface SquadRosterData {
1801
+ agents: SquadRosterAgent[];
1802
+ handoffsEnabled: boolean;
1803
+ }
1804
+ /** The fence tag the active agent uses to propose a handoff (PRO). */
1805
+ declare const HANDOFF_FENCE_TAG = "codeam-handoff";
1806
+ interface HandoffProposal {
1807
+ proposalId: string;
1808
+ fromAgentId: string;
1809
+ toAgentId: string;
1810
+ reason: string;
1811
+ prompt: string;
1812
+ }
1813
+ /** Per-agent specialty blurbs for the team preamble. Copy, not routing. */
1814
+ declare const SQUAD_SPECIALTIES: Readonly<Partial<Record<AgentId, string>>>;
1815
+
1777
1816
  /**
1778
1817
  * Headroom provisioning manifest — the SINGLE source of truth for what a
1779
1818
  * Headroom install consists of, rendered by every provisioning surface:
@@ -1946,6 +1985,8 @@ declare const USER_EVENTS: {
1946
1985
  readonly CODERABBIT_REVIEW: "coderabbit_review";
1947
1986
  readonly SWITCH_AGENT_PROGRESS: "switch_agent_progress";
1948
1987
  readonly SWITCH_AGENT_STATUS: "switch_agent_status";
1988
+ readonly HANDOFF_PROPOSED: "handoff_proposed";
1989
+ readonly HANDOFF_RESOLVED: "handoff_resolved";
1949
1990
  readonly VCS_AGENT_REVIEW_COMPLETE: "vcs_agent_review_complete";
1950
1991
  /** PR-review launch progress toast — the "Review with an agent" flow shows a
1951
1992
  * toast when the review runs server-side (Inngest). Mobile-only surface,
@@ -1972,4 +2013,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
1972
2013
  */
1973
2014
  declare const PREVIEW_DETECT_PROMPT: string;
1974
2015
 
1975
- export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEADROOM_USAGE_COMMAND, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HeadroomUsageBucket, type HeadroomUsageGranularity, type HeadroomUsageReport, type HeadroomUsageResult, type HeadroomUsageSlice, type HeadroomUsageTotals, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, SWITCH_AGENT_COMMAND, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type StreamingChunkEvent, type StreamingChunkKind, type SwitchAgentCommand, type SwitchAgentResult, type SwitchAgentStatus, type SwitchAgentStep, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
2016
+ export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HANDOFF_FENCE_TAG, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEADROOM_USAGE_COMMAND, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HandoffProposal, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HeadroomUsageBucket, type HeadroomUsageGranularity, type HeadroomUsageReport, type HeadroomUsageResult, type HeadroomUsageSlice, type HeadroomUsageTotals, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SQUAD_SPECIALTIES, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, SWITCH_AGENT_COMMAND, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type SquadRosterAgent, type SquadRosterData, type StartTaskPayload, type StreamingChunkEvent, type StreamingChunkKind, type SwitchAgentCommand, type SwitchAgentResult, type SwitchAgentStatus, type SwitchAgentStep, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
package/dist/index.d.ts CHANGED
@@ -1774,6 +1774,45 @@ interface SwitchAgentResult {
1774
1774
  error?: string;
1775
1775
  }
1776
1776
 
1777
+ /**
1778
+ * Agent Squad wire types — @-mention routing, roster, and agent-proposed
1779
+ * handoffs. Canonical owner (api-v2 + mobile consume the published npm
1780
+ * package; the cm-repo packages/shared mirror re-exports).
1781
+ * Spec: docs/superpowers/specs/2026-08-13-agent-squad-mentions-handoffs-design.md
1782
+ */
1783
+
1784
+ /** start_task payload — makes the previously-dead agentId field a real wire contract. */
1785
+ interface StartTaskPayload {
1786
+ prompt?: string;
1787
+ files?: Array<{
1788
+ filename: string;
1789
+ base64?: string;
1790
+ mimeType?: string;
1791
+ }>;
1792
+ /** Internal runtime id. Present + ≠ active agent → the runner swaps before running. */
1793
+ agentId?: string;
1794
+ }
1795
+ interface SquadRosterAgent {
1796
+ agentId: string;
1797
+ displayName: string;
1798
+ }
1799
+ /** Response data of POST /api/plugin/agents/roster. */
1800
+ interface SquadRosterData {
1801
+ agents: SquadRosterAgent[];
1802
+ handoffsEnabled: boolean;
1803
+ }
1804
+ /** The fence tag the active agent uses to propose a handoff (PRO). */
1805
+ declare const HANDOFF_FENCE_TAG = "codeam-handoff";
1806
+ interface HandoffProposal {
1807
+ proposalId: string;
1808
+ fromAgentId: string;
1809
+ toAgentId: string;
1810
+ reason: string;
1811
+ prompt: string;
1812
+ }
1813
+ /** Per-agent specialty blurbs for the team preamble. Copy, not routing. */
1814
+ declare const SQUAD_SPECIALTIES: Readonly<Partial<Record<AgentId, string>>>;
1815
+
1777
1816
  /**
1778
1817
  * Headroom provisioning manifest — the SINGLE source of truth for what a
1779
1818
  * Headroom install consists of, rendered by every provisioning surface:
@@ -1946,6 +1985,8 @@ declare const USER_EVENTS: {
1946
1985
  readonly CODERABBIT_REVIEW: "coderabbit_review";
1947
1986
  readonly SWITCH_AGENT_PROGRESS: "switch_agent_progress";
1948
1987
  readonly SWITCH_AGENT_STATUS: "switch_agent_status";
1988
+ readonly HANDOFF_PROPOSED: "handoff_proposed";
1989
+ readonly HANDOFF_RESOLVED: "handoff_resolved";
1949
1990
  readonly VCS_AGENT_REVIEW_COMPLETE: "vcs_agent_review_complete";
1950
1991
  /** PR-review launch progress toast — the "Review with an agent" flow shows a
1951
1992
  * toast when the review runs server-side (Inngest). Mobile-only surface,
@@ -1972,4 +2013,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
1972
2013
  */
1973
2014
  declare const PREVIEW_DETECT_PROMPT: string;
1974
2015
 
1975
- export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEADROOM_USAGE_COMMAND, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HeadroomUsageBucket, type HeadroomUsageGranularity, type HeadroomUsageReport, type HeadroomUsageResult, type HeadroomUsageSlice, type HeadroomUsageTotals, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, SWITCH_AGENT_COMMAND, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type StreamingChunkEvent, type StreamingChunkKind, type SwitchAgentCommand, type SwitchAgentResult, type SwitchAgentStatus, type SwitchAgentStep, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
2016
+ export { AGENT_REGISTRY, AGENT_STANDARD_BLOCK, AGENT_STANDARD_MARKER, AGENT_STANDARD_TEXT, type AgentAuth, type AgentAuthKind, type AgentId, type AgentMetadata, type AgentMode, type AgentModel, type AgentReviewFinding, type AgentReviewPlan, type AgentReviewReport, type AnswerResolvedEvent, type AwaitingAnswerEvent, type BeadsActionCommand, type BeadsActionKind, type BeadsActionPayload, type BeadsActionRequest, type BeadsActionType, type BeadsConfigureAction, type BeadsDependencyDto, type BeadsDependencyKind, type BeadsIngestPayload, type BeadsIssueDto, type BeadsIssueStatus, type BeadsMemoryDto, type BeadsProjectDto, type BeadsProvisioningPayload, type BeadsProvisioningStatus, type BeadsSnapshotDto, type BeadsStatus, type BeadsStatusState, type BeadsStatusSummary, type BlameLineWire, type BrokeredIntegrationToken, CODER_PROMPT, type ChromeStep, type ChromeToolType, type CommitEntryWire, DEFAULT_API_BASE_URL, DEFAULT_GUARDRAIL_POLICY, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DerivedCredentialSource, type EnvVar, type FileBlameEvent, type FileChangeStatus, type FileChangedEvent, type FileHistoryEvent, type FileReviewStatus, GUARDRAIL_CATEGORIES, GUARDRAIL_CATEGORY_META, GUARDRAIL_CONFIGURE_COMMAND, GUARDRAIL_DISPOSITIONS, type GuardrailCategory, type GuardrailCategoryMeta, type GuardrailDisposition, type GuardrailPolicy, HANDOFF_FENCE_TAG, HEADROOM_BACKEND_ENV, HEADROOM_EXTRAS_BY_SURFACE, HEADROOM_MODELS, HEADROOM_PIP_COMPANIONS, HEADROOM_PROXY_PORT, HEADROOM_USAGE_COMMAND, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HandoffProposal, type HeadroomBudgetCommand, type HeadroomBudgetPeriod, type HeadroomBudgetUsage, type HeadroomKind, type HeadroomModelSpec, type HeadroomPythonRenderOpts, type HeadroomStatus, type HeadroomStep, type HeadroomSurface, type HeadroomUsageBucket, type HeadroomUsageGranularity, type HeadroomUsageReport, type HeadroomUsageResult, type HeadroomUsageSlice, type HeadroomUsageTotals, type HunkLineType, INTEGRATION_BRANDING, INTEGRATION_REGISTRY, INTERNAL_TO_PUBLIC, type InputSuggestionChunk, type IntegrationApiKeyField, type IntegrationAuthKind, type IntegrationBranding, type IntegrationCategory, type IntegrationDefinition, type IntegrationDelivery, type IntegrationHealth, type IntegrationId, type IntegrationMcpDelivery, type IntegrationStatus, type IntegrationsManifest, type IntegrationsManifestEntry, LINKED_AGENT_IDS, type LinkedAgentId, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_REGISTRY, PACK_START_COMMAND, PACK_STATUS_COMMAND, PACK_WORKFLOW_ARTICLE, PREVIEW_DETECT_PROMPT, PROTOCOL_VERSION, PUBLIC_TO_INTERNAL, type PackActionKind, type PackActionPayload, type PackDefinition, type PackHandoffRecord, type PackId, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewDetection, type PreviewErrorStage, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SKILL_REGISTRY, SPECIFIER_PROMPT, SQUAD_SPECIALTIES, SSE_SOCKET_TIMEOUT_MS, STACK_TO_RECOMMENDED, SWITCH_AGENT_COMMAND, type SelectPrompt, type SkillDefinition, type SkillDelivery, type SkillFileDelivery, type SkillId, type SkillRail, type SkillsManifest, type SkillsManifestEntry, type SquadRosterAgent, type SquadRosterData, type StartTaskPayload, type StreamingChunkEvent, type StreamingChunkKind, type SwitchAgentCommand, type SwitchAgentResult, type SwitchAgentStatus, type SwitchAgentStep, TERMINAL_AGENT_PREFIX, UNKNOWN_MODEL_PRICING, UPCOMING_INTEGRATION_IDS, USER_EVENTS, type UserEventName, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ __export(index_exports, {
33
33
  GUARDRAIL_CATEGORY_META: () => GUARDRAIL_CATEGORY_META,
34
34
  GUARDRAIL_CONFIGURE_COMMAND: () => GUARDRAIL_CONFIGURE_COMMAND,
35
35
  GUARDRAIL_DISPOSITIONS: () => GUARDRAIL_DISPOSITIONS,
36
+ HANDOFF_FENCE_TAG: () => HANDOFF_FENCE_TAG,
36
37
  HEADROOM_BACKEND_ENV: () => HEADROOM_BACKEND_ENV,
37
38
  HEADROOM_EXTRAS_BY_SURFACE: () => HEADROOM_EXTRAS_BY_SURFACE,
38
39
  HEADROOM_MODELS: () => HEADROOM_MODELS,
@@ -64,6 +65,7 @@ __export(index_exports, {
64
65
  REVIEWER_PROMPT: () => REVIEWER_PROMPT,
65
66
  SKILL_REGISTRY: () => SKILL_REGISTRY,
66
67
  SPECIFIER_PROMPT: () => SPECIFIER_PROMPT,
68
+ SQUAD_SPECIALTIES: () => SQUAD_SPECIALTIES,
67
69
  SSE_SOCKET_TIMEOUT_MS: () => SSE_SOCKET_TIMEOUT_MS,
68
70
  STACK_TO_RECOMMENDED: () => STACK_TO_RECOMMENDED,
69
71
  SWITCH_AGENT_COMMAND: () => SWITCH_AGENT_COMMAND,
@@ -2700,6 +2702,17 @@ var HEADROOM_USAGE_COMMAND = "headroom_usage";
2700
2702
  // src/types/agent-switch.ts
2701
2703
  var SWITCH_AGENT_COMMAND = "switch_agent";
2702
2704
 
2705
+ // src/types/agent-squad.ts
2706
+ var HANDOFF_FENCE_TAG = "codeam-handoff";
2707
+ var SQUAD_SPECIALTIES = {
2708
+ claude: "deep reasoning, refactors, and multi-step architecture work",
2709
+ codex: "fast, focused implementation and test fixing",
2710
+ cursor: "multi-file edits and codebase-wide changes",
2711
+ gemini: "large-context analysis across big files and logs",
2712
+ kimi: "long-context code reading and summarization",
2713
+ opencode: "general implementation tasks"
2714
+ };
2715
+
2703
2716
  // src/headroom/manifest.ts
2704
2717
  var HEADROOM_PROXY_PORT = 8787;
2705
2718
  var HEADROOM_BACKEND_ENV = {
@@ -2835,6 +2848,9 @@ var USER_EVENTS = {
2835
2848
  // the backend re-publishes them on the per-user SSE bus (mirrored in repo A).
2836
2849
  SWITCH_AGENT_PROGRESS: "switch_agent_progress",
2837
2850
  SWITCH_AGENT_STATUS: "switch_agent_status",
2851
+ // Agent Squad — the CLI posts these to /api/agent-switch/events; PRO-gated.
2852
+ HANDOFF_PROPOSED: "handoff_proposed",
2853
+ HANDOFF_RESOLVED: "handoff_resolved",
2838
2854
  // VCS / PR Command Center — the backend publishes this after an agent finishes
2839
2855
  // reviewing a PR (verdict + comment count + findings), driving the mobile
2840
2856
  // completion screen + push. Mirrored in repo A's app-shared events.ts.
@@ -2912,6 +2928,7 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
2912
2928
  GUARDRAIL_CATEGORY_META,
2913
2929
  GUARDRAIL_CONFIGURE_COMMAND,
2914
2930
  GUARDRAIL_DISPOSITIONS,
2931
+ HANDOFF_FENCE_TAG,
2915
2932
  HEADROOM_BACKEND_ENV,
2916
2933
  HEADROOM_EXTRAS_BY_SURFACE,
2917
2934
  HEADROOM_MODELS,
@@ -2943,6 +2960,7 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
2943
2960
  REVIEWER_PROMPT,
2944
2961
  SKILL_REGISTRY,
2945
2962
  SPECIFIER_PROMPT,
2963
+ SQUAD_SPECIALTIES,
2946
2964
  SSE_SOCKET_TIMEOUT_MS,
2947
2965
  STACK_TO_RECOMMENDED,
2948
2966
  SWITCH_AGENT_COMMAND,