orch-code 0.1.2 → 0.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## v0.1.3 - 2026-04-03
6
+
7
+ - ci: harden npm install and release flow
5
8
  ## v0.1.2 - 2026-04-03
6
9
 
7
10
  - fix: send instructions for OpenAI account chat
package/README.md CHANGED
@@ -247,6 +247,9 @@ go run . <command>
247
247
 
248
248
  `npm i -g orch-code` becomes zero-Go for end users once GitHub Releases and npm publish are both live.
249
249
 
250
+ Canonical GitHub repo:
251
+ - `https://github.com/beydemirfurkan/orch`
252
+
250
253
  Repo automation now expects:
251
254
  - GitHub Actions secret: `NPM_TOKEN`
252
255
  - a git tag in the form `vX.Y.Z`
@@ -276,7 +279,13 @@ The release workflow will:
276
279
  - verify the tag matches package metadata
277
280
  - build darwin/linux/windows binaries with GoReleaser
278
281
  - publish a GitHub Release with raw binary assets
279
- - publish the npm package
282
+ - publish the npm package if that version is not already on npm
283
+ - run clean install smoke tests on macOS and Linux using `npm install -g orch-code`
284
+
285
+ Recommended publish path:
286
+ - treat tag push as the canonical release path
287
+ - avoid manual `npm publish` during normal releases
288
+ - keep manual npm publish only as a recovery path if CI is unavailable
280
289
 
281
290
  `release:prepare` updates these files together:
282
291
  - `package.json`
package/cmd/version.go CHANGED
@@ -1,4 +1,4 @@
1
1
  package cmd
2
2
 
3
3
  // version is overridden in release builds via GoReleaser ldflags.
4
- var version = "0.1.2"
4
+ var version = "0.1.3"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orch-code",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Local-first control plane for deterministic AI coding",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -29,12 +29,12 @@
29
29
  ],
30
30
  "repository": {
31
31
  "type": "git",
32
- "url": "git+https://github.com/furkanbeydemir/orch.git"
32
+ "url": "git+https://github.com/beydemirfurkan/orch.git"
33
33
  },
34
34
  "bugs": {
35
- "url": "https://github.com/furkanbeydemir/orch/issues"
35
+ "url": "https://github.com/beydemirfurkan/orch/issues"
36
36
  },
37
- "homepage": "https://github.com/furkanbeydemir/orch#readme",
37
+ "homepage": "https://github.com/beydemirfurkan/orch#readme",
38
38
  "engines": {
39
39
  "node": ">=18"
40
40
  }
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+
3
+ const https = require('node:https');
4
+ const path = require('node:path');
5
+
6
+ const packageRoot = path.resolve(__dirname, '..');
7
+ const pkg = require(path.join(packageRoot, 'package.json'));
8
+
9
+ const version = process.argv[2] || pkg.version;
10
+ const encodedName = encodeURIComponent(pkg.name);
11
+ const url = `https://registry.npmjs.org/${encodedName}/${encodeURIComponent(version)}`;
12
+
13
+ https
14
+ .get(url, (response) => {
15
+ response.resume();
16
+
17
+ if (response.statusCode === 200) {
18
+ console.log('true');
19
+ process.exit(0);
20
+ }
21
+
22
+ if (response.statusCode === 404) {
23
+ console.log('false');
24
+ process.exit(0);
25
+ }
26
+
27
+ console.error(`[orch] unexpected npm registry status: ${response.statusCode || 'unknown'}`);
28
+ process.exit(1);
29
+ })
30
+ .on('error', (error) => {
31
+ console.error(`[orch] failed to query npm registry: ${error.message}`);
32
+ process.exit(1);
33
+ });
@@ -45,7 +45,7 @@ function main() {
45
45
 
46
46
  async function install() {
47
47
  const assetName = resolveAssetName();
48
- const baseUrl = process.env.ORCH_BINARY_BASE_URL || `https://github.com/furkanbeydemir/orch/releases/download/v${pkg.version}`;
48
+ const baseUrl = process.env.ORCH_BINARY_BASE_URL || `https://github.com/beydemirfurkan/orch/releases/download/v${pkg.version}`;
49
49
  const assetUrl = `${baseUrl}/${assetName}`;
50
50
 
51
51
  try {