@chatcode/chatcode-cli 3.0.2 → 3.0.4-rc.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 (221) hide show
  1. package/README.i18n.yaml +10 -10
  2. package/README.md +26 -1
  3. package/README.zh.md +26 -1
  4. package/lib/bin.js +70 -75
  5. package/lib/{command-errors-CIYn1nnW.js → command-errors-BkCHTQHj.js} +12 -12
  6. package/lib/{command-trees-8o99Bws7.js → command-trees-5HFyC5sI.js} +2 -2
  7. package/lib/{component-identity-CnmIKHEF.js → component-identity-De91VHwW.js} +3 -3
  8. package/lib/{dist-DxjlHHph.js → dist-CsDWUvQ4.js} +238 -232
  9. package/lib/dsh-ecosystem-spec/protocols/profile-definitions.d.ts +13 -0
  10. package/lib/dsh-ecosystem-spec/protocols/profile-definitions.js +59 -0
  11. package/lib/dsh-ecosystem-spec/protocols/tui-channel-http.d.ts +15 -0
  12. package/lib/dsh-ecosystem-spec/protocols/tui-channel-http.js +32 -0
  13. package/lib/dsh-ecosystem-spec/protocols/tui-channel.d.ts +59 -0
  14. package/lib/dsh-ecosystem-spec/protocols/tui-channel.js +166 -0
  15. package/lib/dsh-ecosystem-spec/protocols/tui-contributions.d.ts +42 -0
  16. package/lib/dsh-ecosystem-spec/protocols/tui-contributions.js +143 -0
  17. package/lib/dsh-ecosystem-spec/registry/README.md +14 -0
  18. package/lib/dsh-ecosystem-spec/registry/contracts/decision-events-v1alpha1.json +13 -0
  19. package/lib/dsh-ecosystem-spec/registry/contracts/scene-v1alpha1.json +13 -0
  20. package/lib/dsh-ecosystem-spec/registry/contracts/settings-section-v1alpha1.json +13 -0
  21. package/lib/dsh-ecosystem-spec/registry/contracts/tui-channel-v1alpha1.json +30 -0
  22. package/lib/dsh-ecosystem-spec/registry/contracts/workspace-provider-v1alpha1.json +6 -0
  23. package/lib/dsh-ecosystem-spec/registry/host-descriptor.tui.example.json +56 -0
  24. package/lib/dsh-ecosystem-spec/registry/permissions-0.1.json +13 -0
  25. package/lib/dsh-ecosystem-spec/registry/registry-0.15.json +149 -0
  26. package/lib/dsh-ecosystem-spec/schemas/conformance-claim.schema.json +15 -0
  27. package/lib/dsh-ecosystem-spec/schemas/effect-ledger-record.schema.json +16 -0
  28. package/lib/dsh-ecosystem-spec/schemas/host-descriptor.schema.json +26 -0
  29. package/lib/{dump-config-BSTrhTT_.js → dump-config-BcH-VYuv.js} +5 -5
  30. package/lib/dump-config-CyopmD85.js +2 -0
  31. package/lib/{dump-config-schema-Cz4A13GB.js → dump-config-schema-DM0fb6Ns.js} +2 -2
  32. package/lib/{extension-events-DciGPKJa.js → extension-events-CdYCRP0o.js} +26 -26
  33. package/lib/{frames-7PAg0Q9b.js → frames-DOX-Jgk8.js} +4 -4
  34. package/lib/headless-compat.js +2 -2
  35. package/lib/{home-migration-DLaSvmfn.js → home-migration-BjDmRwBB.js} +23 -4
  36. package/lib/{host-access-CmD27uhQ.js → host-access-Bk4xps5E.js} +1 -1
  37. package/lib/{keymap-CFChEJ2W.js → keymap-CJ1kvLR2.js} +17 -16
  38. package/lib/{plugin-jvd9PCVt.js → plugin-XR7ncbnW.js} +3767 -2331
  39. package/lib/{plugin-DYHtreEd.js → plugin-eJjD6r12.js} +1 -1
  40. package/lib/{profile-boot-Blq7uqhx.js → profile-boot-BNQry1NM.js} +109 -14
  41. package/lib/profile-boot.js +2 -2
  42. package/lib/{scenes-ai_8sHDs.js → scenes-CAmWncZD.js} +3 -3
  43. package/lib/{settings-sections-QQ1-2lhL.js → settings-sections-CakcvBv9.js} +7 -3
  44. package/lib/startup-diagnostics-C_hRCp-q.js +91 -0
  45. package/lib/statusBarSettings-BPPS_Usm.js +382 -0
  46. package/lib/{supports-color-CcW-FGjr.js → supports-color-DyChQwlI.js} +2 -2
  47. package/lib/{themes-DTzG_9I_.js → themes-OjcUpZzw.js} +13 -13
  48. package/lib/tui-compat-command-trees.js +1 -1
  49. package/lib/tui-compat-extensions.js +4 -4
  50. package/lib/tui-compat-plugin-host.js +5 -5
  51. package/lib/tui-compat-scenes.js +1 -1
  52. package/lib/tui-compat-settings-sections.js +1 -1
  53. package/lib/tui-compat-working-activity.js +4 -4
  54. package/lib/tui-compat-workspaces.js +1 -1
  55. package/lib/tui-compat.js +44 -29
  56. package/lib/types/args.d.ts +2 -0
  57. package/lib/types/home-migration.d.ts +8 -0
  58. package/lib/types/permission-bypass.d.ts +16 -0
  59. package/lib/types/profile-boot.d.ts +12 -0
  60. package/lib/types/startup-diagnostics.d.ts +13 -0
  61. package/lib/types/tui-compat.d.ts +6 -0
  62. package/lib/types/web-browser.d.ts +6 -0
  63. package/lib/types/web-instance.d.ts +42 -0
  64. package/lib/web-browser-Vcgfdsv_.js +46 -0
  65. package/lib/web-instance-B0jec7cq.js +2 -0
  66. package/lib/web-instance-DbP7IHPv.js +280 -0
  67. package/lib/{workspaces-CznCgVHv.js → workspaces-XY7UdfXp.js} +2 -2
  68. package/package.json +40 -32
  69. package/runtime/manifest.json +4 -6
  70. package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +34 -4
  71. package/runtime/node_modules/@deepseek-ai/dsh-agent-default-model/lib/types/index.d.ts +9 -0
  72. package/runtime/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +2 -1
  73. package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +2 -0
  74. package/runtime/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-stream.js +4 -0
  75. package/runtime/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +39 -0
  76. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +6 -1
  77. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +10 -3
  78. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +7 -0
  79. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +8 -1
  80. package/runtime/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.d.ts +10 -0
  81. package/runtime/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/index.js +28 -1
  82. package/runtime/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.host.js +39 -0
  83. package/runtime/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.remote-client.d.ts +2 -0
  84. package/runtime/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.remote-client.js +32 -0
  85. package/runtime/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/types/index.d.ts +8 -0
  86. package/runtime/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/types/index.js +19 -1
  87. package/runtime/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +28 -0
  88. package/runtime/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/feed.js +17 -0
  89. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +67 -19
  90. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/index.d.ts +1 -1
  91. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/types/profile-context.d.ts +11 -1
  92. package/runtime/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +22 -3
  93. package/runtime/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +9 -3
  94. package/runtime/node_modules/@deepseek-ai/dsh-base/package.json +2 -1
  95. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +3 -2
  96. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/types/index.d.ts +2 -2
  97. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +1 -1
  98. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  99. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +60 -12
  100. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/types/client/directory.d.ts +3 -1
  101. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/types/client/locales.d.ts +6 -0
  102. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +3 -5
  103. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +23 -27
  104. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/types/client/contract/slots.d.ts +3 -1
  105. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  106. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/types/index.d.ts +2 -2
  107. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +8 -7
  108. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/SettingsDocumentAction.d.ts +1 -1
  109. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/types/client/settings-document-store.d.ts +2 -1
  110. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +33 -12
  111. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/types/client/locales.d.ts +2 -0
  112. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  113. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  114. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  115. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +8 -1
  116. package/runtime/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/types/client/locales.d.ts +2 -0
  117. package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +84 -8
  118. package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/types/region.d.ts +9 -0
  119. package/runtime/node_modules/@deepseek-ai/dsh-compaction-basic/lib/types/summarizer.d.ts +7 -0
  120. package/runtime/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +35 -0
  121. package/runtime/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.d.ts +11 -0
  122. package/runtime/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +10 -0
  123. package/runtime/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.d.ts +28 -0
  124. package/runtime/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +36 -0
  125. package/runtime/node_modules/@deepseek-ai/dsh-computer-use/package.json +42 -0
  126. package/runtime/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +102 -14
  127. package/runtime/node_modules/@deepseek-ai/dsh-config-editor/lib/types/index.d.ts +34 -4
  128. package/runtime/node_modules/@deepseek-ai/dsh-config-editor/package.json +1 -0
  129. package/runtime/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +2 -1
  130. package/runtime/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +21 -8
  131. package/runtime/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.d.ts +4 -6
  132. package/runtime/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +18 -7
  133. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -8
  134. package/runtime/node_modules/@deepseek-ai/dsh-session-log-export/lib/types/client/HeaderAction.d.ts +1 -1
  135. package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/index.js +5 -4
  136. package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/index.d.ts +4 -3
  137. package/runtime/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +4 -3
  138. package/runtime/node_modules/@deepseek-ai/dsh-skill/lib/types/index.d.ts +1 -1
  139. package/runtime/node_modules/@deepseek-ai/dsh-skill-filesystem/lib/index.js +7 -1
  140. package/runtime/node_modules/@deepseek-ai/dsh-storage/lib/types/backend.d.ts +4 -0
  141. package/runtime/node_modules/@deepseek-ai/dsh-storage-domain/lib/index.js +60 -0
  142. package/runtime/node_modules/@deepseek-ai/dsh-storage-domain/lib/types/domain.d.ts +15 -0
  143. package/runtime/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +25 -0
  144. package/runtime/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -0
  145. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/index.js +5472 -0
  146. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/command-args.d.ts +17 -0
  147. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/commands/tianti/cicd.d.ts +8 -0
  148. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/commands/tianti/tianti.d.ts +7 -0
  149. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/commands/tianti-deliver/tianti-deliver.d.ts +8 -0
  150. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/config.d.ts +27 -0
  151. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/index.d.ts +12 -0
  152. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/memory-config.d.ts +10 -0
  153. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/runtime.d.ts +105 -0
  154. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/tianti/aliases.d.ts +11 -0
  155. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/tianti/auth.d.ts +20 -0
  156. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/tianti/client.d.ts +206 -0
  157. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/tianti/config.d.ts +20 -0
  158. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/tianti/index.d.ts +6 -0
  159. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/tianti/log.d.ts +16 -0
  160. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/tianti/types.d.ts +136 -0
  161. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/codebase.d.ts +19 -0
  162. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/dynamicWorkflow.d.ts +10 -0
  163. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/engine.d.ts +8 -0
  164. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/executor.d.ts +11 -0
  165. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/executors.d.ts +15 -0
  166. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/index.d.ts +23 -0
  167. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/memorySuggestions.d.ts +12 -0
  168. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/openspec.d.ts +31 -0
  169. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/recommend.d.ts +8 -0
  170. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/render.d.ts +8 -0
  171. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/requirementContext.d.ts +12 -0
  172. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/scenarioUpgrade.d.ts +24 -0
  173. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/state.d.ts +16 -0
  174. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/store.d.ts +33 -0
  175. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/templates.d.ts +8 -0
  176. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/types.d.ts +385 -0
  177. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/wanmaDevelopmentWorkflow/writeReviewSync.d.ts +6 -0
  178. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/writeReview/index.d.ts +29 -0
  179. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/writeReview/store.d.ts +20 -0
  180. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/services/writeReview/types.d.ts +49 -0
  181. package/runtime/node_modules/@deepseek-ai/dsh-tianti/lib/types/tools.d.ts +12 -0
  182. package/runtime/node_modules/@deepseek-ai/dsh-tianti/package.json +55 -0
  183. package/runtime/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +57 -13
  184. package/runtime/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +2 -1
  185. package/runtime/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +2 -1
  186. package/runtime/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +2 -1
  187. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-D5kpKf--.css +1 -0
  188. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Dz_cDcce.js +133 -0
  189. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Dz_cDcce.js.map +1 -0
  190. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/chatcode-apple-touch-icon.png +0 -0
  191. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/chatcode-icon-32.png +0 -0
  192. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/chatcode-mask-icon.svg +1 -0
  193. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon-dark.svg +1 -3
  194. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon.ico +0 -0
  195. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon.svg +1 -3
  196. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +8 -4
  197. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/preview.html +8 -4
  198. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/package.json +2 -1
  199. package/runtime/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +110 -33
  200. package/runtime/node_modules/@deepseek-ai/dsh-workspace/lib/types/entity.d.ts +6 -0
  201. package/runtime/node_modules/@deepseek-ai/dsh-workspace/lib/types/entity.js +23 -17
  202. package/runtime/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.d.ts +10 -0
  203. package/runtime/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +95 -21
  204. package/lib/dump-config-DBW7YLx-.js +0 -2
  205. package/lib/tuiDisplayPrefs-BCHRRcfe.js +0 -162
  206. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +0 -1
  207. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +0 -127
  208. package/runtime/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js.map +0 -1
  209. package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/README.md +0 -9
  210. package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/bin/system.node +0 -0
  211. package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/package.json +0 -31
  212. package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-arm64/prebuilds.json +0 -6
  213. package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-x64/README.md +0 -9
  214. package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-x64/package.json +0 -31
  215. package/runtime/node_modules/@deepseek-ai/node-addon-system-darwin-x64/prebuilds.json +0 -6
  216. package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-arm64/README.md +0 -11
  217. package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-arm64/package.json +0 -31
  218. package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-arm64/prebuilds.json +0 -24
  219. package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-x64/README.md +0 -11
  220. package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-x64/package.json +0 -31
  221. package/runtime/node_modules/@deepseek-ai/node-addon-system-linux-x64/prebuilds.json +0 -24
