@qihongmu/dsh-client-remotes-scheduled-task 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * External scheduled-tasks remotes assembly (browser half): mounts the
3
+ * vendored `scheduledTasks` Remote contribution so the UI entry can consume
4
+ * `ctx.remote.scheduledTasks` through a declared inject edge.
5
+ * @module @qihongmu/dsh-client-remotes-scheduled-task/client
6
+ */
7
+ import type { Context } from '@deepseek-ai/cordis';
8
+ /** Required service: the typed Client Remote contribution mount. */
9
+ export declare const inject: string[];
10
+ /**
11
+ * Mount the scheduledTasks Remote namespaces for this plugin.
12
+ * @param ctx - Client Cordis context carrying the typed API service.
13
+ * @returns disposer after every mounted namespace is ready.
14
+ */
15
+ export declare function apply(ctx: Context): Promise<() => Promise<void>>;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * External scheduled-tasks remotes assembly (browser half): mounts the
3
+ * vendored `scheduledTasks` Remote contribution so the UI entry can consume
4
+ * `ctx.remote.scheduledTasks` through a declared inject edge.
5
+ * @module @qihongmu/dsh-client-remotes-scheduled-task/client
6
+ */
7
+ import TYPERT_REMOTE from './remote-client.js';
8
+ /** Required service: the typed Client Remote contribution mount. */
9
+ export const inject = ['remote'];
10
+ /**
11
+ * Mount the scheduledTasks Remote namespaces for this plugin.
12
+ * @param ctx - Client Cordis context carrying the typed API service.
13
+ * @returns disposer after every mounted namespace is ready.
14
+ */
15
+ export async function apply(ctx) {
16
+ const disposeMount = await ctx.remote.$mount(TYPERT_REMOTE);
17
+ return disposeMount;
18
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * External scheduled-tasks remotes assembly (node half): mounts the vendored
3
+ * `scheduledTasks` Remote contribution in the browser. The mount must live in
4
+ * its own entry so the UI entry can declare `remote.scheduledTasks` in its
5
+ * inject list — cordis priviledges a consuming fiber to read a Remote
6
+ * namespace only when a different, earlier-activated entry provided it.
7
+ * @module @qihongmu/dsh-client-remotes-scheduled-task
8
+ */
9
+ /** Host loader entry for the browser-only remotes assembly plugin. */
10
+ /** Provides no host-side behavior. */
11
+ export declare function apply(): void;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * External scheduled-tasks remotes assembly (node half): mounts the vendored
3
+ * `scheduledTasks` Remote contribution in the browser. The mount must live in
4
+ * its own entry so the UI entry can declare `remote.scheduledTasks` in its
5
+ * inject list — cordis priviledges a consuming fiber to read a Remote
6
+ * namespace only when a different, earlier-activated entry provided it.
7
+ * @module @qihongmu/dsh-client-remotes-scheduled-task
8
+ */
9
+ /** Host loader entry for the browser-only remotes assembly plugin. */
10
+ /** Provides no host-side behavior. */
11
+ export function apply() { }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Package-owned invariant companion for the external scheduled-task remotes
3
+ * assembly plugin.
4
+ * @module @qihongmu/dsh-client-remotes-scheduled-task/invariant
5
+ */
6
+ import type { Context } from '@deepseek-ai/cordis';
7
+ /** Cordis invariant-companion plugin name. */
8
+ export declare const name = "scheduled-task-remotes-invariant";
9
+ /** Service required before reserving this package's invariant ownership. */
10
+ export declare const inject: string[];
11
+ /**
12
+ * Register the package-owned invariant companion.
13
+ * @param ctx - Cordis context carrying the invariant registry.
14
+ * @returns Exact registration disposer after child setup succeeds.
15
+ */
16
+ export declare const apply: (ctx: Context) => Promise<() => void>;
17
+ //# sourceMappingURL=invariant.d.ts.map
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Package-owned invariant companion for the external scheduled-task remotes
3
+ * assembly plugin.
4
+ * @module @qihongmu/dsh-client-remotes-scheduled-task/invariant
5
+ */
6
+ const PACKAGE_NAME = '@qihongmu/dsh-client-remotes-scheduled-task';
7
+ /** Cordis invariant-companion plugin name. */
8
+ export const name = 'scheduled-task-remotes-invariant';
9
+ /** Service required before reserving this package's invariant ownership. */
10
+ export const inject = ['invariants'];
11
+ /**
12
+ * Owned relation: the assembly half only mounts the vendored Remote
13
+ * contribution; it owns no durable or event relationship, so the companion
14
+ * installs no invariant.
15
+ */
16
+ const install = Object.assign(() => undefined, { inject: [] });
17
+ /**
18
+ * Register the package-owned invariant companion.
19
+ * @param ctx - Cordis context carrying the invariant registry.
20
+ * @returns Exact registration disposer after child setup succeeds.
21
+ */
22
+ export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@qihongmu/dsh-client-remotes-scheduled-task",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "author": "Qihong <qihong.m.u+dev@gmail.com>",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/qihongmu/dsh-plugins.git",
9
+ "directory": "packages/scheduled-task/remotes"
10
+ },
11
+ "description": "External user plugin: browser assembly that mounts the vendored scheduledTasks Remote contribution before the scheduled-tasks UI entry activates (plugin-scoped counterpart of the in-repo dsh-api-remotes assembly).",
12
+ "type": "module",
13
+ "main": "lib/types/index.js",
14
+ "types": "lib/types/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./lib/types/index.d.ts",
18
+ "default": "./lib/types/index.js"
19
+ },
20
+ "./invariant": {
21
+ "types": "./lib/types/invariant.d.ts",
22
+ "default": "./lib/types/invariant.js"
23
+ },
24
+ "./client": {
25
+ "types": "./lib/types/client/index.d.ts",
26
+ "default": "./lib/client.js"
27
+ },
28
+ "./src/*": "./src/*",
29
+ "./package.json": "./package.json"
30
+ },
31
+ "dsh": {
32
+ "bundle": {
33
+ "patch": "./cordis.patch.yml"
34
+ },
35
+ "client": {
36
+ "inject": [
37
+ "@deepseek-ai/dsh-api-gateway"
38
+ ],
39
+ "platform": "web",
40
+ "immediately": true
41
+ }
42
+ },
43
+ "scripts": {
44
+ "build": "tsc -p tsconfig.json",
45
+ "typecheck": "tsc -p tsconfig.json --noEmit"
46
+ },
47
+ "peerDependencies": {
48
+ "@deepseek-ai/cordis": "*",
49
+ "@deepseek-ai/dsh-api-gateway": "*",
50
+ "@deepseek-ai/dsh-api-remotes": "*",
51
+ "@qihongmu/dsh-plugins-scheduled-task": "*",
52
+ "@deepseek-ai/dsh-typert-protocol": "*"
53
+ },
54
+ "files": [
55
+ "lib",
56
+ "cordis.patch.yml",
57
+ "!lib/**/*.map",
58
+ "!lib/**/*.tsbuildinfo"
59
+ ]
60
+ }