@treasuredata/tdx 2026.10.0 → 2026.10.2

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 (329) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/agent-command.js +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/cas-command.js +1 -1
  15. package/dist/commands/cas-journey-command.js +1 -1
  16. package/dist/commands/cas-segment-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.d.ts.map +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/claude-command.js.map +1 -1
  21. package/dist/commands/claude-statusline-command.d.ts.map +1 -1
  22. package/dist/commands/claude-statusline-command.js +1 -1
  23. package/dist/commands/claude-statusline-command.js.map +1 -1
  24. package/dist/commands/codex-command.d.ts.map +1 -1
  25. package/dist/commands/codex-command.js +1 -1
  26. package/dist/commands/codex-command.js.map +1 -1
  27. package/dist/commands/command.js +1 -1
  28. package/dist/commands/connection-command.js +1 -1
  29. package/dist/commands/databases.js +1 -1
  30. package/dist/commands/delivery-command.js +1 -1
  31. package/dist/commands/describe.js +1 -1
  32. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  33. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  34. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  35. package/dist/commands/engage-campaign-pull-command.js +1 -1
  36. package/dist/commands/engage-campaign-push-command.js +1 -1
  37. package/dist/commands/engage-campaign-readiness-command.js +1 -1
  38. package/dist/commands/engage-campaign-validate-command.js +1 -1
  39. package/dist/commands/engage-command.js +1 -1
  40. package/dist/commands/engage-in-browser-message-command.js +1 -1
  41. package/dist/commands/engage-landing-page-command.js +1 -1
  42. package/dist/commands/engage-template-pull-command.js +1 -1
  43. package/dist/commands/engage-template-push-command.js +1 -1
  44. package/dist/commands/engage-template-validate-command.js +1 -1
  45. package/dist/commands/engage-workspace-assignment-command.js +1 -1
  46. package/dist/commands/job-command.js +1 -1
  47. package/dist/commands/journey-command.js +1 -1
  48. package/dist/commands/journey-validate-command.js +1 -1
  49. package/dist/commands/llm-command.js +1 -1
  50. package/dist/commands/mcp-command.js +1 -1
  51. package/dist/commands/opencode-command.d.ts +10 -3
  52. package/dist/commands/opencode-command.d.ts.map +1 -1
  53. package/dist/commands/opencode-command.js +1 -1
  54. package/dist/commands/opencode-command.js.map +1 -1
  55. package/dist/commands/p13n-command.js +1 -1
  56. package/dist/commands/parent-segment-command.js +1 -1
  57. package/dist/commands/policy-command.js +1 -1
  58. package/dist/commands/profile-command.js +1 -1
  59. package/dist/commands/profiles-command.d.ts.map +1 -1
  60. package/dist/commands/profiles-command.js +1 -1
  61. package/dist/commands/profiles-command.js.map +1 -1
  62. package/dist/commands/query-command.js +1 -1
  63. package/dist/commands/schedule-command.js +1 -1
  64. package/dist/commands/segment-command.js +1 -1
  65. package/dist/commands/segment-create-command.js +1 -1
  66. package/dist/commands/segment-fields-command.js +1 -1
  67. package/dist/commands/segment-move-command.js +1 -1
  68. package/dist/commands/segment-pull-command.js +1 -1
  69. package/dist/commands/segment-push-command.js +1 -1
  70. package/dist/commands/segment-update-command.js +1 -1
  71. package/dist/commands/segment-use-command.js +1 -1
  72. package/dist/commands/segment-validate-command.js +1 -1
  73. package/dist/commands/segments.js +1 -1
  74. package/dist/commands/show.js +1 -1
  75. package/dist/commands/status-command.js +1 -1
  76. package/dist/commands/table-deleted.js +1 -1
  77. package/dist/commands/tables.js +1 -1
  78. package/dist/commands/unset-command.js +1 -1
  79. package/dist/commands/upgrade-command.d.ts +8 -0
  80. package/dist/commands/upgrade-command.d.ts.map +1 -1
  81. package/dist/commands/upgrade-command.js +1 -1
  82. package/dist/commands/upgrade-command.js.map +1 -1
  83. package/dist/commands/usage-command.d.ts +10 -0
  84. package/dist/commands/usage-command.d.ts.map +1 -0
  85. package/dist/commands/usage-command.js +1 -0
  86. package/dist/commands/usage-command.js.map +1 -0
  87. package/dist/commands/use-command.js +1 -1
  88. package/dist/commands/user-command.js +1 -1
  89. package/dist/commands/work-command.js +1 -1
  90. package/dist/commands/workflow-command.js +1 -1
  91. package/dist/core/auth.js +1 -1
  92. package/dist/core/command-output.js +1 -1
  93. package/dist/core/config.d.ts +2 -1
  94. package/dist/core/config.d.ts.map +1 -1
  95. package/dist/core/config.js +1 -1
  96. package/dist/core/config.js.map +1 -1
  97. package/dist/core/connection-cache.js +1 -1
  98. package/dist/core/constants.js +1 -1
  99. package/dist/core/credential-cache.js +1 -1
  100. package/dist/core/global-context.js +1 -1
  101. package/dist/core/keychain.js +1 -1
  102. package/dist/core/oauth-keychain.js +1 -1
  103. package/dist/core/oauth.js +1 -1
  104. package/dist/core/profile.d.ts +1 -0
  105. package/dist/core/profile.d.ts.map +1 -1
  106. package/dist/core/profile.js +1 -1
  107. package/dist/core/profile.js.map +1 -1
  108. package/dist/core/project-config.js +1 -1
  109. package/dist/core/session.js +1 -1
  110. package/dist/core/site-mismatch.js +1 -1
  111. package/dist/core/user-cache.js +1 -1
  112. package/dist/core/version.js +1 -1
  113. package/dist/index.js +1 -1
  114. package/dist/mcp/server.js +1 -1
  115. package/dist/mcp/tools/index.js +1 -1
  116. package/dist/mcp/tools/tdx-run.js +1 -1
  117. package/dist/mcp/tools/tdx-search.js +1 -1
  118. package/dist/mcp/tools/work-create-item.js +1 -1
  119. package/dist/mcp/utils.js +1 -1
  120. package/dist/proxy/claude-usage-tracker.d.ts +5 -4
  121. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  122. package/dist/proxy/claude-usage-tracker.js +1 -1
  123. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  124. package/dist/proxy/passthrough-server.js +1 -1
  125. package/dist/proxy/sse-usage-parser.js +1 -1
  126. package/dist/sdk/agent/agent-config.js +1 -1
  127. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  128. package/dist/sdk/agent/agent-yaml.js +1 -1
  129. package/dist/sdk/agent/test/evaluator.js +1 -1
  130. package/dist/sdk/agent/test/executor.js +1 -1
  131. package/dist/sdk/agent/test/index.js +1 -1
  132. package/dist/sdk/agent/test/output.js +1 -1
  133. package/dist/sdk/agent/test/parser.js +1 -1
  134. package/dist/sdk/agent/tool-target-registry.js +1 -1
  135. package/dist/sdk/api.js +1 -1
  136. package/dist/sdk/auth-token.js +1 -1
  137. package/dist/sdk/cas/audience-context.js +1 -1
  138. package/dist/sdk/cas/cas-api-client.js +1 -1
  139. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  140. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  141. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  142. package/dist/sdk/cas/cas-segment-schema.js +1 -1
  143. package/dist/sdk/cas/cas-segment-validator.js +1 -1
  144. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  145. package/dist/sdk/cas/index.js +1 -1
  146. package/dist/sdk/cas/pull-workflow.js +1 -1
  147. package/dist/sdk/cas/push-workflow.js +1 -1
  148. package/dist/sdk/cas/validate-files.js +1 -1
  149. package/dist/sdk/client/cdp-api-client.js +1 -1
  150. package/dist/sdk/client/delivery-api-client.js +1 -1
  151. package/dist/sdk/client/endpoints.js +1 -1
  152. package/dist/sdk/client/engage-api-client.js +1 -1
  153. package/dist/sdk/client/http-client.js +1 -1
  154. package/dist/sdk/client/llm-api-client.js +1 -1
  155. package/dist/sdk/client/oauth-refresh.js +1 -1
  156. package/dist/sdk/client/p13n-studio-api-client.js +1 -1
  157. package/dist/sdk/client/rate-limiter.js +1 -1
  158. package/dist/sdk/client/td-api-client.js +1 -1
  159. package/dist/sdk/client/trino-api-client.js +1 -1
  160. package/dist/sdk/client/workflow-client.js +1 -1
  161. package/dist/sdk/connection-validator.js +1 -1
  162. package/dist/sdk/connection.js +1 -1
  163. package/dist/sdk/delivery.js +1 -1
  164. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  165. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  166. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  167. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  168. package/dist/sdk/engage/campaign-pull.js +1 -1
  169. package/dist/sdk/engage/campaign-push.js +1 -1
  170. package/dist/sdk/engage/campaign-readiness-workflow.js +1 -1
  171. package/dist/sdk/engage/campaign-readiness.js +1 -1
  172. package/dist/sdk/engage/campaign-validator.js +1 -1
  173. package/dist/sdk/engage/campaign-yaml.js +1 -1
  174. package/dist/sdk/engage/in-browser-message-pull.js +1 -1
  175. package/dist/sdk/engage/in-browser-message-push.js +1 -1
  176. package/dist/sdk/engage/in-browser-message-validator.js +1 -1
  177. package/dist/sdk/engage/in-browser-message-yaml.js +1 -1
  178. package/dist/sdk/engage/landing-page-init.js +1 -1
  179. package/dist/sdk/engage/landing-page-public-asset.js +1 -1
  180. package/dist/sdk/engage/landing-page-pull.js +1 -1
  181. package/dist/sdk/engage/landing-page-push.js +1 -1
  182. package/dist/sdk/engage/landing-page-static-site.js +1 -1
  183. package/dist/sdk/engage/landing-page-validator.js +1 -1
  184. package/dist/sdk/engage/landing-page-workspace.js +1 -1
  185. package/dist/sdk/engage/landing-page-yaml.js +1 -1
  186. package/dist/sdk/engage/list-campaign-schema.js +1 -1
  187. package/dist/sdk/engage/list-campaign-yaml.js +1 -1
  188. package/dist/sdk/engage/template-pull.js +1 -1
  189. package/dist/sdk/engage/template-push.js +1 -1
  190. package/dist/sdk/engage/template-validator.js +1 -1
  191. package/dist/sdk/engage/template-yaml.js +1 -1
  192. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  193. package/dist/sdk/engage/types/campaign-def.js +1 -1
  194. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  195. package/dist/sdk/engage/types/in-browser-message-schema.js +1 -1
  196. package/dist/sdk/engage/types/landing-page-schema.js +1 -1
  197. package/dist/sdk/engage/types/template-schema.js +1 -1
  198. package/dist/sdk/engage/workspace-assignments.js +1 -1
  199. package/dist/sdk/engage.js +1 -1
  200. package/dist/sdk/errors.js +1 -1
  201. package/dist/sdk/index.js +1 -1
  202. package/dist/sdk/io/index.js +1 -1
  203. package/dist/sdk/io/node-filesystem.js +1 -1
  204. package/dist/sdk/job.js +1 -1
  205. package/dist/sdk/journey.js +1 -1
  206. package/dist/sdk/llm/chat-cache.js +1 -1
  207. package/dist/sdk/llm/codex-usage.d.ts +13 -0
  208. package/dist/sdk/llm/codex-usage.d.ts.map +1 -0
  209. package/dist/sdk/llm/codex-usage.js +1 -0
  210. package/dist/sdk/llm/codex-usage.js.map +1 -0
  211. package/dist/sdk/llm/index.js +1 -1
  212. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  213. package/dist/sdk/llm/model-factors.js +1 -1
  214. package/dist/sdk/llm/user-settings.js +1 -1
  215. package/dist/sdk/llm/work-models.d.ts +52 -0
  216. package/dist/sdk/llm/work-models.d.ts.map +1 -0
  217. package/dist/sdk/llm/work-models.js +1 -0
  218. package/dist/sdk/llm/work-models.js.map +1 -0
  219. package/dist/sdk/p13n-studio-errors.js +1 -1
  220. package/dist/sdk/p13n-studio.js +1 -1
  221. package/dist/sdk/personalization.js +1 -1
  222. package/dist/sdk/policy.js +1 -1
  223. package/dist/sdk/query/deleted-table-validation.js +1 -1
  224. package/dist/sdk/query/index.js +1 -1
  225. package/dist/sdk/query/sql-parser.js +1 -1
  226. package/dist/sdk/realtime.js +1 -1
  227. package/dist/sdk/schedule.js +1 -1
  228. package/dist/sdk/segment/audience-context.js +1 -1
  229. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  230. package/dist/sdk/segment/fields-display.js +1 -1
  231. package/dist/sdk/segment/file-discovery.js +1 -1
  232. package/dist/sdk/segment/journey-utils.js +1 -1
  233. package/dist/sdk/segment/journey-validator.js +1 -1
  234. package/dist/sdk/segment/journey-yaml.js +1 -1
  235. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  236. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  237. package/dist/sdk/segment/pull-workflow.js +1 -1
  238. package/dist/sdk/segment/push-recovery.js +1 -1
  239. package/dist/sdk/segment/push-workflow.js +1 -1
  240. package/dist/sdk/segment/resolution-context.js +1 -1
  241. package/dist/sdk/segment/segment-path-parser.js +1 -1
  242. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  243. package/dist/sdk/segment/segment-validator.js +1 -1
  244. package/dist/sdk/segment/target-resolution.js +1 -1
  245. package/dist/sdk/segment/tdx-config.js +1 -1
  246. package/dist/sdk/segment/types/activation-schema.js +1 -1
  247. package/dist/sdk/segment/types/journey-def.js +1 -1
  248. package/dist/sdk/segment/types/journey-schema.js +1 -1
  249. package/dist/sdk/segment/types/segment-def.js +1 -1
  250. package/dist/sdk/segment/types/segment-schema.js +1 -1
  251. package/dist/sdk/segment/validate-files.js +1 -1
  252. package/dist/sdk/segment/yaml-validator.js +1 -1
  253. package/dist/sdk/segment.js +1 -1
  254. package/dist/sdk/types/index.js +1 -1
  255. package/dist/sdk/types/progress.js +1 -1
  256. package/dist/sdk/types/workspace.js +1 -1
  257. package/dist/sdk/user.js +1 -1
  258. package/dist/sdk/util/format-detector.js +1 -1
  259. package/dist/sdk/util/formatters.js +1 -1
  260. package/dist/sdk/util/index.js +1 -1
  261. package/dist/sdk/util/paginate.js +1 -1
  262. package/dist/sdk/util/tree-formatter.js +1 -1
  263. package/dist/sdk/util/tree-search.js +1 -1
  264. package/dist/sdk/workflow/archive-validation.js +1 -1
  265. package/dist/sdk/workflow/clone-workflow.js +1 -1
  266. package/dist/sdk/workflow/index.js +1 -1
  267. package/dist/sdk/workflow/pull-workflow.js +1 -1
  268. package/dist/sdk/workflow/push-workflow.js +1 -1
  269. package/dist/sdk/workflow/task-graph.js +1 -1
  270. package/dist/sdk/workflow/tdx-config.js +1 -1
  271. package/dist/sdk/workflow/workflow-utils.js +1 -1
  272. package/dist/sdk/workspace/access-tracker.js +1 -1
  273. package/dist/sdk/workspace/frontmatter.js +1 -1
  274. package/dist/sdk/workspace/git.js +1 -1
  275. package/dist/sdk/workspace/index.js +1 -1
  276. package/dist/sdk/workspace/templates.js +1 -1
  277. package/dist/sdk/workspace/weekly.js +1 -1
  278. package/dist/sdk/workspace/wikilinks.js +1 -1
  279. package/dist/test-utils/command-runner.js +1 -1
  280. package/dist/test-utils/factories.js +1 -1
  281. package/dist/test-utils/fixtures.js +1 -1
  282. package/dist/test-utils/http-mock.js +1 -1
  283. package/dist/test-utils/index.js +1 -1
  284. package/dist/utils/async.js +1 -1
  285. package/dist/utils/claude-code-state.js +1 -1
  286. package/dist/utils/colors.js +1 -1
  287. package/dist/utils/diff.js +1 -1
  288. package/dist/utils/file-permissions.js +1 -1
  289. package/dist/utils/file-reader.js +1 -1
  290. package/dist/utils/github-releases.js +1 -1
  291. package/dist/utils/global-cache.js +1 -1
  292. package/dist/utils/json-loader.js +1 -1
  293. package/dist/utils/local-cache.js +1 -1
  294. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  295. package/dist/utils/logger/formatters/index.js +1 -1
  296. package/dist/utils/logger/handlers/console-handler.js +1 -1
  297. package/dist/utils/logger/handlers/file-handler.js +1 -1
  298. package/dist/utils/logger/handlers/index.js +1 -1
  299. package/dist/utils/logger/handlers/null-handler.js +1 -1
  300. package/dist/utils/logger/index.js +1 -1
  301. package/dist/utils/logger/logger.js +1 -1
  302. package/dist/utils/logger/types.js +1 -1
  303. package/dist/utils/option-validation.js +1 -1
  304. package/dist/utils/process.js +1 -1
  305. package/dist/utils/prompt.js +1 -1
  306. package/dist/utils/proxy-fetch.js +1 -1
  307. package/dist/utils/spinner.js +1 -1
  308. package/dist/utils/sse-parser.js +1 -1
  309. package/dist/utils/string-utils.js +1 -1
  310. package/dist/utils/table-ref-parser.js +1 -1
  311. package/dist/utils/td-user.d.ts +3 -0
  312. package/dist/utils/td-user.d.ts.map +1 -0
  313. package/dist/utils/td-user.js +1 -0
  314. package/dist/utils/td-user.js.map +1 -0
  315. package/dist/utils/tdx-logger.js +1 -1
  316. package/dist/utils/version-check.js +1 -1
  317. package/package.json +1 -1
  318. package/dist/commands/ai-usage-command-base.d.ts +0 -26
  319. package/dist/commands/ai-usage-command-base.d.ts.map +0 -1
  320. package/dist/commands/ai-usage-command-base.js +0 -1
  321. package/dist/commands/ai-usage-command-base.js.map +0 -1
  322. package/dist/commands/claude-usage-command.d.ts +0 -19
  323. package/dist/commands/claude-usage-command.d.ts.map +0 -1
  324. package/dist/commands/claude-usage-command.js +0 -1
  325. package/dist/commands/claude-usage-command.js.map +0 -1
  326. package/dist/commands/opencode-usage-command.d.ts +0 -19
  327. package/dist/commands/opencode-usage-command.d.ts.map +0 -1
  328. package/dist/commands/opencode-usage-command.js +0 -1
  329. package/dist/commands/opencode-usage-command.js.map +0 -1
