@codeam/shared 2.74.13 → 2.75.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 +33 -6
- package/dist/index.d.ts +33 -6
- package/dist/index.js +38 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -268,12 +268,25 @@ declare const HOUSE_AGENT_PROVIDER = "codeagent_cloud";
|
|
|
268
268
|
declare const HOUSE_AGENT_NAME = "CodeAgent Cloud";
|
|
269
269
|
declare const HOUSE_AGENT_VENDOR = "CodeAgent";
|
|
270
270
|
declare const HOUSE_AGENT_SUBTITLE = "Included \u2014 no setup";
|
|
271
|
+
declare const MANAGED_PROVIDER_IDS: readonly ["managed-deepseek", "managed-deepseek-flash", "managed-qwen-coder", "managed-codex", "managed-claude"];
|
|
272
|
+
type ManagedProviderId = (typeof MANAGED_PROVIDER_IDS)[number];
|
|
273
|
+
declare function isManagedProviderId(value: unknown): value is ManagedProviderId;
|
|
274
|
+
/** User-facing names — the MODEL is named, the upstream vendor is not. */
|
|
275
|
+
declare const MANAGED_PROVIDER_DISPLAY_NAMES: Readonly<Record<ManagedProviderId, string>>;
|
|
276
|
+
/** Card subtitle for a managed agent (vault-less; billed from prepaid credits). */
|
|
277
|
+
declare const MANAGED_AGENT_SUBTITLE = "Prepaid usage credits";
|
|
278
|
+
/**
|
|
279
|
+
* Env var the house-rail bootstrap exports for a MANAGED deploy so the CLI can
|
|
280
|
+
* tell WHICH managed agent it is running (the proxy env alone only says
|
|
281
|
+
* "house rail"). Absent ⇒ the classic house agent (CodeAgent Cloud).
|
|
282
|
+
*/
|
|
283
|
+
declare const MANAGED_AGENT_ENV = "CODEAM_MANAGED_AGENT_ID";
|
|
271
284
|
/**
|
|
272
285
|
* Public-facing linked-agent ids — the id space the `/api/agents/...`
|
|
273
286
|
* endpoints and the mobile/web surfaces speak. The internal `AgentId`
|
|
274
287
|
* (`'claude' | 'codex' | …`) is what the runtimes / provisioning key on.
|
|
275
288
|
*/
|
|
276
|
-
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'openrouter' | 'opencode' | typeof HOUSE_AGENT_ID;
|
|
289
|
+
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'openrouter' | 'opencode' | typeof HOUSE_AGENT_ID | ManagedProviderId;
|
|
277
290
|
declare const LINKED_AGENT_IDS: readonly LinkedAgentId[];
|
|
278
291
|
declare function isLinkedAgentId(value: string): value is LinkedAgentId;
|
|
279
292
|
/**
|
|
@@ -1274,19 +1287,33 @@ interface StreamingChunkEvent {
|
|
|
1274
1287
|
content: string;
|
|
1275
1288
|
isFinal: boolean;
|
|
1276
1289
|
}
|
|
1290
|
+
/**
|
|
1291
|
+
* One choice of an awaiting-answer prompt when the producer wants the
|
|
1292
|
+
* answer resolved by a stable id rather than by position. `value` is
|
|
1293
|
+
* echoed back verbatim by the client (`select_option.optionId` /
|
|
1294
|
+
* `answer`) — for an ACP permission prompt it is the ACP `optionId`.
|
|
1295
|
+
* The backend normalises a bare string option to `{ label, value:
|
|
1296
|
+
* String(index) }`, so consumers always see this shape.
|
|
1297
|
+
*/
|
|
1298
|
+
interface AwaitingAnswerOption {
|
|
1299
|
+
label: string;
|
|
1300
|
+
value: string;
|
|
1301
|
+
}
|
|
1277
1302
|
/**
|
|
1278
1303
|
* Body for `POST /api/sessions/:id/awaiting-answer`.
|
|
1279
1304
|
*
|
|
1280
1305
|
* `prompt` is the question text the agent rendered (free-form). When
|
|
1281
1306
|
* the agent presented a multiple-choice selector, `options` is the
|
|
1282
|
-
* ordered list of choices the user can pick
|
|
1283
|
-
*
|
|
1284
|
-
*
|
|
1307
|
+
* ordered list of choices the user can pick — bare labels (resolved by
|
|
1308
|
+
* position) or {@link AwaitingAnswerOption}s (resolved by `value`).
|
|
1309
|
+
* `questionId` is the producer-generated UUID the backend echoes back
|
|
1310
|
+
* through the answer channel so the CLI can correlate the user's reply
|
|
1311
|
+
* with the prompt.
|
|
1285
1312
|
*/
|
|
1286
1313
|
interface AwaitingAnswerEvent {
|
|
1287
1314
|
questionId: string;
|
|
1288
1315
|
prompt: string;
|
|
1289
|
-
options?: string
|
|
1316
|
+
options?: Array<string | AwaitingAnswerOption>;
|
|
1290
1317
|
}
|
|
1291
1318
|
/**
|
|
1292
1319
|
* Wire shape for the `input_suggestion` output chunk emitted by CLI agents
|
|
@@ -2210,4 +2237,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
|
|
|
2210
2237
|
*/
|
|
2211
2238
|
declare const PREVIEW_DETECT_PROMPT: string;
|
|
2212
2239
|
|
|
2213
|
-
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 HandoffResolution, 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, INSTALL_SNIPPETS, 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 MissingService, 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_CONFIGURE_COMMAND, SQUAD_HOP_BUDGET_DEFAULT, SQUAD_HOP_BUDGET_MAX, SQUAD_HOP_BUDGET_MIN, SQUAD_SPECIALTIES, SQUAD_STATS_COMMAND, 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 SquadAutoConfig, type SquadConfigurePayload, type SquadConfigureResult, type SquadMemberActivity, type SquadRosterAgent, type SquadRosterData, type SquadStatsResult, type StartTaskFailedResult, 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, clampHopBudget, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, installableAgentIds, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
|
2240
|
+
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 AwaitingAnswerOption, 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 HandoffResolution, 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, INSTALL_SNIPPETS, 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, MANAGED_AGENT_ENV, MANAGED_AGENT_SUBTITLE, MANAGED_PROVIDER_DISPLAY_NAMES, MANAGED_PROVIDER_IDS, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ManagedProviderId, type MissingService, 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_CONFIGURE_COMMAND, SQUAD_HOP_BUDGET_DEFAULT, SQUAD_HOP_BUDGET_MAX, SQUAD_HOP_BUDGET_MIN, SQUAD_SPECIALTIES, SQUAD_STATS_COMMAND, 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 SquadAutoConfig, type SquadConfigurePayload, type SquadConfigureResult, type SquadMemberActivity, type SquadRosterAgent, type SquadRosterData, type SquadStatsResult, type StartTaskFailedResult, 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, clampHopBudget, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, installableAgentIds, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isManagedProviderId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
package/dist/index.d.ts
CHANGED
|
@@ -268,12 +268,25 @@ declare const HOUSE_AGENT_PROVIDER = "codeagent_cloud";
|
|
|
268
268
|
declare const HOUSE_AGENT_NAME = "CodeAgent Cloud";
|
|
269
269
|
declare const HOUSE_AGENT_VENDOR = "CodeAgent";
|
|
270
270
|
declare const HOUSE_AGENT_SUBTITLE = "Included \u2014 no setup";
|
|
271
|
+
declare const MANAGED_PROVIDER_IDS: readonly ["managed-deepseek", "managed-deepseek-flash", "managed-qwen-coder", "managed-codex", "managed-claude"];
|
|
272
|
+
type ManagedProviderId = (typeof MANAGED_PROVIDER_IDS)[number];
|
|
273
|
+
declare function isManagedProviderId(value: unknown): value is ManagedProviderId;
|
|
274
|
+
/** User-facing names — the MODEL is named, the upstream vendor is not. */
|
|
275
|
+
declare const MANAGED_PROVIDER_DISPLAY_NAMES: Readonly<Record<ManagedProviderId, string>>;
|
|
276
|
+
/** Card subtitle for a managed agent (vault-less; billed from prepaid credits). */
|
|
277
|
+
declare const MANAGED_AGENT_SUBTITLE = "Prepaid usage credits";
|
|
278
|
+
/**
|
|
279
|
+
* Env var the house-rail bootstrap exports for a MANAGED deploy so the CLI can
|
|
280
|
+
* tell WHICH managed agent it is running (the proxy env alone only says
|
|
281
|
+
* "house rail"). Absent ⇒ the classic house agent (CodeAgent Cloud).
|
|
282
|
+
*/
|
|
283
|
+
declare const MANAGED_AGENT_ENV = "CODEAM_MANAGED_AGENT_ID";
|
|
271
284
|
/**
|
|
272
285
|
* Public-facing linked-agent ids — the id space the `/api/agents/...`
|
|
273
286
|
* endpoints and the mobile/web surfaces speak. The internal `AgentId`
|
|
274
287
|
* (`'claude' | 'codex' | …`) is what the runtimes / provisioning key on.
|
|
275
288
|
*/
|
|
276
|
-
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'openrouter' | 'opencode' | typeof HOUSE_AGENT_ID;
|
|
289
|
+
type LinkedAgentId = 'claude_code' | 'codex' | 'cursor' | 'aider' | 'coderabbit' | 'gemini' | 'kimi' | 'openrouter' | 'opencode' | typeof HOUSE_AGENT_ID | ManagedProviderId;
|
|
277
290
|
declare const LINKED_AGENT_IDS: readonly LinkedAgentId[];
|
|
278
291
|
declare function isLinkedAgentId(value: string): value is LinkedAgentId;
|
|
279
292
|
/**
|
|
@@ -1274,19 +1287,33 @@ interface StreamingChunkEvent {
|
|
|
1274
1287
|
content: string;
|
|
1275
1288
|
isFinal: boolean;
|
|
1276
1289
|
}
|
|
1290
|
+
/**
|
|
1291
|
+
* One choice of an awaiting-answer prompt when the producer wants the
|
|
1292
|
+
* answer resolved by a stable id rather than by position. `value` is
|
|
1293
|
+
* echoed back verbatim by the client (`select_option.optionId` /
|
|
1294
|
+
* `answer`) — for an ACP permission prompt it is the ACP `optionId`.
|
|
1295
|
+
* The backend normalises a bare string option to `{ label, value:
|
|
1296
|
+
* String(index) }`, so consumers always see this shape.
|
|
1297
|
+
*/
|
|
1298
|
+
interface AwaitingAnswerOption {
|
|
1299
|
+
label: string;
|
|
1300
|
+
value: string;
|
|
1301
|
+
}
|
|
1277
1302
|
/**
|
|
1278
1303
|
* Body for `POST /api/sessions/:id/awaiting-answer`.
|
|
1279
1304
|
*
|
|
1280
1305
|
* `prompt` is the question text the agent rendered (free-form). When
|
|
1281
1306
|
* the agent presented a multiple-choice selector, `options` is the
|
|
1282
|
-
* ordered list of choices the user can pick
|
|
1283
|
-
*
|
|
1284
|
-
*
|
|
1307
|
+
* ordered list of choices the user can pick — bare labels (resolved by
|
|
1308
|
+
* position) or {@link AwaitingAnswerOption}s (resolved by `value`).
|
|
1309
|
+
* `questionId` is the producer-generated UUID the backend echoes back
|
|
1310
|
+
* through the answer channel so the CLI can correlate the user's reply
|
|
1311
|
+
* with the prompt.
|
|
1285
1312
|
*/
|
|
1286
1313
|
interface AwaitingAnswerEvent {
|
|
1287
1314
|
questionId: string;
|
|
1288
1315
|
prompt: string;
|
|
1289
|
-
options?: string
|
|
1316
|
+
options?: Array<string | AwaitingAnswerOption>;
|
|
1290
1317
|
}
|
|
1291
1318
|
/**
|
|
1292
1319
|
* Wire shape for the `input_suggestion` output chunk emitted by CLI agents
|
|
@@ -2210,4 +2237,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
|
|
|
2210
2237
|
*/
|
|
2211
2238
|
declare const PREVIEW_DETECT_PROMPT: string;
|
|
2212
2239
|
|
|
2213
|
-
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 HandoffResolution, 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, INSTALL_SNIPPETS, 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 MissingService, 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_CONFIGURE_COMMAND, SQUAD_HOP_BUDGET_DEFAULT, SQUAD_HOP_BUDGET_MAX, SQUAD_HOP_BUDGET_MIN, SQUAD_SPECIALTIES, SQUAD_STATS_COMMAND, 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 SquadAutoConfig, type SquadConfigurePayload, type SquadConfigureResult, type SquadMemberActivity, type SquadRosterAgent, type SquadRosterData, type SquadStatsResult, type StartTaskFailedResult, 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, clampHopBudget, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, installableAgentIds, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
|
2240
|
+
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 AwaitingAnswerOption, 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 HandoffResolution, 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, INSTALL_SNIPPETS, 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, MANAGED_AGENT_ENV, MANAGED_AGENT_SUBTITLE, MANAGED_PROVIDER_DISPLAY_NAMES, MANAGED_PROVIDER_IDS, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ManagedProviderId, type MissingService, 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_CONFIGURE_COMMAND, SQUAD_HOP_BUDGET_DEFAULT, SQUAD_HOP_BUDGET_MAX, SQUAD_HOP_BUDGET_MIN, SQUAD_SPECIALTIES, SQUAD_STATS_COMMAND, 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 SquadAutoConfig, type SquadConfigurePayload, type SquadConfigureResult, type SquadMemberActivity, type SquadRosterAgent, type SquadRosterData, type SquadStatsResult, type StartTaskFailedResult, 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, clampHopBudget, classifyStack, detectedIntegrationsFromDeps, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, headroomKindFor, headroomModelPredownloadScript, headroomPipPackage, headroomSnapshotDownloadLine, installableAgentIds, internalToPublic, isGuardrailDisposition, isHeadroomWrappable, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isManagedProviderId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
|
package/dist/index.js
CHANGED
|
@@ -51,6 +51,10 @@ __export(index_exports, {
|
|
|
51
51
|
INTEGRATION_REGISTRY: () => INTEGRATION_REGISTRY,
|
|
52
52
|
INTERNAL_TO_PUBLIC: () => INTERNAL_TO_PUBLIC,
|
|
53
53
|
LINKED_AGENT_IDS: () => LINKED_AGENT_IDS,
|
|
54
|
+
MANAGED_AGENT_ENV: () => MANAGED_AGENT_ENV,
|
|
55
|
+
MANAGED_AGENT_SUBTITLE: () => MANAGED_AGENT_SUBTITLE,
|
|
56
|
+
MANAGED_PROVIDER_DISPLAY_NAMES: () => MANAGED_PROVIDER_DISPLAY_NAMES,
|
|
57
|
+
MANAGED_PROVIDER_IDS: () => MANAGED_PROVIDER_IDS,
|
|
54
58
|
MODEL_CONTEXT_WINDOW: () => MODEL_CONTEXT_WINDOW,
|
|
55
59
|
MODEL_PRICING: () => MODEL_PRICING,
|
|
56
60
|
OBSERVER_BRIDGE_PORT: () => OBSERVER_BRIDGE_PORT,
|
|
@@ -104,6 +108,7 @@ __export(index_exports, {
|
|
|
104
108
|
isKnownIntegrationId: () => isKnownIntegrationId,
|
|
105
109
|
isKnownModel: () => isKnownModel,
|
|
106
110
|
isLinkedAgentId: () => isLinkedAgentId,
|
|
111
|
+
isManagedProviderId: () => isManagedProviderId,
|
|
107
112
|
isNoopInstallSnippet: () => isNoopInstallSnippet,
|
|
108
113
|
isPackId: () => isPackId,
|
|
109
114
|
isSkillId: () => isSkillId,
|
|
@@ -506,6 +511,25 @@ var HOUSE_AGENT_PROVIDER = "codeagent_cloud";
|
|
|
506
511
|
var HOUSE_AGENT_NAME = "CodeAgent Cloud";
|
|
507
512
|
var HOUSE_AGENT_VENDOR = "CodeAgent";
|
|
508
513
|
var HOUSE_AGENT_SUBTITLE = "Included \u2014 no setup";
|
|
514
|
+
var MANAGED_PROVIDER_IDS = [
|
|
515
|
+
"managed-deepseek",
|
|
516
|
+
"managed-deepseek-flash",
|
|
517
|
+
"managed-qwen-coder",
|
|
518
|
+
"managed-codex",
|
|
519
|
+
"managed-claude"
|
|
520
|
+
];
|
|
521
|
+
function isManagedProviderId(value) {
|
|
522
|
+
return typeof value === "string" && MANAGED_PROVIDER_IDS.includes(value);
|
|
523
|
+
}
|
|
524
|
+
var MANAGED_PROVIDER_DISPLAY_NAMES = {
|
|
525
|
+
"managed-deepseek": "DeepSeek V4",
|
|
526
|
+
"managed-deepseek-flash": "DeepSeek V4 Flash",
|
|
527
|
+
"managed-qwen-coder": "Qwen3 Coder",
|
|
528
|
+
"managed-codex": "Codex",
|
|
529
|
+
"managed-claude": "Claude"
|
|
530
|
+
};
|
|
531
|
+
var MANAGED_AGENT_SUBTITLE = "Prepaid usage credits";
|
|
532
|
+
var MANAGED_AGENT_ENV = "CODEAM_MANAGED_AGENT_ID";
|
|
509
533
|
var LINKED_AGENT_IDS = [
|
|
510
534
|
"claude_code",
|
|
511
535
|
"codex",
|
|
@@ -516,7 +540,8 @@ var LINKED_AGENT_IDS = [
|
|
|
516
540
|
"kimi",
|
|
517
541
|
"openrouter",
|
|
518
542
|
"opencode",
|
|
519
|
-
HOUSE_AGENT_ID
|
|
543
|
+
HOUSE_AGENT_ID,
|
|
544
|
+
...MANAGED_PROVIDER_IDS
|
|
520
545
|
];
|
|
521
546
|
function isLinkedAgentId(value) {
|
|
522
547
|
return LINKED_AGENT_IDS.includes(value);
|
|
@@ -547,7 +572,13 @@ var PUBLIC_TO_INTERNAL = {
|
|
|
547
572
|
openrouter: "claude",
|
|
548
573
|
// The house agent runs Claude Code under the hood (pointed at the
|
|
549
574
|
// MiniMax proxy). Its internal runtime is therefore `claude`.
|
|
550
|
-
[HOUSE_AGENT_ID]: "claude"
|
|
575
|
+
[HOUSE_AGENT_ID]: "claude",
|
|
576
|
+
// Every managed provider runs Claude Code against our proxy too.
|
|
577
|
+
"managed-deepseek": "claude",
|
|
578
|
+
"managed-deepseek-flash": "claude",
|
|
579
|
+
"managed-qwen-coder": "claude",
|
|
580
|
+
"managed-codex": "claude",
|
|
581
|
+
"managed-claude": "claude"
|
|
551
582
|
};
|
|
552
583
|
var INTERNAL_TO_PUBLIC = {
|
|
553
584
|
claude: "claude_code",
|
|
@@ -3093,6 +3124,10 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
|
|
|
3093
3124
|
INTEGRATION_REGISTRY,
|
|
3094
3125
|
INTERNAL_TO_PUBLIC,
|
|
3095
3126
|
LINKED_AGENT_IDS,
|
|
3127
|
+
MANAGED_AGENT_ENV,
|
|
3128
|
+
MANAGED_AGENT_SUBTITLE,
|
|
3129
|
+
MANAGED_PROVIDER_DISPLAY_NAMES,
|
|
3130
|
+
MANAGED_PROVIDER_IDS,
|
|
3096
3131
|
MODEL_CONTEXT_WINDOW,
|
|
3097
3132
|
MODEL_PRICING,
|
|
3098
3133
|
OBSERVER_BRIDGE_PORT,
|
|
@@ -3146,6 +3181,7 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
|
|
|
3146
3181
|
isKnownIntegrationId,
|
|
3147
3182
|
isKnownModel,
|
|
3148
3183
|
isLinkedAgentId,
|
|
3184
|
+
isManagedProviderId,
|
|
3149
3185
|
isNoopInstallSnippet,
|
|
3150
3186
|
isPackId,
|
|
3151
3187
|
isSkillId,
|