@xpert-ai/contracts 3.19.0 → 3.20.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 (39) hide show
  1. package/index.cjs.js +393 -4
  2. package/index.esm.js +341 -6
  3. package/package.json +5 -2
  4. package/src/agent/ai-model.d.ts +1 -0
  5. package/src/agent/token.d.ts +4 -0
  6. package/src/ai/agent-output-delivery.model.d.ts +31 -0
  7. package/src/ai/agent-runtime.model.d.ts +53 -0
  8. package/src/ai/ai-model.model.d.ts +3 -0
  9. package/src/ai/assistant-binding.model.d.ts +3 -0
  10. package/src/ai/assistant-configuration.model.d.ts +31 -0
  11. package/src/ai/bosi.model.d.ts +73 -0
  12. package/src/ai/chat-message-envelope.model.d.ts +55 -0
  13. package/src/ai/chat-message.model.d.ts +4 -0
  14. package/src/ai/chat.model.d.ts +10 -0
  15. package/src/ai/execution-activity.model.d.ts +547 -0
  16. package/src/ai/index.d.ts +8 -0
  17. package/src/ai/mcp-capability.model.d.ts +5 -1
  18. package/src/ai/membership.model.d.ts +5 -0
  19. package/src/ai/model-execution.model.d.ts +265 -0
  20. package/src/ai/model-gateway.model.d.ts +15 -3
  21. package/src/ai/model-usage.model.d.ts +19 -0
  22. package/src/ai/project-task-graph.model.d.ts +12 -0
  23. package/src/ai/project-task-runtime.model.d.ts +1106 -0
  24. package/src/ai/project-task-type.model.d.ts +13 -0
  25. package/src/ai/prompt-workflow.model.d.ts +4 -0
  26. package/src/ai/realtime-voice.model.d.ts +90 -0
  27. package/src/ai/realtime-voice.transport.d.ts +54 -0
  28. package/src/ai/resource-card.d.ts +2 -0
  29. package/src/ai/thread-activity.model.d.ts +14 -0
  30. package/src/ai/xpert-agent-execution.model.d.ts +4 -0
  31. package/src/ai/xpert-project.model.d.ts +21 -0
  32. package/src/ai/xpert-template.model.d.ts +23 -5
  33. package/src/ai/xpert-tool-mcp.model.d.ts +6 -0
  34. package/src/ai/xpert.model.d.ts +7 -2
  35. package/src/i18n.model.d.ts +1 -0
  36. package/src/index.d.ts +3 -0
  37. package/src/types.d.ts +4 -0
  38. package/src/view-extension/model.d.ts +22 -1
  39. package/src/view-extension/workbench.d.ts +6 -2
package/index.cjs.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  var ShortUniqueId = require('short-unique-id');
4
4
  var chatkitTypes = require('@xpert-ai/chatkit-types');
5
+ var v3 = require('zod/v3');
5
6
 
6
7
  function resolveI18nText(value) {
7
8
  var language = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "en-US";
@@ -138,6 +139,20 @@ function letterStartSUID(start) {
138
139
  return start + uuid();
139
140
  }
140
141
 
142
+ /** Portable presentation tokens. Clients render their own trusted icon components. */ var PROJECT_TASK_ICON_NAMES = [
143
+ "FileText",
144
+ "FileScan",
145
+ "FileSearch",
146
+ "ListChecks",
147
+ "ListTree",
148
+ "ShieldCheck",
149
+ "FilePenLine",
150
+ "Workflow",
151
+ "Images",
152
+ "FolderInput",
153
+ "FileOutput"
154
+ ];
155
+
141
156
  /** A summary's incoming dependencies constrain its children without making them wait for the summary itself. */ function _array_like_to_array$d(arr, len) {
142
157
  if (len == null || len > arr.length) len = arr.length;
143
158
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -2364,6 +2379,16 @@ function isRunnableThreadGoalStatus(status) {
2364
2379
  ChatGatewayEvent["Agent"] = "agent";
2365
2380
  })(exports.ChatGatewayEvent || (exports.ChatGatewayEvent = {}));
2366
2381
 
2382
+ /** Persistence boundary: unknown versions stay hidden until this host understands their policy. */ function chatMessagePresentation(message) {
2383
+ var envelope = message.messageEnvelope;
2384
+ if (envelope == null) return "message";
2385
+ if (typeof envelope === "object" && !Array.isArray(envelope) && "version" in envelope && envelope.version === 1 && "presentation" in envelope && (envelope.presentation === "message" || envelope.presentation === "event")) return envelope.presentation;
2386
+ return "runtime";
2387
+ }
2388
+ function isRuntimeChatMessage(message) {
2389
+ return chatMessagePresentation(message) === "runtime";
2390
+ }
2391
+
2367
2392
  // Type guards
2368
2393
  /**
2369
2394
  * @deprecated use content in message
@@ -2584,6 +2609,9 @@ exports.ModelGatewayUsageChannelEnum = void 0;
2584
2609
  (function(ModelGatewayUsageChannelEnum) {
2585
2610
  ModelGatewayUsageChannelEnum["Xpert"] = "xpert";
2586
2611
  ModelGatewayUsageChannelEnum["ExternalApi"] = "external_api";
2612
+ /** Managed agent invocation usage, regardless of where the runtime executes. */ ModelGatewayUsageChannelEnum["AgentRuntime"] = "agent_runtime";
2613
+ /** User-launched CLI session usage, separate from managed invocations. */ ModelGatewayUsageChannelEnum["Cli"] = "cli";
2614
+ /** CLI child launched by an Assistant shell execution. */ ModelGatewayUsageChannelEnum["Shell"] = "shell";
2587
2615
  })(exports.ModelGatewayUsageChannelEnum || (exports.ModelGatewayUsageChannelEnum = {}));
