@codeam/shared 2.75.46 → 2.76.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
@@ -2123,9 +2123,50 @@ declare const USER_EVENTS: {
2123
2123
  * publican: no dicen nada a quien los lee. El CLI no lo consume; vive aqui
2124
2124
  * porque este fichero es la fuente del espejo que valida `shared-type-drift`. */
2125
2125
  readonly AUTO_RECHARGE_BLOCKED: "auto_recharge_blocked";
2126
+ readonly SCRATCH_SAVE_OFFER: "scratch_save_offer";
2127
+ readonly SCRATCH_PROJECT_STATE: "scratch_project_state";
2126
2128
  };
2127
2129
  type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
2128
2130
 
2131
+ /**
2132
+ * Agent-first onboarding (spec 2026-09-28-agent-first-onboarding-scratch-box-design).
2133
+ * ONE constant decides which deploy card is primary on mobile + web (D4) — flip
2134
+ * the array to make GitHub primary. A user whose GitHub is already linked sees
2135
+ * the repo card first.
2136
+ */
2137
+ type DeployChoice = 'scratch' | 'github';
2138
+ declare const DEPLOY_CHOICE_ORDER: readonly DeployChoice[];
2139
+ declare function orderDeployChoices(githubLinked: boolean): DeployChoice[];
2140
+ interface StarterPrompt {
2141
+ label: string;
2142
+ prompt: string;
2143
+ }
2144
+ /** Composer starters for an empty scratch Box session (D12/§4.3). */
2145
+ declare const SCRATCH_STARTER_PROMPTS: readonly StarterPrompt[];
2146
+ declare const SCRATCH_ZIP_FREE_LIMIT_BYTES = 104857600;
2147
+ declare const SCRATCH_ZIP_WIFI_HINT_BYTES = 209715200;
2148
+ type ScratchSavedVia = 'github' | 'zip';
2149
+ interface ScratchProjectState {
2150
+ projectId: string;
2151
+ sessionId: string | null;
2152
+ savedAt: string | null;
2153
+ savedVia: ScratchSavedVia | null;
2154
+ repoFullName: string | null;
2155
+ }
2156
+ type ScratchExportResult = {
2157
+ url: string;
2158
+ sizeBytes: number;
2159
+ expiresAt: string;
2160
+ } | {
2161
+ tooLarge: true;
2162
+ sizeBytes: number;
2163
+ limitBytes: number;
2164
+ topPaths: Array<{
2165
+ path: string;
2166
+ bytes: number;
2167
+ }>;
2168
+ };
2169
+
2129
2170
  /**
2130
2171
  * Prompt the CLI sends to the user's linked agent (Claude, Codex, …)
2131
2172
  * in a headless one-shot to detect how to start the project's dev
@@ -2138,4 +2179,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
2138
2179
  */
2139
2180
  declare const PREVIEW_DETECT_PROMPT: string;
2140
2181
 
2141
- 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, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HandoffProposal, type HandoffResolution, 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, MAX_PACK_FINDINGS, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ManagedProviderId, type MissingService, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_FINDINGS_FILE, PACK_HANDOFF_HEADING, 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 PackFinding, type PackFindingResolution, type PackFindingSeverity, type PackFindingsParseResult, type PackHandoffRecord, type PackId, type PackPendingControl, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type ParsedPackFindings, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewAgentHighlight, type PreviewDetection, type PreviewErrorStage, type PreviewOrigin, type PreviewScriptCandidate, 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, extractHandoffSection, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, installableAgentIds, internalToPublic, isGuardrailDisposition, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isManagedProviderId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, parsePackFindings, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
2182
+ 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, DEPLOY_CHOICE_ORDER, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DeployChoice, 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, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HandoffProposal, type HandoffResolution, 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, MAX_PACK_FINDINGS, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ManagedProviderId, type MissingService, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_FINDINGS_FILE, PACK_HANDOFF_HEADING, 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 PackFinding, type PackFindingResolution, type PackFindingSeverity, type PackFindingsParseResult, type PackHandoffRecord, type PackId, type PackPendingControl, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type ParsedPackFindings, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewAgentHighlight, type PreviewDetection, type PreviewErrorStage, type PreviewOrigin, type PreviewScriptCandidate, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SCRATCH_STARTER_PROMPTS, SCRATCH_ZIP_FREE_LIMIT_BYTES, SCRATCH_ZIP_WIFI_HINT_BYTES, 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 ScratchExportResult, type ScratchProjectState, type ScratchSavedVia, 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 StarterPrompt, 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, extractHandoffSection, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, installableAgentIds, internalToPublic, isGuardrailDisposition, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isManagedProviderId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, orderDeployChoices, parsePackFindings, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
package/dist/index.d.ts CHANGED
@@ -2123,9 +2123,50 @@ declare const USER_EVENTS: {
2123
2123
  * publican: no dicen nada a quien los lee. El CLI no lo consume; vive aqui
2124
2124
  * porque este fichero es la fuente del espejo que valida `shared-type-drift`. */
2125
2125
  readonly AUTO_RECHARGE_BLOCKED: "auto_recharge_blocked";
2126
+ readonly SCRATCH_SAVE_OFFER: "scratch_save_offer";
2127
+ readonly SCRATCH_PROJECT_STATE: "scratch_project_state";
2126
2128
  };
