codiedev 0.10.0-beta.4 → 0.10.0-beta.6

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 (157) hide show
  1. package/README.md +11 -5
  2. package/assets/tui-brand-plugin.tsx +14 -2
  3. package/dist/backup/cache.js +1 -5
  4. package/dist/backup/match.js +0 -6
  5. package/dist/backup/run.js +3 -35
  6. package/dist/captureExclusions.js +0 -12
  7. package/dist/captureLog.js +0 -28
  8. package/dist/captureReadiness.js +0 -58
  9. package/dist/captureSignals.js +68 -3
  10. package/dist/cli.js +75 -64
  11. package/dist/codexHookTrust.js +125 -6
  12. package/dist/codexLimitScan.js +2 -109
  13. package/dist/codie.js +50 -114
  14. package/dist/codieBrandInstall.js +0 -18
  15. package/dist/codieLauncher.js +20 -92
  16. package/dist/codieRuntime.js +19 -23
  17. package/dist/codieRuntimeInstall.js +108 -23
  18. package/dist/codieUsage.js +38 -41
  19. package/dist/commands/agentTemplates.generated.js +136 -0
  20. package/dist/commands/agents.js +1066 -0
  21. package/dist/commands/agentsSdk.generated.js +7 -0
  22. package/dist/commands/ask.js +0 -3
  23. package/dist/commands/capture.js +0 -2
  24. package/dist/commands/createTicket.js +0 -10
  25. package/dist/commands/doctor.js +53 -120
  26. package/dist/commands/evals.js +187 -0
  27. package/dist/commands/inbox.js +0 -2
  28. package/dist/commands/library.js +0 -3
  29. package/dist/commands/pack.js +573 -0
  30. package/dist/commands/ping.js +0 -2
  31. package/dist/commands/pull.js +6 -10
  32. package/dist/commands/push.js +2 -12
  33. package/dist/commands/search.js +0 -4
  34. package/dist/commands/send.js +0 -5
  35. package/dist/commands/share.js +0 -4
  36. package/dist/commands/shared.js +0 -35
  37. package/dist/commands/traces.js +344 -0
  38. package/dist/commands/tracesLabel.js +348 -0
  39. package/dist/configDir.js +0 -10
  40. package/dist/connect.js +19 -116
  41. package/dist/connectFlow.js +0 -9
  42. package/dist/copilotHooks.js +391 -0
  43. package/dist/copilotInstallation.js +64 -0
  44. package/dist/cursorHooks.js +38 -30
  45. package/dist/cursorLifecycle.js +109 -0
  46. package/dist/detection.js +0 -30
  47. package/dist/harnessDirs.js +77 -0
  48. package/dist/hook.js +182 -469
  49. package/dist/inboxFormat.js +0 -24
  50. package/dist/launchContext.js +150 -0
  51. package/dist/launcher.js +140 -0
  52. package/dist/limitEvent.js +41 -35
  53. package/dist/limitEventReporter.js +1 -1
  54. package/dist/managedPi.js +240 -0
  55. package/dist/mcp.js +3 -384
  56. package/dist/nativeSteering.js +24 -0
  57. package/dist/packs/codie.js +182 -0
  58. package/dist/packs/harnesses.js +411 -0
  59. package/dist/packs/hookGate.js +256 -0
  60. package/dist/packs/install.js +286 -0
  61. package/dist/packs/manifest.js +126 -0
  62. package/dist/packs/paths.js +81 -0
  63. package/dist/packs/shim.js +214 -0
  64. package/dist/packs/store.js +155 -0
  65. package/dist/packs/sync.js +170 -0
  66. package/dist/piHooks.js +216 -0
  67. package/dist/piRuntime.js +120 -0
  68. package/dist/repoResolver.js +0 -19
  69. package/dist/secret.js +0 -3
  70. package/dist/selfUpdate.js +376 -0
  71. package/dist/skillMarker.js +23 -0
  72. package/dist/subagents.js +135 -0
  73. package/dist/teamSkillContext.js +10 -0
  74. package/dist/transcriptModels.js +6 -8
  75. package/dist/upgradeNudge.js +0 -30
  76. package/dist/utils.js +494 -824
  77. package/dist/version.js +0 -10
  78. package/dist/versionCheck.js +0 -33
  79. package/package.json +8 -9
  80. package/dist/backup/cache.d.ts +0 -14
  81. package/dist/backup/match.d.ts +0 -2
  82. package/dist/backup/run.d.ts +0 -25
  83. package/dist/captureExclusions.d.ts +0 -30
  84. package/dist/captureLog.d.ts +0 -20
  85. package/dist/captureReadiness.d.ts +0 -65
  86. package/dist/captureSignals.d.ts +0 -19
  87. package/dist/cli.d.ts +0 -16
  88. package/dist/codexHookTrust.d.ts +0 -34
  89. package/dist/codexLimitScan.d.ts +0 -64
  90. package/dist/codie.d.ts +0 -2
  91. package/dist/codieBrandInstall.d.ts +0 -11
  92. package/dist/codieLauncher.d.ts +0 -86
  93. package/dist/codieRuntime.d.ts +0 -29
  94. package/dist/codieRuntimeInstall.d.ts +0 -28
  95. package/dist/codieStartup.d.ts +0 -26
  96. package/dist/codieStartup.js +0 -30
  97. package/dist/codieUsage.d.ts +0 -57
  98. package/dist/commands/ask.d.ts +0 -1
  99. package/dist/commands/capture.d.ts +0 -14
  100. package/dist/commands/createTicket.d.ts +0 -27
  101. package/dist/commands/delete.d.ts +0 -1
  102. package/dist/commands/doctor.d.ts +0 -1
  103. package/dist/commands/inbox.d.ts +0 -3
  104. package/dist/commands/library.d.ts +0 -2
  105. package/dist/commands/note.d.ts +0 -1
  106. package/dist/commands/ping.d.ts +0 -1
  107. package/dist/commands/promote.d.ts +0 -1
  108. package/dist/commands/promote.js +0 -53
  109. package/dist/commands/pull.d.ts +0 -2
  110. package/dist/commands/push.d.ts +0 -33
  111. package/dist/commands/react.d.ts +0 -2
  112. package/dist/commands/react.js +0 -40
  113. package/dist/commands/reverseTicket.d.ts +0 -2
  114. package/dist/commands/reverseTicket.js +0 -477
  115. package/dist/commands/search.d.ts +0 -2
  116. package/dist/commands/security.d.ts +0 -1
  117. package/dist/commands/security.js +0 -156
  118. package/dist/commands/send.d.ts +0 -2
  119. package/dist/commands/share.d.ts +0 -2
  120. package/dist/commands/shared.d.ts +0 -64
  121. package/dist/configDir.d.ts +0 -1
  122. package/dist/connect.d.ts +0 -1
  123. package/dist/connectFlow.d.ts +0 -13
  124. package/dist/cursorHooks.d.ts +0 -23
  125. package/dist/detection.d.ts +0 -30
  126. package/dist/hook.d.ts +0 -6
  127. package/dist/inboxFormat.d.ts +0 -38
  128. package/dist/limitEvent.d.ts +0 -16
  129. package/dist/limitEventReporter.d.ts +0 -21
  130. package/dist/mcp.d.ts +0 -12
  131. package/dist/prUrl.d.ts +0 -9
  132. package/dist/prUrl.js +0 -33
  133. package/dist/repoResolver.d.ts +0 -17
  134. package/dist/secret.d.ts +0 -1
  135. package/dist/security.d.ts +0 -102
  136. package/dist/security.js +0 -437
  137. package/dist/securityDeepScan.d.ts +0 -41
  138. package/dist/securityDeepScan.js +0 -248
  139. package/dist/securityDoctor.d.ts +0 -32
  140. package/dist/securityDoctor.js +0 -63
  141. package/dist/securityFeature.d.ts +0 -5
  142. package/dist/securityFeature.js +0 -7
  143. package/dist/securityInstall.d.ts +0 -63
  144. package/dist/securityInstall.js +0 -239
  145. package/dist/securityInventory.d.ts +0 -54
  146. package/dist/securityInventory.js +0 -556
  147. package/dist/securityPilot.d.ts +0 -19
  148. package/dist/securityPilot.js +0 -61
  149. package/dist/securityPolicy.d.ts +0 -33
  150. package/dist/securityPolicy.js +0 -188
  151. package/dist/securitySession.d.ts +0 -6
  152. package/dist/securitySession.js +0 -72
  153. package/dist/transcriptModels.d.ts +0 -18
  154. package/dist/upgradeNudge.d.ts +0 -25
  155. package/dist/utils.d.ts +0 -346
  156. package/dist/version.d.ts +0 -1
  157. package/dist/versionCheck.d.ts +0 -68
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- // Client-side "you're outdated" warning. Prints at the top of connect/doctor
3
- // when there's a newer `codiedev` published on npm. Pure helpers tested in
4
- // __tests__/versionCheck.test.ts; this module does the IO (registry fetch +
5
- // disk cache) and is exercised by manual smoke.
6
- //
7
- // Cache lives at <codiedevStateDir()>/.update-cache.json (~/.codiedev by
8
- // default; ~/.codiedev-desktop under CODIEDEV_CONFIG_DIR). 24h TTL — long
9
- // enough that the registry isn't hit on every command, short enough that
10
- // newly-published versions surface the day after release.
11
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
12
3
  if (k2 === undefined) k2 = k;
