@gachlab/devup 0.7.0 → 0.8.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/CHANGELOG.md +40 -0
- package/README.md +4 -2
- package/dist/control-plane/client.d.ts +17 -0
- package/dist/control-plane/client.d.ts.map +1 -0
- package/dist/control-plane/socket-server.d.ts +6 -0
- package/dist/control-plane/socket-server.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2653 -1713
- package/dist/index.js.map +1 -1
- package/dist/orchestrator/config-watcher.d.ts +22 -0
- package/dist/orchestrator/config-watcher.d.ts.map +1 -0
- package/dist/orchestrator/daemon.d.ts +38 -0
- package/dist/orchestrator/daemon.d.ts.map +1 -0
- package/dist/orchestrator/subcommands.d.ts +7 -0
- package/dist/orchestrator/subcommands.d.ts.map +1 -1
- package/dist/process/health-poller.d.ts +15 -0
- package/dist/process/health-poller.d.ts.map +1 -0
- package/dist/process/internals.d.ts +14 -0
- package/dist/process/internals.d.ts.map +1 -0
- package/dist/process/lifecycle.d.ts +31 -0
- package/dist/process/lifecycle.d.ts.map +1 -0
- package/dist/process/manager.d.ts +11 -13
- package/dist/process/manager.d.ts.map +1 -1
- package/dist/process/restarter.d.ts +26 -0
- package/dist/process/restarter.d.ts.map +1 -0
- package/dist/process/spawner.d.ts +38 -0
- package/dist/process/spawner.d.ts.map +1 -0
- package/dist/tui/App.d.ts.map +1 -1
- package/dist/tui/hooks/useBootSequence.d.ts +20 -0
- package/dist/tui/hooks/useBootSequence.d.ts.map +1 -0
- package/dist/tui/hooks/useContextualTips.d.ts +6 -0
- package/dist/tui/hooks/useContextualTips.d.ts.map +1 -0
- package/dist/tui/hooks/useControlPlane.d.ts +18 -0
- package/dist/tui/hooks/useControlPlane.d.ts.map +1 -0
- package/dist/tui/hooks/useHotReload.d.ts +6 -0
- package/dist/tui/hooks/useHotReload.d.ts.map +1 -0
- package/dist/tui/hooks/useLogsPause.d.ts +4 -0
- package/dist/tui/hooks/useLogsPause.d.ts.map +1 -0
- package/dist/tui/hooks/useProcessManager.d.ts +9 -0
- package/dist/tui/hooks/useProcessManager.d.ts.map +1 -1
- package/dist/tui/hooks/useTerminalSize.d.ts +4 -0
- package/dist/tui/hooks/useTerminalSize.d.ts.map +1 -0
- package/dist/utils/broadcaster.d.ts +6 -0
- package/dist/utils/broadcaster.d.ts.map +1 -0
- package/dist/utils/colors.d.ts +4 -0
- package/dist/utils/colors.d.ts.map +1 -0
- package/dist/utils/env.d.ts +5 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/format.d.ts +3 -0
- package/dist/utils/format.d.ts.map +1 -0
- package/dist/utils/install-stamp.d.ts +6 -0
- package/dist/utils/install-stamp.d.ts.map +1 -0
- package/dist/utils/phases.d.ts +4 -0
- package/dist/utils/phases.d.ts.map +1 -0
- package/dist/utils/process-args.d.ts +8 -0
- package/dist/utils/process-args.d.ts.map +1 -0
- package/dist/utils/redact.d.ts +4 -0
- package/dist/utils/redact.d.ts.map +1 -0
- package/dist/utils/search.d.ts +17 -0
- package/dist/utils/search.d.ts.map +1 -0
- package/dist/utils/stats.d.ts +19 -0
- package/dist/utils/stats.d.ts.map +1 -0
- package/dist/utils.d.ts +10 -41
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
|
@@ -1,42 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare function redactSecrets(env: Record<string, string> | undefined): Record<string, string>;
|
|
12
|
-
export type LogLevel = 'error' | 'warn' | 'info';
|
|
13
|
-
/** Detects the level of a log line by case-insensitive keyword priority:
|
|
14
|
-
* error (and synonyms) > warn > info. Used by the L-level filter. */
|
|
15
|
-
export declare function detectLogLevel(line: string): LogLevel;
|
|
16
|
-
export interface SearchMatcher {
|
|
17
|
-
test: (line: string) => boolean;
|
|
18
|
-
/** Set when the input was a vim-style /pattern/flags — used to drive highlighting. */
|
|
19
|
-
regex?: RegExp;
|
|
20
|
-
/** True when input started with `/` but produced an invalid regex; UI may show a hint. */
|
|
21
|
-
invalid?: boolean;
|
|
22
|
-
}
|
|
23
|
-
/** Compiles a search term to a matcher.
|
|
24
|
-
* - `/foo/` → regex (case-insensitive by default; honors flags after the closing slash)
|
|
25
|
-
* - anything else → case-insensitive substring (existing behavior)
|
|
26
|
-
* - invalid regex → falls back to substring, sets `invalid: true` */
|
|
27
|
-
export declare function compileSearchPattern(term: string | null): SearchMatcher | null;
|
|
28
|
-
export declare function fmtUptime(ms: number): string;
|
|
29
|
-
export declare function needsInstall(fullCwd: string): boolean;
|
|
30
|
-
export declare function writeInstallStamp(fullCwd: string): void;
|
|
31
|
-
export declare function sortServiceNames(names: string[], sortMode: string, statsMap: Record<string, {
|
|
32
|
-
cpu?: string;
|
|
33
|
-
mem?: string;
|
|
34
|
-
}>, procState: Record<string, {
|
|
35
|
-
errors?: number;
|
|
36
|
-
}>): string[];
|
|
37
|
-
export declare function groupByPhase(services: ServiceConfig[]): Record<number, ServiceConfig[]>;
|
|
38
|
-
export declare function buildProcessArgs(svc: ServiceConfig): string[];
|
|
39
|
-
export declare function buildProcessEnv(svc: ServiceConfig, baseEnv: Record<string, string>): Record<string, string>;
|
|
40
|
-
export declare function calcCpuPercent(totalCpuSec: number, prevCpu: number, prevTime: number): number;
|
|
41
|
-
export declare const tagColors: string[];
|
|
1
|
+
export { parseEnvFile } from './utils/env.js';
|
|
2
|
+
export { fmtUptime } from './utils/format.js';
|
|
3
|
+
export { compileSearchPattern, detectLogLevel } from './utils/search.js';
|
|
4
|
+
export type { SearchMatcher, LogLevel } from './utils/search.js';
|
|
5
|
+
export { redactSecrets } from './utils/redact.js';
|
|
6
|
+
export { needsInstall, writeInstallStamp } from './utils/install-stamp.js';
|
|
7
|
+
export { buildProcessArgs, buildProcessEnv } from './utils/process-args.js';
|
|
8
|
+
export { sortServiceNames, calcCpuPercent, nextRamBannerVisibility } from './utils/stats.js';
|
|
9
|
+
export { groupByPhase } from './utils/phases.js';
|
|
10
|
+
export { tagColors } from './utils/colors.js';
|
|
42
11
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|