@indexnetwork/protocol 20.0.0-rc.484.1 → 21.0.0-rc.486.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.
- package/CHANGELOG.md +48 -0
- package/IMPLEMENTATION.md +1 -1
- package/dist/agents/index.d.ts +0 -1
- package/dist/agents/index.js +0 -1
- package/dist/chat/chat.agent.d.ts +0 -6
- package/dist/chat/chat.agent.js +0 -94
- package/dist/chat/chat.persona.d.ts +1 -2
- package/dist/chat/chat.prompt.js +1 -1
- package/dist/chat/chat.prompt.modules.d.ts +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/mcp/elicitation.builder.d.ts +1 -1
- package/dist/mcp/elicitation.dispatcher.d.ts +1 -1
- package/dist/questions/index.d.ts +37 -8
- package/dist/questions/index.js +38 -2
- package/dist/questions/{application/question.agent.d.ts → question.agent.d.ts} +2 -2
- package/dist/questions/{application/question.agent.js → question.agent.js} +6 -9
- package/dist/questions/{application/question.ask.tool.d.ts → question.ask.tool.d.ts} +2 -2
- package/dist/questions/{application/question.ask.tool.js → question.ask.tool.js} +4 -7
- package/dist/questions/{application/question.env.d.ts → question.env.d.ts} +1 -4
- package/dist/questions/{application/question.env.js → question.env.js} +1 -4
- package/dist/questions/{application/question.input.d.ts → question.input.d.ts} +4 -7
- package/dist/questions/{application/question.input.js → question.input.js} +1 -1
- package/dist/questions/{ports/question.persistence.port.d.ts → question.persistence.port.d.ts} +2 -4
- package/dist/questions/{application/question.presets.d.ts → question.presets.d.ts} +2 -5
- package/dist/questions/{application/question.presets.js → question.presets.js} +12 -2
- package/dist/questions/{domain/question.schema.d.ts → question.schema.d.ts} +43 -47
- package/dist/questions/{domain/question.schema.js → question.schema.js} +32 -32
- package/dist/questions/{application/question.tools.d.ts → question.tools.d.ts} +2 -2
- package/dist/questions/{application/question.tools.js → question.tools.js} +4 -7
- package/dist/questions/{ports/question.tools.port.d.ts → question.tools.port.d.ts} +2 -4
- package/dist/shared/agent/tool.factory.js +0 -1
- package/dist/shared/agent/tool.helpers.d.ts +3 -11
- package/dist/shared/agent/tool.helpers.js +1 -2
- package/dist/shared/schemas/pending-question.schema.d.ts +1 -1
- package/dist/shared/schemas/underspecification.schema.d.ts +1 -1
- package/dist/shared/schemas/underspecification.schema.js +1 -1
- package/package.json +1 -1
- package/dist/chat/reporter.action.contracts.d.ts +0 -36
- package/dist/chat/reporter.action.contracts.js +0 -1
- package/dist/chat/reporter.action.tools.d.ts +0 -17
- package/dist/chat/reporter.action.tools.js +0 -145
- package/dist/chat/reporter.persona.d.ts +0 -31
- package/dist/chat/reporter.persona.js +0 -207
- package/dist/chat/reporter.prompt.d.ts +0 -24
- package/dist/chat/reporter.prompt.js +0 -149
- package/dist/questions/application/index.d.ts +0 -39
- package/dist/questions/application/index.js +0 -41
- package/dist/questions/application/question.qud.d.ts +0 -12
- package/dist/questions/application/question.qud.js +0 -16
- package/dist/questions/domain/index.d.ts +0 -24
- package/dist/questions/domain/index.js +0 -24
- package/dist/questions/ports/index.d.ts +0 -27
- package/dist/questions/ports/index.js +0 -26
- /package/dist/questions/{ports/question.persistence.port.js → question.persistence.port.js} +0 -0
- /package/dist/questions/{ports/question.tools.port.js → question.tools.port.js} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* questions/application/question.qud — Questions Under Discussion taxonomy.
|
|
3
|
-
*
|
|
4
|
-
* Shared QUD taxonomy contract for structured question-generation prompts.
|
|
5
|
-
* Every Questioner mode uses this block because the structured output schema
|
|
6
|
-
* requires the internal metadata field; intent and discovery are the primary
|
|
7
|
-
* consumers of non-null classifications.
|
|
8
|
-
*
|
|
9
|
-
* IND-547: canonical home — previously questioner/questioner.qud.ts.
|
|
10
|
-
* Legacy path is a thin compatibility shim pointing here.
|
|
11
|
-
*/
|
|
12
|
-
export const QUD_UNDERSPECIFICATION_RULES = `QUD underspecification taxonomy. For every structured question, emit a required \`underspecificationType\` field. Use exactly one category only when the question repairs that kind of underspecification:
|
|
13
|
-
- missing_constituent: an absent core participant, entity, or outcome (who/what).
|
|
14
|
-
- missing_constraint: the core target exists, but a ranking boundary is missing (where/when/how/how much).
|
|
15
|
-
- open_alternative_set: an unresolved choice among materially different interpretations or scopes.
|
|
16
|
-
Use null for adjacent, reflective, emergent, or any other question that does not repair underspecification. Strategy and underspecification type are orthogonal: \`strategy\` describes the conversational move; \`underspecificationType\` describes the QUD defect repaired. Never infer one mechanically from the other.`;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* questions/domain — pure question value types and schemas.
|
|
3
|
-
*
|
|
4
|
-
* Contains Zod schemas and TypeScript types that define the questions
|
|
5
|
-
* capability's domain language. No LLM calls, no agents, no cross-capability
|
|
6
|
-
* imports beyond zod.
|
|
7
|
-
*
|
|
8
|
-
* ## What lives here
|
|
9
|
-
*
|
|
10
|
-
* - **question.schema** — Question, QuestionWithStrategy, QuestionDetection,
|
|
11
|
-
* QuestionMode, QuestionPurpose, NegotiationQuestionCandidate,
|
|
12
|
-
* NegotiationQuestionProvenance, pool/push/recovery sub-schemas, and all
|
|
13
|
-
* derived TypeScript types.
|
|
14
|
-
*
|
|
15
|
-
* ## What does NOT live here
|
|
16
|
-
*
|
|
17
|
-
* - QuestionerInput/QuestionerContext: they reference capability facades
|
|
18
|
-
* (negotiation question-safety) and belong in questions/application.
|
|
19
|
-
* - QuestionerAgent and tool factories: application layer.
|
|
20
|
-
* - Persistence/generator ports: questions/ports.
|
|
21
|
-
*
|
|
22
|
-
* IND-547: canonical home for question domain types.
|
|
23
|
-
*/
|
|
24
|
-
export * from "./question.schema.js";
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* questions/domain — pure question value types and schemas.
|
|
3
|
-
*
|
|
4
|
-
* Contains Zod schemas and TypeScript types that define the questions
|
|
5
|
-
* capability's domain language. No LLM calls, no agents, no cross-capability
|
|
6
|
-
* imports beyond zod.
|
|
7
|
-
*
|
|
8
|
-
* ## What lives here
|
|
9
|
-
*
|
|
10
|
-
* - **question.schema** — Question, QuestionWithStrategy, QuestionDetection,
|
|
11
|
-
* QuestionMode, QuestionPurpose, NegotiationQuestionCandidate,
|
|
12
|
-
* NegotiationQuestionProvenance, pool/push/recovery sub-schemas, and all
|
|
13
|
-
* derived TypeScript types.
|
|
14
|
-
*
|
|
15
|
-
* ## What does NOT live here
|
|
16
|
-
*
|
|
17
|
-
* - QuestionerInput/QuestionerContext: they reference capability facades
|
|
18
|
-
* (negotiation question-safety) and belong in questions/application.
|
|
19
|
-
* - QuestionerAgent and tool factories: application layer.
|
|
20
|
-
* - Persistence/generator ports: questions/ports.
|
|
21
|
-
*
|
|
22
|
-
* IND-547: canonical home for question domain types.
|
|
23
|
-
*/
|
|
24
|
-
export * from "./question.schema.js";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* questions/ports — injected dependency contracts for the questions capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the narrow port types that the questions module declares as explicit
|
|
5
|
-
* injected boundaries. Consumers import these to wire host implementations
|
|
6
|
-
* without depending on the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Port groups
|
|
9
|
-
*
|
|
10
|
-
* ### Persistence ports
|
|
11
|
-
* - QuestionerDatabase — question CRUD (persist, findPending, answer, dismiss).
|
|
12
|
-
* - PersistableQuestion, PersistedQuestion, QuestionFilters — persistence shapes.
|
|
13
|
-
*
|
|
14
|
-
* ### Chat host port
|
|
15
|
-
* - ChatQuestionsHost — blocking inline ask_user_question host bridge.
|
|
16
|
-
* - ChatQuestionAnswerOutcome — resolution shape for awaited answers.
|
|
17
|
-
*
|
|
18
|
-
* ### Generator port (deprecated)
|
|
19
|
-
*
|
|
20
|
-
* ### Tool host ports
|
|
21
|
-
* - QuestionerToolDeps — host capabilities for async question delivery tools.
|
|
22
|
-
* - AskUserQuestionToolDeps — host capabilities for the chat ask_user_question tool.
|
|
23
|
-
*
|
|
24
|
-
* IND-547: canonical ports surface for the questions capability.
|
|
25
|
-
*/
|
|
26
|
-
export type { PersistableQuestion, PersistedQuestion, QuestionFilters, ChatQuestionAnswerOutcome, ChatQuestionsHost, QuestionerDatabase, } from "./question.persistence.port.js";
|
|
27
|
-
export type { QuestionerToolDeps, AskUserQuestionToolDeps } from "./question.tools.port.js";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* questions/ports — injected dependency contracts for the questions capability.
|
|
3
|
-
*
|
|
4
|
-
* Re-exports the narrow port types that the questions module declares as explicit
|
|
5
|
-
* injected boundaries. Consumers import these to wire host implementations
|
|
6
|
-
* without depending on the application layer.
|
|
7
|
-
*
|
|
8
|
-
* ## Port groups
|
|
9
|
-
*
|
|
10
|
-
* ### Persistence ports
|
|
11
|
-
* - QuestionerDatabase — question CRUD (persist, findPending, answer, dismiss).
|
|
12
|
-
* - PersistableQuestion, PersistedQuestion, QuestionFilters — persistence shapes.
|
|
13
|
-
*
|
|
14
|
-
* ### Chat host port
|
|
15
|
-
* - ChatQuestionsHost — blocking inline ask_user_question host bridge.
|
|
16
|
-
* - ChatQuestionAnswerOutcome — resolution shape for awaited answers.
|
|
17
|
-
*
|
|
18
|
-
* ### Generator port (deprecated)
|
|
19
|
-
*
|
|
20
|
-
* ### Tool host ports
|
|
21
|
-
* - QuestionerToolDeps — host capabilities for async question delivery tools.
|
|
22
|
-
* - AskUserQuestionToolDeps — host capabilities for the chat ask_user_question tool.
|
|
23
|
-
*
|
|
24
|
-
* IND-547: canonical ports surface for the questions capability.
|
|
25
|
-
*/
|
|
26
|
-
export {};
|
|
File without changes
|
|
File without changes
|