@deepseek-ai/dsh-cordis-client-runner 0.2.1-rc.3 → 0.2.2-alpha.2
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/README.i18n.yaml +2 -2
- package/README.md +2 -1
- package/README.zh.md +2 -1
- package/lib/client.js +432 -288
- package/lib/types/client/index.d.ts +0 -1
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +10 -9
- package/lib/types/client/timer.d.ts +0 -84
package/lib/client.js
CHANGED
|
@@ -26,9 +26,165 @@ window.__ModuleLoader__.load({
|
|
|
26
26
|
enumerable: true
|
|
27
27
|
}) : target, mod));
|
|
28
28
|
//#endregion
|
|
29
|
+
let _deepseek_ai_cordis = require("@deepseek-ai/cordis");
|
|
29
30
|
let react = require("react");
|
|
30
31
|
react = __toESM(react, 1);
|
|
31
|
-
|
|
32
|
+
//#region ../../../vendor/timer/src/index.ts
|
|
33
|
+
/** Disposable timer helpers mixed into Cordis contexts. */
|
|
34
|
+
var TimerService = class extends _deepseek_ai_cordis.Service {
|
|
35
|
+
constructor(ctx) {
|
|
36
|
+
super(ctx, "timer");
|
|
37
|
+
ctx.mixin("timer", [
|
|
38
|
+
"timeout",
|
|
39
|
+
"interval",
|
|
40
|
+
"throttle",
|
|
41
|
+
"debounce",
|
|
42
|
+
"setTimeout",
|
|
43
|
+
"setInterval"
|
|
44
|
+
]);
|
|
45
|
+
}
|
|
46
|
+
/** @deprecated use `ctx.timeout()` instead */
|
|
47
|
+
setTimeout(callback, delay) {
|
|
48
|
+
return this.timeout(callback, delay);
|
|
49
|
+
}
|
|
50
|
+
/** @deprecated use `ctx.interval()` instead */
|
|
51
|
+
setInterval(callback, delay) {
|
|
52
|
+
return this.interval(callback, delay);
|
|
53
|
+
}
|
|
54
|
+
timeout(...args) {
|
|
55
|
+
const callback = typeof args[0] === "function" ? args.shift() : void 0;
|
|
56
|
+
const delay = args[0];
|
|
57
|
+
if (callback) {
|
|
58
|
+
const dispose = this.ctx.effect(() => {
|
|
59
|
+
const timer = setTimeout(() => {
|
|
60
|
+
dispose();
|
|
61
|
+
callback();
|
|
62
|
+
}, delay);
|
|
63
|
+
return () => clearTimeout(timer);
|
|
64
|
+
}, "ctx.timeout()");
|
|
65
|
+
return dispose;
|
|
66
|
+
} else {
|
|
67
|
+
const { promise, resolve, reject } = Promise.withResolvers();
|
|
68
|
+
const dispose = this.ctx.effect(() => {
|
|
69
|
+
const timer = setTimeout(resolve, delay);
|
|
70
|
+
return () => {
|
|
71
|
+
clearTimeout(timer);
|
|
72
|
+
reject(/* @__PURE__ */ new Error("Context has been disposed"));
|
|
73
|
+
};
|
|
74
|
+
}, "ctx.timeout()");
|
|
75
|
+
return promise.finally(dispose);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
interval(...args) {
|
|
79
|
+
const callback = typeof args[0] === "function" ? args.shift() : void 0;
|
|
80
|
+
const delay = args[0];
|
|
81
|
+
if (callback) return this.ctx.effect(() => {
|
|
82
|
+
const timer = setInterval(callback, delay);
|
|
83
|
+
return () => clearInterval(timer);
|
|
84
|
+
}, "ctx.interval()");
|
|
85
|
+
else {
|
|
86
|
+
let done;
|
|
87
|
+
const nextTasks = [];
|
|
88
|
+
const dispose = this.ctx.effect(() => {
|
|
89
|
+
const timer = setInterval(() => {
|
|
90
|
+
nextTasks.shift()?.resolve({
|
|
91
|
+
done: false,
|
|
92
|
+
value: void 0
|
|
93
|
+
});
|
|
94
|
+
}, delay);
|
|
95
|
+
return () => {
|
|
96
|
+
clearInterval(timer);
|
|
97
|
+
if (done) return;
|
|
98
|
+
done = {
|
|
99
|
+
kind: "throw",
|
|
100
|
+
reason: /* @__PURE__ */ new Error("Context has been disposed")
|
|
101
|
+
};
|
|
102
|
+
for (const task of nextTasks.splice(0)) task.reject(done.reason);
|
|
103
|
+
};
|
|
104
|
+
}, "ctx.interval()");
|
|
105
|
+
return {
|
|
106
|
+
next: () => {
|
|
107
|
+
if (!done) {
|
|
108
|
+
const task = Promise.withResolvers();
|
|
109
|
+
nextTasks.push(task);
|
|
110
|
+
return task.promise;
|
|
111
|
+
}
|
|
112
|
+
if (done.kind === "return") return Promise.resolve({
|
|
113
|
+
done: true,
|
|
114
|
+
value: done.value
|
|
115
|
+
});
|
|
116
|
+
return Promise.reject(done.reason);
|
|
117
|
+
},
|
|
118
|
+
return: (value) => {
|
|
119
|
+
if (!done) done = {
|
|
120
|
+
kind: "return",
|
|
121
|
+
value
|
|
122
|
+
};
|
|
123
|
+
for (const task of nextTasks.splice(0)) task.resolve({
|
|
124
|
+
done: true,
|
|
125
|
+
value
|
|
126
|
+
});
|
|
127
|
+
dispose();
|
|
128
|
+
return Promise.resolve({
|
|
129
|
+
done: true,
|
|
130
|
+
value
|
|
131
|
+
});
|
|
132
|
+
},
|
|
133
|
+
throw: (reason) => {
|
|
134
|
+
if (!done) done = {
|
|
135
|
+
kind: "throw",
|
|
136
|
+
reason
|
|
137
|
+
};
|
|
138
|
+
for (const task of nextTasks.splice(0)) task.reject(reason);
|
|
139
|
+
dispose();
|
|
140
|
+
return Promise.resolve({
|
|
141
|
+
done: true,
|
|
142
|
+
value: void 0
|
|
143
|
+
});
|
|
144
|
+
},
|
|
145
|
+
[Symbol.asyncIterator]() {
|
|
146
|
+
return this;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
_schedule(label, trigger) {
|
|
152
|
+
let timer;
|
|
153
|
+
let isDisposed = false;
|
|
154
|
+
const dispose = this.ctx.effect(() => () => {
|
|
155
|
+
isDisposed = true;
|
|
156
|
+
clearTimeout(timer);
|
|
157
|
+
timer = void 0;
|
|
158
|
+
}, label);
|
|
159
|
+
const wrapper = (...args) => {
|
|
160
|
+
if (isDisposed) return;
|
|
161
|
+
clearTimeout(timer);
|
|
162
|
+
timer = trigger(args);
|
|
163
|
+
};
|
|
164
|
+
wrapper.dispose = dispose;
|
|
165
|
+
return wrapper;
|
|
166
|
+
}
|
|
167
|
+
/** Return a throttled function whose timer is disposed with the current fiber. */
|
|
168
|
+
throttle(callback, delay, noTrailing) {
|
|
169
|
+
let lastCall = -Infinity;
|
|
170
|
+
const execute = (...args) => {
|
|
171
|
+
lastCall = Date.now();
|
|
172
|
+
callback(...args);
|
|
173
|
+
};
|
|
174
|
+
return this._schedule("ctx.throttle()", (args) => {
|
|
175
|
+
const remaining = delay - Date.now() + lastCall;
|
|
176
|
+
if (remaining <= 0) execute(...args);
|
|
177
|
+
else if (!noTrailing) return setTimeout(execute, remaining, ...args);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/** Return a debounced function whose timer is disposed with the current fiber. */
|
|
181
|
+
debounce(callback, delay) {
|
|
182
|
+
return this._schedule("ctx.debounce()", (args) => {
|
|
183
|
+
return setTimeout(callback, delay, ...args);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
//#endregion
|
|
32
188
|
//#region lib/types/client/evaluator.js
|
|
33
189
|
/**
|
|
34
190
|
* Browser-half closure evaluation: the package source runs as the body of an
|
|
@@ -1211,14 +1367,14 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
1211
1367
|
throws: ["when fields are malformed, the id is occupied, or the fallback target is unknown or creates a cycle."]
|
|
1212
1368
|
},
|
|
1213
1369
|
{
|
|
1214
|
-
signature: "register<N extends Extract<keyof LocaleNamespaceMap, string>>(ns: N, dicts: Record<BuiltInLocaleId, LocaleDictOf<N>>): () => void",
|
|
1215
|
-
description: "Register a declared namespace's dictionaries, all locales in one call — the typed form: each dictionary is checked against the namespace's LocaleNamespaceMap key union (a missing or extra key is a compile error), and
|
|
1370
|
+
signature: "register<N extends Extract<keyof LocaleNamespaceMap, string>>( ns: N, dicts: Record<BuiltInLocaleId, LocaleDictOf<N>> & Record<LocaleId, LocaleDictOf<N>>, ): () => void",
|
|
1371
|
+
description: "Register a declared namespace's dictionaries, all locales in one call — the typed form: each dictionary is checked against the namespace's LocaleNamespaceMap key union (a missing or extra key is a compile error), and both baseline locales are required (bilingual balance enforced at registration). Duplicate (ns, locale) throws (single occupant; a namespace's texts have one owner). Registration bumps the revision so mounted outlets pick up late-arriving dictionaries.",
|
|
1216
1372
|
parameters: [{
|
|
1217
1373
|
name: "ns",
|
|
1218
1374
|
description: "a namespace merged into LocaleNamespaceMap."
|
|
1219
1375
|
}, {
|
|
1220
1376
|
name: "dicts",
|
|
1221
|
-
description: "complete dictionaries
|
|
1377
|
+
description: "complete baseline dictionaries and optional dictionaries for additional locale ids."
|
|
1222
1378
|
}],
|
|
1223
1379
|
returns: "disposer removing every locale registered by this call (idempotent)."
|
|
1224
1380
|
},
|
|
@@ -1430,7 +1586,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
1430
1586
|
description: "Register a theme. Duplicate id throws (single occupant per id; the built-in pair counts; `system` is a preference, not a registrable id).",
|
|
1431
1587
|
parameters: [{
|
|
1432
1588
|
name: "definition",
|
|
1433
|
-
description: "theme id, colorScheme,
|
|
1589
|
+
description: "theme id, colorScheme, alias-token overrides, and optional icon replacements; the runtime keeps a frozen copy of `icons`. Invalid icon replacements throw a `TypeError` naming the theme and icon."
|
|
1434
1590
|
}],
|
|
1435
1591
|
returns: "disposer. Disposing the theme backing the active preference resets the preference to the default so the UI never keeps tokens of an unregistered theme."
|
|
1436
1592
|
},
|
|
@@ -1474,12 +1630,12 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
1474
1630
|
parameters: []
|
|
1475
1631
|
},
|
|
1476
1632
|
{
|
|
1477
|
-
signature: "throttle<F extends (...args: any[]) =>
|
|
1633
|
+
signature: "throttle<F extends (...args: any[]) => any>(callback: F, delay: number, noTrailing?: boolean): ((...args: Parameters<F>) => void) & { dispose: () => void }",
|
|
1478
1634
|
description: "Return a throttled function whose timer is disposed with the current fiber.",
|
|
1479
1635
|
parameters: []
|
|
1480
1636
|
},
|
|
1481
1637
|
{
|
|
1482
|
-
signature: "debounce<F extends (...args: any[]) =>
|
|
1638
|
+
signature: "debounce<F extends (...args: any[]) => any>(callback: F, delay: number): ((...args: Parameters<F>) => void) & { dispose: () => void }",
|
|
1483
1639
|
description: "Return a debounced function whose timer is disposed with the current fiber.",
|
|
1484
1640
|
parameters: []
|
|
1485
1641
|
}
|
|
@@ -1539,7 +1695,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
1539
1695
|
},
|
|
1540
1696
|
{
|
|
1541
1697
|
signature: "connectWorkspace(workspaceId: WorkspaceId, options?: Pick<StartSessionOptions, 'agentPreset'>): Promise<SessionId>",
|
|
1542
|
-
description: "Resolve the Session for a new conversation in a Workspace: navigation names the first reusable blank member,
|
|
1698
|
+
description: "Resolve the Session for a new conversation in a Workspace: navigation names the first reusable blank member — listed in the Workspace, not archived, and listing no preset or the requested one — and the Host reuses it under the requested preset or its default, creating another Session when it reuses none. Concurrent calls for the same Workspace and preset share one attempt.",
|
|
1543
1699
|
parameters: [{
|
|
1544
1700
|
name: "workspaceId",
|
|
1545
1701
|
description: "target Workspace."
|
|
@@ -1751,7 +1907,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
1751
1907
|
},
|
|
1752
1908
|
{
|
|
1753
1909
|
name: "BeginSubmissionInput",
|
|
1754
|
-
declaration: "export interface BeginSubmissionInput {\n readonly mode: 'queue' | 'steer';\n readonly text: string;\n readonly attachments: readonly PendingSubmissionAttachment[];\n readonly onRetire?: (retirement: PendingSubmissionRetirement) => void;\n}"
|
|
1910
|
+
declaration: "export interface BeginSubmissionInput {\n readonly mode: 'queue' | 'steer';\n readonly text: string;\n readonly attachments: readonly PendingSubmissionAttachment[];\n readonly onAccept?: () => void;\n readonly onRetire?: (retirement: PendingSubmissionRetirement) => void;\n}"
|
|
1755
1911
|
},
|
|
1756
1912
|
{
|
|
1757
1913
|
name: "BoundActions",
|
|
@@ -1905,6 +2061,22 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
1905
2061
|
name: "HostObservable",
|
|
1906
2062
|
declaration: "export type HostObservable<T> = ObservableSnapshot<T>;"
|
|
1907
2063
|
},
|
|
2064
|
+
{
|
|
2065
|
+
name: "IconGlyph",
|
|
2066
|
+
declaration: "export type IconGlyph = keyof typeof ICON_ARTWORK;"
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
name: "IconReplacements",
|
|
2070
|
+
declaration: "export type IconReplacements = Readonly<Partial<Record<IconSymbolId, string>>>;"
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
name: "IconSymbolId",
|
|
2074
|
+
declaration: "export type IconSymbolId = `dsw-icon-${IconGlyph}-${IconWeight}`;"
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
name: "IconWeight",
|
|
2078
|
+
declaration: "export type IconWeight = 'regular' | 'medium';"
|
|
2079
|
+
},
|
|
1908
2080
|
{
|
|
1909
2081
|
name: "InjectFace",
|
|
1910
2082
|
declaration: "export type InjectFace<I extends object> = I extends {\n hooks: infer HS extends HooksSources;\n} ? I extends {\n keyedHooks: infer KS extends KeyedHooksSources;\n} ? Omit<I, 'hooks' | 'keyedHooks'> & PropsHooks<HS> & PropsKeyedHooks<KS> : Omit<I, 'hooks'> & PropsHooks<HS> : I extends {\n keyedHooks: infer KS extends KeyedHooksSources;\n} ? Omit<I, 'keyedHooks'> & PropsKeyedHooks<KS> : I;"
|
|
@@ -1915,7 +2087,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
1915
2087
|
},
|
|
1916
2088
|
{
|
|
1917
2089
|
name: "ISession",
|
|
1918
|
-
declaration: "export interface ISession {\n readonly sessionId: SessionId;\n readonly projections: ProjectionsFace;\n beginSubmission(input: BeginSubmissionInput): SubmissionHandle;\n prompt(content: PromptContentPart[], mode: 'queue' | 'steer', signal?: AbortSignal, requestId?: SessionRequestId): Promise<RemoteResult<{\n accepted: true;\n }>>;\n readAttachment(
|
|
2090
|
+
declaration: "export interface ISession {\n readonly sessionId: SessionId;\n readonly projections: ProjectionsFace;\n beginSubmission(input: BeginSubmissionInput): SubmissionHandle;\n prompt(content: PromptContentPart[], mode: 'queue' | 'steer', signal?: AbortSignal, requestId?: SessionRequestId): Promise<RemoteResult<{\n accepted: true;\n }>>;\n readAttachment(attachment: ImageAttachmentRef): Promise<RemoteResult<{\n attachment: ImageAttachmentRef;\n data: Uint8Array;\n }>>;\n updateQueue(itemId: MessageId, action: QueueAction): Promise<RemoteResult<{\n accepted: true;\n }>>;\n cancel(): Promise<RemoteResult<{\n accepted: true;\n }>>;\n rename(title: string): Promise<RemoteResult<{\n title: string;\n seq: SessionSeq;\n }>>;\n loadOlder(): Promise<void>;\n loadThrough(seq: SessionSeq): Promise<void>;\n command(line: string): Promise<RemoteResult<{\n matched: boolean;\n }>>;\n}"
|
|
1919
2091
|
},
|
|
1920
2092
|
{
|
|
1921
2093
|
name: "ISessions",
|
|
@@ -2171,7 +2343,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2171
2343
|
},
|
|
2172
2344
|
{
|
|
2173
2345
|
name: "SessionProjectionSnapshot",
|
|
2174
|
-
declaration: "export interface SessionProjectionSnapshot {\n readonly values: Readonly<Partial<
|
|
2346
|
+
declaration: "export interface SessionProjectionSnapshot {\n readonly values: Readonly<Partial<SessionProjectionViewValues>>;\n readonly state: 'idle' | 'loading' | 'ready' | 'migration-required' | 'error';\n readonly error: RemoteFailure | null;\n}"
|
|
2175
2347
|
},
|
|
2176
2348
|
{
|
|
2177
2349
|
name: "SessionProviderComponent",
|
|
@@ -2307,7 +2479,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2307
2479
|
},
|
|
2308
2480
|
{
|
|
2309
2481
|
name: "ThemeDefinition",
|
|
2310
|
-
declaration: "export interface ThemeDefinition {\n id: string;\n colorScheme: 'light' | 'dark';\n tokens: ThemeTokens;\n}"
|
|
2482
|
+
declaration: "export interface ThemeDefinition {\n id: string;\n colorScheme: 'light' | 'dark';\n tokens: ThemeTokens;\n icons?: IconReplacements | undefined;\n}"
|
|
2311
2483
|
},
|
|
2312
2484
|
{
|
|
2313
2485
|
name: "ThemePreference",
|
|
@@ -2464,11 +2636,11 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2464
2636
|
keyDomain: "",
|
|
2465
2637
|
hookContext: "",
|
|
2466
2638
|
slotInject: "",
|
|
2467
|
-
declaredBy: "
|
|
2639
|
+
declaredBy: "factory 'conversation.approval.card' (client-ui-approval), so it exists while that definition is registered",
|
|
2468
2640
|
occupants: ["client-ui-chat ApprovalCommand"],
|
|
2469
2641
|
replaceRisk: "shadows-shipped-ui",
|
|
2470
2642
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.approval.detail', () => ctx.slots.register(\n { name: 'conversation.approval.detail' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2471
|
-
source: "packages/client/ui-approval/src/client/contract/slots.ts:
|
|
2643
|
+
source: "packages/client/ui-approval/src/client/contract/slots.ts:47"
|
|
2472
2644
|
},
|
|
2473
2645
|
{
|
|
2474
2646
|
key: "conversation.chat.assistant-actions",
|
|
@@ -2525,7 +2697,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2525
2697
|
occupants: ["client-ui-message-feedback MessageFeedbackActions id 'feedback'"],
|
|
2526
2698
|
replaceRisk: "none",
|
|
2527
2699
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.assistant-actions', () => ctx.slots.register(\n { name: 'conversation.chat.assistant-actions', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2528
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
2700
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:482"
|
|
2529
2701
|
},
|
|
2530
2702
|
{
|
|
2531
2703
|
key: "conversation.chat.commandview",
|
|
@@ -2572,7 +2744,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2572
2744
|
occupants: [],
|
|
2573
2745
|
replaceRisk: "none",
|
|
2574
2746
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.commandview', () => ctx.slots.register(\n { name: 'conversation.chat.commandview', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2575
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
2747
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:464"
|
|
2576
2748
|
},
|
|
2577
2749
|
{
|
|
2578
2750
|
key: "conversation.chat.flow",
|
|
@@ -2614,7 +2786,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2614
2786
|
occupants: ["client-ui-chat ChatFlow"],
|
|
2615
2787
|
replaceRisk: "shadows-shipped-ui",
|
|
2616
2788
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.flow', () => ctx.slots.register(\n { name: 'conversation.chat.flow' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2617
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
2789
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:420"
|
|
2618
2790
|
},
|
|
2619
2791
|
{
|
|
2620
2792
|
key: "conversation.chat.message.images",
|
|
@@ -2623,7 +2795,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2623
2795
|
summary: "Renderer for one consecutive group of durable message images.",
|
|
2624
2796
|
doc: "Renderer for one consecutive group of durable message images. The owner\nsupplies image references, an authorized loader, and alignment. A\nregistration replaces the shipped gallery; without one, images are omitted.",
|
|
2625
2797
|
registerOptions: [],
|
|
2626
|
-
ownerProps: ["/** Message image group handed to the optional attachment presentation plugin. */\nexport interface MessageImagesOwnerProps {\n /** Durable references or submission-echo previews in source order. */\n images: readonly MessageImageSource[]\n /**
|
|
2798
|
+
ownerProps: ["/** Message image group handed to the optional attachment presentation plugin. */\nexport interface MessageImagesOwnerProps {\n /** Durable references or submission-echo previews in source order. */\n images: readonly MessageImageSource[]\n /** Gateway-authorized image URL loader for the durable arm. */\n loadImage: MessageImageLoader\n /** Horizontal placement inside the owning record. */\n align: 'start' | 'end'\n /** Force every image into the compact message-attachment tile size. */\n compact?: boolean\n /** Fixed, uncropped thumbnail for an attachment list row. */\n thumbnail?: boolean\n}"],
|
|
2627
2799
|
ownerPropsReferences: [
|
|
2628
2800
|
"Message",
|
|
2629
2801
|
"MessageImageLoader",
|
|
@@ -2656,7 +2828,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2656
2828
|
occupants: ["client-ui-attachment MessageImages"],
|
|
2657
2829
|
replaceRisk: "shadows-shipped-ui",
|
|
2658
2830
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.message.images', () => ctx.slots.register(\n { name: 'conversation.chat.message.images' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2659
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
2831
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:456"
|
|
2660
2832
|
},
|
|
2661
2833
|
{
|
|
2662
2834
|
key: "conversation.chat.node",
|
|
@@ -2725,7 +2897,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2725
2897
|
],
|
|
2726
2898
|
replaceRisk: "shadows-shipped-ui",
|
|
2727
2899
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.node', () => ctx.slots.register(\n { name: 'conversation.chat.node', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2728
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
2900
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:432"
|
|
2729
2901
|
},
|
|
2730
2902
|
{
|
|
2731
2903
|
key: "conversation.chat.reasoning.body",
|
|
@@ -2763,7 +2935,50 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2763
2935
|
occupants: ["client-ui-chat DefaultReasoningBody", "experimental-client-ui-cot-translation TranslationBody"],
|
|
2764
2936
|
replaceRisk: "shadows-shipped-ui",
|
|
2765
2937
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.reasoning.body', () => ctx.slots.register(\n { name: 'conversation.chat.reasoning.body' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2766
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
2938
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:470"
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
key: "conversation.chat.text-interaction",
|
|
2942
|
+
kind: "keyed",
|
|
2943
|
+
scope: "session",
|
|
2944
|
+
summary: "Area-local text gestures and surfaces; each consumer registers its own synchronous admission.",
|
|
2945
|
+
doc: "Area-local text gestures and surfaces; each consumer registers its own synchronous admission.",
|
|
2946
|
+
registerOptions: [{
|
|
2947
|
+
name: "key",
|
|
2948
|
+
requirement: "required",
|
|
2949
|
+
type: "string",
|
|
2950
|
+
doc: "Your cell key: the entry renders where the owner dispatches this exact key. Registering an already-occupied key replaces that occupant."
|
|
2951
|
+
}],
|
|
2952
|
+
ownerProps: ["/** Area-local actions provided to the currently selected plugin component. */\nexport interface TextInteractionSurface {\n readonly trigger: TextInteractionTrigger\n readonly dismiss: () => void\n readonly readText: () => string | null\n readonly clearSelection: () => void\n}"],
|
|
2953
|
+
ownerPropsReferences: ["TextInteractionTrigger"],
|
|
2954
|
+
standardProps: [
|
|
2955
|
+
"useRemoteAccess: (action: RemoteEndpoint) => boolean",
|
|
2956
|
+
"useResource: UseResource",
|
|
2957
|
+
"useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>",
|
|
2958
|
+
"usePanelInfo: UsePanelInfo",
|
|
2959
|
+
"useSessions: UseSessions",
|
|
2960
|
+
"useSessionStatus: UseSessionStatus",
|
|
2961
|
+
"useSessionRetainInfo: UseSessionRetainInfo",
|
|
2962
|
+
"useSessionAccess: (sessionId: SessionId, action: RemoteEndpoint) => boolean",
|
|
2963
|
+
"useWorkspaceAccess: (workspaceId: WorkspaceId, action: RemoteEndpoint) => boolean",
|
|
2964
|
+
"useChat: UseChat",
|
|
2965
|
+
"useConversation: UseConversation",
|
|
2966
|
+
"useInput: SnapshotSelectorHook<InputState>",
|
|
2967
|
+
"inputActions: InputActions",
|
|
2968
|
+
"useSession: SessionSnapshotSelector",
|
|
2969
|
+
"sessionId: SessionId",
|
|
2970
|
+
"useProjection: UseProjection",
|
|
2971
|
+
"useAccess: (action: RemoteEndpoint) => boolean",
|
|
2972
|
+
"useTrajectory: UseTrajectory"
|
|
2973
|
+
],
|
|
2974
|
+
keyDomain: "open: any string the owner dispatches (no compile-time key set), already taken: quote",
|
|
2975
|
+
hookContext: "",
|
|
2976
|
+
slotInject: "",
|
|
2977
|
+
declaredBy: "an entry in 'conversation.view' (client-ui-chat), so it exists while that entry is mounted",
|
|
2978
|
+
occupants: ["message-quotes QuoteSelectionAction key 'quote'"],
|
|
2979
|
+
replaceRisk: "shadows-shipped-ui",
|
|
2980
|
+
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.text-interaction', () => ctx.slots.register(\n { name: 'conversation.chat.text-interaction', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2981
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:417"
|
|
2767
2982
|
},
|
|
2768
2983
|
{
|
|
2769
2984
|
key: "conversation.chat.turnTail",
|
|
@@ -2820,11 +3035,55 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2820
3035
|
occupants: [
|
|
2821
3036
|
"client-ui-deliverables DeliverablesTail id '@deepseek-ai/dsh-client-ui-deliverables'",
|
|
2822
3037
|
"client-ui-plan PlanCards",
|
|
2823
|
-
"client-ui-schedule ScheduleTurnCard id 'schedule-created'"
|
|
3038
|
+
"client-ui-schedule ScheduleTurnCard id 'schedule-created'",
|
|
3039
|
+
"client-ui-action-cards ActionCardTail id '@deepseek-ai/dsh-client-ui-action-cards'"
|
|
2824
3040
|
],
|
|
2825
3041
|
replaceRisk: "none",
|
|
2826
3042
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.turnTail', () => ctx.slots.register(\n { name: 'conversation.chat.turnTail', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2827
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
3043
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:476"
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
key: "conversation.chat.user.before",
|
|
3047
|
+
kind: "chain",
|
|
3048
|
+
scope: "session",
|
|
3049
|
+
summary: "Message-source decoration owned and rendered by the user Node entry.",
|
|
3050
|
+
doc: "Message-source decoration owned and rendered by the user Node entry.\nSelectors elect one component from the durable source and row kind.\nNo match renders no visible content; steering and pending rows do not\nrender this slot.",
|
|
3051
|
+
registerOptions: [{
|
|
3052
|
+
name: "select",
|
|
3053
|
+
requirement: "required",
|
|
3054
|
+
type: "(owner) => unknown | null",
|
|
3055
|
+
doc: "Pure routing selector. Entries are tried in ascending order; the first non-null result wins and arrives as the component's `matched` prop. All-null falls through to the owner's fallback."
|
|
3056
|
+
}],
|
|
3057
|
+
ownerProps: ["/**\n * Owner currency of the message-source decoration above one user message bubble.\n *\n * Entry selectors receive the durable message `source` and row kind. A\n * non-null selection elects the component and reaches it as `matched`.\n * Entries own their markup and copy; Chat does not interpret the source.\n */\nexport interface UserBeforeOwnerProps {\n /** Durable message source; Chat does not interpret it. */\n readonly source: unknown\n /** Chat row kind that owns the decoration site. */\n readonly kind: 'user' | 'steering'\n}"],
|
|
3058
|
+
ownerPropsReferences: [],
|
|
3059
|
+
standardProps: [
|
|
3060
|
+
"useRemoteAccess: (action: RemoteEndpoint) => boolean",
|
|
3061
|
+
"useResource: UseResource",
|
|
3062
|
+
"useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>",
|
|
3063
|
+
"usePanelInfo: UsePanelInfo",
|
|
3064
|
+
"useSessions: UseSessions",
|
|
3065
|
+
"useSessionStatus: UseSessionStatus",
|
|
3066
|
+
"useSessionRetainInfo: UseSessionRetainInfo",
|
|
3067
|
+
"useSessionAccess: (sessionId: SessionId, action: RemoteEndpoint) => boolean",
|
|
3068
|
+
"useWorkspaceAccess: (workspaceId: WorkspaceId, action: RemoteEndpoint) => boolean",
|
|
3069
|
+
"useChat: UseChat",
|
|
3070
|
+
"useConversation: UseConversation",
|
|
3071
|
+
"useInput: SnapshotSelectorHook<InputState>",
|
|
3072
|
+
"inputActions: InputActions",
|
|
3073
|
+
"useSession: SessionSnapshotSelector",
|
|
3074
|
+
"sessionId: SessionId",
|
|
3075
|
+
"useProjection: UseProjection",
|
|
3076
|
+
"useAccess: (action: RemoteEndpoint) => boolean",
|
|
3077
|
+
"useTrajectory: UseTrajectory"
|
|
3078
|
+
],
|
|
3079
|
+
keyDomain: "",
|
|
3080
|
+
hookContext: "",
|
|
3081
|
+
slotInject: "",
|
|
3082
|
+
declaredBy: "an entry in 'conversation.chat.node' (client-ui-chat), so it exists while that entry is mounted",
|
|
3083
|
+
occupants: ["experimental-liveshare SharedSessionOrigin"],
|
|
3084
|
+
replaceRisk: "none",
|
|
3085
|
+
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.user.before', () => ctx.slots.register(\n { name: 'conversation.chat.user.before', select: owner => null },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3086
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:446"
|
|
2828
3087
|
},
|
|
2829
3088
|
{
|
|
2830
3089
|
key: "conversation.chat.user.images",
|
|
@@ -2833,7 +3092,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2833
3092
|
summary: "User-message images, including pending and local-echo previews, independently replaceable from output images.",
|
|
2834
3093
|
doc: "User-message images, including pending and local-echo previews, independently replaceable from output images.",
|
|
2835
3094
|
registerOptions: [],
|
|
2836
|
-
ownerProps: ["/** Message image group handed to the optional attachment presentation plugin. */\nexport interface MessageImagesOwnerProps {\n /** Durable references or submission-echo previews in source order. */\n images: readonly MessageImageSource[]\n /**
|
|
3095
|
+
ownerProps: ["/** Message image group handed to the optional attachment presentation plugin. */\nexport interface MessageImagesOwnerProps {\n /** Durable references or submission-echo previews in source order. */\n images: readonly MessageImageSource[]\n /** Gateway-authorized image URL loader for the durable arm. */\n loadImage: MessageImageLoader\n /** Horizontal placement inside the owning record. */\n align: 'start' | 'end'\n /** Force every image into the compact message-attachment tile size. */\n compact?: boolean\n /** Fixed, uncropped thumbnail for an attachment list row. */\n thumbnail?: boolean\n}"],
|
|
2837
3096
|
ownerPropsReferences: [
|
|
2838
3097
|
"Message",
|
|
2839
3098
|
"MessageImageLoader",
|
|
@@ -2866,7 +3125,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2866
3125
|
occupants: ["client-ui-attachment MessageImages"],
|
|
2867
3126
|
replaceRisk: "shadows-shipped-ui",
|
|
2868
3127
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.chat.user.images', () => ctx.slots.register(\n { name: 'conversation.chat.user.images' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2869
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
3128
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:458"
|
|
2870
3129
|
},
|
|
2871
3130
|
{
|
|
2872
3131
|
key: "conversation.composer",
|
|
@@ -2913,11 +3172,12 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2913
3172
|
occupants: [
|
|
2914
3173
|
"client-ui-approval ApprovalPanel",
|
|
2915
3174
|
"client-ui-subagent SubagentReadOnlyComposer",
|
|
2916
|
-
"client-ui-user-questions QuestionComposer"
|
|
3175
|
+
"client-ui-user-questions QuestionComposer",
|
|
3176
|
+
"cua ApplicationApproval"
|
|
2917
3177
|
],
|
|
2918
3178
|
replaceRisk: "none",
|
|
2919
3179
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.composer', () => ctx.slots.register(\n { name: 'conversation.composer', select: owner => null },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2920
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3180
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:280"
|
|
2921
3181
|
},
|
|
2922
3182
|
{
|
|
2923
3183
|
key: "conversation.composer.bar",
|
|
@@ -2953,7 +3213,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
2953
3213
|
occupants: ["client-ui-conversation InputBar"],
|
|
2954
3214
|
replaceRisk: "shadows-shipped-ui",
|
|
2955
3215
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.composer.bar', () => ctx.slots.register(\n { name: 'conversation.composer.bar' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
2956
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3216
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:302"
|
|
2957
3217
|
},
|
|
2958
3218
|
{
|
|
2959
3219
|
key: "conversation.composer.dock",
|
|
@@ -3010,7 +3270,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3010
3270
|
occupants: ["client-ui-chat ActivityPill id 'activity'", "client-ui-chat UsagePill id 'usage'"],
|
|
3011
3271
|
replaceRisk: "none",
|
|
3012
3272
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.composer.dock', () => ctx.slots.register(\n { name: 'conversation.composer.dock', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3013
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3273
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:294"
|
|
3014
3274
|
},
|
|
3015
3275
|
{
|
|
3016
3276
|
key: "conversation.header",
|
|
@@ -3046,7 +3306,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3046
3306
|
occupants: ["client-ui-conversation ConversationHeader"],
|
|
3047
3307
|
replaceRisk: "shadows-shipped-ui",
|
|
3048
3308
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.header', () => ctx.slots.register(\n { name: 'conversation.header' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3049
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3309
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:230"
|
|
3050
3310
|
},
|
|
3051
3311
|
{
|
|
3052
3312
|
key: "conversation.header.leading",
|
|
@@ -3075,7 +3335,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3075
3335
|
occupants: [],
|
|
3076
3336
|
replaceRisk: "none",
|
|
3077
3337
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.header.leading', () => ctx.slots.register(\n { name: 'conversation.header.leading' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3078
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3338
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:259"
|
|
3079
3339
|
},
|
|
3080
3340
|
{
|
|
3081
3341
|
key: "conversation.hero.agentPreset",
|
|
@@ -3111,7 +3371,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3111
3371
|
occupants: ["client-ui-agent-preset AgentPresetSeat"],
|
|
3112
3372
|
replaceRisk: "shadows-shipped-ui",
|
|
3113
3373
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.hero.agentPreset', () => ctx.slots.register(\n { name: 'conversation.hero.agentPreset' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3114
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3374
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:286"
|
|
3115
3375
|
},
|
|
3116
3376
|
{
|
|
3117
3377
|
key: "conversation.hero.brand.mark",
|
|
@@ -3140,7 +3400,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3140
3400
|
occupants: [],
|
|
3141
3401
|
replaceRisk: "none",
|
|
3142
3402
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.hero.brand.mark', () => ctx.slots.register(\n { name: 'conversation.hero.brand.mark' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3143
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3403
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:284"
|
|
3144
3404
|
},
|
|
3145
3405
|
{
|
|
3146
3406
|
key: "conversation.hero.options",
|
|
@@ -3194,10 +3454,10 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3194
3454
|
hookContext: "",
|
|
3195
3455
|
slotInject: "",
|
|
3196
3456
|
declaredBy: "factory 'conversation.content' (client-ui-conversation), so it exists while that definition is registered",
|
|
3197
|
-
occupants: [],
|
|
3457
|
+
occupants: ["experimental-client-ui-forge WorktreeToggle id 'forge-panel.worktree'"],
|
|
3198
3458
|
replaceRisk: "none",
|
|
3199
3459
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.hero.options', () => ctx.slots.register(\n { name: 'conversation.hero.options', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3200
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3460
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:288"
|
|
3201
3461
|
},
|
|
3202
3462
|
{
|
|
3203
3463
|
key: "conversation.hero.workspace",
|
|
@@ -3226,7 +3486,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3226
3486
|
occupants: ["client-ui-workspace WorkspacePicker"],
|
|
3227
3487
|
replaceRisk: "shadows-shipped-ui",
|
|
3228
3488
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.hero.workspace', () => ctx.slots.register(\n { name: 'conversation.hero.workspace' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3229
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3489
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:282"
|
|
3230
3490
|
},
|
|
3231
3491
|
{
|
|
3232
3492
|
key: "conversation.hero.workspace.directoryFlow",
|
|
@@ -3255,7 +3515,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3255
3515
|
occupants: ["client-ui-directory-picker-browse BrowseDirectoryFlow", "client-ui-directory-picker-native NativeDirectoryFlow"],
|
|
3256
3516
|
replaceRisk: "shadows-shipped-ui",
|
|
3257
3517
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.hero.workspace.directoryFlow', () => ctx.slots.register(\n { name: 'conversation.hero.workspace.directoryFlow' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3258
|
-
source: "packages/client/ui-workspace/src/client/contract/slots.ts:
|
|
3518
|
+
source: "packages/client/ui-workspace/src/client/contract/slots.ts:125"
|
|
3259
3519
|
},
|
|
3260
3520
|
{
|
|
3261
3521
|
key: "conversation.input.activity",
|
|
@@ -3293,7 +3553,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3293
3553
|
occupants: ["experimental-client-ui-voice-input VoiceInput"],
|
|
3294
3554
|
replaceRisk: "shadows-shipped-ui",
|
|
3295
3555
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.activity', () => ctx.slots.register(\n { name: 'conversation.input.activity' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3296
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3556
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:300"
|
|
3297
3557
|
},
|
|
3298
3558
|
{
|
|
3299
3559
|
key: "conversation.input.attachments",
|
|
@@ -3302,7 +3562,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3302
3562
|
summary: "Optional draft-attachment rail and drop target.",
|
|
3303
3563
|
doc: "Optional draft-attachment rail and drop target.",
|
|
3304
3564
|
registerOptions: [],
|
|
3305
|
-
ownerProps: ["/** Input state handed to the optional attachment presentation plugin. */\nexport interface ComposerAttachmentsOwnerProps {\n /** Browser-owned draft attachments in input order. */\n attachments: readonly ComposerAttachment[]\n /** Whether a document-level file drop may add attachments now. */\n canAcceptDrop: boolean\n /**\n * Add one dropped batch through the composer's validation path.\n * @param files - dropped, pasted, or picked browser files in source order.\n * @param directories - members of `files` the drop source identified as directories.\n */\n onAddFiles: (files: readonly File[], directories?: ReadonlySet<File>) => void\n /** Remove one draft attachment through the Conversation service. */\n onRemoveAttachment: (id: DraftAttachmentId) => void\n /** Current per-draft upload states for file-kind attachments. */\n uploads: DraftFileUploads\n /** Restart one failed file upload. */\n onRetryFile: (id: DraftAttachmentId) => void\n
|
|
3565
|
+
ownerProps: ["/** Input state handed to the optional attachment presentation plugin. */\nexport interface ComposerAttachmentsOwnerProps {\n /** Browser-owned draft attachments in input order. */\n attachments: readonly ComposerAttachment[]\n /** Whether a document-level file drop may add attachments now. */\n canAcceptDrop: boolean\n /**\n * Add one dropped batch through the composer's validation path.\n * @param files - dropped, pasted, or picked browser files in source order.\n * @param directories - members of `files` the drop source identified as directories.\n */\n onAddFiles: (files: readonly File[], directories?: ReadonlySet<File>) => void\n /** Remove one draft attachment through the Conversation service. */\n onRemoveAttachment: (id: DraftAttachmentId) => void\n /** Current per-draft upload states for file-kind attachments. */\n uploads: DraftFileUploads\n /** Restart one failed file upload. */\n onRetryFile: (id: DraftAttachmentId) => void\n /**\n * Explain one upload the Host refused; such a draft cannot be retried and\n * stays until it is removed.\n * @param reason - the refusal `reason` the failed upload carries.\n * @returns localized text naming the limit or the way out.\n /* …truncated — full shape in source */"],
|
|
3306
3566
|
ownerPropsReferences: [
|
|
3307
3567
|
"ComposerAttachment",
|
|
3308
3568
|
"DraftAttachmentId",
|
|
@@ -3333,7 +3593,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3333
3593
|
occupants: ["client-ui-attachment ComposerAttachments"],
|
|
3334
3594
|
replaceRisk: "shadows-shipped-ui",
|
|
3335
3595
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.attachments', () => ctx.slots.register(\n { name: 'conversation.input.attachments' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3336
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3596
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:304"
|
|
3337
3597
|
},
|
|
3338
3598
|
{
|
|
3339
3599
|
key: "conversation.input.dock",
|
|
@@ -3391,11 +3651,12 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3391
3651
|
"client-ui-conversation QueueDock id 'queue'",
|
|
3392
3652
|
"client-ui-conversation TodoDock id 'todo'",
|
|
3393
3653
|
"client-ui-goal GoalDock id 'goal'",
|
|
3394
|
-
"experimental-client-ui-claude-code-mods Band id 'claude-code-mods'"
|
|
3654
|
+
"experimental-client-ui-claude-code-mods Band id 'claude-code-mods'",
|
|
3655
|
+
"experimental-client-ui-forge WorktreeProgress id 'forge-panel.worktree'"
|
|
3395
3656
|
],
|
|
3396
3657
|
replaceRisk: "none",
|
|
3397
3658
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.dock', () => ctx.slots.register(\n { name: 'conversation.input.dock', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3398
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3659
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:290"
|
|
3399
3660
|
},
|
|
3400
3661
|
{
|
|
3401
3662
|
key: "conversation.input.left",
|
|
@@ -3452,7 +3713,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3452
3713
|
occupants: [],
|
|
3453
3714
|
replaceRisk: "none",
|
|
3454
3715
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.left', () => ctx.slots.register(\n { name: 'conversation.input.left', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3455
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3716
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:296"
|
|
3456
3717
|
},
|
|
3457
3718
|
{
|
|
3458
3719
|
key: "conversation.input.model",
|
|
@@ -3487,17 +3748,17 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3487
3748
|
hookContext: "",
|
|
3488
3749
|
slotInject: "",
|
|
3489
3750
|
declaredBy: "an entry in 'conversation.composer.bar' (client-ui-conversation), so it exists while that entry is mounted",
|
|
3490
|
-
occupants: ["client-ui-model-selection ModelSelect"],
|
|
3751
|
+
occupants: ["client-ui-model-selection ModelSelect", "experimental-liveshare ViewerModelSeat"],
|
|
3491
3752
|
replaceRisk: "shadows-shipped-ui",
|
|
3492
3753
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.model', () => ctx.slots.register(\n { name: 'conversation.input.model' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3493
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3754
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:318"
|
|
3494
3755
|
},
|
|
3495
3756
|
{
|
|
3496
3757
|
key: "conversation.input.model.label",
|
|
3497
3758
|
kind: "single",
|
|
3498
3759
|
scope: "session",
|
|
3499
3760
|
summary: "Non-interactive inline model label; selection controls remain owner-managed.",
|
|
3500
|
-
doc: "Non-interactive inline model label; selection controls remain owner-managed.\nWithout a contribution, the
|
|
3761
|
+
doc: "Non-interactive inline model label; selection controls remain owner-managed.\nWithout a contribution, the badge precedes the catalog name in the trigger\nand follows it in menus.",
|
|
3501
3762
|
registerOptions: [],
|
|
3502
3763
|
ownerProps: ["/** Catalog data for a model name inside the composer's existing controls. */\nexport interface ModelLabelOwner {\n /** Provider identity and localized display name; contains no connection configuration. */\n provider: Pick<ModelProviderGroup, 'id' | 'name'>\n /** The exact provider's model catalog entry. */\n model: ModelCatalogModel\n /** Trigger caption, root-menu current value, or selectable model row. */\n placement: 'trigger' | 'menu' | 'option'\n /** Whether this provider/model pair is the current selection. */\n selected: boolean\n}"],
|
|
3503
3764
|
ownerPropsReferences: ["ModelCatalogModel", "ModelProviderGroup"],
|
|
@@ -3525,10 +3786,10 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3525
3786
|
hookContext: "",
|
|
3526
3787
|
slotInject: "",
|
|
3527
3788
|
declaredBy: "an entry in 'conversation.input.model' (client-ui-model-selection), so it exists while that entry is mounted",
|
|
3528
|
-
occupants: [
|
|
3529
|
-
replaceRisk: "
|
|
3789
|
+
occupants: [],
|
|
3790
|
+
replaceRisk: "none",
|
|
3530
3791
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.model.label', () => ctx.slots.register(\n { name: 'conversation.input.model.label' },\n ({ provider, model }) => React.createElement('span', { title: provider.name }, model.name),\n ))\n },\n}",
|
|
3531
|
-
source: "packages/client/ui-model-selection/src/client/slots.ts:
|
|
3792
|
+
source: "packages/client/ui-model-selection/src/client/slots.ts:37"
|
|
3532
3793
|
},
|
|
3533
3794
|
{
|
|
3534
3795
|
key: "conversation.input.overlay",
|
|
@@ -3589,7 +3850,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3589
3850
|
],
|
|
3590
3851
|
replaceRisk: "none",
|
|
3591
3852
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.overlay', () => ctx.slots.register(\n { name: 'conversation.input.overlay', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3592
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3853
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:292"
|
|
3593
3854
|
},
|
|
3594
3855
|
{
|
|
3595
3856
|
key: "conversation.input.permission",
|
|
@@ -3624,10 +3885,10 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3624
3885
|
hookContext: "",
|
|
3625
3886
|
slotInject: "",
|
|
3626
3887
|
declaredBy: "an entry in 'conversation.composer.bar' (client-ui-conversation), so it exists while that entry is mounted",
|
|
3627
|
-
occupants: ["client-ui-permission-presets PermissionSelect"],
|
|
3888
|
+
occupants: ["client-ui-permission-presets PermissionSelect", "experimental-liveshare ViewerPermissionSeat"],
|
|
3628
3889
|
replaceRisk: "shadows-shipped-ui",
|
|
3629
3890
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.permission', () => ctx.slots.register(\n { name: 'conversation.input.permission' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3630
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3891
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:312"
|
|
3631
3892
|
},
|
|
3632
3893
|
{
|
|
3633
3894
|
key: "conversation.input.plan",
|
|
@@ -3665,7 +3926,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3665
3926
|
occupants: ["client-ui-plan PlanChip"],
|
|
3666
3927
|
replaceRisk: "shadows-shipped-ui",
|
|
3667
3928
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.plan', () => ctx.slots.register(\n { name: 'conversation.input.plan' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3668
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3929
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:310"
|
|
3669
3930
|
},
|
|
3670
3931
|
{
|
|
3671
3932
|
key: "conversation.input.right",
|
|
@@ -3722,7 +3983,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3722
3983
|
occupants: [],
|
|
3723
3984
|
replaceRisk: "none",
|
|
3724
3985
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.input.right', () => ctx.slots.register(\n { name: 'conversation.input.right', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3725
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
3986
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:298"
|
|
3726
3987
|
},
|
|
3727
3988
|
{
|
|
3728
3989
|
key: "conversation.plan-review.actions",
|
|
@@ -3817,7 +4078,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3817
4078
|
occupants: ["client-ui-conversation ConversationSession"],
|
|
3818
4079
|
replaceRisk: "shadows-shipped-ui",
|
|
3819
4080
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.session', () => ctx.slots.register(\n { name: 'conversation.session' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3820
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4081
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:224"
|
|
3821
4082
|
},
|
|
3822
4083
|
{
|
|
3823
4084
|
key: "conversation.session.header",
|
|
@@ -3855,14 +4116,14 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3855
4116
|
occupants: ["client-ui-conversation ConversationSessionHeader"],
|
|
3856
4117
|
replaceRisk: "shadows-shipped-ui",
|
|
3857
4118
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.session.header', () => ctx.slots.register(\n { name: 'conversation.session.header' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3858
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4119
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:232"
|
|
3859
4120
|
},
|
|
3860
4121
|
{
|
|
3861
4122
|
key: "conversation.session.header.actions",
|
|
3862
4123
|
kind: "list",
|
|
3863
4124
|
scope: "session",
|
|
3864
|
-
summary: "Title-adjacent Session actions in ascending order.",
|
|
3865
|
-
doc: "Title-adjacent Session actions in ascending order.",
|
|
4125
|
+
summary: "Title-adjacent Session actions in ascending order; overflow is clipped and faded before the utilities, so overlays must portal.",
|
|
4126
|
+
doc: "Title-adjacent Session actions in ascending order; overflow is clipped and faded before the utilities, so overlays must portal.",
|
|
3866
4127
|
registerOptions: [
|
|
3867
4128
|
{
|
|
3868
4129
|
name: "id",
|
|
@@ -3917,7 +4178,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3917
4178
|
],
|
|
3918
4179
|
replaceRisk: "none",
|
|
3919
4180
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.session.header.actions', () => ctx.slots.register(\n { name: 'conversation.session.header.actions', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3920
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4181
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:247"
|
|
3921
4182
|
},
|
|
3922
4183
|
{
|
|
3923
4184
|
key: "conversation.session.header.corner",
|
|
@@ -3955,14 +4216,14 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3955
4216
|
occupants: ["client-ui-sidebar-right ExpandButton"],
|
|
3956
4217
|
replaceRisk: "shadows-shipped-ui",
|
|
3957
4218
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.session.header.corner', () => ctx.slots.register(\n { name: 'conversation.session.header.corner' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3958
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4219
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:270"
|
|
3959
4220
|
},
|
|
3960
4221
|
{
|
|
3961
4222
|
key: "conversation.session.header.lineage",
|
|
3962
4223
|
kind: "single",
|
|
3963
4224
|
scope: "session",
|
|
3964
|
-
summary: "Optional replacement for one Session breadcrumb title.",
|
|
3965
|
-
doc: "Optional replacement for one Session breadcrumb title.",
|
|
4225
|
+
summary: "Optional replacement for one Session breadcrumb title; overlays must portal because the title area clips overflow.",
|
|
4226
|
+
doc: "Optional replacement for one Session breadcrumb title; overlays must portal because the title area clips overflow.",
|
|
3966
4227
|
registerOptions: [],
|
|
3967
4228
|
ownerProps: ["/** Plain breadcrumb data handed to the optional lineage renderer. */\nexport interface ConversationHeaderLineageOwnerProps {\n /** Session represented by this breadcrumb title. */\n lineageSessionId: SessionId\n /** Display title available to a combined title/control renderer. */\n displayTitle: string\n /** Navigate to an ancestor title when present. */\n openTitle?: () => void\n}"],
|
|
3968
4229
|
ownerPropsReferences: ["SessionId"],
|
|
@@ -3993,7 +4254,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
3993
4254
|
occupants: ["client-ui-subagent SubagentHeaderLineage"],
|
|
3994
4255
|
replaceRisk: "shadows-shipped-ui",
|
|
3995
4256
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.session.header.lineage', () => ctx.slots.register(\n { name: 'conversation.session.header.lineage' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
3996
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4257
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:241"
|
|
3997
4258
|
},
|
|
3998
4259
|
{
|
|
3999
4260
|
key: "conversation.session.header.utilities",
|
|
@@ -4050,11 +4311,13 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4050
4311
|
occupants: [
|
|
4051
4312
|
"client-ui-open-in-app SessionOpenInAppAction id 'open-in-app'",
|
|
4052
4313
|
"client-ui-schedule ScheduleCatalogAction id 'schedule-catalog'",
|
|
4314
|
+
"experimental-client-ui-forge HeaderButton id 'forge-panel'",
|
|
4315
|
+
"experimental-liveshare LiveshareShareAction id 'liveshare-share'",
|
|
4053
4316
|
"session-log-export SessionLogDownloadHeaderAction id 'session-log-download'"
|
|
4054
4317
|
],
|
|
4055
4318
|
replaceRisk: "none",
|
|
4056
4319
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.session.header.utilities', () => ctx.slots.register(\n { name: 'conversation.session.header.utilities', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
4057
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4320
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:253"
|
|
4058
4321
|
},
|
|
4059
4322
|
{
|
|
4060
4323
|
key: "conversation.session.header.views.actions",
|
|
@@ -4102,7 +4365,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4102
4365
|
occupants: ["client-ui-entry-customization EntryMenuContent id 'entry-customization'"],
|
|
4103
4366
|
replaceRisk: "none",
|
|
4104
4367
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.session.header.views.actions', () => ctx.slots.register(\n { name: 'conversation.session.header.views.actions', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
4105
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4368
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:276"
|
|
4106
4369
|
},
|
|
4107
4370
|
{
|
|
4108
4371
|
key: "conversation.trajectory.images",
|
|
@@ -4111,7 +4374,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4111
4374
|
summary: "Renderer for one group of durable record images in the Trajectory ledger.",
|
|
4112
4375
|
doc: "Renderer for one group of durable record images in the Trajectory\nledger. The owner supplies image references, an authorized loader, and\nalignment. A registration replaces the shipped gallery; without one,\nimages are omitted.",
|
|
4113
4376
|
registerOptions: [],
|
|
4114
|
-
ownerProps: ["/** Message image group handed to the optional attachment presentation plugin. */\nexport interface MessageImagesOwnerProps {\n /** Durable references or submission-echo previews in source order. */\n images: readonly MessageImageSource[]\n /**
|
|
4377
|
+
ownerProps: ["/** Message image group handed to the optional attachment presentation plugin. */\nexport interface MessageImagesOwnerProps {\n /** Durable references or submission-echo previews in source order. */\n images: readonly MessageImageSource[]\n /** Gateway-authorized image URL loader for the durable arm. */\n loadImage: MessageImageLoader\n /** Horizontal placement inside the owning record. */\n align: 'start' | 'end'\n /** Force every image into the compact message-attachment tile size. */\n compact?: boolean\n /** Fixed, uncropped thumbnail for an attachment list row. */\n thumbnail?: boolean\n}"],
|
|
4115
4378
|
ownerPropsReferences: [
|
|
4116
4379
|
"Message",
|
|
4117
4380
|
"MessageImageLoader",
|
|
@@ -4180,7 +4443,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4180
4443
|
"useAccess: (action: RemoteEndpoint) => boolean",
|
|
4181
4444
|
"useTrajectory: UseTrajectory"
|
|
4182
4445
|
],
|
|
4183
|
-
keyDomain: "fixed by the owner's key table { [Id in UserTextId]: { node: UserTextNode<Id> } }, already taken: command, file, folder, secret, session, skill, text",
|
|
4446
|
+
keyDomain: "fixed by the owner's key table { [Id in UserTextId]: { node: UserTextNode<Id> } }, already taken: command, file, folder, quote, secret, session, skill, text",
|
|
4184
4447
|
hookContext: "",
|
|
4185
4448
|
slotInject: "",
|
|
4186
4449
|
declaredBy: "factory 'conversation.user.text' (client-ui-conversation), so it exists while that definition is registered",
|
|
@@ -4191,11 +4454,12 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4191
4454
|
"client-ui-reference FileReference key 'file'",
|
|
4192
4455
|
"client-ui-reference FolderReference key 'folder'",
|
|
4193
4456
|
"client-ui-secret-mask SecretText key 'secret'",
|
|
4194
|
-
"client-ui-skill SkillReference key 'skill'"
|
|
4457
|
+
"client-ui-skill SkillReference key 'skill'",
|
|
4458
|
+
"message-quotes QuotedUserText key 'quote'"
|
|
4195
4459
|
],
|
|
4196
4460
|
replaceRisk: "shadows-shipped-ui",
|
|
4197
4461
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.user.text.node', () => ctx.slots.register(\n { name: 'conversation.user.text.node', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
4198
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4462
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:214"
|
|
4199
4463
|
},
|
|
4200
4464
|
{
|
|
4201
4465
|
key: "conversation.view",
|
|
@@ -4249,10 +4513,14 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4249
4513
|
hookContext: "",
|
|
4250
4514
|
slotInject: "",
|
|
4251
4515
|
declaredBy: "an entry in 'conversation.session' (client-ui-conversation), so it exists while that entry is mounted",
|
|
4252
|
-
occupants: [
|
|
4516
|
+
occupants: [
|
|
4517
|
+
"client-ui-chat ChatView id 'chat'",
|
|
4518
|
+
"client-ui-trajectory TrajectoryView id 'trajectory'",
|
|
4519
|
+
"experimental-client-ui-stats StatsView id 'stats'"
|
|
4520
|
+
],
|
|
4253
4521
|
replaceRisk: "none",
|
|
4254
4522
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('conversation.view', () => ctx.slots.register(\n { name: 'conversation.view', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
4255
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4523
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:278"
|
|
4256
4524
|
},
|
|
4257
4525
|
{
|
|
4258
4526
|
key: "deliverables.file.actions",
|
|
@@ -4280,8 +4548,8 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4280
4548
|
doc: "Display text where the owner projects one (nav rows, tabs). A thunk is re-read on every projection, so localized text follows the active locale without re-registering."
|
|
4281
4549
|
}
|
|
4282
4550
|
],
|
|
4283
|
-
ownerProps: ["/** Native file action selected by an explicit user gesture. */\nexport type PresentedAction = 'open' | 'reveal'", "
|
|
4284
|
-
ownerPropsReferences: [],
|
|
4551
|
+
ownerProps: ["/** Native file action selected by an explicit user gesture. */\nexport type PresentedAction = 'open' | 'reveal'", "/**\n * Settled result of one native file gesture, for the contributed control to\n * announce: the Host acknowledged an application open or a file-manager\n * reveal, the gesture failed, or the request was deliberately dropped because\n * the same file was already opening or this controller was disposed. Only an\n * acknowledged operation may be announced as a success.\n */\nexport type PresentedOpenOutcome =\n | { readonly kind: 'opened' }\n | { readonly kind: 'revealed' }\n | { readonly kind: 'failed'; readonly failure: PresentedOpenFailure }\n | { readonly kind: 'skipped' }"],
|
|
4552
|
+
ownerPropsReferences: ["PresentedOpenFailure"],
|
|
4285
4553
|
standardProps: [
|
|
4286
4554
|
"useRemoteAccess: (action: RemoteEndpoint) => boolean",
|
|
4287
4555
|
"useResource: UseResource",
|
|
@@ -4440,7 +4708,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4440
4708
|
occupants: ["client-ui-conversation ConversationRoot"],
|
|
4441
4709
|
replaceRisk: "shadows-shipped-ui",
|
|
4442
4710
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('main.conversation', () => ctx.slots.register(\n { name: 'main.conversation' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
4443
|
-
source: "packages/client/ui-conversation/src/client/contract/slots.ts:
|
|
4711
|
+
source: "packages/client/ui-conversation/src/client/contract/slots.ts:222"
|
|
4444
4712
|
},
|
|
4445
4713
|
{
|
|
4446
4714
|
key: "plugins.add.actions",
|
|
@@ -4515,11 +4783,11 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4515
4783
|
"useSessionAccess: (sessionId: SessionId, action: RemoteEndpoint) => boolean",
|
|
4516
4784
|
"useWorkspaceAccess: (workspaceId: WorkspaceId, action: RemoteEndpoint) => boolean"
|
|
4517
4785
|
],
|
|
4518
|
-
keyDomain: "open: any string the owner dispatches (no compile-time key set), already taken: @deepseek-ai/dsh-experimental-voice-input-bundle",
|
|
4786
|
+
keyDomain: "open: any string the owner dispatches (no compile-time key set), already taken: @deepseek-ai/dsh-cua-bundle, @deepseek-ai/dsh-experimental-voice-input-bundle",
|
|
4519
4787
|
hookContext: "",
|
|
4520
4788
|
slotInject: "",
|
|
4521
4789
|
declaredBy: "an entry in 'main' (client-ui-plugin-manager), so it exists while that entry is mounted",
|
|
4522
|
-
occupants: ["experimental-client-ui-voice-input VoiceSetupPrompt key '@deepseek-ai/dsh-experimental-voice-input-bundle'"],
|
|
4790
|
+
occupants: ["experimental-client-ui-voice-input VoiceSetupPrompt key '@deepseek-ai/dsh-experimental-voice-input-bundle'", "cua PermissionSetup key '@deepseek-ai/dsh-cua-bundle'"],
|
|
4523
4791
|
replaceRisk: "shadows-shipped-ui",
|
|
4524
4792
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('plugins.bundle.activation', () => ctx.slots.register(\n { name: 'plugins.bundle.activation', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
4525
4793
|
source: "packages/client/ui-plugin-manager/src/client/slot-contract.ts:126"
|
|
@@ -4549,11 +4817,15 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4549
4817
|
"useSessionAccess: (sessionId: SessionId, action: RemoteEndpoint) => boolean",
|
|
4550
4818
|
"useWorkspaceAccess: (workspaceId: WorkspaceId, action: RemoteEndpoint) => boolean"
|
|
4551
4819
|
],
|
|
4552
|
-
keyDomain: "open: any string the owner dispatches (no compile-time key set), already taken: @deepseek-ai/dsh-experimental-cot-translation-bundle, @deepseek-ai/dsh-experimental-voice-input-bundle",
|
|
4820
|
+
keyDomain: "open: any string the owner dispatches (no compile-time key set), already taken: @deepseek-ai/dsh-cua-bundle, @deepseek-ai/dsh-experimental-cot-translation-bundle, @deepseek-ai/dsh-experimental-voice-input-bundle",
|
|
4553
4821
|
hookContext: "",
|
|
4554
4822
|
slotInject: "",
|
|
4555
4823
|
declaredBy: "an entry in 'main' (client-ui-plugin-manager), so it exists while that entry is mounted",
|
|
4556
|
-
occupants: [
|
|
4824
|
+
occupants: [
|
|
4825
|
+
"experimental-client-ui-cot-translation TranslationSettings key '@deepseek-ai/dsh-experimental-cot-translation-bundle'",
|
|
4826
|
+
"experimental-client-ui-voice-input VoicePreparation key '@deepseek-ai/dsh-experimental-voice-input-bundle'",
|
|
4827
|
+
"cua PermissionPanel key '@deepseek-ai/dsh-cua-bundle'"
|
|
4828
|
+
],
|
|
4557
4829
|
replaceRisk: "shadows-shipped-ui",
|
|
4558
4830
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('plugins.bundle.config', () => ctx.slots.register(\n { name: 'plugins.bundle.config', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
4559
4831
|
source: "packages/client/ui-plugin-manager/src/client/slot-contract.ts:142"
|
|
@@ -4658,8 +4930,8 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4658
4930
|
key: "plugins.detail.section",
|
|
4659
4931
|
kind: "list",
|
|
4660
4932
|
scope: "root",
|
|
4661
|
-
summary: "Sections under a detail page's own content: after the
|
|
4662
|
-
doc: "Sections under a detail page's own content: after the
|
|
4933
|
+
summary: "Sections under a detail page's own content: after the source on a bundle's page, after the configuration on a row's or an official plugin's page.",
|
|
4934
|
+
doc: "Sections under a detail page's own content: after the source on a bundle's\npage, after the configuration on a row's or an official plugin's page.\nAn entry draws its own section chrome and renders null for a subject it\nhas nothing for.",
|
|
4663
4935
|
registerOptions: [
|
|
4664
4936
|
{
|
|
4665
4937
|
name: "id",
|
|
@@ -4815,7 +5087,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
4815
5087
|
doc: "Display text where the owner projects one (nav rows, tabs). A thunk is re-read on every projection, so localized text follows the active locale without re-registering."
|
|
4816
5088
|
}
|
|
4817
5089
|
],
|
|
4818
|
-
ownerProps: ["/** Owner props of a page tab another plugin contributes, such as Discover. */\nexport interface PluginTabProps {\n /**\n * Install an exact version the person already confirmed: the page's install dialog opens at its check and progress\n * screens, without the spec form, and names the plugin and version above the spec.\n * @param target - the spec, optional registry, and display text.\n */\n readonly install: (target: PluginTabInstall) => void\n /**\n * Switch to the Installed tab and open a bundle's page.\n * @param packageName - npm package name of the bundle.\n */\n readonly openPackage: (packageName: string) => void\n}"],
|
|
5090
|
+
ownerProps: ["/** Owner props of a page tab another plugin contributes, such as Discover. */\nexport interface PluginTabProps {\n /**\n * Install an exact version the person already confirmed: the page's install dialog opens at its check and progress\n * screens, without the spec form, and names the plugin and version above the spec.\n * @param target - the spec, optional registry, and display text.\n */\n readonly install: (target: PluginTabInstall) => void\n /**\n * Switch to the Installed tab and open a bundle's page, whose back button returns to the calling tab.\n * @param packageName - npm package name of the bundle.\n */\n readonly openPackage: (packageName: string) => void\n}"],
|
|
4819
5091
|
ownerPropsReferences: ["PluginTabInstall"],
|
|
4820
5092
|
standardProps: [
|
|
4821
5093
|
"useRemoteAccess: (action: RemoteEndpoint) => boolean",
|
|
@@ -5522,6 +5794,8 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
5522
5794
|
declaredBy: "an entry in 'root' (client-ui-layout), so it exists while that entry is mounted",
|
|
5523
5795
|
occupants: [
|
|
5524
5796
|
"client-ui-chat QuotaNoticeHost id 'chat.quota-notice'",
|
|
5797
|
+
"client-ui-file-drag FileDragFeedback id 'file-drag.feedback'",
|
|
5798
|
+
"client-ui-open-in-app OpenInAppToast id 'open-in-app.toast'",
|
|
5525
5799
|
"client-ui-plugin-manager PluginRefreshToast id 'plugin-manager.refresh-toast'",
|
|
5526
5800
|
"client-ui-schedule ScheduleDeleteToast id 'schedule.delete-toast'",
|
|
5527
5801
|
"client-ui-settings-account DesktopOnboardingEntry id 'desktop-onboarding'",
|
|
@@ -5531,7 +5805,10 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
5531
5805
|
"client-ui-shortcuts ShortcutReference id 'shortcuts'",
|
|
5532
5806
|
"client-ui-workspace SessionRenameDialog id 'workspace.session-rename'",
|
|
5533
5807
|
"client-ui-workspace SessionArchiveConfirmDialog id 'workspace.session-archive'",
|
|
5534
|
-
"client-ui-workspace RowActionToast id 'workspace.row-toast'"
|
|
5808
|
+
"client-ui-workspace RowActionToast id 'workspace.row-toast'",
|
|
5809
|
+
"experimental-client-ui-forge ActionToast id 'forge-panel.toast'",
|
|
5810
|
+
"cua PermissionToast id 'cua-permission-outcome'",
|
|
5811
|
+
"session-log-export SessionMarkdownCopyToast id 'session-log-download.copy-toast'"
|
|
5535
5812
|
],
|
|
5536
5813
|
replaceRisk: "none",
|
|
5537
5814
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('shell.overlay', () => ctx.slots.register(\n { name: 'shell.overlay', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
@@ -5569,7 +5846,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
5569
5846
|
occupants: ["client-ui-settings-account AccountQuotaNotice"],
|
|
5570
5847
|
replaceRisk: "none",
|
|
5571
5848
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('shell.quota-notice', () => ctx.slots.register(\n { name: 'shell.quota-notice', select: owner => null },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
5572
|
-
source: "packages/client/ui-chat/src/client/contract/slots.ts:
|
|
5849
|
+
source: "packages/client/ui-chat/src/client/contract/slots.ts:490"
|
|
5573
5850
|
},
|
|
5574
5851
|
{
|
|
5575
5852
|
key: "sidebar",
|
|
@@ -5624,7 +5901,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
5624
5901
|
hookContext: "",
|
|
5625
5902
|
slotInject: "",
|
|
5626
5903
|
declaredBy: "an entry in 'sidebar' (client-ui-sidebar), so it exists while that entry is mounted",
|
|
5627
|
-
occupants: ["client-ui-brand-official OfficialBrandMark"],
|
|
5904
|
+
occupants: ["client-ui-brand-official OfficialBrandMark", "experimental-liveshare ViewerBrandMark"],
|
|
5628
5905
|
replaceRisk: "shadows-shipped-ui",
|
|
5629
5906
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.brand.mark', () => ctx.slots.register(\n { name: 'sidebar.brand.mark' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
5630
5907
|
source: "packages/client/ui-sidebar/src/client/contract/slots.ts:26"
|
|
@@ -5653,7 +5930,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
5653
5930
|
hookContext: "",
|
|
5654
5931
|
slotInject: "",
|
|
5655
5932
|
declaredBy: "an entry in 'sidebar' (client-ui-sidebar), so it exists while that entry is mounted",
|
|
5656
|
-
occupants: ["client-ui-brand-official OfficialBrandName"],
|
|
5933
|
+
occupants: ["client-ui-brand-official OfficialBrandName", "experimental-liveshare ViewerBrandName"],
|
|
5657
5934
|
replaceRisk: "shadows-shipped-ui",
|
|
5658
5935
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.brand.name', () => ctx.slots.register(\n { name: 'sidebar.brand.name' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
5659
5936
|
source: "packages/client/ui-sidebar/src/client/contract/slots.ts:31"
|
|
@@ -5888,6 +6165,9 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
5888
6165
|
"client-ui-sidebar-right GuideBody",
|
|
5889
6166
|
"client-ui-sidebar-terminal LazyTerminalBody",
|
|
5890
6167
|
"client-ui-subagent SidebarChatTab",
|
|
6168
|
+
"experimental-client-ui-forge ForgeTab",
|
|
6169
|
+
"experimental-client-ui-forge ChangesTab",
|
|
6170
|
+
"experimental-liveshare ViewerSharePathBody",
|
|
5891
6171
|
"experimental-session-inspector SessionInspectorView"
|
|
5892
6172
|
],
|
|
5893
6173
|
replaceRisk: "none",
|
|
@@ -5939,7 +6219,9 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
5939
6219
|
"client-ui-sidebar-documentpreview TextTitle",
|
|
5940
6220
|
"client-ui-sidebar-files FilesTitle",
|
|
5941
6221
|
"client-ui-sidebar-right GuideTitle",
|
|
5942
|
-
"client-ui-sidebar-terminal TerminalTitle"
|
|
6222
|
+
"client-ui-sidebar-terminal TerminalTitle",
|
|
6223
|
+
"experimental-client-ui-forge ForgeTabTitle",
|
|
6224
|
+
"experimental-client-ui-forge ChangesTabTitle"
|
|
5943
6225
|
],
|
|
5944
6226
|
replaceRisk: "none",
|
|
5945
6227
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.right.pane.tab.title', () => ctx.slots.register(\n { name: 'sidebar.right.pane.tab.title', key: '<one key the owner dispatches>' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
@@ -6488,10 +6770,10 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6488
6770
|
hookContext: "",
|
|
6489
6771
|
slotInject: "",
|
|
6490
6772
|
declaredBy: "an entry in 'sidebar.workspaces' (client-ui-workspace), so it exists while that entry is mounted",
|
|
6491
|
-
occupants: ["client-ui-schedule SessionScheduleHover id 'schedule-tasks'"],
|
|
6773
|
+
occupants: ["client-ui-schedule SessionScheduleHover id 'schedule-tasks'", "experimental-client-ui-forge SessionHoverForge id 'forge-panel.row'"],
|
|
6492
6774
|
replaceRisk: "none",
|
|
6493
6775
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.session.row.hover', () => ctx.slots.register(\n { name: 'sidebar.session.row.hover', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
6494
|
-
source: "packages/client/ui-workspace/src/client/contract/slots.ts:
|
|
6776
|
+
source: "packages/client/ui-workspace/src/client/contract/slots.ts:151"
|
|
6495
6777
|
},
|
|
6496
6778
|
{
|
|
6497
6779
|
key: "sidebar.session.row.leading",
|
|
@@ -6536,10 +6818,58 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6536
6818
|
hookContext: "",
|
|
6537
6819
|
slotInject: "",
|
|
6538
6820
|
declaredBy: "an entry in 'sidebar.workspaces' (client-ui-workspace), so it exists while that entry is mounted",
|
|
6539
|
-
occupants: ["client-ui-schedule SessionScheduleMark id 'schedule-mark'"],
|
|
6821
|
+
occupants: ["client-ui-schedule SessionScheduleMark id 'schedule-mark'", "experimental-liveshare ViewerForkMarker id 'liveshare.fork'"],
|
|
6540
6822
|
replaceRisk: "none",
|
|
6541
6823
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.session.row.leading', () => ctx.slots.register(\n { name: 'sidebar.session.row.leading', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
6542
|
-
source: "packages/client/ui-workspace/src/client/contract/slots.ts:
|
|
6824
|
+
source: "packages/client/ui-workspace/src/client/contract/slots.ts:137"
|
|
6825
|
+
},
|
|
6826
|
+
{
|
|
6827
|
+
key: "sidebar.session.row.trailing",
|
|
6828
|
+
kind: "list",
|
|
6829
|
+
scope: "root",
|
|
6830
|
+
summary: "Non-interactive icons after the row's time label, before its pin marker, in ascending `order`.",
|
|
6831
|
+
doc: "Non-interactive icons after the row's time label, before its pin marker,\nin ascending `order`. On hover-capable devices, hidden while the row is\nhovered, has keyboard focus on itself or its actions, or has an open menu.\nHoverless devices keep the icons beside the menu trigger. Blank Sessions\nomit the slot. Occupants address their own data by Session id; they must not\nbind or retain the Session.",
|
|
6832
|
+
registerOptions: [
|
|
6833
|
+
{
|
|
6834
|
+
name: "id",
|
|
6835
|
+
requirement: "required",
|
|
6836
|
+
type: "string",
|
|
6837
|
+
doc: "Your cell key. Use an id of your own: a fresh id is added beside the shipped entries, while reusing a shipped id puts you in THAT cell and replaces it. Owners that filter by id address you by it."
|
|
6838
|
+
},
|
|
6839
|
+
{
|
|
6840
|
+
name: "order",
|
|
6841
|
+
requirement: "optional",
|
|
6842
|
+
type: "number",
|
|
6843
|
+
doc: "Position among the entries, ascending (default 0)."
|
|
6844
|
+
},
|
|
6845
|
+
{
|
|
6846
|
+
name: "label",
|
|
6847
|
+
requirement: "optional",
|
|
6848
|
+
type: "string | (() => string)",
|
|
6849
|
+
doc: "Display text where the owner projects one (nav rows, tabs). A thunk is re-read on every projection, so localized text follows the active locale without re-registering."
|
|
6850
|
+
}
|
|
6851
|
+
],
|
|
6852
|
+
ownerProps: ["/** Owner share of the trailing icon list; rendering does not bind the Session. */\nexport interface SessionRowTrailingOwnerProps {\n /** Session this row shows. */\n readonly sessionId: SessionId\n}"],
|
|
6853
|
+
ownerPropsReferences: ["SessionId"],
|
|
6854
|
+
standardProps: [
|
|
6855
|
+
"useRemoteAccess: (action: RemoteEndpoint) => boolean",
|
|
6856
|
+
"useResource: UseResource",
|
|
6857
|
+
"useWorkspaces: SnapshotSelectorHook<WorkspaceSnapshot>",
|
|
6858
|
+
"usePanelInfo: UsePanelInfo",
|
|
6859
|
+
"useSessions: UseSessions",
|
|
6860
|
+
"useSessionStatus: UseSessionStatus",
|
|
6861
|
+
"useSessionRetainInfo: UseSessionRetainInfo",
|
|
6862
|
+
"useSessionAccess: (sessionId: SessionId, action: RemoteEndpoint) => boolean",
|
|
6863
|
+
"useWorkspaceAccess: (workspaceId: WorkspaceId, action: RemoteEndpoint) => boolean"
|
|
6864
|
+
],
|
|
6865
|
+
keyDomain: "",
|
|
6866
|
+
hookContext: "",
|
|
6867
|
+
slotInject: "",
|
|
6868
|
+
declaredBy: "an entry in 'sidebar.workspaces' (client-ui-workspace), so it exists while that entry is mounted",
|
|
6869
|
+
occupants: ["experimental-client-ui-forge SessionRowForge id 'forge-panel.row'"],
|
|
6870
|
+
replaceRisk: "none",
|
|
6871
|
+
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.session.row.trailing', () => ctx.slots.register(\n { name: 'sidebar.session.row.trailing', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
6872
|
+
source: "packages/client/ui-workspace/src/client/contract/slots.ts:146"
|
|
6543
6873
|
},
|
|
6544
6874
|
{
|
|
6545
6875
|
key: "sidebar.settings",
|
|
@@ -6655,7 +6985,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6655
6985
|
occupants: ["client-ui-directory-picker-browse BrowseDirectoryFlow", "client-ui-directory-picker-native NativeDirectoryFlow"],
|
|
6656
6986
|
replaceRisk: "shadows-shipped-ui",
|
|
6657
6987
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.workspaces.directoryFlow', () => ctx.slots.register(\n { name: 'sidebar.workspaces.directoryFlow' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
6658
|
-
source: "packages/client/ui-workspace/src/client/contract/slots.ts:
|
|
6988
|
+
source: "packages/client/ui-workspace/src/client/contract/slots.ts:127"
|
|
6659
6989
|
},
|
|
6660
6990
|
{
|
|
6661
6991
|
key: "sidebar.workspaces.session.menu.item",
|
|
@@ -6705,18 +7035,19 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6705
7035
|
"client-ui-workspace RenameSessionMenuItem id 'rename'",
|
|
6706
7036
|
"client-ui-workspace ForkSessionMenuItem id 'fork'",
|
|
6707
7037
|
"client-ui-workspace ArchiveSessionMenuItem id 'archive'",
|
|
6708
|
-
"client-ui-workspace SessionIdMenuItem id 'session-id'"
|
|
7038
|
+
"client-ui-workspace SessionIdMenuItem id 'session-id'",
|
|
7039
|
+
"experimental-liveshare ViewerForkMenuItem id 'fork'"
|
|
6709
7040
|
],
|
|
6710
7041
|
replaceRisk: "none",
|
|
6711
7042
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n const copyLabel = 'Copy session title' // Localize in the contributing package.\n ctx.slots.inject('sidebar.workspaces.session.menu.item', () => ctx.slots.register(\n { name: 'sidebar.workspaces.session.menu.item', id: 'copy-session-title', order: 500 },\n ({ displayTitle, useMenuOpenState }) => {\n const [, setMenuOpen] = useMenuOpenState()\n return React.createElement(\n 'button',\n {\n type: 'button', role: 'menuitem',\n onClick: () => { setMenuOpen(false); void navigator.clipboard.writeText(displayTitle) },\n },\n copyLabel,\n )\n },\n ))\n },\n}",
|
|
6712
|
-
source: "packages/client/ui-workspace/src/client/contract/slots.ts:
|
|
7043
|
+
source: "packages/client/ui-workspace/src/client/contract/slots.ts:186"
|
|
6713
7044
|
},
|
|
6714
7045
|
{
|
|
6715
7046
|
key: "sidebar.workspaces.session.row.action",
|
|
6716
7047
|
kind: "list",
|
|
6717
7048
|
scope: "root",
|
|
6718
7049
|
summary: "The hover buttons at the end of one Session row, in ascending `order`, after the \"...\" menu trigger.",
|
|
6719
|
-
doc: "The hover buttons at the end of one Session row, in ascending `order`,\nafter the \"...\" menu trigger. ui-workspace registers `archive` (100) and\n`pin` (200) here. An entry renders one icon button (or nothing, when its\naction does not apply to the row) and owns the action it performs. Clicks\ninside the strip stay in the strip, so the button needs no propagation\nhandling to keep the row from opening.",
|
|
7050
|
+
doc: "The hover buttons at the end of one Session row, in ascending `order`,\nafter the \"...\" menu trigger. ui-workspace registers `archive` (100) and\n`pin` (200) here. An entry renders one icon button (or nothing, when its\naction does not apply to the row) and owns the action it performs. Clicks\ninside the strip stay in the strip, so the button needs no propagation\nhandling to keep the row from opening. Hoverless devices hide this slot;\ncontribute the action to the menu list as well for touch access.",
|
|
6720
7051
|
registerOptions: [
|
|
6721
7052
|
{
|
|
6722
7053
|
name: "id",
|
|
@@ -6757,16 +7088,16 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6757
7088
|
occupants: ["client-ui-workspace ArchiveSessionRowButton id 'archive'", "client-ui-workspace PinSessionRowButton id 'pin'"],
|
|
6758
7089
|
replaceRisk: "none",
|
|
6759
7090
|
example: "return {\n inject: ['slots'],\n apply(ctx) {\n ctx.slots.inject('sidebar.workspaces.session.row.action', () => ctx.slots.register(\n { name: 'sidebar.workspaces.session.row.action', id: 'my-entry', order: 100, label: 'My entry' },\n () => React.createElement('div', null, 'hello'),\n ))\n },\n}",
|
|
6760
|
-
source: "packages/client/ui-workspace/src/client/contract/slots.ts:
|
|
7091
|
+
source: "packages/client/ui-workspace/src/client/contract/slots.ts:205"
|
|
6761
7092
|
},
|
|
6762
7093
|
{
|
|
6763
7094
|
key: "tool.call.images",
|
|
6764
7095
|
kind: "single",
|
|
6765
7096
|
scope: "session",
|
|
6766
7097
|
summary: "Durable images of a settled image-bearing Tool call, rendered through the attachment presentation plugin.",
|
|
6767
|
-
doc: "Durable images of a settled image-bearing Tool call, rendered through\nthe attachment presentation plugin. The Tool layer never imports an\nattachment implementation: a toolview declares this slot as a child and\nrenders it with the image card's references plus the
|
|
7098
|
+
doc: "Durable images of a settled image-bearing Tool call, rendered through\nthe attachment presentation plugin. The Tool layer never imports an\nattachment implementation: a toolview declares this slot as a child and\nrenders it with the image card's references plus the Gateway-authorized\nloader it received in its owner, and the attachment plugin fills the\ngallery. Composing no attachment presentation plugin renders nothing,\nwhich is why the image card keeps its own envelope text beside the\ngallery. A child slot is declared by exactly one entry: registering a\nsecond toolview that declares the same child throws at load, so a\nfuture image-bearing tool must reuse this entry or own a distinct\nslot.",
|
|
6768
7099
|
registerOptions: [],
|
|
6769
|
-
ownerProps: ["/** Owner currency of the Tool image gallery slot: references plus the loader. */\nexport interface ToolImagesOwnerProps {\n /** Durable references or submission-echo previews in result order. */\n images: readonly MessageImageSource[]\n /**
|
|
7100
|
+
ownerProps: ["/** Owner currency of the Tool image gallery slot: references plus the loader. */\nexport interface ToolImagesOwnerProps {\n /** Durable references or submission-echo previews in result order. */\n images: readonly MessageImageSource[]\n /** Gateway-authorized image URL loader for the durable arm. */\n loadImage: MessageImageLoader\n /** Horizontal placement inside the owning record. */\n align: 'start' | 'end'\n}"],
|
|
6770
7101
|
ownerPropsReferences: ["MessageImageLoader", "MessageImageSource"],
|
|
6771
7102
|
standardProps: [
|
|
6772
7103
|
"useRemoteAccess: (action: RemoteEndpoint) => boolean",
|
|
@@ -6810,7 +7141,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6810
7141
|
doc: "Your cell key: the entry renders where the owner dispatches this exact key. Registering an already-occupied key replaces that occupant."
|
|
6811
7142
|
}],
|
|
6812
7143
|
ownerProps: [
|
|
6813
|
-
"/** Standard owner currency supplied to every atomic Tool view. */\nexport interface ToolCallCommonProps {\n /** Stable Hook; each invocation owns its open state and subscribes to enclosing-Turn resets. */\n useDisclosure: UseDisclosure\n /** Call identity, stable across all stages. */\n callId: string\n /** Wire Tool name and keyed dispatch value. */\n toolName: string\n /** Session workspace root for relative summaries. */\n cwd?: string | undefined\n /** Host account home; POSIX home-rooted summaries display as `~`. */\n home?: string | undefined\n /** Open an argument path at its optional requested line. */\n openFile: (path: string, options?: OpenFileOptions) => void\n /** Chat-supplied,
|
|
7144
|
+
"/** Standard owner currency supplied to every atomic Tool view. */\nexport interface ToolCallCommonProps {\n /** Stable Hook; each invocation owns its open state and subscribes to enclosing-Turn resets. */\n useDisclosure: UseDisclosure\n /** Call identity, stable across all stages. */\n callId: string\n /** Wire Tool name and keyed dispatch value. */\n toolName: string\n /** Session workspace root for relative summaries. */\n cwd?: string | undefined\n /** Host account home; POSIX home-rooted summaries display as `~`. */\n home?: string | undefined\n /** Open an argument path at its optional requested line. */\n openFile: (path: string, options?: OpenFileOptions) => void\n /** Chat-supplied, Gateway-authorized loader for durable images; Tool views do not manage attachment URLs. */\n loadImage: MessageImageLoader\n /** Inspect this call in the trajectory view when available. */\n inspect?: (() => void) | undefined\n}",
|
|
6814
7145
|
"/** Common owner callbacks and the data admitted at the current tool stage. */\nexport type ToolCallOwnerProps = ToolCallCommonProps & ToolCallPhaseProps",
|
|
6815
7146
|
"/** Stage-specific tool data; only start/result expose the dispatched call material. */\nexport type ToolCallPhaseProps =\n | { readonly phase: 'preparing'; readonly block: PreparingToolCall }\n | { readonly phase: 'start'; readonly block: StartedToolCall }\n | { readonly phase: 'result'; readonly block: ToolResultNode }"
|
|
6816
7147
|
],
|
|
@@ -6842,7 +7173,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6842
7173
|
"useAccess: (action: RemoteEndpoint) => boolean",
|
|
6843
7174
|
"useTrajectory: UseTrajectory"
|
|
6844
7175
|
],
|
|
6845
|
-
keyDomain: "open: any string the owner dispatches (no compile-time key set), already taken: ask_user_question, bash, cordis_define, cordis_inspect_list, cordis_inspect_query, cordis_inspect_self, cordis_run, cordis_stop, cordis_undefine, create_goal, edit, get_goal, glob, grep, interrupt_agent, job_kill, job_list, job_output, list_agents, list_subagent_models, lsp, present, ralph, read, read_image, schedule_create, schedule_delete, schedule_list, schedule_update, send_message, session_event_read, session_event_search, session_event_trace, session_search, session_trace, skill, spawn_teammate, subagent, team_task_create, team_task_get, team_task_list, team_task_update, terminal_close, terminal_list, terminal_open, terminal_read, terminal_signal, todo_write, update_goal, wait_agent, web_fetch, web_search, workflow, write",
|
|
7176
|
+
keyDomain: "open: any string the owner dispatches (no compile-time key set), already taken: ask_user_question, bash, cordis_define, cordis_inspect_list, cordis_inspect_query, cordis_inspect_self, cordis_run, cordis_stop, cordis_undefine, create_goal, edit, get_goal, glob, grep, interrupt_agent, job_kill, job_list, job_output, list_agents, list_subagent_models, lsp, present, propose_action, ralph, read, read_image, schedule_create, schedule_delete, schedule_list, schedule_update, send_message, session_event_read, session_event_search, session_event_trace, session_search, session_trace, skill, spawn_teammate, subagent, team_task_create, team_task_get, team_task_list, team_task_update, terminal_close, terminal_list, terminal_open, terminal_read, terminal_signal, todo_write, update_goal, wait_agent, web_fetch, web_search, workflow, write",
|
|
6846
7177
|
hookContext: "",
|
|
6847
7178
|
slotInject: "",
|
|
6848
7179
|
declaredBy: "an entry in 'conversation.chat.node' (client-ui-tool), so it exists while that entry is mounted",
|
|
@@ -6897,6 +7228,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
6897
7228
|
"client-ui-tool TodoRow key 'todo_write'",
|
|
6898
7229
|
"client-ui-tool WebRow key 'web_search'",
|
|
6899
7230
|
"client-ui-tool WebRow key 'web_fetch'",
|
|
7231
|
+
"client-ui-action-cards ProposeRow key 'propose_action'",
|
|
6900
7232
|
"client-ui-cordis CordisDefineRow key 'cordis_define'",
|
|
6901
7233
|
"client-ui-cordis CordisRunRow key 'cordis_run'",
|
|
6902
7234
|
"client-ui-cordis CordisActionRow key 'cordis_stop'",
|
|
@@ -7221,193 +7553,6 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
7221
7553
|
};
|
|
7222
7554
|
}
|
|
7223
7555
|
//#endregion
|
|
7224
|
-
//#region lib/types/client/timer.js
|
|
7225
|
-
/** Browser implementation of the Cordis timer Service. */
|
|
7226
|
-
/** Browser timer Service with the same public API as the Host Cordis TimerService. */
|
|
7227
|
-
var ClientTimerService = class extends _deepseek_ai_cordis.Service {
|
|
7228
|
-
/** Register the Service and mix its lifecycle-safe helpers onto Context. */
|
|
7229
|
-
constructor(ctx) {
|
|
7230
|
-
super(ctx, "timer");
|
|
7231
|
-
ctx.mixin("timer", [
|
|
7232
|
-
"timeout",
|
|
7233
|
-
"interval",
|
|
7234
|
-
"throttle",
|
|
7235
|
-
"debounce",
|
|
7236
|
-
"setTimeout",
|
|
7237
|
-
"setInterval"
|
|
7238
|
-
]);
|
|
7239
|
-
}
|
|
7240
|
-
/**
|
|
7241
|
-
* Run a callback once through {@link timeout}.
|
|
7242
|
-
* @param callback - Work to run after the delay.
|
|
7243
|
-
* @param delay - Delay in milliseconds.
|
|
7244
|
-
* @returns Disposer that cancels the pending callback early.
|
|
7245
|
-
* @deprecated Use `ctx.timeout()` instead.
|
|
7246
|
-
*/
|
|
7247
|
-
setTimeout(callback, delay) {
|
|
7248
|
-
return this.timeout(callback, delay);
|
|
7249
|
-
}
|
|
7250
|
-
/**
|
|
7251
|
-
* Run a callback repeatedly through {@link interval}.
|
|
7252
|
-
* @param callback - Work to run on each tick.
|
|
7253
|
-
* @param delay - Interval in milliseconds.
|
|
7254
|
-
* @returns Disposer that stops the interval early.
|
|
7255
|
-
* @deprecated Use `ctx.interval()` instead.
|
|
7256
|
-
*/
|
|
7257
|
-
setInterval(callback, delay) {
|
|
7258
|
-
return this.interval(callback, delay);
|
|
7259
|
-
}
|
|
7260
|
-
timeout(...args) {
|
|
7261
|
-
const callback = typeof args[0] === "function" ? args.shift() : void 0;
|
|
7262
|
-
const delay = args[0];
|
|
7263
|
-
if (callback !== void 0) {
|
|
7264
|
-
const dispose = this.ctx.effect(() => {
|
|
7265
|
-
const timer = globalThis.setTimeout(() => {
|
|
7266
|
-
dispose();
|
|
7267
|
-
callback();
|
|
7268
|
-
}, delay);
|
|
7269
|
-
return () => {
|
|
7270
|
-
globalThis.clearTimeout(timer);
|
|
7271
|
-
};
|
|
7272
|
-
}, "ctx.timeout()");
|
|
7273
|
-
return dispose;
|
|
7274
|
-
}
|
|
7275
|
-
const { promise, resolve, reject } = Promise.withResolvers();
|
|
7276
|
-
const dispose = this.ctx.effect(() => {
|
|
7277
|
-
const timer = globalThis.setTimeout(resolve, delay);
|
|
7278
|
-
return () => {
|
|
7279
|
-
globalThis.clearTimeout(timer);
|
|
7280
|
-
reject(/* @__PURE__ */ new Error("Context has been disposed"));
|
|
7281
|
-
};
|
|
7282
|
-
}, "ctx.timeout()");
|
|
7283
|
-
return promise.finally(() => {
|
|
7284
|
-
dispose();
|
|
7285
|
-
});
|
|
7286
|
-
}
|
|
7287
|
-
interval(...args) {
|
|
7288
|
-
const callback = typeof args[0] === "function" ? args.shift() : void 0;
|
|
7289
|
-
const delay = args[0];
|
|
7290
|
-
if (callback !== void 0) return this.ctx.effect(() => {
|
|
7291
|
-
const timer = globalThis.setInterval(callback, delay);
|
|
7292
|
-
return () => {
|
|
7293
|
-
globalThis.clearInterval(timer);
|
|
7294
|
-
};
|
|
7295
|
-
}, "ctx.interval()");
|
|
7296
|
-
let done;
|
|
7297
|
-
let nextTask;
|
|
7298
|
-
const dispose = this.ctx.effect(() => {
|
|
7299
|
-
const timer = globalThis.setInterval(() => {
|
|
7300
|
-
nextTask?.resolve({
|
|
7301
|
-
done: false,
|
|
7302
|
-
value: void 0
|
|
7303
|
-
});
|
|
7304
|
-
}, delay);
|
|
7305
|
-
return () => {
|
|
7306
|
-
globalThis.clearInterval(timer);
|
|
7307
|
-
if (done !== void 0) return;
|
|
7308
|
-
done = {
|
|
7309
|
-
kind: "throw",
|
|
7310
|
-
reason: /* @__PURE__ */ new Error("Context has been disposed")
|
|
7311
|
-
};
|
|
7312
|
-
nextTask?.reject(done.reason);
|
|
7313
|
-
};
|
|
7314
|
-
}, "ctx.interval()");
|
|
7315
|
-
return {
|
|
7316
|
-
next: () => {
|
|
7317
|
-
if (done === void 0) return (nextTask = Promise.withResolvers()).promise;
|
|
7318
|
-
if (done.kind === "return") return Promise.resolve({
|
|
7319
|
-
done: true,
|
|
7320
|
-
value: done.value
|
|
7321
|
-
});
|
|
7322
|
-
return Promise.reject(done.reason);
|
|
7323
|
-
},
|
|
7324
|
-
return: (value) => {
|
|
7325
|
-
if (done === void 0) done = {
|
|
7326
|
-
kind: "return",
|
|
7327
|
-
value
|
|
7328
|
-
};
|
|
7329
|
-
nextTask?.resolve({
|
|
7330
|
-
done: true,
|
|
7331
|
-
value
|
|
7332
|
-
});
|
|
7333
|
-
dispose();
|
|
7334
|
-
return Promise.resolve({
|
|
7335
|
-
done: true,
|
|
7336
|
-
value
|
|
7337
|
-
});
|
|
7338
|
-
},
|
|
7339
|
-
throw: (reason) => {
|
|
7340
|
-
if (done === void 0) done = {
|
|
7341
|
-
kind: "throw",
|
|
7342
|
-
reason
|
|
7343
|
-
};
|
|
7344
|
-
nextTask?.reject(reason);
|
|
7345
|
-
dispose();
|
|
7346
|
-
return Promise.resolve({
|
|
7347
|
-
done: true,
|
|
7348
|
-
value: void 0
|
|
7349
|
-
});
|
|
7350
|
-
},
|
|
7351
|
-
[Symbol.asyncIterator]() {
|
|
7352
|
-
return this;
|
|
7353
|
-
}
|
|
7354
|
-
};
|
|
7355
|
-
}
|
|
7356
|
-
/** Build a delayed wrapper whose pending callback belongs to the calling Fiber. */
|
|
7357
|
-
schedule(label, trigger, disposed = false) {
|
|
7358
|
-
let timer;
|
|
7359
|
-
const dispose = this.ctx.effect(() => () => {
|
|
7360
|
-
disposed = true;
|
|
7361
|
-
globalThis.clearTimeout(timer);
|
|
7362
|
-
}, label);
|
|
7363
|
-
const wrapper = (...args) => {
|
|
7364
|
-
globalThis.clearTimeout(timer);
|
|
7365
|
-
timer = trigger(args, disposed);
|
|
7366
|
-
};
|
|
7367
|
-
wrapper.dispose = dispose;
|
|
7368
|
-
return wrapper;
|
|
7369
|
-
}
|
|
7370
|
-
/**
|
|
7371
|
-
* Return a throttled function whose timer is disposed with the calling Fiber.
|
|
7372
|
-
* @param callback - Function to throttle.
|
|
7373
|
-
* @param delay - Minimum interval between calls in milliseconds.
|
|
7374
|
-
* @param noTrailing - Whether to suppress a delayed trailing call.
|
|
7375
|
-
* @returns Throttled function with an early disposer.
|
|
7376
|
-
*/
|
|
7377
|
-
throttle(callback, delay, noTrailing) {
|
|
7378
|
-
let lastCall = -Infinity;
|
|
7379
|
-
const execute = (...args) => {
|
|
7380
|
-
lastCall = Date.now();
|
|
7381
|
-
callback(...args);
|
|
7382
|
-
};
|
|
7383
|
-
return this.schedule("ctx.throttle()", (args, disposed) => {
|
|
7384
|
-
const remaining = delay - Date.now() + lastCall;
|
|
7385
|
-
if (remaining <= 0) execute(...args);
|
|
7386
|
-
else if (!disposed) return globalThis.setTimeout(execute, remaining, ...args);
|
|
7387
|
-
}, noTrailing);
|
|
7388
|
-
}
|
|
7389
|
-
/**
|
|
7390
|
-
* Return a debounced function whose timer is disposed with the calling Fiber.
|
|
7391
|
-
* @param callback - Function to debounce.
|
|
7392
|
-
* @param delay - Quiet period in milliseconds.
|
|
7393
|
-
* @returns Debounced function with an early disposer.
|
|
7394
|
-
*/
|
|
7395
|
-
debounce(callback, delay) {
|
|
7396
|
-
return this.schedule("ctx.debounce()", (args, disposed) => {
|
|
7397
|
-
if (disposed) return;
|
|
7398
|
-
return globalThis.setTimeout(callback, delay, ...args);
|
|
7399
|
-
});
|
|
7400
|
-
}
|
|
7401
|
-
};
|
|
7402
|
-
/**
|
|
7403
|
-
* Install the browser timer Service on one Client composition.
|
|
7404
|
-
* @param ctx - Client context that owns the Service and mixed-in helpers.
|
|
7405
|
-
* @returns Nothing after registering the Service.
|
|
7406
|
-
*/
|
|
7407
|
-
function provideClientTimer(ctx) {
|
|
7408
|
-
new ClientTimerService(ctx);
|
|
7409
|
-
}
|
|
7410
|
-
//#endregion
|
|
7411
7556
|
//#region lib/types/client/index.js
|
|
7412
7557
|
/**
|
|
7413
7558
|
* Dynamic-package runner, browser half: the load engine that turns one browser
|
|
@@ -7464,7 +7609,7 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
7464
7609
|
* @param ctx - client root context.
|
|
7465
7610
|
*/
|
|
7466
7611
|
function apply(ctx) {
|
|
7467
|
-
|
|
7612
|
+
new TimerService(ctx);
|
|
7468
7613
|
const inspect = new ClientCordisInspectRegistry({
|
|
7469
7614
|
sync: async (providers) => {
|
|
7470
7615
|
const answered = await ctx.remote.dynamicCordisRunner.syncInspectManifest(providers);
|
|
@@ -7574,7 +7719,6 @@ call: (method, args = null) => env.invoke(method, args) }, harnessTrap(), ...Obj
|
|
|
7574
7719
|
}
|
|
7575
7720
|
//#endregion
|
|
7576
7721
|
exports.ClientCordisInspectRegistry = ClientCordisInspectRegistry;
|
|
7577
|
-
exports.ClientTimerService = ClientTimerService;
|
|
7578
7722
|
exports.CordisRunOrchestrator = CordisRunOrchestrator;
|
|
7579
7723
|
exports.DynamicCordisPackageRunner = DynamicCordisPackageRunner;
|
|
7580
7724
|
exports.DynamicCordisStyles = DynamicCordisStyles;
|