agent-valley 2.2.0 → 2.3.0

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.
@@ -6431,6 +6431,72 @@ var init_zod = __esm(() => {
6431
6431
  init_external();
6432
6432
  });
6433
6433
 
6434
+ // ../../packages/core/src/oma/skill-matrix-schema.ts
6435
+ var hash, name, bounded, path, skillCompatibilityConfigSchema, skillCompatibilityPolicySchema, omaConfigSchema, matrixSkillSchema, matrixReportSchema;
6436
+ var init_skill_matrix_schema = __esm(() => {
6437
+ init_zod();
6438
+ hash = string2().regex(/^[a-f0-9]{64}$/);
6439
+ name = string2().regex(/^[a-z0-9][a-z0-9-]{0,127}$/);
6440
+ bounded = string2().trim().min(1).max(2000);
6441
+ path = string2().min(1).max(4096).refine((value) => !value.includes("\x00"));
6442
+ skillCompatibilityConfigSchema = strictObject({
6443
+ report_path: path,
6444
+ max_age_hours: number2().finite().positive().max(8760).default(168),
6445
+ mode: _enum(["warn", "require"])
6446
+ });
6447
+ skillCompatibilityPolicySchema = strictObject({
6448
+ reportPath: path,
6449
+ maxAgeHours: number2().finite().positive().max(8760),
6450
+ mode: _enum(["warn", "require"])
6451
+ });
6452
+ omaConfigSchema = strictObject({
6453
+ mode: _enum(["off", "strict"]).default("off"),
6454
+ skill_compatibility: skillCompatibilityConfigSchema.optional()
6455
+ });
6456
+ matrixSkillSchema = object({
6457
+ name,
6458
+ hash,
6459
+ caseId: bounded,
6460
+ requiredFiles: array(path).min(1).max(500),
6461
+ missingFiles: array(path).max(500),
6462
+ excludedReferences: array(object({ path, reason: bounded })).max(500)
6463
+ });
6464
+ matrixReportSchema = object({
6465
+ schemaVersion: literal(1),
6466
+ kind: literal("skill-compatibility-matrix"),
6467
+ mode: _enum(["plan", "live"]),
6468
+ status: _enum(["planned", "completed", "cancelled", "interrupted"]),
6469
+ createdAt: exports_iso.datetime(),
6470
+ omaVersion: bounded,
6471
+ host: object({ platform: bounded, arch: bounded, node: bounded }),
6472
+ suiteHash: hash,
6473
+ sourceKind: _enum(["synthetic", "installed"]),
6474
+ delivery: _enum(["native", "injected"]),
6475
+ auditScope: _enum(["fixture-contract", "read-reference"]),
6476
+ protocolVersion: literal("oma-skill-matrix-v2"),
6477
+ bundle: object({ hash, skills: array(matrixSkillSchema).min(1).max(100) }).optional(),
6478
+ cases: array(object({ id: bounded, skill: name })).max(100),
6479
+ models: object({ claude: bounded.nullable(), codex: bounded.nullable() }),
6480
+ cells: array(object({
6481
+ caseId: bounded,
6482
+ skill: name,
6483
+ vendor: _enum(["claude", "codex"]),
6484
+ status: _enum(["pass", "fail", "unverifiable", "error"]),
6485
+ contentHash: hash,
6486
+ checks: array(object({
6487
+ id: bounded,
6488
+ status: _enum(["pass", "fail", "unverifiable"]),
6489
+ detail: bounded,
6490
+ proof: _enum(["read", "canary"]).optional()
6491
+ })).max(1000),
6492
+ nativeActivation: _enum(["observed", "unobserved"]),
6493
+ cliVersion: string2().regex(/^[\w .()+/-]{1,160}$/).nullable(),
6494
+ model: bounded.nullable(),
6495
+ durationMs: number2().finite().nonnegative()
6496
+ })).max(200)
6497
+ });
6498
+ });
6499
+
6434
6500
  // ../../packages/core/src/config/task-schema.ts
6435
6501
  var reportPath, taskSchema, resolvedTaskSchema;
