@fro.bot/systematic 3.23.0 → 3.24.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/ATTRIBUTIONS.md CHANGED
@@ -272,7 +272,7 @@ The following is the full Apache License, Version 2.0 text, reproduced here in c
272
272
  ## vercel-labs/agent-browser — Apache-2.0
273
273
 
274
274
  **Source repository:** [`vercel-labs/agent-browser`](https://github.com/vercel-labs/agent-browser)
275
- **Pinned version:** `v0.34.0` (npm `agent-browser@0.34.0`)
275
+ **Pinned version:** `v0.39.1` (npm `agent-browser@0.39.1`)
276
276
  **License:** Apache-2.0
277
277
  **Copyright:** Copyright 2025 Vercel Inc.
278
278
 
@@ -296,7 +296,7 @@ This is fully automated — no human adaptation pass is required, in contrast to
296
296
 
297
297
  ### Upstream Apache-2.0 license text
298
298
 
299
- The following is the full Apache License, Version 2.0 text from `agent-browser@0.34.0`, reproduced here in compliance with the license's notice requirements:
299
+ The following is the full Apache License, Version 2.0 text from `agent-browser@0.39.1`, reproduced here in compliance with the license's notice requirements:
300
300
 
301
301
  ```
302
302
  Apache License
package/dist/cli.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
  findCommandsInDir,
35
35
  findSkillsInDir,
36
36
  discoverSkills
37
- } from "./index-pdbqekxp.js";
37
+ } from "./index-vkmdceqk.js";
38
38
  var __defProp = Object.defineProperty;
39
39
  var __returnValue = (v) => v;
40
40
  function __exportSetter(name, newValue) {
@@ -193,9 +193,7 @@ var CONFIG_SOURCE_KINDS = ["custom", "project", "user"];
193
193
  var CONFIG_AUTHORITY_FIELD_PATHS = [
194
194
  "bootstrap.enabled",
195
195
  "bootstrap.file",
196
- "skills_as_commands",
197
- "workflow_guard.debug",
198
- "workflow_guard.mode"
196
+ "skills_as_commands"
199
197
  ];
200
198
  var CONFIG_SOURCE_ERROR_CODES = [
201
199
  "parse-failed",
@@ -1504,7 +1504,6 @@ var BUNDLED_SKILL_NAMES = [
1504
1504
 
1505
1505
  // src/lib/config-protected-fields.ts
1506
1506
  var CONFIG_PROTECTED_FIELD_PATHS = [
1507
- "workflow_guard",
1508
1507
  "profiles",
1509
1508
  "allow_project_profiles",
1510
1509
  "agents.*.model",
@@ -7473,6 +7472,9 @@ var REMOVED_BUNDLED_AGENT_NAMES = [
7473
7472
  var REMOVED_BUNDLED_AGENT_CATEGORIES = [
7474
7473
  "docs"
7475
7474
  ];
7475
+ var REMOVED_CONFIG_KEYS = [
7476
+ "workflow_guard"
7477
+ ];
7476
7478
 
7477
7479
  // src/lib/config-schema.ts
7478
7480
  var permissionSettingSchema = _enum(["ask", "allow", "deny"]);
@@ -7506,23 +7508,9 @@ var modeSchema = _enum(["subagent", "primary", "all"]).meta({
7506
7508
  description: "Agent execution mode",
7507
7509
  examples: ["subagent", "primary", "all"]
7508
7510
  });
7509
- var workflowGuardModeSchema = _enum([
7510
- "observe",
7511
- "protected",
7512
- "disabled"
7513
- ]);
7514
- var WorkflowGuardSchema = object({
7515
- mode: workflowGuardModeSchema.default("disabled").meta({
7516
- description: "Workflow guard mode. The guard is off by default (`disabled`); set `observe` or `protected` to turn it on.",
7517
- examples: ["observe", "protected", "disabled"]
7518
- }),
7519
- debug: boolean().default(false).meta({
7520
- description: "Enable workflow guard debugging",
7521
- examples: [false, true]
7522
- })
7523
- }).strict().default({ mode: "disabled", debug: false }).meta({
7524
- description: "Workflow guard configuration. The guard is off by default; `mode: observe` or `mode: protected` turns it on.",
7525
- examples: [{ mode: "observe", debug: false }]
7511
+ var removedWorkflowGuardSchema = unknown().optional().meta({
7512
+ description: "Removed. The workflow guard no longer exists, so this setting has no effect and is ignored. Delete it from your config to silence the warning it triggers.",
7513
+ deprecated: true
7526
7514
  });
7527
7515
  var colorSchema = union([
7528
7516
  _enum(OPENCODE_AGENT_COLOR_TOKENS),
@@ -7803,7 +7791,7 @@ function createSystematicConfigSchema(opts) {
7803
7791
  { enabled: false, file: ".opencode/custom-prompt.md" }
7804
7792
  ]
7805
7793
  }),
7806
- workflow_guard: WorkflowGuardSchema,
7794
+ workflow_guard: removedWorkflowGuardSchema,
7807
7795
  pi_subagents: PiSubagentsSchema,
7808
7796
  skills_as_commands: boolean().default(true).meta({
7809
7797
  description: "Register skills discovered from user/project skill directories (OpenCode config and other agent-harness-standard locations) as slash commands. Default true.",
@@ -8176,9 +8164,7 @@ function collectWrittenLegacyPiSubagentsThinkingWarnings(piSubagentsOverlays) {
8176
8164
  var CONFIG_AUTHORITY_FIELD_PATHS = [
8177
8165
  "bootstrap.enabled",
8178
8166
  "bootstrap.file",
8179
- "skills_as_commands",
8180
- "workflow_guard.debug",
8181
- "workflow_guard.mode"
8167
+ "skills_as_commands"
8182
8168
  ];
8183
8169
  var DEFAULT_CONFIG = {
8184
8170
  disabled_skills: [],
@@ -8187,10 +8173,6 @@ var DEFAULT_CONFIG = {
8187
8173
  bootstrap: {
8188
8174
  enabled: true
8189
8175
  },
8190
- workflow_guard: {
8191
- mode: "disabled",
8192
- debug: false
8193
- },
8194
8176
  agents: {},
8195
8177
  categories: {},
8196
8178
  pi_subagents: { categories: {}, agents: {} },
@@ -8215,10 +8197,7 @@ var PROTECTED_OVERLAY_FIELD_PATHS = {
8215
8197
  pi: "categories.*.pi"
8216
8198
  }
8217
8199
  };
8218
- var PROJECT_ALWAYS_PROTECTED_FIELDS = new Set([
8219
- "workflow_guard",
8220
- "allow_project_profiles"
8221
- ]);
8200
+ var PROJECT_ALWAYS_PROTECTED_FIELDS = new Set(["allow_project_profiles"]);
8222
8201
  var MAX_DIAGNOSTIC_TEXT = 200;
8223
8202
  var MAX_STRIP_WARNINGS = 20;
8224
8203
  var DIAGNOSTIC_ELLIPSIS = "\u2026";
@@ -8435,6 +8414,7 @@ function loadConfigSource(filePath, trust, invalidSource, warningSink, allowProj
8435
8414
  config,
8436
8415
  path: filePath,
8437
8416
  protectedFields,
8417
+ removedKeys: REMOVED_CONFIG_KEYS.filter((key) => Object.hasOwn(rawConfig, key)),
8438
8418
  trust
8439
8419
  }
8440
8420
  };
@@ -8483,13 +8463,6 @@ function collectProjectProtectedFields(rawConfig, trust, allowProjectProfiles) {
8483
8463
  if (trust !== "project")
8484
8464
  return [];
8485
8465
  return [
8486
- ...Object.hasOwn(rawConfig, "workflow_guard") ? [
8487
- {
8488
- fieldPath: "workflow_guard",
8489
- outcome: "blocked",
8490
- sourceKind: "project"
8491
- }
8492
- ] : [],
8493
8466
  ...!allowProjectProfiles && Object.hasOwn(rawConfig, "profiles") ? [
8494
8467
  {
8495
8468
  fieldPath: "profiles",
@@ -8698,13 +8671,12 @@ function createAliasStripTracker(warningSink, aliasedCustomConfigPath) {
8698
8671
  };
8699
8672
  }
8700
8673
  function isAliasNoticeEligible(input) {
8701
- return input.aliasedCustomConfigPath !== undefined && (input.bufferedCount > 0 || input.hasProtectedFields);
8674
+ return input.aliasedCustomConfigPath !== undefined && input.bufferedCount > 0;
8702
8675
  }
8703
8676
  function emitAliasFailureDiagnostics(input) {
8704
8677
  if (!isAliasNoticeEligible({
8705
8678
  aliasedCustomConfigPath: input.aliasedCustomConfigPath,
8706
- bufferedCount: input.buffered.length,
8707
- hasProtectedFields: input.hasProtectedFields
8679
+ bufferedCount: input.buffered.length
8708
8680
  })) {
8709
8681
  return;
8710
8682
  }
@@ -8716,8 +8688,7 @@ function emitAliasFailureDiagnostics(input) {
8716
8688
  function buildAliasSuccessNotice(input) {
8717
8689
  if (!isAliasNoticeEligible({
8718
8690
  aliasedCustomConfigPath: input.aliasedCustomConfigPath,
8719
- bufferedCount: input.bufferedCount,
8720
- hasProtectedFields: input.hasProtectedFields
8691
+ bufferedCount: input.bufferedCount
8721
8692
  }) || !(input.projectLoaded && input.customLoaded) || input.aliasedCustomConfigPath === undefined) {
8722
8693
  return;
8723
8694
  }
@@ -8725,9 +8696,22 @@ function buildAliasSuccessNotice(input) {
8725
8696
  const projectConfigPath = input.projectConfigPath;
8726
8697
  const warningSink = input.warningSink;
8727
8698
  return () => {
8728
- warningSink(`[systematic] project config (${sanitizeDiagnosticText(projectConfigPath)}) and custom config (${sanitizeDiagnosticText(aliasedCustomConfigPath)}) resolve to the same file; protected fields stripped from the project pass (security-overlay fields, \`profiles\`, \`workflow_guard\`) apply through the custom-trust pass instead.`);
8699
+ warningSink(`[systematic] project config (${sanitizeDiagnosticText(projectConfigPath)}) and custom config (${sanitizeDiagnosticText(aliasedCustomConfigPath)}) resolve to the same file; protected fields stripped from the project pass (security-overlay fields, \`profiles\`, \`allow_project_profiles\`) apply through the custom-trust pass instead.`);
8729
8700
  };
