@usenaive-sdk/blueprints 0.7.0 → 0.8.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.ts CHANGED
@@ -43,8 +43,9 @@ interface Template {
43
43
  /**
44
44
  * Every blueprint and the templates it carries. `agency` defaults to `blank` — a working agency
45
45
  * with no specialism is a safe thing to get by accident. `media` has NO default on purpose: its
46
- * two crews spend money in different ways, so defaulting one of them is a bill the operator did
47
- * not choose. `web` carries one crew today, so `publisher` is its default for the reason `blank` is
46
+ * three crews spend money in different ways — a long-form piece renders a minute-plus of video
47
+ * where a clip only cuts one — so defaulting any of them is a bill the operator did not choose.
48
+ * `web` carries one crew today, so `publisher` is its default for the reason `blank` is
48
49
  * `agency`'s: the only thing you can get is the thing you meant.
49
50
  */
50
51
  declare const BLUEPRINTS: Record<string, {
package/dist/index.js CHANGED
@@ -429,7 +429,7 @@ var BROWSER_TOOL_ACTIONS = [
429
429
  "save_context"
430
430
  ];
431
431
  var BrowserOptionsSchema = z4.object({
432
- allowed_domains: z4.array(z4.string().min(1)).min(1),
432
+ allowed_domains: z4.array(z4.string().min(1)).min(1).default(["*"]),
433
433
  timeout_minutes: z4.number().int().min(1).max(BROWSER_MAX_TIMEOUT_MINUTES).default(15),
434
434
  region: z4.enum(BROWSER_REGIONS).default("us-west"),
435
435
  keep_alive: z4.boolean().default(false),
@@ -743,7 +743,8 @@ var MessageSchema = z7.object({
743
743
  tool_call_id: z7.string().optional()
744
744
  });
745
745
  var ToolImageSchema = z7.object({
746
- data: z7.string().min(1).max(5e6).describe("The image's bytes, base64."),
746
+ file_id: idOf("fil"),
747
+ url: z7.string().url().describe("A short-lived signed read for the file's bytes."),
747
748
  media_type: z7.enum(["image/png", "image/jpeg", "image/gif", "image/webp"])
748
749
  });
749
750
  var ToolResultSchema = z7.object({
@@ -2652,6 +2653,10 @@ var ProxyCallTraceSchema = z27.object({
2652
2653
  expires_at: Timestamp
2653
2654
  });
2654
2655
 
2656
+ // ../core/src/file-url.ts
2657
+ var encoder2 = new TextEncoder();
2658
+ var SESSION_FILE_URL_TTL_MS = 15 * 6e4;
2659
+
2655
2660
  // src/define.ts
2656
2661
  import { z as z30 } from "zod";
2657
2662
 
@@ -2800,8 +2805,12 @@ async function patchRoster(client, decl, roster, existing, ids, dryRun, lines) {
2800
2805
  var BLUEPRINTS = {
2801
2806
  /** Clients, pipeline, deliverables, calendar. */
2802
2807
  agency: { templates: ["blank", "seo-geo"], default: "blank" },
2803
- /** Post queue, accounts, calendar, analytics. */
2804
- media: { templates: ["faceless", "clipping"] },
2808
+ /**
2809
+ * Post queue, accounts, calendar, analytics. The wire ids are frozen: `install.template` is a
2810
+ * stored string on every provisioned org, so the display names moved ("Naive Short Form v1",
2811
+ * "Naive Long Form v1", "Naive Clipping v1") and these did not.
2812
+ */
2813
+ media: { templates: ["faceless", "longform", "clipping"] },
2805
2814
  /** Pages, posts, forms, analytics — a published site with a crew behind it (`usenaive/web-blueprint`). */
2806
2815
  web: { templates: ["publisher"], default: "publisher" }
2807
2816
  };