@@ -1 +1 @@
1
- const a67_0x529e31=a67_0x1677;(function(_0x1ec552,_0x3fa1ff){const _0x24168e=a67_0x1677,_0x3c5581=_0x1ec552();while(!![]){try{const _0x35eb55=parseInt(_0x24168e(0x1ba))/0x1+-parseInt(_0x24168e(0x1ae))/0x2+-parseInt(_0x24168e(0x1c2))/0x3+parseInt(_0x24168e(0x1c8))/0x4+parseInt(_0x24168e(0x1b6))/0x5+-parseInt(_0x24168e(0x1bb))/0x6*(parseInt(_0x24168e(0x1b7))/0x7)+parseInt(_0x24168e(0x1c3))/0x8;if(_0x35eb55===_0x3fa1ff)break;else _0x3c5581['push'](_0x3c5581['shift']());}catch(_0x179365){_0x3c5581['push'](_0x3c5581['shift']());}}}(a67_0x92c5,0x19354));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput,handleSingleObjectOutput,isStructuredFormat}from'../core/command-output.js';function a67_0x1677(_0x47aabd,_0x48c29d){_0x47aabd=_0x47aabd-0x1a4;const _0x92c54c=a67_0x92c5();let _0x167740=_0x92c54c[_0x47aabd];return _0x167740;}import{withSpinner}from'../utils/spinner.js';import a67_0x420ea2 from'chalk';export class UserCommand extends BaseCommand{[a67_0x529e31(0x1c1)]='user';[a67_0x529e31(0x1bd)]=a67_0x529e31(0x1c7);async[a67_0x529e31(0x1c6)](_0xa37e9c){const _0x515d1f=a67_0x529e31,{options:_0x1f176b,tdx:_0xbc61d5}=_0xa37e9c;try{const _0x458a3c=await withSpinner('Fetching\x20user\x20info...',()=>_0xbc61d5[_0x515d1f(0x1b4)][_0x515d1f(0x1b8)](),{'verbose':_0x1f176b[_0x515d1f(0x1a9)]}),_0x302cf4=_0x458a3c[_0x515d1f(0x1bc)];return await handleSingleObjectOutput(_0x302cf4,_0x1f176b),0x0;}catch(_0x6d38d){if(_0x6d38d instanceof SDKError)return console[_0x515d1f(0x1aa)]('Error:\x20'+_0x6d38d[_0x515d1f(0x1c4)]),_0x6d38d[_0x515d1f(0x1b0)]&&console[_0x515d1f(0x1aa)](_0x515d1f(0x1ab)+_0x6d38d['cause']),0x1;throw _0x6d38d;}}}function a67_0x92c5(){const _0x12f802=['length','name','300234iScnhO','2106384ZAGPIO','message','administrator','execute','Show\x20current\x20user\x20information','449764NUGxPV','List\x20all\x20users\x20in\x20the\x20account','👤\x20','Listing\x20users...','\x20user','email','verbose','error','\x20\x20Cause:\x20','localeCompare','✔\x20Found\x20','260386SyFGWc','user\x20list','cause','\x20(owner)','log','Error:\x20','user','dim','106855GyJvGO','749yPWvYJ','getCurrent','list','90707FgINdZ','8652pqhqgD','data','description','account_owner','yellow'];a67_0x92c5=function(){return _0x12f802;};return a67_0x92c5();}export class UserListCommand extends BaseCommand{[a67_0x529e31(0x1c1)]=a67_0x529e31(0x1af);[a67_0x529e31(0x1bd)]=a67_0x529e31(0x1a4);async[a67_0x529e31(0x1c6)](_0x2092f5){const _0x36280e=a67_0x529e31,{options:_0xdbf6b,tdx:_0x21ba30}=_0x2092f5;try{const _0x494961=await withSpinner(_0x36280e(0x1a6),()=>_0x21ba30['user'][_0x36280e(0x1b9)](),{'verbose':_0xdbf6b[_0x36280e(0x1a9)]}),_0x5a086c=_0x494961[_0x36280e(0x1bc)];console['error'](_0x36280e(0x1ad)+_0x5a086c[_0x36280e(0x1c0)]+_0x36280e(0x1a7)+(_0x5a086c['length']!==0x1?'s':''));if(isStructuredFormat(_0xdbf6b))await handleSDKOutput(_0x5a086c,_0xdbf6b);else{const _0x410213=[..._0x5a086c]['sort']((_0x42ec60,_0x5acd08)=>String(_0x42ec60[_0x36280e(0x1c1)]??'')[_0x36280e(0x1ac)](String(_0x5acd08[_0x36280e(0x1c1)]??'')));for(const _0x34233a of _0x410213){const _0x50e6e7=_0x34233a[_0x36280e(0x1be)]?a67_0x420ea2[_0x36280e(0x1bf)](_0x36280e(0x1b1)):_0x34233a[_0x36280e(0x1c5)]?a67_0x420ea2['yellow']('\x20(admin)'):'',_0x4fa411=_0x34233a[_0x36280e(0x1a8)]&&_0x34233a[_0x36280e(0x1a8)]!==_0x34233a[_0x36280e(0x1c1)]?a67_0x420ea2[_0x36280e(0x1b5)]('\x20<'+_0x34233a[_0x36280e(0x1a8)]+'>'):'';console[_0x36280e(0x1b2)](_0x36280e(0x1a5)+(_0x34233a[_0x36280e(0x1c1)]??'Unknown')+_0x4fa411+_0x50e6e7);}}return 0x0;}catch(_0x2fcbd2){if(_0x2fcbd2 instanceof SDKError)return console[_0x36280e(0x1aa)](_0x36280e(0x1b3)+_0x2fcbd2[_0x36280e(0x1c4)]),_0x2fcbd2['cause']&&console[_0x36280e(0x1aa)](_0x36280e(0x1ab)+_0x2fcbd2[_0x36280e(0x1b0)]),0x1;throw _0x2fcbd2;}}}
1
+ const a65_0x176d02=a65_0x5e2e;(function(_0x507833,_0x263fe8){const _0x1a104=a65_0x5e2e,_0x19f445=_0x507833();while(!![]){try{const _0x1502f2=-parseInt(_0x1a104(0x71))/0x1*(parseInt(_0x1a104(0x8f))/0x2)+parseInt(_0x1a104(0x84))/0x3+parseInt(_0x1a104(0x85))/0x4*(-parseInt(_0x1a104(0x7b))/0x5)+-parseInt(_0x1a104(0x87))/0x6+parseInt(_0x1a104(0x78))/0x7+-parseInt(_0x1a104(0x8d))/0x8+parseInt(_0x1a104(0x89))/0x9;if(_0x1502f2===_0x263fe8)break;else _0x19f445['push'](_0x19f445['shift']());}catch(_0x234098){_0x19f445['push'](_0x19f445['shift']());}}}(a65_0x5a2e,0x3c0b8));import{BaseCommand}from'./command.js';import{SDKError}from'../sdk/index.js';import{handleSDKOutput,handleSingleObjectOutput,isStructuredFormat}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';import a65_0x53216d from'chalk';export class UserCommand extends BaseCommand{[a65_0x176d02(0x95)]=a65_0x176d02(0x83);['description']=a65_0x176d02(0x92);async[a65_0x176d02(0x88)](_0x4f5e1c){const _0x327c4b=a65_0x176d02,{options:_0x1314a5,tdx:_0x29b298}=_0x4f5e1c;try{const _0x210a66=await withSpinner(_0x327c4b(0x8e),()=>_0x29b298[_0x327c4b(0x83)][_0x327c4b(0x77)](),{'verbose':_0x1314a5[_0x327c4b(0x7a)]}),_0x2debfc=_0x210a66[_0x327c4b(0x75)];return await handleSingleObjectOutput(_0x2debfc,_0x1314a5),0x0;}catch(_0x51edbe){if(_0x51edbe instanceof SDKError)return console['error'](_0x327c4b(0x72)+_0x51edbe[_0x327c4b(0x94)]),_0x51edbe[_0x327c4b(0x96)]&&console['error'](_0x327c4b(0x7e)+_0x51edbe['cause']),0x1;throw _0x51edbe;}}}function a65_0x5e2e(_0x2151a8,_0xa1c40e){_0x2151a8=_0x2151a8-0x6f;const _0x5a2e40=a65_0x5a2e();let _0x5e2e63=_0x5a2e40[_0x2151a8];return _0x5e2e63;}export class UserListCommand extends BaseCommand{[a65_0x176d02(0x95)]=a65_0x176d02(0x86);['description']=a65_0x176d02(0x70);async['execute'](_0x7874b5){const _0x4ca2d6=a65_0x176d02,{options:_0x442fc2,tdx:_0x6b4216}=_0x7874b5;try{const _0x13d93b=await withSpinner(_0x4ca2d6(0x8b),()=>_0x6b4216[_0x4ca2d6(0x83)][_0x4ca2d6(0x82)](),{'verbose':_0x442fc2[_0x4ca2d6(0x7a)]}),_0x10ae96=_0x13d93b[_0x4ca2d6(0x75)];console['error'](_0x4ca2d6(0x73)+_0x10ae96[_0x4ca2d6(0x8a)]+_0x4ca2d6(0x79)+(_0x10ae96[_0x4ca2d6(0x8a)]!==0x1?'s':''));if(isStructuredFormat(_0x442fc2))await handleSDKOutput(_0x10ae96,_0x442fc2);else{const _0x2d655c=[..._0x10ae96][_0x4ca2d6(0x74)]((_0x4bce99,_0x1bb4db)=>String(_0x4bce99[_0x4ca2d6(0x95)]??'')[_0x4ca2d6(0x90)](String(_0x1bb4db[_0x4ca2d6(0x95)]??'')));for(const _0x5c7acc of _0x2d655c){const _0x285cef=_0x5c7acc[_0x4ca2d6(0x8c)]?a65_0x53216d[_0x4ca2d6(0x7f)](_0x4ca2d6(0x6f)):_0x5c7acc['administrator']?a65_0x53216d[_0x4ca2d6(0x7f)](_0x4ca2d6(0x7c)):'',_0x304dfa=_0x5c7acc[_0x4ca2d6(0x80)]&&_0x5c7acc['email']!==_0x5c7acc[_0x4ca2d6(0x95)]?a65_0x53216d[_0x4ca2d6(0x91)]('\x20<'+_0x5c7acc[_0x4ca2d6(0x80)]+'>'):'';console[_0x4ca2d6(0x76)](_0x4ca2d6(0x81)+(_0x5c7acc[_0x4ca2d6(0x95)]??_0x4ca2d6(0x93))+_0x304dfa+_0x285cef);}}return 0x0;}catch(_0x1020e1){if(_0x1020e1 instanceof SDKError)return console[_0x4ca2d6(0x7d)](_0x4ca2d6(0x72)+_0x1020e1['message']),_0x1020e1[_0x4ca2d6(0x96)]&&console[_0x4ca2d6(0x7d)]('\x20\x20Cause:\x20'+_0x1020e1[_0x4ca2d6(0x96)]),0x1;throw _0x1020e1;}}}function a65_0x5a2e(){const _0x59ed70=['\x20\x20Cause:\x20','yellow','email','👤\x20','list','user','346131WJoVbY','4BgVkeI','user\x20list','2183424SeHbyD','execute','12225267WmqigZ','length','Listing\x20users...','account_owner','2494392pBzBat','Fetching\x20user\x20info...','34434sroPmg','localeCompare','dim','Show\x20current\x20user\x20information','Unknown','message','name','cause','\x20(owner)','List\x20all\x20users\x20in\x20the\x20account','11xdwVFB','Error:\x20','✔\x20Found\x20','sort','data','log','getCurrent','699139ieDkwe','\x20user','verbose','2312915mzNTbE','\x20(admin)','error'];a65_0x5a2e=function(){return _0x59ed70;};return a65_0x5a2e();}
@@ -1 +1 @@
1
- const a68_0x47b010=a68_0x4715;function a68_0x147a(){const _0x41e8fb=['days','Backlinks','cwd','log','resolveWikiLinks','Workspace\x20initialized:','10910480ETqfBH','repeat','createDocument','368761hZsjcr','error','guide','path','No\x20tasks\x20yet.\x20Create\x20one\x20with:\x20tdx\x20work\x20new\x20<title>','github','in_progress','review','title','Links\x20for:\x20','init','low','underline','Created:','moveTask','filePath','Workspace\x20initialized\x20in\x20current\x20directory','tdx\x20work\x20init\x20<name>','inherit','fileName','item','medium','2OPJOKP','critical','slug','taskCounts','priority','entries','displayText','tags','readDocument','gray','5375970zfMyJm','magenta','done','white','kind','Workspace:\x20','2583459UqLOrL','has','length','\x20[[','template','Failed\x20to\x20open\x20editor:\x20','initAt','\x20to\x20create\x20one,\x20or\x20navigate\x20to\x20a\x20directory\x20containing\x20tdx.json.','progress','map','Invalid\x20priority:\x20','design_review','goals','.\x20Valid:\x20','574200UTLjyk','getTasksByStatus','dim','note','Linked\x20to\x20GitHub:\x20','planning','Document\x20not\x20found:\x20','bold','yellow','basename','2242780gAVHFr','green','backlog','join','exit','high','\x20\x20←\x20','flatMap','workflow','workspacePath','cyan','\x20→\x20','Tasks','void','round','Outgoing','\x20Run\x20','blue','Wiki-links','isArray','getBacklinks','Invalid\x20status:\x20','status','assignee','body','red','\x20\x20(empty)','frontmatter','trim','resolvedKind','2551494ZjFezU','16zHYOJm','all','name','7TwzhAs'];a68_0x147a=function(){return _0x41e8fb;};return a68_0x147a();}(function(_0x5c70b3,_0x1a22cb){const _0x46085=a68_0x4715,_0x3f55c4=_0x5c70b3();while(!![]){try{const _0x5c9c20=parseInt(_0x46085(0x17a))/0x1*(parseInt(_0x46085(0x190))/0x2)+-parseInt(_0x46085(0x1ae))/0x3*(parseInt(_0x46085(0x16d))/0x4)+-parseInt(_0x46085(0x19a))/0x5+-parseInt(_0x46085(0x16c))/0x6*(-parseInt(_0x46085(0x170))/0x7)+parseInt(_0x46085(0x177))/0x8+parseInt(_0x46085(0x1a0))/0x9+parseInt(_0x46085(0x1b8))/0xa;if(_0x5c9c20===_0x1a22cb)break;else _0x3f55c4['push'](_0x3f55c4['shift']());}catch(_0x6a42db){_0x3f55c4['push'](_0x3f55c4['shift']());}}}(a68_0x147a,0xca3c3));import{getChalk}from'../utils/colors.js';const chalk=getChalk();import{execFileSync}from'node:child_process';import a68_0x55b7ad from'node:path';import{WorkspaceSDK,resolveWorkspacePath,normalizeTags}from'../sdk/workspace/index.js';function a68_0x4715(_0x16c80f,_0x2c0c59){_0x16c80f=_0x16c80f-0x168;const _0x147a91=a68_0x147a();let _0x4715b4=_0x147a91[_0x16c80f];return _0x4715b4;}import{STATUS_PHASES,ALL_STATUSES}from'../sdk/types/workspace.js';function buildStaleFilter(_0x357669){const _0x21b55b=a68_0x4715;if(_0x357669[_0x21b55b(0x16e)])return{'includeStale':!![]};if(_0x357669[_0x21b55b(0x171)])return{'updatedWithin':parseInt(_0x357669[_0x21b55b(0x171)],0xa)};return undefined;}const VALID_KINDS=new Set([a68_0x47b010(0x18e),'goal',a68_0x47b010(0x17c),a68_0x47b010(0x1b1),'reference',a68_0x47b010(0x1c0),a68_0x47b010(0x1a4)]),VALID_PRIORITIES=new Set([a68_0x47b010(0x191),a68_0x47b010(0x1bd),a68_0x47b010(0x18f),'low']),VALID_STATUSES=new Set(ALL_STATUSES);function getSDK(){const _0x1b940a=a68_0x47b010,_0x5bc3df=resolveWorkspacePath();return!_0x5bc3df&&(console[_0x1b940a(0x17b)](chalk[_0x1b940a(0x1d1)]('No\x20workspace\x20found.')+_0x1b940a(0x1c8)+chalk[_0x1b940a(0x1c2)](_0x1b940a(0x18b))+_0x1b940a(0x1a7)),process[_0x1b940a(0x1bc)](0x1)),new WorkspaceSDK(_0x5bc3df);}function priorityDot(_0x2a57e1){const _0x2390d5=a68_0x47b010;switch(_0x2a57e1){case _0x2390d5(0x191):return chalk['red']('\u25cf');case _0x2390d5(0x1bd):return chalk[_0x2390d5(0x1b6)]('\u25cf');case _0x2390d5(0x18f):return chalk[_0x2390d5(0x1c9)]('\u25cf');case _0x2390d5(0x185):return chalk['gray']('\u25cf');default:return chalk[_0x2390d5(0x1c9)]('\u25cf');}}function statusColor(_0x2c0d4a){const _0x1a601f=a68_0x47b010;switch(_0x2c0d4a){case _0x1a601f(0x19c):return chalk[_0x1a601f(0x1b9)](_0x2c0d4a);case _0x1a601f(0x1c5):return chalk[_0x1a601f(0x199)](_0x2c0d4a);case _0x1a601f(0x180):return chalk['cyan'](_0x2c0d4a);case _0x1a601f(0x181):return chalk[_0x1a601f(0x19b)](_0x2c0d4a);case _0x1a601f(0x1b3):case _0x1a601f(0x1ab):return chalk[_0x1a601f(0x1b6)](_0x2c0d4a);case'todo':return chalk[_0x1a601f(0x19d)](_0x2c0d4a);case _0x1a601f(0x1ba):return chalk[_0x1a601f(0x1b0)](_0x2c0d4a);default:return _0x2c0d4a;}}export async function workSummaryAction(_0x440dff){const _0x4f57a2=a68_0x47b010,_0x1ade88=getSDK(),_0xc6465c=buildStaleFilter(_0x440dff),_0x231e02=_0x1ade88['getSummary'](_0xc6465c);console[_0x4f57a2(0x174)](chalk[_0x4f57a2(0x1b5)](_0x4f57a2(0x19f)+_0x231e02[_0x4f57a2(0x16f)])),console[_0x4f57a2(0x174)](chalk[_0x4f57a2(0x1b0)](_0x231e02[_0x4f57a2(0x17d)])),console[_0x4f57a2(0x174)]();const _0x240e80=Object['values'](_0x231e02[_0x4f57a2(0x193)])['reduce']((_0x197d5d,_0x7629d2)=>_0x197d5d+_0x7629d2,0x0);if(_0x240e80===0x0)console['log'](chalk[_0x4f57a2(0x1b0)](_0x4f57a2(0x17e)));else{console[_0x4f57a2(0x174)](chalk[_0x4f57a2(0x1b5)](_0x4f57a2(0x1c4)));for(const [_0x3e520a,_0x37d10e]of Object[_0x4f57a2(0x195)](_0x231e02[_0x4f57a2(0x193)])){_0x37d10e>0x0&&console[_0x4f57a2(0x174)]('\x20\x20'+statusColor(_0x3e520a)+':\x20'+_0x37d10e);}console[_0x4f57a2(0x174)]();}if(_0x231e02[_0x4f57a2(0x1ac)]['length']>0x0){console[_0x4f57a2(0x174)](chalk[_0x4f57a2(0x1b5)]('Goals'));for(const _0x1fbc72 of _0x231e02[_0x4f57a2(0x1ac)]){const _0xf0604=progressBar(_0x1fbc72[_0x4f57a2(0x1a8)]);console[_0x4f57a2(0x174)]('\x20\x20'+_0x1fbc72[_0x4f57a2(0x182)]+'\x20'+_0xf0604+'\x20'+_0x1fbc72[_0x4f57a2(0x1a8)]+'%');}}}function progressBar(_0x45fdb4){const _0x34c661=a68_0x47b010,_0x478acc=0x14,_0x3ddda1=Math[_0x34c661(0x1c6)](_0x45fdb4/0x64*_0x478acc),_0x2c8cd9=_0x478acc-_0x3ddda1;return chalk[_0x34c661(0x1b9)]('\u2588'['repeat'](_0x3ddda1))+chalk[_0x34c661(0x1b0)]('\u2591'[_0x34c661(0x178)](_0x2c8cd9));}export async function workInitAction(_0x3642fa,_0x16135a){const _0x304792=a68_0x47b010,_0x1bcf8e=_0x3642fa||a68_0x55b7ad[_0x304792(0x1b7)](process[_0x304792(0x173)]());if(_0x16135a['github']){const _0x25baa4=WorkspaceSDK[_0x304792(0x1a6)](_0x1bcf8e,{'github':_0x16135a[_0x304792(0x17f)]});console[_0x304792(0x174)](chalk[_0x304792(0x1b9)](_0x304792(0x176))+'\x20'+_0x25baa4[_0x304792(0x1c1)]),console['log'](chalk[_0x304792(0x1b0)](_0x304792(0x1b2)+_0x16135a[_0x304792(0x17f)]));}else{if(_0x3642fa){const _0x475865=WorkspaceSDK[_0x304792(0x1a6)](_0x3642fa);console['log'](chalk[_0x304792(0x1b9)](_0x304792(0x176))+'\x20'+_0x475865[_0x304792(0x1c1)]);}else{const _0x296c3e=new WorkspaceSDK(process[_0x304792(0x173)]());_0x296c3e[_0x304792(0x184)](_0x1bcf8e),console[_0x304792(0x174)](chalk['green'](_0x304792(0x18a)));}}}export async function workNewAction(_0xb9ce35,_0x4ed8b9){const _0x69aea3=a68_0x47b010,_0x500682=getSDK(),_0x272a86=_0x4ed8b9[_0x69aea3(0x19e)]||'item';!VALID_KINDS[_0x69aea3(0x1a1)](_0x272a86)&&(console[_0x69aea3(0x17b)](chalk[_0x69aea3(0x1d1)]('Invalid\x20kind:\x20'+_0x272a86+_0x69aea3(0x1ad)+[...VALID_KINDS][_0x69aea3(0x1bb)](',\x20'))),process[_0x69aea3(0x1bc)](0x1));_0x4ed8b9[_0x69aea3(0x194)]&&!VALID_PRIORITIES['has'](_0x4ed8b9[_0x69aea3(0x194)])&&(console[_0x69aea3(0x17b)](chalk['red'](_0x69aea3(0x1aa)+_0x4ed8b9[_0x69aea3(0x194)]+_0x69aea3(0x1ad)+[...VALID_PRIORITIES]['join'](',\x20'))),process['exit'](0x1));_0x4ed8b9['status']&&!VALID_STATUSES[_0x69aea3(0x1a1)](_0x4ed8b9[_0x69aea3(0x1ce)])&&(console[_0x69aea3(0x17b)](chalk['red'](_0x69aea3(0x1cd)+_0x4ed8b9['status']+'.\x20Valid:\x20'+[...VALID_STATUSES][_0x69aea3(0x1bb)](',\x20'))),process[_0x69aea3(0x1bc)](0x1));const _0x19d473=_0x4ed8b9[_0x69aea3(0x197)]?_0x4ed8b9[_0x69aea3(0x197)]['split'](',')[_0x69aea3(0x1a9)](_0x2124dc=>_0x2124dc[_0x69aea3(0x16a)]()):undefined,_0x2a723f=_0x500682[_0x69aea3(0x179)]({'title':_0xb9ce35,'kind':_0x272a86,'tags':_0x19d473,'priority':_0x4ed8b9[_0x69aea3(0x194)],'body':_0x4ed8b9[_0x69aea3(0x1d0)],'template':_0x4ed8b9[_0x69aea3(0x1a4)],'status':_0x4ed8b9[_0x69aea3(0x1ce)],'assignee':_0x4ed8b9[_0x69aea3(0x1cf)]});console['log'](chalk['green'](_0x69aea3(0x187))+'\x20'+_0x2a723f['fileName']),console['log'](chalk[_0x69aea3(0x1b0)](_0x2a723f[_0x69aea3(0x189)]));}export async function workMoveAction(_0x2f645d,_0x460f77){const _0x46a9a1=a68_0x47b010;!VALID_STATUSES[_0x46a9a1(0x1a1)](_0x460f77)&&(console[_0x46a9a1(0x17b)](chalk[_0x46a9a1(0x1d1)](_0x46a9a1(0x1cd)+_0x460f77+_0x46a9a1(0x1ad)+[...VALID_STATUSES]['join'](',\x20'))),process[_0x46a9a1(0x1bc)](0x1));const _0xd39399=getSDK(),_0x20744e=_0xd39399[_0x46a9a1(0x188)](_0x2f645d,_0x460f77);!_0x20744e&&(console[_0x46a9a1(0x17b)](chalk[_0x46a9a1(0x1d1)](_0x46a9a1(0x1b4)+_0x2f645d)),process[_0x46a9a1(0x1bc)](0x1));const _0x3419c7=_0x20744e[_0x46a9a1(0x169)][_0x46a9a1(0x182)]||_0x20744e[_0x46a9a1(0x18d)];console['log'](chalk[_0x46a9a1(0x1b9)]('Moved:')+('\x20'+_0x3419c7+_0x46a9a1(0x1c3)+statusColor(_0x460f77)));}export async function workBoardAction(_0x499698){const _0x25ae21=a68_0x47b010,_0x2ee162=getSDK(),_0xe0aa55=buildStaleFilter(_0x499698),{grouped:_0x31e333}=_0x2ee162[_0x25ae21(0x1af)](_0xe0aa55);for(const [_0x220f82,_0x42c9ce]of Object[_0x25ae21(0x195)](STATUS_PHASES)){const _0x20491f=_0x42c9ce[_0x25ae21(0x1bf)](_0x46aae7=>_0x31e333[_0x46aae7]||[]);console['log'](chalk[_0x25ae21(0x1b5)][_0x25ae21(0x186)](_0x220f82)+chalk[_0x25ae21(0x1b0)]('\x20('+_0x20491f[_0x25ae21(0x1a2)]+')'));if(_0x20491f[_0x25ae21(0x1a2)]===0x0)console[_0x25ae21(0x174)](chalk['dim'](_0x25ae21(0x168)));else for(const _0x342aed of _0x20491f){const _0x2e8efe=_0x342aed[_0x25ae21(0x169)],_0xfb004e=priorityDot(_0x2e8efe[_0x25ae21(0x194)]),_0x17ceb5=_0x2e8efe[_0x25ae21(0x182)]||_0x342aed[_0x25ae21(0x18d)],_0x256fe3=normalizeTags(_0x2e8efe[_0x25ae21(0x197)]),_0xdeb3a9=_0x256fe3[_0x25ae21(0x1a2)]?chalk['dim']('\x20['+_0x256fe3[_0x25ae21(0x1bb)](',\x20')+']'):'',_0x42d1a0=chalk['dim']('('+_0x2e8efe['status']+')');console[_0x25ae21(0x174)]('\x20\x20'+_0xfb004e+'\x20'+_0x17ceb5+'\x20'+_0x42d1a0+_0xdeb3a9);}console[_0x25ae21(0x174)]();}}export async function workShowAction(_0x4d8e08){const _0x3d0ab0=a68_0x47b010,_0x3c3b9f=getSDK(),_0x3d27b9=_0x3c3b9f[_0x3d0ab0(0x198)](_0x4d8e08);!_0x3d27b9&&(console[_0x3d0ab0(0x17b)](chalk[_0x3d0ab0(0x1d1)]('Document\x20not\x20found:\x20'+_0x4d8e08)),process[_0x3d0ab0(0x1bc)](0x1));console[_0x3d0ab0(0x174)](chalk[_0x3d0ab0(0x1b5)](_0x3d27b9[_0x3d0ab0(0x169)]['title']||_0x3d27b9[_0x3d0ab0(0x18d)])),console[_0x3d0ab0(0x174)](chalk[_0x3d0ab0(0x1b0)](_0x3d27b9[_0x3d0ab0(0x189)])),console['log']();const _0x3eb162=_0x3d27b9['frontmatter'];for(const [_0x203001,_0x28d725]of Object[_0x3d0ab0(0x195)](_0x3eb162)){if(_0x203001===_0x3d0ab0(0x182))continue;if(_0x28d725===undefined||_0x28d725===null)continue;const _0x3472f3=Array[_0x3d0ab0(0x1cb)](_0x28d725)?_0x28d725['join'](',\x20'):String(_0x28d725);console['log']('\x20\x20'+chalk['cyan'](_0x203001)+':\x20'+_0x3472f3);}console[_0x3d0ab0(0x174)]();_0x3d27b9[_0x3d0ab0(0x1d0)][_0x3d0ab0(0x16a)]()&&(console[_0x3d0ab0(0x174)](_0x3d27b9[_0x3d0ab0(0x1d0)][_0x3d0ab0(0x16a)]()),console[_0x3d0ab0(0x174)]());const _0x1f7313=_0x3c3b9f[_0x3d0ab0(0x175)](_0x3d27b9[_0x3d0ab0(0x1d0)]);if(_0x1f7313[_0x3d0ab0(0x1a2)]>0x0){console[_0x3d0ab0(0x174)](chalk[_0x3d0ab0(0x1b5)](_0x3d0ab0(0x1ca)));for(const _0x54dca3 of _0x1f7313){const _0x587a03=_0x54dca3['resolvedPath']?chalk[_0x3d0ab0(0x1b9)]('\u2713'):chalk[_0x3d0ab0(0x1d1)]('\u2717'),_0x19acba=_0x54dca3[_0x3d0ab0(0x196)]||_0x54dca3[_0x3d0ab0(0x192)];console['log']('\x20\x20'+_0x587a03+_0x3d0ab0(0x1a3)+_0x19acba+']]');}console['log']();}const _0x3a479f=_0x3c3b9f[_0x3d0ab0(0x1cc)](_0x3d27b9[_0x3d0ab0(0x18d)]);if(_0x3a479f[_0x3d0ab0(0x1a2)]>0x0){console[_0x3d0ab0(0x174)](chalk[_0x3d0ab0(0x1b5)](_0x3d0ab0(0x172)));for(const _0x27b857 of _0x3a479f){console[_0x3d0ab0(0x174)]('\x20\x20←\x20'+_0x27b857[_0x3d0ab0(0x182)]+'\x20'+chalk[_0x3d0ab0(0x1b0)]('('+_0x27b857[_0x3d0ab0(0x19e)]+')'));}}}export async function workLinksAction(_0x2ef1e4){const _0x99b82=a68_0x47b010,_0x4db71d=getSDK(),_0x1c37b7=_0x4db71d['readDocument'](_0x2ef1e4);!_0x1c37b7&&(console[_0x99b82(0x17b)](chalk[_0x99b82(0x1d1)]('Document\x20not\x20found:\x20'+_0x2ef1e4)),process[_0x99b82(0x1bc)](0x1));const _0x15e13d=_0x1c37b7['frontmatter'][_0x99b82(0x182)]||_0x1c37b7[_0x99b82(0x18d)];console[_0x99b82(0x174)](chalk[_0x99b82(0x1b5)](_0x99b82(0x183)+_0x15e13d)),console[_0x99b82(0x174)]();const _0x26f670=_0x4db71d[_0x99b82(0x175)](_0x1c37b7[_0x99b82(0x1d0)]);if(_0x26f670[_0x99b82(0x1a2)]>0x0){console[_0x99b82(0x174)](chalk['bold'](_0x99b82(0x1c7)));for(const _0x23ebb2 of _0x26f670){const _0xa571c6=_0x23ebb2['resolvedPath']?chalk[_0x99b82(0x1b9)]('\u2713'):chalk['red']('\u2717'),_0x29a76c=_0x23ebb2[_0x99b82(0x196)]||_0x23ebb2[_0x99b82(0x192)],_0x3b6fdf=_0x23ebb2[_0x99b82(0x16b)]?chalk['dim']('\x20('+_0x23ebb2[_0x99b82(0x16b)]+')'):'';console['log']('\x20\x20'+_0xa571c6+_0x99b82(0x1a3)+_0x29a76c+']]'+_0x3b6fdf);}}else console[_0x99b82(0x174)](chalk['dim']('No\x20outgoing\x20wiki-links'));console[_0x99b82(0x174)]();const _0x3b924b=_0x4db71d[_0x99b82(0x1cc)](_0x1c37b7[_0x99b82(0x18d)]);if(_0x3b924b[_0x99b82(0x1a2)]>0x0){console[_0x99b82(0x174)](chalk[_0x99b82(0x1b5)]('Incoming'));for(const _0x3aaaa6 of _0x3b924b){console[_0x99b82(0x174)](_0x99b82(0x1be)+_0x3aaaa6[_0x99b82(0x182)]+'\x20'+chalk[_0x99b82(0x1b0)]('('+_0x3aaaa6['kind']+')'));}}else console[_0x99b82(0x174)](chalk['dim']('No\x20incoming\x20backlinks'));}export async function workOpenAction(_0x22bb52){const _0x1672a6=a68_0x47b010,_0x26f9f6=getSDK(),_0xea4fba=_0x26f9f6[_0x1672a6(0x198)](_0x22bb52);!_0xea4fba&&(console[_0x1672a6(0x17b)](chalk[_0x1672a6(0x1d1)](_0x1672a6(0x1b4)+_0x22bb52)),process[_0x1672a6(0x1bc)](0x1));const _0x1da119=process.env.EDITOR||'vi';try{execFileSync(_0x1da119,[_0xea4fba[_0x1672a6(0x189)]],{'stdio':_0x1672a6(0x18c)});}catch{console[_0x1672a6(0x17b)](chalk[_0x1672a6(0x1d1)](_0x1672a6(0x1a5)+_0x1da119)),process[_0x1672a6(0x1bc)](0x1);}}
1
+ const a66_0x33b1ee=a66_0x42d5;(function(_0x22db51,_0x46d919){const _0x48cc9c=a66_0x42d5,_0x3b2622=_0x22db51();while(!![]){try{const _0x209876=parseInt(_0x48cc9c(0x223))/0x1+parseInt(_0x48cc9c(0x1d2))/0x2*(-parseInt(_0x48cc9c(0x1cc))/0x3)+parseInt(_0x48cc9c(0x1c8))/0x4*(-parseInt(_0x48cc9c(0x205))/0x5)+parseInt(_0x48cc9c(0x1c2))/0x6+parseInt(_0x48cc9c(0x1d3))/0x7+parseInt(_0x48cc9c(0x209))/0x8*(-parseInt(_0x48cc9c(0x1e9))/0x9)+-parseInt(_0x48cc9c(0x1f9))/0xa;if(_0x209876===_0x46d919)break;else _0x3b2622['push'](_0x3b2622['shift']());}catch(_0x42eb14){_0x3b2622['push'](_0x3b2622['shift']());}}}(a66_0x3769,0xc6f6b));function a66_0x3769(){const _0x44eca6=['inherit','14379180IjWocq','No\x20incoming\x20backlinks','displayText','Document\x20not\x20found:\x20','getTasksByStatus','todo','cyan','split','moveTask','taskCounts','Created:','critical','65NoQiRO','red','\x20\x20←\x20','low','696leCTik','assignee','has','cwd','Goals','Moved:','Backlinks','white','round','Invalid\x20status:\x20','in_progress','flatMap','goals','No\x20outgoing\x20wiki-links','readDocument','Workspace\x20initialized\x20in\x20current\x20directory','kind','Incoming','trim','Links\x20for:\x20','priority','.\x20Valid:\x20','gray','error','green','Workspace\x20initialized:','482432htRSRG','Invalid\x20kind:\x20','Failed\x20to\x20open\x20editor:\x20','No\x20workspace\x20found.','basename','Wiki-links','template','init','log','\x20[[','filePath','length','resolveWikiLinks','exit','7489686WKAbKy','map','resolvedPath','\x20Run\x20','entries','dim','216696jKAZYc','\x20to\x20create\x20one,\x20or\x20navigate\x20to\x20a\x20directory\x20containing\x20tdx.json.','note','fileName','3aYHPDs','join','workflow','status','reference','reduce','179966gdQyWo','10117373DnQnmq','backlog','resolvedKind','yellow','path','getSummary','isArray','getBacklinks','progress','initAt','No\x20tasks\x20yet.\x20Create\x20one\x20with:\x20tdx\x20work\x20new\x20<title>','medium','tags','done','createDocument','all','title','high','bold','Linked\x20to\x20GitHub:\x20','slug','Workspace:\x20','13338BwLiwS','github','item','tdx\x20work\x20init\x20<name>','values','frontmatter','body','Invalid\x20priority:\x20','days','Outgoing','planning','repeat','blue','design_review','workspacePath'];a66_0x3769=function(){return _0x44eca6;};return a66_0x3769();}import{getChalk}from'../utils/colors.js';const chalk=getChalk();function a66_0x42d5(_0x30a76c,_0x343086){_0x30a76c=_0x30a76c-0x1bd;const _0x376977=a66_0x3769();let _0x42d589=_0x376977[_0x30a76c];return _0x42d589;}import{execFileSync}from'node:child_process';import a66_0x63ba68 from'node:path';import{WorkspaceSDK,resolveWorkspacePath,normalizeTags}from'../sdk/workspace/index.js';import{STATUS_PHASES,ALL_STATUSES}from'../sdk/types/workspace.js';function buildStaleFilter(_0x4b1174){const _0x51a66e=a66_0x42d5;if(_0x4b1174[_0x51a66e(0x1e2)])return{'includeStale':!![]};if(_0x4b1174[_0x51a66e(0x1f1)])return{'updatedWithin':parseInt(_0x4b1174[_0x51a66e(0x1f1)],0xa)};return undefined;}const VALID_KINDS=new Set(['item','goal','guide',a66_0x33b1ee(0x1ca),a66_0x33b1ee(0x1d0),a66_0x33b1ee(0x1ce),a66_0x33b1ee(0x229)]),VALID_PRIORITIES=new Set([a66_0x33b1ee(0x204),a66_0x33b1ee(0x1e4),a66_0x33b1ee(0x1de),'low']),VALID_STATUSES=new Set(ALL_STATUSES);function getSDK(){const _0x1b5fc9=a66_0x33b1ee,_0x2c909c=resolveWorkspacePath();return!_0x2c909c&&(console['error'](chalk[_0x1b5fc9(0x206)](_0x1b5fc9(0x226))+_0x1b5fc9(0x1c5)+chalk[_0x1b5fc9(0x1ff)](_0x1b5fc9(0x1ec))+_0x1b5fc9(0x1c9)),process['exit'](0x1)),new WorkspaceSDK(_0x2c909c);}function priorityDot(_0x1a850d){const _0x5960f6=a66_0x33b1ee;switch(_0x1a850d){case'critical':return chalk[_0x5960f6(0x206)]('\u25cf');case _0x5960f6(0x1e4):return chalk[_0x5960f6(0x1d6)]('\u25cf');case _0x5960f6(0x1de):return chalk[_0x5960f6(0x1f5)]('\u25cf');case _0x5960f6(0x208):return chalk['gray']('\u25cf');default:return chalk[_0x5960f6(0x1f5)]('\u25cf');}}function statusColor(_0x55ed31){const _0x42d77f=a66_0x33b1ee;switch(_0x55ed31){case _0x42d77f(0x1e0):return chalk[_0x42d77f(0x221)](_0x55ed31);case'void':return chalk[_0x42d77f(0x21f)](_0x55ed31);case _0x42d77f(0x213):return chalk['cyan'](_0x55ed31);case'review':return chalk['magenta'](_0x55ed31);case _0x42d77f(0x1f3):case _0x42d77f(0x1f6):return chalk[_0x42d77f(0x1d6)](_0x55ed31);case _0x42d77f(0x1fe):return chalk[_0x42d77f(0x210)](_0x55ed31);case _0x42d77f(0x1d4):return chalk[_0x42d77f(0x1c7)](_0x55ed31);default:return _0x55ed31;}}export async function workSummaryAction(_0x1556d3){const _0x23b339=a66_0x33b1ee,_0x5740bc=getSDK(),_0x4f4e16=buildStaleFilter(_0x1556d3),_0x5002c3=_0x5740bc[_0x23b339(0x1d8)](_0x4f4e16);console[_0x23b339(0x22b)](chalk[_0x23b339(0x1e5)](_0x23b339(0x1e8)+_0x5002c3['name'])),console['log'](chalk[_0x23b339(0x1c7)](_0x5002c3[_0x23b339(0x1d7)])),console['log']();const _0x4df4ac=Object[_0x23b339(0x1ed)](_0x5002c3[_0x23b339(0x202)])[_0x23b339(0x1d1)]((_0x25ba55,_0x5f26bf)=>_0x25ba55+_0x5f26bf,0x0);if(_0x4df4ac===0x0)console[_0x23b339(0x22b)](chalk[_0x23b339(0x1c7)](_0x23b339(0x1dd)));else{console[_0x23b339(0x22b)](chalk[_0x23b339(0x1e5)]('Tasks'));for(const [_0x900d95,_0x37a3ad]of Object[_0x23b339(0x1c6)](_0x5002c3[_0x23b339(0x202)])){_0x37a3ad>0x0&&console[_0x23b339(0x22b)]('\x20\x20'+statusColor(_0x900d95)+':\x20'+_0x37a3ad);}console[_0x23b339(0x22b)]();}if(_0x5002c3[_0x23b339(0x215)]['length']>0x0){console[_0x23b339(0x22b)](chalk[_0x23b339(0x1e5)](_0x23b339(0x20d)));for(const _0x1f85a3 of _0x5002c3[_0x23b339(0x215)]){const _0x3fc399=progressBar(_0x1f85a3[_0x23b339(0x1db)]);console[_0x23b339(0x22b)]('\x20\x20'+_0x1f85a3['title']+'\x20'+_0x3fc399+'\x20'+_0x1f85a3[_0x23b339(0x1db)]+'%');}}}function progressBar(_0x226afe){const _0x48d753=a66_0x33b1ee,_0x4a79fa=0x14,_0x335bbd=Math[_0x48d753(0x211)](_0x226afe/0x64*_0x4a79fa),_0x19ed51=_0x4a79fa-_0x335bbd;return chalk[_0x48d753(0x221)]('\u2588'[_0x48d753(0x1f4)](_0x335bbd))+chalk[_0x48d753(0x1c7)]('\u2591'[_0x48d753(0x1f4)](_0x19ed51));}export async function workInitAction(_0x1c1c16,_0x2ae1cd){const _0x33cb14=a66_0x33b1ee,_0x4106d7=_0x1c1c16||a66_0x63ba68[_0x33cb14(0x227)](process[_0x33cb14(0x20c)]());if(_0x2ae1cd['github']){const _0x9e410=WorkspaceSDK[_0x33cb14(0x1dc)](_0x4106d7,{'github':_0x2ae1cd['github']});console[_0x33cb14(0x22b)](chalk[_0x33cb14(0x221)]('Workspace\x20initialized:')+'\x20'+_0x9e410[_0x33cb14(0x1f7)]),console[_0x33cb14(0x22b)](chalk[_0x33cb14(0x1c7)](_0x33cb14(0x1e6)+_0x2ae1cd[_0x33cb14(0x1ea)]));}else{if(_0x1c1c16){const _0x5e9989=WorkspaceSDK['initAt'](_0x1c1c16);console['log'](chalk[_0x33cb14(0x221)](_0x33cb14(0x222))+'\x20'+_0x5e9989['workspacePath']);}else{const _0x3dcbad=new WorkspaceSDK(process[_0x33cb14(0x20c)]());_0x3dcbad[_0x33cb14(0x22a)](_0x4106d7),console['log'](chalk[_0x33cb14(0x221)](_0x33cb14(0x218)));}}}export async function workNewAction(_0x305af2,_0x331da1){const _0x5d5f49=a66_0x33b1ee,_0x3626b7=getSDK(),_0x1bfeb5=_0x331da1[_0x5d5f49(0x219)]||_0x5d5f49(0x1eb);!VALID_KINDS[_0x5d5f49(0x20b)](_0x1bfeb5)&&(console[_0x5d5f49(0x220)](chalk[_0x5d5f49(0x206)](_0x5d5f49(0x224)+_0x1bfeb5+'.\x20Valid:\x20'+[...VALID_KINDS][_0x5d5f49(0x1cd)](',\x20'))),process[_0x5d5f49(0x1c1)](0x1));_0x331da1[_0x5d5f49(0x21d)]&&!VALID_PRIORITIES['has'](_0x331da1[_0x5d5f49(0x21d)])&&(console['error'](chalk[_0x5d5f49(0x206)](_0x5d5f49(0x1f0)+_0x331da1[_0x5d5f49(0x21d)]+_0x5d5f49(0x21e)+[...VALID_PRIORITIES][_0x5d5f49(0x1cd)](',\x20'))),process['exit'](0x1));_0x331da1[_0x5d5f49(0x1cf)]&&!VALID_STATUSES['has'](_0x331da1[_0x5d5f49(0x1cf)])&&(console['error'](chalk[_0x5d5f49(0x206)](_0x5d5f49(0x212)+_0x331da1['status']+_0x5d5f49(0x21e)+[...VALID_STATUSES][_0x5d5f49(0x1cd)](',\x20'))),process['exit'](0x1));const _0x1990a0=_0x331da1[_0x5d5f49(0x1df)]?_0x331da1[_0x5d5f49(0x1df)][_0x5d5f49(0x200)](',')[_0x5d5f49(0x1c3)](_0x57b357=>_0x57b357['trim']()):undefined,_0x3e7c6b=_0x3626b7[_0x5d5f49(0x1e1)]({'title':_0x305af2,'kind':_0x1bfeb5,'tags':_0x1990a0,'priority':_0x331da1[_0x5d5f49(0x21d)],'body':_0x331da1[_0x5d5f49(0x1ef)],'template':_0x331da1[_0x5d5f49(0x229)],'status':_0x331da1[_0x5d5f49(0x1cf)],'assignee':_0x331da1[_0x5d5f49(0x20a)]});console[_0x5d5f49(0x22b)](chalk[_0x5d5f49(0x221)](_0x5d5f49(0x203))+'\x20'+_0x3e7c6b[_0x5d5f49(0x1cb)]),console['log'](chalk[_0x5d5f49(0x1c7)](_0x3e7c6b[_0x5d5f49(0x1be)]));}export async function workMoveAction(_0x182800,_0x2810d3){const _0xa44002=a66_0x33b1ee;!VALID_STATUSES['has'](_0x2810d3)&&(console['error'](chalk[_0xa44002(0x206)](_0xa44002(0x212)+_0x2810d3+_0xa44002(0x21e)+[...VALID_STATUSES][_0xa44002(0x1cd)](',\x20'))),process[_0xa44002(0x1c1)](0x1));const _0x3660ed=getSDK(),_0x56a377=_0x3660ed[_0xa44002(0x201)](_0x182800,_0x2810d3);!_0x56a377&&(console[_0xa44002(0x220)](chalk[_0xa44002(0x206)]('Document\x20not\x20found:\x20'+_0x182800)),process[_0xa44002(0x1c1)](0x1));const _0x5e70fa=_0x56a377[_0xa44002(0x1ee)][_0xa44002(0x1e3)]||_0x56a377['fileName'];console[_0xa44002(0x22b)](chalk['green'](_0xa44002(0x20e))+('\x20'+_0x5e70fa+'\x20→\x20'+statusColor(_0x2810d3)));}export async function workBoardAction(_0xb3663c){const _0x5ba925=a66_0x33b1ee,_0x5eb939=getSDK(),_0x4cce39=buildStaleFilter(_0xb3663c),{grouped:_0x628cee}=_0x5eb939[_0x5ba925(0x1fd)](_0x4cce39);for(const [_0x13b2d1,_0x4a7c5d]of Object[_0x5ba925(0x1c6)](STATUS_PHASES)){const _0x57b7b3=_0x4a7c5d[_0x5ba925(0x214)](_0x591db4=>_0x628cee[_0x591db4]||[]);console['log'](chalk[_0x5ba925(0x1e5)]['underline'](_0x13b2d1)+chalk[_0x5ba925(0x1c7)]('\x20('+_0x57b7b3[_0x5ba925(0x1bf)]+')'));if(_0x57b7b3[_0x5ba925(0x1bf)]===0x0)console[_0x5ba925(0x22b)](chalk[_0x5ba925(0x1c7)]('\x20\x20(empty)'));else for(const _0x2e499a of _0x57b7b3){const _0x4f90e6=_0x2e499a['frontmatter'],_0x386452=priorityDot(_0x4f90e6[_0x5ba925(0x21d)]),_0x3795af=_0x4f90e6[_0x5ba925(0x1e3)]||_0x2e499a[_0x5ba925(0x1cb)],_0x3e46ca=normalizeTags(_0x4f90e6['tags']),_0x186422=_0x3e46ca[_0x5ba925(0x1bf)]?chalk[_0x5ba925(0x1c7)]('\x20['+_0x3e46ca['join'](',\x20')+']'):'',_0x4c271b=chalk[_0x5ba925(0x1c7)]('('+_0x4f90e6[_0x5ba925(0x1cf)]+')');console[_0x5ba925(0x22b)]('\x20\x20'+_0x386452+'\x20'+_0x3795af+'\x20'+_0x4c271b+_0x186422);}console[_0x5ba925(0x22b)]();}}export async function workShowAction(_0x5df605){const _0x522d51=a66_0x33b1ee,_0x3bfa87=getSDK(),_0x3e0ca1=_0x3bfa87['readDocument'](_0x5df605);!_0x3e0ca1&&(console['error'](chalk[_0x522d51(0x206)](_0x522d51(0x1fc)+_0x5df605)),process['exit'](0x1));console[_0x522d51(0x22b)](chalk[_0x522d51(0x1e5)](_0x3e0ca1[_0x522d51(0x1ee)][_0x522d51(0x1e3)]||_0x3e0ca1[_0x522d51(0x1cb)])),console[_0x522d51(0x22b)](chalk[_0x522d51(0x1c7)](_0x3e0ca1['filePath'])),console[_0x522d51(0x22b)]();const _0x52db88=_0x3e0ca1['frontmatter'];for(const [_0x584338,_0x34124e]of Object['entries'](_0x52db88)){if(_0x584338===_0x522d51(0x1e3))continue;if(_0x34124e===undefined||_0x34124e===null)continue;const _0x39cc87=Array[_0x522d51(0x1d9)](_0x34124e)?_0x34124e[_0x522d51(0x1cd)](',\x20'):String(_0x34124e);console[_0x522d51(0x22b)]('\x20\x20'+chalk['cyan'](_0x584338)+':\x20'+_0x39cc87);}console[_0x522d51(0x22b)]();_0x3e0ca1[_0x522d51(0x1ef)][_0x522d51(0x21b)]()&&(console['log'](_0x3e0ca1[_0x522d51(0x1ef)][_0x522d51(0x21b)]()),console[_0x522d51(0x22b)]());const _0x12e37f=_0x3bfa87[_0x522d51(0x1c0)](_0x3e0ca1[_0x522d51(0x1ef)]);if(_0x12e37f['length']>0x0){console[_0x522d51(0x22b)](chalk[_0x522d51(0x1e5)](_0x522d51(0x228)));for(const _0x313727 of _0x12e37f){const _0x4484db=_0x313727[_0x522d51(0x1c4)]?chalk['green']('\u2713'):chalk[_0x522d51(0x206)]('\u2717'),_0x5cdda2=_0x313727[_0x522d51(0x1fb)]||_0x313727[_0x522d51(0x1e7)];console['log']('\x20\x20'+_0x4484db+_0x522d51(0x1bd)+_0x5cdda2+']]');}console[_0x522d51(0x22b)]();}const _0x1d950f=_0x3bfa87[_0x522d51(0x1da)](_0x3e0ca1[_0x522d51(0x1cb)]);if(_0x1d950f[_0x522d51(0x1bf)]>0x0){console[_0x522d51(0x22b)](chalk[_0x522d51(0x1e5)](_0x522d51(0x20f)));for(const _0x174ed7 of _0x1d950f){console[_0x522d51(0x22b)](_0x522d51(0x207)+_0x174ed7[_0x522d51(0x1e3)]+'\x20'+chalk[_0x522d51(0x1c7)]('('+_0x174ed7[_0x522d51(0x219)]+')'));}}}export async function workLinksAction(_0x34fda5){const _0x29c1bb=a66_0x33b1ee,_0xee4b4d=getSDK(),_0xcdf67e=_0xee4b4d[_0x29c1bb(0x217)](_0x34fda5);!_0xcdf67e&&(console['error'](chalk['red']('Document\x20not\x20found:\x20'+_0x34fda5)),process['exit'](0x1));const _0x1a7640=_0xcdf67e['frontmatter'][_0x29c1bb(0x1e3)]||_0xcdf67e[_0x29c1bb(0x1cb)];console[_0x29c1bb(0x22b)](chalk['bold'](_0x29c1bb(0x21c)+_0x1a7640)),console[_0x29c1bb(0x22b)]();const _0x2f6b50=_0xee4b4d[_0x29c1bb(0x1c0)](_0xcdf67e[_0x29c1bb(0x1ef)]);if(_0x2f6b50[_0x29c1bb(0x1bf)]>0x0){console[_0x29c1bb(0x22b)](chalk[_0x29c1bb(0x1e5)](_0x29c1bb(0x1f2)));for(const _0x5cc0eb of _0x2f6b50){const _0x5d955b=_0x5cc0eb[_0x29c1bb(0x1c4)]?chalk[_0x29c1bb(0x221)]('\u2713'):chalk[_0x29c1bb(0x206)]('\u2717'),_0xc93a42=_0x5cc0eb['displayText']||_0x5cc0eb[_0x29c1bb(0x1e7)],_0x5bb517=_0x5cc0eb[_0x29c1bb(0x1d5)]?chalk[_0x29c1bb(0x1c7)]('\x20('+_0x5cc0eb[_0x29c1bb(0x1d5)]+')'):'';console[_0x29c1bb(0x22b)]('\x20\x20'+_0x5d955b+'\x20[['+_0xc93a42+']]'+_0x5bb517);}}else console[_0x29c1bb(0x22b)](chalk[_0x29c1bb(0x1c7)](_0x29c1bb(0x216)));console[_0x29c1bb(0x22b)]();const _0x208771=_0xee4b4d[_0x29c1bb(0x1da)](_0xcdf67e[_0x29c1bb(0x1cb)]);if(_0x208771['length']>0x0){console[_0x29c1bb(0x22b)](chalk[_0x29c1bb(0x1e5)](_0x29c1bb(0x21a)));for(const _0x29ca6a of _0x208771){console[_0x29c1bb(0x22b)](_0x29c1bb(0x207)+_0x29ca6a[_0x29c1bb(0x1e3)]+'\x20'+chalk[_0x29c1bb(0x1c7)]('('+_0x29ca6a['kind']+')'));}}else console['log'](chalk[_0x29c1bb(0x1c7)](_0x29c1bb(0x1fa)));}export async function workOpenAction(_0x2a7d64){const _0xe3a1d3=a66_0x33b1ee,_0x1bd182=getSDK(),_0xac03e5=_0x1bd182[_0xe3a1d3(0x217)](_0x2a7d64);!_0xac03e5&&(console['error'](chalk[_0xe3a1d3(0x206)](_0xe3a1d3(0x1fc)+_0x2a7d64)),process[_0xe3a1d3(0x1c1)](0x1));const _0x1c7d0b=process.env.EDITOR||'vi';try{execFileSync(_0x1c7d0b,[_0xac03e5[_0xe3a1d3(0x1be)]],{'stdio':_0xe3a1d3(0x1f8)});}catch{console[_0xe3a1d3(0x220)](chalk[_0xe3a1d3(0x206)](_0xe3a1d3(0x225)+_0x1c7d0b)),process[_0xe3a1d3(0x1c1)](0x1);}}