@voicethere/agent 0.31.2 → 0.33.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 (33) hide show
  1. package/dist/llm/agent/config.d.ts +7 -0
  2. package/dist/llm/agent/config.d.ts.map +1 -1
  3. package/dist/llm/agent/config.js +17 -2
  4. package/dist/llm/agent/config.js.map +1 -1
  5. package/dist/llm/agent/create-llm-agent.d.ts.map +1 -1
  6. package/dist/llm/agent/create-llm-agent.js +2 -1
  7. package/dist/llm/agent/create-llm-agent.js.map +1 -1
  8. package/dist/templates/flow-agent/agent.js +8 -1
  9. package/dist/templates/llm-agent/agent.js +17 -3
  10. package/dist/templates/llm-board/agent.js +17 -3
  11. package/dist/templates/llm-docs-rag/agent.js +17 -3
  12. package/dist/templates/llm-language-tutor/agent.js +17 -3
  13. package/dist/templates/llm-mcp-service/agent.js +17 -3
  14. package/dist/templates/llm-store-support/agent.js +60550 -0
  15. package/dist/templates/llm-support-sticky-user/agent.js +17 -3
  16. package/dist/templates/registry.d.ts.map +1 -1
  17. package/dist/templates/registry.js +30 -0
  18. package/dist/templates/registry.js.map +1 -1
  19. package/eject/llm/loop.ts +5 -3
  20. package/package.json +1 -1
  21. package/schema/voicethere.llm.schema.json +5 -0
  22. package/templates/README.md +1 -0
  23. package/templates/llm-store-support/README.md +37 -0
  24. package/templates/llm-store-support/agent.ts +35 -0
  25. package/templates/llm-store-support/knowledge/products.md +25 -0
  26. package/templates/llm-store-support/knowledge/returns.md +17 -0
  27. package/templates/llm-store-support/knowledge/shipping.md +17 -0
  28. package/templates/llm-store-support/knowledge/sizing.md +17 -0
  29. package/templates/llm-store-support/knowledge/store.md +13 -0
  30. package/templates/llm-store-support/knowledge/warranty.md +13 -0
  31. package/templates/llm-store-support/md.d.ts +4 -0
  32. package/templates/llm-store-support/prompt.md +9 -0
  33. package/templates/llm-store-support/voicethere.llm.json +50 -0