13
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -75,7 +66,6 @@ function writeCache(entry) {
75
66
  fs.writeFileSync(CACHE_PATH, JSON.stringify(entry), "utf8");
76
67
  }
77
68
  catch {
78
- // ignore — cache is best-effort
79
69
  }
80
70
  }
81
71
  async function fetchLatestFromNpm() {
@@ -96,12 +86,6 @@ async function fetchLatestFromNpm() {
96
86
  return null;
97
87
  }
98
88
  }
99
- /**
100
- * Fail-silent — never throws, never blocks on network. If the registry is
101
- * unreachable or the cache is corrupt, the warning just doesn't print. The
102
- * worst outcome is "user keeps running an old version" — same as before
103
- * this feature existed.
104
- */
105
89
  async function maybePrintUpgradeNudge() {
106
90
  const now = Date.now();
107
91
  const cache = readCache();
@@ -126,9 +110,6 @@ async function maybePrintUpgradeNudge() {
126
110
  }
127
111
  }
128
112
  const OFFER_CACHE_NAME = ".update-offer-cache.json";
129
- // This runs before the harness paints, so the timeout is startup latency the
130
- // user feels. A missed check costs nothing; the next stale-cache launch tries
131
- // again.
132
113
  const OFFER_FETCH_TIMEOUT_MS = 1500;
