@dsh-cc/acp 0.0.0-stage → 0.9.1-rc.1

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/lib/version.js ADDED
@@ -0,0 +1,30 @@
1
+ // Divergence: readOwnVersion pattern ported from @dsh-cc/command-version
2
+ // (packages/interaction/command-version/src/version.ts) for §5.3 branding.
3
+ /**
4
+ * Read this package's own version from its `package.json` for ACP `agentInfo`.
5
+ * Falls back to a compile-time constant in bundled deploys without the file.
6
+ * @module @dsh-cc/acp/version
7
+ */
8
+ import { readFile } from 'node:fs/promises';
9
+ import { dirname, join } from 'node:path';
10
+ import { fileURLToPath } from 'node:url';
11
+ /** Compile-time fallback, kept in sync with package.json `version`. */
12
+ export const FALLBACK_VERSION = '0.9.0-rc.3';
13
+ /**
14
+ * Read this plugin's own version from its `package.json`.
15
+ * @returns the package version string.
16
+ */
17
+ export async function readOwnVersion() {
18
+ try {
19
+ const here = dirname(fileURLToPath(import.meta.url));
20
+ const raw = await readFile(join(here, '..', 'package.json'), 'utf8');
21
+ const parsed = JSON.parse(raw);
22
+ if (typeof parsed.version === 'string' && parsed.version.length > 0)
23
+ return parsed.version;
24
+ }
25
+ catch {
26
+ // Fall through to the constant.
27
+ }
28
+ return FALLBACK_VERSION;
29
+ }
30
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,2EAA2E;AAC3E;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,uEAAuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAA;AAE5C;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QACpD,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,CAAA;QACpE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAA0B,CAAA;QACvD,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC;YAAE,OAAO,MAAM,CAAC,OAAO,CAAA;IAC5F,CAAC;IAAC,MAAM,CAAC;QACP,gCAAgC;IAClC,CAAC;IACD,OAAO,gBAAgB,CAAA;AACzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,74 @@
1
1
  {
2
2
  "name": "@dsh-cc/acp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "description": "Agent Client Protocol server for driving dsh-cc agents over JSON-RPC stdio (vendored from @deepseek-ai/dsh-acp)",
4
+ "version": "0.9.1-rc.1",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/dsh-cc/dsh-cc.git",
8
+ "directory": "packages/acp/cc-acp"
9
+ },
10
+ "type": "module",
11
+ "main": "lib/index.js",
12
+ "types": "lib/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./lib/index.d.ts",
16
+ "default": "./lib/index.js"
17
+ },
18
+ "./src/*": "./src/*",
19
+ "./package.json": "./package.json"
20
+ },
21
+ "files": [
22
+ "lib",
23
+ "LICENSE-harness"
24
+ ],
25
+ "license": "Apache-2.0",
26
+ "dependencies": {
27
+ "@agentclientprotocol/sdk": "1.4.0"
28
+ },
29
+ "peerDependencies": {
30
+ "@deepseek-ai/cordis": ">=0.2.0-rc.2",
31
+ "@deepseek-ai/dsh-agent": ">=0.2.0-rc.2",
32
+ "@deepseek-ai/dsh-attachment": ">=0.2.0-rc.2",
33
+ "@deepseek-ai/dsh-brand": ">=0.2.0-rc.2",
34
+ "@deepseek-ai/dsh-llm": ">=0.2.0-rc.2",
35
+ "@deepseek-ai/dsh-mcp-client": ">=0.2.0-rc.2",
36
+ "@deepseek-ai/dsh-session": ">=0.2.0-rc.2",
37
+ "@deepseek-ai/dsh-session-persistence": ">=0.2.0-rc.2",
38
+ "@deepseek-ai/dsh-token-meter": ">=0.2.0-rc.2",
39
+ "@deepseek-ai/dsh-user-approval": ">=0.2.0-rc.2",
40
+ "@deepseek-ai/schemastery": ">=0.2.0-rc.2"
41
+ },
42
+ "peerDependenciesMeta": {
43
+ "@deepseek-ai/dsh-token-meter": {
44
+ "optional": true
45
+ }
46
+ },
47
+ "devDependencies": {
48
+ "@agentclientprotocol/sdk": "1.4.0",
49
+ "@deepseek-ai/cordis": "link:../../../../deepseek-harness/vendor/cordis",
50
+ "@deepseek-ai/dsh-agent": "link:../../../../deepseek-harness/packages/core/agent",
51
+ "@deepseek-ai/dsh-agent-loop": "link:../../../../deepseek-harness/packages/core/agent-loop",
52
+ "@deepseek-ai/dsh-agent-loop-testkit": "link:../../../../deepseek-harness/packages/test-support/agent-loop-testkit",
53
+ "@deepseek-ai/dsh-agent-preset-registry": "link:../../../../deepseek-harness/packages/preset/agent-preset-registry",
54
+ "@deepseek-ai/dsh-attachment": "link:../../../../deepseek-harness/packages/attachment/attachment",
55
+ "@deepseek-ai/dsh-brand": "link:../../../../deepseek-harness/packages/util/brand",
56
+ "@deepseek-ai/dsh-llm": "link:../../../../deepseek-harness/packages/llm/llm",
57
+ "@deepseek-ai/dsh-mcp-client": "link:../../../../deepseek-harness/packages/mcp/mcp-client",
58
+ "@deepseek-ai/dsh-session": "link:../../../../deepseek-harness/packages/core/session",
59
+ "@deepseek-ai/dsh-session-persistence": "link:../../../../deepseek-harness/packages/session/session-persistence",
60
+ "@deepseek-ai/dsh-session-persistence-jsonl": "link:../../../../deepseek-harness/packages/session/session-persistence-jsonl",
61
+ "@deepseek-ai/dsh-session-projection": "link:../../../../deepseek-harness/packages/session/session-projection",
62
+ "@deepseek-ai/dsh-tools": "link:../../../../deepseek-harness/packages/core/tools",
63
+ "@deepseek-ai/dsh-token-meter": "link:../../../../deepseek-harness/packages/llm/token-meter",
64
+ "@deepseek-ai/dsh-user-approval": "link:../../../../deepseek-harness/packages/interaction/user-approval",
65
+ "@deepseek-ai/schemastery": "link:../../../../deepseek-harness/vendor/schemastery",
66
+ "@modelcontextprotocol/node": "2.0.0",
67
+ "@modelcontextprotocol/server": "2.0.0",
68
+ "vitest": "^4.1.8",
69
+ "zod": "^4.4.3"
70
+ },
71
+ "publishConfig": {
72
+ "access": "public"
73
+ }
6
74
  }