lobstah 0.8.2 → 0.8.4

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/dist/runner.js CHANGED
@@ -1955,7 +1955,7 @@ function parsePrRef(s) {
1955
1955
  const number = Number(n);
1956
1956
  return { owner, repo, number, key: `pr:${owner}/${repo}#${number}`, url: `https://github.com/${owner}/${repo}/pull/${number}` };
1957
1957
  }
1958
- var PR_VIEW_FIELDS = "title,state,isDraft,isCrossRepository,headRefOid,baseRefName,baseRefOid,headRefName,mergeStateStatus,reviewDecision,statusCheckRollup,createdAt,mergedAt,closedAt,updatedAt,reviews";
1958
+ var PR_VIEW_FIELDS = "title,author,state,isDraft,isCrossRepository,headRefOid,baseRefName,baseRefOid,headRefName,mergeStateStatus,reviewDecision,statusCheckRollup,createdAt,mergedAt,closedAt,updatedAt,reviews";
1959
1959
  var PR_VIEW_FIELDS_NO_CHECKS = PR_VIEW_FIELDS.split(",").filter((f) => f !== "statusCheckRollup").join(",");
1960
1960
  var FORBIDDEN = /resource not accessible by (integration|personal access token)/i;
1961
1961
  function ghPrView(ref) {
@@ -4375,7 +4375,7 @@ async function recoverWorktree(repo, id) {
4375
4375
  throw new Error(`unrecorded worktree at ${dir} for ${id} \u2014 ownership not proven (expected lobstah/${id} in ${repo.path}); inspect and preserve it, then relocate the conflicting checkout before retrying`);
4376
4376
  }
4377
4377
  function setupEnv(repo) {
4378
- return { ...process.env, npm_config_confirm_modules_purge: "false", ...repo.env ?? {} };
4378
+ return { ...process.env, CI: "true", npm_config_confirm_modules_purge: "false", ...repo.env ?? {} };
4379
4379
  }
4380
4380
  var SetupCommandError = class extends Error {
4381
4381
  command;
@@ -441,11 +441,11 @@ merges lobstah's profile into your Claude Code user settings
441
441
  the only file Claude Code reads `autoMode.environment` from, apart from managed
442
442
  settings and `--settings`.
443
443
 
444
- The base profile adds context for Claude Code's classifier:
444
+ The base profile only adds context for Claude Code's classifier, never a
445
+ restriction; the classifier keeps its own safety policy:
445
446
  - lobstah's worktrees are your development checkouts;
446
447
  - the helm doing what you asked in its chat is not a bypass;
447
- - merges to trunk, production deploys, secrets, accounts and lobstah's own
448
- permission controls stay yours.
448
+ - an answer you give on a glass card is your own, like a chat message.
449
449
 
450
450
  It also allows `Read` and `Edit` on `<lobstah home>/worktrees/**`.
451
451
  `[permissions]` adds to it:
@@ -468,12 +468,11 @@ allow = [["wrangler", "dev"]]
468
468
  | `codex.forbidden`, `codex.prompt`, `codex.allow` | Codex command rules, each an argv prefix (`["gh", "pr", "merge"]`). A Codex `allow` runs the command outside Codex's sandbox, so these are never translated from the Claude rules. |
469
469
 
470
470
  **Codex.** Codex has its own home: `$CODEX_HOME`, else `~/.codex`. When it exists, the same verbs also change two things there:
471
- - **The auto reviewer's added policy.** This is `[auto_review].extra_policy` in `config.toml`, which Codex's reviewer reads alongside its own policy. lobstah writes a block between `<!-- lobstah:begin … -->` and `<!-- lobstah:end -->` holding the same three facts and `environment`.
471
+ - **The auto reviewer's added policy.** This is `[auto_review].extra_policy` in `config.toml`, which Codex's reviewer reads alongside its own policy. lobstah writes a block between `<!-- lobstah:begin … -->` and `<!-- lobstah:end -->` holding the same context entries and `environment`.
472
472
  - Text outside the markers is yours and stays.
473
473
  - lobstah edits only the key's own lines, keeping comments, key order and the string's quoting. It parses the file before and after; anything else changing refuses the write.
474
474
  - **`rules/lobstah.rules`.** This file is wholly lobstah's. It holds the base rules plus `[permissions.codex]`:
475
- - forbidden: `lobstah grant`, `lobstah trap grant|bypass` and `lobstah permissions apply|remove`;
476
- - prompt: `gh pr merge`.
475
+ - allow: `lobstah permissions propose`. lobstah adds no `forbidden` or `prompt` rule of its own; Codex's reviewer keeps its own policy.
477
476
  - `codex execpolicy check` loads every rule before the file is put in place.
478
477
 
479
478
  `remove` deletes `rules/lobstah.rules` and lobstah's block. Neither verb sets `approvals_reviewer` or `approval_policy`: `man throw` already starts Codex traps with `--approve-for-me`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lobstah",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Harness-agnostic, token-efficient supervision framework for coding agents",
5
5
  "license": "MIT",
6
6
  "author": "aequitas labs LLC",