2127
2129
  type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
2128
2130
 
2131
+ /**
2132
+ * Agent-first onboarding (spec 2026-09-28-agent-first-onboarding-scratch-box-design).
2133
+ * ONE constant decides which deploy card is primary on mobile + web (D4) — flip
2134
+ * the array to make GitHub primary. A user whose GitHub is already linked sees
2135
+ * the repo card first.
2136
+ */
2137
+ type DeployChoice = 'scratch' | 'github';
2138
+ declare const DEPLOY_CHOICE_ORDER: readonly DeployChoice[];
2139
+ declare function orderDeployChoices(githubLinked: boolean): DeployChoice[];
2140
+ interface StarterPrompt {
2141
+ label: string;
2142
+ prompt: string;
2143
+ }
2144
+ /** Composer starters for an empty scratch Box session (D12/§4.3). */
2145
+ declare const SCRATCH_STARTER_PROMPTS: readonly StarterPrompt[];
2146
+ declare const SCRATCH_ZIP_FREE_LIMIT_BYTES = 104857600;
2147
+ declare const SCRATCH_ZIP_WIFI_HINT_BYTES = 209715200;
2148
+ type ScratchSavedVia = 'github' | 'zip';
2149
+ interface ScratchProjectState {
2150
+ projectId: string;
2151
+ sessionId: string | null;
2152
+ savedAt: string | null;
2153
+ savedVia: ScratchSavedVia | null;
2154
+ repoFullName: string | null;
2155
+ }
2156
+ type ScratchExportResult = {
2157
+ url: string;
2158
+ sizeBytes: number;
2159
+ expiresAt: string;
2160
+ } | {
2161
+ tooLarge: true;
2162
+ sizeBytes: number;
2163
+ limitBytes: number;
2164
+ topPaths: Array<{
2165
+ path: string;
2166
+ bytes: number;
2167
+ }>;
2168
+ };
2169
+
2129
2170
  /**
2130
2171
  * Prompt the CLI sends to the user's linked agent (Claude, Codex, …)
2131
2172
  * in a headless one-shot to detect how to start the project's dev
@@ -2138,4 +2179,4 @@ type UserEventName = (typeof USER_EVENTS)[keyof typeof USER_EVENTS];
2138
2179
  */
2139
2180
  declare const PREVIEW_DETECT_PROMPT: string;
2140
2181
 
