@cotal-ai/connector-jcode 0.0.1 → 0.27.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,23 @@
1
+ export interface CredentialSources {
2
+ jcodeHome: string;
3
+ appConfigDir: string;
4
+ externalHome: string;
5
+ }
6
+ /** Copy the SDK-recognized provider material for this launch. The SDK's default inheritance links
7
+ * rotating auth files; current jcode rejects those links in its external mirror, so the connector
8
+ * owns a fresh, owner-only copy instead. */
9
+ export declare function mirrorJcodeCredentials(home: string, sources?: CredentialSources): void;
10
+ export interface ShortSocketHome {
11
+ /** A short alias to the managed JCODE_HOME passed to the SDK, keeping its hard-coded socket under 100 bytes. */
12
+ jcodeHome: string;
13
+ /** The real, owner-only directory that owns the short alias. */
14
+ socketDir: string;
15
+ dispose(): void;
16
+ }
17
+ /**
18
+ * The current SDK derives `run/jcode-api.sock` beneath `jcodeHome` and has no socket-path launch
19
+ * option. Keep managed state at its normal workspace location and pass it through a short private
20
+ * alias instead. The SDK's resulting API pathname is bounded before it reaches AF_UNIX.
21
+ */
22
+ export declare function shortSocketHome(home: string): ShortSocketHome;
23
+ //# sourceMappingURL=private-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"private-state.d.ts","sourceRoot":"","sources":["../src/private-state.ts"],"names":[],"mappings":"AAiIA,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAMD;;4CAE4C;AAC5C,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,oBAAsB,GAAG,IAAI,CAoBxF;AAED,MAAM,WAAW,eAAe;IAC9B,gHAAgH;IAChH,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAqC7D"}
package/package.json CHANGED
@@ -1,14 +1,47 @@
1
1
  {
2
2
  "name": "@cotal-ai/connector-jcode",
3
- "version": "0.0.1",
4
- "description": "Bootstrap placeholder. The connector publishes from the Cotal monorepo.",
3
+ "description": "Cotal connector for Jcode: a host-mode mesh peer driven through Jcode's Harness API bridge.",
4
+ "version": "0.27.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/Cotal-AI/Cotal.git",
9
9
  "directory": "extensions/connector-jcode"
10
10
  },
11
+ "type": "module",
12
+ "main": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js"
18
+ }
19
+ },
20
+ "peerDependencies": {
21
+ "@cotal-ai/core": ">=0.1.0"
22
+ },
23
+ "dependencies": {
24
+ "@1jehuang/jcode-sdk": "^1.1.0",
25
+ "@modelcontextprotocol/sdk": "^1.29.0"
26
+ },
27
+ "devDependencies": {
28
+ "esbuild": "^0.28.0",
29
+ "tsx": "^4.22.4",
30
+ "zod": "^4.4.3",
31
+ "@cotal-ai/connector-core": "0.27.0",
32
+ "@cotal-ai/core": "0.27.0",
33
+ "@cotal-ai/smoke-kit": "0.0.0"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
11
38
  "publishConfig": {
12
39
  "access": "public"
40
+ },
41
+ "scripts": {
42
+ "typecheck": "tsc -p tsconfig.json --noEmit",
43
+ "test": "tsx smoke/jcode-args.smoke.ts",
44
+ "build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json --emitDeclarationOnly && pnpm run bundle",
45
+ "bundle": "esbuild src/index.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/index.js --external:@cotal-ai/core && esbuild src/host-main.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/host.js --banner:js=\"import { createRequire as __cotalCreateRequire } from 'node:module'; const require = __cotalCreateRequire(import.meta.url);\" && esbuild src/mcp-main.ts --bundle --platform=node --format=esm --target=node20 --outfile=dist/mcp.js --banner:js=\"import { createRequire as __cotalCreateRequire } from 'node:module'; const require = __cotalCreateRequire(import.meta.url);\""
13
46
  }
14
- }
47
+ }
package/README.md DELETED
@@ -1,4 +0,0 @@
1
- # @cotal-ai/connector-jcode
2
-
3
- Bootstrap placeholder so the package name exists for trusted publishing.
4
- The real connector ships from the Cotal monorepo starting at 0.27.0.
package/publish.log DELETED
File without changes