@proletariat/cli 0.3.85 → 0.3.86
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/bin/validate-better-sqlite3.cjs +11 -0
- package/dist/commands/session/cleanup.d.ts +2 -0
- package/dist/commands/session/cleanup.js +89 -42
- package/dist/commands/session/cleanup.js.map +1 -1
- package/dist/commands/session/index.js +4 -0
- package/dist/commands/session/index.js.map +1 -1
- package/dist/commands/session/report.d.ts +27 -0
- package/dist/commands/session/report.js +217 -0
- package/dist/commands/session/report.js.map +1 -0
- package/dist/commands/telemetry/disable.js +1 -1
- package/dist/commands/telemetry/disable.js.map +1 -1
- package/dist/commands/telemetry/enable.js +1 -1
- package/dist/commands/telemetry/enable.js.map +1 -1
- package/dist/commands/ticket/create.d.ts +3 -2
- package/dist/commands/ticket/create.js +6 -69
- package/dist/commands/ticket/create.js.map +1 -1
- package/dist/commands/work/groom.d.ts +15 -0
- package/dist/commands/work/groom.js +77 -0
- package/dist/commands/work/groom.js.map +1 -0
- package/dist/commands/work/implement.d.ts +16 -0
- package/dist/commands/work/implement.js +85 -0
- package/dist/commands/work/implement.js.map +1 -0
- package/dist/commands/work/index.js +38 -34
- package/dist/commands/work/index.js.map +1 -1
- package/dist/commands/work/peek.d.ts +18 -0
- package/dist/commands/work/peek.js +78 -0
- package/dist/commands/work/peek.js.map +1 -0
- package/dist/commands/work/poke.d.ts +19 -0
- package/dist/commands/work/poke.js +79 -0
- package/dist/commands/work/poke.js.map +1 -0
- package/dist/commands/work/review.d.ts +1 -31
- package/dist/commands/work/review.js +44 -368
- package/dist/commands/work/review.js.map +1 -1
- package/dist/commands/work/spawn.js +1 -1
- package/dist/commands/work/spawn.js.map +1 -1
- package/dist/commands/work/start.d.ts +2 -0
- package/dist/commands/work/start.js +24 -19
- package/dist/commands/work/start.js.map +1 -1
- package/dist/commands/work/stop.d.ts +14 -0
- package/dist/commands/work/stop.js +103 -0
- package/dist/commands/work/stop.js.map +1 -0
- package/dist/hooks/init.d.ts +1 -1
- package/dist/hooks/init.js +1 -1
- package/dist/lib/execution/config.d.ts +17 -1
- package/dist/lib/execution/config.js +38 -0
- package/dist/lib/execution/config.js.map +1 -1
- package/dist/lib/execution/devcontainer.js +0 -1
- package/dist/lib/execution/devcontainer.js.map +1 -1
- package/dist/lib/execution/runners/docker-management.js +20 -0
- package/dist/lib/execution/runners/docker-management.js.map +1 -1
- package/dist/lib/execution/runners/prompt-builder.js +1 -2
- package/dist/lib/execution/runners/prompt-builder.js.map +1 -1
- package/dist/lib/execution/runners/shared.js +3 -1
- package/dist/lib/execution/runners/shared.js.map +1 -1
- package/dist/lib/execution/spawner.d.ts +3 -1
- package/dist/lib/execution/spawner.js +10 -4
- package/dist/lib/execution/spawner.js.map +1 -1
- package/dist/lib/execution/storage.d.ts +2 -1
- package/dist/lib/execution/storage.js +4 -3
- package/dist/lib/execution/storage.js.map +1 -1
- package/dist/lib/execution/types.d.ts +9 -0
- package/dist/lib/execution/types.js.map +1 -1
- package/dist/lib/mcp/tools/tmux.d.ts +1 -1
- package/dist/lib/mcp/tools/tmux.js +1 -1
- package/dist/lib/mcp/tools/work.js +4 -35
- package/dist/lib/mcp/tools/work.js.map +1 -1
- package/dist/lib/pmo/schema.d.ts +1 -1
- package/dist/lib/pmo/schema.js +1 -0
- package/dist/lib/pmo/schema.js.map +1 -1
- package/dist/lib/pmo/storage/base.js +59 -501
- package/dist/lib/pmo/storage/base.js.map +1 -1
- package/dist/lib/pmo/utils.d.ts +22 -0
- package/dist/lib/pmo/utils.js +31 -0
- package/dist/lib/pmo/utils.js.map +1 -1
- package/dist/lib/telemetry/analytics.d.ts +10 -13
- package/dist/lib/telemetry/analytics.js +35 -125
- package/dist/lib/telemetry/analytics.js.map +1 -1
- package/dist/lib/telemetry/feature-flags.d.ts +12 -37
- package/dist/lib/telemetry/feature-flags.js +15 -63
- package/dist/lib/telemetry/feature-flags.js.map +1 -1
- package/oclif.manifest.json +1751 -1488
- package/package.json +2 -3
- package/dist/commands/work/revise.d.ts +0 -20
- package/dist/commands/work/revise.js +0 -377
- package/dist/commands/work/revise.js.map +0 -1
|
@@ -1,53 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Feature Flags (
|
|
2
|
+
* Feature Flags (stub)
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Previously backed by Statsig feature gates. Statsig has been removed
|
|
5
|
+
* (PRLT-1050) so all flags now return their default values.
|
|
6
|
+
*
|
|
7
|
+
* The API surface is preserved so callers don't need to change.
|
|
7
8
|
*
|
|
8
9
|
* Usage:
|
|
9
10
|
* import { isEnabled } from '../lib/telemetry/feature-flags.js'
|
|
10
11
|
* if (isEnabled('new_board_view')) { ... }
|
|
11
|
-
*
|
|
12
|
-
* Feature flags require Statsig to be initialized (via initAnalytics).
|
|
13
|
-
* If Statsig is unavailable or telemetry is disabled, all flags return false.
|
|
14
|
-
*/
|
|
15
|
-
interface StatsigClientRef {
|
|
16
|
-
checkGate(gateName: string): boolean;
|
|
17
|
-
getDynamicConfig(configName: string): {
|
|
18
|
-
get(key: string, defaultValue: unknown): unknown;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Set the Statsig client reference (called from analytics.ts after init).
|
|
23
|
-
* @internal
|
|
24
12
|
*/
|
|
25
|
-
export declare function setStatsigClient(client: StatsigClientRef | null): void;
|
|
26
13
|
/**
|
|
27
|
-
* Check if a feature gate is enabled
|
|
28
|
-
*
|
|
29
|
-
* Uses Statsig's local evaluation (near-zero latency after init).
|
|
30
|
-
* Returns false if Statsig is not initialized or telemetry is disabled.
|
|
14
|
+
* Check if a feature gate is enabled.
|
|
31
15
|
*
|
|
32
|
-
*
|
|
33
|
-
* @returns Whether the gate is enabled
|
|
16
|
+
* Always returns false now that Statsig has been removed.
|
|
34
17
|
*/
|
|
35
|
-
export declare function isEnabled(
|
|
18
|
+
export declare function isEnabled(_gateName: string): boolean;
|
|
36
19
|
/**
|
|
37
|
-
* Get a dynamic config value
|
|
38
|
-
*
|
|
39
|
-
* Useful for remote configuration (not just boolean flags).
|
|
40
|
-
* Returns the default value if Statsig is unavailable.
|
|
20
|
+
* Get a dynamic config value.
|
|
41
21
|
*
|
|
42
|
-
*
|
|
43
|
-
* @param key - The key within the config
|
|
44
|
-
* @param defaultValue - Default value if unavailable
|
|
45
|
-
* @returns The config value, or the default
|
|
22
|
+
* Always returns the default value now that Statsig has been removed.
|
|
46
23
|
*/
|
|
47
|
-
export declare function getConfigValue<T>(
|
|
24
|
+
export declare function getConfigValue<T>(_configName: string, _key: string, defaultValue: T): T;
|
|
48
25
|
/**
|
|
49
|
-
* Clear the local flag cache.
|
|
50
|
-
* Useful for testing or when you want to force re-evaluation.
|
|
26
|
+
* Clear the local flag cache (no-op without Statsig).
|
|
51
27
|
*/
|
|
52
28
|
export declare function clearFlagCache(): void;
|
|
53
|
-
export {};
|
|
@@ -1,83 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Feature Flags (
|
|
2
|
+
* Feature Flags (stub)
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Previously backed by Statsig feature gates. Statsig has been removed
|
|
5
|
+
* (PRLT-1050) so all flags now return their default values.
|
|
6
|
+
*
|
|
7
|
+
* The API surface is preserved so callers don't need to change.
|
|
7
8
|
*
|
|
8
9
|
* Usage:
|
|
9
10
|
* import { isEnabled } from '../lib/telemetry/feature-flags.js'
|
|
10
11
|
* if (isEnabled('new_board_view')) { ... }
|
|
11
|
-
*
|
|
12
|
-
* Feature flags require Statsig to be initialized (via initAnalytics).
|
|
13
|
-
* If Statsig is unavailable or telemetry is disabled, all flags return false.
|
|
14
12
|
*/
|
|
15
|
-
import { isTelemetryEnabled } from './analytics.js';
|
|
16
|
-
// Cache for flag values — populated on check, persists for the process lifetime
|
|
17
|
-
const flagCache = new Map();
|
|
18
|
-
// Statsig client instance reference — set after initialization in initAnalytics
|
|
19
|
-
let statsigClient = null;
|
|
20
13
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @internal
|
|
23
|
-
*/
|
|
24
|
-
export function setStatsigClient(client) {
|
|
25
|
-
statsigClient = client;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Check if a feature gate is enabled for the current machine.
|
|
29
|
-
*
|
|
30
|
-
* Uses Statsig's local evaluation (near-zero latency after init).
|
|
31
|
-
* Returns false if Statsig is not initialized or telemetry is disabled.
|
|
14
|
+
* Check if a feature gate is enabled.
|
|
32
15
|
*
|
|
33
|
-
*
|
|
34
|
-
* @returns Whether the gate is enabled
|
|
16
|
+
* Always returns false now that Statsig has been removed.
|
|
35
17
|
*/
|
|
36
|
-
export function isEnabled(
|
|
37
|
-
|
|
38
|
-
return false;
|
|
39
|
-
// Return cached value if available
|
|
40
|
-
if (flagCache.has(gateName)) {
|
|
41
|
-
return flagCache.get(gateName);
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
const result = statsigClient.checkGate(gateName);
|
|
45
|
-
flagCache.set(gateName, result);
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
catch {
|
|
49
|
-
// Statsig not initialized or gate check failed — default to false
|
|
50
|
-
flagCache.set(gateName, false);
|
|
51
|
-
return false;
|
|
52
|
-
}
|
|
18
|
+
export function isEnabled(_gateName) {
|
|
19
|
+
return false;
|
|
53
20
|
}
|
|
54
21
|
/**
|
|
55
|
-
* Get a dynamic config value
|
|
56
|
-
*
|
|
57
|
-
* Useful for remote configuration (not just boolean flags).
|
|
58
|
-
* Returns the default value if Statsig is unavailable.
|
|
22
|
+
* Get a dynamic config value.
|
|
59
23
|
*
|
|
60
|
-
*
|
|
61
|
-
* @param key - The key within the config
|
|
62
|
-
* @param defaultValue - Default value if unavailable
|
|
63
|
-
* @returns The config value, or the default
|
|
24
|
+
* Always returns the default value now that Statsig has been removed.
|
|
64
25
|
*/
|
|
65
|
-
export function getConfigValue(
|
|
66
|
-
|
|
67
|
-
return defaultValue;
|
|
68
|
-
try {
|
|
69
|
-
const config = statsigClient.getDynamicConfig(configName);
|
|
70
|
-
return config.get(key, defaultValue);
|
|
71
|
-
}
|
|
72
|
-
catch {
|
|
73
|
-
return defaultValue;
|
|
74
|
-
}
|
|
26
|
+
export function getConfigValue(_configName, _key, defaultValue) {
|
|
27
|
+
return defaultValue;
|
|
75
28
|
}
|
|
76
29
|
/**
|
|
77
|
-
* Clear the local flag cache.
|
|
78
|
-
* Useful for testing or when you want to force re-evaluation.
|
|
30
|
+
* Clear the local flag cache (no-op without Statsig).
|
|
79
31
|
*/
|
|
80
32
|
export function clearFlagCache() {
|
|
81
|
-
|
|
33
|
+
// No-op
|
|
82
34
|
}
|
|
83
35
|
//# sourceMappingURL=feature-flags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flags.js","sourceRoot":"","sources":["../../../src/lib/telemetry/feature-flags.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"feature-flags.js","sourceRoot":"","sources":["../../../src/lib/telemetry/feature-flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;;GAIG;AACH,MAAM,UAAU,SAAS,CAAC,SAAiB;IACzC,OAAO,KAAK,CAAA;AACd,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAI,WAAmB,EAAE,IAAY,EAAE,YAAe;IAClF,OAAO,YAAY,CAAA;AACrB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc;IAC5B,QAAQ;AACV,CAAC"}
|