t3code-cli 0.8.0 → 0.9.1

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 (60) hide show
  1. package/README.md +90 -35
  2. package/dist/application.js +1 -1
  3. package/dist/auth.js +1 -2
  4. package/dist/bin.js +190 -45
  5. package/dist/cli.js +1 -1
  6. package/dist/config.js +1 -3
  7. package/dist/connection.js +1 -4
  8. package/dist/index.js +1 -4
  9. package/dist/layout.js +1 -1
  10. package/dist/orchestration.js +1 -1
  11. package/dist/rpc.js +1 -1
  12. package/dist/runtime.js +1 -2
  13. package/dist/scope.js +1 -1
  14. package/dist/shared.js +85492 -0
  15. package/dist/src/application/layer.d.ts +25 -2
  16. package/dist/src/application/projects.d.ts +1 -1
  17. package/dist/src/application/service.d.ts +21 -1
  18. package/dist/src/application/thread-commands.d.ts +27 -1
  19. package/dist/src/application/threads.d.ts +50 -1
  20. package/dist/src/domain/thread-activities.d.ts +14 -0
  21. package/dist/src/domain/thread-lifecycle.d.ts +1 -0
  22. package/dist/src/runtime/layer.d.ts +1 -1
  23. package/dist/t3tools.js +1 -1
  24. package/package.json +1 -1
  25. package/src/application/service.ts +19 -0
  26. package/src/application/thread-commands.ts +45 -0
  27. package/src/application/threads.ts +85 -0
  28. package/src/cli/error.ts +15 -0
  29. package/src/cli/message-input.ts +30 -0
  30. package/src/cli/thread-format.ts +47 -0
  31. package/src/cli/thread.ts +6 -0
  32. package/src/cli/threads/approve.ts +61 -0
  33. package/src/cli/threads/archive.ts +18 -3
  34. package/src/cli/threads/callback.ts +1 -2
  35. package/src/cli/threads/respond.ts +70 -0
  36. package/src/cli/threads/show.ts +43 -0
  37. package/src/domain/thread-activities.test.ts +321 -0
  38. package/src/domain/thread-activities.ts +244 -0
  39. package/src/domain/thread-lifecycle.ts +2 -0
  40. package/dist/Context-DueQ9iMH.js +0 -4916
  41. package/dist/Path-D8WPdPwR.js +0 -11406
  42. package/dist/Schema-DsQxYh6_.js +0 -13581
  43. package/dist/UrlParams-BA6gBvaY.js +0 -205
  44. package/dist/base-dir-R12OMDso.js +0 -20
  45. package/dist/error-BHRnjLux.js +0 -15
  46. package/dist/error-ChTsLQTu.js +0 -169
  47. package/dist/error-CjADNVm8.js +0 -54
  48. package/dist/flags-CM7_iGdA.js +0 -13371
  49. package/dist/layer-CMo36MrX.js +0 -29466
  50. package/dist/layer-DHhKS5jd.js +0 -13
  51. package/dist/layer-DUv99vsS.js +0 -72
  52. package/dist/layer-Do8wK1t6.js +0 -1508
  53. package/dist/layer-DwI3Skkh.js +0 -1223
  54. package/dist/scope-GycYiJ54.js +0 -29
  55. package/dist/service-CLmRO2Dp.js +0 -8
  56. package/dist/service-ybOWV9pL.js +0 -5
  57. package/dist/src-aiFPmAG7.js +0 -9030
  58. package/dist/transport-MI0Z3d2T.js +0 -539
  59. package/dist/url-SlsaG8nY.js +0 -165
  60. /package/dist/{chunk-B5meny8j.js → rolldown-runtime.js} +0 -0
@@ -1,29 +0,0 @@
1
- //#region src/scope/resolve.ts
2
- function resolveProjectRef(input) {
3
- if (input.value !== void 0 && input.value.length > 0) return input.value;
4
- const fromRoot = input.env.T3CODE_PROJECT_ROOT;
5
- if (fromRoot !== void 0 && fromRoot.length > 0) return fromRoot;
6
- const fromId = input.env.T3CODE_PROJECT_ID;
7
- if (fromId !== void 0 && fromId.length > 0) return fromId;
8
- }
9
- function resolveCommandProjectRef(input) {
10
- const explicit = resolveProjectRef({
11
- value: input.value,
12
- env: input.env
13
- });
14
- if (explicit !== void 0) return explicit;
15
- if (input.isLocal ?? false) return input.cwd;
16
- }
17
- function resolveWorktreePath(input) {
18
- if (input.value !== void 0 && input.value.length > 0) return input.value;
19
- const fromEnv = input.env.T3CODE_WORKTREE_PATH;
20
- if (fromEnv !== void 0 && fromEnv.length > 0) return fromEnv;
21
- return input.inferred;
22
- }
23
- function resolveThreadId(input) {
24
- if (input.value !== void 0 && input.value.length > 0) return input.value;
25
- const fromEnv = input.env.T3CODE_THREAD_ID;
26
- if (fromEnv !== void 0 && fromEnv.length > 0) return fromEnv;
27
- }
28
- //#endregion
29
- export { resolveWorktreePath as i, resolveProjectRef as n, resolveThreadId as r, resolveCommandProjectRef as t };
@@ -1,8 +0,0 @@
1
- import { n as Service } from "./Context-DueQ9iMH.js";
2
- //#region src/config/service.ts
3
- var T3Config = class extends Service()("t3cli/T3Config") {};
4
- //#endregion
5
- //#region src/environment/service.ts
6
- var Environment = class extends Service()("t3cli/Environment") {};
7
- //#endregion
8
- export { T3Config as n, Environment as t };
@@ -1,5 +0,0 @@
1
- import { n as Service } from "./Context-DueQ9iMH.js";
2
- //#region src/application/service.ts
3
- var T3Application = class extends Service()("t3cli/T3Application") {};
4
- //#endregion
5
- export { T3Application as t };