@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/cli/index.js +146 -46
- package/dist/cli/taskReport.d.ts +6 -0
- package/dist/cli/taskReport.js +31 -8
- package/dist/core/correction.d.ts +2 -0
- package/dist/core/correction.js +15 -1
- package/dist/core/subagentrole.d.ts +6 -0
- package/dist/core/subagentrole.js +32 -0
- package/dist/core/taskRecord.d.ts +1 -1
- package/dist/core/taskRecord.js +2 -2
- package/dist/core/taskReport.d.ts +8 -3
- package/dist/core/taskReport.js +7 -2
- package/dist/core/taskReportEvidence.d.ts +7 -0
- package/dist/core/taskReportEvidence.js +16 -4
- package/dist/core/taskReportHook.js +2 -2
- package/dist/core/taskReportPublic.js +2 -2
- package/dist/core/taskReportRender.js +2 -2
- package/dist/extractors/git.d.ts +10 -0
- package/dist/extractors/git.js +27 -0
- package/dist/integrations/health.js +1 -1
- package/dist/integrations/probe.d.ts +11 -0
- package/dist/integrations/probe.js +29 -4
- package/dist/integrations/sync.d.ts +16 -4
- package/dist/integrations/sync.js +54 -3
- package/dist/integrations/workspaceLedger.d.ts +1 -1
- package/dist/mcp/server.js +11 -10
- package/dist/mcp/taskReportTools.js +4 -4
- package/dist/serve/app.js +2 -2
- package/dist/taskReports.d.ts +1 -0
- package/dist/taskReports.js +2 -2
- package/package.json +1 -1
- package/server.json +2 -2
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 {
|
|
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) =>
|
|
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');
|
package/dist/taskReports.d.ts
CHANGED
|
@@ -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. */
|
package/dist/taskReports.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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
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.
|
|
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.
|
|
16
|
+
"version": "1.47.2",
|
|
17
17
|
"runtimeHint": "npx",
|
|
18
18
|
"packageArguments": [
|
|
19
19
|
{
|