@opencxh/domain 1.136.0 → 1.141.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.
- package/dist/entities/artifact/blocks.d.ts +168 -0
- package/dist/entities/artifact/blocks.test.d.ts +1 -0
- package/dist/entities/artifact/index.d.ts +3 -0
- package/dist/entities/artifact/markdown.d.ts +7 -0
- package/dist/entities/artifact/markdown.test.d.ts +1 -0
- package/dist/entities/artifact/types.d.ts +128 -0
- package/dist/index.cjs +14 -8
- package/dist/index.d.ts +1 -0
- package/dist/index.js +757 -417
- package/dist/platform/ai-tools.d.ts +25 -0
- package/dist/platform/routing.d.ts +25 -0
- package/dist/platform/routing.test.d.ts +1 -0
- package/package.json +1 -1
|
@@ -155,6 +155,31 @@ export interface AiToolDescriptor extends AiTool {
|
|
|
155
155
|
export interface AiToolInvokeRequest {
|
|
156
156
|
tool: string;
|
|
157
157
|
arguments?: Record<string, unknown>;
|
|
158
|
+
/**
|
|
159
|
+
* Wat er in déze beurt al gebeurd is, voor een tool die niet alleen zijn eigen
|
|
160
|
+
* argumenten nodig heeft maar ook de context waarin hij wordt aangeroepen.
|
|
161
|
+
*
|
|
162
|
+
* Optioneel en additief, net als de extra velden op {@link AiToolDescriptor}:
|
|
163
|
+
* een tool die dit negeert gedraagt zich exact als voorheen.
|
|
164
|
+
*
|
|
165
|
+
* De aanleiding is bronvermelding die klopt. De runner verzamelt al de
|
|
166
|
+
* {@link ToolSource}s van álle tools in een beurt, maar het invoke-contract
|
|
167
|
+
* droeg alleen `{tool, arguments}` — dus een tool die iets *bewaart* (een
|
|
168
|
+
* artefact, een geheugen-item) kon niet vastleggen waar het uit is opgebouwd.
|
|
169
|
+
* Het model ernaar laten raden levert verzonnen bronvermelding op, precies wat
|
|
170
|
+
* `ToolSource` moest voorkomen.
|
|
171
|
+
*/
|
|
172
|
+
turn?: AiToolTurnContext;
|
|
173
|
+
}
|
|
174
|
+
/** Zie {@link AiToolInvokeRequest.turn}. */
|
|
175
|
+
export interface AiToolTurnContext {
|
|
176
|
+
/** Het gesprek waarin deze beurt loopt, als er een is. */
|
|
177
|
+
conversationId?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Wat er tot nu toe in deze beurt is geraadpleegd, ontdubbeld. Bevat **niet**
|
|
180
|
+
* de resultaten van deze call zelf — die bestaan nog niet.
|
|
181
|
+
*/
|
|
182
|
+
sources?: ToolSource[];
|
|
158
183
|
}
|
|
159
184
|
/** One step in the assistant's tool-use trace, persisted on the message. */
|
|
160
185
|
export interface ToolTraceEntry {
|
|
@@ -14,3 +14,28 @@ export interface NamespacedRouteDefinition extends RouteDefinition {
|
|
|
14
14
|
/** The full, namespaced path, e.g., /apps/my-app/settings */
|
|
15
15
|
absolutePath: string;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* The app that owns the login screen. Landing there is never a destination —
|
|
19
|
+
* it is where you get sent when you have no session yet.
|
|
20
|
+
*/
|
|
21
|
+
export declare const AUTH_APP_NAME = "auth";
|
|
22
|
+
/**
|
|
23
|
+
* The app that owns this path, or null when the path names no app.
|
|
24
|
+
*
|
|
25
|
+
* Tolerates a missing path on purpose: one caller is a router bridge that has
|
|
26
|
+
* not been bound yet, and it asks from inside an RxJS subscriber — where a
|
|
27
|
+
* thrown TypeError takes the subscription down without a word.
|
|
28
|
+
*/
|
|
29
|
+
export declare function appNameFromPath(path: string | null | undefined): string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Does this landing path say where the user wanted to go?
|
|
32
|
+
*
|
|
33
|
+
* Asked at startup by everything that would otherwise send the user somewhere
|
|
34
|
+
* of its own choosing. It has to be one shared answer: the shell and the module
|
|
35
|
+
* loader both used to decide this, and the loader's "go to the default app"
|
|
36
|
+
* simply ran last and overwrote whatever URL you had opened.
|
|
37
|
+
*
|
|
38
|
+
* `/wake` counts — the service worker lands there with a provider in the query
|
|
39
|
+
* and `WakeRoute` routes onward itself.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isDeepLink(path: string | null | undefined): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|