@flowscripter/dynamic-cli-framework 7.0.9 → 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.
- package/dist/src/service/configuration/KeyValueServiceProvider.d.ts +1 -2
- package/dist/src/service/configuration/KeyValueServiceProvider.d.ts.map +1 -1
- package/dist/src/service/configuration/KeyValueServiceProvider.js +1 -2
- package/dist/src/service/printer/DefaultPrinterService.js +1 -1
- package/dist/src/service/printer/terminal/Quote.js +1 -1
- package/dist/src/service/upgrade/DefaultUpgradeService.js +1 -1
- package/dist/src/startup/banner/command/NoBannerCommand.d.ts +1 -1
- package/package.json +1 -1
- package/src/service/configuration/KeyValueServiceProvider.ts +1 -2
- package/src/service/printer/DefaultPrinterService.ts +1 -1
- package/src/service/printer/terminal/Quote.ts +1 -1
- package/src/service/upgrade/DefaultUpgradeService.ts +1 -1
- package/src/startup/banner/command/NoBannerCommand.ts +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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()
|
|
7
|
+
* {@link StartupTask}'s `run()`.
|
|
8
8
|
*/
|
|
9
9
|
export interface BannerState {
|
|
10
10
|
printBanner: boolean;
|
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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()
|
|
8
|
+
* {@link StartupTask}'s `run()`.
|
|
9
9
|
*/
|
|
10
10
|
export interface BannerState {
|
|
11
11
|
printBanner: boolean;
|