indusagi-coding-agent 0.2.0 → 0.2.2

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.
@@ -13,7 +13,7 @@ export type { Brand, Workspace, Invocation, RunnerId, BootContext, Stage, Runner
13
13
  export { boot } from "./boot";
14
14
  export { runStages, STAGES, locateWorkspace, upgrade, buildInvocation, resolveResources, selectRunnerStage, } from "./stages";
15
15
  export { tokenizeInvocation, wantsHelp, wantsVersion, } from "./invocation";
16
- export { replRunner, oneshotRunner, linkRunner, RUNNERS, selectRunner, } from "./runners";
16
+ export { replRunner, oneshotRunner, linkRunner, RUNNERS, selectRunner, createReadStateStore, READ_STATE_HANDLE_KEY, ReadStateStore, createCheckpointStore, CHECKPOINT_HANDLE_KEY, CheckpointStore, } from "./runners";
17
17
  export type { Upgrade, UpgradeReport } from "./upgrade";
18
18
  export { applyUpgrades, UPGRADES } from "./upgrade";
19
19
  export { BRAND, createWorkspace, ensureDirs } from "../workspace";
@@ -9,3 +9,5 @@ export { replRunner } from "./repl-runner";
9
9
  export { oneshotRunner } from "./oneshot-runner";
10
10
  export { linkRunner } from "./link-runner";
11
11
  export { RUNNERS, selectRunner } from "./registry";
12
+ export { createReadStateStore, READ_STATE_HANDLE_KEY, ReadStateStore, } from "./read-state";
13
+ export { createCheckpointStore, CHECKPOINT_HANDLE_KEY, CheckpointStore, } from "./checkpoint";
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Thin guardrails entry — the headless, library-consumable surface of the
3
+ * indusagi coding agent.
4
+ *
5
+ * This barrel re-exports ONLY the deterministic guardrail primitives (the
6
+ * permission rule engine, the bash blocklist, prompt assembly, deck
7
+ * provisioning, and the read-before-edit / checkpoint stores). It deliberately
8
+ * imports from the LEAF modules — never the root `src/index.ts` barrel — so a
9
+ * consumer can pull in the guardrails without dragging in the Ink/React console
10
+ * tree (`export * as consoleUi from "./console"` lives only on the root barrel).
11
+ *
12
+ * Reachable from a published install as `indusagi-coding-agent/guardrails`.
13
+ */
14
+ export { resolveRuleDecision, makeRule, createPermissionGate, READ_ONLY_TOOL_NAMES, EDIT_TOOL_NAMES, } from "./conductor/permissions";
15
+ export type { PermissionRule, PermissionMode, PermissionBehavior, PermissionDecision, } from "./conductor/permissions";
16
+ export { evaluateCatastrophic, bashSubcommandSubjects } from "./conductor/bash-guard";
17
+ export { composeBriefing } from "./briefing/compose";
18
+ export { gatherContextDocs } from "./briefing/context-docs";
19
+ export type { AgentTool, BriefingContext, ContextDoc } from "./briefing/contract";
20
+ export { provisionDeck } from "./capability-deck/provision";
21
+ export { createReadStateStore, READ_STATE_HANDLE_KEY, ReadStateStore } from "./boot/runners/read-state";
22
+ export { createCheckpointStore, CHECKPOINT_HANDLE_KEY, CheckpointStore } from "./boot/runners/checkpoint";
23
+ /**
24
+ * The byte-stable refusal emitted when an edit/write is attempted on a file the
25
+ * agent has not read this session.
26
+ *
27
+ * Surfaced here as the guardrails contract for consumers (e.g. eval fixtures)
28
+ * that assert the refusal verbatim. The literal is intentionally duplicated
29
+ * rather than re-exported because the upstream message lives only as a private
30
+ * module-local const in the framework's read-state gate — it is not part of any
31
+ * public barrel. A reword on either side must update both sites, by design.
32
+ */
33
+ export declare const READ_BEFORE_EDIT_MESSAGE = "File has not been read yet. Read it first before writing to it.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "indusagi-coding-agent",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Indusagi coding agent — a terminal-first AI coding agent, built from scratch on the indusagi framework.",
5
5
  "author": "Varun Israni",
6
6
  "license": "MIT",
@@ -22,12 +22,23 @@
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
25
- "main": "./dist/entry.js",
25
+ "main": "./dist/index.js",
26
26
  "types": "./dist/types/index.d.ts",
27
27
  "bin": {
28
28
  "indus": "dist/entry.js",
29
29
  "indusagi": "dist/entry.js"
30
30
  },
31
+ "exports": {
32
+ ".": {
33
+ "types": "./dist/types/index.d.ts",
34
+ "import": "./dist/index.js"
35
+ },
36
+ "./guardrails": {
37
+ "types": "./dist/types/guardrails.d.ts",
38
+ "import": "./dist/guardrails.js"
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
31
42
  "files": [
32
43
  "dist",
33
44
  "CHANGELOG.md",
@@ -46,7 +57,7 @@
46
57
  "@sinclair/typebox": "^0.34.49",
47
58
  "chalk": "^5.6.2",
48
59
  "highlight.js": "^11.11.1",
49
- "indusagi": "^0.13.0",
60
+ "indusagi": "^0.13.1",
50
61
  "ink": "^5.2.1",
51
62
  "jiti": "^2.7.0",
52
63
  "marked": "^18.0.4",