@morlay/dsh-session-mode 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,33 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- //#region \0rolldown/runtime.js
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
- get: ((k) => from[k]).bind(null, key),
14
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
- });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
20
- value: mod,
21
- enumerable: true
22
- }) : target, mod));
23
- //#endregion
2
+ const require_shared = require("./shared-BusmswG5.cjs");
24
3
  const require_catalog = require("./catalog-K5cESbqA.cjs");
25
- const require_shared = require("./shared-sy45ixVR.cjs");
26
4
  let _deepseek_ai_cordis = require("@deepseek-ai/cordis");
27
5
  let _deepseek_ai_dsh_llm = require("@deepseek-ai/dsh-llm");
28
6
  let zod = require("zod");
29
7
  let _deepseek_ai_schemastery = require("@deepseek-ai/schemastery");
30
- _deepseek_ai_schemastery = __toESM(_deepseek_ai_schemastery, 1);
8
+ _deepseek_ai_schemastery = require_shared.__toESM(_deepseek_ai_schemastery, 1);
31
9
  let _deepseek_ai_dsh_system_prompt = require("@deepseek-ai/dsh-system-prompt");
32
10
  //#region src/modes.ts
33
11
  function derivedSkills(mode) {
@@ -0,0 +1,66 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __exportAll = (all, no_symbols) => {
9
+ let target = {};
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
15
+ return target;
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
19
+ key = keys[i];
20
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
21
+ get: ((k) => from[k]).bind(null, key),
22
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
23
+ });
24
+ }
25
+ return to;
26
+ };
27
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
29
+ value: mod,
30
+ enumerable: true
31
+ }) : target, mod));
32
+ //#endregion
33
+ //#region src/shared.ts
34
+ const SESSION_MODE_PATH = "/session-mode";
35
+ const POLICY_NAMES = ["fs/write-intent", "fs/edit-intent"];
36
+ //#endregion
37
+ Object.defineProperty(exports, "POLICY_NAMES", {
38
+ enumerable: true,
39
+ get: function() {
40
+ return POLICY_NAMES;
41
+ }
42
+ });
43
+ Object.defineProperty(exports, "SESSION_MODE_PATH", {
44
+ enumerable: true,
45
+ get: function() {
46
+ return SESSION_MODE_PATH;
47
+ }
48
+ });
49
+ Object.defineProperty(exports, "__exportAll", {
50
+ enumerable: true,
51
+ get: function() {
52
+ return __exportAll;
53
+ }
54
+ });
55
+ Object.defineProperty(exports, "__reExport", {
56
+ enumerable: true,
57
+ get: function() {
58
+ return __reExport;
59
+ }
60
+ });
61
+ Object.defineProperty(exports, "__toESM", {
62
+ enumerable: true,
63
+ get: function() {
64
+ return __toESM;
65
+ }
66
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-session-mode",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Session modes for dsh: coding / chat as data — a mode is a persona plus its tool lists, its upstream policy lists, its instruction / skill-catalog / runtime-context switches and an optional default model. The host applies the current mode to each session, and the chip in the composer sits beside the official agent-preset entry, which stays.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -38,43 +38,44 @@
38
38
  "./client": {
39
39
  "types": "./dist/client.d.mts",
40
40
  "import": "./dist/client.mjs",
41
- "default": "./dist/client.mjs"
41
+ "default": "./dist/client.cjs"
42
42
  },
43
43
  "./locale/*.json": "./locale/*.json"
44
44
  },
45
45
  "dependencies": {
46
+ "@morlay/dsh-client-ui-primitives": "0.0.11",
46
47
  "zod": "4.4.3"
47
48
  },
48
49
  "devDependencies": {
49
- "@deepseek-ai/cordis": "4.0.5-alpha.2",
50
- "@deepseek-ai/cordis-plugin-group": "1.0.5-alpha.2",
51
- "@deepseek-ai/cordis-plugin-include": "1.0.10-alpha.2",
52
- "@deepseek-ai/cordis-plugin-loader": "1.0.6-alpha.2",
53
- "@deepseek-ai/cosmokit": "1.8.6-alpha.2",
54
- "@deepseek-ai/dsh-agent": "0.2.1-alpha.5",
55
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.1-alpha.5",
56
- "@deepseek-ai/dsh-agent-preset-registry": "0.2.1-alpha.5",
57
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-alpha.5",
58
- "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.5",
59
- "@deepseek-ai/dsh-client-store": "0.2.1-alpha.5",
60
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-alpha.5",
61
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-alpha.5",
62
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.5",
63
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.5",
64
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-alpha.5",
65
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.5",
66
- "@deepseek-ai/dsh-fs": "0.2.1-alpha.5",
67
- "@deepseek-ai/dsh-fs-local": "0.2.1-alpha.5",
68
- "@deepseek-ai/dsh-fs-observation-policy": "0.2.1-alpha.5",
69
- "@deepseek-ai/dsh-llm": "0.2.1-alpha.5",
70
- "@deepseek-ai/dsh-session": "0.2.1-alpha.5",
71
- "@deepseek-ai/dsh-session-projection": "0.2.1-alpha.5",
72
- "@deepseek-ai/dsh-settings": "0.2.1-alpha.5",
73
- "@deepseek-ai/dsh-skill": "0.2.1-alpha.5",
74
- "@deepseek-ai/dsh-system-prompt": "0.2.1-alpha.5",
75
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.5",
76
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.5",
77
- "@deepseek-ai/dsh-working-directory": "0.2.1-alpha.5",
50
+ "@deepseek-ai/cordis": "^4.0.5",
51
+ "@deepseek-ai/cordis-plugin-group": "^1.0.5",
52
+ "@deepseek-ai/cordis-plugin-include": "^1.0.10",
53
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.6",
54
+ "@deepseek-ai/cosmokit": "^1.8.6",
55
+ "@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
56
+ "@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.1",
57
+ "@deepseek-ai/dsh-agent-preset-registry": "^0.2.1-rc.1",
58
+ "@deepseek-ai/dsh-api-session-controller": "^0.2.1-rc.1",
59
+ "@deepseek-ai/dsh-client-locale": "^0.2.1-rc.1",
60
+ "@deepseek-ai/dsh-client-store": "^0.2.1-rc.1",
61
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-rc.1",
62
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.1-rc.1",
63
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.2.1-rc.1",
64
+ "@deepseek-ai/dsh-client-ui-renderer": "^0.2.1-rc.1",
65
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.1-rc.1",
66
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.1-rc.1",
67
+ "@deepseek-ai/dsh-fs": "^0.2.1-rc.1",
68
+ "@deepseek-ai/dsh-fs-local": "^0.2.1-rc.1",
69
+ "@deepseek-ai/dsh-fs-observation-policy": "^0.2.1-rc.1",
70
+ "@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
71
+ "@deepseek-ai/dsh-session": "^0.2.1-rc.1",
72
+ "@deepseek-ai/dsh-session-projection": "^0.2.1-rc.1",
73
+ "@deepseek-ai/dsh-settings": "^0.2.1-rc.1",
74
+ "@deepseek-ai/dsh-skill": "^0.2.1-rc.1",
75
+ "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.1",
76
+ "@deepseek-ai/dsh-tools": "^0.2.1-rc.1",
77
+ "@deepseek-ai/dsh-typert-protocol": "^0.2.1-rc.1",
78
+ "@deepseek-ai/dsh-working-directory": "^0.2.1-rc.1",
78
79
  "@testing-library/react": "^16.3.0",
79
80
  "@types/js-yaml": "^4.0.9",
80
81
  "@types/react": "~18.3.1",
@@ -82,31 +83,30 @@
82
83
  "react-dom": "^18.2.0"
83
84
  },
84
85
  "peerDependencies": {
85
- "@deepseek-ai/cordis": "^4.0.5-alpha.2",
86
- "@deepseek-ai/cosmokit": "^1.8.6-alpha.2",
87
- "@deepseek-ai/dsh-agent": "^0.2.1-alpha.5",
88
- "@deepseek-ai/dsh-agent-preset-registry": "^0.2.1-alpha.5",
89
- "@deepseek-ai/dsh-api-remotes": "0.2.1-alpha.5",
90
- "@deepseek-ai/dsh-api-session-controller": "^0.2.1-alpha.5",
91
- "@deepseek-ai/dsh-client-locale": "^0.2.1-alpha.5",
92
- "@deepseek-ai/dsh-client-store": "^0.2.1-alpha.5",
93
- "@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-alpha.5",
94
- "@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.1-alpha.5",
95
- "@deepseek-ai/dsh-client-ui-primitives": "^0.2.1-alpha.5",
96
- "@deepseek-ai/dsh-client-ui-settings": "^0.2.1-alpha.5",
97
- "@deepseek-ai/dsh-client-ui-slots": "^0.2.1-alpha.5",
98
- "@deepseek-ai/dsh-fs": "^0.2.1-alpha.5",
99
- "@deepseek-ai/dsh-llm": "^0.2.1-alpha.5",
100
- "@deepseek-ai/dsh-session": "^0.2.1-alpha.5",
101
- "@deepseek-ai/dsh-session-projection": "^0.2.1-alpha.5",
102
- "@deepseek-ai/dsh-skill": "^0.2.1-alpha.5",
103
- "@deepseek-ai/dsh-system-prompt": "^0.2.1-alpha.5",
104
- "@deepseek-ai/dsh-tool-skill": "0.2.1-alpha.5",
105
- "@deepseek-ai/dsh-tools": "^0.2.1-alpha.5",
106
- "@deepseek-ai/dsh-typert-protocol": "^0.2.1-alpha.5",
107
- "@deepseek-ai/schemastery": "^3.18.5-alpha.2",
108
- "@morlay/dsh-client-ui-primitives": "0.0.9",
109
- "@morlay/dsh-context-assembler": "0.0.7",
86
+ "@deepseek-ai/cordis": "^4.0.5",
87
+ "@deepseek-ai/cosmokit": "^1.8.6",
88
+ "@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
89
+ "@deepseek-ai/dsh-agent-preset-registry": "^0.2.1-rc.1",
90
+ "@deepseek-ai/dsh-api-remotes": "^0.2.1-rc.1",
91
+ "@deepseek-ai/dsh-api-session-controller": "^0.2.1-rc.1",
92
+ "@deepseek-ai/dsh-client-locale": "^0.2.1-rc.1",
93
+ "@deepseek-ai/dsh-client-store": "^0.2.1-rc.1",
94
+ "@deepseek-ai/dsh-client-ui-conversation": "^0.2.1-rc.1",
95
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "^0.2.1-rc.1",
96
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.2.1-rc.1",
97
+ "@deepseek-ai/dsh-client-ui-settings": "^0.2.1-rc.1",
98
+ "@deepseek-ai/dsh-client-ui-slots": "^0.2.1-rc.1",
99
+ "@deepseek-ai/dsh-fs": "^0.2.1-rc.1",
100
+ "@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
101
+ "@deepseek-ai/dsh-session": "^0.2.1-rc.1",
102
+ "@deepseek-ai/dsh-session-projection": "^0.2.1-rc.1",
103
+ "@deepseek-ai/dsh-skill": "^0.2.1-rc.1",
104
+ "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.1",
105
+ "@deepseek-ai/dsh-tool-skill": "^0.2.1-rc.1",
106
+ "@deepseek-ai/dsh-tools": "^0.2.1-rc.1",
107
+ "@deepseek-ai/dsh-typert-protocol": "^0.2.1-rc.1",
108
+ "@deepseek-ai/schemastery": "^3.18.5",
109
+ "@morlay/dsh-context-assembler": "0.0.8",
110
110
  "react": "^18.2.0"
111
111
  },
112
112
  "dsh": {
@@ -120,6 +120,9 @@
120
120
  ]
121
121
  }
122
122
  },
123
+ "engines": {
124
+ "dsh": ">= 0.2.1-rc.1 < 0.2.2"
125
+ },
123
126
  "scripts": {
124
127
  "build": "pnpm exec tsdown"
125
128
  }
@@ -1,16 +0,0 @@
1
- //#region src/shared.ts
2
- const SESSION_MODE_PATH = "/session-mode";
3
- const POLICY_NAMES = ["fs/write-intent", "fs/edit-intent"];
4
- //#endregion
5
- Object.defineProperty(exports, "POLICY_NAMES", {
6
- enumerable: true,
7
- get: function() {
8
- return POLICY_NAMES;
9
- }
10
- });
11
- Object.defineProperty(exports, "SESSION_MODE_PATH", {
12
- enumerable: true,
13
- get: function() {
14
- return SESSION_MODE_PATH;
15
- }
16
- });