6436
6502
  var init_task_schema = __esm(() => {
@@ -6888,6 +6954,7 @@ var init_execution = __esm(() => {
6888
6954
  var actorType, text, amount, routingCandidateSchema, chiefOperatingPolicySchema, operatingRunSchema, routeEvidenceSchema, reviewDecisionSchema, chiefOperationsSchema;
6889
6955
  var init_operations = __esm(() => {
6890
6956
  init_zod();
6957
+ init_skill_matrix_schema();
6891
6958
  actorType = string2().regex(/^[a-z0-9][a-z0-9-]{0,127}$/);
6892
6959
  text = string2().trim().min(1).max(2000);
6893
6960
  amount = number2().finite().nonnegative();
@@ -6906,6 +6973,7 @@ var init_operations = __esm(() => {
6906
6973
  reviewVendor: _enum(["prefer", "require", "off"]),
6907
6974
  readyActors: array(actorType).max(20).optional(),
6908
6975
  memory: boolean2(),
6976
+ skillCompatibility: skillCompatibilityPolicySchema.optional(),
6909
6977
  metricTargets: array(strictObject({
6910
6978
  name: text,
6911
6979
  unit: text.optional(),
@@ -7224,7 +7292,7 @@ function chiefExecutionPolicy(config) {
7224
7292
  autoResume: execution.auto_resume
7225
7293
  } : {});
7226
7294
  }
7227
- function chiefOperatingPolicy(config, readyActors, automatic = true) {
7295
+ function chiefOperatingPolicy(config, readyActors, automatic = true, skillCompatibility) {
7228
7296
  return chiefOperatingPolicySchema.parse({
7229
7297
  routing: config.routing ? {
7230
7298
  candidates: config.routing.candidates.map((item) => ({
@@ -7239,7 +7307,8 @@ function chiefOperatingPolicy(config, readyActors, automatic = true) {
7239
7307
  reviewVendor: config.review_vendor ?? "prefer",
7240
7308
  memory: config.memory ?? true,
7241
7309
  metricTargets: config.metric_targets,
7242
- readyActors
7310
+ readyActors,
7311
+ skillCompatibility
7243
7312
  });
7244
7313
  }
7245
7314
  function chiefCapturePolicy(config) {
@@ -14575,7 +14644,7 @@ function mergeConfigs(global, project, env) {
14575
14644
  tunnel: buildTunnelConfig(project),
14576
14645
  verify: buildVerifyConfig(project),
14577
14646
  task: project?.task?.kind === "analysis" ? { kind: "analysis", reportPath: project.task.report_path } : { kind: "code" },
14578
- oma: { mode: project?.oma?.mode ?? "off" },
14647
+ oma: project?.oma ?? { mode: "off" },
14579
14648
  chief: global?.chief || project?.chief ? mergeChiefConfig(global?.chief, project?.chief) : undefined
14580
14649
  };
14581
14650
  }
@@ -14613,6 +14682,7 @@ Symphony cannot start until all config errors are resolved.`);
14613
14682
  var globalConfigSchema, projectConfigSchema, githubConfigSchema, mergedConfigSchema;
14614
14683
  var init_yaml_loader = __esm(() => {
14615
14684
  init_zod();
14685
+ init_skill_matrix_schema();
14616
14686
  init_actor_schema();
14617
14687
  init_budget_schema();
14618
14688
  init_chief_schema();
@@ -14706,7 +14776,7 @@ var init_yaml_loader = __esm(() => {
14706
14776
  tunnel: tunnelProjectSchema,
14707
14777
  verify: verifyProjectSchema,
14708
14778
  task: taskSchema.optional(),
14709
- oma: object({ mode: _enum(["off", "strict"]).default("off") }).optional(),
14779
+ oma: omaConfigSchema.optional(),
14710
14780
  chief: chiefConfigSchema.optional()
14711
14781
  }).strict().overwrite(normalizeActorDefaults);
14712
14782
  githubConfigSchema = object({
@@ -14775,7 +14845,7 @@ var init_yaml_loader = __esm(() => {
14775
14845
  tunnel: tunnelMergedSchema,
14776
14846
  verify: verifyMergedSchema,
14777
14847
  task: resolvedTaskSchema.optional(),
14778
- oma: object({ mode: _enum(["off", "strict"]) }).optional(),
14848
+ oma: omaConfigSchema.optional(),
14779
14849
  chief: chiefConfigSchema.optional()
14780
14850
  }).superRefine((cfg, ctx) => {
14781
14851
  if (cfg.trackerKind === "linear") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",