@@ -34680,9 +34680,16 @@ function validateLlmAgentConfig(input) {
34680
34680
  if (root.bargeIn !== void 0) {
34681
34681
  const b = c.object(root.bargeIn, "bargeIn");
34682
34682
  if (b) {
34683
- c.unknownKeys(b, ["mode"], "bargeIn");
34683
+ c.unknownKeys(b, ["mode", "typedMessages"], "bargeIn");
34684
34684
  if (b.mode === "project" || b.mode === "on" || b.mode === "off") {
34685
34685
  config2.bargeIn = { mode: b.mode };
34686
+ if (b.typedMessages !== void 0) {
34687
+ if (typeof b.typedMessages === "boolean") {
34688
+ config2.bargeIn.typedMessages = b.typedMessages;
34689
+ } else {
34690
+ c.err("bargeIn.typedMessages", "must be a boolean");
34691
+ }
34692
+ }
34686
34693
  } else {
34687
34694
  c.err("bargeIn.mode", 'must be one of "project", "on", "off"');
34688
34695
  }
@@ -34962,7 +34969,14 @@ var LLM_AGENT_CONFIG_JSON_SCHEMA = {
34962
34969
  type: "object",
34963
34970
  additionalProperties: false,
34964
34971
  required: ["mode"],
34965
- properties: { mode: { enum: ["project", "on", "off"] } },
34972
+ properties: {
34973
+ mode: { enum: ["project", "on", "off"] },
34974
+ typedMessages: {
34975
+ type: "boolean",
34976
+ default: true,
34977
+ description: "A typed chat message cuts off the agent's earlier speech that is still queued or playing. Set false to let it finish. Mode off disables this too."
34978
+ }
34979
+ },
34966
34980
  default: { mode: "project" }
34967
34981
  },
34968
34982
  speechDuringNonInterruptible: {
@@ -36823,7 +36837,7 @@ ${t.inputText}` : t.inputText, {
36823
36837
  return;
36824
36838
  }
36825
36839
  const active = s.active;
36826
- if (source === "chat" && policy === "cancel" && config2.bargeIn?.mode !== "off") {
36840
+ if (source === "chat" && policy === "cancel" && config2.bargeIn?.mode !== "off" && config2.bargeIn?.typedMessages !== false) {
36827
36841
  flushSpeechForChat(s, active?.turnId);
36828
36842
  }
36829
36843
  if (active) {
@@ -34680,9 +34680,16 @@ function validateLlmAgentConfig(input) {
34680
34680
  if (root.bargeIn !== void 0) {
34681
34681
  const b = c.object(root.bargeIn, "bargeIn");
34682
34682
  if (b) {
34683
- c.unknownKeys(b, ["mode"], "bargeIn");
34683
+ c.unknownKeys(b, ["mode", "typedMessages"], "bargeIn");
34684
34684
  if (b.mode === "project" || b.mode === "on" || b.mode === "off") {
34685
34685
  config2.bargeIn = { mode: b.mode };
34686
+ if (b.typedMessages !== void 0) {
34687
+ if (typeof b.typedMessages === "boolean") {
34688
+ config2.bargeIn.typedMessages = b.typedMessages;
34689
+ } else {
34690
+ c.err("bargeIn.typedMessages", "must be a boolean");
34691
+ }
34692
+ }
34686
34693
  } else {
34687
34694
  c.err("bargeIn.mode", 'must be one of "project", "on", "off"');
34688
34695
  }
@@ -34962,7 +34969,14 @@ var LLM_AGENT_CONFIG_JSON_SCHEMA = {
34962
34969
  type: "object",
34963
34970
  additionalProperties: false,
34964
34971
  required: ["mode"],
34965
- properties: { mode: { enum: ["project", "on", "off"] } },
34972
+ properties: {
34973
+ mode: { enum: ["project", "on", "off"] },
34974
+ typedMessages: {
34975
+ type: "boolean",
34976
+ default: true,
34977
+ description: "A typed chat message cuts off the agent's earlier speech that is still queued or playing. Set false to let it finish. Mode off disables this too."
34978
+ }
34979
+ },
34966
34980
  default: { mode: "project" }
34967
34981
  },
34968
34982
  speechDuringNonInterruptible: {
@@ -36823,7 +36837,7 @@ ${t.inputText}` : t.inputText, {
36823
36837
  return;
36824
36838
  }
36825
36839
  const active = s.active;
36826
- if (source === "chat" && policy === "cancel" && config2.bargeIn?.mode !== "off") {
36840
+ if (source === "chat" && policy === "cancel" && config2.bargeIn?.mode !== "off" && config2.bargeIn?.typedMessages !== false) {
36827
36841
  flushSpeechForChat(s, active?.turnId);
36828
36842
  }
36829
36843
  if (active) {
@@ -34680,9 +34680,16 @@ function validateLlmAgentConfig(input) {
34680
34680
  if (root.bargeIn !== void 0) {
34681
34681
  const b = c.object(root.bargeIn, "bargeIn");
34682
34682
  if (b) {
34683
- c.unknownKeys(b, ["mode"], "bargeIn");
34683
+ c.unknownKeys(b, ["mode", "typedMessages"], "bargeIn");
34684
34684
  if (b.mode === "project" || b.mode === "on" || b.mode === "off") {
34685
34685
  config2.bargeIn = { mode: b.mode };
34686
+ if (b.typedMessages !== void 0) {
34687
+ if (typeof b.typedMessages === "boolean") {
34688
+ config2.bargeIn.typedMessages = b.typedMessages;
34689
+ } else {
34690
+ c.err("bargeIn.typedMessages", "must be a boolean");
34691
+ }
34692
+ }
34686
34693
  } else {
34687
34694
  c.err("bargeIn.mode", 'must be one of "project", "on", "off"');
34688
34695
  }
@@ -34962,7 +34969,14 @@ var LLM_AGENT_CONFIG_JSON_SCHEMA = {
34962
34969
  type: "object",
34963
34970
  additionalProperties: false,
34964
34971
  required: ["mode"],
34965
- properties: { mode: { enum: ["project", "on", "off"] } },
34972
+ properties: {
34973
+ mode: { enum: ["project", "on", "off"] },
34974
+ typedMessages: {
34975
+ type: "boolean",
34976
+ default: true,
34977
+ description: "A typed chat message cuts off the agent's earlier speech that is still queued or playing. Set false to let it finish. Mode off disables this too."
34978
+ }
34979
+ },
34966
34980
  default: { mode: "project" }
34967
34981
  },
34968
34982
  speechDuringNonInterruptible: {
@@ -36823,7 +36837,7 @@ ${t.inputText}` : t.inputText, {
36823
36837
  return;
36824
36838
  }
36825
36839
  const active = s.active;
36826
- if (source === "chat" && policy === "cancel" && config2.bargeIn?.mode !== "off") {
36840
+ if (source === "chat" && policy === "cancel" && config2.bargeIn?.mode !== "off" && config2.bargeIn?.typedMessages !== false) {
36827
36841
  flushSpeechForChat(s, active?.turnId);
36828
36842
  }
36829
36843
  if (active) {