@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.mjs CHANGED
@@ -3069,9 +3069,26 @@ var USER_EVENTS = {
3069
3069
  * (2026-09-17). Los motivos internos —`duplicate_intent` y compañia— no se
3070
3070
  * publican: no dicen nada a quien los lee. El CLI no lo consume; vive aqui
3071
3071
  * porque este fichero es la fuente del espejo que valida `shared-type-drift`. */
3072
- AUTO_RECHARGE_BLOCKED: "auto_recharge_blocked"
3072
+ AUTO_RECHARGE_BLOCKED: "auto_recharge_blocked",
3073
+ SCRATCH_SAVE_OFFER: "scratch_save_offer",
3074
+ SCRATCH_PROJECT_STATE: "scratch_project_state"
3073
3075
  };
3074
3076
 
3077
+ // src/types/scratch.ts
3078
+ var DEPLOY_CHOICE_ORDER = ["scratch", "github"];
3079
+ function orderDeployChoices(githubLinked) {
3080
+ const order = [...DEPLOY_CHOICE_ORDER];
3081
+ return githubLinked ? order.reverse() : order;
3082
+ }
3083
+ var SCRATCH_STARTER_PROMPTS = [
3084
+ { 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." },
3085
+ { label: "To-do app", prompt: "Build a small to-do app I can use in the browser, then open the preview." },
3086
+ { label: "Browser game", prompt: "Build a small game that runs in the browser, then open the preview." },
3087
+ { label: "What can you do?", prompt: "What could you build for me in this workspace? Give me three quick ideas." }
3088
+ ];
3089
+ var SCRATCH_ZIP_FREE_LIMIT_BYTES = 104857600;
3090
+ var SCRATCH_ZIP_WIFI_HINT_BYTES = 209715200;
3091
+
3075
3092
  // src/preview-prompts.ts
3076
3093
  var PREVIEW_DETECT_PROMPT = `
3077
3094
  Analyze the project in the current working directory and return how to start
@@ -3126,6 +3143,7 @@ export {
3126
3143
  CODER_PROMPT,
3127
3144
  DEFAULT_API_BASE_URL,
3128
3145
  DEFAULT_GUARDRAIL_POLICY,
3146
+ DEPLOY_CHOICE_ORDER,
3129
3147
  DEP_TO_INTEGRATION,
3130
3148
  DEV_API_BASE_URL,
3131
3149
  GUARDRAIL_CATEGORIES,
@@ -3164,6 +3182,9 @@ export {
3164
3182
  PUBLIC_TO_INTERNAL,
3165
3183
  QA_PROMPT,
3166
3184
  REVIEWER_PROMPT,
3185
+ SCRATCH_STARTER_PROMPTS,
3186
+ SCRATCH_ZIP_FREE_LIMIT_BYTES,
3187
+ SCRATCH_ZIP_WIFI_HINT_BYTES,
3167
3188
  SKILL_REGISTRY,
3168
3189
  SPECIFIER_PROMPT,
3169
3190
  SQUAD_CONFIGURE_COMMAND,
@@ -3206,6 +3227,7 @@ export {
3206
3227
  isSkillId,
3207
3228
  normalizeAgentId,
3208
3229
  normalizeGuardrailPolicy,
3230
+ orderDeployChoices,
3209
3231
  parsePackFindings,
3210
3232
  publicToInternal,
3211
3233
  recommendForDeps,