@davesheffer/hunch 1.47.0 → 1.47.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.
package/dist/serve/app.js CHANGED
@@ -23,7 +23,7 @@ import { STATE_PROOF_CAPABILITY } from '../core/stateProof.js';
23
23
  import { createServer } from "node:http";
24
24
  import { HunchStore } from "../store/hunchStore.js";
25
25
  import { hunchPaths } from "../core/paths.js";
26
- import { flushCapture } from "../integrations/sync.js";
26
+ import { flushStateWrite } from "../integrations/sync.js";
27
27
  import { StateRefusal, capabilities, mergeReadResponses, readState, recordsState, stateHomeFor, subscribeState, writeState } from "../store/stateBinding.js";
28
28
  import { STATE_READ_VERSION, STATE_RECORDS_VERSION, STATE_SUBSCRIBE_VERSION, STATE_WRITE_VERSION, ReadScopesSchema, ScopeSchema, scopePath } from "../core/stateContract.js";
29
29
  import { partitionFor, resolveCredential, readServeConfig } from "./config.js";
@@ -174,7 +174,7 @@ export function createServeApp(config, opts = {}) {
174
174
  // Only authenticated grants select stores for cross-partition source visibility.
175
175
  const accessOptions = { additionalStores: principal.grants.map(grant => requestStore(grant).store) };
176
176
  const { store, root } = requestStore(scope);
177
- const flush = (isPrivate, message) => flushCapture(store, hunchPaths(root).hunch, isPrivate, message);
177
+ const flush = (isPrivate, message) => flushStateWrite(store, hunchPaths(root).hunch, isPrivate, message);
178
178
  if (route === "read") {
179
179
  if (body.observed_page !== undefined && body.scopes !== undefined)
180
180
  throw problem(400, 'malformed', 'observation pages require a single partition without scopes');
@@ -47,6 +47,7 @@ export declare function createTaskReporter(root: string): {
47
47
  source: "local-command-runner";
48
48
  check_id?: string | undefined;
49
49
  cancelled?: boolean | undefined;
50
+ work_root?: string | undefined;
50
51
  }>;
51
52
  /** Hunch evaluates each delivered lesson's declared rule against the changed
52
53
  * files. Deterministic and local; the harness supplies no verdict. */
@@ -2,7 +2,7 @@
2
2
  * lifecycle and display; neither operation depends on model compliance. */
3
3
  import { z } from "zod";
4
4
  import { finishReportTask, listReportTasks, readTaskReport, readLessonHistory, recordReportClaim, recordTaskDelivery, reportHash, reportPresentationEnabled, startReportTask } from "./core/taskReport.js";
5
- import { DEFAULT_CHECK_TIMEOUT_MS, reportSourceSnapshot, runReportCheck, runReportConformance } from "./core/taskReportEvidence.js";
5
+ import { DEFAULT_CHECK_TIMEOUT_MS, currentSource, runReportCheck, runReportConformance } from "./core/taskReportEvidence.js";
6
6
  export { DEFAULT_CHECK_TIMEOUT_MS, MAX_CHECK_TIMEOUT_MS } from "./core/taskReportEvidence.js";
7
7
  import { renderTaskReport, writeTaskReportHtml } from "./core/taskReportRender.js";
8
8
  import { hunchPaths } from "./core/paths.js";
@@ -17,7 +17,7 @@ const IdentitySchema = z.object({ task: z.string().min(1).max(1024), attempt: z.
17
17
  * their own principal/partition boundary before reaching this local API. */
18
18
  export function createTaskReporter(root) {
19
19
  const scope = canonicalReportRoot(root);
20
- const report = (taskId) => readTaskReport(scope, taskId, reportSourceSnapshot(scope).hash);
20
+ const report = (taskId) => readTaskReport(scope, taskId, currentSource(scope));
21
21
  return {
22
22
  /** Omit identity for a fresh task, or supply the harness's stable task AND
23
23
  * execution attempt for idempotent retries. Raw identities are not retained. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@davesheffer/hunch",
3
- "version": "1.47.0",
3
+ "version": "1.47.2",
4
4
  "mcpName": "io.github.davesheffer/hunch",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Dave Sheffer <dave.sheffer1@gmail.com>",
package/server.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "source": "github"
8
8
  },
9
9
  "websiteUrl": "https://www.hunchmemory.com",
10
- "version": "1.47.0",
10
+ "version": "1.47.2",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "registryBaseUrl": "https://registry.npmjs.org",
15
15
  "identifier": "@davesheffer/hunch",
16
- "version": "1.47.0",
16
+ "version": "1.47.2",
17
17
  "runtimeHint": "npx",
18
18
  "packageArguments": [
19
19
  {