@standardagents/builder 0.33.1 → 0.35.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.
Files changed (43) hide show
  1. package/dist/built-in-routes.js +24 -11
  2. package/dist/built-in-routes.js.map +1 -1
  3. package/dist/client/{ApiKeysView-Bv8qoGeD.js → ApiKeysView-Dmq8ljTo.js} +1 -1
  4. package/dist/client/{CenteredContentView-BVJCN57C.js → CenteredContentView-DM7LkIKF.js} +1 -1
  5. package/dist/client/CompositionView-CCW3XCKA.js +32 -0
  6. package/dist/client/{ConfirmDialog.vue_vue_type_script_setup_true_lang-nQMuZPnp.js → ConfirmDialog.vue_vue_type_script_setup_true_lang-Cfo-jqEF.js} +1 -1
  7. package/dist/client/{CopyButton.vue_vue_type_script_setup_true_lang-DK7RbS4C.js → CopyButton.vue_vue_type_script_setup_true_lang-C5aCLIhv.js} +1 -1
  8. package/dist/client/{DataTable.vue_vue_type_script_setup_true_lang-Bxbhd23r.js → DataTable.vue_vue_type_script_setup_true_lang-deYaXdha.js} +1 -1
  9. package/dist/client/{JsonViewer-UqksKmyo.js → JsonViewer-BCNJYUIz.js} +1 -1
  10. package/dist/client/{LoginView-D2kAR5Tu.js → LoginView-BHA2IKoE.js} +1 -1
  11. package/dist/client/{MarketplaceView-SIE1hoDP.js → MarketplaceView-BaYCbQeY.js} +1 -1
  12. package/dist/client/{Modal.vue_vue_type_script_setup_true_lang-jYwcc2L_.js → Modal.vue_vue_type_script_setup_true_lang-B1DUndvK.js} +1 -1
  13. package/dist/client/{ModelModal.vue_vue_type_script_setup_true_lang-C3ZjIJtP.js → ModelModal.vue_vue_type_script_setup_true_lang-BWl1Kknp.js} +1 -1
  14. package/dist/client/{ModelsView-BpR8UKW2.js → ModelsView-CapeJwZE.js} +1 -1
  15. package/dist/client/{PromptEditView-DIavw2J0.js → PromptEditView-DhGDru6i.js} +1 -1
  16. package/dist/client/{PromptModal-Dg39Yq2j.js → PromptModal-Dy7ZLTrD.js} +1 -1
  17. package/dist/client/{PromptsView-Ba1UL0TN.js → PromptsView-DzyP3URp.js} +1 -1
  18. package/dist/client/{ProvidersView-cMELUEfj.js → ProvidersView-CEM2pkVl.js} +1 -1
  19. package/dist/client/{ThreadInspectorPane.vue_vue_type_script_setup_true_lang-DANY3J0L.js → ThreadInspectorPane.vue_vue_type_script_setup_true_lang-TEAPHb0Y.js} +5 -5
  20. package/dist/client/{ThreadsView-BldKUFh8.js → ThreadsView-DeQ1mZp6.js} +1 -1
  21. package/dist/client/{ToolsView-ug4WlvVe.js → ToolsView--_ivoaJq.js} +1 -1
  22. package/dist/client/{UsersView-Dcs0DUTh.js → UsersView-CHVGj7RB.js} +1 -1
  23. package/dist/client/{VariablesView-DyIy7q3P.js → VariablesView-Ey6egYHo.js} +1 -1
  24. package/dist/client/assets/{CompositionView-CWFus-Gl.css → CompositionView-eTR5Ewx2.css} +1 -1
  25. package/dist/client/assets/{ThreadInspectorPane-B2xKm6jM.css → ThreadInspectorPane-B9HsKfCN.css} +1 -1
  26. package/dist/client/assets/{index-DBe2myN2.css → index-CPBDhUF1.css} +1 -1
  27. package/dist/client/index-oR3Tbjo6.js +6 -0
  28. package/dist/client/index.html +2 -2
  29. package/dist/{index-CqhPhqAI.d.ts → index-D7luZUMB.d.ts} +3 -0
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +67 -25
  32. package/dist/index.js.map +1 -1
  33. package/dist/packing.js +2 -2
  34. package/dist/packing.js.map +1 -1
  35. package/dist/plugin.js +4 -2
  36. package/dist/plugin.js.map +1 -1
  37. package/dist/runtime.d.ts +20 -2
  38. package/dist/runtime.js +63 -23
  39. package/dist/runtime.js.map +1 -1
  40. package/dist/test.d.ts +1 -1
  41. package/package.json +5 -5
  42. package/dist/client/CompositionView-XRs1hJPR.js +0 -32
  43. package/dist/client/index-C8NBza63.js +0 -6
