pi-reason-harness 1.0.1 → 1.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.
@@ -2,10 +2,9 @@
2
2
  * pi-reason-harness — Lifecycle helpers
3
3
  */
4
4
 
5
- import { homedir } from 'node:os';
6
5
  import * as fs from 'node:fs';
7
6
  import { join } from 'node:path';
8
- import type { ExtensionContext } from '@earendil-works/pi-coding-agent';
7
+ import { getAgentDir, type ExtensionContext } from '@earendil-works/pi-coding-agent';
9
8
 
10
9
  export function getDirs() {
11
10
  const baseDir = join(process.cwd(), '.pi', 'reason-harness');
@@ -25,7 +24,7 @@ export function writeSessionId(ctx: ExtensionContext): void {
25
24
 
26
25
  export function installShellAlias(cliPath: string, projectRoot: string): void {
27
26
  try {
28
- const agentBinDir = join(homedir(), '.pi', 'agent', 'bin');
27
+ const agentBinDir = join(getAgentDir(), 'bin');
29
28
  if (!fs.existsSync(agentBinDir)) {
30
29
  fs.mkdirSync(agentBinDir, { recursive: true });
31
30
  }
package/harness/cli.ts CHANGED
File without changes
package/harness/server.ts CHANGED
@@ -36,10 +36,12 @@ import {
36
36
  getModel,
37
37
  getEnvApiKey,
38
38
  completeSimple,
39
- type Model,
40
- type Context,
41
- type UserMessage,
42
- type SimpleStreamOptions,
39
+ } from '@earendil-works/pi-ai/compat';
40
+ import type {
41
+ Model,
42
+ Context,
43
+ UserMessage,
44
+ SimpleStreamOptions,
43
45
  } from '@earendil-works/pi-ai';
44
46
 
45
47
  interface CustomProviderConfig {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-reason-harness",
3
- "version": "1.0.1",
4
- "description": "Recursive self-improving reasoning harness for pi \u2014 iterate, verify, improve. Builds task-specific reasoning strategies on top of any LLM.",
3
+ "version": "1.0.3",
4
+ "description": "Recursive self-improving reasoning harness for pi iterate, verify, improve. Builds task-specific reasoning strategies on top of any LLM.",
5
5
  "keywords": [
6
6
  "pi-package"
7
7
  ],
@@ -25,16 +25,11 @@
25
25
  "./skills"
26
26
  ]
27
27
  },
28
- "scripts": {
29
- "test": "vitest run",
30
- "test:watch": "vitest",
31
- "typecheck": "tsc --noEmit"
32
- },
33
28
  "devDependencies": {
29
+ "@earendil-works/pi-tui": "0.79.4",
34
30
  "@types/node": "25.9.1",
35
31
  "typescript": "6.0.3",
36
- "vitest": "4.1.7",
37
- "@earendil-works/pi-tui": "0.79.4"
32
+ "vitest": "4.1.7"
38
33
  },
39
34
  "peerDependencies": {
40
35
  "@earendil-works/pi-ai": ">=0.74.0",
@@ -46,5 +41,10 @@
46
41
  "fast-xml-builder": "1.2.0",
47
42
  "protobufjs": "8.4.0",
48
43
  "ws": "8.20.1"
44
+ },
45
+ "scripts": {
46
+ "test": "vitest run",
47
+ "test:watch": "vitest",
48
+ "typecheck": "tsc --noEmit"
49
49
  }
50
- }
50
+ }