@staff0rd/assist 0.453.0 → 0.454.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/index.js CHANGED
@@ -6,7 +6,7 @@ import { Command } from "commander";
6
6
  // package.json
7
7
  var package_default = {
8
8
  name: "@staff0rd/assist",
9
- version: "0.453.0",
9
+ version: "0.454.0",
10
10
  type: "module",
11
11
  main: "dist/index.js",
12
12
  bin: {
@@ -7178,7 +7178,8 @@ var KNOWN = [
7178
7178
  "bug",
7179
7179
  "refine",
7180
7180
  "review",
7181
- "run"
7181
+ "run",
7182
+ "update"
7182
7183
  ];
7183
7184
  function deriveHistoryFields(commandName, commandArgs, name) {
7184
7185
  const fields = {};
@@ -9144,6 +9145,12 @@ function getNestedValue(obj, path71) {
9144
9145
  return current;
9145
9146
  }
9146
9147
 
9148
+ // src/commands/config/isGlobalOnlyConfigKey.ts
9149
+ var GLOBAL_ONLY_KEYS = ["sync.autoConfirm"];
9150
+ function isGlobalOnlyConfigKey(key) {
9151
+ return GLOBAL_ONLY_KEYS.some((k) => key.startsWith(k));
9152
+ }
9153
+
9147
9154
  // src/commands/config/readRawConfigLayers.ts
9148
9155
  function readRawConfigLayers(cwd) {
9149
9156
  const global = loadRawYaml(getGlobalConfigPath());
@@ -9170,7 +9177,8 @@ function readConfigEntries(cwd) {
9170
9177
  return describeConfigLeaves(assistConfigSchema).filter((leaf) => !KEYS_STRIPPED_FROM_MERGED_CONFIG.has(leaf.key)).map((leaf) => ({
9171
9178
  ...leaf,
9172
9179
  value: getNestedValue(config, leaf.key),
9173
- source: resolveConfigSource(leaf.key, layers)
9180
+ source: resolveConfigSource(leaf.key, layers),
9181
+ globalOnly: isGlobalOnlyConfigKey(leaf.key)
9174
9182
  }));
9175
9183
  }
9176
9184
 
@@ -10023,9 +10031,8 @@ function formatIssue(issue, key) {
10023
10031
  }
10024
10032
 
10025
10033
  // src/commands/config/applyConfigSet.ts
10026
- var GLOBAL_ONLY_KEYS = ["sync.autoConfirm"];
10027
10034
  function applyConfigSet(key, coerced, global, cwd = process.cwd()) {
10028
- if (!global && isGlobalOnly(key)) {
10035
+ if (!global && isGlobalOnlyConfigKey(key)) {
10029
10036
  return {
10030
10037
  ok: false,
10031
10038
  errors: [
@@ -10044,9 +10051,6 @@ function applyConfigSet(key, coerced, global, cwd = process.cwd()) {
10044
10051
  saveConfig(updated, cwd);
10045
10052
  return { ok: true, target: "project" };
10046
10053
  }
10047
- function isGlobalOnly(key) {
10048
- return GLOBAL_ONLY_KEYS.some((k) => key.startsWith(k));
10049
- }
10050
10054
 
10051
10055
  // src/commands/config/coerceConfigValue.ts
10052
10056
  var EDITABLE_TYPES = /* @__PURE__ */ new Set(["string", "number", "boolean", "enum"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.453.0",
3
+ "version": "0.454.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {