@ai-matrx/api 0.1.10 → 0.1.12

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 (124) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/account.d.cts +2 -2
  3. package/dist/account.d.ts +2 -2
  4. package/dist/agents.cjs +34 -16
  5. package/dist/agents.d.cts +106 -12
  6. package/dist/agents.d.ts +106 -12
  7. package/dist/agents.js +22 -7
  8. package/dist/ai.cjs +3 -3
  9. package/dist/ai.d.cts +3 -3
  10. package/dist/ai.d.ts +3 -3
  11. package/dist/ai.js +2 -2
  12. package/dist/apps.cjs +5 -5
  13. package/dist/apps.d.cts +2 -2
  14. package/dist/apps.d.ts +2 -2
  15. package/dist/apps.js +1 -1
  16. package/dist/architecture.cjs +74 -26
  17. package/dist/architecture.d.cts +246 -20
  18. package/dist/architecture.d.ts +246 -20
  19. package/dist/architecture.js +56 -16
  20. package/dist/audio.cjs +4 -4
  21. package/dist/audio.d.cts +2 -2
  22. package/dist/audio.d.ts +2 -2
  23. package/dist/audio.js +1 -1
  24. package/dist/chat.cjs +11 -11
  25. package/dist/chat.d.cts +7 -15
  26. package/dist/chat.d.ts +7 -15
  27. package/dist/chat.js +1 -1
  28. package/dist/{chunk-FLANGLCG.js → chunk-ILLQUHLF.js} +41 -9
  29. package/dist/{chunk-SPASYIUH.cjs → chunk-U63KIQSS.cjs} +41 -7
  30. package/dist/code.cjs +18 -6
  31. package/dist/code.d.cts +35 -3
  32. package/dist/code.d.ts +35 -3
  33. package/dist/code.js +12 -2
  34. package/dist/commerce.d.cts +2 -2
  35. package/dist/commerce.d.ts +2 -2
  36. package/dist/communications.cjs +4 -4
  37. package/dist/communications.d.cts +2 -2
  38. package/dist/communications.d.ts +2 -2
  39. package/dist/communications.js +1 -1
  40. package/dist/computer.cjs +3 -3
  41. package/dist/computer.d.cts +2 -2
  42. package/dist/computer.d.ts +2 -2
  43. package/dist/computer.js +1 -1
  44. package/dist/content.cjs +43 -43
  45. package/dist/content.d.cts +133 -114
  46. package/dist/content.d.ts +133 -114
  47. package/dist/content.js +34 -34
  48. package/dist/crm.cjs +2 -2
  49. package/dist/crm.d.cts +20 -20
  50. package/dist/crm.d.ts +20 -20
  51. package/dist/crm.js +1 -1
  52. package/dist/data.cjs +73 -0
  53. package/dist/data.d.cts +466 -13
  54. package/dist/data.d.ts +466 -13
  55. package/dist/data.js +62 -1
  56. package/dist/education.cjs +4 -4
  57. package/dist/education.d.cts +2 -2
  58. package/dist/education.d.ts +2 -2
  59. package/dist/education.js +1 -1
  60. package/dist/files.cjs +21 -21
  61. package/dist/files.d.cts +14 -5
  62. package/dist/files.d.ts +14 -5
  63. package/dist/files.js +3 -3
  64. package/dist/human-resources.d.cts +2 -2
  65. package/dist/human-resources.d.ts +2 -2
  66. package/dist/{index-Gj30ybjE.d.cts → index-BSrN3TFD.d.cts} +5 -3
  67. package/dist/{index-Gj30ybjE.d.ts → index-BSrN3TFD.d.ts} +5 -3
  68. package/dist/index.cjs +77 -68
  69. package/dist/index.d.cts +2 -2
  70. package/dist/index.d.ts +2 -2
  71. package/dist/index.js +8 -3
  72. package/dist/integrations.cjs +113 -5
  73. package/dist/integrations.d.cts +389 -14
  74. package/dist/integrations.d.ts +389 -14
  75. package/dist/integrations.js +94 -4
  76. package/dist/intelligence.cjs +12 -6
  77. package/dist/intelligence.d.cts +69 -4
  78. package/dist/intelligence.d.ts +69 -4
  79. package/dist/intelligence.js +7 -2
  80. package/dist/knowledge.cjs +43 -43
  81. package/dist/knowledge.d.cts +4 -3
  82. package/dist/knowledge.d.ts +4 -3
  83. package/dist/knowledge.js +2 -2
  84. package/dist/legal.cjs +6 -6
  85. package/dist/legal.d.cts +2 -2
  86. package/dist/legal.d.ts +2 -2
  87. package/dist/legal.js +1 -1
  88. package/dist/marketing.cjs +134 -100
  89. package/dist/marketing.d.cts +151 -30
  90. package/dist/marketing.d.ts +151 -30
  91. package/dist/marketing.js +54 -26
  92. package/dist/masterwork.cjs +32 -32
  93. package/dist/masterwork.d.cts +2 -2
  94. package/dist/masterwork.d.ts +2 -2
  95. package/dist/masterwork.js +1 -1
  96. package/dist/media.cjs +11 -11
  97. package/dist/media.d.cts +11 -11
  98. package/dist/media.d.ts +11 -11
  99. package/dist/media.js +1 -1
  100. package/dist/platform.cjs +3 -3
  101. package/dist/platform.d.cts +2 -2
  102. package/dist/platform.d.ts +2 -2
  103. package/dist/platform.js +1 -1
  104. package/dist/publish.cjs +7 -7
  105. package/dist/publish.d.cts +4 -2
  106. package/dist/publish.d.ts +4 -2
  107. package/dist/publish.js +1 -1
  108. package/dist/schemas.d.cts +16 -3
  109. package/dist/schemas.d.ts +16 -3
  110. package/dist/stream.cjs +10 -10
  111. package/dist/stream.d.cts +1 -1
  112. package/dist/stream.d.ts +1 -1
  113. package/dist/stream.js +1 -1
  114. package/dist/types.d.cts +24167 -524
  115. package/dist/types.d.ts +24167 -524
  116. package/dist/web.cjs +26 -26
  117. package/dist/web.d.cts +29 -14
  118. package/dist/web.d.ts +29 -14
  119. package/dist/web.js +1 -1
  120. package/dist/workflows.cjs +19 -13
  121. package/dist/workflows.d.cts +39 -4
  122. package/dist/workflows.d.ts +39 -4
  123. package/dist/workflows.js +7 -2
  124. package/package.json +2 -2
package/dist/agents.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-Gj30ybjE.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, J as JsonOrStream } from './index-BSrN3TFD.js';
2
2
  import { JsonValue, ContextAnchor, TextPart, ThinkingPart, ToolCallPart, ToolResultPart, UserImageMediaPart, UserAudioMediaPart, UserVideoMediaPart, UserDocumentMediaPart, UserYouTubeMediaPart, CodeExecPart, CodeResultPart, WebSearchPart, WebpageInputPart, NotesInputPart, TaskInputPart, AgentInputPart, ProjectInputPart, AgentAppInputPart, TranscriptInputPart, TranscriptSessionInputPart, WorkbookInputPart, DocumentInputPart, TableInputPart, ListInputPart, DataInputPart, ContextInputPart, RemarksInputPart, DecisionQuestionsPart, DecisionAnswersPart, SpeechScriptPart, LLMParams, AgentStartRequest, DirectiveItemApplied, DirectiveItemFailed, PageContext, RegisteredToolSpec, InlineToolSpec, AgentToolSpec, ClientContext, UserOverrides, ActionNeeded, PromptStartRequest } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
7
+ * CONTRACT_SHA256 2516265e2f8f78e7709d9315a452303f8c16b9ff2cddf7e89ab0ef55a93eaf31
8
8
  */
9
9
 
10
10
  /** AgentBlocksStartRequest */
@@ -94,13 +94,31 @@ type AgentDetail = {
94
94
  skill_config?: {
95
95
  [key: string]: JsonValue;
96
96
  };
97
+ /** Declared prompt blocks, [{"name": ...}] — each placed as {{<name>}} in the messages. */
98
+ prompt_blocks?: {
99
+ [key: string]: JsonValue;
100
+ }[];
97
101
  };
98
102
  /** AgentFromChatRequest */