@@ -8261,22 +8261,29 @@ ${msg.content}` : `${imageDescriptions}${nonImageList}`;
8261
8261
  messageToAdd.attachments = providerAttachments;
8262
8262
  }
8263
8263
  }
8264
- if (includeReasoning) {
8264
+ const reasoningAuthoredByCurrentPrompt = !msg.prompt || msg.prompt === promptName;
8265
+ if (includeReasoning && reasoningAuthoredByCurrentPrompt) {
8265
8266
  const reasoningDetailsArray = [];
8266
- if (msg.reasoning_content) {
8267
- reasoningDetailsArray.push({
8268
- type: "reasoning.text",
8269
- text: msg.reasoning_content
8270
- });
8271
- }
8267
+ const seenDetailTexts = /* @__PURE__ */ new Set();
8272
8268
  if (msg.reasoning_details) {
8273
8269
  try {
8274
8270
  const parsedDetails = JSON.parse(msg.reasoning_details);
8275
- reasoningDetailsArray.push(...parsedDetails);
8271
+ for (const detail of parsedDetails) {
8272
+ reasoningDetailsArray.push(detail);
8273
+ if (typeof detail?.text === "string") {
8274
+ seenDetailTexts.add(detail.text);
8275
+ }
8276
+ }
8276
8277
  } catch (e) {
8277
8278
  console.error(`[FlowEngine] Failed to parse reasoning_details for message ${msg.id}:`, e);
8278
8279
  }
8279
8280
  }
8281
+ if (msg.reasoning_content && !seenDetailTexts.has(msg.reasoning_content)) {
8282
+ reasoningDetailsArray.push({
8283
+ type: "reasoning.text",
8284
+ text: msg.reasoning_content
8285
+ });
8286
+ }
8280
8287
  if (reasoningDetailsArray.length > 0) {
8281
8288
  messageToAdd.reasoning_details = reasoningDetailsArray;
8282
8289
  }
@@ -10321,6 +10328,7 @@ ${lines.join("\n\n")}`
10321
10328
  "silent",
10322
10329
  "parent_id",
10323
10330
  "depth",
10331
+ "prompt",
10324
10332
  "reasoning_content",
10325
10333
  "reasoning_details"
10326
10334
  ];
@@ -10355,6 +10363,7 @@ ${lines.join("\n\n")}`
10355
10363
  tool_status: row.tool_status,
10356
10364
  parent_id: row.parent_id,
10357
10365
  depth: row.depth,
10366
+ prompt: row.prompt,
10358
10367
  reasoning_content: row.reasoning_content,
10359
10368
  reasoning_details: row.reasoning_details
10360
10369
  }));
@@ -14147,10 +14156,10 @@ async function extractPromptIncludes(sourceCode) {
14147
14156
  let includeName = null;
14148
14157
  for (const prop of element.properties) {
14149
14158
  if (ts.isPropertyAssignment(prop) && ts.isIdentifier(prop.name)) {
14150
- if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && prop.initializer.text === "include") {
14159
+ if (prop.name.text === "type" && ts.isStringLiteral(prop.initializer) && (prop.initializer.text === "include" || prop.initializer.text === "prompt")) {
14151
14160
  hasIncludeType = true;
14152
14161
  }
14153
- if (prop.name.text === "name" && ts.isStringLiteral(prop.initializer)) {
14162
+ if ((prop.name.text === "prompt" || prop.name.text === "name" || prop.name.text === "id") && ts.isStringLiteral(prop.initializer)) {
14154
14163
  includeName = prop.initializer.text;
14155
14164
  }
14156
14165
  }
@@ -65740,6 +65749,7 @@ var agents_get_default = defineController2(async ({ agents, agentNames, registry
65740
65749
  type: definition.type || "ai_human",
65741
65750
  description: definition.description || null,
65742
65751
  icon: definition.icon || null,
65752
+ primary: definition.primary !== false,
65743
65753
  default_prompt: definition.sideA?.prompt || "",
65744
65754
  default_model: "",
65745
65755
  tools: [],
@@ -65772,6 +65782,7 @@ var agents_get_default = defineController2(async ({ agents, agentNames, registry
65772
65782
  name: definition.name,
65773
65783
  title: definition.title || definition.name,
65774
65784
  type: definition.type || "ai_human",
65785
+ primary: definition.primary !== false,
65775
65786
  default_prompt: definition.sideA?.prompt || "",
65776
65787
  default_model: "",
65777
65788
  tools: [],
@@ -66647,7 +66658,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
66647
66658
  });
66648
66659
 
66649
66660
  // src/version.ts
66650
- var BUILDER_VERSION = "0.33.1".length > 0 ? "0.33.1" : "dev";
66661
+ var BUILDER_VERSION = "0.35.0".length > 0 ? "0.35.0" : "dev";
66651
66662
 
66652
66663
  // src/api/diagnostics.get.ts
66653
66664
  init_LLMRequest();
@@ -67432,6 +67443,7 @@ var threads_default = defineController2(async ({ req, env: env2 }) => {
67432
67443
  return {
67433
67444
  id: thread.id,
67434
67445
  agent_id: thread.agent_name,
67446
+ origin_agent_id: thread.origin_agent_name ?? thread.agent_name,
67435
67447
  user_id: thread.user_id,
67436
67448
  tags: thread.tags || [],
67437
67449
  parent: thread.parent ?? null,
@@ -67847,6 +67859,7 @@ var name_get_default = defineController2(async ({ params, agents, prompts, promp
67847
67859
  max_session_turns: definition.maxSessionTurns || null,
67848
67860
  // Tool exposure
67849
67861
  expose_as_tool: definition.exposeAsTool || false,
67862
+ primary: definition.primary !== false,
67850
67863
  tool_description: definition.toolDescription || null,
67851
67864
  env: agentEnv,
67852
67865
  tenvs: agentEnv,