133
114
  const UPGRADE_TIMEOUT_MS = 120_000;
134
115
  function offerCachePath(env) {
@@ -152,8 +133,6 @@ function readOfferCache(env) {
152
133
  return null;
153
134
  }
154
135
  }
155
- // If this cannot be persisted, the whole feature stays off. Without memory,
156
- // every launch would refetch and re-nag on ephemeral or read-only filesystems.
157
136
  function writeOfferCache(entry, env) {
158
137
  try {
159
138
  const target = offerCachePath(env);
@@ -190,8 +169,6 @@ async function fetchLatest(fetchImpl) {
190
169
  return null;
191
170
  }
192
171
  }
193
- // Single-keypress y/n prompt. EOF, Ctrl-C, lost raw mode, and tty errors all
194
- // default to no so update handling can never strand the launcher.
195
172
  function promptYesNo(question) {
196
173
  return new Promise((resolve) => {
197
174
  const stdin = process.stdin;
@@ -218,7 +195,6 @@ function promptYesNo(question) {
218
195
  stdin.setRawMode(Boolean(wasRaw));
219
196
  }
220
197
  catch {
221
- // Best-effort; the engine resets the tty when it starts.
222
198
  }
223
199
  stdin.pause();
224
200
  process.stdout.write(`${yes ? "y" : "n"}\n`);
@@ -239,11 +215,6 @@ function runUpgrade() {
239
215
  });
240
216
  return !result.error && result.status === 0;
241
217
  }
242
- /**
243
- * Prompt-capable sibling of maybePrintUpgradeNudge. Call this before handing
244
- * the terminal to a TUI. A successful upgrade relaunches the fresh CLI and
245
- * tells the stale caller to stop rather than continuing with old modules.
246
- */
247
218
  async function maybeOfferUpgrade(opts = {}) {
248
219
  const env = opts.env ?? process.env;
249
220
  const argv = opts.argv ?? process.argv;
@@ -257,7 +228,6 @@ async function maybeOfferUpgrade(opts = {}) {
257
228
  let fetchedAt = cache?.fetchedAt ?? 0;
258
229
  const promptedAt = cache?.promptedAt ?? 0;
259
230
  if (!cache || nowMs - cache.fetchedAt > CACHE_TTL_MS) {
260
- // Probe writability before paying the network cost.
261
231
  if (!writeOfferCache(cache ?? { latest: null, fetchedAt: 0, promptedAt: 0 }, env)) {
262
232
  return { relaunched: false };
263
233
  }