99
103
  type AgentFromChatRequest = {
100
- /** The chat to turn into an agent. */
101
- conversation_id: string;
104
+ /** The chat to turn into an agent (stored on the platform). */
105
+ conversation_id?: string | null;
106
+ /** Instead of `conversation_id`: a chat brought over from Claude — an uploaded claude.ai export, a pasted chat, or a Claude Code draft (`import_source.py`). Studio door only. */
107
+ import_source?: ImportSource | null;
102
108
  /** Person-supplied example inputs (R52). On the Agent Factory path each is one more proof case beside the chat's own request; the legacy builder ignores them. */
103
109
  examples?: string[];
110
+ /** Which door asks. `studio` = the Agent Studio's "Make this an agent" (always an Agent Factory build, no knob: `pipeline_door.ALWAYS_PIPELINE_DOORS`). */
111
+ door?: "from_chat" | "studio";
112
+ /** Studio: the answer the person approved, verbatim. It becomes the proof case's baseline (the agent's first test case), instead of the turns the brief names. */
113
+ approved_output?: string;
114
+ /** Studio: what the assistant that did the job said made it work (skills, steps, inputs), asked on its own conversation. Rides the build brief as requirements; the Agent Builder writes the agent (agents */
115
+ capture?: string;
116
+ /** Studio only. `inputs` = read the chat and write the brief, then stop and send it back (the person confirms the inputs); `build` = the whole door. */
117
+ stage?: "build" | "inputs";
118
+ /** Studio only: the brief from an `inputs` stage with the values the person confirmed. The brief job is not run again. */
119
+ brief?: {
120
+ [key: string]: unknown;
121
+ } | null;
104
122
  };
105
123
  /** WHO an agent belongs to — the Expert who built it. */
