@codex-native/sdk 0.0.2 → 0.0.3
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/cli.cjs +16 -13
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +16 -13
- package/dist/cli.mjs.map +1 -1
- package/index.d.ts +487 -0
- package/index.js +626 -0
- package/npm/darwin-arm64/package.json +1 -1
- package/npm/darwin-x64/package.json +1 -1
- package/npm/linux-arm64-gnu/package.json +1 -1
- package/npm/linux-arm64-musl/package.json +1 -1
- package/npm/linux-x64-gnu/package.json +1 -1
- package/npm/linux-x64-musl/package.json +1 -1
- package/npm/win32-arm64-msvc/package.json +1 -1
- package/npm/win32-x64-msvc/package.json +1 -1
- package/package.json +16 -13
package/dist/cli.cjs
CHANGED
|
@@ -35,7 +35,7 @@ var import_node_url4 = require("url");
|
|
|
35
35
|
// package.json
|
|
36
36
|
var package_default = {
|
|
37
37
|
name: "@codex-native/sdk",
|
|
38
|
-
version: "0.0.
|
|
38
|
+
version: "0.0.3",
|
|
39
39
|
description: "Native NAPI-based Codex SDK - complete standalone implementation.",
|
|
40
40
|
main: "dist/index.cjs",
|
|
41
41
|
module: "dist/index.mjs",
|
|
@@ -54,7 +54,9 @@ var package_default = {
|
|
|
54
54
|
"dist",
|
|
55
55
|
"README.md",
|
|
56
56
|
"npm",
|
|
57
|
-
"*.node"
|
|
57
|
+
"*.node",
|
|
58
|
+
"index.js",
|
|
59
|
+
"index.d.ts"
|
|
58
60
|
],
|
|
59
61
|
dependencies: {
|
|
60
62
|
"@modelcontextprotocol/sdk": "^1.22.0",
|
|
@@ -74,7 +76,8 @@ var package_default = {
|
|
|
74
76
|
"build:napi": "napi build --platform --release --features napi-bindings",
|
|
75
77
|
"build:napi:debug": "napi build --platform --features napi-bindings",
|
|
76
78
|
"build:ts": "tsup",
|
|
77
|
-
"verify:build": `node -e "const fs=require('fs');const hasNode=fs.readdirSync('.').some(f=>f.endsWith('.node'));const hasDist=fs.existsSync('dist/index.mjs')&&fs.existsSync('dist/index.d.ts');if(!hasNode||!hasDist){console.error('Build incomplete: missing .node or
|
|
79
|
+
"verify:build": `node -e "const fs=require('fs');const hasNode=fs.readdirSync('.').some(f=>f.endsWith('.node'));const hasDist=fs.existsSync('dist/index.mjs')&&fs.existsSync('dist/index.d.ts');const hasLoader=fs.existsSync('index.js');if(!hasNode||!hasDist||!hasLoader){console.error('Build incomplete: missing .node, dist, or loader index.js');process.exit(1)}require('./index.js');console.log('\u2713 Build verification passed')"`,
|
|
80
|
+
"verify:pack": "node ./scripts/verify-pack.mjs",
|
|
78
81
|
"create-npm-dirs": "napi create-npm-dirs",
|
|
79
82
|
artifacts: "napi artifacts",
|
|
80
83
|
prepublishOnly: "napi prepublish -t npm",
|
|
@@ -89,8 +92,8 @@ var package_default = {
|
|
|
89
92
|
"release:minor": "npm version minor && npm run release",
|
|
90
93
|
"release:major": "npm version major && npm run release",
|
|
91
94
|
"publish:platforms": "npm run create-npm-dirs && node scripts/publish-platform-packages.mjs",
|
|
92
|
-
release: "npm run build && npm run test && npm run publish:platforms && node scripts/publish-sdk.mjs",
|
|
93
|
-
"release:dry": "npm run build && npm run test && npm publish --dry-run"
|
|
95
|
+
release: "npm run build && npm run test && npm run verify:pack && npm run publish:platforms && node scripts/publish-sdk.mjs",
|
|
96
|
+
"release:dry": "npm run build && npm run test && npm run verify:pack && npm publish --dry-run"
|
|
94
97
|
},
|
|
95
98
|
napi: {
|
|
96
99
|
binaryName: "codex_native",
|
|
@@ -106,14 +109,14 @@ var package_default = {
|
|
|
106
109
|
]
|
|
107
110
|
},
|
|
108
111
|
optionalDependencies: {
|
|
109
|
-
"@codex-native/sdk-darwin-arm64": "0.0.
|
|
110
|
-
"@codex-native/sdk-darwin-x64": "0.0.
|
|
111
|
-
"@codex-native/sdk-linux-arm64-gnu": "0.0.
|
|
112
|
-
"@codex-native/sdk-linux-
|
|
113
|
-
"@codex-native/sdk-linux-
|
|
114
|
-
"@codex-native/sdk-linux-x64-musl": "0.0.
|
|
115
|
-
"@codex-native/sdk-win32-arm64-msvc": "0.0.
|
|
116
|
-
"@codex-native/sdk-win32-x64-msvc": "0.0.
|
|
112
|
+
"@codex-native/sdk-darwin-arm64": "0.0.3",
|
|
113
|
+
"@codex-native/sdk-darwin-x64": "0.0.3",
|
|
114
|
+
"@codex-native/sdk-linux-arm64-gnu": "0.0.3",
|
|
115
|
+
"@codex-native/sdk-linux-x64-gnu": "0.0.3",
|
|
116
|
+
"@codex-native/sdk-linux-arm64-musl": "0.0.3",
|
|
117
|
+
"@codex-native/sdk-linux-x64-musl": "0.0.3",
|
|
118
|
+
"@codex-native/sdk-win32-arm64-msvc": "0.0.3",
|
|
119
|
+
"@codex-native/sdk-win32-x64-msvc": "0.0.3"
|
|
117
120
|
},
|
|
118
121
|
engines: {
|
|
119
122
|
node: ">=18"
|