2141
- 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, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HandoffProposal, type HandoffResolution, 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, MAX_PACK_FINDINGS, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ManagedProviderId, type MissingService, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_FINDINGS_FILE, PACK_HANDOFF_HEADING, 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 PackFinding, type PackFindingResolution, type PackFindingSeverity, type PackFindingsParseResult, type PackHandoffRecord, type PackId, type PackPendingControl, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type ParsedPackFindings, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewAgentHighlight, type PreviewDetection, type PreviewErrorStage, type PreviewOrigin, type PreviewScriptCandidate, 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, extractHandoffSection, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, installableAgentIds, internalToPublic, isGuardrailDisposition, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isManagedProviderId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, parsePackFindings, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
2182
+ 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, DEPLOY_CHOICE_ORDER, DEP_TO_INTEGRATION, DEV_API_BASE_URL, type DeployChoice, 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, HEARTBEAT_INTERVAL_MS_DEFAULT, HOUSE_AGENT_ID, HOUSE_AGENT_NAME, HOUSE_AGENT_PROVIDER, HOUSE_AGENT_SUBTITLE, HOUSE_AGENT_VENDOR, type HandoffProposal, type HandoffResolution, 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, MAX_PACK_FINDINGS, MODEL_CONTEXT_WINDOW, MODEL_PRICING, type ManagedProviderId, type MissingService, type ModelPricing, type NormalizedMessage, OBSERVER_BRIDGE_PORT, PACK_ACTION_COMMAND, PACK_FINDINGS_FILE, PACK_HANDOFF_HEADING, 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 PackFinding, type PackFindingResolution, type PackFindingSeverity, type PackFindingsParseResult, type PackHandoffRecord, type PackId, type PackPendingControl, type PackRunState, type PackRunStatus, type PackStageDef, type PackStageState, type PackStageStatus, type PackStartPayload, type ParsedPackFindings, type PendingReviewHunkEvent, type PendingReviewHunkLine, type PrCheck, type PrRef, type PrReviewEntry, type PrReviewVerdict, type PreviewAgentHighlight, type PreviewDetection, type PreviewErrorStage, type PreviewOrigin, type PreviewScriptCandidate, type PreviewState, type PreviewStatus, type PullRequestDetail, type PullRequestSummary, QA_PROMPT, REVIEWER_PROMPT, type RemoteCommand, type RepoStack, type RepoStackDetection, SCRATCH_STARTER_PROMPTS, SCRATCH_ZIP_FREE_LIMIT_BYTES, SCRATCH_ZIP_WIFI_HINT_BYTES, 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 ScratchExportResult, type ScratchProjectState, type ScratchSavedVia, 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 StarterPrompt, 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, extractHandoffSection, getAgent, getContextWindow, getEnabledAgents, getEnabledIntegrations, getIntegration, getIntegrationBranding, getIntegrationsByCategory, getPackDefinition, getPricing, getSkillDefinition, installableAgentIds, internalToPublic, isGuardrailDisposition, isKnownAgentId, isKnownIntegrationId, isKnownModel, isLinkedAgentId, isManagedProviderId, isNoopInstallSnippet, isPackId, isSkillId, normalizeAgentId, normalizeGuardrailPolicy, orderDeployChoices, parsePackFindings, publicToInternal, recommendForDeps, renderToLines, resolveApiBaseUrl, skillHasRail, toRemoteCommand, tryGetContextWindow };
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ __export(index_exports, {
27
27
  CODER_PROMPT: () => CODER_PROMPT,
28
28
  DEFAULT_API_BASE_URL: () => DEFAULT_API_BASE_URL,
29
29
  DEFAULT_GUARDRAIL_POLICY: () => DEFAULT_GUARDRAIL_POLICY,
30
+ DEPLOY_CHOICE_ORDER: () => DEPLOY_CHOICE_ORDER,
30
31
  DEP_TO_INTEGRATION: () => DEP_TO_INTEGRATION,
31
32
  DEV_API_BASE_URL: () => DEV_API_BASE_URL,
32
33
  GUARDRAIL_CATEGORIES: () => GUARDRAIL_CATEGORIES,
@@ -65,6 +66,9 @@ __export(index_exports, {
65
66
  PUBLIC_TO_INTERNAL: () => PUBLIC_TO_INTERNAL,
66
67
  QA_PROMPT: () => QA_PROMPT,
67
68
  REVIEWER_PROMPT: () => REVIEWER_PROMPT,
69
+ SCRATCH_STARTER_PROMPTS: () => SCRATCH_STARTER_PROMPTS,
70
+ SCRATCH_ZIP_FREE_LIMIT_BYTES: () => SCRATCH_ZIP_FREE_LIMIT_BYTES,
71
+ SCRATCH_ZIP_WIFI_HINT_BYTES: () => SCRATCH_ZIP_WIFI_HINT_BYTES,
68
72
  SKILL_REGISTRY: () => SKILL_REGISTRY,
69
73
  SPECIFIER_PROMPT: () => SPECIFIER_PROMPT,
70
74
  SQUAD_CONFIGURE_COMMAND: () => SQUAD_CONFIGURE_COMMAND,
@@ -107,6 +111,7 @@ __export(index_exports, {
107
111
  isSkillId: () => isSkillId,
108
112
  normalizeAgentId: () => normalizeAgentId,
109
113
  normalizeGuardrailPolicy: () => normalizeGuardrailPolicy,
114
+ orderDeployChoices: () => orderDeployChoices,
110
115
  parsePackFindings: () => parsePackFindings,
111
116
  publicToInternal: () => publicToInternal,
112
117
  recommendForDeps: () => recommendForDeps,
@@ -3189,9 +3194,26 @@ var USER_EVENTS = {
3189
3194
  * (2026-09-17). Los motivos internos —`duplicate_intent` y compañia— no se
3190
3195
  * publican: no dicen nada a quien los lee. El CLI no lo consume; vive aqui
3191
3196
  * porque este fichero es la fuente del espejo que valida `shared-type-drift`. */
3192
- AUTO_RECHARGE_BLOCKED: "auto_recharge_blocked"
3197
+ AUTO_RECHARGE_BLOCKED: "auto_recharge_blocked",
3198
+ SCRATCH_SAVE_OFFER: "scratch_save_offer",
3199
+ SCRATCH_PROJECT_STATE: "scratch_project_state"
3193
3200
  };
3194
3201
 
3202
+ // src/types/scratch.ts
3203
+ var DEPLOY_CHOICE_ORDER = ["scratch", "github"];
3204
+ function orderDeployChoices(githubLinked) {
3205
+ const order = [...DEPLOY_CHOICE_ORDER];
3206
+ return githubLinked ? order.reverse() : order;
3207
+ }
3208
+ var SCRATCH_STARTER_PROMPTS = [
3209
+ { label: "Landing page", prompt: "Build a simple, good-looking landing page for my business. Ask me the business name first, then build it and open the preview." },
3210
+ { label: "To-do app", prompt: "Build a small to-do app I can use in the browser, then open the preview." },
3211
+ { label: "Browser game", prompt: "Build a small game that runs in the browser, then open the preview." },
3212
+ { label: "What can you do?", prompt: "What could you build for me in this workspace? Give me three quick ideas." }
3213
+ ];
3214
+ var SCRATCH_ZIP_FREE_LIMIT_BYTES = 104857600;
3215
+ var SCRATCH_ZIP_WIFI_HINT_BYTES = 209715200;
3216
+
3195
3217
  // src/preview-prompts.ts
3196
3218
  var PREVIEW_DETECT_PROMPT = `
3197
3219
  Analyze the project in the current working directory and return how to start
@@ -3247,6 +3269,7 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
3247
3269
  CODER_PROMPT,
3248
3270
  DEFAULT_API_BASE_URL,
3249
3271
  DEFAULT_GUARDRAIL_POLICY,
3272
+ DEPLOY_CHOICE_ORDER,
3250
3273
  DEP_TO_INTEGRATION,
3251
3274
  DEV_API_BASE_URL,
3252
3275
  GUARDRAIL_CATEGORIES,
@@ -3285,6 +3308,9 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
3285
3308
  PUBLIC_TO_INTERNAL,
3286
3309
  QA_PROMPT,
3287
3310
  REVIEWER_PROMPT,
3311
+ SCRATCH_STARTER_PROMPTS,
3312
+ SCRATCH_ZIP_FREE_LIMIT_BYTES,
3313
+ SCRATCH_ZIP_WIFI_HINT_BYTES,
3288
3314
  SKILL_REGISTRY,
3289
3315
  SPECIFIER_PROMPT,
3290
3316
  SQUAD_CONFIGURE_COMMAND,
@@ -3327,6 +3353,7 @@ OUTPUT JSON ONLY. NO MARKDOWN. NO COMMENTARY.
3327
3353
  isSkillId,
3328
3354
  normalizeAgentId,
3329
3355
  normalizeGuardrailPolicy,
3356
+ orderDeployChoices,
3330
3357
  parsePackFindings,
3331
3358
  publicToInternal,
3332
3359
  recommendForDeps,