106
124
  type AgentOwnership = {
@@ -1048,6 +1066,8 @@ type ExecutionAgentDefinition = {
1048
1066
  skill_config?: {
1049
1067
  [key: string]: unknown;
1050
1068
  };
1069
+ prompt_blocks?: unknown[];
1070
+ created_by?: string | null;
1051
1071
  };
1052
1072
  /** FailureAnalyticsResponse */
1053
1073
  type FailureAnalyticsResponse = {
@@ -1074,6 +1094,25 @@ type GetToolResponse = {
1074
1094
  } | string;
1075
1095
  [key: string]: unknown;
1076
1096
  };
1097
+ /** Exactly one of ``file_id`` (an uploaded claude.ai export) or ``text`` (a pasted chat). */
1098
+ type ImportPreviewRequest = {
1099
+ file_id?: string | null;
1100
+ text?: string | null;
1101
+ };
1102
+ /** Where the chat comes from when it is not already stored on the platform. */
1103
+ type ImportSource = {
1104
+ draft_id?: string | null;
1105
+ /** An uploaded claude.ai export. */
1106
+ file_id?: string | null;
1107
+ /** A pasted chat. */
1108
+ text?: string | null;
1109
+ /** Which conversation of the export (preview `key`). */
1110
+ key?: string | null;
1111
+ /** A project of the same export (preview `key`). */
1112
+ project_key?: string | null;
1113
+ /** Pasted project instructions / skill text / custom instructions, ahead of the chat. */
1114
+ extra_context?: string;
1115
+ };
1077
1116
  /** IngestReport */
1078
1117
  type IngestReport = {
1079
1118
  parsed: number;
@@ -1464,6 +1503,16 @@ type PortableUnavailable = {
1464
1503
  name: string;
1465
1504
  reason: string;
1466
1505
  };
1506
+ /** PromptBlocksResolved */
1507
+ type PromptBlocksResolved = {
1508
+ blocks?: {
1509
+ [key: string]: string;
1510
+ };
1511
+ report?: {
1512
+ [key: string]: JsonValue;
1513
+ }[];
1514
+ tool_ids?: string[];
1515
+ };
1467
1516
  /** PromptWarmRequest */
1468
1517
  type PromptWarmRequest = {
1469
1518
  source?: string | null;
@@ -2006,6 +2055,10 @@ type UpdateAgentInput = {
2006
2055
  skill_config?: {
2007
2056
  [key: string]: JsonValue;
2008
2057
  } | null;
2058
+ /** Prompt blocks this agent DECLARES — names (or {"name": ...}) of library blocks the messages place as {{<name>}}. On the first turn each declared {{<name>}} becomes <name>\n{current text}\n</name> (per */
2059
+ prompt_blocks?: ((string | {
2060
+ [key: string]: JsonValue;
2061
+ })[]) | null;
2009
2062
  context_policies?: {
2010
2063
  [key: string]: JsonValue;
2011
2064
  }[] | null;
@@ -2072,7 +2125,7 @@ type VariableBindingPreviewRequest = {
2072
2125
  type VariableBindingPreviewResponse = {
2073
2126
  /** Exactly what the agent receives for {{variable}}. */
2074
2127
  text: string;
2075
- /** False when the text is a named absence. */
2128
+ /** False when there is no value (the agent gets ""). */
2076
2129
  present: boolean;
2077
2130
  /** Rows delivered (1 for a record or a single value). */
2078
2131
  row_count: number;
@@ -2082,7 +2135,7 @@ type VariableBindingPreviewResponse = {
2082
2135
  truncated: boolean;
2083
2136
  /** What a client-sent value does (shown_locked…). */
2084
2137
  override_policy: string;
2085
- /** delivered | absent (the agent is told `text`, a named absence) | blocks_run (missing=block: the run would be STOPPED — the agent is told nothing; `text` is the sentence a person sees). */
2138
+ /** delivered | absent (no value: the agent gets ""; `absent_reason` says why, for a person). */
2086
2139
  outcome: string;
2087
2140
  /** Why nothing was delivered, for a person. */
2088
2141
  absent_reason?: string | null;
@@ -2266,6 +2319,19 @@ type GetToolByIdResult = GetToolResponse;
2266
2319
  /** Get Tool By Id */
2267
2320
  /** `GET /ai-tools/{tool_id}` · aidream · auth guest · org optional */
2268
2321
  declare function getToolById(api: Api, args: GetToolByIdArgs, options?: CallOptions): Promise<GetToolByIdResult>;
2322
+ type ResolvePromptBlocksArgs = {
2323
+ query: {
2324
+ names: string[];
2325
+ model: string;
2326
+ reasoning?: string | null;
2327
+ tools?: string[];
2328
+ creator?: string | null;
2329
+ };
2330
+ };
2331
+ type ResolvePromptBlocksResult = PromptBlocksResolved;
2332
+ /** Resolve Prompt Blocks */
2333
+ /** `GET /prompt-blocks/resolve` · aidream · auth guest · org optional */
2334
+ declare function resolvePromptBlocks(api: Api, args: ResolvePromptBlocksArgs, options?: CallOptions): Promise<ResolvePromptBlocksResult>;
2269
2335
  type AgentsStartAgentArgs = {
2270
2336
  path: {
2271
2337
  agent_id: string;
@@ -2653,7 +2719,7 @@ type StartBuildArgs = {
2653
2719
  };
2654
2720
  type StartBuildResult = StartBuildResponse;
2655
2721
  /** Start Build */
2656
- /** `POST /agent-factory/builds` · aidream · auth user · org required */
2722
+ /** `POST /agent-factory/builds` · aidream · auth guest · org required */
2657
2723
  declare function startBuild(api: Api, args: StartBuildArgs, options?: CallOptions): Promise<StartBuildResult>;
2658
2724
  type ReadBuildArgs = {
2659
2725
  path: {
@@ -2662,7 +2728,7 @@ type ReadBuildArgs = {
2662
2728
  };
2663
2729
  type ReadBuildResult = BuildResponse;
2664
2730
  /** Read Build */
2665
- /** `GET /agent-factory/builds/{build_id}` · aidream · auth user · org required */
2731
+ /** `GET /agent-factory/builds/{build_id}` · aidream · auth guest · org required */
2666
2732
  declare function readBuild(api: Api, args: ReadBuildArgs, options?: CallOptions): Promise<ReadBuildResult>;
2667
2733
  type KeepBuildArgs = {
2668
2734
  path: {
@@ -2671,7 +2737,7 @@ type KeepBuildArgs = {
2671
2737
  };
2672
2738
  type KeepBuildResult = KeepResponse;
2673
2739
  /** Keep Build */
2674
- /** `POST /agent-factory/builds/{build_id}/keep` · aidream · auth user · org required */
2740
+ /** `POST /agent-factory/builds/{build_id}/keep` · aidream · auth guest · org required */
2675
2741
  declare function keepBuild(api: Api, args: KeepBuildArgs, options?: CallOptions): Promise<KeepBuildResult>;
2676
2742
  type JudgeFirstRunsArgs = {
2677
2743
  path: {
@@ -2680,15 +2746,31 @@ type JudgeFirstRunsArgs = {
2680
2746
  };
2681
2747
  type JudgeFirstRunsResult = FirstRunsResponse;
2682
2748
  /** Judge First Runs */
2683
- /** `POST /agent-factory/agents/{agent_id}/first-runs` · aidream · auth user · org required */
2749
+ /** `POST /agent-factory/agents/{agent_id}/first-runs` · aidream · auth guest · org required */
2684
2750
  declare function judgeFirstRuns(api: Api, args: JudgeFirstRunsArgs, options?: CallOptions): Promise<JudgeFirstRunsResult>;
2685
2751
  type AgentFromChatArgs = {
2686
2752
  body: AgentFromChatRequest;
2687
2753
  };
2688
2754
  type AgentFromChatResult = unknown;
2689
2755
  /** Agent From Chat */
2690
- /** `POST /agent-studio/from-chat` · aidream · auth user · org required · ndjson */
2756
+ /** `POST /agent-studio/from-chat` · aidream · auth guest · org required · ndjson */
2691
2757
  declare function agentFromChat(api: Api, args: AgentFromChatArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
2758
+ type ImportPreviewArgs = {
2759
+ body: ImportPreviewRequest;
2760
+ };
2761
+ type ImportPreviewResult = unknown;
2762
+ /** Import Preview */
2763
+ /** `POST /agent-studio/import/preview` · aidream · auth guest · org required */
2764
+ declare function importPreview(api: Api, args: ImportPreviewArgs, options?: CallOptions): Promise<ImportPreviewResult>;
2765
+ type ImportDraftArgs = {
2766
+ path: {
2767
+ draft_id: string;
2768
+ };
2769
+ };
2770
+ type ImportDraftResult = unknown;
2771
+ /** Import Draft */
2772
+ /** `GET /agent-studio/import/draft/{draft_id}` · aidream · auth guest · org required */
2773
+ declare function importDraft(api: Api, args: ImportDraftArgs, options?: CallOptions): Promise<ImportDraftResult>;
2692
2774
  type AdminAgentFromChatArgs = {
2693
2775
  body: AgentFromChatRequest;
2694
2776
  };
@@ -3094,6 +3176,10 @@ interface Operations {
3094
3176
  args: GetToolByIdArgs;
3095
3177
  result: GetToolByIdResult;
3096
3178
  };
3179
+ "GET /prompt-blocks/resolve": {
3180
+ args: ResolvePromptBlocksArgs;
3181
+ result: ResolvePromptBlocksResult;
3182
+ };
3097
3183
  "POST /ai/agents/{agent_id}/invalidate-cache": {
3098
3184
  args: InvalidateAgentCacheArgs;
3099
3185
  result: InvalidateAgentCacheResult;
@@ -3250,6 +3336,14 @@ interface Operations {
3250
3336
  args: JudgeFirstRunsArgs;
3251
3337
  result: JudgeFirstRunsResult;
3252
3338
  };
3339
+ "POST /agent-studio/import/preview": {
3340
+ args: ImportPreviewArgs;
3341
+ result: ImportPreviewResult;
3342
+ };
3343
+ "GET /agent-studio/import/draft/{draft_id}": {
3344
+ args: ImportDraftArgs;
3345
+ result: ImportDraftResult;
3346
+ };
3253
3347
  "GET /admin/tools": {
3254
3348
  args: AdminToolsListToolsArgs;
3255
3349
  result: AdminToolsListToolsResult;
@@ -3414,4 +3508,4 @@ interface Operations {
3414
3508
  /** Path-keyed call, scoped to this domain only (never a global path map). */
3415
3509
  declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
3416
3510
 
3417
- export { type AdminAgentFromChatArgs, type AdminAgentFromChatResult, type AdminIngestFilesystemArgs, type AdminIngestFilesystemResult, type AdminToolsListToolsArgs, type AdminToolsListToolsResult, type AgentBlocksStartRequest, type AgentContextPolicy, type AgentDetail, type AgentFromChatArgs, type AgentFromChatRequest, type AgentFromChatResult, type AgentOwnership, type AgentServiceListSkillsArgs, type AgentServiceListSkillsResult, type AgentServiceListToolsArgs, type AgentServiceListToolsResult, type AgentSpec, type AgentSummary, type AgentTestBatchRequest, type AgentTestBatchResponse, type AgentTestResult, type AgentVariableControlInput, type AgentVariableDefinition, type AgentVariableDetail, type AgentVariableInput, type AgentVersionInfo, type AgentsStartAgentArgs, type AgentsStartAgentPostArgs, type AgentsStartAgentPostResult, type AgentsStartAgentResult, type BuildResponse, type BuiltinPromptCatalogResponse, type CacheBustArgs, type CacheBustResponse, type CacheBustResult, type CancelMatrixBattleArgs, type CancelMatrixBattleResult, type CatalogRpcRequest, type CatalogTree, type CategoryCreate, type CategoryList, type CategoryPatch, type CategoryRow, type CellRef, type Clearance, type CodeDeclaration, type CombinedPromptCatalogResponse, type ConfirmProposedDirectiveArgs, type ConfirmProposedDirectiveResult, type ContextAnswer, type ContextAnswerBothRequest, type ContextAnswerBothResponse, type ContextCompare, type ContextCompareCheck, type ContextCompareDifference, type ContextCompareSelection, type ContextCompareSide, type ContextDecidedBy, type ContextDelivered, type ContextDeliveredArgs, type ContextDeliveredRef, type ContextDeliveredResult, type ContextDeliveredSide, type ContextEnvelope, type ContextFollowLag, type ContextItemBinding, type ContextOrganizationOption, type ContextOrganizationsResponse, type ContextPreviewBindings, type ContextPreviewRefusal, type ContextPreviewRequest, type ContextPreviewResponse, type ContextPreviewSelection, type ContextPreviewVariables, type ContextProvenance, type ContextReceipt, type ContextReceiptBlock, type ContextReceiptRoomView, type ContextReceiptRow, type ContextReceiptWithheldItem, type ContextRenderRequest, type ContextRenderResponse, type ContextRule, type ContextSelection, type ContextSystemItem, type ContextSystemItems, type ContextTarget, type ContextViewTarget, type ContextViewedText, type ControlBinding, type CreateAgentArgs, type CreateAgentInput, type CreateAgentResult, type CreateCategoryArgs, type CreateCategoryResult, type CreateSkillArgs, type CreateSkillResult, type CreateStructuredAgentArgs, type CreateStructuredAgentResult, type DeleteCategoryArgs, type DeleteCategoryResult, type DeleteSkillArgs, type DeleteSkillResult, type DirectiveApplyResult, type DirectiveApplyStateRequest, type DirectiveApplyStateResult, type DirectiveCatalog, type DirectiveConfirmRequest, type DirectiveConfirmResult, type DirectiveExecuteRequest, type DirectiveItemState, type DirectiveNounSchemas, type DirectiveReceipt, type DirectiveShellState, type ExecuteRealtimeToolRouteArgs, type ExecuteRealtimeToolRouteResult, type ExecuteToolTestArgs, type ExecuteToolTestResult, type ExecuteWriteDirectiveArgs, type ExecuteWriteDirectiveResult, type ExecutionAgentDefinition, type FailureAnalyticsArgs, type FailureAnalyticsResponse, type FailureAnalyticsResult, type FaultDomainCount, type FirstRunsResponse, type GetAgentArgs, type GetAgentCatalogArgs, type GetAgentCatalogResult, type GetAgentCatalogStatusArgs, type GetAgentCatalogStatusResult, type GetAgentExecutionArgs, type GetAgentExecutionDefinitionArgs, type GetAgentExecutionDefinitionResult, type GetAgentExecutionResult, type GetAgentResult, type GetAgentVersionExecutionDefinitionArgs, type GetAgentVersionExecutionDefinitionResult, type GetAllPromptBuiltinsArgs, type GetAllPromptBuiltinsResult, type GetAllToolsArgs, type GetAllToolsResult, type GetCapabilityManifestArgs, type GetCapabilityManifestResult, type GetDbSurfaceManifestArgs, type GetDbSurfaceManifestResult, type GetDirectiveCatalogArgs, type GetDirectiveCatalogResult, type GetDirectiveNounSchemasArgs, type GetDirectiveNounSchemasResult, type GetLibraryArgs, type GetLibraryResult, type GetListsArgs, type GetListsResult, type GetMcpDiscoveredToolsArgs, type GetMcpDiscoveredToolsResult, type GetNativeToolsArgs, type GetNativeToolsResult, type GetOrCreateTestSessionArgs, type GetOrCreateTestSessionResult, type GetPortableAgentArgs, type GetPortableAgentResult, type GetPortableAgentSummaryArgs, type GetPortableAgentSummaryResult, type GetPortableAgentVersionArgs, type GetPortableAgentVersionResult, type GetPromptsArgs, type GetPromptsResult, type GetRealtimeSessionArgs, type GetRealtimeSessionResult, type GetRealtimeToolsArgs, type GetRealtimeToolsResult, type GetSkillArgs, type GetSkillResult, type GetTemplatesArgs, type GetTemplatesResult, type GetToolByIdArgs, type GetToolByIdResult, type GetToolDetailArgs, type GetToolDetailResult, type GetToolResponse, type GetToolsBySourceKindArgs, type GetToolsBySourceKindResult, type GetToolsForAppArgs, type GetToolsForAppResult, type GetUserPromptsAndBuiltinsArgs, type GetUserPromptsAndBuiltinsResult, type GetUserPromptsArgs, type GetUserPromptsResult, type GetVariationBatchesArgs, type GetVariationBatchesResult, type GetVersionArgs, type GetVersionResult, type IngestReport, type InvalidateAgentCacheArgs, type InvalidateAgentCacheResponse, type InvalidateAgentCacheResult, type InvocationContext, type InvokeToolArgs, type InvokeToolResult, type JudgeFirstRunsArgs, type JudgeFirstRunsResult, type KeepBuildArgs, type KeepBuildResult, type KeepResponse, type KindActionEntry, type LibraryPut, type ListAgentsArgs, type ListAgentsResult, type ListCategoriesArgs, type ListCategoriesResult, type ListContextOrganizationsArgs, type ListContextOrganizationsResult, type ListModelsArgs, type ListModelsResult, type ListScenariosArgs, type ListScenariosResult, type ListToolsArgs, type ListToolsBySourceKindResponse, type ListToolsForExecutorResponse, type ListToolsResponse, type ListToolsResult, type ListVersionsArgs, type ListVersionsResult, type ListsPut, type ManifestClientToolEntry, type ManifestGroupEntry, type ManifestToolEntry, type ManifestValueEntry, type ManifestWriteTargetEntry, type MatrixCancelResponse, type MatrixRunRequest, type MergeFieldBinding, type MergeFieldSort, type MergeFieldTransform, type MockScenario, type MockScenarioList, type MockStreamArgs, type MockStreamRequest, type MockStreamResult, type ModelAuthoringFacts, type ModelCapabilitySummary, type ModelClassInfo, type ModelControlInfo, type ModelInfo, type NounDirectives, type Operations, type OrchestraBadge, type PatchCategoryArgs, type PatchCategoryResult, type PatchSkillArgs, type PatchSkillResult, type PicklistBinding, type PortableAgentBundle, type PortableAgentRequest, type PortableAgentSummary, type PortableAgentVersion, type PortableSkill, type PortableTool, type PortableUnavailable, type PostAgentCatalogRpcArgs, type PostAgentCatalogRpcResult, type PreviewAnswerBothArgs, type PreviewAnswerBothResult, type PreviewContextArgs, type PreviewContextResult, type PreviewVariableBindingArgs, type PreviewVariableBindingResult, type PromptMatrixPathsArgs, type PromptMatrixPathsResult, type PromptWarmRequest, type PromptWarmResponse, type PromptsPut, type PutLibraryArgs, type PutLibraryResult, type PutListsArgs, type PutListsResult, type PutPromptsArgs, type PutPromptsResult, type PutTemplatesArgs, type PutTemplatesResult, type PutVariationBatchesArgs, type PutVariationBatchesResult, type ReadBuildArgs, type ReadBuildResult, type ReadDirectiveApplyStateArgs, type ReadDirectiveApplyStateResult, type RealtimeSessionRequest, type RealtimeSessionResponse, type RealtimeTool, type RealtimeToolsRequest, type RealtimeToolsResponse, type RenderContextArgs, type RenderContextResult, type RunAgentTestsArgs, type RunAgentTestsResult, type RunMatrixBattleArgs, type RunMatrixBattleResult, type SchemaFinding, type SchemaGateReport, type ScreenRunApproval, type ScreenRunArgs, type ScreenRunError, type ScreenRunRequest, type ScreenRunResponse, type ScreenRunResult, type SkillCreate, type SkillInfo, type SkillPatch, type SkillRow, type SkillsList, type SkillsListSkillsArgs, type SkillsListSkillsResult, type SpecVariable, type StartAgentBlocksArgs, type StartAgentBlocksResult, type StartBuildArgs, type StartBuildBody, type StartBuildResponse, type StartBuildResult, type StartMandatedAgentArgs, type StartMandatedAgentResult, type StartPromptArgs, type StartPromptResult, type SurfaceManifest, type TemplatesPut, type ToolDetail, type ToolDetailArgs, type ToolDetailResponse, type ToolDetailResult, type ToolExecuteRequest, type ToolExecuteResponse, type ToolFailureRow, type ToolFailureStat, type ToolFinding, type ToolInfo, type ToolRecord, type ToolRequest, type ToolResponse, type ToolRow, type ToolSummary, type ToolTestExecuteRequest, type ToolTestSessionResponse, type ToolTestingListToolsArgs, type ToolTestingListToolsResult, type ToolUpdateRequest, type UpdateAgentArgs, type UpdateAgentInput, type UpdateAgentResult, type UpdateToolArgs, type UpdateToolResult, type UserPromptCatalogResponse, type ValidateAllOpArgs, type ValidateAllOpResult, type ValidateSchemaArgs, type ValidateSchemaRequest, type ValidateSchemaResult, type ValidationReportResponse, type VariableAssignmentSpec, type VariableBindingPreviewRequest, type VariableBindingPreviewResponse, type VariableComponentSpec, type VariationBatchesPut, type WarmAgentArgs, type WarmAgentBlocksArgs, type WarmAgentBlocksResponse, type WarmAgentBlocksResult, type WarmAgentResponse, type WarmAgentResult, type WarmPromptArgs, type WarmPromptResult, adminAgentFromChat, adminIngestFilesystem, adminToolsListTools, agentFromChat, agentServiceListSkills, agentServiceListTools, agentsStartAgent, agentsStartAgentPost, type aidream__api__routers__agents__WarmRequest, type aidream__api__routers__agents_blocks__WarmRequest, type aidream__api__routers__skills__IngestRequest, type aidream__api__routers__tool_testing__ToolListResponse, type aidream__services__admin_ops__tools_wire__ToolListResponse, cacheBust, call, cancelMatrixBattle, confirmProposedDirective, contextDelivered, createAgent, createCategory, createSkill, createStructuredAgent, deleteCategory, deleteSkill, executeRealtimeToolRoute, executeToolTest, executeWriteDirective, failureAnalytics, getAgent, getAgentCatalog, getAgentCatalogStatus, getAgentExecution, getAgentExecutionDefinition, getAgentVersionExecutionDefinition, getAllPromptBuiltins, getAllTools, getCapabilityManifest, getDbSurfaceManifest, getDirectiveCatalog, getDirectiveNounSchemas, getLibrary, getLists, getMcpDiscoveredTools, getNativeTools, getOrCreateTestSession, getPortableAgent, getPortableAgentSummary, getPortableAgentVersion, getPrompts, getRealtimeSession, getRealtimeTools, getSkill, getTemplates, getToolById, getToolDetail, getToolsBySourceKind, getToolsForApp, getUserPrompts, getUserPromptsAndBuiltins, getVariationBatches, getVersion, invalidateAgentCache, invokeTool, judgeFirstRuns, keepBuild, listAgents, listCategories, listContextOrganizations, listModels, listScenarios, listTools, listVersions, mockStream, patchCategory, patchSkill, postAgentCatalogRpc, previewAnswerBoth, previewContext, previewVariableBinding, promptMatrixPaths, putLibrary, putLists, putPrompts, putTemplates, putVariationBatches, readBuild, readDirectiveApplyState, renderContext, runAgentTests, runMatrixBattle, screenRun, skillsListSkills, startAgentBlocks, startBuild, startMandatedAgent, startPrompt, toolDetail, toolTestingListTools, updateAgent, updateTool, validateAll, validateSchema, warmAgent, warmAgentBlocks, warmPrompt };
3511
+ export { type AdminAgentFromChatArgs, type AdminAgentFromChatResult, type AdminIngestFilesystemArgs, type AdminIngestFilesystemResult, type AdminToolsListToolsArgs, type AdminToolsListToolsResult, type AgentBlocksStartRequest, type AgentContextPolicy, type AgentDetail, type AgentFromChatArgs, type AgentFromChatRequest, type AgentFromChatResult, type AgentOwnership, type AgentServiceListSkillsArgs, type AgentServiceListSkillsResult, type AgentServiceListToolsArgs, type AgentServiceListToolsResult, type AgentSpec, type AgentSummary, type AgentTestBatchRequest, type AgentTestBatchResponse, type AgentTestResult, type AgentVariableControlInput, type AgentVariableDefinition, type AgentVariableDetail, type AgentVariableInput, type AgentVersionInfo, type AgentsStartAgentArgs, type AgentsStartAgentPostArgs, type AgentsStartAgentPostResult, type AgentsStartAgentResult, type BuildResponse, type BuiltinPromptCatalogResponse, type CacheBustArgs, type CacheBustResponse, type CacheBustResult, type CancelMatrixBattleArgs, type CancelMatrixBattleResult, type CatalogRpcRequest, type CatalogTree, type CategoryCreate, type CategoryList, type CategoryPatch, type CategoryRow, type CellRef, type Clearance, type CodeDeclaration, type CombinedPromptCatalogResponse, type ConfirmProposedDirectiveArgs, type ConfirmProposedDirectiveResult, type ContextAnswer, type ContextAnswerBothRequest, type ContextAnswerBothResponse, type ContextCompare, type ContextCompareCheck, type ContextCompareDifference, type ContextCompareSelection, type ContextCompareSide, type ContextDecidedBy, type ContextDelivered, type ContextDeliveredArgs, type ContextDeliveredRef, type ContextDeliveredResult, type ContextDeliveredSide, type ContextEnvelope, type ContextFollowLag, type ContextItemBinding, type ContextOrganizationOption, type ContextOrganizationsResponse, type ContextPreviewBindings, type ContextPreviewRefusal, type ContextPreviewRequest, type ContextPreviewResponse, type ContextPreviewSelection, type ContextPreviewVariables, type ContextProvenance, type ContextReceipt, type ContextReceiptBlock, type ContextReceiptRoomView, type ContextReceiptRow, type ContextReceiptWithheldItem, type ContextRenderRequest, type ContextRenderResponse, type ContextRule, type ContextSelection, type ContextSystemItem, type ContextSystemItems, type ContextTarget, type ContextViewTarget, type ContextViewedText, type ControlBinding, type CreateAgentArgs, type CreateAgentInput, type CreateAgentResult, type CreateCategoryArgs, type CreateCategoryResult, type CreateSkillArgs, type CreateSkillResult, type CreateStructuredAgentArgs, type CreateStructuredAgentResult, type DeleteCategoryArgs, type DeleteCategoryResult, type DeleteSkillArgs, type DeleteSkillResult, type DirectiveApplyResult, type DirectiveApplyStateRequest, type DirectiveApplyStateResult, type DirectiveCatalog, type DirectiveConfirmRequest, type DirectiveConfirmResult, type DirectiveExecuteRequest, type DirectiveItemState, type DirectiveNounSchemas, type DirectiveReceipt, type DirectiveShellState, type ExecuteRealtimeToolRouteArgs, type ExecuteRealtimeToolRouteResult, type ExecuteToolTestArgs, type ExecuteToolTestResult, type ExecuteWriteDirectiveArgs, type ExecuteWriteDirectiveResult, type ExecutionAgentDefinition, type FailureAnalyticsArgs, type FailureAnalyticsResponse, type FailureAnalyticsResult, type FaultDomainCount, type FirstRunsResponse, type GetAgentArgs, type GetAgentCatalogArgs, type GetAgentCatalogResult, type GetAgentCatalogStatusArgs, type GetAgentCatalogStatusResult, type GetAgentExecutionArgs, type GetAgentExecutionDefinitionArgs, type GetAgentExecutionDefinitionResult, type GetAgentExecutionResult, type GetAgentResult, type GetAgentVersionExecutionDefinitionArgs, type GetAgentVersionExecutionDefinitionResult, type GetAllPromptBuiltinsArgs, type GetAllPromptBuiltinsResult, type GetAllToolsArgs, type GetAllToolsResult, type GetCapabilityManifestArgs, type GetCapabilityManifestResult, type GetDbSurfaceManifestArgs, type GetDbSurfaceManifestResult, type GetDirectiveCatalogArgs, type GetDirectiveCatalogResult, type GetDirectiveNounSchemasArgs, type GetDirectiveNounSchemasResult, type GetLibraryArgs, type GetLibraryResult, type GetListsArgs, type GetListsResult, type GetMcpDiscoveredToolsArgs, type GetMcpDiscoveredToolsResult, type GetNativeToolsArgs, type GetNativeToolsResult, type GetOrCreateTestSessionArgs, type GetOrCreateTestSessionResult, type GetPortableAgentArgs, type GetPortableAgentResult, type GetPortableAgentSummaryArgs, type GetPortableAgentSummaryResult, type GetPortableAgentVersionArgs, type GetPortableAgentVersionResult, type GetPromptsArgs, type GetPromptsResult, type GetRealtimeSessionArgs, type GetRealtimeSessionResult, type GetRealtimeToolsArgs, type GetRealtimeToolsResult, type GetSkillArgs, type GetSkillResult, type GetTemplatesArgs, type GetTemplatesResult, type GetToolByIdArgs, type GetToolByIdResult, type GetToolDetailArgs, type GetToolDetailResult, type GetToolResponse, type GetToolsBySourceKindArgs, type GetToolsBySourceKindResult, type GetToolsForAppArgs, type GetToolsForAppResult, type GetUserPromptsAndBuiltinsArgs, type GetUserPromptsAndBuiltinsResult, type GetUserPromptsArgs, type GetUserPromptsResult, type GetVariationBatchesArgs, type GetVariationBatchesResult, type GetVersionArgs, type GetVersionResult, type ImportDraftArgs, type ImportDraftResult, type ImportPreviewArgs, type ImportPreviewRequest, type ImportPreviewResult, type ImportSource, type IngestReport, type InvalidateAgentCacheArgs, type InvalidateAgentCacheResponse, type InvalidateAgentCacheResult, type InvocationContext, type InvokeToolArgs, type InvokeToolResult, type JudgeFirstRunsArgs, type JudgeFirstRunsResult, type KeepBuildArgs, type KeepBuildResult, type KeepResponse, type KindActionEntry, type LibraryPut, type ListAgentsArgs, type ListAgentsResult, type ListCategoriesArgs, type ListCategoriesResult, type ListContextOrganizationsArgs, type ListContextOrganizationsResult, type ListModelsArgs, type ListModelsResult, type ListScenariosArgs, type ListScenariosResult, type ListToolsArgs, type ListToolsBySourceKindResponse, type ListToolsForExecutorResponse, type ListToolsResponse, type ListToolsResult, type ListVersionsArgs, type ListVersionsResult, type ListsPut, type ManifestClientToolEntry, type ManifestGroupEntry, type ManifestToolEntry, type ManifestValueEntry, type ManifestWriteTargetEntry, type MatrixCancelResponse, type MatrixRunRequest, type MergeFieldBinding, type MergeFieldSort, type MergeFieldTransform, type MockScenario, type MockScenarioList, type MockStreamArgs, type MockStreamRequest, type MockStreamResult, type ModelAuthoringFacts, type ModelCapabilitySummary, type ModelClassInfo, type ModelControlInfo, type ModelInfo, type NounDirectives, type Operations, type OrchestraBadge, type PatchCategoryArgs, type PatchCategoryResult, type PatchSkillArgs, type PatchSkillResult, type PicklistBinding, type PortableAgentBundle, type PortableAgentRequest, type PortableAgentSummary, type PortableAgentVersion, type PortableSkill, type PortableTool, type PortableUnavailable, type PostAgentCatalogRpcArgs, type PostAgentCatalogRpcResult, type PreviewAnswerBothArgs, type PreviewAnswerBothResult, type PreviewContextArgs, type PreviewContextResult, type PreviewVariableBindingArgs, type PreviewVariableBindingResult, type PromptBlocksResolved, type PromptMatrixPathsArgs, type PromptMatrixPathsResult, type PromptWarmRequest, type PromptWarmResponse, type PromptsPut, type PutLibraryArgs, type PutLibraryResult, type PutListsArgs, type PutListsResult, type PutPromptsArgs, type PutPromptsResult, type PutTemplatesArgs, type PutTemplatesResult, type PutVariationBatchesArgs, type PutVariationBatchesResult, type ReadBuildArgs, type ReadBuildResult, type ReadDirectiveApplyStateArgs, type ReadDirectiveApplyStateResult, type RealtimeSessionRequest, type RealtimeSessionResponse, type RealtimeTool, type RealtimeToolsRequest, type RealtimeToolsResponse, type RenderContextArgs, type RenderContextResult, type ResolvePromptBlocksArgs, type ResolvePromptBlocksResult, type RunAgentTestsArgs, type RunAgentTestsResult, type RunMatrixBattleArgs, type RunMatrixBattleResult, type SchemaFinding, type SchemaGateReport, type ScreenRunApproval, type ScreenRunArgs, type ScreenRunError, type ScreenRunRequest, type ScreenRunResponse, type ScreenRunResult, type SkillCreate, type SkillInfo, type SkillPatch, type SkillRow, type SkillsList, type SkillsListSkillsArgs, type SkillsListSkillsResult, type SpecVariable, type StartAgentBlocksArgs, type StartAgentBlocksResult, type StartBuildArgs, type StartBuildBody, type StartBuildResponse, type StartBuildResult, type StartMandatedAgentArgs, type StartMandatedAgentResult, type StartPromptArgs, type StartPromptResult, type SurfaceManifest, type TemplatesPut, type ToolDetail, type ToolDetailArgs, type ToolDetailResponse, type ToolDetailResult, type ToolExecuteRequest, type ToolExecuteResponse, type ToolFailureRow, type ToolFailureStat, type ToolFinding, type ToolInfo, type ToolRecord, type ToolRequest, type ToolResponse, type ToolRow, type ToolSummary, type ToolTestExecuteRequest, type ToolTestSessionResponse, type ToolTestingListToolsArgs, type ToolTestingListToolsResult, type ToolUpdateRequest, type UpdateAgentArgs, type UpdateAgentInput, type UpdateAgentResult, type UpdateToolArgs, type UpdateToolResult, type UserPromptCatalogResponse, type ValidateAllOpArgs, type ValidateAllOpResult, type ValidateSchemaArgs, type ValidateSchemaRequest, type ValidateSchemaResult, type ValidationReportResponse, type VariableAssignmentSpec, type VariableBindingPreviewRequest, type VariableBindingPreviewResponse, type VariableComponentSpec, type VariationBatchesPut, type WarmAgentArgs, type WarmAgentBlocksArgs, type WarmAgentBlocksResponse, type WarmAgentBlocksResult, type WarmAgentResponse, type WarmAgentResult, type WarmPromptArgs, type WarmPromptResult, adminAgentFromChat, adminIngestFilesystem, adminToolsListTools, agentFromChat, agentServiceListSkills, agentServiceListTools, agentsStartAgent, agentsStartAgentPost, type aidream__api__routers__agents__WarmRequest, type aidream__api__routers__agents_blocks__WarmRequest, type aidream__api__routers__skills__IngestRequest, type aidream__api__routers__tool_testing__ToolListResponse, type aidream__services__admin_ops__tools_wire__ToolListResponse, cacheBust, call, cancelMatrixBattle, confirmProposedDirective, contextDelivered, createAgent, createCategory, createSkill, createStructuredAgent, deleteCategory, deleteSkill, executeRealtimeToolRoute, executeToolTest, executeWriteDirective, failureAnalytics, getAgent, getAgentCatalog, getAgentCatalogStatus, getAgentExecution, getAgentExecutionDefinition, getAgentVersionExecutionDefinition, getAllPromptBuiltins, getAllTools, getCapabilityManifest, getDbSurfaceManifest, getDirectiveCatalog, getDirectiveNounSchemas, getLibrary, getLists, getMcpDiscoveredTools, getNativeTools, getOrCreateTestSession, getPortableAgent, getPortableAgentSummary, getPortableAgentVersion, getPrompts, getRealtimeSession, getRealtimeTools, getSkill, getTemplates, getToolById, getToolDetail, getToolsBySourceKind, getToolsForApp, getUserPrompts, getUserPromptsAndBuiltins, getVariationBatches, getVersion, importDraft, importPreview, invalidateAgentCache, invokeTool, judgeFirstRuns, keepBuild, listAgents, listCategories, listContextOrganizations, listModels, listScenarios, listTools, listVersions, mockStream, patchCategory, patchSkill, postAgentCatalogRpc, previewAnswerBoth, previewContext, previewVariableBinding, promptMatrixPaths, putLibrary, putLists, putPrompts, putTemplates, putVariationBatches, readBuild, readDirectiveApplyState, renderContext, resolvePromptBlocks, runAgentTests, runMatrixBattle, screenRun, skillsListSkills, startAgentBlocks, startBuild, startMandatedAgent, startPrompt, toolDetail, toolTestingListTools, updateAgent, updateTool, validateAll, validateSchema, warmAgent, warmAgentBlocks, warmPrompt };
package/dist/agents.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream, openStream } from './chunk-FLANGLCG.js';
1
+ import { openJsonOrStream, openStream } from './chunk-ILLQUHLF.js';
2
2
  import './chunk-PIPE5OML.js';
3
3
 
4
4
  // src/generated/agents.ts
@@ -42,6 +42,10 @@ var $getToolById = { m: "GET", p: "/ai-tools/{tool_id}", d: "aidream", a: "guest
42
42
  function getToolById(api, args, options) {
43
43
  return api.call($getToolById, args, options);
44
44
  }
45
+ var $resolvePromptBlocks = { m: "GET", p: "/prompt-blocks/resolve", d: "aidream", a: "guest", o: "optional", n: "agents.resolve_prompt_blocks" };
46
+ function resolvePromptBlocks(api, args, options) {
47
+ return api.call($resolvePromptBlocks, args, options);
48
+ }
45
49
  var $agentsStartAgent = { m: "POST", p: "/ai/agent/{agent_id}", d: "aidream", a: "guest", o: "required", s: "ndjson_or_json", n: "agents.agents_start_agent" };
46
50
  function agentsStartAgent(api, args, options) {
47
51
  return openJsonOrStream(api, $agentsStartAgent, args, options);
@@ -206,26 +210,34 @@ var $validateSchema = { m: "POST", p: "/agent-service/validate-schema", d: "aidr
206
210
  function validateSchema(api, args, options) {
207
211
  return api.call($validateSchema, args, options);
208
212
  }
209
- var $startBuild = { m: "POST", p: "/agent-factory/builds", d: "aidream", a: "user", o: "required", n: "agents.start_build" };
213
+ var $startBuild = { m: "POST", p: "/agent-factory/builds", d: "aidream", a: "guest", o: "required", n: "agents.start_build" };
210
214
  function startBuild(api, args, options) {
211
215
  return api.call($startBuild, args, options);
212
216
  }
213
- var $readBuild = { m: "GET", p: "/agent-factory/builds/{build_id}", d: "aidream", a: "user", o: "required", n: "agents.read_build" };
217
+ var $readBuild = { m: "GET", p: "/agent-factory/builds/{build_id}", d: "aidream", a: "guest", o: "required", n: "agents.read_build" };
214
218
  function readBuild(api, args, options) {
215
219
  return api.call($readBuild, args, options);
216
220
  }
217
- var $keepBuild = { m: "POST", p: "/agent-factory/builds/{build_id}/keep", d: "aidream", a: "user", o: "required", n: "agents.keep_build" };
221
+ var $keepBuild = { m: "POST", p: "/agent-factory/builds/{build_id}/keep", d: "aidream", a: "guest", o: "required", n: "agents.keep_build" };
218
222
  function keepBuild(api, args, options) {
219
223
  return api.call($keepBuild, args, options);
220
224
  }
221
- var $judgeFirstRuns = { m: "POST", p: "/agent-factory/agents/{agent_id}/first-runs", d: "aidream", a: "user", o: "required", n: "agents.judge_first_runs" };
225
+ var $judgeFirstRuns = { m: "POST", p: "/agent-factory/agents/{agent_id}/first-runs", d: "aidream", a: "guest", o: "required", n: "agents.judge_first_runs" };
222
226
  function judgeFirstRuns(api, args, options) {
223
227
  return api.call($judgeFirstRuns, args, options);
224
228
  }
225
- var $agentFromChat = { m: "POST", p: "/agent-studio/from-chat", d: "aidream", a: "user", o: "required", s: "ndjson", n: "agents.agent_from_chat" };
229
+ var $agentFromChat = { m: "POST", p: "/agent-studio/from-chat", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "agents.agent_from_chat" };
226
230
  function agentFromChat(api, args, options) {
227
231
  return openStream(api, $agentFromChat, args, options);
228
232
  }
233
+ var $importPreview = { m: "POST", p: "/agent-studio/import/preview", d: "aidream", a: "guest", o: "required", n: "agents.import_preview" };
234
+ function importPreview(api, args, options) {
235
+ return api.call($importPreview, args, options);
236
+ }
237
+ var $importDraft = { m: "GET", p: "/agent-studio/import/draft/{draft_id}", d: "aidream", a: "guest", o: "required", n: "agents.import_draft" };
238
+ function importDraft(api, args, options) {
239
+ return api.call($importDraft, args, options);
240
+ }
229
241
  var $adminAgentFromChat = { m: "POST", p: "/admin/agent-studio/from-chat", d: "aidream", a: "admin", o: "exempt", s: "ndjson", n: "agents.admin_agent_from_chat" };
230
242
  function adminAgentFromChat(api, args, options) {
231
243
  return openStream(api, $adminAgentFromChat, args, options);
@@ -409,6 +421,7 @@ var TABLE = {
409
421
  "GET /ai-tools/mcp-discovered/all": $getMcpDiscoveredTools,
410
422
  "GET /ai-tools/app/{executor_name}/all": $getToolsForApp,
411
423
  "GET /ai-tools/{tool_id}": $getToolById,
424
+ "GET /prompt-blocks/resolve": $resolvePromptBlocks,
412
425
  "POST /ai/agents/{agent_id}/invalidate-cache": $invalidateAgentCache,
413
426
  "GET /ai/mock-stream/scenarios": $listScenarios,
414
427
  "GET /ai/prompts": $getUserPrompts,
@@ -448,6 +461,8 @@ var TABLE = {
448
461
  "GET /agent-factory/builds/{build_id}": $readBuild,
449
462
  "POST /agent-factory/builds/{build_id}/keep": $keepBuild,
450
463
  "POST /agent-factory/agents/{agent_id}/first-runs": $judgeFirstRuns,
464
+ "POST /agent-studio/import/preview": $importPreview,
465
+ "GET /agent-studio/import/draft/{draft_id}": $importDraft,
451
466
  "GET /admin/tools": $adminToolsListTools,
452
467
  "POST /admin/tools/validate": $validateAll,
453
468
  "GET /admin/tools/failures": $failureAnalytics,
@@ -493,4 +508,4 @@ function call(api, key, args, options) {
493
508
  return api.call(TABLE[key], args, options);
494
509
  }
495
510
 
496
- export { adminAgentFromChat, adminIngestFilesystem, adminToolsListTools, agentFromChat, agentServiceListSkills, agentServiceListTools, agentsStartAgent, agentsStartAgentPost, cacheBust, call, cancelMatrixBattle, confirmProposedDirective, contextDelivered, createAgent, createCategory, createSkill, createStructuredAgent, deleteCategory, deleteSkill, executeRealtimeToolRoute, executeToolTest, executeWriteDirective, failureAnalytics, getAgent, getAgentCatalog, getAgentCatalogStatus, getAgentExecution, getAgentExecutionDefinition, getAgentVersionExecutionDefinition, getAllPromptBuiltins, getAllTools, getCapabilityManifest, getDbSurfaceManifest, getDirectiveCatalog, getDirectiveNounSchemas, getLibrary, getLists, getMcpDiscoveredTools, getNativeTools, getOrCreateTestSession, getPortableAgent, getPortableAgentSummary, getPortableAgentVersion, getPrompts, getRealtimeSession, getRealtimeTools, getSkill, getTemplates, getToolById, getToolDetail, getToolsBySourceKind, getToolsForApp, getUserPrompts, getUserPromptsAndBuiltins, getVariationBatches, getVersion, invalidateAgentCache, invokeTool, judgeFirstRuns, keepBuild, listAgents, listCategories, listContextOrganizations, listModels, listScenarios, listTools, listVersions, mockStream, patchCategory, patchSkill, postAgentCatalogRpc, previewAnswerBoth, previewContext, previewVariableBinding, promptMatrixPaths, putLibrary, putLists, putPrompts, putTemplates, putVariationBatches, readBuild, readDirectiveApplyState, renderContext, runAgentTests, runMatrixBattle, screenRun, skillsListSkills, startAgentBlocks, startBuild, startMandatedAgent, startPrompt, toolDetail, toolTestingListTools, updateAgent, updateTool, validateAll, validateSchema, warmAgent, warmAgentBlocks, warmPrompt };
511
+ export { adminAgentFromChat, adminIngestFilesystem, adminToolsListTools, agentFromChat, agentServiceListSkills, agentServiceListTools, agentsStartAgent, agentsStartAgentPost, cacheBust, call, cancelMatrixBattle, confirmProposedDirective, contextDelivered, createAgent, createCategory, createSkill, createStructuredAgent, deleteCategory, deleteSkill, executeRealtimeToolRoute, executeToolTest, executeWriteDirective, failureAnalytics, getAgent, getAgentCatalog, getAgentCatalogStatus, getAgentExecution, getAgentExecutionDefinition, getAgentVersionExecutionDefinition, getAllPromptBuiltins, getAllTools, getCapabilityManifest, getDbSurfaceManifest, getDirectiveCatalog, getDirectiveNounSchemas, getLibrary, getLists, getMcpDiscoveredTools, getNativeTools, getOrCreateTestSession, getPortableAgent, getPortableAgentSummary, getPortableAgentVersion, getPrompts, getRealtimeSession, getRealtimeTools, getSkill, getTemplates, getToolById, getToolDetail, getToolsBySourceKind, getToolsForApp, getUserPrompts, getUserPromptsAndBuiltins, getVariationBatches, getVersion, importDraft, importPreview, invalidateAgentCache, invokeTool, judgeFirstRuns, keepBuild, listAgents, listCategories, listContextOrganizations, listModels, listScenarios, listTools, listVersions, mockStream, patchCategory, patchSkill, postAgentCatalogRpc, previewAnswerBoth, previewContext, previewVariableBinding, promptMatrixPaths, putLibrary, putLists, putPrompts, putTemplates, putVariationBatches, readBuild, readDirectiveApplyState, renderContext, resolvePromptBlocks, runAgentTests, runMatrixBattle, screenRun, skillsListSkills, startAgentBlocks, startBuild, startMandatedAgent, startPrompt, toolDetail, toolTestingListTools, updateAgent, updateTool, validateAll, validateSchema, warmAgent, warmAgentBlocks, warmPrompt };
package/dist/ai.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSPASYIUH_cjs = require('./chunk-SPASYIUH.cjs');
3
+ var chunkU63KIQSS_cjs = require('./chunk-U63KIQSS.cjs');
4
4
  require('./chunk-PKYPPATQ.cjs');
5
5
 
6
6
  // src/generated/ai.ts
@@ -40,7 +40,7 @@ var $refreshProviderModels = { m: "POST", p: "/admin/ai-catalog/provider-models/
40
40
  function refreshProviderModels(api, args, options) {
41
41
  return api.call($refreshProviderModels, args, options);
42
42
  }
43
- var $runSettingsProbe = { m: "POST", p: "/admin/ai-catalog/settings-probe", d: "aidream", a: "admin", o: "exempt", n: "ai.run_settings_probe" };
43
+ var $runSettingsProbe = { m: "POST", p: "/admin/ai-catalog/settings-probe", d: "aidream", a: "admin", o: "required", n: "ai.run_settings_probe" };
44
44
  function runSettingsProbe(api, args, options) {
45
45
  return api.call($runSettingsProbe, args, options);
46
46
  }
@@ -54,7 +54,7 @@ function listModels(api, args, options) {
54
54
  }
55
55
  var $chatCompletions = { m: "POST", p: "/v1/chat/completions", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse_or_json", n: "ai.chat_completions" };
56
56
  function chatCompletions(api, args, options) {
57
- return chunkSPASYIUH_cjs.openJsonOrStream(api, $chatCompletions, args, options);
57
+ return chunkU63KIQSS_cjs.openJsonOrStream(api, $chatCompletions, args, options);
58
58
  }
59
59
  var $audioSpeech = { m: "POST", p: "/v1/audio/speech", d: "matrx-local", a: "loopback_token", o: "exempt", n: "ai.audio_speech" };
60
60
  function audioSpeech(api, args, options) {
package/dist/ai.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-Gj30ybjE.cjs';
1
+ import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-BSrN3TFD.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
7
+ * CONTRACT_SHA256 2516265e2f8f78e7709d9315a452303f8c16b9ff2cddf7e89ab0ef55a93eaf31
8
8
  */
9
9
 
10
10
  /** AgentUsageReportResponse */
@@ -391,7 +391,7 @@ type RunSettingsProbeArgs = {
391
391
  };
392
392
  type RunSettingsProbeResult = SettingsProbeResponse;
393
393
  /** Run Settings Probe */
394
- /** `POST /admin/ai-catalog/settings-probe` · aidream · auth admin · org exempt */
394
+ /** `POST /admin/ai-catalog/settings-probe` · aidream · auth admin · org required */
395
395
  declare function runSettingsProbe(api: Api, args: RunSettingsProbeArgs, options?: CallOptions): Promise<RunSettingsProbeResult>;
396
396
  type AnalyzeRepoArgs = {
397
397
  body: AnalyzeRequest_MatrxLocal;
package/dist/ai.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-Gj30ybjE.js';
1
+ import { A as Api, C as CallOptions, J as JsonOrStream, S as SseEvent } from './index-BSrN3TFD.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
7
+ * CONTRACT_SHA256 2516265e2f8f78e7709d9315a452303f8c16b9ff2cddf7e89ab0ef55a93eaf31
8
8
  */
9
9
 
10
10
  /** AgentUsageReportResponse */
@@ -391,7 +391,7 @@ type RunSettingsProbeArgs = {
391
391
  };
392
392
  type RunSettingsProbeResult = SettingsProbeResponse;
393
393
  /** Run Settings Probe */
394
- /** `POST /admin/ai-catalog/settings-probe` · aidream · auth admin · org exempt */
394
+ /** `POST /admin/ai-catalog/settings-probe` · aidream · auth admin · org required */
395
395
  declare function runSettingsProbe(api: Api, args: RunSettingsProbeArgs, options?: CallOptions): Promise<RunSettingsProbeResult>;
396
396
  type AnalyzeRepoArgs = {
397
397
  body: AnalyzeRequest_MatrxLocal;
package/dist/ai.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openJsonOrStream } from './chunk-FLANGLCG.js';
1
+ import { openJsonOrStream } from './chunk-ILLQUHLF.js';
2
2
  import './chunk-PIPE5OML.js';
3
3
 
4
4
  // src/generated/ai.ts
@@ -38,7 +38,7 @@ var $refreshProviderModels = { m: "POST", p: "/admin/ai-catalog/provider-models/
38
38
  function refreshProviderModels(api, args, options) {
39
39
  return api.call($refreshProviderModels, args, options);
40
40
  }
41
- var $runSettingsProbe = { m: "POST", p: "/admin/ai-catalog/settings-probe", d: "aidream", a: "admin", o: "exempt", n: "ai.run_settings_probe" };
41
+ var $runSettingsProbe = { m: "POST", p: "/admin/ai-catalog/settings-probe", d: "aidream", a: "admin", o: "required", n: "ai.run_settings_probe" };
42
42
  function runSettingsProbe(api, args, options) {
43
43
  return api.call($runSettingsProbe, args, options);
44
44
  }
package/dist/apps.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSPASYIUH_cjs = require('./chunk-SPASYIUH.cjs');
3
+ var chunkU63KIQSS_cjs = require('./chunk-U63KIQSS.cjs');
4
4
  require('./chunk-PKYPPATQ.cjs');
5
5
 
6
6
  // src/generated/apps.ts
@@ -218,7 +218,7 @@ function getInstallStatus(api, args, options) {
218
218
  }
219
219
  var $streamInstallProgress = { m: "GET", p: "/capabilities/install/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "apps.stream_install_progress" };
220
220
  function streamInstallProgress(api, args, options) {
221
- return chunkSPASYIUH_cjs.openStream(api, $streamInstallProgress, args, options);
221
+ return chunkU63KIQSS_cjs.openStream(api, $streamInstallProgress, args, options);
222
222
  }
223
223
  var $tunnelStatus = { m: "GET", p: "/tunnel/status", d: "matrx-local", a: "public", o: "exempt", n: "apps.tunnel_status" };
224
224
  function tunnelStatus(api, args, options) {
@@ -238,15 +238,15 @@ function getSetupStatus(api, args, options) {
238
238
  }
239
239
  var $runInstall = { m: "POST", p: "/setup/install", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.run_install" };
240
240
  function runInstall(api, args, options) {
241
- return chunkSPASYIUH_cjs.openStream(api, $runInstall, args, options);
241
+ return chunkU63KIQSS_cjs.openStream(api, $runInstall, args, options);
242
242
  }
243
243
  var $installTranscription = { m: "POST", p: "/setup/install-transcription", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.install_transcription" };
244
244
  function installTranscription(api, args, options) {
245
- return chunkSPASYIUH_cjs.openStream(api, $installTranscription, args, options);
245
+ return chunkU63KIQSS_cjs.openStream(api, $installTranscription, args, options);
246
246
  }
247
247
  var $streamLogs = { m: "GET", p: "/setup/logs", d: "matrx-local", a: "loopback_open", o: "exempt", s: "sse", n: "apps.stream_logs" };
248
248
  function streamLogs(api, args, options) {
249
- return chunkSPASYIUH_cjs.openStream(api, $streamLogs, args, options);
249
+ return chunkU63KIQSS_cjs.openStream(api, $streamLogs, args, options);
250
250
  }
251
251
  var $debugState = { m: "GET", p: "/setup/debug", d: "matrx-local", a: "loopback_open", o: "exempt", n: "apps.debug_state" };
252
252
  function debugState(api, args, options) {
package/dist/apps.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-Gj30ybjE.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-BSrN3TFD.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
7
+ * CONTRACT_SHA256 2516265e2f8f78e7709d9315a452303f8c16b9ff2cddf7e89ab0ef55a93eaf31
8
8
  */
9
9
 
10
10
  /** ApiKeySetRequest */
package/dist/apps.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-Gj30ybjE.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, S as SseEvent } from './index-BSrN3TFD.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 7a09c07daad8cd41c7ae301d9ce90aace006a8f2d3a21dde98885807e5881da5
7
+ * CONTRACT_SHA256 2516265e2f8f78e7709d9315a452303f8c16b9ff2cddf7e89ab0ef55a93eaf31
8
8
  */
9
9
 
10
10
  /** ApiKeySetRequest */
package/dist/apps.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-FLANGLCG.js';
1
+ import { openStream } from './chunk-ILLQUHLF.js';
2
2
  import './chunk-PIPE5OML.js';
3
3
 
4
4
  // src/generated/apps.ts