@@ -0,0 +1,17 @@
1
+ /** Quoted and repeated Tianti flags shared by toolbox and delivery commands. */
2
+ export interface ParsedArgs {
3
+ positionals: string[];
4
+ flags: Record<string, string | boolean | string[]>;
5
+ }
6
+ /** Parse positional words and repeated flags, retaining spaces inside quoted field values.
7
+ * @param input Text following the slash command.
8
+ * @returns Positional arguments and single or repeated flag values.
9
+ */
10
+ export declare function parseArgs(input: string): ParsedArgs;
11
+ /** Read the first text value of a flag.
12
+ * @param flags Parsed command flags.
13
+ * @param name Flag name without its leading dashes.
14
+ * @returns First supplied text value, or undefined for an absent/boolean flag.
15
+ */
16
+ export declare function firstFlag(flags: ParsedArgs['flags'], name: string): string | undefined;
17
+ //# sourceMappingURL=command-args.d.ts.map
@@ -0,0 +1,8 @@
1
+ /** Ported ChatCode Tianti tianti behavior on the Harness runtime. */
2
+ import type { LocalCommandResult } from '../../runtime.ts';
3
+ /** Execute the Tianti command grammar in the current invocation.
4
+ * @param args Text following the slash command.
5
+ * @returns Human-readable command output.
6
+ */
7
+ export declare function call(args: string): Promise<LocalCommandResult>;
8
+ //# sourceMappingURL=cicd.d.ts.map
@@ -0,0 +1,7 @@
1
+ import type { LocalCommandResult } from '../../runtime.ts';
2
+ /** Execute the Tianti command grammar in the current invocation.
3
+ * @param args Text following the slash command.
4
+ * @returns Human-readable command output.
5
+ */
6
+ export declare function call(args: string): Promise<LocalCommandResult>;
7
+ //# sourceMappingURL=tianti.d.ts.map
@@ -0,0 +1,8 @@
1
+ /** Ported ChatCode Tianti tianti-deliver behavior on the Harness runtime. */
2
+ import type { LocalCommandResult } from '../../runtime.ts';
3
+ /** Execute the Tianti command grammar in the current invocation.
4
+ * @param args Text following the slash command.
5
+ * @returns Human-readable command output.
6
+ */
7
+ export declare function call(args: string): Promise<LocalCommandResult>;
8
+ //# sourceMappingURL=tianti-deliver.d.ts.map
@@ -0,0 +1,27 @@
1
+ /** Deployment configuration for the Tianti integration. */
2
+ import z from '@deepseek-ai/schemastery';
3
+ /** Tianti endpoints, switches, and bounded execution settings. */
4
+ export interface Config {
5
+ /** Enable Tianti resource commands without contacting the platform at boot. */
6
+ enabled: boolean;
7
+ /** Allow execution of human-approved external write reviews. */
8
+ enableWriteActions: boolean;
9
+ /** Publish model-facing Tianti query and review-proposal tools. */
10
+ enableModelTools: boolean;
11
+ /** Tianti DevOps origin; HTTPS except for loopback test deployments. */
12
+ baseUrl: string;
13
+ /** CVP API base URL serving the LCDP appid/appsecret configuration. */
14
+ cvpApiBaseUrl: string;
15
+ /** ChatCode home override for Tianti state; empty uses the shared home resolver. */
16
+ dataDir: string;
17
+ /** Deadline in milliseconds for each HTTP request and its response body. */
18
+ requestTimeoutMs: number;
19
+ /** Maximum milliseconds for a delivery validation command. */
20
+ validationTimeoutMs: number;
21
+ /** Delay in milliseconds between renewed business-session attempts. */
22
+ businessAuthRetryDelaysMs: number[];
23
+ /** Produce reviewable memory suggestions after task closure. */
24
+ suggestAfterDelivery: boolean;
25
+ }
26
+ export declare const Config: z<Config>;
27
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1,12 @@
1
+ /** Tianti commands and tools contributed through the existing Harness registries. */
2
+ import type { Context } from '@deepseek-ai/cordis';
3
+ import { Config } from './config.ts';
4
+ export { Config };
5
+ export declare const name = "tianti";
6
+ export declare const inject: string[];
7
+ /** Register migrated commands without changing the agent loop or existing model providers.
8
+ * @param ctx Harness command and tool registries.
9
+ * @param config Deployment endpoints, switches, and timeouts.
10
+ */
11
+ export declare function apply(ctx: Context, config: Config): void;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,10 @@
1
+ /** Settings consumed by the original delivery suggestion generator. */
2
+ export interface ChatCodeMemoryConfig {
3
+ enabled: boolean;
4
+ suggestAfterDelivery: boolean;
5
+ defaultScope: 'user' | 'project' | 'local';
6
+ }
7
+ /** Resolve chat code memory config for Tianti operations.
8
+ * @returns The deployment's opt-in suggestion policy. */
9
+ export declare function resolveChatCodeMemoryConfig(): ChatCodeMemoryConfig;
10
+ //# sourceMappingURL=memory-config.d.ts.map
@@ -0,0 +1,105 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ import type { Agent } from '@deepseek-ai/dsh-agent';
3
+ import type { TiantiClient } from './services/tianti/client.ts';
4
+ import type { TiantiSettings, TiantiAuthState } from './services/tianti/types.ts';
5
+ import type { Config } from './config.ts';
6
+ /** Original local-command result, converted at the Harness command registration. */
7
+ export interface LocalCommandResult {
8
+ type: 'text';
9
+ value: string;
10
+ }
11
+ /** Only the Tianti section is read by the migrated commands. */
12
+ export interface SettingsJson {
13
+ tianti?: (TiantiSettings) | undefined;
14
+ }
15
+ interface Switches {
16
+ enabled?: (boolean) | undefined;
17
+ enableWriteActions?: (boolean) | undefined;
18
+ }
19
+ /** Runtime owned by one mounted plugin; it never changes model configuration. */
20
+ export declare class TiantiRuntime {
21
+ readonly ctx: Context;
22
+ readonly config: Config;
23
+ /** Home for Tianti operations.
24
+ */
25
+ readonly home: string;
26
+ /** Switches path for Tianti operations.
27
+ */
28
+ readonly switchesPath: string;
29
+ /** Switches for Tianti operations.
30
+ */
31
+ switches: Switches;
32
+ /** Auth for Tianti operations.
33
+ */
34
+ readonly auth: Map<string, TiantiAuthState>;
35
+ constructor(ctx: Context, config: Config);
36
+ /** Reload the persisted Tianti switches before an invocation.
37
+ */
38
+ loadSwitches(): Promise<void>;
39
+ /** Read the current shared ChatCode login; reject when login is unavailable.
40
+ * @param signal signal.
41
+ * @returns The token result.
42
+ */
43
+ token(signal: AbortSignal): Promise<string>;
44
+ }
45
+ /** One command or tool operation, including its exact workspace and write authority. */
46
+ export interface TiantiOperation {
47
+ runtime: TiantiRuntime;
48
+ signal: AbortSignal;
49
+ cwd: string;
50
+ agent?: Agent | undefined;
51
+ client?: TiantiClient | undefined;
52
+ writeApproved?: boolean | undefined;
53
+ }
54
+ /** Operation for Tianti operations.
55
+ * @returns The current invocation; using migrated helpers outside an invocation is an error. */
56
+ export declare function operation(): TiantiOperation;
57
+ /** Run a command or tool with independent workspace and cancellation state.
58
+ * @param value Invocation-owned runtime facts.
59
+ * @param task Work performed inside the invocation.
60
+ * @returns The task's settled result.
61
+ */
62
+ export declare function withOperation<T>(value: TiantiOperation, task: () => Promise<T>): Promise<T>;
63
+ /** Working directory for Tianti operations.
64
+ * @returns The receiving Session's workspace, never the Web server's working directory. */
65
+ export declare function workingDirectory(): string;
66
+ /** Get chat code config home dir for Tianti operations.
67
+ * @returns The selected ChatCode home used by the migrated stores. */
68
+ export declare function getChatCodeConfigHomeDir(): string;
69
+ /** Get initial settings for Tianti operations.
70
+ * @returns Current switch values for the migrated command grammar. */
71
+ export declare function getInitialSettings(): SettingsJson;
72
+ /** Persist only Tianti switches; unrelated account and model settings are untouched.
73
+ * @param _source Compatibility name used by the migrated command.
74
+ * @param settings Tianti switch patch.
75
+ * @returns A completed settings write.
76
+ */
77
+ export declare function updateSettingsForSource(_source: string, settings: SettingsJson): Promise<{
78
+ error?: (Error) | undefined;
79
+ }>;
80
+ /** Atomically replace a private JSON document.
81
+ * @param path Destination owned by the Tianti plugin.
82
+ * @param value JSON-serializable document.
83
+ */
84
+ export declare function atomicJsonWrite(path: string, value: object): Promise<void>;
85
+ /** Fetch with the invocation's cancellation and the deployment's request deadline.
86
+ * @param url Tianti or ChatCode URL.
87
+ * @param init HTTP method, headers, and body.
88
+ * @returns The response after its complete body has been buffered under the deadline.
89
+ */
90
+ export declare function requestFetch(url: string, init?: RequestInit): Promise<Response>;
91
+ /** Grant external-write authority only while executing a human-approved review.
92
+ * @param task The reviewed external operation.
93
+ * @returns Its settled result.
94
+ */
95
+ export declare function withWriteApproval<T>(task: () => Promise<T>): Promise<T>;
96
+ /** Reject external writes without both the integration switch and a human-approved review. */
97
+ export declare function assertWriteApproved(): void;
98
+ /** Exclude duplicate approval and rejection across Web and TUI processes.
99
+ * @param id Review id used in the lock name.
100
+ * @param task Operation held until execution and persistence settle.
101
+ * @returns The operation result.
102
+ */
103
+ export declare function withReviewLock<T>(id: string, task: () => Promise<T>): Promise<T>;
104
+ export {};
105
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1,11 @@
1
+ /** Ported ChatCode Tianti tianti behavior on the Harness runtime. */
2
+ export declare const TIANTI_PLATFORM_ALIASES = "\u5929\u68AF\u3001\u7814\u53D1\u5E73\u53F0\u3001\u6570\u667A\u5316\u7814\u53D1\u5E73\u53F0\u3001\u5F00\u53D1\u8005\u95E8\u6237";
3
+ /** Tianti alias search hint for Tianti operations.
4
+ */
5
+ export declare const TIANTI_ALIAS_SEARCH_HINT = "\u5929\u68AF \u7814\u53D1\u5E73\u53F0 \u6570\u667A\u5316\u7814\u53D1\u5E73\u53F0 \u5F00\u53D1\u8005\u95E8\u6237";
6
+ /** Add Chinese platform names to model-facing Tianti discovery text.
7
+ * @param description description.
8
+ * @returns The with tianti aliases result.
9
+ */
10
+ export declare function withTiantiAliases(description: string): string;
11
+ //# sourceMappingURL=aliases.d.ts.map
@@ -0,0 +1,20 @@
1
+ import type { TiantiAuthState, TiantiEnvironment } from './types.ts';
2
+ interface AuthOptions {
3
+ force?: boolean | undefined;
4
+ forceExchange?: boolean | undefined;
5
+ forceChatCodeRefresh?: boolean | undefined;
6
+ environment?: TiantiEnvironment | undefined;
7
+ baseUrl?: string | undefined;
8
+ }
9
+ /** Get tianti auth cache path for Tianti operations.
10
+ * @returns Historical auth-cache location for diagnostics; credentials are cached only in memory. */
11
+ export declare function getTiantiAuthCachePath(): string;
12
+ /** Discard Tianti sessions after account or deployment changes. */
13
+ export declare function clearTiantiAuthCache(): Promise<void>;
14
+ /** Resolve shared login credentials and exchange only when the Tianti session needs renewal.
15
+ * @param options Force a new exchange after an authentication failure.
16
+ * @returns An authenticated Tianti session, bound to the current account and endpoint.
17
+ */
18
+ export declare function ensureTiantiAuth(options?: AuthOptions): Promise<TiantiAuthState>;
19
+ export {};
20
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1,206 @@
1
+ import type { TiantiCurrentProjectContext, TiantiCurrentUserProfile, TiantiGitProjectQuery, TiantiLatestDevelopmentTaskResult, TiantiPipelineQuery, TiantiPipelineRunTarget, TiantiRuntimeConfig, TiantiWorkItem, TiantiWorkItemList, TiantiWorkItemQuery } from './types.ts';
2
+ /** Tianti project selection hint for Tianti operations.
3
+ */
4
+ export declare const TIANTI_PROJECT_SELECTION_HINT = "\u5F53\u524D\u672A\u9009\u62E9\u7814\u53D1\u5E73\u53F0\u9879\u76EE\u3002\u8BF7\u5148\u4F7F\u7528\u81EA\u7136\u8BED\u8A00\u5207\u6362\u9879\u76EE\uFF0C\u6216\u8FD0\u884C /tianti project list \u67E5\u770B\u53EF\u9009\u9879\u76EE\uFF0C\u518D\u8FD0\u884C /tianti project switch <projectId> \u5207\u6362\u5F53\u524D\u9879\u76EE\u3002";
5
+ /** Recognize production environment labels before a pipeline can execute.
6
+ * @param environment environment.
7
+ * @returns The is production pipeline environment result.
8
+ */
9
+ export declare function isProductionPipelineEnvironment(environment?: string): boolean;
10
+ /** Tianti client for Tianti operations.
11
+ */
12
+ export declare class TiantiClient {
13
+ private readonly config;
14
+ private currentUserProfileCache;
15
+ private auth;
16
+ constructor(config?: TiantiRuntimeConfig);
17
+ private getAuth;
18
+ private request;
19
+ /** Get for Tianti operations.
20
+ * @param path path.
21
+ * @param options options.
22
+ * @returns The get result.
23
+ */
24
+ private get;
25
+ /** Post for Tianti operations.
26
+ * @param path path.
27
+ * @param body body.
28
+ * @param options options.
29
+ * @returns The post result.
30
+ */
31
+ private post;
32
+ /** Query all legal types for Tianti operations.
33
+ * @returns The all legal types result.
34
+ */
35
+ queryAllLegalTypes(): Promise<unknown[]>;
36
+ /** Query related projects for Tianti operations.
37
+ * @returns The related projects result.
38
+ */
39
+ queryRelatedProjects(): Promise<unknown[]>;
40
+ /** Query state by item types for Tianti operations.
41
+ * @param itemTypes item types.
42
+ * @returns The state by item types result.
43
+ */
44
+ queryStateByItemTypes(itemTypes: Array<number | string>): Promise<unknown>;
45
+ /** Get project user for Tianti operations.
46
+ * @param projectId project id.
47
+ * @returns The project user result.
48
+ */
49
+ getProjectUser(projectId: string): Promise<unknown>;
50
+ /** Get work item detail for Tianti operations.
51
+ * @param id id.
52
+ * @returns The work item detail result.
53
+ */
54
+ getWorkItemDetail(id: string | number): Promise<Record<string, unknown>>;
55
+ /** Get work item detail safe for Tianti operations.
56
+ * @param itemOrId item or id.
57
+ * @returns The work item detail safe result.
58
+ */
59
+ getWorkItemDetailSafe(itemOrId: TiantiWorkItem | string | number): Promise<{
60
+ detail?: (Record<string, unknown>) | undefined;
61
+ error?: (string) | undefined;
62
+ }>;
63
+ /** Query Tianti work items with the platform’s paging and filter fields.
64
+ * @param params params.
65
+ * @returns The work items result.
66
+ */
67
+ queryWorkItems(params?: TiantiWorkItemQuery): Promise<TiantiWorkItemList>;
68
+ /** Create work item for Tianti operations.
69
+ * @param itemTypeId item type id.
70
+ * @param values values.
71
+ * @returns The work item result.
72
+ */
73
+ createWorkItem(itemTypeId: string | number, values: Record<string, unknown>): Promise<unknown>;
74
+ /** Update a task only inside a human-approved review execution.
75
+ * @param id id.
76
+ * @param values values.
77
+ * @returns The update work item result.
78
+ */
79
+ updateWorkItem(id: string | number, values: Record<string, unknown>): Promise<unknown>;
80
+ /** Transition a task only inside a human-approved review execution.
81
+ * @param id id.
82
+ * @param targetItemState target item state.
83
+ * @returns The change work item state result.
84
+ */
85
+ changeWorkItemState(id: string | number, targetItemState: string | number): Promise<unknown>;
86
+ /** Get current user for Tianti operations.
87
+ * @returns The current user result.
88
+ */
89
+ getCurrentUser(): Promise<Record<string, unknown>>;
90
+ /** Get current user profile for Tianti operations.
91
+ * @returns The current user profile result.
92
+ */
93
+ getCurrentUserProfile(): Promise<TiantiCurrentUserProfile>;
94
+ /** Get latest development task for current user for Tianti operations.
95
+ * @param options options.
96
+ * @returns The latest development task for current user result.
97
+ */
98
+ getLatestDevelopmentTaskForCurrentUser(options?: {
99
+ includeDetail?: (boolean) | undefined;
100
+ }): Promise<TiantiLatestDevelopmentTaskResult>;
101
+ /** Query state list for Tianti operations.
102
+ * @returns The state list result.
103
+ */
104
+ queryStateList(): Promise<unknown>;
105
+ /** Query my projects for Tianti operations.
106
+ * @param appName app name.
107
+ * @returns The my projects result.
108
+ */
109
+ queryMyProjects(appName?: string): Promise<unknown>;
110
+ /** Get current project context for Tianti operations.
111
+ * @returns The current project context result.
112
+ */
113
+ getCurrentProjectContext(): Promise<TiantiCurrentProjectContext>;
114
+ /** Switch project for Tianti operations.
115
+ * @param projectId project id.
116
+ * @returns The switch project result.
117
+ */
118
+ switchProject(projectId: string): Promise<unknown>;
119
+ /** Query git projects for Tianti operations.
120
+ * @param params params.
121
+ * @returns The git projects result.
122
+ */
123
+ queryGitProjects(params?: TiantiGitProjectQuery): Promise<unknown>;
124
+ /** Get git project info for Tianti operations.
125
+ * @param gitId git id.
126
+ * @returns The git project info result.
127
+ */
128
+ getGitProjectInfo(gitId: string | number): Promise<unknown>;
129
+ /** List git branches for Tianti operations.
130
+ * @param gitId git id.
131
+ * @param options options.
132
+ * @returns The git branches result.
133
+ */
134
+ listGitBranches(gitId: string | number, options?: {
135
+ page?: (number) | undefined;
136
+ pageSize?: (number) | undefined;
137
+ sort?: (string) | undefined;
138
+ }): Promise<unknown>;
139
+ /** Search merge requests for Tianti operations.
140
+ * @param params params.
141
+ * @returns The search merge requests result.
142
+ */
143
+ searchMergeRequests(params?: {
144
+ state?: (string) | undefined;
145
+ isMe?: (string) | undefined;
146
+ findTime?: (string) | undefined;
147
+ content?: (string) | undefined;
148
+ }): Promise<unknown>;
149
+ /** Submit merge request for Tianti operations.
150
+ * @param data data.
151
+ * @returns The submit merge request result.
152
+ */
153
+ submitMergeRequest(data: Record<string, unknown>): Promise<unknown>;
154
+ /** Review merge request for Tianti operations.
155
+ * @param data data.
156
+ * @returns The review merge request result.
157
+ */
158
+ reviewMergeRequest(data: Record<string, unknown>): Promise<unknown>;
159
+ /** Query pipelines for Tianti operations.
160
+ * @param params params.
161
+ * @returns The pipelines result.
162
+ */
163
+ queryPipelines(params?: TiantiPipelineQuery): Promise<unknown>;
164
+ /** Get pipeline log for Tianti operations.
165
+ * @param id id.
166
+ * @param buildNum build num.
167
+ * @returns The pipeline log result.
168
+ */
169
+ getPipelineLog(id: string, buildNum?: number | string): Promise<unknown>;
170
+ /** Get jenkins env list for Tianti operations.
171
+ * @returns The jenkins env list result.
172
+ */
173
+ getJenkinsEnvList(): Promise<unknown>;
174
+ /** Get pipeline detail for Tianti operations.
175
+ * @param id id.
176
+ * @param isExecute is execute.
177
+ * @returns The pipeline detail result.
178
+ */
179
+ getPipelineDetail(id: string, isExecute?: boolean): Promise<unknown>;
180
+ /** Get pipeline branches for Tianti operations.
181
+ * @param id id.
182
+ * @returns The pipeline branches result.
183
+ */
184
+ getPipelineBranches(id: string): Promise<unknown>;
185
+ /** Resolve pipeline run id for Tianti operations.
186
+ * @param target target.
187
+ * @returns The resolve pipeline run id result.
188
+ */
189
+ resolvePipelineRunId(target: TiantiPipelineRunTarget): Promise<string>;
190
+ /** Execute a reviewed pipeline after rejecting production environments.
191
+ * @param data data.
192
+ * @returns The execute pipeline result.
193
+ */
194
+ executePipeline(data: unknown): Promise<unknown>;
195
+ private assertPipelineExecutionAllowed;
196
+ /** Resolve pipeline details, apply a branch override, and execute a reviewed non-production pipeline.
197
+ * @param target target.
198
+ * @returns The run pipeline result.
199
+ */
200
+ runPipeline(target: TiantiPipelineRunTarget): Promise<unknown>;
201
+ }
202
+ /** Reuse the current invocation’s authenticated Tianti client.
203
+ * @returns The tianti client result.
204
+ */
205
+ export declare function createTiantiClient(): TiantiClient;
206
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1,20 @@
1
+ import type { TiantiRuntimeConfig } from './types.ts';
2
+ /** Tianti write actions disabled message for Tianti operations.
3
+ */
4
+ export declare const TIANTI_WRITE_ACTIONS_DISABLED_MESSAGE = "\u7814\u53D1\u5E73\u53F0\u5199\u64CD\u4F5C\u5F53\u524D\u672A\u5F00\u542F\u3002\u4F60\u4ECD\u53EF\u4EE5\u521B\u5EFA\u548C\u62D2\u7EDD\u5BA1\u6838\u9879\uFF0C\u4F46\u4E0D\u80FD\u6267\u884C\u5DF2\u5BA1\u6838\u7684\u5916\u90E8\u5199\u64CD\u4F5C\uFF1B\u786E\u8BA4\u65E0\u8BEF\u540E\u8FD0\u884C /tianti writes on\uFF0C\u518D\u4F7F\u7528 /tianti approve <reviewId> --execute\u3002";
5
+ /** Tianti write actions enabled message for Tianti operations.
6
+ */
7
+ export declare const TIANTI_WRITE_ACTIONS_ENABLED_MESSAGE = "\u7814\u53D1\u5E73\u53F0\u5199\u64CD\u4F5C\u6267\u884C\u6743\u9650\u5DF2\u5F00\u542F\u3002\u6240\u6709\u5916\u90E8\u5199\u64CD\u4F5C\u4ECD\u5FC5\u987B\u5148\u751F\u6210\u5BA1\u6838\u9879\uFF0C\u5E76\u901A\u8FC7 /tianti approve <reviewId> --execute \u660E\u786E\u6279\u51C6\u540E\u624D\u4F1A\u6267\u884C\u3002";
8
+ /** Get tianti runtime config for Tianti operations.
9
+ * @returns The invocation's configured endpoints and current integration switches. */
10
+ export declare function getTiantiRuntimeConfig(): TiantiRuntimeConfig;
11
+ /** Is tianti enabled for Tianti operations.
12
+ * @returns Whether Tianti resource operations are enabled. */
13
+ export declare function isTiantiEnabled(): boolean;
14
+ /** Is tianti model tools enabled for Tianti operations.
15
+ * @returns Whether model-facing Tianti queries are enabled. */
16
+ export declare function isTiantiModelToolsEnabled(): boolean;
17
+ /** Is tianti write actions enabled for Tianti operations.
18
+ * @returns Whether human-approved Tianti external writes may execute. */
19
+ export declare function isTiantiWriteActionsEnabled(): boolean;
20
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1,6 @@
1
+ /** Ported ChatCode Tianti tianti behavior on the Harness runtime. */
2
+ export { clearTiantiAuthCache, ensureTiantiAuth, getTiantiAuthCachePath } from './auth.ts';
3
+ export { getTiantiRuntimeConfig, isTiantiEnabled, isTiantiModelToolsEnabled, isTiantiWriteActionsEnabled, TIANTI_WRITE_ACTIONS_DISABLED_MESSAGE, TIANTI_WRITE_ACTIONS_ENABLED_MESSAGE, } from './config.ts';
4
+ export { createTiantiClient, isProductionPipelineEnvironment, TiantiClient, TIANTI_PROJECT_SELECTION_HINT, } from './client.ts';
5
+ export type { TiantiCurrentProjectContext, TiantiCurrentUserProfile, TiantiEnvironment, TiantiGitProjectQuery, TiantiLatestDevelopmentTaskResult, TiantiPipelineQuery, TiantiRuntimeConfig, TiantiSettings, TiantiWorkItemList, TiantiWorkItemQuery, } from './types.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,16 @@
1
+ /** Hash credentials for internal request diagnostics.
2
+ * @param value Credential to summarize.
3
+ * @returns A short one-way digest, or undefined for an absent value.
4
+ */
5
+ export declare function hashForLog(value: string | undefined): string | undefined;
6
+ /** Keep legacy authentication tracing disabled; it carries no user-visible facts.
7
+ * @param _event Original tracing event.
8
+ * @param _details Original tracing fields.
9
+ */
10
+ export declare function logTiantiAuth(_event: string, _details?: Record<string, unknown>): Promise<void>;
11
+ /** Log only the operation name; durable command/tool events retain the result.
12
+ * @param event External operation name.
13
+ * @param _details Legacy audit fields that may contain platform data.
14
+ */
15
+ export declare function logTiantiAudit(event: string, _details?: Record<string, unknown>): Promise<void>;
16
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1,136 @@
1
+ /** Ported ChatCode Tianti tianti behavior on the Harness runtime. */
2
+ export type TiantiEnvironment = 'prod' | 'test';
3
+ /** Tianti settings for Tianti operations.
4
+ */
5
+ export type TiantiSettings = {
6
+ enabled?: (boolean) | undefined;
7
+ enableModelTools?: (boolean) | undefined;
8
+ enableWriteActions?: (boolean) | undefined;
9
+ environment?: (TiantiEnvironment) | undefined;
10
+ baseUrl?: (string) | undefined;
11
+ chatCodeApiBaseUrl?: (string) | undefined;
12
+ };
13
+ /** Tianti runtime config for Tianti operations.
14
+ */
15
+ export type TiantiRuntimeConfig = {
16
+ enabled: boolean;
17
+ enableModelTools: boolean;
18
+ enableWriteActions: boolean;
19
+ environment: TiantiEnvironment;
20
+ baseUrl?: string | undefined;
21
+ chatCodeApiBaseUrl?: string | undefined;
22
+ };
23
+ /** Tianti auth state for Tianti operations.
24
+ */
25
+ export type TiantiAuthState = {
26
+ accessToken: string;
27
+ sessionId: string;
28
+ cookie?: (string) | undefined;
29
+ expiresAt?: (number | null) | undefined;
30
+ devopsBaseUrl?: (string) | undefined;
31
+ identityHash?: (string) | undefined;
32
+ source?: (string) | undefined;
33
+ };
34
+ /** Chat code identity for Tianti operations.
35
+ */
36
+ export type ChatCodeIdentity = {
37
+ accessToken: string;
38
+ source: 'secure-storage';
39
+ expiresAt?: (number | null) | undefined;
40
+ userName?: (string) | undefined;
41
+ longToken?: (string) | undefined;
42
+ };
43
+ /** Tianti work item query for Tianti operations.
44
+ */
45
+ export type TiantiWorkItemQuery = {
46
+ pageNo?: (number) | undefined;
47
+ pageSize?: (number) | undefined;
48
+ itemType?: (number | string | Array<number | string>) | undefined;
49
+ itemState?: (number | string) | undefined;
50
+ projectId?: (string) | undefined;
51
+ title?: (string) | undefined;
52
+ creator?: (string) | undefined;
53
+ responsible?: (string) | undefined;
54
+ createTimeRange?: (string[]) | undefined;
55
+ };
56
+ /** Tianti work item for Tianti operations.
57
+ */
58
+ export type TiantiWorkItem = Record<string, unknown>;
59
+ /** Tianti current user profile for Tianti operations.
60
+ */
61
+ export type TiantiCurrentUserProfile = {
62
+ id?: (string) | undefined;
63
+ loginName?: (string) | undefined;
64
+ name?: (string) | undefined;
65
+ email?: (string) | undefined;
66
+ jobNumber?: (string) | undefined;
67
+ userName?: (string) | undefined;
68
+ companyName?: (string) | undefined;
69
+ officeName?: (string) | undefined;
70
+ mobile?: (string) | undefined;
71
+ };
72
+ /** Tianti current project context for Tianti operations.
73
+ */
74
+ export type TiantiCurrentProjectContext = {
75
+ hasProject: boolean;
76
+ projectId?: (string) | undefined;
77
+ projectName?: (string) | undefined;
78
+ user?: (Record<string, unknown>) | undefined;
79
+ project?: (Record<string, unknown>) | undefined;
80
+ hint?: (string) | undefined;
81
+ };
82
+ /** Tianti latest development task result for Tianti operations.
83
+ */
84
+ export type TiantiLatestDevelopmentTaskResult = {
85
+ user: TiantiCurrentUserProfile;
86
+ query: TiantiWorkItemQuery;
87
+ item: TiantiWorkItem | null;
88
+ detail?: (Record<string, unknown>) | undefined;
89
+ detailError?: (string) | undefined;
90
+ count?: (number) | undefined;
91
+ };
92
+ /** Tianti work item list for Tianti operations.
93
+ */
94
+ export type TiantiWorkItemList = {
95
+ list?: (TiantiWorkItem[]) | undefined;
96
+ records?: (TiantiWorkItem[]) | undefined;
97
+ total?: (number) | undefined;
98
+ count?: (number) | undefined;
99
+ pageNo?: (number) | undefined;
100
+ pageSize?: (number) | undefined;
101
+ [key: string]: unknown;
102
+ };
103
+ /** Tianti git project query for Tianti operations.
104
+ */
105
+ export type TiantiGitProjectQuery = {
106
+ page?: (number) | undefined;
107
+ pageSize?: (number) | undefined;
108
+ name?: (string) | undefined;
109
+ gitGroupIds?: (Array<string | number>) | undefined;
110
+ };
111
+ /** Tianti pipeline query for Tianti operations.
112
+ */
113
+ export type TiantiPipelineQuery = {
114
+ page?: (number) | undefined;
115
+ size?: (number) | undefined;
116
+ name?: (string) | undefined;
117
+ env?: (number | string | null) | undefined;
118
+ status?: (string) | undefined;
119
+ };
120
+ /** Tianti pipeline run target for Tianti operations.
121
+ */
122
+ export type TiantiPipelineRunTarget = string | {
123
+ id?: (string) | undefined;
124
+ name?: (string) | undefined;
125
+ env?: (number | string | null) | undefined;
126
+ branch?: (string) | undefined;
127
+ };
128
+ /** Tianti request options for Tianti operations.
129
+ */
130
+ export type TiantiRequestOptions = {
131
+ retryOnAuthFailure?: (boolean) | undefined;
132
+ auditAction?: (string) | undefined;
133
+ allowNonStandardSuccess?: (boolean) | undefined;
134
+ unwrapResponseData?: (boolean) | undefined;
135
+ };
136
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,19 @@
1
+ import type { DevelopmentCodebaseContext, DevelopmentWorkItem } from './types.ts';
2
+ type CollectCodebaseContextInput = {
3
+ cwd?: (string) | undefined;
4
+ workItem: DevelopmentWorkItem;
5
+ currentBranch?: (string) | undefined;
6
+ repositoryName?: (string) | undefined;
7
+ repositoryPath?: (string) | undefined;
8
+ remoteUrl?: (string) | undefined;
9
+ taskBranch?: (string) | undefined;
10
+ taskRepository?: (string) | undefined;
11
+ now?: (Date) | undefined;
12
+ };
13
+ /** Collect codebase context for Tianti delivery.
14
+ * @param input input.
15
+ * @returns The collect codebase context result.
16
+ */
17
+ export declare function collectCodebaseContext(input: CollectCodebaseContextInput): Promise<DevelopmentCodebaseContext>;
18
+ export {};
19
+ //# sourceMappingURL=codebase.d.ts.map
@@ -0,0 +1,10 @@
1
+ import type { DevelopmentDynamicWorkflow, DevelopmentRun } from './types.ts';
2
+ /** Build dynamic workflow for Tianti delivery.
3
+ * @param input input.
4
+ * @returns The dynamic workflow result.
5
+ */
6
+ export declare function buildDynamicWorkflow(input: {
7
+ run: DevelopmentRun;
8
+ now?: (Date) | undefined;
9
+ }): DevelopmentDynamicWorkflow;
10
+ //# sourceMappingURL=dynamicWorkflow.d.ts.map