@osfactory/har 0.59.0 → 0.60.1

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/index.js CHANGED
@@ -4275,7 +4275,8 @@ var init_schema = __esm({
4275
4275
  });
4276
4276
  HarnessManifestSchema = external_exports.object({
4277
4277
  version: external_exports.string(),
4278
- generatorVersion: external_exports.string(),
4278
+ /** Legacy field — ignored. Drift is file checksums vs bundled templates. */
4279
+ generatorVersion: external_exports.string().optional(),
4279
4280
  outputDir: external_exports.string().default(".har"),
4280
4281
  createdAt: external_exports.string(),
4281
4282
  updatedAt: external_exports.string(),
@@ -28322,7 +28323,6 @@ function createManifest(repoPath, adaptationSummary, stack, profile) {
28322
28323
  const harnessDir = getHarnessDir(repoPath);
28323
28324
  return {
28324
28325
  version: MANIFEST_VERSION,
28325
- generatorVersion: GENERATOR_VERSION,
28326
28326
  outputDir: DEFAULT_HAR_DIR,
28327
28327
  createdAt: now,
28328
28328
  updatedAt: now,
@@ -28345,7 +28345,7 @@ function resolveHarnessRoot(inputPath) {
28345
28345
  }
28346
28346
  return path4.resolve(inputPath);
28347
28347
  }
28348
- var crypto, fs4, path4, GENERATOR_VERSION, MANIFEST_VERSION, DEFAULT_HAR_DIR, CHECKSUM_SKIP;
28348
+ var crypto, fs4, path4, MANIFEST_VERSION, DEFAULT_HAR_DIR, CHECKSUM_SKIP;
28349
28349
  var init_manifest = __esm({
28350
28350
  "src/harness/manifest.ts"() {
28351
28351
  "use strict";
@@ -28354,7 +28354,6 @@ var init_manifest = __esm({
28354
28354
  path4 = __toESM(require("path"));
28355
28355
  init_schema2();
28356
28356
  init_file_ops();
28357
- GENERATOR_VERSION = "0.5.0";
28358
28357
  MANIFEST_VERSION = "1";
28359
28358
  DEFAULT_HAR_DIR = ".har";
28360
28359
  CHECKSUM_SKIP = /* @__PURE__ */ new Set([
@@ -69803,16 +69802,10 @@ function compareHarnessToTemplate(repoPath) {
69803
69802
  }
69804
69803
  }
69805
69804
  }
69806
- const installed = manifest?.generatorVersion;
69807
69805
  const harnessEnv = readHarnessEnv(resolved);
69808
69806
  const missingPortVars = missingPortDocumentationVars(profile, harnessEnv);
69809
69807
  const agentSlotMismatch = detectAgentSlotEnvMismatch(resolved);
69810
69808
  return {
69811
- generatorVersion: {
69812
- installed,
69813
- bundled: GENERATOR_VERSION,
69814
- outdated: installed !== void 0 && installed !== GENERATOR_VERSION
69815
- },
69816
69809
  missing,
69817
69810
  checksumMismatch,
69818
69811
  extra,
@@ -70668,7 +70661,7 @@ function buildReadme(report) {
70668
70661
  "# Harness maintenance bundle",
70669
70662
  "",
70670
70663
  `Generated by \`har env maintain\` on ${report.generatedAt}.`,
70671
- `Bundled generator: ${report.generatorVersion.bundled} | Installed: ${report.generatorVersion.installed ?? "(unknown)"} | Profile: ${report.profile}`,
70664
+ `Profile: ${report.profile}`,
70672
70665
  "",
70673
70666
  "Reference templates and diffs live in this directory. Edit live files in `.har/` \u2014 not `maintain/templates/` directly.",
70674
70667
  "",
@@ -70868,7 +70861,6 @@ function buildMaintainBundle(repoPath, validation2, drift) {
70868
70861
  const pluginActions = buildPluginDriftActions(repoPath, pluginDrift);
70869
70862
  const report = {
70870
70863
  generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
70871
- generatorVersion: drift.generatorVersion,
70872
70864
  profile,
70873
70865
  actions: buildActions(repoPath, profile, drift),
70874
70866
  pluginDrift,
@@ -72630,7 +72622,7 @@ var envCommand = {
72630
72622
  }).option("finalize", {
72631
72623
  type: "boolean",
72632
72624
  default: false,
72633
- describe: "Record the completed manual adaptation in .har/manifest.json (updates generatorVersion and checksums)"
72625
+ describe: "Record the completed manual adaptation in .har/manifest.json (updates file checksums)"
72634
72626
  }).option("summary", {
72635
72627
  type: "string",
72636
72628
  describe: "Adaptation summary to store in the manifest (--finalize only)"
@@ -72921,7 +72913,7 @@ async function handleMaintain(argv) {
72921
72913
  warn("Harness has validation errors \u2014 fix them before finalizing.");
72922
72914
  return finishCommand(1);
72923
72915
  }
72924
- info("Manifest updated \u2014 generator version and file checksums recorded.");
72916
+ info("Manifest updated \u2014 file checksums recorded.");
72925
72917
  } else {
72926
72918
  if (!result.validation.pass) {
72927
72919
  warn("Harness has validation errors \u2014 fix them before running --finalize.");
@@ -73372,11 +73364,6 @@ function printValidation(result) {
73372
73364
  }
73373
73365
  }
73374
73366
  function printDrift(drift) {
73375
- if (drift.generatorVersion.outdated) {
73376
- warn(
73377
- ` Harness generator ${drift.generatorVersion.installed} \u2192 bundled ${drift.generatorVersion.bundled}`
73378
- );
73379
- }
73380
73367
  if (drift.checksumMismatch.length > 0) {
73381
73368
  warn(` Drift (template changed): ${drift.checksumMismatch.join(", ")}`);
73382
73369
  }
@@ -73398,7 +73385,7 @@ function printDrift(drift) {
73398
73385
  );
73399
73386
  warn(" Canonical source is .har/stages.json \u2014 har env maintain --finalize syncs harness.env.");
73400
73387
  }
73401
- if (!drift.generatorVersion.outdated && drift.checksumMismatch.length === 0 && drift.missing.length === 0 && drift.extra.length === 0 && drift.missingPortVars.length === 0 && !drift.agentSlotMismatch) {
73388
+ if (drift.checksumMismatch.length === 0 && drift.missing.length === 0 && drift.extra.length === 0 && drift.missingPortVars.length === 0 && !drift.agentSlotMismatch) {
73402
73389
  success(" Harness matches bundled templates");
73403
73390
  }
73404
73391
  }
@@ -81749,11 +81736,6 @@ var DescribeProjectOutputSchema = external_exports.object({
81749
81736
  database: external_exports.string().optional()
81750
81737
  }),
81751
81738
  harnessDrift: external_exports.object({
81752
- generatorVersion: external_exports.object({
81753
- installed: external_exports.string().optional(),
81754
- bundled: external_exports.string(),
81755
- outdated: external_exports.boolean()
81756
- }),
81757
81739
  missing: external_exports.array(external_exports.string()),
81758
81740
  checksumMismatch: external_exports.array(external_exports.string()),
81759
81741
  extra: external_exports.array(external_exports.string()),
@@ -15,7 +15,7 @@ Compare the current repo against the existing harness:
15
15
  - Root manifests, CI, Docker, README
16
16
  - New or changed test, lint, build, migrate, or seed commands
17
17
  - New services, ports, or environment variables
18
- - Review `.har/maintain/drift-report.json` (generator version, template drift, **missing port documentation vars**)
18
+ - Review `.har/maintain/drift-report.json` (template drift, **missing port documentation vars**)
19
19
 
20
20
  ## Step 2 — Update `.har/` files
21
21
 
@@ -115,4 +115,4 @@ Do **not** create `AGENT.md` (singular). If legacy `AGENT.md` exists, merge uniq
115
115
  4. Replace any remaining TODO placeholders
116
116
  5. Do not edit `.har/manifest.json` — managed by the har CLI
117
117
 
118
- When finished, summarize what you changed, confirm verification commands still match the repo, and record the adaptation with `har env maintain --finalize --summary "<what changed>"` (updates the manifest's generator version and checksums).
118
+ When finished, summarize what you changed, confirm verification commands still match the repo, and record the adaptation with `har env maintain --finalize --summary "<what changed>"` (updates the manifest checksums).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@osfactory/har",
3
- "version": "0.59.0",
3
+ "version": "0.60.1",
4
4
  "description": "Open harness for reproducible multi-agent coding workflows",
5
5
  "keywords": [
6
6
  "har",