@proletariat/cli 0.3.84 → 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.
Files changed (85) hide show
  1. package/bin/validate-better-sqlite3.cjs +11 -0
  2. package/dist/commands/session/cleanup.d.ts +2 -0
  3. package/dist/commands/session/cleanup.js +89 -42
  4. package/dist/commands/session/cleanup.js.map +1 -1
  5. package/dist/commands/session/index.js +4 -0
  6. package/dist/commands/session/index.js.map +1 -1
  7. package/dist/commands/session/report.d.ts +27 -0
  8. package/dist/commands/session/report.js +217 -0
  9. package/dist/commands/session/report.js.map +1 -0
  10. package/dist/commands/telemetry/disable.js +1 -1
  11. package/dist/commands/telemetry/disable.js.map +1 -1
  12. package/dist/commands/telemetry/enable.js +1 -1
  13. package/dist/commands/telemetry/enable.js.map +1 -1
  14. package/dist/commands/ticket/create.d.ts +3 -2
  15. package/dist/commands/ticket/create.js +6 -69
  16. package/dist/commands/ticket/create.js.map +1 -1
  17. package/dist/commands/work/groom.d.ts +15 -0
  18. package/dist/commands/work/groom.js +77 -0
  19. package/dist/commands/work/groom.js.map +1 -0
  20. package/dist/commands/work/implement.d.ts +16 -0
  21. package/dist/commands/work/implement.js +85 -0
  22. package/dist/commands/work/implement.js.map +1 -0
  23. package/dist/commands/work/index.js +38 -34
  24. package/dist/commands/work/index.js.map +1 -1
  25. package/dist/commands/work/peek.d.ts +18 -0
  26. package/dist/commands/work/peek.js +78 -0
  27. package/dist/commands/work/peek.js.map +1 -0
  28. package/dist/commands/work/poke.d.ts +19 -0
  29. package/dist/commands/work/poke.js +79 -0
  30. package/dist/commands/work/poke.js.map +1 -0
  31. package/dist/commands/work/review.d.ts +1 -31
  32. package/dist/commands/work/review.js +44 -368
  33. package/dist/commands/work/review.js.map +1 -1
  34. package/dist/commands/work/spawn.js +1 -1
  35. package/dist/commands/work/spawn.js.map +1 -1
  36. package/dist/commands/work/start.d.ts +2 -0
  37. package/dist/commands/work/start.js +24 -19
  38. package/dist/commands/work/start.js.map +1 -1
  39. package/dist/commands/work/stop.d.ts +14 -0
  40. package/dist/commands/work/stop.js +103 -0
  41. package/dist/commands/work/stop.js.map +1 -0
  42. package/dist/hooks/init.d.ts +1 -1
  43. package/dist/hooks/init.js +1 -1
  44. package/dist/lib/execution/config.d.ts +17 -1
  45. package/dist/lib/execution/config.js +38 -0
  46. package/dist/lib/execution/config.js.map +1 -1
  47. package/dist/lib/execution/devcontainer.js +0 -1
  48. package/dist/lib/execution/devcontainer.js.map +1 -1
  49. package/dist/lib/execution/runners/docker-management.js +20 -0
  50. package/dist/lib/execution/runners/docker-management.js.map +1 -1
  51. package/dist/lib/execution/runners/prompt-builder.js +1 -2
  52. package/dist/lib/execution/runners/prompt-builder.js.map +1 -1
  53. package/dist/lib/execution/runners/shared.js +3 -1
  54. package/dist/lib/execution/runners/shared.js.map +1 -1
  55. package/dist/lib/execution/spawner.d.ts +3 -1
  56. package/dist/lib/execution/spawner.js +10 -4
  57. package/dist/lib/execution/spawner.js.map +1 -1
  58. package/dist/lib/execution/storage.d.ts +2 -1
  59. package/dist/lib/execution/storage.js +4 -3
  60. package/dist/lib/execution/storage.js.map +1 -1
  61. package/dist/lib/execution/types.d.ts +9 -0
  62. package/dist/lib/execution/types.js.map +1 -1
  63. package/dist/lib/mcp/tools/tmux.d.ts +1 -1
  64. package/dist/lib/mcp/tools/tmux.js +1 -1
  65. package/dist/lib/mcp/tools/work.js +4 -35
  66. package/dist/lib/mcp/tools/work.js.map +1 -1
  67. package/dist/lib/pmo/schema.d.ts +1 -1
  68. package/dist/lib/pmo/schema.js +1 -0
  69. package/dist/lib/pmo/schema.js.map +1 -1
  70. package/dist/lib/pmo/storage/base.js +59 -501
  71. package/dist/lib/pmo/storage/base.js.map +1 -1
  72. package/dist/lib/pmo/utils.d.ts +22 -0
  73. package/dist/lib/pmo/utils.js +31 -0
  74. package/dist/lib/pmo/utils.js.map +1 -1
  75. package/dist/lib/telemetry/analytics.d.ts +10 -13
  76. package/dist/lib/telemetry/analytics.js +36 -126
  77. package/dist/lib/telemetry/analytics.js.map +1 -1
  78. package/dist/lib/telemetry/feature-flags.d.ts +12 -37
  79. package/dist/lib/telemetry/feature-flags.js +15 -63
  80. package/dist/lib/telemetry/feature-flags.js.map +1 -1
  81. package/oclif.manifest.json +846 -583
  82. package/package.json +2 -3
  83. package/dist/commands/work/revise.d.ts +0 -20
  84. package/dist/commands/work/revise.js +0 -377
  85. package/dist/commands/work/revise.js.map +0 -1
@@ -1,53 +1,28 @@
1
1
  /**
2
- * Feature Flags (Statsig Feature Gates)
2
+ * Feature Flags (stub)
3
3
  *
4
- * Wraps Statsig feature gate checks with a simple API for the CLI.
5
- * Feature flags are evaluated locally after SDK initialization,
6
- * so checks are near-instant after the initial fetch.
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 for the current machine.
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
- * @param gateName - The feature gate name (e.g., 'new_board_view')
33
- * @returns Whether the gate is enabled
16
+ * Always returns false now that Statsig has been removed.
34
17
  */
35
- export declare function isEnabled(gateName: string): boolean;
18
+ export declare function isEnabled(_gateName: string): boolean;
36
19
  /**
37
- * Get a dynamic config value from Statsig.
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
- * @param configName - The dynamic config name
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>(configName: string, key: string, defaultValue: T): 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 (Statsig Feature Gates)
2
+ * Feature Flags (stub)
3
3
  *
4
- * Wraps Statsig feature gate checks with a simple API for the CLI.
5
- * Feature flags are evaluated locally after SDK initialization,
6
- * so checks are near-instant after the initial fetch.
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
- * Set the Statsig client reference (called from analytics.ts after init).
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
- * @param gateName - The feature gate name (e.g., 'new_board_view')
34
- * @returns Whether the gate is enabled
16
+ * Always returns false now that Statsig has been removed.
35
17
  */
36
- export function isEnabled(gateName) {
37
- if (!isTelemetryEnabled() || !statsigClient)
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 from Statsig.
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
- * @param configName - The dynamic config name
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(configName, key, defaultValue) {
66
- if (!isTelemetryEnabled() || !statsigClient)
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
- flagCache.clear();
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;;;;;;;;;;;;;G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