2588
2616
  var MODEL_GATEWAY_REQUESTS_PER_MINUTE_SETTING = "modelGatewayRequestsPerMinute";
2589
2617
  var DEFAULT_MODEL_GATEWAY_REQUESTS_PER_MINUTE = 60;
@@ -6105,7 +6133,7 @@ function getContentChunkSeparator(previous, nextText, joinHint) {
6105
6133
  return "";
6106
6134
  }
6107
6135
  function stringifySingle(content) {
6108
- if (chatkitTypes.isFileActivityContent(content)) return "";
6136
+ if (chatkitTypes.isFileActivityContent(content) || chatkitTypes.isResourceCardContent(content)) return "";
6109
6137
  if (content.type === "text") {
6110
6138
  return content.text;
6111
6139
  }
@@ -6195,7 +6223,7 @@ function resolveMessageAppendContext(options) {
6195
6223
  var resolved = resolveMessageAppendContext(_object_spread_props(_object_spread$1({}, options), {
6196
6224
  previous: previous
6197
6225
  }));
6198
- if (!chatkitTypes.isFileActivityContent(options.incoming)) previous = resolved.appendContext;
6226
+ if (!chatkitTypes.isFileActivityContent(options.incoming) && !chatkitTypes.isResourceCardContent(options.incoming)) previous = resolved.appendContext;
6199
6227
  return resolved;
6200
6228
  },
6201
6229
  reset: function reset() {
@@ -6216,6 +6244,11 @@ function resolveMessageAppendContext(options) {
6216
6244
  * - Applies context-aware merge rules for text/reasoning/component chunks.
6217
6245
  * - `previous` must be supplied by caller when same-stream join inference is needed.
6218
6246
  */ function appendMessageContent(aiMessage, incoming, context) {
6247
+ var card = chatkitTypes.parseResourceCardContent(incoming);
6248
+ if (card) {
6249
+ aiMessage.content = chatkitTypes.upsertResourceCardContent(ensureArrayContent(aiMessage.content), card);
6250
+ return;
6251
+ }
6219
6252
  var receipt = chatkitTypes.parseFileActivityContent(incoming);
6220
6253
  if (receipt) {
6221
6254
  aiMessage.content = chatkitTypes.upsertFileActivityContent(ensureArrayContent(aiMessage.content), receipt);
@@ -6388,7 +6421,7 @@ function stringifyMessageContent(content) {
6388
6421
  var result = "";
6389
6422
  var previousContext = null;
6390
6423
  content.forEach(function(item) {
6391
- if (chatkitTypes.isFileActivityContent(item)) return;
6424
+ if (chatkitTypes.isFileActivityContent(item) || chatkitTypes.isResourceCardContent(item)) return;
6392
6425
  var itemContext = inferMessageAppendContext(item);
6393
6426
  var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
6394
6427
  result = appendMessagePlainText(result, stringifySingle(item), _object_spread$1({}, itemContext, joinHint ? {
@@ -6744,6 +6777,224 @@ var KNOWLEDGE_AUTOMATIC_TAG_TEXT_BUDGET = 12000;
6744
6777
 
6745
6778
  var DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER = "basic";
6746
6779
 
6780
+ /** Exhaustive attribution shared by queries, ledger export and UI. */ function modelExecutionEntry(source) {
6781
+ switch(source.type){
6782
+ case "cli_session":
6783
+ return "cli";
6784
+ case "agent_invocation":
6785
+ return "agent_runtime";
6786
+ case "shell_execution":
6787
+ return "shell";
6788
+ }
6789
+ }
6790
+ function modelExecutionSourceId(source) {
6791
+ switch(source.type){
6792
+ case "cli_session":
6793
+ return source.cliSessionId;
6794
+ case "agent_invocation":
6795
+ return source.invocationId;
6796
+ case "shell_execution":
6797
+ return source.executionId;
6798
+ }
6799
+ }
6800
+ var MODEL_EXECUTION_POLICY_SETTING = "modelExecutionPolicy";
6801
+ /** Explicit model policy source in a Runtime binding; independent of the calling Agent identity. */ var agentRuntimeModelSourceSchema = v3.z.object({
6802
+ type: v3.z.literal("assistant"),
6803
+ xpertId: v3.z.string().uuid()
6804
+ }).strict();
6805
+
6806
+ /**
6807
+ * Running means accepted; actual work start requires an observation.
6808
+ * Only succeeded, failed and cancelled are terminal. Unknown must be reconciled without replay.
6809
+ */ var agentInvocationStatusSchema = v3.z.enum([
6810
+ "queued",
6811
+ "running",
6812
+ "waiting",
6813
+ "cancelling",
6814
+ "succeeded",
6815
+ "failed",
6816
+ "cancelled",
6817
+ "unknown"
6818
+ ]);
6819
+ var agentInvocationTerminalStatusSchema = v3.z.enum([
6820
+ "succeeded",
6821
+ "failed",
6822
+ "cancelled"
6823
+ ]);
6824
+ /** Activity and reported progress are separate from business acceptance. No invented percentage. */ var agentRuntimeProgressSchema = v3.z.object({
6825
+ source: v3.z.enum([
6826
+ "executor",
6827
+ "host"
6828
+ ]),
6829
+ observedAt: v3.z.string().datetime({
6830
+ offset: true
6831
+ }),
6832
+ startedAt: v3.z.string().datetime({
6833
+ offset: true
6834
+ }).optional(),
6835
+ phase: v3.z.string().trim().min(1).max(200).optional(),
6836
+ summary: v3.z.string().max(2000).optional(),
6837
+ steps: v3.z.object({
6838
+ completed: v3.z.number().int().nonnegative(),
6839
+ total: v3.z.number().int().positive()
6840
+ }).strict().refine(function(steps) {
6841
+ return steps.completed <= steps.total;
6842
+ }).optional()
6843
+ }).strict();
6844
+
6845
+ var AGENT_OUTPUT_MAX_PATHS = 128;
6846
+ /** Relative file selections only. A declaration does not grant filesystem access. */ var agentResultPathSchema = v3.z.string().min(1).max(1024).refine(function(path) {
6847
+ return !path.startsWith("/") && !/^[a-zA-Z]:/.test(path) && !path.includes("\\") && !/[\x00-\x1f]/.test(path) && path.split("/").every(function(part) {
6848
+ return part !== "" && part !== "." && part !== "..";
6849
+ });
6850
+ }, "Expected a relative file path");
6851
+ /** An export selection is a list of exact files, never a filesystem search. */ var deliveryPathsSchema = v3.z.array(agentResultPathSchema.refine(function(path) {
6852
+ return !/[*?\[\]{}]/.test(path);
6853
+ }, "Delivery paths must be exact relative file paths, without wildcards. Omit paths to use the executor's declared deliverables.")).min(1).max(AGENT_OUTPUT_MAX_PATHS).optional().describe("Exact file paths relative to the task working directory. No wildcards/globs or directories. If filenames are determined during execution, omit paths and require the executor to declare each deliverable as a file result item.");
6854
+ /** Omission means no export. Optional paths restrict the adapter's explicitly declared deliverables. */ var agentOutputDeliverySchema = v3.z.discriminatedUnion("mode", [
6855
+ v3.z.object({
6856
+ mode: v3.z.literal("none")
6857
+ }).strict(),
6858
+ v3.z.object({
6859
+ mode: v3.z.literal("files"),
6860
+ paths: deliveryPathsSchema
6861
+ }).strict(),
6862
+ v3.z.object({
6863
+ mode: v3.z.literal("archive"),
6864
+ paths: deliveryPathsSchema
6865
+ }).strict()
6866
+ ]);
6867
+
6868
+ var projectTaskSpecificationDigestSchema = v3.z.string().regex(/^sha256:[a-f0-9]{64}$/);
6869
+ /** Only requirements belong here; status, progress, assignment and generic revision do not. */ var projectTaskSpecificationSchema = v3.z.object({
6870
+ version: v3.z.literal(1),
6871
+ title: v3.z.string().trim().min(1).max(500),
6872
+ description: v3.z.string().max(32000).optional(),
6873
+ requirements: v3.z.array(v3.z.string().trim().min(1).max(4000)).min(1).max(64),
6874
+ steps: v3.z.array(v3.z.object({
6875
+ stepIndex: v3.z.number().int().positive(),
6876
+ description: v3.z.string().trim().min(1).max(4000)
6877
+ }).strict()).max(128)
6878
+ }).strict().refine(function(specification) {
6879
+ return new Set(specification.steps.map(function(step) {
6880
+ return step.stepIndex;
6881
+ })).size === specification.steps.length;
6882
+ }, "Step indices must be unique");
6883
+ /** The host verifies the digest against the specification at the persistence boundary. */ var projectTaskSpecificationSnapshotSchema = v3.z.object({
6884
+ digest: projectTaskSpecificationDigestSchema,
6885
+ specification: projectTaskSpecificationSchema
6886
+ }).strict();
6887
+ /** Versioned references, not paths or access grants. Resolve and authorize before reading. */ var projectTaskEvidenceReferenceSchema = v3.z.discriminatedUnion("type", [
6888
+ v3.z.object({
6889
+ type: v3.z.literal("artifact"),
6890
+ artifactId: v3.z.string().uuid(),
6891
+ versionId: v3.z.string().uuid()
6892
+ }).strict(),
6893
+ v3.z.object({
6894
+ type: v3.z.literal("invocation_result"),
6895
+ invocationId: v3.z.string().uuid(),
6896
+ revision: v3.z.number().int().nonnegative()
6897
+ }).strict(),
6898
+ v3.z.object({
6899
+ type: v3.z.literal("workspace_snapshot"),
6900
+ snapshotId: v3.z.string().uuid(),
6901
+ digest: projectTaskSpecificationDigestSchema
6902
+ }).strict()
6903
+ ]);
6904
+ var projectTaskExecutionPurposeSchema = v3.z.discriminatedUnion("type", [
6905
+ v3.z.object({
6906
+ type: v3.z.literal("implementation")
6907
+ }).strict(),
6908
+ v3.z.object({
6909
+ type: v3.z.literal("review"),
6910
+ implementationExecutionId: v3.z.string().uuid(),
6911
+ implementationInvocationId: v3.z.string().uuid(),
6912
+ specificationDigest: projectTaskSpecificationDigestSchema,
6913
+ evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64)
6914
+ }).strict()
6915
+ ]);
6916
+ var projectTaskExecutionReferenceSchema = v3.z.object({
6917
+ projectId: v3.z.string().uuid(),
6918
+ projectTaskId: v3.z.string().uuid(),
6919
+ taskExecutionId: v3.z.string().uuid()
6920
+ }).strict();
6921
+ /** Host-owned attempt context. Review is a new attempt and grants no completion authority. */ var projectTaskExecutionContextSchema = projectTaskExecutionReferenceSchema.extend({
6922
+ specification: projectTaskSpecificationSnapshotSchema,
6923
+ purpose: projectTaskExecutionPurposeSchema
6924
+ }).strict().superRefine(function(value, ctx) {
6925
+ if (value.purpose.type !== "review") return;
6926
+ if (value.purpose.implementationExecutionId === value.taskExecutionId) {
6927
+ ctx.addIssue({
6928
+ code: v3.z.ZodIssueCode.custom,
6929
+ path: [
6930
+ "purpose"
6931
+ ],
6932
+ message: "Review must reference another attempt"
6933
+ });
6934
+ }
6935
+ if (value.purpose.specificationDigest !== value.specification.digest) {
6936
+ ctx.addIssue({
6937
+ code: v3.z.ZodIssueCode.custom,
6938
+ path: [
6939
+ "purpose"
6940
+ ],
6941
+ message: "Review specification must match its subject"
6942
+ });
6943
+ }
6944
+ });
6945
+ /** A receipt is neither a business completion decision nor proof that the process has started. */ var projectTaskDispatchReceiptSchema = projectTaskExecutionReferenceSchema.extend({
6946
+ invocationId: v3.z.string().uuid(),
6947
+ status: agentInvocationStatusSchema
6948
+ }).strict();
6949
+ /** Explicit delegation. Routing and actor identity come from the host. */ var projectTaskDispatchInputSchema = v3.z.object({
6950
+ requestId: v3.z.string().uuid(),
6951
+ taskId: v3.z.string().uuid(),
6952
+ expectedRevision: v3.z.number().int().positive(),
6953
+ bindingId: v3.z.string().uuid(),
6954
+ purpose: projectTaskExecutionPurposeSchema.optional(),
6955
+ delivery: agentOutputDeliverySchema.optional(),
6956
+ instructions: v3.z.string().trim().max(16000).default("")
6957
+ }).strict();
6958
+ /** Exact JSON response from an evidence-only reviewer; prose never implies a passing verdict. */ var projectTaskReviewReportSchema = v3.z.object({
6959
+ version: v3.z.literal(1),
6960
+ verdict: v3.z.enum([
6961
+ "pass",
6962
+ "changes_required",
6963
+ "indeterminate"
6964
+ ]),
6965
+ specificationDigest: projectTaskSpecificationDigestSchema,
6966
+ implementationInvocationId: v3.z.string().uuid(),
6967
+ evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
6968
+ findings: v3.z.array(v3.z.string().trim().min(1).max(4000)).min(1).max(64),
6969
+ limitations: v3.z.array(v3.z.string().trim().min(1).max(4000)).max(64)
6970
+ }).strict();
6971
+ var projectTaskDecisionInputSchema = v3.z.object({
6972
+ requestId: v3.z.string().uuid(),
6973
+ taskId: v3.z.string().uuid(),
6974
+ expectedRevision: v3.z.number().int().positive(),
6975
+ implementationExecutionId: v3.z.string().uuid(),
6976
+ specificationDigest: projectTaskSpecificationDigestSchema,
6977
+ evidence: v3.z.array(projectTaskEvidenceReferenceSchema).min(1).max(64),
6978
+ reviewExecutionId: v3.z.string().uuid().optional(),
6979
+ outcome: v3.z.enum([
6980
+ "accept",
6981
+ "rework"
6982
+ ]),
6983
+ rationale: v3.z.string().trim().min(1).max(8000),
6984
+ checks: v3.z.array(v3.z.string().trim().min(1).max(4000)).min(1).max(64)
6985
+ }).strict();
6986
+ var projectTaskDecisionSchema = projectTaskDecisionInputSchema.extend({
6987
+ actorId: v3.z.string().uuid(),
6988
+ actorType: v3.z.enum([
6989
+ "user",
6990
+ "xpert",
6991
+ "project_agent"
6992
+ ]),
6993
+ executionId: v3.z.string().uuid().optional(),
6994
+ decidedAt: v3.z.string().datetime(),
6995
+ taskRevision: v3.z.number().int().positive()
6996
+ }).strict();
6997
+
6747
6998
  var STATE_VARIABLE_HUMAN = "human";
6748
6999
 
6749
7000
  exports.PermissionsEnum = void 0;
@@ -7247,6 +7498,7 @@ _define_property$1({}, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider
7247
7498
 
7248
7499
  exports.AiModelTypeEnum = void 0;
7249
7500
  (function(AiModelTypeEnum) {
7501
+ AiModelTypeEnum["REALTIME"] = "realtime";
7250
7502
  AiModelTypeEnum["LLM"] = "llm";
7251
7503
  AiModelTypeEnum["TEXT_EMBEDDING"] = "text-embedding";
7252
7504
  AiModelTypeEnum["RERANK"] = "rerank";
@@ -7753,7 +8005,12 @@ var KNOWLEDGEBASE_OPEN_CITATION_EFFECT = "knowledgebase.open_citation";
7753
8005
 
7754
8006
  var AGENT_PROFILE_TABS_SLOT = "agent.profile.tabs";
7755
8007
 
7756
- /** Existing Assistant Workbench slot; openMode controls initial tab opening separately. */ var AGENT_WORKBENCH_SLOT = "agent.workbench.fixed";
8008
+ /** Assistant Workbench slot; openMode controls initial tab opening separately. */ var AGENT_WORKBENCH_SLOT = "agent.workbench";
8009
+ /** Legacy plugin declarations and client requests; normalized to AGENT_WORKBENCH_SLOT by the host. */ var LEGACY_AGENT_WORKBENCH_SLOTS = [
8010
+ "agent.workbench.fixed",
8011
+ "agent.workbench.main"
8012
+ ];
8013
+ /** Platform-provided navigation, available without Assistant middleware. */ var CONVERSATION_MAP_FEATURE = "platform.conversation-map";
7757
8014
 
7758
8015
  /** Live-only UI request. Project scope is mandatory; history playback must not reopen Views. */ function _array_like_to_array(arr, len) {
7759
8016
  if (len == null || len > arr.length) len = arr.length;
@@ -7878,6 +8135,108 @@ function isViewScalar(value) {
7878
8135
 
7879
8136
  var RUNTIME_RESTART_CONFIRMATION = "RESTART";
7880
8137
 
8138
+ var codingExecutionViewKey = "platform.coding-execution__execution";
8139
+ var executionActivityCapabilitiesSchema = v3.z.object({
8140
+ version: v3.z.literal(1),
8141
+ presentation: v3.z.literal("coding")
8142
+ }).strict();
8143
+ var text = v3.z.string().max(65536);
8144
+ var change = v3.z.object({
8145
+ path: v3.z.string().max(4096),
8146
+ change: v3.z.enum([
8147
+ "created",
8148
+ "modified",
8149
+ "deleted",
8150
+ "reported"
8151
+ ]),
8152
+ patch: text.optional()
8153
+ }).strict();
8154
+ var executionActivityItemSchema = v3.z.object({
8155
+ id: v3.z.string().min(1).max(512),
8156
+ occurredAt: v3.z.string().datetime({
8157
+ offset: true
8158
+ }).optional(),
8159
+ content: v3.z.discriminatedUnion("kind", [
8160
+ v3.z.object({
8161
+ kind: v3.z.literal("message"),
8162
+ text: text
8163
+ }).strict(),
8164
+ v3.z.object({
8165
+ kind: v3.z.literal("tool"),
8166
+ name: v3.z.string().max(256).optional(),
8167
+ status: v3.z.enum([
8168
+ "running",
8169
+ "succeeded",
8170
+ "failed",
8171
+ "unknown"
8172
+ ]),
8173
+ input: text.optional(),
8174
+ output: v3.z.string().max(2 * 1024 * 1024).optional(),
8175
+ truncated: v3.z.boolean().optional(),
8176
+ outputRef: v3.z.object({
8177
+ key: v3.z.string().regex(/^[a-f0-9]{64}$/),
8178
+ length: v3.z.number().int().positive()
8179
+ }).strict().optional(),
8180
+ detail: v3.z.discriminatedUnion("type", [
8181
+ v3.z.object({
8182
+ type: v3.z.literal("command"),
8183
+ command: text,
8184
+ cwd: v3.z.string().max(4096).optional(),
8185
+ exitCode: v3.z.number().int().optional(),
8186
+ outputMode: v3.z.literal("merged")
8187
+ }).strict(),
8188
+ v3.z.object({
8189
+ type: v3.z.literal("file_change"),
8190
+ files: v3.z.array(change).max(100)
8191
+ }).strict()
8192
+ ]).optional()
8193
+ }).strict(),
8194
+ v3.z.object({
8195
+ kind: v3.z.literal("diagnostic"),
8196
+ code: v3.z.string().max(128),
8197
+ text: text
8198
+ }).strict()
8199
+ ])
8200
+ }).strict();
8201
+ var executionActivityBatchSchema = v3.z.object({
8202
+ items: v3.z.array(executionActivityItemSchema).max(100),
8203
+ sourceCursor: v3.z.string().max(8192).optional(),
8204
+ expectedSourceCursor: v3.z.string().max(8192).optional(),
8205
+ complete: v3.z.boolean().optional(),
8206
+ gaps: v3.z.array(v3.z.enum([
8207
+ "source_truncated",
8208
+ "storage_unavailable",
8209
+ "capture_limit",
8210
+ "interrupted",
8211
+ "source_lost"
8212
+ ])).max(5).optional()
8213
+ }).strict();
8214
+
8215
+ Object.defineProperty(exports, "createResourceCardContent", {
8216
+ enumerable: true,
8217
+ get: function () { return chatkitTypes.createResourceCardContent; }
8218
+ });
8219
+ Object.defineProperty(exports, "isResourceCardContent", {
8220
+ enumerable: true,
8221
+ get: function () { return chatkitTypes.isResourceCardContent; }
8222
+ });
8223
+ Object.defineProperty(exports, "parseResourceCard", {
8224
+ enumerable: true,
8225
+ get: function () { return chatkitTypes.parseResourceCard; }
8226
+ });
8227
+ Object.defineProperty(exports, "parseResourceCardContent", {
8228
+ enumerable: true,
8229
+ get: function () { return chatkitTypes.parseResourceCardContent; }
8230
+ });
8231
+ Object.defineProperty(exports, "resourceCardId", {
8232
+ enumerable: true,
8233
+ get: function () { return chatkitTypes.resourceCardId; }
8234
+ });
8235
+ Object.defineProperty(exports, "upsertResourceCardContent", {
8236
+ enumerable: true,
8237
+ get: function () { return chatkitTypes.upsertResourceCardContent; }
8238
+ });
8239
+ exports.AGENT_OUTPUT_MAX_PATHS = AGENT_OUTPUT_MAX_PATHS;
7881
8240
  exports.AGENT_PROFILE_TABS_SLOT = AGENT_PROFILE_TABS_SLOT;
7882
8241
  exports.AGENT_WORKBENCH_SLOT = AGENT_WORKBENCH_SLOT;
7883
8242
  exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
@@ -7898,6 +8257,7 @@ exports.CHAT_EVENT_TYPE_THREAD_GOAL_UPDATED = CHAT_EVENT_TYPE_THREAD_GOAL_UPDATE
7898
8257
  exports.CONTEXT_COMPRESSION_COMPONENT_TYPE = CONTEXT_COMPRESSION_COMPONENT_TYPE;
7899
8258
  exports.CONTEXT_COMPRESSION_MIDDLEWARE_NAME = CONTEXT_COMPRESSION_MIDDLEWARE_NAME;
7900
8259
  exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
8260
+ exports.CONVERSATION_MAP_FEATURE = CONVERSATION_MAP_FEATURE;
7901
8261
  exports.COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING = COPILOT_CHECKPOINT_RETENTION_DAYS_SETTING;
7902
8262
  exports.COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING = COPILOT_CHECKPOINT_RETENTION_ENABLED_SETTING;
7903
8263
  exports.ChatThreadPurpose = ChatThreadPurpose;
@@ -7987,6 +8347,7 @@ exports.KNOWLEDGE_WIKI_SCHEMA_VERSION = KNOWLEDGE_WIKI_SCHEMA_VERSION;
7987
8347
  exports.KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS = KNOWLEDGE_WIKI_STALE_VECTOR_CLEANUP_SLO_HOURS;
7988
8348
  exports.KnowledgeTask = KnowledgeTask;
7989
8349
  exports.KnowledgebaseChannel = KnowledgebaseChannel;
8350
+ exports.LEGACY_AGENT_WORKBENCH_SLOTS = LEGACY_AGENT_WORKBENCH_SLOTS;
7990
8351
  exports.LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME = LEGACY_SANDBOX_COMPRESSION_MIDDLEWARE_NAME;
7991
8352
  exports.LanguagesMap = LanguagesMap;
7992
8353
  exports.MAX_COPILOT_CHECKPOINT_RETENTION_DAYS = MAX_COPILOT_CHECKPOINT_RETENTION_DAYS;
@@ -8022,6 +8383,7 @@ exports.MIN_MODEL_GATEWAY_BODY_RETENTION_DAYS = MIN_MODEL_GATEWAY_BODY_RETENTION
8022
8383
  exports.MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS = MIN_MODEL_GATEWAY_CALL_RETENTION_DAYS;
8023
8384
  exports.MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS = MIN_MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS;
8024
8385
  exports.MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE = MIN_MODEL_GATEWAY_REQUESTS_PER_MINUTE;
8386
+ exports.MODEL_EXECUTION_POLICY_SETTING = MODEL_EXECUTION_POLICY_SETTING;
8025
8387
  exports.MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING = MODEL_GATEWAY_CALL_RETENTION_DAYS_SETTING;
8026
8388
  exports.MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING = MODEL_GATEWAY_CALL_RETENTION_ENABLED_SETTING;
8027
8389
  exports.MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING = MODEL_GATEWAY_MAX_CONCURRENT_REQUESTS_SETTING;
@@ -8043,6 +8405,7 @@ exports.PLUGIN_RESOURCE_ERROR_CODE = PLUGIN_RESOURCE_ERROR_CODE;
8043
8405
  exports.PLUGIN_RESOURCE_INSTALLATION_STATUS = PLUGIN_RESOURCE_INSTALLATION_STATUS;
8044
8406
  exports.PLUGIN_RESOURCE_RUNTIME_TYPE = PLUGIN_RESOURCE_RUNTIME_TYPE;
8045
8407
  exports.PLUGIN_SOURCE = PLUGIN_SOURCE;
8408
+ exports.PROJECT_TASK_ICON_NAMES = PROJECT_TASK_ICON_NAMES;
8046
8409
  exports.PermissionGroups = PermissionGroups;
8047
8410
  exports.RUNTIME_RESTART_CONFIRMATION = RUNTIME_RESTART_CONFIRMATION;
8048
8411
  exports.SANDBOX_FILE_OUTPUT_RULES = SANDBOX_FILE_OUTPUT_RULES;
@@ -8095,7 +8458,13 @@ exports.XPERT_VIEW_PROJECT_ID_HEADER = XPERT_VIEW_PROJECT_ID_HEADER;
8095
8458
  exports.XpertMarketplaceBusinessCategories = XpertMarketplaceBusinessCategories;
8096
8459
  exports.XpertMarketplaceCollaborationModes = XpertMarketplaceCollaborationModes;
8097
8460
  exports.XpertMarketplaceTechnicalCategories = XpertMarketplaceTechnicalCategories;
8461
+ exports.agentInvocationStatusSchema = agentInvocationStatusSchema;
8462
+ exports.agentInvocationTerminalStatusSchema = agentInvocationTerminalStatusSchema;
8098
8463
  exports.agentLabel = agentLabel;
8464
+ exports.agentOutputDeliverySchema = agentOutputDeliverySchema;
8465
+ exports.agentResultPathSchema = agentResultPathSchema;
8466
+ exports.agentRuntimeModelSourceSchema = agentRuntimeModelSourceSchema;
8467
+ exports.agentRuntimeProgressSchema = agentRuntimeProgressSchema;
8099
8468
  exports.agentUniqueName = agentUniqueName;
8100
8469
  exports.allChannels = allChannels;
8101
8470
  exports.appendMessageContent = appendMessageContent;
@@ -8104,7 +8473,9 @@ exports.buildChunkTree = buildChunkTree;
8104
8473
  exports.buildXpertMarketplaceProfileSnapshot = buildXpertMarketplaceProfileSnapshot;
8105
8474
  exports.canAllowMcpToolDirectly = canAllowMcpToolDirectly;
8106
8475
  exports.channelName = channelName;
8476
+ exports.chatMessagePresentation = chatMessagePresentation;
8107
8477
  exports.classificateDocumentCategory = classificateDocumentCategory;
8478
+ exports.codingExecutionViewKey = codingExecutionViewKey;
8108
8479
  exports.collectTreeLeaves = collectTreeLeaves;
8109
8480
  exports.configurableStoreNamespace = configurableStoreNamespace;
8110
8481
  exports.convertToUrlPath = convertToUrlPath;
@@ -8122,6 +8493,9 @@ exports.defaultMcpToolApprovalMode = defaultMcpToolApprovalMode;
8122
8493
  exports.deriveXpertMarketplaceTechnicalProfile = deriveXpertMarketplaceTechnicalProfile;
8123
8494
  exports.ensureAssistantBindingSkillWorkspacePreference = ensureAssistantBindingSkillWorkspacePreference;
8124
8495
  exports.evidenceDrivenStrategy = evidenceDrivenStrategy;
8496
+ exports.executionActivityBatchSchema = executionActivityBatchSchema;
8497
+ exports.executionActivityCapabilitiesSchema = executionActivityCapabilitiesSchema;
8498
+ exports.executionActivityItemSchema = executionActivityItemSchema;
8125
8499
  exports.figureOutXpert = figureOutXpert;
8126
8500
  exports.filterAssistantBindingDisabledSkillIds = filterAssistantBindingDisabledSkillIds;
8127
8501
  exports.filterAssistantBindingDisabledTools = filterAssistantBindingDisabledTools;
@@ -8206,6 +8580,7 @@ exports.isReplayEvaluation = isReplayEvaluation;
8206
8580
  exports.isRequiredMiddleware = isRequiredMiddleware;
8207
8581
  exports.isRouterKey = isRouterKey;
8208
8582
  exports.isRunnableThreadGoalStatus = isRunnableThreadGoalStatus;
8583
+ exports.isRuntimeChatMessage = isRuntimeChatMessage;
8209
8584
  exports.isScopedPromptCapabilityConfig = isScopedPromptCapabilityConfig;
8210
8585
  exports.isStagedRelease = isStagedRelease;
8211
8586
  exports.isString = isString;
@@ -8226,6 +8601,8 @@ exports.locateNodes = locateNodes;
8226
8601
  exports.mapTranslationLanguage = mapTranslationLanguage;
8227
8602
  exports.mergeMessageContentForDisplay = mergeMessageContentForDisplay;
8228
8603
  exports.messageContentText = messageContentText;
8604
+ exports.modelExecutionEntry = modelExecutionEntry;
8605
+ exports.modelExecutionSourceId = modelExecutionSourceId;
8229
8606
  exports.nonBlank = nonBlank;
8230
8607
  exports.nonNullable = nonNullable;
8231
8608
  exports.normalizeAssistantBindingToolPreferences = normalizeAssistantBindingToolPreferences;
@@ -8243,6 +8620,18 @@ exports.parsePromptCapabilityConfig = parsePromptCapabilityConfig;
8243
8620
  exports.parsePromptCapabilitySelection = parsePromptCapabilitySelection;
8244
8621
  exports.parseRuntimeSkillCapabilityId = parseRuntimeSkillCapabilityId;
8245
8622
  exports.parseWorkbenchViewOpenEvent = parseWorkbenchViewOpenEvent;
8623
+ exports.projectTaskDecisionInputSchema = projectTaskDecisionInputSchema;
8624
+ exports.projectTaskDecisionSchema = projectTaskDecisionSchema;
8625
+ exports.projectTaskDispatchInputSchema = projectTaskDispatchInputSchema;
8626
+ exports.projectTaskDispatchReceiptSchema = projectTaskDispatchReceiptSchema;
8627
+ exports.projectTaskEvidenceReferenceSchema = projectTaskEvidenceReferenceSchema;
8628
+ exports.projectTaskExecutionContextSchema = projectTaskExecutionContextSchema;
8629
+ exports.projectTaskExecutionPurposeSchema = projectTaskExecutionPurposeSchema;
8630
+ exports.projectTaskExecutionReferenceSchema = projectTaskExecutionReferenceSchema;
8631
+ exports.projectTaskReviewReportSchema = projectTaskReviewReportSchema;
8632
+ exports.projectTaskSpecificationDigestSchema = projectTaskSpecificationDigestSchema;
8633
+ exports.projectTaskSpecificationSchema = projectTaskSpecificationSchema;
8634
+ exports.projectTaskSpecificationSnapshotSchema = projectTaskSpecificationSnapshotSchema;
8246
8635
  exports.replaceAgentInDraft = replaceAgentInDraft;
8247
8636
  exports.resolveDraftPrimaryAgent = resolveDraftPrimaryAgent;
8248
8637
  exports.resolveDraftRuntimeGraph = resolveDraftRuntimeGraph;