@agentbridge1/cli 0.0.9 → 0.0.10

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isActiveLocalSession = isActiveLocalSession;
4
+ exports.hasActiveContract = hasActiveContract;
4
5
  exports.resolveRepoRoot = resolveRepoRoot;
5
6
  exports.readSessionState = readSessionState;
6
7
  exports.writeSessionState = writeSessionState;
@@ -20,6 +21,10 @@ function isActiveLocalSession(state) {
20
21
  return false;
21
22
  return true;
22
23
  }
24
+ /** Active session with declared contract intent (local MVP scope). */
25
+ function hasActiveContract(state) {
26
+ return isActiveLocalSession(state) && Boolean(state.intent?.trim());
27
+ }
23
28
  function resolveRepoRoot() {
24
29
  return process.env.AGENTBRIDGE_REPO_ROOT?.trim() || process.cwd();
25
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentbridge1/cli",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "CLI for AgentBridge — structured AI agent work sessions with domain authority and approval gates",
5
5
  "type": "commonjs",
6
6
  "bin": {