hunter-harness 0.2.18 → 0.2.19

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.
Files changed (2) hide show
  1. package/dist/bin.js +13 -1
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -2715,6 +2715,18 @@ function sortByTarget(items) {
2715
2715
  }
2716
2716
  async function reconcileContextIndex(root, agents, profiles, manifests, codebuddySurface2) {
2717
2717
  const existing = await readOptionalText(join6(root, CONTEXT_INDEX_PATH));
2718
+ let codebase = {
2719
+ map: ".harness/codebase/map",
2720
+ status: "missing"
2721
+ };
2722
+ try {
2723
+ const parsed = JSON.parse(existing);
2724
+ const current = parsed.codebase;
2725
+ if (typeof current?.map === "string" && (current.status === "missing" || current.status === "stale" || current.status === "fresh")) {
2726
+ codebase = { map: current.map, status: current.status };
2727
+ }
2728
+ } catch {
2729
+ }
2718
2730
  const record = {
2719
2731
  schema_version: 2,
2720
2732
  project: {
@@ -2728,7 +2740,7 @@ async function reconcileContextIndex(root, agents, profiles, manifests, codebudd
2728
2740
  ]))
2729
2741
  },
2730
2742
  knowledge: { index: ".harness/knowledge/index.json" },
2731
- codebase: { map: ".harness/codebase/map", status: "missing" },
2743
+ codebase,
2732
2744
  skill_bundles: Object.fromEntries(manifests.map((manifest) => [
2733
2745
  manifest.adapter,
2734
2746
  { registry_version: manifest.bundle_version, bundle_hash: manifest.bundle_manifest_hash }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hunter-harness",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Local-first, server-governed agent harness",
5
5
  "license": "MIT",
6
6
  "type": "module",