@indexnetwork/protocol 21.1.0-rc.493.1 → 22.0.0-rc.495.1

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 (68) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/chat/chat-streaming.types.d.ts +2 -23
  3. package/dist/chat/chat-streaming.types.js +0 -3
  4. package/dist/chat/chat.agent.d.ts +0 -5
  5. package/dist/chat/chat.streamer.js +3 -6
  6. package/dist/chat/negotiator.persona.d.ts +1 -1
  7. package/dist/chat/negotiator.persona.js +0 -7
  8. package/dist/chat/negotiator.prompt.js +10 -12
  9. package/dist/chat/onboarding.persona.d.ts +1 -1
  10. package/dist/chat/onboarding.persona.js +0 -1
  11. package/dist/chat/onboarding.prompt.js +2 -2
  12. package/dist/chat/signal.persona.d.ts +1 -1
  13. package/dist/chat/signal.persona.js +1 -2
  14. package/dist/chat/signal.prompt.d.ts +6 -5
  15. package/dist/chat/signal.prompt.js +17 -37
  16. package/dist/index.d.ts +3 -7
  17. package/dist/index.js +2 -4
  18. package/dist/intents/graph/intent.graph.d.ts +1 -2
  19. package/dist/intents/graph/intent.graph.execute.js +0 -15
  20. package/dist/intents/graph/intent.graph.js +1 -2
  21. package/dist/intents/graph/intent.graph.shared.d.ts +0 -2
  22. package/dist/intents/intent.module.d.ts +0 -3
  23. package/dist/intents/intent.module.js +2 -2
  24. package/dist/mcp/mcp.authorization-policy.d.ts +2 -2
  25. package/dist/mcp/mcp.authorization-policy.js +0 -24
  26. package/dist/negotiations/negotiation.agent.js +10 -1
  27. package/dist/negotiations/negotiation.graph.turn.d.ts +2 -0
  28. package/dist/negotiations/negotiation.graph.turn.js +9 -0
  29. package/dist/negotiations/negotiation.module.d.ts +1 -1
  30. package/dist/negotiations/negotiation.module.js +1 -1
  31. package/dist/negotiations/negotiation.question-safety.d.ts +0 -1
  32. package/dist/negotiations/negotiation.question-safety.js +0 -1
  33. package/dist/negotiations/negotiation.tools.js +83 -31
  34. package/dist/opportunities/opportunity.graph.d.ts +1 -1
  35. package/dist/opportunities/opportunity.tools.cards.d.ts +0 -13
  36. package/dist/opportunities/opportunity.tools.cards.js +0 -22
  37. package/dist/opportunities/opportunity.tools.js +4 -65
  38. package/dist/opportunities/opportunity.tools.port.d.ts +1 -1
  39. package/dist/questions/question.env.d.ts +5 -35
  40. package/dist/questions/question.env.js +5 -70
  41. package/dist/questions/question.input.d.ts +36 -145
  42. package/dist/questions/question.input.js +1 -56
  43. package/dist/questions/question.module.d.ts +10 -22
  44. package/dist/questions/question.module.js +9 -19
  45. package/dist/shared/agent/activity-projection.d.ts +2 -2
  46. package/dist/shared/agent/tool.factory.js +3 -15
  47. package/dist/shared/agent/tool.helpers.d.ts +0 -73
  48. package/dist/shared/agent/tool.registry.js +0 -2
  49. package/dist/shared/agent/tool.runtime.d.ts +1 -1
  50. package/dist/shared/agent/tool.runtime.js +3 -14
  51. package/dist/shared/observability/request-context.d.ts +0 -5
  52. package/package.json +1 -1
  53. package/dist/opportunities/opportunity.pending-questions.d.ts +0 -33
  54. package/dist/opportunities/opportunity.pending-questions.js +0 -42
  55. package/dist/questions/question.agent.d.ts +0 -28
  56. package/dist/questions/question.agent.js +0 -136
  57. package/dist/questions/question.ask.tool.d.ts +0 -12
  58. package/dist/questions/question.ask.tool.js +0 -297
  59. package/dist/questions/question.persistence.port.d.ts +0 -84
  60. package/dist/questions/question.persistence.port.js +0 -1
  61. package/dist/questions/question.presets.d.ts +0 -21
  62. package/dist/questions/question.presets.js +0 -388
  63. package/dist/questions/question.tools.d.ts +0 -15
  64. package/dist/questions/question.tools.js +0 -216
  65. package/dist/questions/question.tools.port.d.ts +0 -12
  66. package/dist/questions/question.tools.port.js +0 -1
  67. package/dist/shared/schemas/pending-question.schema.d.ts +0 -28
  68. package/dist/shared/schemas/pending-question.schema.js +0 -1
@@ -1,28 +0,0 @@
1
- /**
2
- * Lightweight projection of a persisted question, suitable for embedding
3
- * in tool results. Omits internal fields (actors, answer, status) that
4
- * are not needed by the chat agent or MCP client.
5
- */
6
- import type { QuestionMode, QuestionPurpose } from "../../questions/question.schema.js";
7
- export interface PendingQuestionSummary {
8
- id: string;
9
- title: string;
10
- prompt: string;
11
- options: Array<{
12
- label: string;
13
- description: string;
14
- }>;
15
- multiSelect: boolean;
16
- mode: QuestionMode;
17
- /** Internal generation purpose used for exact server-side filtering. */
18
- purpose?: QuestionPurpose;
19
- sourceType: string;
20
- sourceId: string;
21
- createdAt: string;
22
- expiresAt?: string;
23
- /** Internal actor projection used for defense-in-depth scoped filtering; tool responses strip it before returning. */
24
- actors?: Array<{
25
- userId: string;
26
- networkId?: string;
27
- }>;
28
- }
@@ -1 +0,0 @@
1
- export {};