@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
|
@@ -24,7 +24,6 @@ export { DynamicCordisStyles, evaluateClientHalf, isDynamicCordisPlugin } from '
|
|
|
24
24
|
export type { DynamicCordisClosureEnv, DynamicCordisEvaluatedPlugin } from './evaluator.ts';
|
|
25
25
|
export { dynamicCordisContext } from './guard.ts';
|
|
26
26
|
export type { DynamicCordisGuardEnv, DynamicCordisSlotLedgerRow } from './guard.ts';
|
|
27
|
-
export { ClientTimerService } from './timer.ts';
|
|
28
27
|
export type { ApprovalRequestId, CordisDynamicPackageId, CordisDynamicPluginId, CordisDynamicPluginRunId, DynamicCordisPackage, } from '@deepseek-ai/dsh-api-remotes/client';
|
|
29
28
|
/**
|
|
30
29
|
* What a run surface reads and calls. The activity map is the single home of
|
package/locale/de.json
ADDED
package/locale/es.json
ADDED
package/locale/fr.json
ADDED
package/locale/ja.json
ADDED
package/locale/pt.json
ADDED
package/locale/ru.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-cordis-client-runner",
|
|
3
3
|
"description": "Browser half of dynamic dual-half plugin packages: event subscription, closure evaluation, guard facade, and loader entries",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -39,17 +39,18 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
42
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@deepseek-ai/cordis-plugin-loader": "~1.0.
|
|
46
|
-
"@deepseek-ai/
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
48
|
-
"@deepseek-ai/dsh-client-
|
|
49
|
-
"@deepseek-ai/dsh-client-ui-
|
|
50
|
-
"@deepseek-ai/
|
|
45
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.1",
|
|
46
|
+
"@deepseek-ai/cordis-plugin-timer": "~1.1.8-alpha.1",
|
|
47
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-alpha.2",
|
|
48
|
+
"@deepseek-ai/dsh-client-modules": "0.2.2-alpha.2",
|
|
49
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.2-alpha.2",
|
|
51
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1",
|
|
51
52
|
"react": "^18.2.0",
|
|
52
|
-
"@deepseek-ai/dsh-util-values": "0.2.
|
|
53
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-alpha.2"
|
|
53
54
|
},
|
|
54
55
|
"files": [
|
|
55
56
|
"locale/*.json",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/** Browser implementation of the Cordis timer Service. */
|
|
2
|
-
import { Service } from '@deepseek-ai/cordis';
|
|
3
|
-
import type { Context } from '@deepseek-ai/cordis';
|
|
4
|
-
declare module '@deepseek-ai/cordis' {
|
|
5
|
-
interface Context extends Pick<ClientTimerService, 'interval' | 'timeout' | 'throttle' | 'debounce' | 'setTimeout' | 'setInterval'> {
|
|
6
|
-
/** Browser timer Service used by the mixed-in Context helpers. */
|
|
7
|
-
timer: ClientTimerService;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
type WithDispose<T> = T & {
|
|
11
|
-
dispose: () => void;
|
|
12
|
-
};
|
|
13
|
-
/** Browser timer Service with the same public API as the Host Cordis TimerService. */
|
|
14
|
-
export declare class ClientTimerService extends Service {
|
|
15
|
-
/** Register the Service and mix its lifecycle-safe helpers onto Context. */
|
|
16
|
-
constructor(ctx: Context);
|
|
17
|
-
/**
|
|
18
|
-
* Run a callback once through {@link timeout}.
|
|
19
|
-
* @param callback - Work to run after the delay.
|
|
20
|
-
* @param delay - Delay in milliseconds.
|
|
21
|
-
* @returns Disposer that cancels the pending callback early.
|
|
22
|
-
* @deprecated Use `ctx.timeout()` instead.
|
|
23
|
-
*/
|
|
24
|
-
setTimeout(callback: () => void, delay: number): () => void;
|
|
25
|
-
/**
|
|
26
|
-
* Run a callback repeatedly through {@link interval}.
|
|
27
|
-
* @param callback - Work to run on each tick.
|
|
28
|
-
* @param delay - Interval in milliseconds.
|
|
29
|
-
* @returns Disposer that stops the interval early.
|
|
30
|
-
* @deprecated Use `ctx.interval()` instead.
|
|
31
|
-
*/
|
|
32
|
-
setInterval(callback: () => void, delay: number): () => void;
|
|
33
|
-
/**
|
|
34
|
-
* Run a callback once after a delay.
|
|
35
|
-
* @param callback - work to run.
|
|
36
|
-
* @param delay - delay in milliseconds.
|
|
37
|
-
* @returns disposer that cancels the callback.
|
|
38
|
-
*/
|
|
39
|
-
timeout(callback: () => void, delay: number): () => void;
|
|
40
|
-
/**
|
|
41
|
-
* Wait for a delay.
|
|
42
|
-
* @param delay - delay in milliseconds.
|
|
43
|
-
* @returns promise resolved after the delay.
|
|
44
|
-
*/
|
|
45
|
-
timeout(delay: number): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* Run a callback repeatedly.
|
|
48
|
-
* @param callback - work to run on each tick.
|
|
49
|
-
* @param delay - interval in milliseconds.
|
|
50
|
-
* @returns disposer that stops the interval.
|
|
51
|
-
*/
|
|
52
|
-
interval(callback: () => void, delay: number): () => void;
|
|
53
|
-
/**
|
|
54
|
-
* Iterate over timer ticks.
|
|
55
|
-
* @param delay - interval in milliseconds.
|
|
56
|
-
* @returns async iterator of ticks.
|
|
57
|
-
*/
|
|
58
|
-
interval<R = any>(delay: number): AsyncIterableIterator<void, R, void>;
|
|
59
|
-
/** Build a delayed wrapper whose pending callback belongs to the calling Fiber. */
|
|
60
|
-
private schedule;
|
|
61
|
-
/**
|
|
62
|
-
* Return a throttled function whose timer is disposed with the calling Fiber.
|
|
63
|
-
* @param callback - Function to throttle.
|
|
64
|
-
* @param delay - Minimum interval between calls in milliseconds.
|
|
65
|
-
* @param noTrailing - Whether to suppress a delayed trailing call.
|
|
66
|
-
* @returns Throttled function with an early disposer.
|
|
67
|
-
*/
|
|
68
|
-
throttle<F extends (...args: any[]) => void>(callback: F, delay: number, noTrailing?: boolean): WithDispose<F>;
|
|
69
|
-
/**
|
|
70
|
-
* Return a debounced function whose timer is disposed with the calling Fiber.
|
|
71
|
-
* @param callback - Function to debounce.
|
|
72
|
-
* @param delay - Quiet period in milliseconds.
|
|
73
|
-
* @returns Debounced function with an early disposer.
|
|
74
|
-
*/
|
|
75
|
-
debounce<F extends (...args: any[]) => void>(callback: F, delay: number): WithDispose<F>;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Install the browser timer Service on one Client composition.
|
|
79
|
-
* @param ctx - Client context that owns the Service and mixed-in helpers.
|
|
80
|
-
* @returns Nothing after registering the Service.
|
|
81
|
-
*/
|
|
82
|
-
export declare function provideClientTimer(ctx: Context): void;
|
|
83
|
-
export {};
|
|
84
|
-
//# sourceMappingURL=timer.d.ts.map
|