@litterthanlit/hypher-cli 0.1.0 → 0.1.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/README.md CHANGED
@@ -11,3 +11,5 @@ Pilot · not yet recorded. The bridge between coding agents and Hypher project m
11
11
  Only hashes, file names, repository and commit identity, and agent-written handoff text leave the machine. Never code, diffs, or transcripts.
12
12
 
13
13
  Canonical git helpers are vendored from `packages/hypher-git` (`node script/sync-hypher-git.mjs`). The note renderer, validators, and secret scan are vendored from `hypher-web/shared` (`node script/sync-hypher-shared.mjs`). Do not edit `vendor/` by hand.
14
+
15
+ Releases go out from GitHub Actions with npm trusted publishing; see `packages/hypher-cli/RELEASING.md` in the repository.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litterthanlit/hypher-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Hypher bridge for coding agents: hooks, a local outbox, and a truth check against the working tree. Pilot, not yet recorded.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,8 +18,13 @@
18
18
  "scripts": {
19
19
  "test": "node --test test/*.test.mjs"
20
20
  },
21
- "license": "UNLICENSED",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/litterthanlit/hypher.git",
24
+ "directory": "packages/hypher-cli"
25
+ },
22
26
  "publishConfig": {
23
27
  "access": "public"
24
- }
28
+ },
29
+ "license": "UNLICENSED"
25
30
  }
package/src/api.mjs CHANGED
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { appendFileSync, mkdirSync } from "node:fs";
7
7
  import path from "node:path";
8
- import { apiBase, paths } from "./env.mjs";
8
+ import { apiBase, CLI_VERSION, paths } from "./env.mjs";
9
9
  import { readConfig } from "./config.mjs";
10
10
  import { loadCredential } from "./credentials.mjs";
11
11
 
@@ -54,7 +54,7 @@ export function createClient({ env = process.env, apiKey, timeoutMs = 4_000 } =
54
54
  */
55
55
  async function send(method, route, { body, auth = true, timeoutMs: perCall } = {}) {
56
56
  const url = `${base}${route}`;
57
- const headers = { accept: "application/json", "user-agent": "hypher-cli/0.1.0" };
57
+ const headers = { accept: "application/json", "user-agent": `hypher-cli/${CLI_VERSION}` };
58
58
  if (body !== undefined) headers["content-type"] = "application/json";
59
59
  if (auth && key) headers.authorization = `Bearer ${key}`;
60
60
  const payload = body === undefined ? undefined : JSON.stringify(body);
package/src/codex.mjs CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
  import { spawn, spawnSync } from "node:child_process";
15
15
  import path from "node:path";
16
- import { paths } from "./env.mjs";
16
+ import { CLI_VERSION, paths } from "./env.mjs";
17
17
  import { hookCommand as taggedCommand, installedEvents, isTaggedCommand, mergeHooks, removeHooks, renderJson, taggedPositions } from "./hookConfig.mjs";
18
18
  import { readBytes } from "./fsutil.mjs";
19
19
 
@@ -287,7 +287,7 @@ export function codexHookList(env, cwd, { timeoutMs = 15_000 } = {}) {
287
287
  }
288
288
  });
289
289
  child.stdin.on("error", () => finish(null));
290
- child.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: { clientInfo: { name: "hypher", version: "0.1.0" } } })}\n`);
290
+ child.stdin.write(`${JSON.stringify({ jsonrpc: "2.0", id: 1, method: "initialize", params: { clientInfo: { name: "hypher", version: CLI_VERSION } } })}\n`);
291
291
  });
292
292
  }
293
293
 
package/src/env.mjs CHANGED
@@ -6,7 +6,8 @@
6
6
  import os from "node:os";
7
7
  import path from "node:path";
8
8
 
9
- export const CLI_VERSION = "0.1.0";
9
+ // Keep equal to package.json; a test checks it.
10
+ export const CLI_VERSION = "0.1.1";
10
11
  export const DEFAULT_API_BASE = "https://www.hypher.app";
11
12
  export const INTEGRATIONS_URL = "https://hypher.app/app/settings/integrations";
12
13
  export const API_KEYS_URL = "https://hypher.app/app/settings/api-keys";