@codex-native/sdk 0.0.5 → 0.0.6

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.
Binary file
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.5",
38
+ version: "0.0.6",
39
39
  description: "Native NAPI-based Codex SDK - complete standalone implementation.",
40
40
  main: "dist/index.cjs",
41
41
  module: "dist/index.mjs",
@@ -79,18 +79,18 @@ var package_default = {
79
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');if(!hasNode||!hasDist){console.error('Build incomplete: missing .node or dist files');process.exit(1)}console.log('\u2713 Build verification passed')"`,
80
80
  "create-npm-dirs": "napi create-npm-dirs",
81
81
  artifacts: "napi artifacts",
82
- prepublishOnly: "napi prepublish -t npm",
82
+ prepublishOnly: "napi prepublish -t npm --skip-optional-publish",
83
83
  pretest: `node -e "const fs=require('fs');const hasNode=fs.readdirSync('.').some(f=>f.endsWith('.node'));if(!hasNode){process.exitCode=1;console.error('missing .node binary; run npm run build:ci');} else {console.log('\u2713 native binary present; skipping rebuild');}"`,
84
84
  test: "node ./scripts/run-jest.mjs --runInBand",
85
85
  "test:watch": "node ./scripts/run-jest.mjs --watch",
86
86
  coverage: "node ./scripts/run-jest.mjs --coverage",
87
87
  typecheck: "tsc --noEmit",
88
88
  lint: "cargo fmt --check && cargo clippy --release --features napi-bindings -- -D warnings && npm run typecheck",
89
- version: "napi version",
89
+ version: "napi version && node scripts/sync-optional-deps.mjs",
90
90
  "release:patch": "npm version patch && npm run release",
91
91
  "release:minor": "npm version minor && npm run release",
92
92
  "release:major": "npm version major && npm run release",
93
- "publish:platforms": "npm run create-npm-dirs && node scripts/publish-platform-packages.mjs",
93
+ "publish:platforms": "npm run create-npm-dirs && napi artifacts --output-dir . --npm-dir npm && node scripts/publish-platform-packages.mjs",
94
94
  release: "npm run build && npm run test && npm run publish:platforms && node scripts/publish-sdk.mjs",
95
95
  "release:dry": "npm run build && npm run test && npm publish --dry-run"
96
96
  },
@@ -108,14 +108,14 @@ var package_default = {
108
108
  ]
109
109
  },
110
110
  optionalDependencies: {
111
- "@codex-native/sdk-darwin-arm64": "0.0.2",
112
- "@codex-native/sdk-darwin-x64": "0.0.2",
113
- "@codex-native/sdk-linux-arm64-gnu": "0.0.2",
114
- "@codex-native/sdk-linux-x64-gnu": "0.0.2",
115
- "@codex-native/sdk-linux-arm64-musl": "0.0.2",
116
- "@codex-native/sdk-linux-x64-musl": "0.0.2",
117
- "@codex-native/sdk-win32-arm64-msvc": "0.0.2",
118
- "@codex-native/sdk-win32-x64-msvc": "0.0.2"
111
+ "@codex-native/sdk-darwin-arm64": "0.0.6",
112
+ "@codex-native/sdk-darwin-x64": "0.0.6",
113
+ "@codex-native/sdk-linux-arm64-gnu": "0.0.6",
114
+ "@codex-native/sdk-linux-x64-gnu": "0.0.6",
115
+ "@codex-native/sdk-linux-arm64-musl": "0.0.6",
116
+ "@codex-native/sdk-linux-x64-musl": "0.0.6",
117
+ "@codex-native/sdk-win32-arm64-msvc": "0.0.6",
118
+ "@codex-native/sdk-win32-x64-msvc": "0.0.6"
119
119
  },
120
120
  engines: {
121
121
  node: ">=18"
@@ -130,7 +130,7 @@ var package_default = {
130
130
  "@jest/globals": "^29.7.0",
131
131
  "@napi-rs/cli": "^3.4.1",
132
132
  "@openai/agents": "^0.3.0",
133
- "@types/jest": "29.5.11",
133
+ "@types/jest": "29.5.14",
134
134
  "@types/node": "^22.0.0",
135
135
  "babel-jest": "29.7.0",
136
136
  jest: "^29.7.0",