@indexnetwork/protocol 21.1.0-rc.493.1 → 22.0.0-rc.494.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 (60) 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 +2 -6
  17. package/dist/index.js +1 -3
  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/opportunities/opportunity.graph.d.ts +1 -1
  27. package/dist/opportunities/opportunity.tools.cards.d.ts +0 -13
  28. package/dist/opportunities/opportunity.tools.cards.js +0 -22
  29. package/dist/opportunities/opportunity.tools.js +4 -65
  30. package/dist/opportunities/opportunity.tools.port.d.ts +1 -1
  31. package/dist/questions/question.env.d.ts +5 -35
  32. package/dist/questions/question.env.js +5 -70
  33. package/dist/questions/question.input.d.ts +36 -145
  34. package/dist/questions/question.input.js +1 -56
  35. package/dist/questions/question.module.d.ts +10 -22
  36. package/dist/questions/question.module.js +9 -19
  37. package/dist/shared/agent/activity-projection.d.ts +2 -2
  38. package/dist/shared/agent/tool.factory.js +3 -15
  39. package/dist/shared/agent/tool.helpers.d.ts +0 -73
  40. package/dist/shared/agent/tool.registry.js +0 -2
  41. package/dist/shared/agent/tool.runtime.d.ts +1 -1
  42. package/dist/shared/agent/tool.runtime.js +3 -14
  43. package/dist/shared/observability/request-context.d.ts +0 -5
  44. package/package.json +1 -1
  45. package/dist/opportunities/opportunity.pending-questions.d.ts +0 -33
  46. package/dist/opportunities/opportunity.pending-questions.js +0 -42
  47. package/dist/questions/question.agent.d.ts +0 -28
  48. package/dist/questions/question.agent.js +0 -136
  49. package/dist/questions/question.ask.tool.d.ts +0 -12
  50. package/dist/questions/question.ask.tool.js +0 -297
  51. package/dist/questions/question.persistence.port.d.ts +0 -84
  52. package/dist/questions/question.persistence.port.js +0 -1
  53. package/dist/questions/question.presets.d.ts +0 -21
  54. package/dist/questions/question.presets.js +0 -388
  55. package/dist/questions/question.tools.d.ts +0 -15
  56. package/dist/questions/question.tools.js +0 -216
  57. package/dist/questions/question.tools.port.d.ts +0 -12
  58. package/dist/questions/question.tools.port.js +0 -1
  59. package/dist/shared/schemas/pending-question.schema.d.ts +0 -28
  60. 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 {};