osborn 0.9.293 → 0.9.295

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.
@@ -25,6 +25,11 @@ Use this every time changes are ready to ship.
25
25
  4. User publishes to NPM from Mac
26
26
  - User runs `git pull` on their Mac
27
27
  - User runs `cd agent && npm publish` from the osborn repo
28
+ - Or publish from CI (`.github/workflows/publish-agent.yml`, npm Trusted Publishing, no token):
29
+ after the version bump is merged to main, `git tag agent-v<ver> && git push origin agent-v<ver>`
30
+ (on that merged commit). CI checks the tag matches package.json and the commit is on main, runs
31
+ every agent test, builds and packs, then a separate job holding the publish token publishes that
32
+ tarball after the `npm` environment's required reviewer approves (npm refuses an existing version).
28
33
 
29
34
  5. Update the Sprite from the NPM registry
30
35
  - `npm install -g osborn`
@@ -265,7 +265,7 @@ export async function runLibraryStep(o) {
265
265
  // Period map on exactly this row range, staged first; published only when a map came back.
266
266
  mkdirSync(join(dir, STAGING_DIR), { recursive: true });
267
267
  const staged = join(dir, STAGING_DIR, file);
268
- const r = await runPeriodMap({ sessionId: o.sessionId, outPath: staged, fromRowId: p.startRowId, toRowId: p.endRowId, dry: o.dry, log });
268
+ const r = await runPeriodMap({ sessionId: o.sessionId, outPath: staged, fromRowId: p.startRowId, toRowId: p.endRowId, projectDir, dry: o.dry, log });
269
269
  res.costUsd = r.costUsd;
270
270
  res.errors = [...r.errors];
271
271
  const ok = !!r.map || !!o.dry;
@@ -25,6 +25,8 @@ export interface PeriodOptions {
25
25
  /** Block stats only — no model call. */
26
26
  dry?: boolean;
27
27
  audio?: AudioAdapter;
28
+ /** The session's project dir: a session id can have a store under more than one project. */
29
+ projectDir?: string | null;
28
30
  log?: (m: string) => void;
29
31
  }
30
32
  export declare function runPeriodMap(o: PeriodOptions): Promise<PeriodRunReport>;
@@ -28,7 +28,7 @@ export const PERIOD_CAP_USD = 0.5;
28
28
  const MAX_OUT = 12_000;
29
29
  export async function runPeriodMap(o) {
30
30
  const log = o.log ?? (() => { });
31
- const db = resolveSessionDb(o.sessionId);
31
+ const db = resolveSessionDb(o.sessionId, o.projectDir);
32
32
  if (!db)
33
33
  throw new Error(`no session.db for ${o.sessionId}`);
34
34
  const projectDir = dirname(dirname(dirname(db)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osborn",
3
- "version": "0.9.293",
3
+ "version": "0.9.295",
4
4
  "description": "Voice AI coding assistant - local agent that connects to Osborn frontend",
5
5
  "type": "module",
6
6
  "bin": {