@indexnetwork/protocol 4.3.2 → 4.3.4-rc.309.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/dist/chat/chat.agent.d.ts.map +1 -1
- package/dist/chat/chat.agent.js +11 -1
- package/dist/chat/chat.agent.js.map +1 -1
- package/dist/chat/chat.graph.d.ts +16 -0
- package/dist/chat/chat.graph.d.ts.map +1 -1
- package/dist/chat/chat.graph.js +5 -2
- package/dist/chat/chat.graph.js.map +1 -1
- package/dist/chat/chat.prompt.d.ts.map +1 -1
- package/dist/chat/chat.prompt.js +20 -13
- package/dist/chat/chat.prompt.js.map +1 -1
- package/dist/chat/chat.state.d.ts +6 -3
- package/dist/chat/chat.state.d.ts.map +1 -1
- package/dist/chat/chat.state.js +12 -3
- package/dist/chat/chat.state.js.map +1 -1
- package/dist/chat/chat.streamer.d.ts +5 -0
- package/dist/chat/chat.streamer.d.ts.map +1 -1
- package/dist/chat/chat.streamer.js +13 -4
- package/dist/chat/chat.streamer.js.map +1 -1
- package/dist/enrichment/enrichment.tools.d.ts.map +1 -1
- package/dist/enrichment/enrichment.tools.js +16 -19
- package/dist/enrichment/enrichment.tools.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/intent/intent.graph.d.ts +10 -0
- package/dist/intent/intent.graph.d.ts.map +1 -1
- package/dist/intent/intent.graph.js +6 -2
- package/dist/intent/intent.graph.js.map +1 -1
- package/dist/intent/intent.state.d.ts +5 -1
- package/dist/intent/intent.state.d.ts.map +1 -1
- package/dist/intent/intent.state.js +11 -1
- package/dist/intent/intent.state.js.map +1 -1
- package/dist/intent/intent.tools.d.ts.map +1 -1
- package/dist/intent/intent.tools.js +63 -39
- package/dist/intent/intent.tools.js.map +1 -1
- package/dist/mcp/mcp.server.d.ts +45 -18
- package/dist/mcp/mcp.server.d.ts.map +1 -1
- package/dist/mcp/mcp.server.js +86 -45
- package/dist/mcp/mcp.server.js.map +1 -1
- package/dist/negotiation/negotiation.tools.d.ts.map +1 -1
- package/dist/negotiation/negotiation.tools.js +11 -7
- package/dist/negotiation/negotiation.tools.js.map +1 -1
- package/dist/network/network.graph.js +2 -2
- package/dist/network/network.graph.js.map +1 -1
- package/dist/network/network.tools.d.ts.map +1 -1
- package/dist/network/network.tools.js +50 -38
- package/dist/network/network.tools.js.map +1 -1
- package/dist/opportunity/opportunity.discover.d.ts +5 -0
- package/dist/opportunity/opportunity.discover.d.ts.map +1 -1
- package/dist/opportunity/opportunity.discover.js +3 -0
- package/dist/opportunity/opportunity.discover.js.map +1 -1
- package/dist/opportunity/opportunity.graph.d.ts +6 -6
- package/dist/opportunity/opportunity.graph.js +1 -1
- package/dist/opportunity/opportunity.graph.js.map +1 -1
- package/dist/opportunity/opportunity.pending-questions.d.ts +3 -0
- package/dist/opportunity/opportunity.pending-questions.d.ts.map +1 -1
- package/dist/opportunity/opportunity.pending-questions.js +7 -2
- package/dist/opportunity/opportunity.pending-questions.js.map +1 -1
- package/dist/opportunity/opportunity.state.d.ts +1 -1
- package/dist/opportunity/opportunity.tools.d.ts.map +1 -1
- package/dist/opportunity/opportunity.tools.js +46 -36
- package/dist/opportunity/opportunity.tools.js.map +1 -1
- package/dist/premise/premise.graph.d.ts +13 -1
- package/dist/premise/premise.graph.d.ts.map +1 -1
- package/dist/premise/premise.graph.js +11 -6
- package/dist/premise/premise.graph.js.map +1 -1
- package/dist/premise/premise.state.d.ts +5 -0
- package/dist/premise/premise.state.d.ts.map +1 -1
- package/dist/premise/premise.state.js +11 -0
- package/dist/premise/premise.state.js.map +1 -1
- package/dist/premise/premise.tools.d.ts.map +1 -1
- package/dist/premise/premise.tools.js +5 -0
- package/dist/premise/premise.tools.js.map +1 -1
- package/dist/questioner/questioner.tools.d.ts +1 -1
- package/dist/questioner/questioner.tools.d.ts.map +1 -1
- package/dist/questioner/questioner.tools.js +24 -13
- package/dist/questioner/questioner.tools.js.map +1 -1
- package/dist/questioner/questioner.types.d.ts +5 -0
- package/dist/questioner/questioner.types.d.ts.map +1 -1
- package/dist/questioner/questioner.types.js.map +1 -1
- package/dist/shared/agent/tool.factory.d.ts.map +1 -1
- package/dist/shared/agent/tool.factory.js +25 -16
- package/dist/shared/agent/tool.factory.js.map +1 -1
- package/dist/shared/agent/tool.helpers.d.ts +17 -18
- package/dist/shared/agent/tool.helpers.d.ts.map +1 -1
- package/dist/shared/agent/tool.helpers.js +10 -11
- package/dist/shared/agent/tool.helpers.js.map +1 -1
- package/dist/shared/agent/tool.registry.js +1 -1
- package/dist/shared/agent/tool.registry.js.map +1 -1
- package/dist/shared/agent/tool.scope.d.ts +39 -0
- package/dist/shared/agent/tool.scope.d.ts.map +1 -0
- package/dist/shared/agent/tool.scope.js +41 -0
- package/dist/shared/agent/tool.scope.js.map +1 -0
- package/dist/shared/assignment/network-assignment.policy.d.ts +8 -5
- package/dist/shared/assignment/network-assignment.policy.d.ts.map +1 -1
- package/dist/shared/assignment/network-assignment.policy.js +11 -6
- package/dist/shared/assignment/network-assignment.policy.js.map +1 -1
- package/dist/shared/hyde/hyde.graph.d.ts +6 -6
- package/dist/shared/hyde/hyde.state.d.ts +2 -2
- package/dist/shared/interfaces/auth.interface.d.ts +3 -3
- package/dist/shared/interfaces/auth.interface.js.map +1 -1
- package/dist/shared/interfaces/database.interface.d.ts +15 -3
- package/dist/shared/interfaces/database.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/database.interface.js.map +1 -1
- package/dist/shared/interfaces/discovery-run.interface.d.ts +1 -1
- package/dist/shared/interfaces/discovery-run.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/discovery-run.interface.js.map +1 -1
- package/dist/shared/interfaces/enrichment-run.interface.d.ts +1 -1
- package/dist/shared/interfaces/enrichment-run.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/enrichment-run.interface.js.map +1 -1
- package/dist/shared/interfaces/queue.interface.d.ts +8 -2
- package/dist/shared/interfaces/queue.interface.d.ts.map +1 -1
- package/dist/shared/interfaces/queue.interface.js.map +1 -1
- package/dist/shared/schemas/network-assignment.schema.d.ts +2 -2
- package/dist/shared/schemas/pending-question.schema.d.ts +5 -0
- package/dist/shared/schemas/pending-question.schema.d.ts.map +1 -1
- package/dist/shared/schemas/pending-question.schema.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enrichment-run.interface.d.ts","sourceRoot":"/","sources":["shared/interfaces/enrichment-run.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAiBpE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;AAI9F,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,qBAAqB,CAAC;AAE1B,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,4BAA4B;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,MAAM,MAAM,kBAAkB,GAAG,6BAA6B,GAA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":"enrichment-run.interface.js","sourceRoot":"/","sources":["shared/interfaces/enrichment-run.interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ResolvedToolContext } from \"../agent/tool.helpers.js\";\n\n// ═══════════════════════════════════════════════════════════════════════════════\n// Enrichment run persistence + queue\n//\n// Mirrors the discovery-run contract for the enrichment pipeline (profile/context\n// preview + update). See discovery-run.interface.ts for the shared lifecycle rules.\n//\n// Port contract (host application implements `EnrichmentRunStore` + `EnrichmentRunQueue`):\n// • Status lifecycle queued → running → (succeeded | failed | cancelled); `mark*`\n// transitions are idempotent.\n// • `get` / `requestCancel` are owner-scoped and return `null` for missing or\n// non-owned runs.\n// • `listActive` returns queued/running runs (empty array, never null).\n// • Legacy `*_user_profile` operations are read-compat only — never written by new code.\n// ═══════════════════════════════════════════════════════════════════════════════\n\nexport type EnrichmentRunStatus = \"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\";\n// Canonical run operations are the *_user_context names (IND-371). The legacy\n// *_user_profile values are retained so historical run rows persisted before the\n// rename still type-check; nothing new writes them.\nexport type EnrichmentRunOperation =\n | \"preview_user_context\"\n | \"update_user_context\"\n | \"preview_user_profile\"\n | \"update_user_profile\";\n\nexport interface PreviewUserEnrichmentRunInput {\n name?: string;\n location?: string;\n bioOrDescription?: string;\n edgeosProfileText?: string;\n allowPublicLookup?: boolean;\n linkedinUrl?: string;\n githubUrl?: string;\n twitterUrl?: string;\n websites?: string[];\n}\n\nexport interface UpdateUserEnrichmentRunInput {\n profileId?: string;\n action?: string;\n details?: string;\n socials?: Record<string, string>;\n}\n\nexport type EnrichmentRunInput = PreviewUserEnrichmentRunInput | UpdateUserEnrichmentRunInput;\n\nexport interface EnrichmentRunRecord {\n id: string;\n userId: string;\n agentId?: string | null;\n operation: EnrichmentRunOperation;\n status: EnrichmentRunStatus;\n input: EnrichmentRunInput;\n context: Pick<ResolvedToolContext,\n \"userId\" |\n \"userName\" |\n \"userEmail\" |\n \"
|
|
1
|
+
{"version":3,"file":"enrichment-run.interface.js","sourceRoot":"/","sources":["shared/interfaces/enrichment-run.interface.ts"],"names":[],"mappings":"","sourcesContent":["import type { ResolvedToolContext } from \"../agent/tool.helpers.js\";\n\n// ═══════════════════════════════════════════════════════════════════════════════\n// Enrichment run persistence + queue\n//\n// Mirrors the discovery-run contract for the enrichment pipeline (profile/context\n// preview + update). See discovery-run.interface.ts for the shared lifecycle rules.\n//\n// Port contract (host application implements `EnrichmentRunStore` + `EnrichmentRunQueue`):\n// • Status lifecycle queued → running → (succeeded | failed | cancelled); `mark*`\n// transitions are idempotent.\n// • `get` / `requestCancel` are owner-scoped and return `null` for missing or\n// non-owned runs.\n// • `listActive` returns queued/running runs (empty array, never null).\n// • Legacy `*_user_profile` operations are read-compat only — never written by new code.\n// ═══════════════════════════════════════════════════════════════════════════════\n\nexport type EnrichmentRunStatus = \"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\";\n// Canonical run operations are the *_user_context names (IND-371). The legacy\n// *_user_profile values are retained so historical run rows persisted before the\n// rename still type-check; nothing new writes them.\nexport type EnrichmentRunOperation =\n | \"preview_user_context\"\n | \"update_user_context\"\n | \"preview_user_profile\"\n | \"update_user_profile\";\n\nexport interface PreviewUserEnrichmentRunInput {\n name?: string;\n location?: string;\n bioOrDescription?: string;\n edgeosProfileText?: string;\n allowPublicLookup?: boolean;\n linkedinUrl?: string;\n githubUrl?: string;\n twitterUrl?: string;\n websites?: string[];\n}\n\nexport interface UpdateUserEnrichmentRunInput {\n profileId?: string;\n action?: string;\n details?: string;\n socials?: Record<string, string>;\n}\n\nexport type EnrichmentRunInput = PreviewUserEnrichmentRunInput | UpdateUserEnrichmentRunInput;\n\nexport interface EnrichmentRunRecord {\n id: string;\n userId: string;\n agentId?: string | null;\n operation: EnrichmentRunOperation;\n status: EnrichmentRunStatus;\n input: EnrichmentRunInput;\n context: Pick<ResolvedToolContext,\n \"userId\" |\n \"userName\" |\n \"userEmail\" |\n \"scopeType\" |\n \"scopeId\" |\n \"indexName\" |\n \"sessionId\" |\n \"agentId\" |\n \"clientSurface\"\n >;\n progress?: Record<string, unknown> | null;\n result?: unknown;\n error?: string | null;\n cancelRequestedAt?: Date | null;\n createdAt: Date;\n startedAt?: Date | null;\n completedAt?: Date | null;\n expiresAt?: Date | null;\n}\n\nexport interface CreateEnrichmentRunInput {\n userId: string;\n agentId?: string | null;\n operation: EnrichmentRunOperation;\n input: EnrichmentRunInput;\n context: EnrichmentRunRecord[\"context\"];\n expiresAt?: Date;\n}\n\nexport interface EnrichmentRunStore {\n create(input: CreateEnrichmentRunInput): Promise<EnrichmentRunRecord>;\n get(runId: string, userId: string): Promise<EnrichmentRunRecord | null>;\n markRunning(runId: string): Promise<EnrichmentRunRecord | null>;\n updateProgress(runId: string, progress: Record<string, unknown>): Promise<void>;\n markSucceeded(runId: string, result: unknown): Promise<void>;\n markFailed(runId: string, error: string): Promise<void>;\n requestCancel(runId: string, userId: string): Promise<EnrichmentRunRecord | null>;\n markCancelled(runId: string, reason?: string): Promise<void>;\n isCancelRequested(runId: string): Promise<boolean>;\n listActive(userId: string, limit?: number): Promise<EnrichmentRunRecord[]>;\n}\n\nexport interface EnrichmentRunQueue {\n enqueue(runId: string): Promise<{ jobId?: string | number } | void>;\n cancel(runId: string): Promise<boolean>;\n}\n"]}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Queue types for protocol layer.
|
|
3
3
|
*/
|
|
4
|
+
import type { ToolScopeType } from "../agent/tool.scope.js";
|
|
5
|
+
export interface IntentGraphQueueScope {
|
|
6
|
+
scopeType?: ToolScopeType;
|
|
7
|
+
scopeId?: string;
|
|
8
|
+
/** @deprecated networkScopeId is legacy; use `scopeType: 'network'` + `scopeId`. */
|
|
9
|
+
networkScopeId?: string;
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* Operations the Intent Graph needs to enqueue follow-up work (e.g. HyDE generation/deletion).
|
|
6
13
|
* Implemented by the intent queue; protocol layer depends only on this interface.
|
|
@@ -9,8 +16,7 @@ export interface IntentGraphQueue {
|
|
|
9
16
|
addGenerateHydeJob(data: {
|
|
10
17
|
intentId: string;
|
|
11
18
|
userId: string;
|
|
12
|
-
|
|
13
|
-
}): Promise<unknown>;
|
|
19
|
+
} & IntentGraphQueueScope): Promise<unknown>;
|
|
14
20
|
addDeleteHydeJob(data: {
|
|
15
21
|
intentId: string;
|
|
16
22
|
}): Promise<unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.interface.d.ts","sourceRoot":"/","sources":["shared/interfaces/queue.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"queue.interface.d.ts","sourceRoot":"/","sources":["shared/interfaces/queue.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,qBAAqB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACzG,gBAAgB,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queue.interface.js","sourceRoot":"/","sources":["shared/interfaces/queue.interface.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * Queue types for protocol layer.\n */\n\n/**\n * Operations the Intent Graph needs to enqueue follow-up work (e.g. HyDE generation/deletion).\n * Implemented by the intent queue; protocol layer depends only on this interface.\n */\nexport interface IntentGraphQueue {\n addGenerateHydeJob(data: { intentId: string; userId: string
|
|
1
|
+
{"version":3,"file":"queue.interface.js","sourceRoot":"/","sources":["shared/interfaces/queue.interface.ts"],"names":[],"mappings":"AAAA;;GAEG","sourcesContent":["/**\n * Queue types for protocol layer.\n */\n\nimport type { ToolScopeType } from \"../agent/tool.scope.js\";\n\nexport interface IntentGraphQueueScope {\n scopeType?: ToolScopeType;\n scopeId?: string;\n /** @deprecated networkScopeId is legacy; use `scopeType: 'network'` + `scopeId`. */\n networkScopeId?: string;\n}\n\n/**\n * Operations the Intent Graph needs to enqueue follow-up work (e.g. HyDE generation/deletion).\n * Implemented by the intent queue; protocol layer depends only on this interface.\n */\nexport interface IntentGraphQueue {\n addGenerateHydeJob(data: { intentId: string; userId: string } & IntentGraphQueueScope): Promise<unknown>;\n addDeleteHydeJob(data: { intentId: string }): Promise<unknown>;\n}\n"]}
|
|
@@ -53,7 +53,7 @@ export declare const NetworkAssignmentMetadataSchema: z.ZodObject<{
|
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
54
|
resourceType: "premise" | "intent";
|
|
55
55
|
mode: "automatic" | "manual_override";
|
|
56
|
-
scope: "
|
|
56
|
+
scope: "network" | "global";
|
|
57
57
|
policy: "unified-threshold-v1";
|
|
58
58
|
threshold: number;
|
|
59
59
|
promptPresence: "none" | "index" | "member" | "both";
|
|
@@ -70,7 +70,7 @@ export declare const NetworkAssignmentMetadataSchema: z.ZodObject<{
|
|
|
70
70
|
}, {
|
|
71
71
|
resourceType: "premise" | "intent";
|
|
72
72
|
mode: "automatic" | "manual_override";
|
|
73
|
-
scope: "
|
|
73
|
+
scope: "network" | "global";
|
|
74
74
|
policy: "unified-threshold-v1";
|
|
75
75
|
threshold: number;
|
|
76
76
|
promptPresence: "none" | "index" | "member" | "both";
|
|
@@ -18,5 +18,10 @@ export interface PendingQuestionSummary {
|
|
|
18
18
|
sourceId: string;
|
|
19
19
|
createdAt: string;
|
|
20
20
|
expiresAt?: string;
|
|
21
|
+
/** Internal actor projection used for defense-in-depth scoped filtering; tool responses strip it before returning. */
|
|
22
|
+
actors?: Array<{
|
|
23
|
+
userId: string;
|
|
24
|
+
networkId?: string;
|
|
25
|
+
}>;
|
|
21
26
|
}
|
|
22
27
|
//# sourceMappingURL=pending-question.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pending-question.schema.d.ts","sourceRoot":"/","sources":["shared/schemas/pending-question.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"pending-question.schema.d.ts","sourceRoot":"/","sources":["shared/schemas/pending-question.schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sHAAsH;IACtH,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pending-question.schema.js","sourceRoot":"/","sources":["shared/schemas/pending-question.schema.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Lightweight projection of a persisted question, suitable for embedding\n * in tool results. Omits internal fields (actors, answer, status) that\n * are not needed by the chat agent or MCP client.\n */\nimport type { QuestionMode } from \"./question.schema.js\";\n\nexport interface PendingQuestionSummary {\n id: string;\n title: string;\n prompt: string;\n options: Array<{ label: string; description: string }>;\n multiSelect: boolean;\n mode: QuestionMode;\n sourceType: string;\n sourceId: string;\n createdAt: string;\n expiresAt?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pending-question.schema.js","sourceRoot":"/","sources":["shared/schemas/pending-question.schema.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Lightweight projection of a persisted question, suitable for embedding\n * in tool results. Omits internal fields (actors, answer, status) that\n * are not needed by the chat agent or MCP client.\n */\nimport type { QuestionMode } from \"./question.schema.js\";\n\nexport interface PendingQuestionSummary {\n id: string;\n title: string;\n prompt: string;\n options: Array<{ label: string; description: string }>;\n multiSelect: boolean;\n mode: QuestionMode;\n sourceType: string;\n sourceId: string;\n createdAt: string;\n expiresAt?: string;\n /** Internal actor projection used for defense-in-depth scoped filtering; tool responses strip it before returning. */\n actors?: Array<{ userId: string; networkId?: string }>;\n}\n"]}
|