8730
8701
  }
8702
+ var REMOVED_SETTINGS_DOCS_URL = "https://fro.bot/systematic/reference/configuration#removed-settings";
8703
+ function warnRemovedKeys(sources, warningSink) {
8704
+ const reported = new Set;
8705
+ for (const source of sources) {
8706
+ for (const key of source.removedKeys) {
8707
+ const identity = `${source.canonicalPath}\x00${key}`;
8708
+ if (reported.has(identity))
8709
+ continue;
8710
+ reported.add(identity);
8711
+ warningSink(`[systematic] \`${key}\` in config (${sanitizeDiagnosticText(source.path)}) has been removed and is ignored. Delete it from that file to silence this warning. See ${REMOVED_SETTINGS_DOCS_URL} for details.`);
8712
+ }
8713
+ }
8714
+ }
8731
8715
  function loadUserAndCustomSources(paths, invalidSource, warningSink) {
8732
8716
  const user = loadConfigSource(paths.userConfig, "user", invalidSource, warningSink, false);
8733
8717
  const custom = paths.customConfig ? loadConfigSource(paths.customConfig, "custom", invalidSource, warningSink, false) : {
@@ -8767,7 +8751,6 @@ function loadConfigWithSources(projectDir, options) {
8767
8751
  aliasedCustomConfigPath,
8768
8752
  buffered: projectStrip.buffered,
8769
8753
  customLoaded: custom.source !== null,
8770
- hasProtectedFields: (projectSource?.protectedFields.length ?? 0) > 0,
8771
8754
  projectLoaded: project.source !== null,
8772
8755
  warningSink
8773
8756
  });
@@ -8775,12 +8758,12 @@ function loadConfigWithSources(projectDir, options) {
8775
8758
  aliasedCustomConfigPath,
8776
8759
  bufferedCount: projectStrip.buffered.length,
8777
8760
  customLoaded: custom.source !== null,
8778
- hasProtectedFields: (projectSource?.protectedFields.length ?? 0) > 0,
8779
8761
  projectConfigPath: paths.projectConfig,
8780
8762
  projectLoaded: project.source !== null,
8781
8763
  warningSink
8782
8764
  });
