@flowscripter/dynamic-cli-framework 7.0.8 → 7.0.10

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.
@@ -103,8 +103,7 @@ export default class KeyValueServiceProvider implements ServiceProvider {
103
103
  * interface: `runner.ts` applies this same scoping to every `ServiceProvider`'s `initService()`
104
104
  * call (scope "service"), and `PluginServiceProvider.initService()` relies on casting its
105
105
  * received `context` to `DefaultContext` to register services discovered from plugins at
106
- * runtime - a capability every `ServiceProvider` already had before this scoping was
107
- * introduced, since `initService()` always received the real `DefaultContext` directly.
106
+ * runtime.
108
107
  */
109
108
  getContextForScope(context: Context, scopeType: KeyValueServiceScopeType, scopeKey: string): Context;
110
109
  initService(context: Context): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValueServiceProvider.d.ts","sourceRoot":"","sources":["../../../../src/service/configuration/KeyValueServiceProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,yCAAyC,CAAC;AAIjD,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AA+BlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,CAAC,OAAO,OAAO,uBAAwB,YAAW,eAAe;;IACrE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAwB;IAClD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAIjC,SAAgB,sBAAsB,EAAE,OAAO,CAAC;IAChD,SAAgB,oBAAoB,EAAE,OAAO,CAAC;IAW9C;;;;;;;;OAQG;IACH,YACE,eAAe,EAAE,MAAM,EACvB,4BAA4B,EAAE,4BAA4B,EAC1D,sBAAsB,UAAQ,EAC9B,oBAAoB,UAAQ,EAY7B;IAEM,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAUhE;IAED;;;;;;;;;;OAUG;IACI,wBAAwB,CAC7B,SAAS,EAAE,wBAAwB,EACnC,QAAQ,EAAE,MAAM,GACf,eAAe,CAsBjB;IAED;;;;;;;;;;;;;;;OAeG;IACI,kBAAkB,CACvB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,wBAAwB,EACnC,QAAQ,EAAE,MAAM,GACf,OAAO,CAaT;IAeY,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAWxD;CACF"}
1
+ {"version":3,"file":"KeyValueServiceProvider.d.ts","sourceRoot":"","sources":["../../../../src/service/configuration/KeyValueServiceProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,yCAAyC,CAAC;AAIjD,OAAO,KAAK,4BAA4B,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AA+BlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,CAAC,OAAO,OAAO,uBAAwB,YAAW,eAAe;;IACrE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAwB;IAClD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAIjC,SAAgB,sBAAsB,EAAE,OAAO,CAAC;IAChD,SAAgB,oBAAoB,EAAE,OAAO,CAAC;IAW9C;;;;;;;;OAQG;IACH,YACE,eAAe,EAAE,MAAM,EACvB,4BAA4B,EAAE,4BAA4B,EAC1D,sBAAsB,UAAQ,EAC9B,oBAAoB,UAAQ,EAY7B;IAEM,cAAc,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,CAAC,CAUhE;IAED;;;;;;;;;;OAUG;IACI,wBAAwB,CAC7B,SAAS,EAAE,wBAAwB,EACnC,QAAQ,EAAE,MAAM,GACf,eAAe,CAsBjB;IAED;;;;;;;;;;;;;;OAcG;IACI,kBAAkB,CACvB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,wBAAwB,EACnC,QAAQ,EAAE,MAAM,GACf,OAAO,CAaT;IAeY,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAWxD;CACF"}
@@ -167,8 +167,7 @@ export default class KeyValueServiceProvider {
167
167
  * interface: `runner.ts` applies this same scoping to every `ServiceProvider`'s `initService()`
168
168
  * call (scope "service"), and `PluginServiceProvider.initService()` relies on casting its
169
169
  * received `context` to `DefaultContext` to register services discovered from plugins at
170
- * runtime - a capability every `ServiceProvider` already had before this scoping was
171
- * introduced, since `initService()` always received the real `DefaultContext` directly.
170
+ * runtime.
172
171
  */
173
172
  getContextForScope(context, scopeType, scopeKey) {
174
173
  if (!this.keyValueServiceEnabled && !this.secretServiceEnabled) {
@@ -29,7 +29,7 @@ export default class DefaultPrinterService {
29
29
  // <reset>". Checking endsWith("\n") on the styled text is then always false, so the
30
30
  // subtraction below never fires and every such line is over-counted by one - which, summed
31
31
  // across every write in a marked region, causes clearMarked() to erase far more physical
32
- // rows than were actually written (see #150).
32
+ // rows than were actually written.
33
33
  const stripped = Bun.stripANSI(message);
34
34
  return stripped.split("\n").length - (stripped.endsWith("\n") ? 1 : 0);
35
35
  }
@@ -47,7 +47,7 @@ export default class Quote {
47
47
  // *after* that newline (e.g. "foo\n" -> "<color>foo\n<reset>"). Naively checking
48
48
  // endsWith("\n") on such styled text is always false, and splitting on "\n" then treats the
49
49
  // trailing reset sequence as a spurious extra line, which gets its own quote prefix -
50
- // rendering as if two quote levels were active for a single actual line (see #150). Every
50
+ // rendering as if two quote levels were active for a single actual line. Every
51
51
  // line gets re-colored below regardless, so strip all existing ANSI upfront rather than
52
52
  // trying to preserve and restore it.
53
53
  const body = Bun.stripANSI(message);
@@ -329,7 +329,7 @@ export default class DefaultUpgradeService {
329
329
  // Homebrew relinks a formula's installed binary from its Cellar directory into a `bin/` symlink,
330
330
  // so resolving the running executable's real path confirms a homebrew install without spawning
331
331
  // `brew`, which has a slow cold start - avoiding it keeps the background upgrade-check
332
- // StartupTask (see UpgradeServiceProvider) fast even though it now runs to completion.
332
+ // StartupTask (see UpgradeServiceProvider) fast even though it runs to completion.
333
333
  #isRunningFromHomebrewCellar(formula) {
334
334
  let realExecutable = process.execPath;
335
335
  try {
@@ -4,7 +4,7 @@ import type { Context } from "@flowscripter/dynamic-cli-framework-api";
4
4
  import type { GlobalCommandArgument } from "@flowscripter/dynamic-cli-framework-api";
5
5
  /**
6
6
  * Task-local, mutable state shared between {@link NoBannerCommand} and the banner
7
- * {@link StartupTask}'s `run()`, in place of a held `BannerServiceProvider` reference.
7
+ * {@link StartupTask}'s `run()`.
8
8
  */
9
9
  export interface BannerState {
10
10
  printBanner: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowscripter/dynamic-cli-framework",
3
- "version": "7.0.8",
3
+ "version": "7.0.10",
4
4
  "description": "A framework for developing CLI applications which supports dynamic discovery and installation of new commands",
5
5
  "keywords": [
6
6
  "bun",
@@ -48,7 +48,7 @@
48
48
  "build": "tsc -p tsconfig.build.json"
49
49
  },
50
50
  "dependencies": {
51
- "@flowscripter/dynamic-cli-framework-api": "^4.0.4",
51
+ "@flowscripter/dynamic-cli-framework-api": "^4.0.6",
52
52
  "@flowscripter/dynamic-plugin-framework": "^2.2.14",
53
53
  "emphasize": "^7.0.0",
54
54
  "fastest-levenshtein": "^1.0.16",
@@ -63,8 +63,8 @@
63
63
  "@types/bun": "^1.4.2",
64
64
  "@types/node": "^26.6.3",
65
65
  "@types/semver": "^7.8.0",
66
- "oxfmt": "0.70.0",
67
- "oxlint": "1.85.0"
66
+ "oxfmt": "0.71.0",
67
+ "oxlint": "1.86.0"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "typescript": "^7.0.2"
@@ -206,8 +206,7 @@ export default class KeyValueServiceProvider implements ServiceProvider {
206
206
  * interface: `runner.ts` applies this same scoping to every `ServiceProvider`'s `initService()`
207
207
  * call (scope "service"), and `PluginServiceProvider.initService()` relies on casting its
208
208
  * received `context` to `DefaultContext` to register services discovered from plugins at
209
- * runtime - a capability every `ServiceProvider` already had before this scoping was
210
- * introduced, since `initService()` always received the real `DefaultContext` directly.
209
+ * runtime.
211
210
  */
212
211
  public getContextForScope(
213
212
  context: Context,
@@ -39,7 +39,7 @@ export default class DefaultPrinterService implements PrinterService {
39
39
  // <reset>". Checking endsWith("\n") on the styled text is then always false, so the
40
40
  // subtraction below never fires and every such line is over-counted by one - which, summed
41
41
  // across every write in a marked region, causes clearMarked() to erase far more physical
42
- // rows than were actually written (see #150).
42
+ // rows than were actually written.
43
43
  const stripped = Bun.stripANSI(message);
44
44
  return stripped.split("\n").length - (stripped.endsWith("\n") ? 1 : 0);
45
45
  }
@@ -63,7 +63,7 @@ export default class Quote {
63
63
  // *after* that newline (e.g. "foo\n" -> "<color>foo\n<reset>"). Naively checking
64
64
  // endsWith("\n") on such styled text is always false, and splitting on "\n" then treats the
65
65
  // trailing reset sequence as a spurious extra line, which gets its own quote prefix -
66
- // rendering as if two quote levels were active for a single actual line (see #150). Every
66
+ // rendering as if two quote levels were active for a single actual line. Every
67
67
  // line gets re-colored below regardless, so strip all existing ANSI upfront rather than
68
68
  // trying to preserve and restore it.
69
69
  const body = Bun.stripANSI(message);
@@ -428,7 +428,7 @@ export default class DefaultUpgradeService implements UpgradeService {
428
428
  // Homebrew relinks a formula's installed binary from its Cellar directory into a `bin/` symlink,
429
429
  // so resolving the running executable's real path confirms a homebrew install without spawning
430
430
  // `brew`, which has a slow cold start - avoiding it keeps the background upgrade-check
431
- // StartupTask (see UpgradeServiceProvider) fast even though it now runs to completion.
431
+ // StartupTask (see UpgradeServiceProvider) fast even though it runs to completion.
432
432
  #isRunningFromHomebrewCellar(formula: string): boolean {
433
433
  let realExecutable = process.execPath;
434
434
  try {
@@ -5,7 +5,7 @@ import type { GlobalCommandArgument } from "@flowscripter/dynamic-cli-framework-
5
5
 
6
6
  /**
7
7
  * Task-local, mutable state shared between {@link NoBannerCommand} and the banner
8
- * {@link StartupTask}'s `run()`, in place of a held `BannerServiceProvider` reference.
8
+ * {@link StartupTask}'s `run()`.
9
9
  */
10
10
  export interface BannerState {
11
11
  printBanner: boolean;