@fro.bot/systematic 3.18.10 → 3.19.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.
package/dist/cli.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  findCommandsInDir,
34
34
  findSkillsInDir,
35
35
  discoverSkills
36
- } from "./index-fpq5hwdt.js";
36
+ } from "./index-mf76ybyr.js";
37
37
  var __defProp = Object.defineProperty;
38
38
  var __returnValue = (v) => v;
39
39
  function __exportSetter(name, newValue) {
@@ -8451,6 +8451,9 @@ var NO_PROFILE_SELECTION = {
8451
8451
  bundleSource: null
8452
8452
  };
8453
8453
  function resolveProfileSelector(input) {
8454
+ const envProfile = process.env.SYSTEMATIC_PROFILE?.trim();
8455
+ if (envProfile)
8456
+ return { value: envProfile, source: "environment" };
8454
8457
  const candidates = [
8455
8458
  ["custom", input.customConfig?.profile],
8456
8459
  ["project", input.projectConfig?.profile],
@@ -8481,6 +8484,9 @@ function trustedDefaultProfileName(input) {
8481
8484
  const userDefault = input.userConfig?.profile;
8482
8485
  return typeof userDefault === "string" ? userDefault : undefined;
8483
8486
  }
8487
+ function selectorSourceLabel(source) {
8488
+ return source === "environment" ? "SYSTEMATIC_PROFILE" : `${source} config`;
8489
+ }
8484
8490
  function resolveActiveProfile(input) {
8485
8491
  const selection = resolveProfileSelector(input);
8486
8492
  if (selection === null)
@@ -8508,7 +8514,7 @@ function resolveActiveProfile(input) {
8508
8514
  const trustedDefault = trustedDefaultProfileName(input);
8509
8515
  const fallbackLookup = trustedDefault !== undefined && trustedDefault !== requested ? lookupProfileBundle(input, trustedDefault) : undefined;
8510
8516
  if (fallbackLookup !== undefined && trustedDefault !== undefined) {
8511
- input.warningSink(`[systematic] profile "${sanitizeDiagnosticText(requested)}" (selected by ${selection.source} config) is not defined in \`profiles\`; falling back to your default profile "${sanitizeDiagnosticText(trustedDefault)}". See ${PROFILE_DOCS_URL} for how to define a profile.`);
8517
+ input.warningSink(`[systematic] profile "${sanitizeDiagnosticText(requested)}" (selected by ${selectorSourceLabel(selection.source)}) is not defined in \`profiles\`; falling back to your default profile "${sanitizeDiagnosticText(trustedDefault)}". See ${PROFILE_DOCS_URL} for how to define a profile.`);
8512
8518
  return {
8513
8519
  activeProfile: trustedDefault,
8514
8520
  profileSelectorSource: selection.source,
@@ -8517,7 +8523,7 @@ function resolveActiveProfile(input) {
8517
8523
  bundleSource: fallbackLookup.definingSource
8518
8524
  };
8519
8525
  }
8520
- const sourceNote = selection.source === "user" ? "" : ` (selected by ${selection.source} config)`;
8526
+ const sourceNote = selection.source === "user" ? "" : ` (selected by ${selectorSourceLabel(selection.source)})`;
8521
8527
  const alsoMissingNote = trustedDefault !== undefined && trustedDefault !== requested ? ` Your default profile "${sanitizeDiagnosticText(trustedDefault)}" is also not defined in \`profiles\`.` : trustedDefault === undefined ? " No default profile is configured (`profile` in your user config)." : "";
8522
8528
  input.warningSink(`[systematic] profile "${sanitizeDiagnosticText(requested)}"${sourceNote} is not defined in \`profiles\`; using base configuration (no profile).${alsoMissingNote} See ${PROFILE_DOCS_URL} for how to define a profile.`);
8523
8529
  return {
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  extractCommandFrontmatter,
20
20
  findSkillsInDir,
21
21
  discoverSkills
22
- } from "./index-fpq5hwdt.js";
22
+ } from "./index-mf76ybyr.js";
23
23
 
24
24
  // src/index.ts
25
25
  import { createHash as createHash4 } from "crypto";
@@ -44,12 +44,14 @@ export interface ConfigProtectedFieldMetadata {
44
44
  * The source kind that supplied the winning `profile` selector value, or
45
45
  * `null` when no source set `profile` at all (case 1 of the selection table
46
46
  * in plan 2026-09-04-002-feat-model-config-profiles, Unit 2). This names
47
- * whichever source's value won the `custom ?? project ?? user` selector
48
- * lookup -- including when that value turned out to name a missing bundle
49
- * and the loader fell back to the user's own default (see
50
- * {@link ConfigObservationMetadata.profileFallback}).
47
+ * whichever source's value won the `SYSTEMATIC_PROFILE ?? custom ?? project
48
+ * ?? user` selector lookup -- including when that value turned out to name
49
+ * a missing bundle and the loader fell back to the user's own default (see
50
+ * {@link ConfigObservationMetadata.profileFallback}). `'environment'` is
51
+ * distinct from `ConfigSourceKind` deliberately: it names an env var
52
+ * override, never a config file, and must never be mistaken for one.
51
53
  */
52
- export type ProfileSelectorSource = ConfigSourceKind | null;
54
+ export type ProfileSelectorSource = ConfigSourceKind | 'environment' | null;
53
55
  /**
54
56
  * Present when the winning `profile` selector named a bundle absent from
55
57
  * the user source's `profiles` map. `usedDefault` names the user's own
package/dist/pi.js CHANGED
@@ -10318,6 +10318,9 @@ var NO_PROFILE_SELECTION = {
10318
10318
  bundleSource: null
10319
10319
  };
10320
10320
  function resolveProfileSelector(input) {
10321
+ const envProfile = process.env.SYSTEMATIC_PROFILE?.trim();
10322
+ if (envProfile)
10323
+ return { value: envProfile, source: "environment" };
10321
10324
  const candidates = [
10322
10325
  ["custom", input.customConfig?.profile],
10323
10326
  ["project", input.projectConfig?.profile],
@@ -10348,6 +10351,9 @@ function trustedDefaultProfileName(input) {
10348
10351
  const userDefault = input.userConfig?.profile;
10349
10352
  return typeof userDefault === "string" ? userDefault : undefined;
10350
10353
  }
10354
+ function selectorSourceLabel(source) {
10355
+ return source === "environment" ? "SYSTEMATIC_PROFILE" : `${source} config`;
10356
+ }
10351
10357
  function resolveActiveProfile(input) {
10352
10358
  const selection = resolveProfileSelector(input);
10353
10359
  if (selection === null)
@@ -10375,7 +10381,7 @@ function resolveActiveProfile(input) {
10375
10381
  const trustedDefault = trustedDefaultProfileName(input);
10376
10382
  const fallbackLookup = trustedDefault !== undefined && trustedDefault !== requested ? lookupProfileBundle(input, trustedDefault) : undefined;
10377
10383
  if (fallbackLookup !== undefined && trustedDefault !== undefined) {
10378
- input.warningSink(`[systematic] profile "${sanitizeDiagnosticText(requested)}" (selected by ${selection.source} config) is not defined in \`profiles\`; falling back to your default profile "${sanitizeDiagnosticText(trustedDefault)}". See ${PROFILE_DOCS_URL} for how to define a profile.`);
10384
+ input.warningSink(`[systematic] profile "${sanitizeDiagnosticText(requested)}" (selected by ${selectorSourceLabel(selection.source)}) is not defined in \`profiles\`; falling back to your default profile "${sanitizeDiagnosticText(trustedDefault)}". See ${PROFILE_DOCS_URL} for how to define a profile.`);
10379
10385
  return {
10380
10386
  activeProfile: trustedDefault,
10381
10387
  profileSelectorSource: selection.source,
@@ -10384,7 +10390,7 @@ function resolveActiveProfile(input) {
10384
10390
  bundleSource: fallbackLookup.definingSource
10385
10391
  };
10386
10392
  }
10387
- const sourceNote = selection.source === "user" ? "" : ` (selected by ${selection.source} config)`;
10393
+ const sourceNote = selection.source === "user" ? "" : ` (selected by ${selectorSourceLabel(selection.source)})`;
10388
10394
  const alsoMissingNote = trustedDefault !== undefined && trustedDefault !== requested ? ` Your default profile "${sanitizeDiagnosticText(trustedDefault)}" is also not defined in \`profiles\`.` : trustedDefault === undefined ? " No default profile is configured (`profile` in your user config)." : "";
10389
10395
  input.warningSink(`[systematic] profile "${sanitizeDiagnosticText(requested)}"${sourceNote} is not defined in \`profiles\`; using base configuration (no profile).${alsoMissingNote} See ${PROFILE_DOCS_URL} for how to define a profile.`);
10390
10396
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fro.bot/systematic",
3
- "version": "3.18.10",
3
+ "version": "3.19.0",
4
4
  "description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
5
5
  "type": "module",
6
6
  "homepage": "https://fro.bot/systematic",
@@ -97,7 +97,7 @@
97
97
  }
98
98
  },
99
99
  "devDependencies": {
100
- "@biomejs/biome": "2.5.13",
100
+ "@biomejs/biome": "2.5.14",
101
101
  "@earendil-works/pi-coding-agent": "0.83.0",
102
102
  "@opencode-ai/plugin": "1.18.31",
103
103
  "@opencode-ai/sdk": "1.18.31",
@@ -114,7 +114,7 @@
114
114
  "rimraf": "6.1.3",
115
115
  "semantic-release": "25.0.9",
116
116
  "semantic-release-export-data": "1.2.0",
117
- "typebox": "1.3.31",
117
+ "typebox": "1.3.32",
118
118
  "typescript": "7.0.2"
119
119
  },
120
120
  "dependencies": {