8783
8765
  const sources = [userSource, projectSource, customSource].filter((source) => source !== null);
8766
+ warnRemovedKeys(sources, warningSink);
8784
8767
  const userConfig = userSource?.config;
8785
8768
  const projectConfig = projectSource?.config;
8786
8769
  const customConfig = customSource?.config;
@@ -8830,11 +8813,6 @@ function loadConfigWithSources(projectDir, options) {
8830
8813
  ...projectConfig?.bootstrap,
8831
8814
  ...customConfig?.bootstrap
8832
8815
  },
8833
- workflow_guard: {
8834
- ...DEFAULT_CONFIG.workflow_guard,
8835
- ...userConfig?.workflow_guard,
8836
- ...customConfig?.workflow_guard
8837
- },
8838
8816
  agents: overlayValues(overlays.agents),
8839
8817
  categories: overlayValues(overlays.categories),
8840
8818
  pi_subagents: {
@@ -8890,9 +8868,7 @@ function buildConfigObservationMetadata(summary) {
8890
8868
  const fieldCandidates = {
8891
8869
  "bootstrap.enabled": ["custom", "project", "user"],
8892
8870
  "bootstrap.file": ["custom", "project", "user"],
8893
- skills_as_commands: ["custom", "project", "user"],
8894
- "workflow_guard.debug": ["custom", "user"],
8895
- "workflow_guard.mode": ["custom", "user"]
8871
+ skills_as_commands: ["custom", "project", "user"]
8896
8872
  };
8897
8873
  for (const fieldPath of CONFIG_AUTHORITY_FIELD_PATHS) {
8898
8874
  const authority = firstDefinedSource(fieldPath, fieldCandidates[fieldPath]);
@@ -9521,4 +9497,4 @@ function discoverSkills(options) {
9521
9497
  return Array.from(byName.values());
9522
9498
  }
9523
9499
 
9524
- export { parseFrontmatter, parse, parseTree, modify, applyEdits, CONFIG_PROTECTED_FIELD_PATHS, _isoDateTime, _isoDate, _isoTime, _isoDuration, string, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, number, boolean, array, object, union, discriminatedUnion, record, _enum, literal, AgentOverlaySchema, CategoryOverlaySchema, isRecord, extractString, toSourcedPiSubagentsOverlays, resolveRouting, loadConfig, loadConfigWithSources, collectRoutingTargets, getConfigPaths, isDiscoverableMarkdown, findAgentsInDir, extractAgentFrontmatter, findCommandsInDir, extractCommandFrontmatter, findSkillsInDir, discoverSkills };
9500
+ export { parseFrontmatter, parse, parseTree, modify, applyEdits, CONFIG_PROTECTED_FIELD_PATHS, _isoDateTime, _isoDate, _isoTime, _isoDuration, string, ZodISODateTime, ZodISODate, ZodISOTime, ZodISODuration, number, boolean, array, object, union, discriminatedUnion, _enum, literal, AgentOverlaySchema, CategoryOverlaySchema, isRecord, extractString, toSourcedPiSubagentsOverlays, resolveRouting, loadConfig, loadConfigWithSources, collectRoutingTargets, getConfigPaths, isDiscoverableMarkdown, findAgentsInDir, extractAgentFrontmatter, findCommandsInDir, extractCommandFrontmatter, findSkillsInDir, discoverSkills };