@lovrabet/rabetbase-cli 2.4.4-beta.1 → 2.4.4

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 (299) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/init/index.js +1 -1
  98. package/lib/commands/issue/index.js +1 -1
  99. package/lib/commands/issue/nudge.js +1 -1
  100. package/lib/commands/issue/report.js +1 -1
  101. package/lib/commands/issue/shared.js +1 -1
  102. package/lib/commands/kb/create.js +1 -1
  103. package/lib/commands/kb/delete.js +1 -1
  104. package/lib/commands/kb/detail.js +1 -1
  105. package/lib/commands/kb/index.js +1 -1
  106. package/lib/commands/kb/list.js +1 -1
  107. package/lib/commands/kb/shared.js +1 -1
  108. package/lib/commands/kb/update.js +1 -1
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/notification/config-create.js +1 -1
  135. package/lib/commands/notification/config-delete.js +1 -1
  136. package/lib/commands/notification/config-list.js +1 -1
  137. package/lib/commands/notification/config-update.js +1 -1
  138. package/lib/commands/notification/index.js +1 -1
  139. package/lib/commands/notification/shared.js +1 -1
  140. package/lib/commands/ocr/index.js +1 -1
  141. package/lib/commands/page/generate-start.js +1 -1
  142. package/lib/commands/page/generate-status.js +1 -1
  143. package/lib/commands/page/index.js +1 -1
  144. package/lib/commands/page/pull.js +1 -1
  145. package/lib/commands/page/push.js +1 -1
  146. package/lib/commands/page/react/create.js +1 -1
  147. package/lib/commands/page/react/detail.js +1 -1
  148. package/lib/commands/page/react/list.js +1 -1
  149. package/lib/commands/page/react/publish.js +1 -1
  150. package/lib/commands/page/react/shared.js +1 -1
  151. package/lib/commands/page/react/syntax.js +1 -1
  152. package/lib/commands/page/react/template.js +1 -1
  153. package/lib/commands/page/react/update.js +1 -1
  154. package/lib/commands/page/relation-audit.js +1 -1
  155. package/lib/commands/page/restore.js +1 -1
  156. package/lib/commands/page/shared.js +1 -1
  157. package/lib/commands/page/standard-page-status.js +1 -1
  158. package/lib/commands/page/sync.js +1 -1
  159. package/lib/commands/permit/index.js +1 -1
  160. package/lib/commands/permit/page-get.js +1 -1
  161. package/lib/commands/permit/page-set.js +1 -1
  162. package/lib/commands/permit/role-apis-set.js +1 -1
  163. package/lib/commands/permit/role-menus-set.js +1 -1
  164. package/lib/commands/permit/role-menus.js +1 -1
  165. package/lib/commands/permit/shared.js +1 -1
  166. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  167. package/lib/commands/project/create/format-elapsed.js +1 -1
  168. package/lib/commands/project/create/main.js +1 -1
  169. package/lib/commands/project/create/materialize-project-template.js +1 -1
  170. package/lib/commands/project/create/project-name.js +1 -1
  171. package/lib/commands/project/create/project-template-archive.js +1 -1
  172. package/lib/commands/project/create/project-template-path.js +1 -1
  173. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  174. package/lib/commands/project/create/use-format-code.js +1 -1
  175. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  176. package/lib/commands/project/index.js +1 -1
  177. package/lib/commands/project/upgrade.js +1 -1
  178. package/lib/commands/registry.js +1 -1
  179. package/lib/commands/role/create.js +1 -1
  180. package/lib/commands/role/delete.js +1 -1
  181. package/lib/commands/role/detail.js +1 -1
  182. package/lib/commands/role/index.js +1 -1
  183. package/lib/commands/role/list.js +1 -1
  184. package/lib/commands/role/shared.js +1 -1
  185. package/lib/commands/role/update.js +1 -1
  186. package/lib/commands/role/user-add.js +1 -1
  187. package/lib/commands/role/user-remove.js +1 -1
  188. package/lib/commands/role/user-resolve.js +1 -1
  189. package/lib/commands/run/index.js +1 -1
  190. package/lib/commands/schema.js +1 -1
  191. package/lib/commands/sql/create.js +1 -1
  192. package/lib/commands/sql/delete.js +1 -1
  193. package/lib/commands/sql/detail.js +1 -1
  194. package/lib/commands/sql/exec.js +1 -1
  195. package/lib/commands/sql/index.js +1 -1
  196. package/lib/commands/sql/list.js +1 -1
  197. package/lib/commands/sql/pull.js +1 -1
  198. package/lib/commands/sql/push.js +1 -1
  199. package/lib/commands/sql/shared.js +1 -1
  200. package/lib/commands/sql/status.js +1 -1
  201. package/lib/commands/sql/validate.js +1 -1
  202. package/lib/commands/task/index.js +1 -1
  203. package/lib/commands/task/status.js +1 -1
  204. package/lib/commands/tenant/index.js +1 -1
  205. package/lib/commands/tenant/members-list.js +1 -1
  206. package/lib/commands/tenant/shared.js +1 -1
  207. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  208. package/lib/commands/user-account/index.js +1 -1
  209. package/lib/commands/workspace/add.js +1 -1
  210. package/lib/commands/workspace/index.js +1 -1
  211. package/lib/commands/workspace/remove.js +1 -1
  212. package/lib/config/schema.js +1 -1
  213. package/lib/constant/cdn.js +1 -1
  214. package/lib/constant/cli.js +1 -1
  215. package/lib/constant/defaults.js +1 -1
  216. package/lib/constant/domain.js +1 -1
  217. package/lib/constant/env.js +1 -1
  218. package/lib/constant/output.js +1 -1
  219. package/lib/constant/paths.js +1 -1
  220. package/lib/constant/risk.js +1 -1
  221. package/lib/context/app-resolver.js +1 -1
  222. package/lib/context/auth-resolver.js +1 -1
  223. package/lib/context/config-loader.js +1 -1
  224. package/lib/context.js +1 -1
  225. package/lib/core/alias-resolver.js +1 -1
  226. package/lib/core/api-client.js +1 -1
  227. package/lib/core/bff/config.js +1 -1
  228. package/lib/core/bff/file-system.js +1 -1
  229. package/lib/core/bff/hash.js +1 -1
  230. package/lib/core/bff/lock.js +1 -1
  231. package/lib/core/bff/utils.js +1 -1
  232. package/lib/core/db-resolver.js +1 -1
  233. package/lib/core/page/file-system.js +1 -1
  234. package/lib/core/page/hash.js +1 -1
  235. package/lib/core/page/lock.js +1 -1
  236. package/lib/core/sql-index-auditor.js +1 -1
  237. package/lib/core/sql-sync/config.js +1 -1
  238. package/lib/core/sql-sync/file-system.js +1 -1
  239. package/lib/core/sql-sync/hash.js +1 -1
  240. package/lib/core/sql-sync/lock.js +1 -1
  241. package/lib/core/sql-sync/utils.js +1 -1
  242. package/lib/core/sql-validator.js +1 -1
  243. package/lib/errors.js +1 -1
  244. package/lib/framework/build-all-flags.js +1 -1
  245. package/lib/framework/error-output.js +1 -1
  246. package/lib/framework/explicit-yes.js +1 -1
  247. package/lib/framework/flags.js +1 -1
  248. package/lib/framework/help.js +1 -1
  249. package/lib/framework/index.js +1 -1
  250. package/lib/framework/output.js +1 -1
  251. package/lib/framework/response.js +1 -1
  252. package/lib/framework/runner-alias.js +1 -1
  253. package/lib/framework/runner.js +1 -1
  254. package/lib/framework/schema-export.js +1 -1
  255. package/lib/framework/types.js +1 -1
  256. package/lib/generated/build-info.d.ts +4 -4
  257. package/lib/generated/build-info.js +1 -1
  258. package/lib/help.js +1 -1
  259. package/lib/postinstall.js +1 -1
  260. package/lib/runtime/confirmation.js +1 -1
  261. package/lib/runtime/event.js +1 -1
  262. package/lib/runtime/index.js +1 -1
  263. package/lib/runtime/queue.js +1 -1
  264. package/lib/runtime/resolve.js +1 -1
  265. package/lib/skills/builtin-skill.js +1 -1
  266. package/lib/skills/main.js +1 -1
  267. package/lib/skills/npx-skills-add.js +1 -1
  268. package/lib/skills/skill-presence.js +1 -1
  269. package/lib/telemetry/cli-command-trace.js +1 -1
  270. package/lib/telemetry/cli-help-trace.js +1 -1
  271. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  272. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  273. package/lib/telemetry/send-cli-trace-log.js +1 -1
  274. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  275. package/lib/utils/ai_config.js +1 -1
  276. package/lib/utils/apply-jq-filter.js +1 -1
  277. package/lib/utils/cdn-config.js +1 -1
  278. package/lib/utils/check-sdk-version.js +1 -1
  279. package/lib/utils/cli-version-check.js +1 -1
  280. package/lib/utils/cli-version-policy.js +1 -1
  281. package/lib/utils/config.js +1 -1
  282. package/lib/utils/entity-with-id.js +1 -1
  283. package/lib/utils/file-utils.js +1 -1
  284. package/lib/utils/guides-cdn.js +1 -1
  285. package/lib/utils/http-client.js +1 -1
  286. package/lib/utils/is-non-interactive.js +1 -1
  287. package/lib/utils/logger.js +1 -1
  288. package/lib/utils/params.js +1 -1
  289. package/lib/utils/platform.js +1 -1
  290. package/lib/utils/rules-cdn.js +1 -1
  291. package/lib/utils/sleep.js +1 -1
  292. package/lib/utils/template-replacer.js +1 -1
  293. package/lib/utils/update-notice.js +1 -1
  294. package/lib/utils/version.js +1 -1
  295. package/lib/utils/with-active-cookie.js +1 -1
  296. package/lib/utils/write-cli-side-channel.js +1 -1
  297. package/package.json +1 -1
  298. package/skills/rabetbase/SKILL.md +1 -1
  299. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x5dab49,_0x33fd9b){const _0x15684d=a256_0x4328,_0x239bce=_0x5dab49();while(!![]){try{const _0x57f937=parseInt(_0x15684d(0x20a))/0x1*(parseInt(_0x15684d(0x21f))/0x2)+parseInt(_0x15684d(0x224))/0x3+-parseInt(_0x15684d(0x216))/0x4*(parseInt(_0x15684d(0x234))/0x5)+parseInt(_0x15684d(0x204))/0x6*(-parseInt(_0x15684d(0x1f5))/0x7)+parseInt(_0x15684d(0x223))/0x8+parseInt(_0x15684d(0x201))/0x9+-parseInt(_0x15684d(0x227))/0xa*(parseInt(_0x15684d(0x21a))/0xb);if(_0x57f937===_0x33fd9b)break;else _0x239bce['push'](_0x239bce['shift']());}catch(_0x1f1a74){_0x239bce['push'](_0x239bce['shift']());}}}(a256_0x44fe,0x256ea));function a256_0x44fe(){const _0x39cd7f=['currentApp','meowKey','21oDbPNu','schema','filter','command','some','resolve','message','replace','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','../constant/env.js','isNonInteractive','requiresAppCode','1949886ZfPPyb','appCode','includes','267846tIRigQ','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','formatOutput','format','../core/api-client.js','name','146nTDaAf','pretty','Edit\x20the\x20config\x20file\x20manually','RABETBASE_APPCODE','service','hasFormat','value','toUpperCase','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','apiDir','risk','appcode','51652vuEagS','object','find','Set\x20appcode\x20via\x20`','143LTTstb','cookie','apps','mergedCli','../constant/domain.js','1526fYzhOe','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','doctor','configMissing','1061760EWihhh','340167tnBHgP','⚠\x20\x20High-risk\x20operation:\x20','production','12110itriVv','nonInteractive','validation','explicitAppName','resolveAppCode','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','rawFlags','confirmHighRisk','catch','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','trim','hint','resolveApiDomain','105juiJRr','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','all','execute','_notice','required','High-risk\x20operation\x20`','defaultApp'];a256_0x44fe=function(){return _0x39cd7f;};return a256_0x44fe();}import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a256_0x37f04c}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x4bb4e7){const _0x2f922c=a256_0x4328;return typeof _0x4bb4e7==='string'&&_0x4bb4e7[_0x2f922c(0x231)]()?_0x4bb4e7[_0x2f922c(0x231)]():undefined;}function resolveEnvAppCode(){const _0x25ceca=a256_0x4328,_0x2d1b16=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2d1b16)return{'name':_0x25ceca(0x20d),'value':_0x2d1b16};const _0x21bc1b=stringFlag(process.env.LOVRABET_APPCODE);if(_0x21bc1b)return{'name':'LOVRABET_APPCODE','value':_0x21bc1b};return undefined;}function hasExplicitAppCode(_0x117ba9,_0x31b3cf){const _0x407f74=a256_0x4328;return!!(stringFlag(_0x117ba9[_0x407f74(0x215)])||stringFlag(_0x31b3cf[_0x407f74(0x215)]));}function assertEnvAppCodeNotIgnored(_0x3d3960,_0x4e6a12,_0x3cba4c){const _0x18f939=a256_0x4328;if(!_0x4e6a12||_0x3cba4c||_0x3d3960===_0x4e6a12[_0x18f939(0x210)])return;const _0xcc2f23=_0x3d3960?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x3d3960+'\x22.':_0x18f939(0x230);throw CliErrors[_0x18f939(0x229)](_0x4e6a12[_0x18f939(0x209)]+'='+_0x4e6a12[_0x18f939(0x210)]+_0x18f939(0x1fd)+_0xcc2f23+'\x20'+(_0x18f939(0x22c)+_0x4e6a12[_0x18f939(0x209)]+'\x22.'));}export function createPipelineEnv(_0x4f5c20,_0x6edf8a,_0x32c0ea=[]){const _0x159877=a256_0x4328;return{'rawFlags':_0x6edf8a,'args':_0x32c0ea,'resolveAppCode':()=>_0x4f5c20['appCode'],'resolveCookie':()=>_0x4f5c20[_0x159877(0x21b)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a256_0x37f04c(_0x6edf8a),'defaultFormat':_0x4f5c20[_0x159877(0x207)],'defaultPageSize':_0x4f5c20['pageSize'],'defaultVerbose':_0x4f5c20['verbose'],'apiDir':_0x4f5c20[_0x159877(0x213)],'riskLevel':_0x4f5c20['riskLevel'],'selectedAppName':_0x4f5c20[_0x159877(0x22a)],'mergedCli':{'defaultApp':_0x4f5c20[_0x159877(0x1f2)],'currentApp':_0x4f5c20[_0x159877(0x1f3)],'appCode':_0x4f5c20[_0x159877(0x202)],'apps':_0x4f5c20[_0x159877(0x21c)]}};}function a256_0x4328(_0x193dde,_0x4db04b){_0x193dde=_0x193dde-0x1ed;const _0x44fe10=a256_0x44fe();let _0x432899=_0x44fe10[_0x193dde];return _0x432899;}export function createRabetbaseRunnerAdapter(_0x18f422={}){const _0x3716ca=a256_0x4328;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3716ca(0x1f7)](_0x1ff8bd=>PIPELINE_FLAG_NAMES['has'](_0x1ff8bd[_0x3716ca(0x209)]))['map'](({name:_0x3c4e45,type:_0x542dbd,description:_0x19d1ee})=>({'name':_0x3c4e45,'type':_0x542dbd,'description':_0x19d1ee})),'formatOutput':_0x18f422[_0x3716ca(0x206)]??formatOutput,'getCommandLabel'(_0x13d143){const _0x389de2=_0x3716ca;return CLI_BIN_NAME+'\x20'+_0x13d143[_0x389de2(0x20e)]+'\x20'+_0x13d143[_0x389de2(0x1f8)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1a09b3,{def:_0x25645f}){const _0xcf0fd9=_0x3716ca,_0x378fd7=_0x1a09b3[_0xcf0fd9(0x203)](_0xcf0fd9(0x20c))?_0xcf0fd9(0x235):_0xcf0fd9(0x220)+_0x25645f[_0xcf0fd9(0x214)]+_0xcf0fd9(0x205)+_0xcf0fd9(0x235);return CliErrors['validation'](_0x1a09b3+'\x0a\x20\x20'+_0x378fd7);}},async 'prepare'(_0x476cf6,_0x4ee446,_0x3429eb,_0x9b280){const _0x378927=_0x3716ca,_0x1c6d08=_0x4ee446['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x476cf6,_0x3429eb,_0x1c6d08,_0x9b280);const _0xf2e77d=resolveCommandAuthMode(_0x476cf6);let _0x3efe61='';if(_0xf2e77d!=='none'){_0x3efe61=_0x4ee446['resolveCookie']()||'';if(!_0x3efe61){if(_0xf2e77d===_0x378927(0x1f0))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x6d6ecc}=await import(_0x378927(0x208));_0x6d6ecc(_0x3efe61);}}const _0x4b07e5=_0x4ee446[_0x378927(0x22b)]()??'';if(_0x476cf6[_0x378927(0x200)]!==![]){assertEnvAppCodeNotIgnored(_0x4b07e5,resolveEnvAppCode(),hasExplicitAppCode(_0x3429eb,_0x4ee446[_0x378927(0x22d)]));if(!_0x4b07e5)throw CliErrors[_0x378927(0x222)](_0x378927(0x219)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x4ee446['defaultVerbose']},'numbers':{'pagesize':_0x4ee446['defaultPageSize']}},'extras':{'appCode':_0x4b07e5,'cookie':_0x3efe61,'apiDomain':_0x4ee446[_0x378927(0x233)](),'apiDir':_0x1c6d08,'selectedAppName':_0x4ee446['selectedAppName'],'mergedCli':_0x4ee446[_0x378927(0x21d)]}};},'confirmHighRisk':_0x18f422[_0x3716ca(0x22e)]??(async({env:_0xed2c0b,commandLabel:_0x5cecb0})=>{const _0x12abdf=_0x3716ca;if(_0xed2c0b[_0x12abdf(0x1ff)])throw CliErrors[_0x12abdf(0x229)](_0x12abdf(0x1f1)+_0x5cecb0+_0x12abdf(0x212));await requireConfirmationPrompt({'lines':[_0x12abdf(0x225)+_0x5cecb0,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0xc6845d=>CliErrors['cancelled'](_0xc6845d)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const _0x43cea7=a256_0x4328,{clearActiveCookie:_0xa8f674}=await import(_0x43cea7(0x208));_0xa8f674();}export async function finalizeRabetbaseRuntimeState(){const _0x555e75=a256_0x4328;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x4124dd},{initEnv:_0x5e933f}]=await Promise[_0x555e75(0x1ed)]([import(_0x555e75(0x21e)),import(_0x555e75(0x1fe))]);_0x4124dd(),_0x5e933f(_0x555e75(0x226));}}export async function runCommand(_0x25cb4b,_0xb2a08a,_0x44e0eb=terminalRunnerAdapter){assertRejectedFlags(_0x25cb4b,_0xb2a08a['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x25cb4b)?withUpdateNotice(_0x25cb4b):_0x25cb4b,_0xb2a08a,_0x44e0eb);}function assertRejectedFlags(_0x11573c,_0x16a554){const _0x456f0b=a256_0x4328;for(const _0x316728 of _0x11573c['rejectedFlags']??[]){const _0x21fb99=GLOBAL_FLAGS[_0x456f0b(0x218)](_0x45de14=>_0x45de14[_0x456f0b(0x209)]===_0x316728[_0x456f0b(0x209)]),_0x109667=new Set([_0x316728[_0x456f0b(0x209)],toCamelCase(_0x316728[_0x456f0b(0x209)]),_0x21fb99?.[_0x456f0b(0x1f4)]]),_0x3afc0f=[..._0x109667][_0x456f0b(0x1f9)](_0x4eb51e=>{if(!_0x4eb51e)return![];const _0x1a6b5c=_0x16a554[_0x4eb51e];return _0x1a6b5c!==undefined&&_0x1a6b5c!==null&&_0x1a6b5c!==![];});if(_0x3afc0f)throw CliErrors[_0x456f0b(0x229)](_0x316728[_0x456f0b(0x1fb)],_0x316728[_0x456f0b(0x232)]);}}function toCamelCase(_0x1bdeba){const _0x5094c6=a256_0x4328;return _0x1bdeba[_0x5094c6(0x1fc)](/-([a-z])/g,(_0x2d1e4d,_0x16eadc)=>_0x16eadc[_0x5094c6(0x211)]());}function shouldAttachUpdateNotice(_0x15e883){const _0x30f5c=a256_0x4328;if(_0x15e883[_0x30f5c(0x20f)]===![])return![];return!['update',_0x30f5c(0x1f6),_0x30f5c(0x221)][_0x30f5c(0x203)](_0x15e883[_0x30f5c(0x20e)]);}function withUpdateNotice(_0x1e03a2){return{..._0x1e03a2,async 'execute'(_0x2b5639){const _0x1d1ef3=a256_0x4328,_0x39b602=shouldResolveUpdateNotice(_0x2b5639)?resolveLatestUpdateNotice()[_0x1d1ef3(0x22f)](()=>null):Promise[_0x1d1ef3(0x1fa)](null),_0x359748=await _0x1e03a2[_0x1d1ef3(0x1ee)](_0x2b5639);return attachUpdateNotice(_0x359748,await _0x39b602);}};}function shouldResolveUpdateNotice(_0xfd6729){const _0x25e029=a256_0x4328;return _0xfd6729[_0x25e029(0x207)]===_0x25e029(0x20b)&&!_0xfd6729[_0x25e029(0x228)];}function attachUpdateNotice(_0x15790c,_0x2c1ee2){const _0x325286=a256_0x4328;if(!_0x2c1ee2||!_0x15790c||typeof _0x15790c!==_0x325286(0x217))return _0x15790c;const _0x4ac5b5=_0x15790c,_0x19f35e=typeof _0x4ac5b5[_0x325286(0x1ef)]==='object'&&_0x4ac5b5[_0x325286(0x1ef)]!==null?_0x4ac5b5[_0x325286(0x1ef)]:{};return{..._0x4ac5b5,'_notice':{..._0x19f35e,'update':_0x2c1ee2}};}
1
+ (function(_0x3a077f,_0x1d63fe){const _0x3a6ae3=a256_0x1ad6,_0x49f393=_0x3a077f();while(!![]){try{const _0x3fe781=-parseInt(_0x3a6ae3(0x14e))/0x1*(parseInt(_0x3a6ae3(0x143))/0x2)+parseInt(_0x3a6ae3(0x172))/0x3*(parseInt(_0x3a6ae3(0x183))/0x4)+-parseInt(_0x3a6ae3(0x188))/0x5+parseInt(_0x3a6ae3(0x15d))/0x6*(-parseInt(_0x3a6ae3(0x166))/0x7)+-parseInt(_0x3a6ae3(0x177))/0x8*(parseInt(_0x3a6ae3(0x169))/0x9)+parseInt(_0x3a6ae3(0x151))/0xa*(parseInt(_0x3a6ae3(0x146))/0xb)+parseInt(_0x3a6ae3(0x176))/0xc;if(_0x3fe781===_0x1d63fe)break;else _0x49f393['push'](_0x49f393['shift']());}catch(_0x2fffdd){_0x49f393['push'](_0x49f393['shift']());}}}(a256_0x2f24,0x83032));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a256_0x506984}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x53ee79){const _0x26e68c=a256_0x1ad6;return typeof _0x53ee79===_0x26e68c(0x187)&&_0x53ee79[_0x26e68c(0x17e)]()?_0x53ee79['trim']():undefined;}function resolveEnvAppCode(){const _0x3696f1=stringFlag(process.env.RABETBASE_APPCODE);if(_0x3696f1)return{'name':'RABETBASE_APPCODE','value':_0x3696f1};const _0x30a631=stringFlag(process.env.LOVRABET_APPCODE);if(_0x30a631)return{'name':'LOVRABET_APPCODE','value':_0x30a631};return undefined;}function hasExplicitAppCode(_0x234c6d,_0x10f386){const _0xf2ba5=a256_0x1ad6;return!!(stringFlag(_0x234c6d[_0xf2ba5(0x180)])||stringFlag(_0x10f386[_0xf2ba5(0x180)]));}function assertEnvAppCodeNotIgnored(_0x2abcb9,_0x515a41,_0x4bc25d){const _0x31e59f=a256_0x1ad6;if(!_0x515a41||_0x4bc25d||_0x2abcb9===_0x515a41[_0x31e59f(0x156)])return;const _0x378bd8=_0x2abcb9?_0x31e59f(0x167)+_0x2abcb9+'\x22.':_0x31e59f(0x18b);throw CliErrors[_0x31e59f(0x141)](_0x515a41[_0x31e59f(0x154)]+'='+_0x515a41[_0x31e59f(0x156)]+_0x31e59f(0x182)+_0x378bd8+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x515a41[_0x31e59f(0x154)]+'\x22.'));}export function createPipelineEnv(_0x1713bf,_0x151acc,_0x2da48b=[]){const _0x5a8818=a256_0x1ad6;return{'rawFlags':_0x151acc,'args':_0x2da48b,'resolveAppCode':()=>_0x1713bf['appCode'],'resolveCookie':()=>_0x1713bf['cookie']||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a256_0x506984(_0x151acc),'defaultFormat':_0x1713bf[_0x5a8818(0x145)],'defaultPageSize':_0x1713bf['pageSize'],'defaultVerbose':_0x1713bf['verbose'],'apiDir':_0x1713bf[_0x5a8818(0x142)],'riskLevel':_0x1713bf[_0x5a8818(0x14f)],'selectedAppName':_0x1713bf['explicitAppName'],'mergedCli':{'defaultApp':_0x1713bf[_0x5a8818(0x149)],'currentApp':_0x1713bf[_0x5a8818(0x17d)],'appCode':_0x1713bf[_0x5a8818(0x189)],'apps':_0x1713bf['apps']}};}export function createRabetbaseRunnerAdapter(_0x3c4081={}){const _0x126d63=a256_0x1ad6;return{'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x126d63(0x17c)](_0xb3c236=>PIPELINE_FLAG_NAMES[_0x126d63(0x15b)](_0xb3c236[_0x126d63(0x154)]))[_0x126d63(0x18a)](({name:_0x1e20f1,type:_0x4be2c5,description:_0x52c05b})=>({'name':_0x1e20f1,'type':_0x4be2c5,'description':_0x52c05b})),'formatOutput':_0x3c4081[_0x126d63(0x14d)]??formatOutput,'getCommandLabel'(_0x2a5602){const _0x55aede=_0x126d63;return CLI_BIN_NAME+'\x20'+_0x2a5602[_0x55aede(0x162)]+'\x20'+_0x2a5602[_0x55aede(0x16e)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x47a4b8,{def:_0x1163ae}){const _0x15abed=_0x126d63,_0x5ee472=_0x47a4b8[_0x15abed(0x147)](_0x15abed(0x15a))?_0x15abed(0x17f):_0x15abed(0x144)+_0x1163ae[_0x15abed(0x181)]+_0x15abed(0x171)+_0x15abed(0x17f);return CliErrors['validation'](_0x47a4b8+_0x15abed(0x14b)+_0x5ee472);}},async 'prepare'(_0x213a46,_0x4eaa29,_0x2f2ab9,_0x553791){const _0x3c87e8=_0x126d63,_0x1adf87=_0x4eaa29[_0x3c87e8(0x142)]||DEFAULT_API_DIR;resolveAliasToCode(_0x213a46,_0x2f2ab9,_0x1adf87,_0x553791);const _0x5db958=resolveCommandAuthMode(_0x213a46);let _0xcdcaa6='';if(_0x5db958!==_0x3c87e8(0x158)){_0xcdcaa6=_0x4eaa29[_0x3c87e8(0x159)]()||'';if(!_0xcdcaa6){if(_0x5db958==='required')throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x257d94}=await import(_0x3c87e8(0x16a));_0x257d94(_0xcdcaa6);}}const _0x322877=_0x4eaa29[_0x3c87e8(0x164)]()??'';if(_0x213a46[_0x3c87e8(0x157)]!==![]){assertEnvAppCodeNotIgnored(_0x322877,resolveEnvAppCode(),hasExplicitAppCode(_0x2f2ab9,_0x4eaa29[_0x3c87e8(0x160)]));if(!_0x322877)throw CliErrors[_0x3c87e8(0x186)](_0x3c87e8(0x174)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x4eaa29[_0x3c87e8(0x148)]},'numbers':{'pagesize':_0x4eaa29['defaultPageSize']}},'extras':{'appCode':_0x322877,'cookie':_0xcdcaa6,'apiDomain':_0x4eaa29[_0x3c87e8(0x155)](),'apiDir':_0x1adf87,'selectedAppName':_0x4eaa29[_0x3c87e8(0x170)],'mergedCli':_0x4eaa29[_0x3c87e8(0x18c)]}};},'confirmHighRisk':_0x3c4081[_0x126d63(0x153)]??(async({env:_0x294f3d,commandLabel:_0x3b97c4})=>{const _0x27a4b2=_0x126d63;if(_0x294f3d[_0x27a4b2(0x184)])throw CliErrors[_0x27a4b2(0x141)](_0x27a4b2(0x15f)+_0x3b97c4+_0x27a4b2(0x161));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x3b97c4,_0x27a4b2(0x173)],'createCancelledError':_0x74d086=>CliErrors['cancelled'](_0x74d086)});}),async 'finalize'(){await clearRabetbaseCommandState();}};}const terminalRunnerAdapter=createRabetbaseRunnerAdapter();async function clearRabetbaseCommandState(){const {clearActiveCookie:_0x1ca021}=await import('../core/api-client.js');_0x1ca021();}export async function finalizeRabetbaseRuntimeState(){const _0x260c36=a256_0x1ad6;try{await clearRabetbaseCommandState();}finally{const [{initDomains:_0x5d57cf},{initEnv:_0x4fe23c}]=await Promise['all']([import(_0x260c36(0x165)),import(_0x260c36(0x178))]);_0x5d57cf(),_0x4fe23c('production');}}export async function runCommand(_0x25cc5f,_0xd72204,_0x5b4002=terminalRunnerAdapter){assertRejectedFlags(_0x25cc5f,_0xd72204['rawFlags']),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x25cc5f)?withUpdateNotice(_0x25cc5f):_0x25cc5f,_0xd72204,_0x5b4002);}function assertRejectedFlags(_0x41608b,_0x984341){const _0x2303e6=a256_0x1ad6;for(const _0x3e3d48 of _0x41608b[_0x2303e6(0x16f)]??[]){const _0x85a272=GLOBAL_FLAGS[_0x2303e6(0x15e)](_0x5cc2b5=>_0x5cc2b5[_0x2303e6(0x154)]===_0x3e3d48[_0x2303e6(0x154)]),_0x3422ba=new Set([_0x3e3d48['name'],toCamelCase(_0x3e3d48['name']),_0x85a272?.['meowKey']]),_0x6fc0d9=[..._0x3422ba][_0x2303e6(0x16c)](_0x5a82c7=>{if(!_0x5a82c7)return![];const _0x2a1fb0=_0x984341[_0x5a82c7];return _0x2a1fb0!==undefined&&_0x2a1fb0!==null&&_0x2a1fb0!==![];});if(_0x6fc0d9)throw CliErrors[_0x2303e6(0x141)](_0x3e3d48[_0x2303e6(0x15c)],_0x3e3d48['hint']);}}function toCamelCase(_0x161c90){const _0x44b3b0=a256_0x1ad6;return _0x161c90[_0x44b3b0(0x14c)](/-([a-z])/g,(_0x13f4d8,_0x119812)=>_0x119812[_0x44b3b0(0x185)]());}function shouldAttachUpdateNotice(_0xce4622){const _0x37d822=a256_0x1ad6;if(_0xce4622[_0x37d822(0x179)]===![])return![];return![_0x37d822(0x16d),_0x37d822(0x163),_0x37d822(0x175)][_0x37d822(0x147)](_0xce4622[_0x37d822(0x162)]);}function withUpdateNotice(_0xe47951){return{..._0xe47951,async 'execute'(_0x297519){const _0x17dc24=a256_0x1ad6,_0x4b922a=shouldResolveUpdateNotice(_0x297519)?resolveLatestUpdateNotice()[_0x17dc24(0x152)](()=>null):Promise[_0x17dc24(0x17a)](null),_0x45e4e5=await _0xe47951[_0x17dc24(0x17b)](_0x297519);return attachUpdateNotice(_0x45e4e5,await _0x4b922a);}};}function shouldResolveUpdateNotice(_0x38785d){const _0x2d7c69=a256_0x1ad6;return _0x38785d[_0x2d7c69(0x145)]===_0x2d7c69(0x14a)&&!_0x38785d[_0x2d7c69(0x16b)];}function a256_0x1ad6(_0xbf5197,_0x271cb2){_0xbf5197=_0xbf5197-0x141;const _0x2f2478=a256_0x2f24();let _0x1ad6cc=_0x2f2478[_0xbf5197];return _0x1ad6cc;}function attachUpdateNotice(_0x9cda97,_0x204ef8){const _0x1f9763=a256_0x1ad6;if(!_0x204ef8||!_0x9cda97||typeof _0x9cda97!==_0x1f9763(0x150))return _0x9cda97;const _0x30363e=_0x9cda97,_0x823711=typeof _0x30363e[_0x1f9763(0x168)]==='object'&&_0x30363e[_0x1f9763(0x168)]!==null?_0x30363e[_0x1f9763(0x168)]:{};return{..._0x30363e,'_notice':{..._0x823711,'update':_0x204ef8}};}function a256_0x2f24(){const _0x33bfce=['resolve','execute','filter','currentApp','trim','AI\x20Agents\x20and\x20automated\x20scripts\x20must\x20not\x20modify\x20riskLevel\x20or\x20attempt\x20to\x20elevate\x20it.','appcode','risk','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','208zAfpyd','isNonInteractive','toUpperCase','configMissing','string','3943645xjSqAM','appCode','map','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','mergedCli','validation','apiDir','2MxmcPu','A\x20human\x20user\x20may\x20review\x20the\x20active\x20risk\x20ceilings\x20and\x20manually\x20edit\x20the\x20applicable\x20.rabetbase.json\x20file\x20to\x20set\x20riskLevel\x20to\x20\x22','format','735438FfLxdM','includes','defaultVerbose','defaultApp','pretty','\x0a\x20\x20','replace','formatOutput','332392DHNjzm','riskLevel','object','110ApdiKu','catch','confirmHighRisk','name','resolveApiDomain','value','requiresAppCode','none','resolveCookie','Edit\x20the\x20config\x20file\x20manually','has','message','56976ZbcTTa','find','High-risk\x20operation\x20`','rawFlags','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','service','schema','resolveAppCode','../constant/domain.js','315wnyVAg','Current\x20resolved\x20appcode\x20is\x20\x22','_notice','378KdPtzF','../core/api-client.js','nonInteractive','some','update','command','rejectedFlags','selectedAppName','\x22\x20if\x20this\x20operation\x20is\x20intended.\x20','41142sJbMhw','\x20\x20\x20Continue?\x20[y/N]\x20','Set\x20appcode\x20via\x20`','doctor','17316828TmMvQX','153632inMWLP','../constant/env.js','hasFormat'];a256_0x2f24=function(){return _0x33bfce;};return a256_0x2f24();}
@@ -1 +1 @@
1
- (function(_0x1abd03,_0x164b0d){const _0x578dbb=a257_0x34d2,_0x301757=_0x1abd03();while(!![]){try{const _0x2cea8f=parseInt(_0x578dbb(0xd8))/0x1+-parseInt(_0x578dbb(0xd7))/0x2*(parseInt(_0x578dbb(0xda))/0x3)+parseInt(_0x578dbb(0xdc))/0x4+-parseInt(_0x578dbb(0xd9))/0x5*(-parseInt(_0x578dbb(0xe1))/0x6)+parseInt(_0x578dbb(0xdb))/0x7+parseInt(_0x578dbb(0xdf))/0x8*(-parseInt(_0x578dbb(0xde))/0x9)+-parseInt(_0x578dbb(0xe0))/0xa*(-parseInt(_0x578dbb(0xd6))/0xb);if(_0x2cea8f===_0x164b0d)break;else _0x301757['push'](_0x301757['shift']());}catch(_0x2140e4){_0x301757['push'](_0x301757['shift']());}}}(a257_0x4d6d,0x2d2b2));function a257_0x34d2(_0x1a98f2,_0x328a86){_0x1a98f2=_0x1a98f2-0xd6;const _0x4d6d04=a257_0x4d6d();let _0x34d2e7=_0x4d6d04[_0x1a98f2];return _0x34d2e7;}import{buildSchemaPayload as a257_0x37e912}from'@lovrabet/cli-framework';function a257_0x4d6d(){const _0x31c43c=['8035yernlo','39615TcSMRO','1711024noqiwK','217344kGHoyh','../commands/registry.js','350307kasMem','40brWSMH','2353970wdrxqX','6ftmRRr','11ouesPx','36gJcJVp','81543ffRMkX'];a257_0x4d6d=function(){return _0x31c43c;};return a257_0x4d6d();}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x593d2d=a257_0x34d2,{serviceRegistry:_0xfaff17,findDefinition:_0x233c85}=await import(_0x593d2d(0xdd));return a257_0x37e912({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xfaff17,'buildAllFlags':buildAllFlags,'findDefinition':_0x233c85});}
1
+ (function(_0xc286d,_0x7d99fc){const _0x262379=a257_0x2095,_0x4807c9=_0xc286d();while(!![]){try{const _0x3e03f0=-parseInt(_0x262379(0xf4))/0x1*(parseInt(_0x262379(0xf6))/0x2)+-parseInt(_0x262379(0xea))/0x3*(-parseInt(_0x262379(0xf1))/0x4)+parseInt(_0x262379(0xf3))/0x5*(parseInt(_0x262379(0xf0))/0x6)+parseInt(_0x262379(0xef))/0x7*(-parseInt(_0x262379(0xeb))/0x8)+-parseInt(_0x262379(0xec))/0x9*(-parseInt(_0x262379(0xf5))/0xa)+-parseInt(_0x262379(0xee))/0xb+parseInt(_0x262379(0xe9))/0xc*(parseInt(_0x262379(0xf2))/0xd);if(_0x3e03f0===_0x7d99fc)break;else _0x4807c9['push'](_0x4807c9['shift']());}catch(_0x45eb2c){_0x4807c9['push'](_0x4807c9['shift']());}}}(a257_0x1bd3,0xd1404));import{buildSchemaPayload as a257_0x446e2a}from'@lovrabet/cli-framework';function a257_0x1bd3(){const _0x3a16eb=['1818580VzsACi','21509316izmwYL','19185dKHFqn','16aebfDh','99rzZcfP','../commands/registry.js','10974018KbGQvv','924581cHDpmh','66VDvrWL','256vSAvnT','13YrkSpY','67330isvoHc','1ISNyCc','616670sDqaXh'];a257_0x1bd3=function(){return _0x3a16eb;};return a257_0x1bd3();}import{buildAllFlags}from'../framework/build-all-flags.js';function a257_0x2095(_0x2a64e8,_0x33be4f){_0x2a64e8=_0x2a64e8-0xe9;const _0x1bd397=a257_0x1bd3();let _0x2095ce=_0x1bd397[_0x2a64e8];return _0x2095ce;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x36f9a8=a257_0x2095,{serviceRegistry:_0x2446ee,findDefinition:_0x34a16a}=await import(_0x36f9a8(0xed));return a257_0x446e2a({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2446ee,'buildAllFlags':buildAllFlags,'findDefinition':_0x34a16a});}
@@ -1 +1 @@
1
- (function(_0xc7ead,_0x1e10ec){var _0x861582=a258_0x5b42,_0x34398c=_0xc7ead();while(!![]){try{var _0x4e1363=-parseInt(_0x861582(0xe0))/0x1+parseInt(_0x861582(0xde))/0x2*(-parseInt(_0x861582(0xe7))/0x3)+parseInt(_0x861582(0xe1))/0x4*(-parseInt(_0x861582(0xe6))/0x5)+parseInt(_0x861582(0xdf))/0x6*(parseInt(_0x861582(0xe4))/0x7)+-parseInt(_0x861582(0xdd))/0x8*(-parseInt(_0x861582(0xe8))/0x9)+-parseInt(_0x861582(0xe3))/0xa*(parseInt(_0x861582(0xe5))/0xb)+parseInt(_0x861582(0xe2))/0xc;if(_0x4e1363===_0x1e10ec)break;else _0x34398c['push'](_0x34398c['shift']());}catch(_0x285eb8){_0x34398c['push'](_0x34398c['shift']());}}}(a258_0x720a,0x33907));function a258_0x5b42(_0x7043a8,_0x3767e4){_0x7043a8=_0x7043a8-0xdd;var _0x720a10=a258_0x720a();var _0x5b42b5=_0x720a10[_0x7043a8];return _0x5b42b5;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';function a258_0x720a(){var _0x9e43ff=['11bNdwdF','420120BYimxZ','5562MnSrqp','578727lZUGMo','40NNCIIG','164aIgXwJ','17754fIobDa','171036OKRkyv','4SIEOhN','5043156iprYaF','1708270PwrnQr','112OYvdye'];a258_0x720a=function(){return _0x9e43ff;};return a258_0x720a();}
1
+ (function(_0x18b2cb,_0x2d80e2){var _0x413523=a258_0x29ae,_0x30959c=_0x18b2cb();while(!![]){try{var _0x4eff51=-parseInt(_0x413523(0x185))/0x1+parseInt(_0x413523(0x186))/0x2+-parseInt(_0x413523(0x17e))/0x3+-parseInt(_0x413523(0x181))/0x4*(parseInt(_0x413523(0x184))/0x5)+-parseInt(_0x413523(0x17f))/0x6*(parseInt(_0x413523(0x187))/0x7)+-parseInt(_0x413523(0x183))/0x8*(-parseInt(_0x413523(0x182))/0x9)+parseInt(_0x413523(0x180))/0xa;if(_0x4eff51===_0x2d80e2)break;else _0x30959c['push'](_0x30959c['shift']());}catch(_0x3b100b){_0x30959c['push'](_0x30959c['shift']());}}}(a258_0x1c7f,0x7c3ac));function a258_0x1c7f(){var _0x5ba654=['2396880KkoaLA','694115PZndwE','1525000xQwDcR','1680763OuIXbg','2051640AlTmuy','24ccKdbg','29260950UtCCVP','8kPmbkO','162CdKeKG','52192PaTYif'];a258_0x1c7f=function(){return _0x5ba654;};return a258_0x1c7f();}function a258_0x29ae(_0x1ee517,_0x408433){_0x1ee517=_0x1ee517-0x17e;var _0x1c7ff6=a258_0x1c7f();var _0x29ae51=_0x1c7ff6[_0x1ee517];return _0x29ae51;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "2.4.4-beta.1";
2
- export declare const GIT_TAG = "v2.4.4-beta.1";
3
- export declare const GIT_COMMIT = "1b10e7b";
4
- export declare const BUILD_TIME = "2026-08-13T15:01:35.712Z";
1
+ export declare const VERSION = "2.4.4";
2
+ export declare const GIT_TAG = "v2.4.4";
3
+ export declare const GIT_COMMIT = "5fcab74";
4
+ export declare const BUILD_TIME = "2026-08-13T15:07:29.562Z";
@@ -1 +1 @@
1
- const a259_0x108711=a259_0x3b76;function a259_0x291c(){const _0x3f475a=['8896096ionQyd','2026-08-13T15:01:35.712Z','3648lPZZIC','561puYPes','v2.4.4-beta.1','16808twAdJx','354CbgYIA','112dJbfRf','5642920uuhWrK','354080TwXYOH','1519070ELvxuA','60gBoDBB','2.4.4-beta.1','1b10e7b','117711WQjoso'];a259_0x291c=function(){return _0x3f475a;};return a259_0x291c();}(function(_0x170745,_0x182e0e){const _0x2055e9=a259_0x3b76,_0x3a16ce=_0x170745();while(!![]){try{const _0x1f177a=parseInt(_0x2055e9(0x13d))/0x1*(-parseInt(_0x2055e9(0x132))/0x2)+-parseInt(_0x2055e9(0x12f))/0x3*(-parseInt(_0x2055e9(0x131))/0x4)+-parseInt(_0x2055e9(0x135))/0x5*(parseInt(_0x2055e9(0x137))/0x6)+-parseInt(_0x2055e9(0x136))/0x7+parseInt(_0x2055e9(0x133))/0x8*(-parseInt(_0x2055e9(0x13a))/0x9)+parseInt(_0x2055e9(0x134))/0xa+parseInt(_0x2055e9(0x13b))/0xb;if(_0x1f177a===_0x182e0e)break;else _0x3a16ce['push'](_0x3a16ce['shift']());}catch(_0x5a3ae1){_0x3a16ce['push'](_0x3a16ce['shift']());}}}(a259_0x291c,0x62d5e));function a259_0x3b76(_0x5a5942,_0x384f2b){_0x5a5942=_0x5a5942-0x12f;const _0x291c04=a259_0x291c();let _0x3b76bb=_0x291c04[_0x5a5942];return _0x3b76bb;}export const VERSION=a259_0x108711(0x138);export const GIT_TAG=a259_0x108711(0x130);export const GIT_COMMIT=a259_0x108711(0x139);export const BUILD_TIME=a259_0x108711(0x13c);
1
+ const a259_0x5ef986=a259_0x2139;(function(_0x14ec95,_0x1696ee){const _0x5ed029=a259_0x2139,_0x2ee1d9=_0x14ec95();while(!![]){try{const _0x30ec4f=parseInt(_0x5ed029(0x114))/0x1*(-parseInt(_0x5ed029(0x112))/0x2)+-parseInt(_0x5ed029(0x111))/0x3+-parseInt(_0x5ed029(0x119))/0x4+parseInt(_0x5ed029(0x116))/0x5+parseInt(_0x5ed029(0x11c))/0x6+-parseInt(_0x5ed029(0x113))/0x7*(-parseInt(_0x5ed029(0x11a))/0x8)+parseInt(_0x5ed029(0x11b))/0x9*(parseInt(_0x5ed029(0x118))/0xa);if(_0x30ec4f===_0x1696ee)break;else _0x2ee1d9['push'](_0x2ee1d9['shift']());}catch(_0x6ef059){_0x2ee1d9['push'](_0x2ee1d9['shift']());}}}(a259_0x5b1d,0x4403f));export const VERSION=a259_0x5ef986(0x110);function a259_0x2139(_0x2cbe96,_0x4d4ee7){_0x2cbe96=_0x2cbe96-0x110;const _0x5b1d01=a259_0x5b1d();let _0x213943=_0x5b1d01[_0x2cbe96];return _0x213943;}export const GIT_TAG='v2.4.4';export const GIT_COMMIT=a259_0x5ef986(0x115);function a259_0x5b1d(){const _0x5d4e13=['2YymgQk','7twYiaW','530191INvCxQ','5fcab74','1236035qTEOOs','2026-08-13T15:07:29.562Z','209810fpRwmd','1494112HgBBhk','1502608QGeheX','360NuRlZo','1445352QgXvFQ','2.4.4','998565VkuKXl'];a259_0x5b1d=function(){return _0x5d4e13;};return a259_0x5b1d();}export const BUILD_TIME=a259_0x5ef986(0x117);
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- function a260_0x21a1(_0x3f6ec6,_0x251dc6){_0x3f6ec6=_0x3f6ec6-0x17a;var _0x285699=a260_0x2856();var _0x21a15a=_0x285699[_0x3f6ec6];return _0x21a15a;}(function(_0x1e95c1,_0x92c647){var _0x2b99aa=a260_0x21a1,_0x563f3f=_0x1e95c1();while(!![]){try{var _0x2dec95=parseInt(_0x2b99aa(0x183))/0x1*(parseInt(_0x2b99aa(0x17d))/0x2)+-parseInt(_0x2b99aa(0x17e))/0x3+-parseInt(_0x2b99aa(0x180))/0x4+parseInt(_0x2b99aa(0x17f))/0x5*(-parseInt(_0x2b99aa(0x17b))/0x6)+parseInt(_0x2b99aa(0x186))/0x7+parseInt(_0x2b99aa(0x184))/0x8+parseInt(_0x2b99aa(0x17c))/0x9;if(_0x2dec95===_0x92c647)break;else _0x563f3f['push'](_0x563f3f['shift']());}catch(_0x23f0f3){_0x563f3f['push'](_0x563f3f['shift']());}}}(a260_0x2856,0x8011a));import a260_0x405580 from'chalk';function a260_0x2856(){var _0x40cf5d=['log','\x20to\x20view\x20available\x20commands.','1038znxdGq','6659512IsRAhq','bold','15778CSReLU','\x20--help','green','4612506hCRLDZ','16162884lxQvkN','358BhelkX','2119530HilYpG','5QJZnil','3266160mkzgrs'];a260_0x2856=function(){return _0x40cf5d;};return a260_0x2856();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x131458=a260_0x21a1;console['log'](),console[_0x131458(0x181)](a260_0x405580[_0x131458(0x17a)][_0x131458(0x185)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x131458(0x181)](),console[_0x131458(0x181)]('\x20\x20Use\x20'+a260_0x405580[_0x131458(0x17a)][_0x131458(0x185)](CLI_BIN_NAME+_0x131458(0x187))+_0x131458(0x182)),console[_0x131458(0x181)]();}
1
+ (function(_0x171eea,_0x49217d){var _0x59a5cc=a260_0x2acf,_0x2af819=_0x171eea();while(!![]){try{var _0xe41107=-parseInt(_0x59a5cc(0x124))/0x1+-parseInt(_0x59a5cc(0x12e))/0x2*(-parseInt(_0x59a5cc(0x12b))/0x3)+-parseInt(_0x59a5cc(0x12c))/0x4+parseInt(_0x59a5cc(0x125))/0x5*(parseInt(_0x59a5cc(0x123))/0x6)+parseInt(_0x59a5cc(0x126))/0x7*(parseInt(_0x59a5cc(0x131))/0x8)+parseInt(_0x59a5cc(0x122))/0x9*(-parseInt(_0x59a5cc(0x12f))/0xa)+-parseInt(_0x59a5cc(0x128))/0xb*(-parseInt(_0x59a5cc(0x12d))/0xc);if(_0xe41107===_0x49217d)break;else _0x2af819['push'](_0x2af819['shift']());}catch(_0x2382d4){_0x2af819['push'](_0x2af819['shift']());}}}(a260_0x531a,0xd9aeb));function a260_0x531a(){var _0x5c5905=['234GOXQmV','1672970wnqVGj','\x20to\x20view\x20available\x20commands.','320ISQKVK','\x20--help','90NZoasT','2663988nLvUig','793254rSUqJG','10FbwVIm','19201vdNZDO','log','1760xGfXDP','bold','green','15btXpbf','6064520EIcDSh','290676UhMvqd'];a260_0x531a=function(){return _0x5c5905;};return a260_0x531a();}import a260_0x5a4b28 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a260_0x2acf(_0x5d8ba5,_0x230d7f){_0x5d8ba5=_0x5d8ba5-0x122;var _0x531a52=a260_0x531a();var _0x2acfb6=_0x531a52[_0x5d8ba5];return _0x2acfb6;}export function showHelp(){var _0xe67da2=a260_0x2acf;console[_0xe67da2(0x127)](),console[_0xe67da2(0x127)](a260_0x5a4b28['green'][_0xe67da2(0x129)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0xe67da2(0x127)](),console['log']('\x20\x20Use\x20'+a260_0x5a4b28[_0xe67da2(0x12a)][_0xe67da2(0x129)](CLI_BIN_NAME+_0xe67da2(0x132))+_0xe67da2(0x130)),console[_0xe67da2(0x127)]();}
@@ -1 +1 @@
1
- function a261_0x2e61(_0x2caa1e,_0x3d7efd){_0x2caa1e=_0x2caa1e-0x1c6;const _0xcc30ba=a261_0xcc30();let _0x2e61cd=_0xcc30ba[_0x2caa1e];return _0x2e61cd;}(function(_0x21f649,_0x515113){const _0x548fc8=a261_0x2e61,_0x2b4d62=_0x21f649();while(!![]){try{const _0x4f256b=parseInt(_0x548fc8(0x1d7))/0x1+-parseInt(_0x548fc8(0x1cd))/0x2+parseInt(_0x548fc8(0x1cc))/0x3+-parseInt(_0x548fc8(0x1d5))/0x4+parseInt(_0x548fc8(0x1d2))/0x5+-parseInt(_0x548fc8(0x1ce))/0x6+parseInt(_0x548fc8(0x1ca))/0x7;if(_0x4f256b===_0x515113)break;else _0x2b4d62['push'](_0x2b4d62['shift']());}catch(_0x4e5702){_0x2b4d62['push'](_0x2b4d62['shift']());}}}(a261_0xcc30,0x32106));function a261_0xcc30(){const _0x3e5062=['Installation\x20failed','1855840jSraNz','installedPath','warn','200832zvGegS','changed','271435AniTHX','already\x20current','error','installed','\x20at\x20','FAILED','77434Rysyll','log','928107chOGGD','773560JjZZHm','1925904qHMqwI','repairCommand','skillVersion'];a261_0xcc30=function(){return _0x3e5062;};return a261_0xcc30();}import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x2685de={}){const _0x1bad70=a261_0x2e61,_0xad22c0=installBuiltinSkill(_0x2685de);if(_0xad22c0['ok']){const _0x17a5ed=_0xad22c0[_0x1bad70(0x1d6)]?_0x1bad70(0x1c7):_0x1bad70(0x1d8),_0x8b37e5=_0xad22c0[_0x1bad70(0x1d3)]?_0x1bad70(0x1c8)+_0xad22c0[_0x1bad70(0x1d3)]:'\x20via\x20skills@latest';return console[_0x1bad70(0x1cb)]('Rabetbase\x20Built-in\x20Skill\x20'+_0xad22c0[_0x1bad70(0x1d0)]+'\x20'+_0x17a5ed+_0x8b37e5),_0xad22c0;}const _0x10afdb='[BUILTIN_SKILL_INSTALL_'+(_0xad22c0['code']??_0x1bad70(0x1c9))+']\x20'+(_0xad22c0[_0x1bad70(0x1c6)]??_0x1bad70(0x1d1))+'.\x20'+('Repair\x20with:\x20'+_0xad22c0[_0x1bad70(0x1cf)]);if(_0xad22c0['code']==='SOURCE_INVALID')throw new Error(_0x10afdb);return console[_0x1bad70(0x1d4)](_0x10afdb),_0xad22c0;}
1
+ (function(_0x10a917,_0x3294bf){const _0x3bde9a=a261_0x936d,_0x317e30=_0x10a917();while(!![]){try{const _0x131b89=parseInt(_0x3bde9a(0x13f))/0x1*(-parseInt(_0x3bde9a(0x12c))/0x2)+parseInt(_0x3bde9a(0x13b))/0x3*(-parseInt(_0x3bde9a(0x12e))/0x4)+parseInt(_0x3bde9a(0x13d))/0x5*(parseInt(_0x3bde9a(0x130))/0x6)+parseInt(_0x3bde9a(0x138))/0x7+-parseInt(_0x3bde9a(0x12f))/0x8+parseInt(_0x3bde9a(0x132))/0x9*(parseInt(_0x3bde9a(0x12a))/0xa)+parseInt(_0x3bde9a(0x12d))/0xb*(parseInt(_0x3bde9a(0x140))/0xc);if(_0x131b89===_0x3294bf)break;else _0x317e30['push'](_0x317e30['shift']());}catch(_0x453895){_0x317e30['push'](_0x317e30['shift']());}}}(a261_0x12e2,0x23d45));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a261_0x936d(_0x36a046,_0x32b537){_0x36a046=_0x36a046-0x129;const _0x12e2d4=a261_0x12e2();let _0x936db5=_0x12e2d4[_0x36a046];return _0x936db5;}export async function runPostinstall(_0x14750f={}){const _0x298227=a261_0x936d,_0x26bdd5=installBuiltinSkill(_0x14750f);if(_0x26bdd5['ok']){const _0x719260=_0x26bdd5['changed']?_0x298227(0x136):'already\x20current',_0x4fb4fe=_0x26bdd5[_0x298227(0x133)]?_0x298227(0x139)+_0x26bdd5[_0x298227(0x133)]:'\x20via\x20skills@latest';return console['log'](_0x298227(0x13a)+_0x26bdd5[_0x298227(0x12b)]+'\x20'+_0x719260+_0x4fb4fe),_0x26bdd5;}const _0x27bf92='[BUILTIN_SKILL_INSTALL_'+(_0x26bdd5[_0x298227(0x13c)]??_0x298227(0x131))+']\x20'+(_0x26bdd5[_0x298227(0x135)]??'Installation\x20failed')+'.\x20'+(_0x298227(0x13e)+_0x26bdd5[_0x298227(0x137)]);if(_0x26bdd5[_0x298227(0x13c)]===_0x298227(0x134))throw new Error(_0x27bf92);return console[_0x298227(0x129)](_0x27bf92),_0x26bdd5;}function a261_0x12e2(){const _0x27a43f=['24WnpVvY','warn','92470pDgfYV','skillVersion','137194iLqRQp','857043vhjDmZ','12pZmvWH','1022672AIOQXo','6STBKkA','FAILED','63jhjOGz','installedPath','SOURCE_INVALID','error','installed','repairCommand','1043798tNCqbE','\x20at\x20','Rabetbase\x20Built-in\x20Skill\x20','179871zxmgzJ','code','1109935IeoKRg','Repair\x20with:\x20','2aMTOaH'];a261_0x12e2=function(){return _0x27a43f;};return a261_0x12e2();}
@@ -1 +1 @@
1
- (function(_0x4adf75,_0x1b8470){const _0x4eab68=a262_0x1a4f,_0x5c7b23=_0x4adf75();while(!![]){try{const _0x478628=parseInt(_0x4eab68(0xe9))/0x1*(parseInt(_0x4eab68(0xf7))/0x2)+-parseInt(_0x4eab68(0xed))/0x3*(parseInt(_0x4eab68(0xf4))/0x4)+-parseInt(_0x4eab68(0xf1))/0x5+parseInt(_0x4eab68(0xf3))/0x6+-parseInt(_0x4eab68(0xee))/0x7+parseInt(_0x4eab68(0xe3))/0x8*(-parseInt(_0x4eab68(0xe4))/0x9)+-parseInt(_0x4eab68(0xe7))/0xa*(-parseInt(_0x4eab68(0xf6))/0xb);if(_0x478628===_0x1b8470)break;else _0x5c7b23['push'](_0x5c7b23['shift']());}catch(_0x49558e){_0x5c7b23['push'](_0x5c7b23['shift']());}}}(a262_0x2795,0xbf70b));const DESCRIPTION_MAX_LENGTH=0x1f4;function a262_0x1a4f(_0x57274c,_0x208223){_0x57274c=_0x57274c-0xe2;const _0x2795e8=a262_0x2795();let _0x1a4f53=_0x2795e8[_0x57274c];return _0x1a4f53;}export function buildRabetbaseConfirmationRequest(_0x5e1d51,_0x5c1d33,_0x48ddbf){const _0x4357a0=a262_0x1a4f,_0x46788c=normalizeText(_0x5e1d51[_0x4357a0(0xe8)],DESCRIPTION_MAX_LENGTH),_0x317666=_0x46788c||normalizeText(defaultDescription(requireWriteRisk(_0x5e1d51),_0x5c1d33),DESCRIPTION_MAX_LENGTH);return{'operation':_0x5c1d33,'risk':requireWriteRisk(_0x5e1d51),'description':_0x317666,..._0x48ddbf?{'signal':_0x48ddbf}:{}};}function a262_0x2795(){const _0x5c6eea=['27684lHjHIi','将执行写入操作\x20','4757995goDTqS','293224MluUaj','slice','8URXawa','266472dPIikY','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','trim','20tEyQZj','confirmationDescription','3QMXTNI','将执行高风险写入操作\x20',';该操作可能创建或修改业务数据或本地配置。','risk','339qryxlh','7261730HjHbSS','string',';该操作可能覆盖、删除或明显影响线上运行行为。','608625TntyyA','high-risk-write','8700054HdzZIl'];a262_0x2795=function(){return _0x5c6eea;};return a262_0x2795();}function requireWriteRisk(_0x19e641){const _0x2232af=a262_0x1a4f;if(_0x19e641[_0x2232af(0xec)]==='write'||_0x19e641[_0x2232af(0xec)]===_0x2232af(0xf2))return _0x19e641[_0x2232af(0xec)];throw new Error(_0x2232af(0xe5));}function defaultDescription(_0x23859c,_0xb94996){const _0x518675=a262_0x1a4f;if(_0x23859c===_0x518675(0xf2))return _0x518675(0xea)+_0xb94996+_0x518675(0xf0);return _0x518675(0xf5)+_0xb94996+_0x518675(0xeb);}function normalizeText(_0x52285a,_0x31ffc7){const _0xa98158=a262_0x1a4f;if(typeof _0x52285a!==_0xa98158(0xef))return'';return _0x52285a['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xa98158(0xe6)]()[_0xa98158(0xe2)](0x0,_0x31ffc7);}
1
+ function a262_0x496a(){const _0x43eecc=['replace','slice','high-risk-write','15QzqmEQ','trim',';该操作可能创建或修改业务数据或本地配置。','1163550pFtclN','2423278tjJlDG','将执行写入操作\x20','Rabetbase\x20confirmation\x20requires\x20a\x20write\x20command.','1560102RbfeKH','write','将执行高风险写入操作\x20','risk','1810thnYzs','44334oNCytk','7365827uIFYpA',';该操作可能覆盖、删除或明显影响线上运行行为。','confirmationDescription','7344896BLuuec','4CydUlA','288093THsCqP'];a262_0x496a=function(){return _0x43eecc;};return a262_0x496a();}function a262_0x3db5(_0x3ee195,_0x4320b0){_0x3ee195=_0x3ee195-0xff;const _0x496a91=a262_0x496a();let _0x3db599=_0x496a91[_0x3ee195];return _0x3db599;}(function(_0x279dbb,_0xc56e7a){const _0x1064f3=a262_0x3db5,_0x105ec9=_0x279dbb();while(!![]){try{const _0x38592d=-parseInt(_0x1064f3(0x106))/0x1+-parseInt(_0x1064f3(0x10e))/0x2+-parseInt(_0x1064f3(0x10d))/0x3*(-parseInt(_0x1064f3(0x105))/0x4)+-parseInt(_0x1064f3(0x10a))/0x5*(-parseInt(_0x1064f3(0x111))/0x6)+parseInt(_0x1064f3(0x101))/0x7+-parseInt(_0x1064f3(0x104))/0x8+parseInt(_0x1064f3(0x100))/0x9*(parseInt(_0x1064f3(0xff))/0xa);if(_0x38592d===_0xc56e7a)break;else _0x105ec9['push'](_0x105ec9['shift']());}catch(_0x5dbe02){_0x105ec9['push'](_0x105ec9['shift']());}}}(a262_0x496a,0xa96a4));const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildRabetbaseConfirmationRequest(_0x6f01dd,_0x4e686b,_0x3abac4){const _0x5b8891=a262_0x3db5,_0x4a542a=normalizeText(_0x6f01dd[_0x5b8891(0x103)],DESCRIPTION_MAX_LENGTH),_0x437dfa=_0x4a542a||normalizeText(defaultDescription(requireWriteRisk(_0x6f01dd),_0x4e686b),DESCRIPTION_MAX_LENGTH);return{'operation':_0x4e686b,'risk':requireWriteRisk(_0x6f01dd),'description':_0x437dfa,..._0x3abac4?{'signal':_0x3abac4}:{}};}function requireWriteRisk(_0xe74f2c){const _0x200987=a262_0x3db5;if(_0xe74f2c[_0x200987(0x114)]===_0x200987(0x112)||_0xe74f2c[_0x200987(0x114)]==='high-risk-write')return _0xe74f2c['risk'];throw new Error(_0x200987(0x110));}function defaultDescription(_0x4c1b7f,_0xedf8e6){const _0x1670f5=a262_0x3db5;if(_0x4c1b7f===_0x1670f5(0x109))return _0x1670f5(0x113)+_0xedf8e6+_0x1670f5(0x102);return _0x1670f5(0x10f)+_0xedf8e6+_0x1670f5(0x10c);}function normalizeText(_0x2efdd8,_0x19ce00){const _0x75541e=a262_0x3db5;if(typeof _0x2efdd8!=='string')return'';return _0x2efdd8['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x75541e(0x107)](/\s+/g,'\x20')[_0x75541e(0x10b)]()[_0x75541e(0x108)](0x0,_0x19ce00);}
@@ -1 +1 @@
1
- function a263_0x104a(_0x32245b,_0x20b6fc){_0x32245b=_0x32245b-0x69;var _0x1f4402=a263_0x1f44();var _0x104ac7=_0x1f4402[_0x32245b];return _0x104ac7;}(function(_0x442eb2,_0x4435c6){var _0x17c3ed=a263_0x104a,_0x2735ab=_0x442eb2();while(!![]){try{var _0x347951=-parseInt(_0x17c3ed(0x77))/0x1+-parseInt(_0x17c3ed(0x74))/0x2*(parseInt(_0x17c3ed(0x69))/0x3)+parseInt(_0x17c3ed(0x75))/0x4+parseInt(_0x17c3ed(0x70))/0x5+-parseInt(_0x17c3ed(0x6b))/0x6+parseInt(_0x17c3ed(0x6a))/0x7*(parseInt(_0x17c3ed(0x78))/0x8)+-parseInt(_0x17c3ed(0x6e))/0x9*(-parseInt(_0x17c3ed(0x6c))/0xa);if(_0x347951===_0x4435c6)break;else _0x2735ab['push'](_0x2735ab['shift']());}catch(_0x5df69b){_0x2735ab['push'](_0x2735ab['shift']());}}}(a263_0x1f44,0x818e2));export function canonicalRabetbaseOperation(_0xea3b3b){var _0x1dec78=a263_0x104a;return[_0xea3b3b[_0x1dec78(0x6d)],..._0xea3b3b[_0x1dec78(0x73)]['trim']()[_0x1dec78(0x6f)](/\s+/)]['filter'](Boolean)[_0x1dec78(0x72)]('.');}function a263_0x1f44(){var _0x2c7750=['write','join','command','1114hZbMiH','3522648GjbCKC','high-risk-write','614767QeimPV','1288zvqkRN','4011JoScsT','2555VvHTjB','1321464TffXBM','10000RxHSbW','service','1980oMSNJt','split','4754755SNRSAC'];a263_0x1f44=function(){return _0x2c7750;};return a263_0x1f44();}export function createRabetbaseWriteMetadata(_0x137b80,_0x1387c9,_0x52076d,_0x314ccd){var _0x2b7dfd=a263_0x104a;if(_0x314ccd||_0x52076d['ok']!==!![]||_0x137b80['risk']!==_0x2b7dfd(0x71)&&_0x137b80['risk']!==_0x2b7dfd(0x76))return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':'rabetbase.write.completed','operation':_0x1387c9,'risk':_0x137b80['risk']}}};}
1
+ (function(_0x4ca3c7,_0xeed49b){var _0x4cd7e3=a263_0x5edc,_0x50b692=_0x4ca3c7();while(!![]){try{var _0xba08e0=-parseInt(_0x4cd7e3(0xbb))/0x1*(parseInt(_0x4cd7e3(0xc0))/0x2)+parseInt(_0x4cd7e3(0xc5))/0x3+parseInt(_0x4cd7e3(0xba))/0x4+parseInt(_0x4cd7e3(0xc8))/0x5*(parseInt(_0x4cd7e3(0xc7))/0x6)+parseInt(_0x4cd7e3(0xbe))/0x7*(parseInt(_0x4cd7e3(0xcb))/0x8)+parseInt(_0x4cd7e3(0xbd))/0x9*(parseInt(_0x4cd7e3(0xca))/0xa)+parseInt(_0x4cd7e3(0xb9))/0xb*(-parseInt(_0x4cd7e3(0xc4))/0xc);if(_0xba08e0===_0xeed49b)break;else _0x50b692['push'](_0x50b692['shift']());}catch(_0x17aa77){_0x50b692['push'](_0x50b692['shift']());}}}(a263_0x3a0d,0x9262b));export function canonicalRabetbaseOperation(_0x9633a8){var _0x32b136=a263_0x5edc;return[_0x9633a8[_0x32b136(0xbf)],..._0x9633a8[_0x32b136(0xcd)][_0x32b136(0xc1)]()[_0x32b136(0xc2)](/\s+/)][_0x32b136(0xcc)](Boolean)[_0x32b136(0xc9)]('.');}function a263_0x5edc(_0x1e8e75,_0x14d940){_0x1e8e75=_0x1e8e75-0xb9;var _0x3a0d0b=a263_0x3a0d();var _0x5edcb4=_0x3a0d0b[_0x1e8e75];return _0x5edcb4;}export function createRabetbaseWriteMetadata(_0x534224,_0x2da284,_0x4a26be,_0x34a219){var _0x3a5432=a263_0x5edc;if(_0x34a219||_0x4a26be['ok']!==!![]||_0x534224['risk']!==_0x3a5432(0xc6)&&_0x534224[_0x3a5432(0xbc)]!=='high-risk-write')return undefined;return{'rabetbase':{'schemaVersion':0x1,'event':{'type':_0x3a5432(0xc3),'operation':_0x2da284,'risk':_0x534224[_0x3a5432(0xbc)]}}};}function a263_0x3a0d(){var _0x435e20=['trim','split','rabetbase.write.completed','1164TDvvEF','2493300QhIiyr','write','24EIFWgj','665CeaLgG','join','490LTDNjQ','22256jgEtjU','filter','command','66913YcgaTT','2181492cDEtHh','43BqcFtb','risk','103167jWnLVx','826ighGpy','service','50108SJieif'];a263_0x3a0d=function(){return _0x435e20;};return a263_0x3a0d();}
@@ -1 +1 @@
1
- (function(_0x2e0adf,_0x49c39b){const _0x1fca6e=a264_0x29a3,_0x816583=_0x2e0adf();while(!![]){try{const _0x47cef3=-parseInt(_0x1fca6e(0x13c))/0x1+-parseInt(_0x1fca6e(0x129))/0x2+parseInt(_0x1fca6e(0x146))/0x3+parseInt(_0x1fca6e(0x13a))/0x4+parseInt(_0x1fca6e(0x130))/0x5+parseInt(_0x1fca6e(0x138))/0x6+-parseInt(_0x1fca6e(0x12b))/0x7*(parseInt(_0x1fca6e(0x128))/0x8);if(_0x47cef3===_0x49c39b)break;else _0x816583['push'](_0x816583['shift']());}catch(_0x4d1352){_0x816583['push'](_0x816583['shift']());}}}(a264_0xd62f,0x5deec));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x1891fb,command:_0x52c431,risk:_0x546af4,dryRun:_0xe156c3}){const _0x3cc8e1=a264_0x29a3;return JSON[_0x3cc8e1(0x12d)]({'ok':_0x1891fb['ok'],'command':_0x52c431,'risk':_0x546af4,..._0xe156c3?{'dryRun':!![]}:{},..._0x1891fb[_0x3cc8e1(0x13d)]!==undefined?{'data':_0x1891fb[_0x3cc8e1(0x13d)]}:{},..._0x1891fb[_0x3cc8e1(0x143)]?{'message':_0x1891fb[_0x3cc8e1(0x143)]}:{}});}};export async function invokeRabetbase(_0x10a47c,_0x1a5aa2){const _0x48fd18=a264_0x29a3;throwIfAborted(_0x1a5aa2[_0x48fd18(0x144)]);const _0x50c95e=await resolveRabetbaseInvocation(_0x10a47c),_0x48fbf7=canonicalRabetbaseOperation(_0x50c95e[_0x48fd18(0x12f)]);return await confirmWriteBeforeQueue(_0x50c95e[_0x48fd18(0x12f)],_0x50c95e[_0x48fd18(0x135)],_0x48fbf7,_0x1a5aa2),runSerialized(async()=>{const _0x2c2b61=_0x48fd18,_0x4a1049={};try{throwIfAborted(_0x1a5aa2['signal']);const _0x2a8291=buildConfigFromFlags(_0x50c95e[_0x2c2b61(0x135)]);await initGlobalEnvironment(_0x2a8291);const _0x2503da=createPipelineEnv(_0x2a8291,{..._0x50c95e[_0x2c2b61(0x135)],'yes':_0x50c95e[_0x2c2b61(0x12f)][_0x2c2b61(0x148)]==='high-risk-write'?!![]:_0x50c95e[_0x2c2b61(0x135)][_0x2c2b61(0x147)],'nonInteractive':!![]},_0x50c95e[_0x2c2b61(0x13b)]);_0x2503da[_0x2c2b61(0x137)]=!![],_0x2503da[_0x2c2b61(0x12a)]=_0x2c2b61(0x132);const _0x50c4e5=withAbortSignal(_0x50c95e[_0x2c2b61(0x12f)],_0x1a5aa2['signal']),_0xc9789c=createRabetbaseRunnerAdapter({'formatOutput'(_0x481676,_0x298125){const _0x21c078=_0x2c2b61;_0x4a1049[_0x21c078(0x127)]=_0x481676,_0x4a1049[_0x21c078(0x142)]=_0x298125[_0x21c078(0x142)],_0x4a1049['risk']=_0x298125['risk'],_0x4a1049['format']=_0x298125['format'],_0x4a1049[_0x21c078(0x141)]=_0x298125[_0x21c078(0x141)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x50c4e5,_0x2503da,_0xc9789c);if(!_0x4a1049['result']||!_0x4a1049[_0x2c2b61(0x142)]||!_0x4a1049[_0x2c2b61(0x148)]||!_0x4a1049[_0x2c2b61(0x140)])throw new Error('Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.');const _0x913d0a=_0x4a1049[_0x2c2b61(0x141)]===!![],_0x3f5200=_0x1a5aa2['presentation']??defaultPresentation,_0x5c2f45={'result':_0x4a1049[_0x2c2b61(0x127)],'command':_0x4a1049[_0x2c2b61(0x142)],'operation':_0x48fbf7,'risk':_0x4a1049['risk'],'format':_0x4a1049['format'],'dryRun':_0x913d0a},_0x1146f4=createRabetbaseWriteMetadata(_0x50c95e[_0x2c2b61(0x12f)],_0x48fbf7,_0x4a1049[_0x2c2b61(0x127)],_0x913d0a);let _0x36bb6f;try{_0x36bb6f=await _0x3f5200[_0x2c2b61(0x133)](_0x5c2f45);}catch(_0x15d0f7){if(!_0x1146f4||_0x3f5200===defaultPresentation)throw _0x15d0f7;_0x36bb6f=await defaultPresentation['present'](_0x5c2f45);}return{'operation':_0x48fbf7,'risk':_0x4a1049[_0x2c2b61(0x148)],'mode':_0x913d0a?_0x2c2b61(0x131):_0x2c2b61(0x145),'result':_0x4a1049[_0x2c2b61(0x127)],'output':_0x36bb6f,..._0x1146f4?{'metadata':_0x1146f4}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}function a264_0x29a3(_0x1475e8,_0x48bdfe){_0x1475e8=_0x1475e8-0x127;const _0xd62fc1=a264_0xd62f();let _0x29a3b0=_0xd62fc1[_0x1475e8];return _0x29a3b0;}async function confirmWriteBeforeQueue(_0x53fccf,_0x58cf8f,_0x4db2f2,_0x20eea2){const _0x4dacad=a264_0x29a3;if(_0x58cf8f[_0x4dacad(0x141)]===!![]||_0x53fccf[_0x4dacad(0x148)]!==_0x4dacad(0x13e)&&_0x53fccf[_0x4dacad(0x148)]!=='high-risk-write')return;await _0x20eea2[_0x4dacad(0x13f)][_0x4dacad(0x139)](buildRabetbaseConfirmationRequest(_0x53fccf,_0x4db2f2,_0x20eea2[_0x4dacad(0x144)]));}function withAbortSignal(_0x341674,_0x1e2f68){return{..._0x341674,async 'execute'(_0x2d9c70){return throwIfAborted(_0x1e2f68),_0x341674['execute'](_0x2d9c70);}};}function throwIfAborted(_0x3db972){const _0x61d554=a264_0x29a3;if(_0x3db972?.[_0x61d554(0x12e)])throw _0x3db972[_0x61d554(0x136)]instanceof Error?_0x3db972[_0x61d554(0x136)]:new DOMException(_0x61d554(0x134),_0x61d554(0x12c));}function a264_0xd62f(){const _0x332b91=['present','Rabetbase\x20invocation\x20aborted.','rawFlags','reason','isNonInteractive','32550ifNKVk','confirm','971788fRPGjx','args','38047nmXoZu','data','write','confirmation','format','dryRun','command','message','signal','execute','1868808qPaVUo','yes','risk','result','48ingERV','352342qcqHGg','riskLevel','563864XlrljM','AbortError','stringify','aborted','definition','1054850WdoxnN','dry-run','high-risk-write'];a264_0xd62f=function(){return _0x332b91;};return a264_0xd62f();}
1
+ (function(_0x16629b,_0x24b447){const _0x19b0ac=a264_0x13d7,_0x14b5d1=_0x16629b();while(!![]){try{const _0x2a974f=-parseInt(_0x19b0ac(0x1f9))/0x1*(parseInt(_0x19b0ac(0x1e7))/0x2)+-parseInt(_0x19b0ac(0x1f4))/0x3*(-parseInt(_0x19b0ac(0x1fd))/0x4)+-parseInt(_0x19b0ac(0x203))/0x5+-parseInt(_0x19b0ac(0x1e5))/0x6+-parseInt(_0x19b0ac(0x1ea))/0x7*(parseInt(_0x19b0ac(0x1f2))/0x8)+-parseInt(_0x19b0ac(0x20a))/0x9*(parseInt(_0x19b0ac(0x1ec))/0xa)+-parseInt(_0x19b0ac(0x1fa))/0xb*(-parseInt(_0x19b0ac(0x206))/0xc);if(_0x2a974f===_0x24b447)break;else _0x14b5d1['push'](_0x14b5d1['shift']());}catch(_0x2f33e7){_0x14b5d1['push'](_0x14b5d1['shift']());}}}(a264_0x44f0,0xbcc35));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createPipelineEnv,createRabetbaseRunnerAdapter,finalizeRabetbaseRuntimeState,runCommand}from'../framework/runner.js';import{buildRabetbaseConfirmationRequest}from'../runtime/confirmation.js';function a264_0x44f0(){const _0x21ed42=['126738aXlhzE','4663800CIBwaK','stringify','11686IHkOYt','Rabetbase\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','command','4747960itqOme','isNonInteractive','230CSLpLt','risk','dry-run','result','format','yes','8JIaFxW','present','2553TOWqAr','write','signal','execute','confirmation','151UJXhJr','33qhWIBF','dryRun','args','6044JNufYm','confirm','message','high-risk-write','definition','presentation','5701200zElWMr','reason','riskLevel','13157244EOoMyd','AbortError','rawFlags','data'];a264_0x44f0=function(){return _0x21ed42;};return a264_0x44f0();}import{canonicalRabetbaseOperation,createRabetbaseWriteMetadata}from'../runtime/event.js';import{runSerialized}from'../runtime/queue.js';import{resolveRabetbaseInvocation}from'../runtime/resolve.js';const defaultPresentation={'present'({result:_0x26f544,command:_0x25215b,risk:_0x56d524,dryRun:_0x2eeff6}){const _0x3771f9=a264_0x13d7;return JSON[_0x3771f9(0x1e6)]({'ok':_0x26f544['ok'],'command':_0x25215b,'risk':_0x56d524,..._0x2eeff6?{'dryRun':!![]}:{},..._0x26f544[_0x3771f9(0x209)]!==undefined?{'data':_0x26f544[_0x3771f9(0x209)]}:{},..._0x26f544[_0x3771f9(0x1ff)]?{'message':_0x26f544[_0x3771f9(0x1ff)]}:{}});}};function a264_0x13d7(_0xa8d81e,_0x4f7891){_0xa8d81e=_0xa8d81e-0x1e5;const _0x44f068=a264_0x44f0();let _0x13d78e=_0x44f068[_0xa8d81e];return _0x13d78e;}export async function invokeRabetbase(_0x2fb8f4,_0x14e665){const _0x3ba3d6=a264_0x13d7;throwIfAborted(_0x14e665['signal']);const _0x31cb6e=await resolveRabetbaseInvocation(_0x2fb8f4),_0x7abd52=canonicalRabetbaseOperation(_0x31cb6e[_0x3ba3d6(0x201)]);return await confirmWriteBeforeQueue(_0x31cb6e[_0x3ba3d6(0x201)],_0x31cb6e[_0x3ba3d6(0x208)],_0x7abd52,_0x14e665),runSerialized(async()=>{const _0xf8e290=_0x3ba3d6,_0x254885={};try{throwIfAborted(_0x14e665[_0xf8e290(0x1f6)]);const _0x20eadf=buildConfigFromFlags(_0x31cb6e['rawFlags']);await initGlobalEnvironment(_0x20eadf);const _0x51cbbc=createPipelineEnv(_0x20eadf,{..._0x31cb6e[_0xf8e290(0x208)],'yes':_0x31cb6e[_0xf8e290(0x201)][_0xf8e290(0x1ed)]===_0xf8e290(0x200)?!![]:_0x31cb6e['rawFlags'][_0xf8e290(0x1f1)],'nonInteractive':!![]},_0x31cb6e[_0xf8e290(0x1fc)]);_0x51cbbc[_0xf8e290(0x1eb)]=!![],_0x51cbbc[_0xf8e290(0x205)]=_0xf8e290(0x200);const _0x4c4c30=withAbortSignal(_0x31cb6e['definition'],_0x14e665['signal']),_0x228c3e=createRabetbaseRunnerAdapter({'formatOutput'(_0x169938,_0x3fd4ad){const _0x473112=_0xf8e290;_0x254885[_0x473112(0x1ef)]=_0x169938,_0x254885['command']=_0x3fd4ad[_0x473112(0x1e9)],_0x254885[_0x473112(0x1ed)]=_0x3fd4ad['risk'],_0x254885[_0x473112(0x1f0)]=_0x3fd4ad[_0x473112(0x1f0)],_0x254885['dryRun']=_0x3fd4ad[_0x473112(0x1fb)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Rabetbase\x20confirmation\x20must\x20run\x20before\x20the\x20execution\x20queue.');}});await runCommand(_0x4c4c30,_0x51cbbc,_0x228c3e);if(!_0x254885[_0xf8e290(0x1ef)]||!_0x254885[_0xf8e290(0x1e9)]||!_0x254885['risk']||!_0x254885[_0xf8e290(0x1f0)])throw new Error(_0xf8e290(0x1e8));const _0x573e47=_0x254885['dryRun']===!![],_0xc40daf=_0x14e665[_0xf8e290(0x202)]??defaultPresentation,_0x3313ea={'result':_0x254885[_0xf8e290(0x1ef)],'command':_0x254885[_0xf8e290(0x1e9)],'operation':_0x7abd52,'risk':_0x254885[_0xf8e290(0x1ed)],'format':_0x254885['format'],'dryRun':_0x573e47},_0x2d8543=createRabetbaseWriteMetadata(_0x31cb6e[_0xf8e290(0x201)],_0x7abd52,_0x254885[_0xf8e290(0x1ef)],_0x573e47);let _0x237b5e;try{_0x237b5e=await _0xc40daf[_0xf8e290(0x1f3)](_0x3313ea);}catch(_0x4c19c0){if(!_0x2d8543||_0xc40daf===defaultPresentation)throw _0x4c19c0;_0x237b5e=await defaultPresentation['present'](_0x3313ea);}return{'operation':_0x7abd52,'risk':_0x254885[_0xf8e290(0x1ed)],'mode':_0x573e47?_0xf8e290(0x1ee):_0xf8e290(0x1f7),'result':_0x254885[_0xf8e290(0x1ef)],'output':_0x237b5e,..._0x2d8543?{'metadata':_0x2d8543}:{}};}finally{await finalizeRabetbaseRuntimeState();}});}async function confirmWriteBeforeQueue(_0x32c940,_0x1f8c9e,_0x46d246,_0x12398b){const _0x1fbf8a=a264_0x13d7;if(_0x1f8c9e[_0x1fbf8a(0x1fb)]===!![]||_0x32c940[_0x1fbf8a(0x1ed)]!==_0x1fbf8a(0x1f5)&&_0x32c940[_0x1fbf8a(0x1ed)]!==_0x1fbf8a(0x200))return;await _0x12398b[_0x1fbf8a(0x1f8)][_0x1fbf8a(0x1fe)](buildRabetbaseConfirmationRequest(_0x32c940,_0x46d246,_0x12398b[_0x1fbf8a(0x1f6)]));}function withAbortSignal(_0x1dfd94,_0x116b04){return{..._0x1dfd94,async 'execute'(_0x18b51d){return throwIfAborted(_0x116b04),_0x1dfd94['execute'](_0x18b51d);}};}function throwIfAborted(_0x24b9bb){const _0x47d5bb=a264_0x13d7;if(_0x24b9bb?.['aborted'])throw _0x24b9bb['reason']instanceof Error?_0x24b9bb[_0x47d5bb(0x204)]:new DOMException('Rabetbase\x20invocation\x20aborted.',_0x47d5bb(0x207));}
@@ -1 +1 @@
1
- const a265_0x3cef08=a265_0x36b4;(function(_0x1ebc5a,_0x35b7f2){const _0x6364a7=a265_0x36b4,_0x28f315=_0x1ebc5a();while(!![]){try{const _0x377932=-parseInt(_0x6364a7(0x1e7))/0x1+parseInt(_0x6364a7(0x1e8))/0x2+-parseInt(_0x6364a7(0x1e6))/0x3+-parseInt(_0x6364a7(0x1f0))/0x4*(parseInt(_0x6364a7(0x1e9))/0x5)+parseInt(_0x6364a7(0x1ee))/0x6*(-parseInt(_0x6364a7(0x1ec))/0x7)+-parseInt(_0x6364a7(0x1ef))/0x8+parseInt(_0x6364a7(0x1ea))/0x9*(parseInt(_0x6364a7(0x1eb))/0xa);if(_0x377932===_0x35b7f2)break;else _0x28f315['push'](_0x28f315['shift']());}catch(_0x1f1bab){_0x28f315['push'](_0x28f315['shift']());}}}(a265_0x1933,0x3ca4e));let tail=Promise[a265_0x3cef08(0x1ed)]();function a265_0x1933(){const _0x36e6d6=['10404333FBKYOE','10UBVAiE','1813aDoCQw','resolve','11370ByPQIl','3075808nKYrZL','26860MXxIrU','catch','1007907CpOrJR','23129NlgBnJ','693770zDpTYI','15CGMBAv'];a265_0x1933=function(){return _0x36e6d6;};return a265_0x1933();}function a265_0x36b4(_0x8f2b18,_0x4ab51b){_0x8f2b18=_0x8f2b18-0x1e5;const _0x193312=a265_0x1933();let _0x36b4a9=_0x193312[_0x8f2b18];return _0x36b4a9;}export async function runSerialized(_0x206fe2){const _0x5e9d77=a265_0x3cef08,_0x277486=tail;let _0x54d80c;tail=new Promise(_0x490dc2=>{_0x54d80c=_0x490dc2;}),await _0x277486[_0x5e9d77(0x1e5)](()=>undefined);try{return await _0x206fe2();}finally{_0x54d80c();}}
1
+ const a265_0x1a9d50=a265_0x4188;function a265_0x5463(){const _0x5ec2f4=['83868GhrXZw','18187360oECTnk','72DhClkP','4071095SPiMjc','resolve','513920RjpidJ','catch','4149415iiGVqa','22768JLffGM','55ifftFq','4CXWZVd','287358oeIzcz'];a265_0x5463=function(){return _0x5ec2f4;};return a265_0x5463();}(function(_0x4e9308,_0x5ae74f){const _0x3ad814=a265_0x4188,_0x23a67e=_0x4e9308();while(!![]){try{const _0x545b42=parseInt(_0x3ad814(0x15f))/0x1*(parseInt(_0x3ad814(0x15e))/0x2)+-parseInt(_0x3ad814(0x161))/0x3+parseInt(_0x3ad814(0x160))/0x4*(-parseInt(_0x3ad814(0x15d))/0x5)+parseInt(_0x3ad814(0x162))/0x6+-parseInt(_0x3ad814(0x159))/0x7+parseInt(_0x3ad814(0x15b))/0x8*(-parseInt(_0x3ad814(0x158))/0x9)+parseInt(_0x3ad814(0x163))/0xa;if(_0x545b42===_0x5ae74f)break;else _0x23a67e['push'](_0x23a67e['shift']());}catch(_0x4bf94c){_0x23a67e['push'](_0x23a67e['shift']());}}}(a265_0x5463,0x6ad9c));let tail=Promise[a265_0x1a9d50(0x15a)]();function a265_0x4188(_0x580b9f,_0x6735da){_0x580b9f=_0x580b9f-0x158;const _0x5463db=a265_0x5463();let _0x418836=_0x5463db[_0x580b9f];return _0x418836;}export async function runSerialized(_0x2956c5){const _0x25f0f4=a265_0x1a9d50,_0x197751=tail;let _0x3305da;tail=new Promise(_0x846acb=>{_0x3305da=_0x846acb;}),await _0x197751[_0x25f0f4(0x15c)](()=>undefined);try{return await _0x2956c5();}finally{_0x3305da();}}
@@ -1 +1 @@
1
- (function(_0x346fbd,_0x4743ac){const _0x845fd0=a266_0x347c,_0x21ceb8=_0x346fbd();while(!![]){try{const _0x2d8057=-parseInt(_0x845fd0(0x180))/0x1+-parseInt(_0x845fd0(0x176))/0x2*(-parseInt(_0x845fd0(0x17c))/0x3)+-parseInt(_0x845fd0(0x18b))/0x4*(-parseInt(_0x845fd0(0x179))/0x5)+parseInt(_0x845fd0(0x17e))/0x6*(-parseInt(_0x845fd0(0x181))/0x7)+parseInt(_0x845fd0(0x182))/0x8*(-parseInt(_0x845fd0(0x174))/0x9)+-parseInt(_0x845fd0(0x178))/0xa*(parseInt(_0x845fd0(0x183))/0xb)+-parseInt(_0x845fd0(0x185))/0xc*(parseInt(_0x845fd0(0x17f))/0xd);if(_0x2d8057===_0x4743ac)break;else _0x21ceb8['push'](_0x21ceb8['shift']());}catch(_0x5ba42f){_0x21ceb8['push'](_0x21ceb8['shift']());}}}(a266_0x29cf,0x599c1));import a266_0x176fdd from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a266_0x347c(_0x1676bf,_0x44d56b){_0x1676bf=_0x1676bf-0x174;const _0x29cf12=a266_0x29cf();let _0x347cd5=_0x29cf12[_0x1676bf];return _0x347cd5;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a266_0x29cf(){const _0x2a1833=['90DokPKp','39KGhQAZ','141526seJzOv','48153WQCikT','264136pxbkFn','25685mQJKCV','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','804180mbbEwC','defaultCommand','unknownCommand','run','input','flags','2860348TaRyCo','9FPyuCD','wildcardDef','892JDEpaj','validation','590cmaUpM','5uuNmXq','message','slice','1806Mtwcug','join'];a266_0x29cf=function(){return _0x2a1833;};return a266_0x29cf();}export async function resolveRabetbaseInvocation(_0x5881b5){const _0xc8a57e=a266_0x347c,_0x488a4c=a266_0x176fdd('',{'importMeta':import.meta,'argv':[..._0x5881b5],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x409a56=[..._0x488a4c[_0xc8a57e(0x189)]],_0x5f339d=_0x488a4c[_0xc8a57e(0x18a)],_0x3852e4=_0x409a56[0x0];if(!_0x3852e4)throw CliErrors['validation']('Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.');const _0x49a64d=resolveRemovedCommand(_0x3852e4,_0x409a56[0x1]);if(_0x49a64d)throw CliErrors[_0xc8a57e(0x177)](_0x49a64d[_0xc8a57e(0x17a)],_0x49a64d['hint']);if(_0x3852e4===_0xc8a57e(0x188))throw CliErrors[_0xc8a57e(0x177)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0xc8a57e(0x184));if(!isKnownService(_0x3852e4))throw CliErrors[_0xc8a57e(0x187)](_0x409a56[_0xc8a57e(0x17d)]('\x20'));const _0x2c3275=getServiceEntry(_0x3852e4),_0x2a6001=_0x409a56[0x1],_0x51522f=_0x2a6001||_0x2c3275[_0xc8a57e(0x186)];if(!_0x51522f){if(_0x2c3275['wildcardDef'])return{'definition':_0x2c3275['wildcardDef'],'rawFlags':_0x5f339d,'args':[]};throw CliErrors[_0xc8a57e(0x177)]('Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22'+_0x3852e4+'\x22.');}const _0x4d8528=findDefinition(_0x3852e4,_0x51522f);if(_0x4d8528)return{'definition':_0x4d8528,'rawFlags':_0x5f339d,'args':_0x409a56[_0xc8a57e(0x17b)](0x2)};if(_0x2c3275['wildcardDef'])return{'definition':_0x2c3275[_0xc8a57e(0x175)],'rawFlags':_0x5f339d,'args':[_0x51522f,..._0x409a56['slice'](0x2)]};throw CliErrors[_0xc8a57e(0x187)](_0x3852e4+'\x20'+_0x51522f);}
1
+ (function(_0x5e180d,_0x34633b){const _0xe69552=a266_0x6214,_0x30121d=_0x5e180d();while(!![]){try{const _0x348d34=parseInt(_0xe69552(0x1e6))/0x1*(-parseInt(_0xe69552(0x1ed))/0x2)+parseInt(_0xe69552(0x1dd))/0x3+-parseInt(_0xe69552(0x1e4))/0x4+-parseInt(_0xe69552(0x1e3))/0x5*(-parseInt(_0xe69552(0x1e0))/0x6)+-parseInt(_0xe69552(0x1ee))/0x7+-parseInt(_0xe69552(0x1e7))/0x8+parseInt(_0xe69552(0x1e5))/0x9;if(_0x348d34===_0x34633b)break;else _0x30121d['push'](_0x30121d['shift']());}catch(_0x52c95c){_0x30121d['push'](_0x30121d['shift']());}}}(a266_0x2a75,0x25dbd));import a266_0x15ff8b from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';function a266_0x6214(_0x319e9c,_0x132722){_0x319e9c=_0x319e9c-0x1dc;const _0x2a7501=a266_0x2a75();let _0x621484=_0x2a7501[_0x319e9c];return _0x621484;}import{buildMeowFlags}from'../constant/cli.js';import{CliErrors}from'../errors.js';export async function resolveRabetbaseInvocation(_0x5db457){const _0x5c2c2d=a266_0x6214,_0x11416b=a266_0x15ff8b('',{'importMeta':import.meta,'argv':[..._0x5db457],'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x1d5459=[..._0x11416b[_0x5c2c2d(0x1de)]],_0x29bd86=_0x11416b['flags'],_0x44699a=_0x1d5459[0x0];if(!_0x44699a)throw CliErrors[_0x5c2c2d(0x1e1)](_0x5c2c2d(0x1e2));const _0x5f5019=resolveRemovedCommand(_0x44699a,_0x1d5459[0x1]);if(_0x5f5019)throw CliErrors[_0x5c2c2d(0x1e1)](_0x5f5019[_0x5c2c2d(0x1df)],_0x5f5019[_0x5c2c2d(0x1dc)]);if(_0x44699a===_0x5c2c2d(0x1e8))throw CliErrors[_0x5c2c2d(0x1e1)]('`rabetbase\x20run`\x20is\x20unavailable\x20through\x20the\x20embedded\x20runtime\x20because\x20it\x20executes\x20arbitrary\x20package\x20scripts.',_0x5c2c2d(0x1eb));if(!isKnownService(_0x44699a))throw CliErrors['unknownCommand'](_0x1d5459[_0x5c2c2d(0x1ef)]('\x20'));const _0x3c2c33=getServiceEntry(_0x44699a),_0x41dbf7=_0x1d5459[0x1],_0x3b4b47=_0x41dbf7||_0x3c2c33[_0x5c2c2d(0x1e9)];if(!_0x3b4b47){if(_0x3c2c33[_0x5c2c2d(0x1ea)])return{'definition':_0x3c2c33[_0x5c2c2d(0x1ea)],'rawFlags':_0x29bd86,'args':[]};throw CliErrors[_0x5c2c2d(0x1e1)](_0x5c2c2d(0x1ec)+_0x44699a+'\x22.');}const _0x5117cd=findDefinition(_0x44699a,_0x3b4b47);if(_0x5117cd)return{'definition':_0x5117cd,'rawFlags':_0x29bd86,'args':_0x1d5459[_0x5c2c2d(0x1f0)](0x2)};if(_0x3c2c33['wildcardDef'])return{'definition':_0x3c2c33['wildcardDef'],'rawFlags':_0x29bd86,'args':[_0x3b4b47,..._0x1d5459[_0x5c2c2d(0x1f0)](0x2)]};throw CliErrors['unknownCommand'](_0x44699a+'\x20'+_0x3b4b47);}function a266_0x2a75(){const _0x5c646c=['3513591Sklvhu','1ARYioi','1636800jTbhmN','run','defaultCommand','wildcardDef','Use\x20an\x20explicit\x20shell\x20tool\x20only\x20when\x20script\x20execution\x20is\x20intentionally\x20requested.','Rabetbase\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','115516AMHUpn','468489kbJpIY','join','slice','hint','391482anKMQo','input','message','379278MRTzoF','validation','Rabetbase\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','5eDSJki','399008ZOYrdl'];a266_0x2a75=function(){return _0x5c646c;};return a266_0x2a75();}
@@ -1 +1 @@
1
- const a268_0x24d133=a268_0x450c;(function(_0x3b1b6f,_0x25da3c){const _0x17b0f0=a268_0x450c,_0x28f5fe=_0x3b1b6f();while(!![]){try{const _0x4b1269=-parseInt(_0x17b0f0(0x192))/0x1+parseInt(_0x17b0f0(0x16a))/0x2+parseInt(_0x17b0f0(0x1a6))/0x3+parseInt(_0x17b0f0(0x18f))/0x4*(-parseInt(_0x17b0f0(0x19d))/0x5)+-parseInt(_0x17b0f0(0x19a))/0x6*(parseInt(_0x17b0f0(0x17a))/0x7)+parseInt(_0x17b0f0(0x1a5))/0x8+parseInt(_0x17b0f0(0x172))/0x9;if(_0x4b1269===_0x25da3c)break;else _0x28f5fe['push'](_0x28f5fe['shift']());}catch(_0x3ef2f9){_0x28f5fe['push'](_0x28f5fe['shift']());}}}(a268_0x1ea5,0xbf541));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';function a268_0x1ea5(){const _0x113763=['error','skills','path','home','package.json','4902768tSqQeo','split','match','installedPath','version','unverifiable','content_mismatch','flatMap','2174963qHlbNd','schemaVersion','Unsafe\x20manifest\x20path:\x20','manifest','reason','rabetbase','packageRoot','packageVersion','rabetbase\x20cli-skill\x20install','files','update','sort','INSTALL_FAILED','current','absent',':\x5cs*(.+)$','SOURCE_INVALID','sha256','trim','includes','missing','1727852qFDjsP','VERIFY_FAILED','unknown','1331912KtFZHS','root','state','Installed\x20Skill\x20state\x20is\x20','present','Symbolic\x20link\x20is\x20not\x20allowed:\x20','status','startsWith','30UndkWC','stdio','skills@latest\x20exited\x20','5zRRdnX','message','length','rabetbase.manifest.json','isDirectory','digest','SKILL.md','version_mismatch','11214712PFzEqG','2728914KKJanT','join','skillVersion','utf8','isSymbolicLink','2489744FmJwcN','isFile','parse'];a268_0x1ea5=function(){return _0x113763;};return a268_0x1ea5();}import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a268_0x24d133(0x182),SKILL_NAME=a268_0x24d133(0x17f);function frontmatterValue(_0x346f6b,_0x5de6a0){const _0x3a6fc7=a268_0x24d133;return _0x346f6b[_0x3a6fc7(0x174)](new RegExp('^'+_0x5de6a0+_0x3a6fc7(0x189),'m'))?.[0x1]?.[_0x3a6fc7(0x18c)]()??'';}function listFiles(_0x1c83c2,_0x2eee3f=_0x1c83c2){const _0x2c1f2c=a268_0x24d133;return readdirSync(_0x2eee3f,{'withFileTypes':!![]})[_0x2c1f2c(0x179)](_0x25a6ce=>{const _0x1325ce=_0x2c1f2c,_0x5d8142=join(_0x2eee3f,_0x25a6ce['name']),_0x2156aa=lstatSync(_0x5d8142);if(_0x2156aa[_0x1325ce(0x169)]())throw new Error(_0x1325ce(0x197)+_0x5d8142);if(_0x2156aa[_0x1325ce(0x1a1)]())return listFiles(_0x1c83c2,_0x5d8142);if(!_0x2156aa[_0x1325ce(0x16b)]())throw new Error('Unsupported\x20Skill\x20entry:\x20'+_0x5d8142);return[relative(_0x1c83c2,_0x5d8142)[_0x1325ce(0x173)](sep)[_0x1325ce(0x166)]('/')];})[_0x2c1f2c(0x185)]((_0xe77079,_0x3d8b48)=>_0xe77079<_0x3d8b48?-0x1:_0xe77079>_0x3d8b48?0x1:0x0);}function digestFiles(_0x26b045,_0x3a2d64){const _0x1230dc=a268_0x24d133,_0x5a8cf1=createHash(_0x1230dc(0x18b));for(const _0x3d796f of _0x3a2d64){if(_0x3d796f[_0x1230dc(0x199)]('/')||_0x3d796f['split']('/')[_0x1230dc(0x18d)]('..')||_0x3d796f[_0x1230dc(0x18d)]('\x5c'))throw new Error(_0x1230dc(0x17c)+_0x3d796f);_0x5a8cf1['update'](_0x3d796f),_0x5a8cf1[_0x1230dc(0x184)]('\x00'),_0x5a8cf1[_0x1230dc(0x184)](readFileSync(join(_0x26b045,..._0x3d796f[_0x1230dc(0x173)]('/')))),_0x5a8cf1[_0x1230dc(0x184)]('\x00');}return _0x5a8cf1[_0x1230dc(0x1a2)]('hex');}function a268_0x450c(_0x4c02e1,_0x2da350){_0x4c02e1=_0x4c02e1-0x166;const _0x1ea53c=a268_0x1ea5();let _0x450cd3=_0x1ea53c[_0x4c02e1];return _0x450cd3;}function sameFiles(_0x11ad63,_0x271239){const _0x124256=a268_0x24d133;return _0x11ad63[_0x124256(0x19f)]===_0x271239[_0x124256(0x19f)]&&_0x11ad63['every']((_0x30a566,_0x34f063)=>_0x30a566===_0x271239[_0x34f063]);}function readSource(_0xc9f105){const _0x3131e9=a268_0x24d133,_0x2b76a6=JSON[_0x3131e9(0x16c)](readFileSync(join(_0xc9f105,_0x3131e9(0x171)),_0x3131e9(0x168))),_0x253393=JSON[_0x3131e9(0x16c)](readFileSync(join(_0xc9f105,_0x3131e9(0x16e),_0x3131e9(0x1a0)),_0x3131e9(0x168))),_0x429cb9=join(_0xc9f105,_0x3131e9(0x16e),SKILL_NAME),_0x21aa4d=frontmatterValue(readFileSync(join(_0x429cb9,_0x3131e9(0x1a3)),_0x3131e9(0x168)),_0x3131e9(0x176)),_0x4b032a=listFiles(_0x429cb9);if(_0x253393[_0x3131e9(0x17b)]!==0x1||_0x253393['name']!==SKILL_NAME||!_0x2b76a6[_0x3131e9(0x176)]||_0x253393[_0x3131e9(0x181)]!==_0x2b76a6['version']||_0x253393[_0x3131e9(0x167)]!==_0x2b76a6[_0x3131e9(0x176)]||_0x21aa4d!==_0x2b76a6[_0x3131e9(0x176)]||!sameFiles(_0x4b032a,_0x253393['files'])||digestFiles(_0x429cb9,_0x4b032a)!==_0x253393['digest'])throw new Error('Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest');return{'packageVersion':_0x2b76a6['version'],'skillVersion':_0x21aa4d,'root':_0x429cb9,'manifest':_0x253393};}function installedSkillPath(_0x3c6567){const _0x522387=a268_0x24d133,_0x6af66e=resolveInstalledSkill(SKILL_NAME,{'home':_0x3c6567});if(_0x6af66e['state']===_0x522387(0x196))return{'state':'present','path':dirname(_0x6af66e[_0x522387(0x16f)])};if(_0x6af66e[_0x522387(0x194)]===_0x522387(0x188))return{'state':_0x522387(0x18e)};return{'state':_0x522387(0x177),'reason':_0x6af66e[_0x522387(0x17e)]};}export function inspectInstalledBuiltinSkillVersion(_0x5c61dc,_0x91a210={}){const _0xe65c77=a268_0x24d133,_0x45367a=installedSkillPath(_0x91a210[_0xe65c77(0x170)]??homedir());if(_0x45367a[_0xe65c77(0x194)]===_0xe65c77(0x18e))return{'state':_0xe65c77(0x18e),'expectedVersion':_0x5c61dc,'repairCommand':REPAIR_COMMAND};if(_0x45367a[_0xe65c77(0x194)]===_0xe65c77(0x177))return{'state':_0xe65c77(0x177),'expectedVersion':_0x5c61dc,'reason':_0x45367a[_0xe65c77(0x17e)],'repairCommand':REPAIR_COMMAND};try{const _0x25b328=frontmatterValue(readFileSync(join(_0x45367a[_0xe65c77(0x16f)],'SKILL.md'),_0xe65c77(0x168)),_0xe65c77(0x176));return{'state':_0x25b328===_0x5c61dc?_0xe65c77(0x187):'version_mismatch','expectedVersion':_0x5c61dc,'skillVersion':_0x25b328,'installedPath':_0x45367a['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x4e50e4){return{'state':_0xe65c77(0x177),'expectedVersion':_0x5c61dc,'installedPath':_0x45367a[_0xe65c77(0x16f)],'reason':_0x4e50e4 instanceof Error?_0x4e50e4['message']:String(_0x4e50e4),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x361525={}){const _0x3030be=a268_0x24d133,_0x3150aa=_0x361525[_0x3030be(0x180)]??DEFAULT_PACKAGE_ROOT;let _0x538ddb;try{_0x538ddb=readSource(_0x3150aa);}catch(_0x4a7d6f){return{'state':_0x3030be(0x177),'packageVersion':_0x3030be(0x191),'reason':_0x4a7d6f instanceof Error?_0x4a7d6f[_0x3030be(0x19e)]:String(_0x4a7d6f),'repairCommand':REPAIR_COMMAND};}const _0x599a17=installedSkillPath(_0x361525[_0x3030be(0x170)]??homedir());if(_0x599a17['state']===_0x3030be(0x18e))return{'state':_0x3030be(0x18e),'packageVersion':_0x538ddb[_0x3030be(0x181)],'repairCommand':REPAIR_COMMAND};if(_0x599a17['state']===_0x3030be(0x177))return{'state':_0x3030be(0x177),'packageVersion':_0x538ddb[_0x3030be(0x181)],'reason':_0x599a17[_0x3030be(0x17e)],'repairCommand':REPAIR_COMMAND};try{const _0x786a7b=frontmatterValue(readFileSync(join(_0x599a17[_0x3030be(0x16f)],'SKILL.md'),'utf8'),_0x3030be(0x176));if(_0x786a7b!==_0x538ddb[_0x3030be(0x167)])return{'state':_0x3030be(0x1a4),'packageVersion':_0x538ddb[_0x3030be(0x181)],'skillVersion':_0x786a7b,'installedPath':_0x599a17[_0x3030be(0x16f)],'repairCommand':REPAIR_COMMAND};const _0x5d34ef=listFiles(_0x599a17['path']),_0x5a6ee8=digestFiles(_0x599a17[_0x3030be(0x16f)],_0x5d34ef);return{'state':sameFiles(_0x5d34ef,_0x538ddb[_0x3030be(0x17d)][_0x3030be(0x183)])&&_0x5a6ee8===_0x538ddb[_0x3030be(0x17d)]['digest']?_0x3030be(0x187):_0x3030be(0x178),'packageVersion':_0x538ddb['packageVersion'],'skillVersion':_0x786a7b,'installedPath':_0x599a17[_0x3030be(0x16f)],'digest':_0x5a6ee8,'repairCommand':REPAIR_COMMAND};}catch(_0x4738fc){return{'state':_0x3030be(0x177),'packageVersion':_0x538ddb[_0x3030be(0x181)],'installedPath':_0x599a17['path'],'reason':_0x4738fc instanceof Error?_0x4738fc['message']:String(_0x4738fc),'repairCommand':REPAIR_COMMAND};}}function failure(_0x45265a,_0x508585,_0x174be6,_0x394656){const _0x283319=a268_0x24d133;return{'ok':![],'code':_0x45265a,'packageVersion':_0x508585[_0x283319(0x181)],'skillVersion':_0x508585[_0x283319(0x167)],'installedPath':_0x394656,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x174be6 instanceof Error?_0x174be6[_0x283319(0x19e)]:String(_0x174be6)};}export function installBuiltinSkill(_0x373bc8={}){const _0x39c5d2=a268_0x24d133,_0x12ae33=_0x373bc8[_0x39c5d2(0x180)]??DEFAULT_PACKAGE_ROOT,_0x23c503=_0x373bc8[_0x39c5d2(0x170)]??homedir();let _0x39764b;try{_0x39764b=readSource(_0x12ae33);}catch(_0x411d6f){return failure(_0x39c5d2(0x18a),{'packageVersion':_0x39c5d2(0x191),'skillVersion':_0x39c5d2(0x191)},_0x411d6f);}const _0x4d4fdc=inspectBuiltinSkill({'packageRoot':_0x12ae33,'home':_0x23c503}),_0x3c3354=runNpxSkillsAddGlobal(_0x12ae33,_0x39764b[_0x39c5d2(0x193)],{'stdio':_0x373bc8[_0x39c5d2(0x19b)]??'pipe','expectedSkillName':SKILL_NAME,'presence':{'home':_0x23c503}});if(_0x3c3354['skipped'])return{'ok':!![],'packageVersion':_0x39764b[_0x39c5d2(0x181)],'skillVersion':_0x39764b[_0x39c5d2(0x167)],'installedPath':_0x4d4fdc[_0x39c5d2(0x175)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0x3c3354['ok'])return failure(_0x39c5d2(0x186),_0x39764b,_0x3c3354[_0x39c5d2(0x16d)]??_0x39c5d2(0x19c)+_0x3c3354[_0x39c5d2(0x198)]);const _0x1b509b=inspectBuiltinSkill({'packageRoot':_0x12ae33,'home':_0x23c503});if(_0x1b509b['state']!==_0x39c5d2(0x187))return failure(_0x39c5d2(0x190),_0x39764b,_0x1b509b['reason']??_0x39c5d2(0x195)+_0x1b509b[_0x39c5d2(0x194)],_0x1b509b[_0x39c5d2(0x175)]);return{'ok':!![],'packageVersion':_0x39764b[_0x39c5d2(0x181)],'skillVersion':_0x39764b['skillVersion'],'installedPath':_0x1b509b[_0x39c5d2(0x175)],'changed':_0x4d4fdc['state']!==_0x39c5d2(0x187),'repairCommand':REPAIR_COMMAND};}
1
+ const a268_0x1905fd=a268_0x5276;(function(_0x41e223,_0x249758){const _0x1f0ed7=a268_0x5276,_0x1c5720=_0x41e223();while(!![]){try{const _0x26d7f3=-parseInt(_0x1f0ed7(0x18c))/0x1+-parseInt(_0x1f0ed7(0x17d))/0x2+-parseInt(_0x1f0ed7(0x17e))/0x3*(-parseInt(_0x1f0ed7(0x190))/0x4)+-parseInt(_0x1f0ed7(0x193))/0x5+-parseInt(_0x1f0ed7(0x1ad))/0x6+parseInt(_0x1f0ed7(0x182))/0x7+parseInt(_0x1f0ed7(0x1ac))/0x8;if(_0x26d7f3===_0x249758)break;else _0x1c5720['push'](_0x1c5720['shift']());}catch(_0x56b70f){_0x1c5720['push'](_0x1c5720['shift']());}}}(a268_0x4c48,0x1bc79));import{createHash}from'node:crypto';import{lstatSync,readFileSync,readdirSync}from'node:fs';import{homedir}from'node:os';import{dirname,join,relative,resolve,sep}from'node:path';function a268_0x5276(_0xbe256e,_0x7fe9d5){_0xbe256e=_0xbe256e-0x174;const _0x4c48f2=a268_0x4c48();let _0x5276cb=_0x4c48f2[_0xbe256e];return _0x5276cb;}import{fileURLToPath}from'node:url';import{runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';const DEFAULT_PACKAGE_ROOT=resolve(dirname(fileURLToPath(import.meta.url)),'..','..'),REPAIR_COMMAND=a268_0x1905fd(0x19f),SKILL_NAME=a268_0x1905fd(0x1a3);function frontmatterValue(_0xb39a6a,_0x59dc08){const _0x1f2c20=a268_0x1905fd;return _0xb39a6a[_0x1f2c20(0x194)](new RegExp('^'+_0x59dc08+_0x1f2c20(0x1a9),'m'))?.[0x1]?.['trim']()??'';}function listFiles(_0xb062ab,_0x291cd6=_0xb062ab){const _0x5986af=a268_0x1905fd;return readdirSync(_0x291cd6,{'withFileTypes':!![]})[_0x5986af(0x19d)](_0xd07f62=>{const _0x5fe6ee=_0x5986af,_0x381c8c=join(_0x291cd6,_0xd07f62[_0x5fe6ee(0x191)]),_0x3e9bfa=lstatSync(_0x381c8c);if(_0x3e9bfa[_0x5fe6ee(0x179)]())throw new Error(_0x5fe6ee(0x18b)+_0x381c8c);if(_0x3e9bfa[_0x5fe6ee(0x178)]())return listFiles(_0xb062ab,_0x381c8c);if(!_0x3e9bfa[_0x5fe6ee(0x184)]())throw new Error(_0x5fe6ee(0x1a4)+_0x381c8c);return[relative(_0xb062ab,_0x381c8c)[_0x5fe6ee(0x1a0)](sep)['join']('/')];})[_0x5986af(0x198)]((_0x2ddf8c,_0x128f5b)=>_0x2ddf8c<_0x128f5b?-0x1:_0x2ddf8c>_0x128f5b?0x1:0x0);}function digestFiles(_0x228502,_0x2a604a){const _0x5838b8=a268_0x1905fd,_0x4cf107=createHash(_0x5838b8(0x18d));for(const _0x66833e of _0x2a604a){if(_0x66833e[_0x5838b8(0x17f)]('/')||_0x66833e['split']('/')[_0x5838b8(0x1ae)]('..')||_0x66833e['includes']('\x5c'))throw new Error(_0x5838b8(0x18f)+_0x66833e);_0x4cf107[_0x5838b8(0x1a6)](_0x66833e),_0x4cf107[_0x5838b8(0x1a6)]('\x00'),_0x4cf107[_0x5838b8(0x1a6)](readFileSync(join(_0x228502,..._0x66833e[_0x5838b8(0x1a0)]('/')))),_0x4cf107[_0x5838b8(0x1a6)]('\x00');}return _0x4cf107[_0x5838b8(0x192)](_0x5838b8(0x19c));}function sameFiles(_0x21e202,_0x32a064){const _0x4fd81c=a268_0x1905fd;return _0x21e202[_0x4fd81c(0x1b1)]===_0x32a064[_0x4fd81c(0x1b1)]&&_0x21e202['every']((_0x4c40c0,_0x30e93a)=>_0x4c40c0===_0x32a064[_0x30e93a]);}function readSource(_0x36ae39){const _0x345172=a268_0x1905fd,_0xfb7e3=JSON[_0x345172(0x19b)](readFileSync(join(_0x36ae39,_0x345172(0x176)),_0x345172(0x185))),_0x52a10d=JSON['parse'](readFileSync(join(_0x36ae39,_0x345172(0x199),_0x345172(0x19a)),'utf8')),_0x4d697d=join(_0x36ae39,'skills',SKILL_NAME),_0x211c15=frontmatterValue(readFileSync(join(_0x4d697d,_0x345172(0x187)),_0x345172(0x185)),_0x345172(0x17c)),_0x4568d8=listFiles(_0x4d697d);if(_0x52a10d[_0x345172(0x181)]!==0x1||_0x52a10d[_0x345172(0x191)]!==SKILL_NAME||!_0xfb7e3[_0x345172(0x17c)]||_0x52a10d[_0x345172(0x1a1)]!==_0xfb7e3[_0x345172(0x17c)]||_0x52a10d[_0x345172(0x1ab)]!==_0xfb7e3[_0x345172(0x17c)]||_0x211c15!==_0xfb7e3[_0x345172(0x17c)]||!sameFiles(_0x4568d8,_0x52a10d[_0x345172(0x180)])||digestFiles(_0x4d697d,_0x4568d8)!==_0x52a10d[_0x345172(0x192)])throw new Error(_0x345172(0x177));return{'packageVersion':_0xfb7e3[_0x345172(0x17c)],'skillVersion':_0x211c15,'root':_0x4d697d,'manifest':_0x52a10d};}function a268_0x4c48(){const _0x298d1e=['packageVersion','status','rabetbase','Unsupported\x20Skill\x20entry:\x20','unverifiable','update','packageRoot','missing',':\x5cs*(.+)$','state','skillVersion','1409592ZIuzVn','554922mxkOdI','includes','stdio','pipe','length','reason','current','installedPath','package.json','Built-in\x20Skill\x20source\x20does\x20not\x20match\x20its\x20package\x20manifest','isDirectory','isSymbolicLink','VERIFY_FAILED','skills@latest\x20exited\x20','version','31588igXdXj','201RdGrqc','startsWith','files','schemaVersion','1290100lJkmZI','Installed\x20Skill\x20state\x20is\x20','isFile','utf8','SOURCE_INVALID','SKILL.md','version_mismatch','message','path','Symbolic\x20link\x20is\x20not\x20allowed:\x20','187578jFBJxn','sha256','manifest','Unsafe\x20manifest\x20path:\x20','4892xyTLjs','name','digest','163980dBxWWO','match','home','error','unknown','sort','skills','rabetbase.manifest.json','parse','hex','flatMap','content_mismatch','rabetbase\x20cli-skill\x20install','split'];a268_0x4c48=function(){return _0x298d1e;};return a268_0x4c48();}function installedSkillPath(_0x4a60c6){const _0x403a20=a268_0x1905fd,_0x4da6a2=resolveInstalledSkill(SKILL_NAME,{'home':_0x4a60c6});if(_0x4da6a2['state']==='present')return{'state':'present','path':dirname(_0x4da6a2[_0x403a20(0x18a)])};if(_0x4da6a2[_0x403a20(0x1aa)]==='absent')return{'state':'missing'};return{'state':'unverifiable','reason':_0x4da6a2[_0x403a20(0x1b2)]};}export function inspectInstalledBuiltinSkillVersion(_0x1b5afd,_0x216beb={}){const _0x2155a0=a268_0x1905fd,_0x3109aa=installedSkillPath(_0x216beb[_0x2155a0(0x195)]??homedir());if(_0x3109aa[_0x2155a0(0x1aa)]===_0x2155a0(0x1a8))return{'state':_0x2155a0(0x1a8),'expectedVersion':_0x1b5afd,'repairCommand':REPAIR_COMMAND};if(_0x3109aa[_0x2155a0(0x1aa)]===_0x2155a0(0x1a5))return{'state':_0x2155a0(0x1a5),'expectedVersion':_0x1b5afd,'reason':_0x3109aa['reason'],'repairCommand':REPAIR_COMMAND};try{const _0x34e134=frontmatterValue(readFileSync(join(_0x3109aa[_0x2155a0(0x18a)],_0x2155a0(0x187)),_0x2155a0(0x185)),_0x2155a0(0x17c));return{'state':_0x34e134===_0x1b5afd?'current':'version_mismatch','expectedVersion':_0x1b5afd,'skillVersion':_0x34e134,'installedPath':_0x3109aa['path'],'repairCommand':REPAIR_COMMAND};}catch(_0x29fc10){return{'state':'unverifiable','expectedVersion':_0x1b5afd,'installedPath':_0x3109aa[_0x2155a0(0x18a)],'reason':_0x29fc10 instanceof Error?_0x29fc10[_0x2155a0(0x189)]:String(_0x29fc10),'repairCommand':REPAIR_COMMAND};}}export function inspectBuiltinSkill(_0x2b4ae6={}){const _0x16c8fd=a268_0x1905fd,_0x26f68c=_0x2b4ae6[_0x16c8fd(0x1a7)]??DEFAULT_PACKAGE_ROOT;let _0x3fb360;try{_0x3fb360=readSource(_0x26f68c);}catch(_0x3e6053){return{'state':_0x16c8fd(0x1a5),'packageVersion':'unknown','reason':_0x3e6053 instanceof Error?_0x3e6053['message']:String(_0x3e6053),'repairCommand':REPAIR_COMMAND};}const _0x1636ce=installedSkillPath(_0x2b4ae6[_0x16c8fd(0x195)]??homedir());if(_0x1636ce[_0x16c8fd(0x1aa)]===_0x16c8fd(0x1a8))return{'state':_0x16c8fd(0x1a8),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'repairCommand':REPAIR_COMMAND};if(_0x1636ce[_0x16c8fd(0x1aa)]===_0x16c8fd(0x1a5))return{'state':_0x16c8fd(0x1a5),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'reason':_0x1636ce[_0x16c8fd(0x1b2)],'repairCommand':REPAIR_COMMAND};try{const _0x5abd14=frontmatterValue(readFileSync(join(_0x1636ce[_0x16c8fd(0x18a)],_0x16c8fd(0x187)),'utf8'),_0x16c8fd(0x17c));if(_0x5abd14!==_0x3fb360[_0x16c8fd(0x1ab)])return{'state':_0x16c8fd(0x188),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'skillVersion':_0x5abd14,'installedPath':_0x1636ce[_0x16c8fd(0x18a)],'repairCommand':REPAIR_COMMAND};const _0x8c4339=listFiles(_0x1636ce[_0x16c8fd(0x18a)]),_0x3bb002=digestFiles(_0x1636ce[_0x16c8fd(0x18a)],_0x8c4339);return{'state':sameFiles(_0x8c4339,_0x3fb360[_0x16c8fd(0x18e)]['files'])&&_0x3bb002===_0x3fb360[_0x16c8fd(0x18e)][_0x16c8fd(0x192)]?'current':_0x16c8fd(0x19e),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'skillVersion':_0x5abd14,'installedPath':_0x1636ce[_0x16c8fd(0x18a)],'digest':_0x3bb002,'repairCommand':REPAIR_COMMAND};}catch(_0x1cd989){return{'state':_0x16c8fd(0x1a5),'packageVersion':_0x3fb360[_0x16c8fd(0x1a1)],'installedPath':_0x1636ce[_0x16c8fd(0x18a)],'reason':_0x1cd989 instanceof Error?_0x1cd989[_0x16c8fd(0x189)]:String(_0x1cd989),'repairCommand':REPAIR_COMMAND};}}function failure(_0x8cf27c,_0x42662a,_0x116dca,_0x2ed375){const _0x45276d=a268_0x1905fd;return{'ok':![],'code':_0x8cf27c,'packageVersion':_0x42662a[_0x45276d(0x1a1)],'skillVersion':_0x42662a[_0x45276d(0x1ab)],'installedPath':_0x2ed375,'changed':![],'repairCommand':REPAIR_COMMAND,'error':_0x116dca instanceof Error?_0x116dca[_0x45276d(0x189)]:String(_0x116dca)};}export function installBuiltinSkill(_0x4f1eee={}){const _0x5e64ac=a268_0x1905fd,_0x3e6f3f=_0x4f1eee[_0x5e64ac(0x1a7)]??DEFAULT_PACKAGE_ROOT,_0x380011=_0x4f1eee[_0x5e64ac(0x195)]??homedir();let _0x3d19ec;try{_0x3d19ec=readSource(_0x3e6f3f);}catch(_0x3dff81){return failure(_0x5e64ac(0x186),{'packageVersion':_0x5e64ac(0x197),'skillVersion':_0x5e64ac(0x197)},_0x3dff81);}const _0xba7141=inspectBuiltinSkill({'packageRoot':_0x3e6f3f,'home':_0x380011}),_0xa3decd=runNpxSkillsAddGlobal(_0x3e6f3f,_0x3d19ec['root'],{'stdio':_0x4f1eee[_0x5e64ac(0x1af)]??_0x5e64ac(0x1b0),'expectedSkillName':SKILL_NAME,'presence':{'home':_0x380011}});if(_0xa3decd['skipped'])return{'ok':!![],'packageVersion':_0x3d19ec[_0x5e64ac(0x1a1)],'skillVersion':_0x3d19ec[_0x5e64ac(0x1ab)],'installedPath':_0xba7141[_0x5e64ac(0x175)],'changed':![],'repairCommand':REPAIR_COMMAND};if(!_0xa3decd['ok'])return failure('INSTALL_FAILED',_0x3d19ec,_0xa3decd[_0x5e64ac(0x196)]??_0x5e64ac(0x17b)+_0xa3decd[_0x5e64ac(0x1a2)]);const _0x4bdc96=inspectBuiltinSkill({'packageRoot':_0x3e6f3f,'home':_0x380011});if(_0x4bdc96[_0x5e64ac(0x1aa)]!==_0x5e64ac(0x174))return failure(_0x5e64ac(0x17a),_0x3d19ec,_0x4bdc96['reason']??_0x5e64ac(0x183)+_0x4bdc96[_0x5e64ac(0x1aa)],_0x4bdc96[_0x5e64ac(0x175)]);return{'ok':!![],'packageVersion':_0x3d19ec[_0x5e64ac(0x1a1)],'skillVersion':_0x3d19ec[_0x5e64ac(0x1ab)],'installedPath':_0x4bdc96[_0x5e64ac(0x175)],'changed':_0xba7141[_0x5e64ac(0x1aa)]!=='current','repairCommand':REPAIR_COMMAND};}
@@ -1 +1 @@
1
- (function(_0x281ef7,_0x4b4265){const _0x17a698=a269_0x376f,_0x511647=_0x281ef7();while(!![]){try{const _0x3ae4ac=parseInt(_0x17a698(0x16b))/0x1+-parseInt(_0x17a698(0x182))/0x2+parseInt(_0x17a698(0x174))/0x3*(-parseInt(_0x17a698(0x176))/0x4)+parseInt(_0x17a698(0x175))/0x5+-parseInt(_0x17a698(0x184))/0x6+-parseInt(_0x17a698(0x17c))/0x7*(parseInt(_0x17a698(0x165))/0x8)+parseInt(_0x17a698(0x16d))/0x9;if(_0x3ae4ac===_0x4b4265)break;else _0x511647['push'](_0x511647['shift']());}catch(_0x4fc3b7){_0x511647['push'](_0x511647['shift']());}}}(a269_0x2e7b,0x4d5f3));import{logger}from'../utils/logger.js';function a269_0x376f(_0x1e2e5f,_0x273ba1){_0x1e2e5f=_0x1e2e5f-0x163;const _0x2e7b87=a269_0x2e7b();let _0x376f11=_0x2e7b87[_0x1e2e5f];return _0x376f11;}import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a269_0x2e7b(){const _0x59a9a2=['164XbLuYj','push','add','enable-bff-save','from','includes','2908129ugMLVm','has','(empty)','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','length','slice','721758OYxbGJ','--help','3477636PPmGpi','log','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','toLowerCase','8GBpQKM','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','cwd','entries','help','exit','431697dlQDaC','error','13343076arVrLL','skill','Error:\x20Unsupported\x20command:\x20','\x0aAvailable\x20commands:','argv','-$1','setLogPath','28881oNjmXn','766465HZqcRv'];a269_0x2e7b=function(){return _0x59a9a2;};return a269_0x2e7b();}export function camelCaseFlagsToKebab(_0xd701b9){const _0x5e911d=a269_0x376f,_0x51e4e7=[];for(const [_0x44e00b,_0x452024]of Object[_0x5e911d(0x168)](_0xd701b9)){if(_0x452024===!![]){const _0x111473=_0x44e00b['replace'](/([A-Z])/g,_0x5e911d(0x172))[_0x5e911d(0x164)]();_0x51e4e7[_0x5e911d(0x177)](_0x111473);}}return _0x51e4e7;}export function parseDynamicFlags(){const _0x537750=a269_0x376f,_0x83c78e=[];for(let _0x28fdce=0x3;_0x28fdce<process[_0x537750(0x171)][_0x537750(0x180)];_0x28fdce++){const _0x4dbdc8=process[_0x537750(0x171)][_0x28fdce];if(_0x4dbdc8&&_0x4dbdc8['startsWith']('--')){const _0x5c5992=_0x4dbdc8[_0x537750(0x181)](0x2);_0x5c5992&&!_0x5c5992[_0x537750(0x17b)]('=')&&_0x83c78e[_0x537750(0x177)](_0x5c5992);}}return _0x83c78e;}export function getAllProvidedFlags(_0x27b9a8){const _0x40740a=a269_0x376f,_0x153115=camelCaseFlagsToKebab(_0x27b9a8),_0x1900f0=parseDynamicFlags(),_0x14b576=new Set([..._0x153115,..._0x1900f0]);return Array[_0x40740a(0x17a)](_0x14b576);}export function normalizeLegacyBffSaveFlags(_0x51c179){const _0x121329=a269_0x376f,_0xbdfe5d=new Set(_0x51c179);return _0xbdfe5d[_0x121329(0x17d)]('dangerously-bff-save')&&_0xbdfe5d[_0x121329(0x178)](_0x121329(0x179)),Array[_0x121329(0x17a)](_0xbdfe5d);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x27af34,_0xa90822,_0x197603){const _0x1c5d17=a269_0x376f;logger[_0x1c5d17(0x173)](process[_0x1c5d17(0x167)]());if(_0x197603?.[_0x1c5d17(0x169)]||_0x27af34===_0x1c5d17(0x183)){showHelp();return;}console['error'](_0x1c5d17(0x16f)+(_0x27af34||_0x1c5d17(0x17e))),console[_0x1c5d17(0x185)](_0x1c5d17(0x170)),console[_0x1c5d17(0x185)]('\x20\x20'+CLI_BIN_NAME+_0x1c5d17(0x166)),console[_0x1c5d17(0x185)](''),console[_0x1c5d17(0x185)]('Public\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x1c5d17(0x16c)](_0x1c5d17(0x16e),'不支持的命令:\x20'+_0x27af34),process[_0x1c5d17(0x16a)](0x1);}function showHelp(){const _0x1c1c16=a269_0x376f;console['log'](_0x1c1c16(0x163)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x1c1c16(0x17f));}
1
+ (function(_0x8ec3c1,_0x5b803b){const _0x1a6868=a269_0x5afd,_0x20dfda=_0x8ec3c1();while(!![]){try{const _0x8b0b6e=parseInt(_0x1a6868(0xcf))/0x1*(parseInt(_0x1a6868(0xc0))/0x2)+parseInt(_0x1a6868(0xdb))/0x3+-parseInt(_0x1a6868(0xbe))/0x4*(parseInt(_0x1a6868(0xca))/0x5)+parseInt(_0x1a6868(0xc7))/0x6*(-parseInt(_0x1a6868(0xc9))/0x7)+parseInt(_0x1a6868(0xd7))/0x8*(-parseInt(_0x1a6868(0xde))/0x9)+-parseInt(_0x1a6868(0xdc))/0xa+-parseInt(_0x1a6868(0xcc))/0xb*(-parseInt(_0x1a6868(0xcd))/0xc);if(_0x8b0b6e===_0x5b803b)break;else _0x20dfda['push'](_0x20dfda['shift']());}catch(_0x266b0d){_0x20dfda['push'](_0x20dfda['shift']());}}}(a269_0x3859,0xc5c94));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a269_0x3859(){const _0xcc639=['(empty)','entries','3190080qMWinx','-$1','21JTVLpc','269710AdFCdS','replace','671lqTRVL','831696zfcdtV','enable-bff-save','2DywRbM','log','has','error','skill','setLogPath','toLowerCase','push','4840UUnypC','dangerously-bff-save','includes','Public\x20Open\x20Skill\x20source:\x20','4168086IgmLky','12702970bFrrQw','startsWith','16785dvhMBZ','argv','add','slice','\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20','108BaCyWG','Error:\x20Unsupported\x20command:\x20','643078wCUeVS','\x0a\x0aNote:\x20cli-skill\x20install\x20uses\x20the\x20npm\x20package-local\x20Skill;\x20the\x20public\x20source\x20is\x20an\x20optional\x20latest\x20mirror.\x0a','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','length','from'];a269_0x3859=function(){return _0xcc639;};return a269_0x3859();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';function a269_0x5afd(_0x2c76ad,_0x89a7b3){_0x2c76ad=_0x2c76ad-0xba;const _0x3859f9=a269_0x3859();let _0x5afd0f=_0x3859f9[_0x2c76ad];return _0x5afd0f;}export function camelCaseFlagsToKebab(_0x21ea25){const _0x41c63d=a269_0x5afd,_0x3e860f=[];for(const [_0x186d1b,_0x427bb2]of Object[_0x41c63d(0xc6)](_0x21ea25)){if(_0x427bb2===!![]){const _0x147f2d=_0x186d1b[_0x41c63d(0xcb)](/([A-Z])/g,_0x41c63d(0xc8))[_0x41c63d(0xd5)]();_0x3e860f[_0x41c63d(0xd6)](_0x147f2d);}}return _0x3e860f;}export function parseDynamicFlags(){const _0xb88978=a269_0x5afd,_0x500dce=[];for(let _0x259868=0x3;_0x259868<process[_0xb88978(0xba)][_0xb88978(0xc3)];_0x259868++){const _0x4c8121=process[_0xb88978(0xba)][_0x259868];if(_0x4c8121&&_0x4c8121[_0xb88978(0xdd)]('--')){const _0x30156f=_0x4c8121[_0xb88978(0xbc)](0x2);_0x30156f&&!_0x30156f[_0xb88978(0xd9)]('=')&&_0x500dce[_0xb88978(0xd6)](_0x30156f);}}return _0x500dce;}export function getAllProvidedFlags(_0x4028e0){const _0xe5d806=a269_0x5afd,_0x3d7f6a=camelCaseFlagsToKebab(_0x4028e0),_0x379207=parseDynamicFlags(),_0x4bd4b7=new Set([..._0x3d7f6a,..._0x379207]);return Array[_0xe5d806(0xc4)](_0x4bd4b7);}export function normalizeLegacyBffSaveFlags(_0x552c0e){const _0x44e23e=a269_0x5afd,_0xb89a81=new Set(_0x552c0e);return _0xb89a81[_0x44e23e(0xd1)](_0x44e23e(0xd8))&&_0xb89a81[_0x44e23e(0xbb)](_0x44e23e(0xce)),Array['from'](_0xb89a81);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x85839e,_0x41bc50,_0x5ba38f){const _0x58788c=a269_0x5afd;logger[_0x58788c(0xd4)](process['cwd']());if(_0x5ba38f?.['help']||_0x85839e==='--help'){showHelp();return;}console[_0x58788c(0xd2)](_0x58788c(0xbf)+(_0x85839e||_0x58788c(0xc5))),console[_0x58788c(0xd0)]('\x0aAvailable\x20commands:'),console['log']('\x20\x20'+CLI_BIN_NAME+_0x58788c(0xc2)),console[_0x58788c(0xd0)](''),console[_0x58788c(0xd0)](_0x58788c(0xda)+SKILLS_INSTALL_COMMAND_LINE),logger[_0x58788c(0xd2)](_0x58788c(0xd3),'不支持的命令:\x20'+_0x85839e),process['exit'](0x1);}function showHelp(){const _0x4b4999=a269_0x5afd;console['log'](_0x4b4999(0xbd)+CLI_BIN_NAME+'\x20cli-skill\x20install\x0a\x0aPublic\x20Open\x20Skill\x20source:\x20'+SKILLS_INSTALL_COMMAND_LINE+_0x4b4999(0xc1));}
@@ -1 +1 @@
1
- const a270_0x2b87f1=a270_0xdd27;(function(_0x287815,_0x213336){const _0x2062b7=a270_0xdd27,_0x1ea88c=_0x287815();while(!![]){try{const _0x647007=parseInt(_0x2062b7(0x132))/0x1+-parseInt(_0x2062b7(0x10b))/0x2*(parseInt(_0x2062b7(0x11f))/0x3)+parseInt(_0x2062b7(0x131))/0x4*(-parseInt(_0x2062b7(0x102))/0x5)+parseInt(_0x2062b7(0x117))/0x6*(parseInt(_0x2062b7(0x101))/0x7)+-parseInt(_0x2062b7(0xfe))/0x8+-parseInt(_0x2062b7(0x10d))/0x9*(parseInt(_0x2062b7(0x133))/0xa)+parseInt(_0x2062b7(0x135))/0xb;if(_0x647007===_0x213336)break;else _0x1ea88c['push'](_0x1ea88c['shift']());}catch(_0x3118f1){_0x1ea88c['push'](_0x1ea88c['shift']());}}}(a270_0x317f,0x6fc83));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills@latest';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a270_0x2b87f1(0x120);export const RABETBASE_SKILL_SOURCE=a270_0x2b87f1(0x115);export const LEGACY_RABETBASE_SKILL_SOURCE=a270_0x2b87f1(0x11e);export const DEFAULT_RABETBASE_SKILL_NAME=a270_0x2b87f1(0x110);function a270_0x317f(){const _0x1ab78f=['checked','signal','INSTALL_PARTIAL','push','absent','inherit','EACCES','unverifiable','error','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','rabetbase','pipe','4JgxfhJ','460172aexFgS','8565670IGVbOz','exit\x20','8823210mkODhd','CHILD_TERMINATED','yes','reason','546216CLpPIi','skill','code','4522CVQGuB','2677705TAjVeh','message','ENOENT','Skill\x20\x22','filter','toString','log','PERMISSION_DENIED','warn','2vLNZug','SKILL_NOT_INSTALLED','9uTMmBY','SPAWN_FAILED','stdout','Lovrabet','match','CHILD_EXIT_NONZERO','npm_config_global','state','lovrabet/rabetbase','unknown','7074MyqoCC','stderr','npx','!\x20Could\x20not\x20verify\x20\x22','npx\x20terminated\x20by\x20signal\x20','EPERM','trim','lovrabet/lovrabet-skill','317016vKCeLj','--skill','stdio','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','join','status'];a270_0x317f=function(){return _0x1ab78f;};return a270_0x317f();}export const RABETBASE_GLOBAL_SKILL_NAME=a270_0x2b87f1(0x12f);export const RABETBASE_SKILL_GIT_SOURCE=a270_0x2b87f1(0x12e);export function resolveGlobalSkillName(_0x1e056e){const _0x13a48f=a270_0x2b87f1;switch(_0x1e056e[_0x13a48f(0x11d)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x1b5302){const _0x328398=a270_0x2b87f1,_0xe6d3f4=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x1b5302&&_0xe6d3f4[_0x328398(0x128)](NPX_SKILLS_FLAG_SKILL,_0x1b5302),_0xe6d3f4;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a270_0x2b87f1(0x119),...buildNpxSkillsAddArgv()][a270_0x2b87f1(0x123)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=['npx',NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a270_0x2b87f1(0x123)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x2f90e8,_0x4056b9,_0x2d33b0){return{'ok':![],'status':_0x4056b9,'code':_0x2f90e8,'error':'['+_0x2f90e8+']\x20'+_0x2d33b0};}function spawnOptions(_0x4574a8,_0x711e87){const _0x11fc87=a270_0x2b87f1,_0xf8e0cb={...process.env};return delete _0xf8e0cb[_0x11fc87(0x113)],delete _0xf8e0cb['NPM_CONFIG_GLOBAL'],{'cwd':_0x4574a8,'stdio':_0x711e87,'env':_0xf8e0cb,'shell':![],..._0x711e87===_0x11fc87(0x130)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x4fe940,_0x2106d2,_0x21a717,_0x1e057c){const _0x63b421=a270_0x2b87f1,_0xad929f=[_0x4fe940[_0x63b421(0x10f)]?_0x4fe940[_0x63b421(0x10f)][_0x63b421(0x107)]():'',_0x4fe940[_0x63b421(0x118)]?_0x4fe940[_0x63b421(0x118)][_0x63b421(0x107)]():''][_0x63b421(0x106)](Boolean)['join']('\x0a')[_0x63b421(0x11d)]();_0x1e057c!==_0x63b421(0x130)&&_0xad929f&&console[_0x63b421(0x108)](_0xad929f);if(_0x4fe940[_0x63b421(0x12d)]){const _0x134fab=_0x4fe940['error'],_0x2b4bae=_0x134fab[_0x63b421(0x100)]===_0x63b421(0x104)?'NPX_NOT_FOUND':_0x134fab['code']===_0x63b421(0x11c)||_0x134fab[_0x63b421(0x100)]===_0x63b421(0x12b)?_0x63b421(0x109):_0x63b421(0x10e);return failure(_0x2b4bae,_0x4fe940[_0x63b421(0x124)],_0x134fab[_0x63b421(0x103)]);}if(_0x4fe940[_0x63b421(0x126)])return failure(_0x63b421(0x136),_0x4fe940['status'],_0x63b421(0x11b)+_0x4fe940[_0x63b421(0x126)]);if(_0x4fe940[_0x63b421(0x124)]!==0x0)return failure(_0x63b421(0x112),_0x4fe940[_0x63b421(0x124)],_0xad929f||_0x63b421(0x134)+(_0x4fe940[_0x63b421(0x124)]??_0x63b421(0x116)));const _0x3cd3de=_0x2106d2?resolveInstalledSkill(_0x2106d2,_0x21a717):undefined,_0x144f43=_0xad929f[_0x63b421(0x111)](/Failed to install\s+(\d+)/i);if(_0x144f43&&Number(_0x144f43[0x1])>0x0){const _0x24e66f='Installer\x20reported\x20'+_0x144f43[0x1]+'\x20failed\x20target(s)'+(_0xad929f?':\x0a'+_0xad929f:'');if(_0x3cd3de?.[_0x63b421(0x114)]==='present')return console[_0x63b421(0x10a)]('!\x20'+_0x24e66f),{'ok':!![],'status':0x0};return failure(_0x63b421(0x127),0x0,_0x24e66f);}if(_0x3cd3de){if(_0x3cd3de[_0x63b421(0x114)]===_0x63b421(0x129))return failure(_0x63b421(0x10c),0x0,_0x63b421(0x105)+_0x2106d2+_0x63b421(0x122)+_0x3cd3de[_0x63b421(0x125)][_0x63b421(0x123)](',\x20')+')');_0x3cd3de[_0x63b421(0x114)]===_0x63b421(0x12c)&&console['warn'](_0x63b421(0x11a)+_0x2106d2+'\x22\x20install\x20state:\x20'+_0x3cd3de[_0x63b421(0xfd)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x321528,_0x369bc6){const _0x1f691e=a270_0x2b87f1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x56110e=_0x369bc6?.['stdio']??'inherit',_0x47a718=resolveNpmBin('npx'),_0x428144=buildNpxSkillsAddArgv(_0x369bc6?.[_0x1f691e(0xff)]),_0x449e04=[_0x1f691e(0x119),..._0x428144][_0x1f691e(0x123)]('\x20');console[_0x1f691e(0x108)]('*\x20'+_0x449e04);const _0x4cc520=spawnSync(_0x47a718,_0x428144,spawnOptions(_0x321528,_0x56110e));return normalizeSpawnResult(_0x4cc520,undefined,undefined,_0x56110e);}export function runNpxSkillsRemove(_0x3c15ec,_0xd2db18,_0x53756b=LEGACY_RABETBASE_SKILL_SOURCE){const _0x226326=a270_0x2b87f1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x54d561=_0xd2db18?.[_0x226326(0x121)]??_0x226326(0x12a),_0x500b98=resolveNpmBin(_0x226326(0x119)),_0x73a72e=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x53756b,NPX_SKILLS_FLAG_SKILL,_0xd2db18?.['skill']??DEFAULT_RABETBASE_SKILL_NAME,..._0xd2db18?.[_0x226326(0xfc)]?['-y']:[]],_0x32684b=[_0x500b98,..._0x73a72e]['join']('\x20');console[_0x226326(0x108)]('*\x20'+_0x32684b);const _0x109e99=spawnSync(_0x500b98,_0x73a72e,spawnOptions(_0x3c15ec,_0x54d561));return normalizeSpawnResult(_0x109e99,undefined,undefined,_0x54d561);}function a270_0xdd27(_0x2f1519,_0x1ac136){_0x2f1519=_0x2f1519-0xfc;const _0x317f88=a270_0x317f();let _0xdd271b=_0x317f88[_0x2f1519];return _0xdd271b;}export function runNpxSkillsAddGlobal(_0x3c278e,_0x4e2fff,_0x39b47e){const _0x41ebc8=a270_0x2b87f1;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xa566d1=resolveNpmBin(_0x41ebc8(0x119)),_0x3fca10=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e2fff,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x789022=[_0x41ebc8(0x119),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4e2fff,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x41ebc8(0x123)]('\x20');console['log']('*\x20'+_0x789022);const _0x5c799a=spawnSync(_0xa566d1,_0x3fca10,spawnOptions(_0x3c278e,_0x41ebc8(0x130)));return normalizeSpawnResult(_0x5c799a,_0x39b47e?.['expectedSkillName']??resolveGlobalSkillName(_0x4e2fff),_0x39b47e?.['presence'],_0x39b47e?.['stdio']);}
1
+ const a270_0x4cbb8c=a270_0x167d;(function(_0x5353f6,_0x1142d8){const _0xac72e5=a270_0x167d,_0x4935c8=_0x5353f6();while(!![]){try{const _0x8843d3=-parseInt(_0xac72e5(0x1db))/0x1+parseInt(_0xac72e5(0x1dd))/0x2*(parseInt(_0xac72e5(0x1de))/0x3)+-parseInt(_0xac72e5(0x1f7))/0x4*(-parseInt(_0xac72e5(0x1df))/0x5)+parseInt(_0xac72e5(0x1c9))/0x6+-parseInt(_0xac72e5(0x1cd))/0x7+-parseInt(_0xac72e5(0x1d6))/0x8*(parseInt(_0xac72e5(0x1ed))/0x9)+parseInt(_0xac72e5(0x1d0))/0xa*(parseInt(_0xac72e5(0x1eb))/0xb);if(_0x8843d3===_0x1142d8)break;else _0x4935c8['push'](_0x4935c8['shift']());}catch(_0x22dd31){_0x4935c8['push'](_0x4935c8['shift']());}}}(a270_0x1b54,0xd6544));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';import{resolveInstalledSkill}from'../skills/skill-presence.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a270_0x4cbb8c(0x1bf);export const NPX_SKILLS_SUBCOMMAND_ADD=a270_0x4cbb8c(0x1d9);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a270_0x4cbb8c(0x1e5);export const LEGACY_RABETBASE_SKILL_SOURCE=a270_0x4cbb8c(0x1ce);export const DEFAULT_RABETBASE_SKILL_NAME=a270_0x4cbb8c(0x1d7);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE=a270_0x4cbb8c(0x1c8);export function resolveGlobalSkillName(_0x143497){const _0x19094c=a270_0x4cbb8c;switch(_0x143497[_0x19094c(0x1e7)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x574186){const _0xfcac25=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x574186&&_0xfcac25['push'](NPX_SKILLS_FLAG_SKILL,_0x574186),_0xfcac25;}function a270_0x167d(_0x11c23b,_0x58ba2d){_0x11c23b=_0x11c23b-0x1b7;const _0x1b54e5=a270_0x1b54();let _0x167dbf=_0x1b54e5[_0x11c23b];return _0x167dbf;}function a270_0x1b54(){const _0x4835e1=['1245EPjvvr','PERMISSION_DENIED','NPM_CONFIG_GLOBAL','warn','unverifiable','remove','lovrabet/rabetbase','exit\x20','trim','CHILD_EXIT_NONZERO','INSTALL_PARTIAL','present','486277YrgoQC','EPERM','1709946idUjZA','log','match','skill','code','NPX_NOT_FOUND','unknown','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','reason','Installer\x20reported\x20','16096tzbKqQ','state','stderr','error','stdio','EACCES','ENOENT','SPAWN_FAILED','message','skills@latest','npx','signal','stdout','checked','npm_config_global','join','CHILD_TERMINATED','expectedSkillName','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','7494906LAFUMz','presence','toString','SKILL_NOT_INSTALLED','3471412XHVJUX','lovrabet/lovrabet-skill','\x22\x20install\x20state:\x20','10TKyzXD','status','inherit','yes','pipe','npx\x20terminated\x20by\x20signal\x20','24jpwUZU','Lovrabet','\x20failed\x20target(s)','add','Skill\x20\x22','860943gVkzNc','filter','22MONajI','138927nBrgaz'];a270_0x1b54=function(){return _0x4835e1;};return a270_0x1b54();}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a270_0x4cbb8c(0x1c5)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a270_0x4cbb8c(0x1c0),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES]['join']('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x530713,_0x270632,_0x5b11f5){return{'ok':![],'status':_0x270632,'code':_0x530713,'error':'['+_0x530713+']\x20'+_0x5b11f5};}function spawnOptions(_0x5e3c34,_0xde21cb){const _0x25a00a=a270_0x4cbb8c,_0x31ef82={...process.env};return delete _0x31ef82[_0x25a00a(0x1c4)],delete _0x31ef82[_0x25a00a(0x1e1)],{'cwd':_0x5e3c34,'stdio':_0xde21cb,'env':_0x31ef82,'shell':![],..._0xde21cb===_0x25a00a(0x1d4)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x5e1e0e,_0x464fb7,_0x531daa,_0x8b0347){const _0x58bea0=a270_0x4cbb8c,_0xf40b7d=[_0x5e1e0e[_0x58bea0(0x1c2)]?_0x5e1e0e['stdout'][_0x58bea0(0x1cb)]():'',_0x5e1e0e[_0x58bea0(0x1b8)]?_0x5e1e0e[_0x58bea0(0x1b8)][_0x58bea0(0x1cb)]():''][_0x58bea0(0x1dc)](Boolean)[_0x58bea0(0x1c5)]('\x0a')[_0x58bea0(0x1e7)]();_0x8b0347!=='pipe'&&_0xf40b7d&&console[_0x58bea0(0x1ee)](_0xf40b7d);if(_0x5e1e0e['error']){const _0x45116a=_0x5e1e0e[_0x58bea0(0x1b9)],_0xd09bc3=_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1bc)?_0x58bea0(0x1f2):_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1ec)||_0x45116a[_0x58bea0(0x1f1)]===_0x58bea0(0x1bb)?_0x58bea0(0x1e0):_0x58bea0(0x1bd);return failure(_0xd09bc3,_0x5e1e0e[_0x58bea0(0x1d1)],_0x45116a[_0x58bea0(0x1be)]);}if(_0x5e1e0e[_0x58bea0(0x1c1)])return failure(_0x58bea0(0x1c6),_0x5e1e0e[_0x58bea0(0x1d1)],_0x58bea0(0x1d5)+_0x5e1e0e['signal']);if(_0x5e1e0e[_0x58bea0(0x1d1)]!==0x0)return failure(_0x58bea0(0x1e8),_0x5e1e0e[_0x58bea0(0x1d1)],_0xf40b7d||_0x58bea0(0x1e6)+(_0x5e1e0e[_0x58bea0(0x1d1)]??_0x58bea0(0x1f3)));const _0x59d054=_0x464fb7?resolveInstalledSkill(_0x464fb7,_0x531daa):undefined,_0x16f153=_0xf40b7d[_0x58bea0(0x1ef)](/Failed to install\s+(\d+)/i);if(_0x16f153&&Number(_0x16f153[0x1])>0x0){const _0x8574a8=_0x58bea0(0x1f6)+_0x16f153[0x1]+_0x58bea0(0x1d8)+(_0xf40b7d?':\x0a'+_0xf40b7d:'');if(_0x59d054?.[_0x58bea0(0x1b7)]===_0x58bea0(0x1ea))return console[_0x58bea0(0x1e2)]('!\x20'+_0x8574a8),{'ok':!![],'status':0x0};return failure(_0x58bea0(0x1e9),0x0,_0x8574a8);}if(_0x59d054){if(_0x59d054[_0x58bea0(0x1b7)]==='absent')return failure(_0x58bea0(0x1cc),0x0,_0x58bea0(0x1da)+_0x464fb7+_0x58bea0(0x1f4)+_0x59d054[_0x58bea0(0x1c3)]['join'](',\x20')+')');_0x59d054[_0x58bea0(0x1b7)]===_0x58bea0(0x1e3)&&console['warn']('!\x20Could\x20not\x20verify\x20\x22'+_0x464fb7+_0x58bea0(0x1cf)+_0x59d054[_0x58bea0(0x1f5)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x54e7d9,_0x424fd4){const _0xbe810b=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x35fd49=_0x424fd4?.[_0xbe810b(0x1ba)]??_0xbe810b(0x1d2),_0x2ce2ec=resolveNpmBin(_0xbe810b(0x1c0)),_0x5f4065=buildNpxSkillsAddArgv(_0x424fd4?.['skill']),_0x5be15b=[_0xbe810b(0x1c0),..._0x5f4065][_0xbe810b(0x1c5)]('\x20');console['log']('*\x20'+_0x5be15b);const _0x2c194d=spawnSync(_0x2ce2ec,_0x5f4065,spawnOptions(_0x54e7d9,_0x35fd49));return normalizeSpawnResult(_0x2c194d,undefined,undefined,_0x35fd49);}export function runNpxSkillsRemove(_0x3b3447,_0x15745c,_0x433e00=LEGACY_RABETBASE_SKILL_SOURCE){const _0x5e3858=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x7fae23=_0x15745c?.['stdio']??'inherit',_0x55fa8e=resolveNpmBin(_0x5e3858(0x1c0)),_0x293ba7=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x5e3858(0x1e4),_0x433e00,NPX_SKILLS_FLAG_SKILL,_0x15745c?.[_0x5e3858(0x1f0)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x15745c?.[_0x5e3858(0x1d3)]?['-y']:[]],_0x21b005=[_0x55fa8e,..._0x293ba7]['join']('\x20');console['log']('*\x20'+_0x21b005);const _0x5d43b5=spawnSync(_0x55fa8e,_0x293ba7,spawnOptions(_0x3b3447,_0x7fae23));return normalizeSpawnResult(_0x5d43b5,undefined,undefined,_0x7fae23);}export function runNpxSkillsAddGlobal(_0x28eb34,_0x52288d,_0x39d275){const _0x20800a=a270_0x4cbb8c;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x53a343=resolveNpmBin(_0x20800a(0x1c0)),_0x24e14d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x52288d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x9704ae=[_0x20800a(0x1c0),NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x52288d,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x20800a(0x1c5)]('\x20');console['log']('*\x20'+_0x9704ae);const _0x7c3d3a=spawnSync(_0x53a343,_0x24e14d,spawnOptions(_0x28eb34,_0x20800a(0x1d4)));return normalizeSpawnResult(_0x7c3d3a,_0x39d275?.[_0x20800a(0x1c7)]??resolveGlobalSkillName(_0x52288d),_0x39d275?.[_0x20800a(0x1ca)],_0x39d275?.[_0x20800a(0x1ba)]);}
@@ -1 +1 @@
1
- function a271_0x1d0e(){const _0x5f2c4a=['find','3177048hgPygx','\x20uses\x20unsupported\x20version\x20','unusable','SKILL.md','map','.agents','parse','present','skills','object','join','lockFile','unverifiable','\x20has\x20no\x20skills\x20map','utf8','4725273AjNODp','8nfaRYQ','6827887WDzGoQ','globalSkillsDirs','\x20records\x20\x22','number','.claude','3028mwUBIj','6205VIGgqD','reason','absent','1732zfWsgU','version','10hUgmJi','kind','4xZHGPD','6508071wErjqw','recorded','5038776QBGQNQ','.skill-lock.json'];a271_0x1d0e=function(){return _0x5f2c4a;};return a271_0x1d0e();}const a271_0x377ea2=a271_0x5226;(function(_0x4b26d8,_0x1abde7){const _0x3d3dbd=a271_0x5226,_0x33fb9a=_0x4b26d8();while(!![]){try{const _0xa8599e=parseInt(_0x3d3dbd(0xa7))/0x1*(-parseInt(_0x3d3dbd(0x8b))/0x2)+parseInt(_0x3d3dbd(0x91))/0x3+-parseInt(_0x3d3dbd(0x87))/0x4*(parseInt(_0x3d3dbd(0xa8))/0x5)+parseInt(_0x3d3dbd(0x8e))/0x6+parseInt(_0x3d3dbd(0xa0))/0x7*(-parseInt(_0x3d3dbd(0xa1))/0x8)+parseInt(_0x3d3dbd(0x8c))/0x9*(-parseInt(_0x3d3dbd(0x89))/0xa)+parseInt(_0x3d3dbd(0xa2))/0xb;if(_0xa8599e===_0x1abde7)break;else _0x33fb9a['push'](_0x33fb9a['shift']());}catch(_0x1be7ae){_0x33fb9a['push'](_0x33fb9a['shift']());}}}(a271_0x1d0e,0x8d1aa));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a271_0x377ea2(0x96),a271_0x377ea2(0x8f));function a271_0x5226(_0x4baa16,_0x2bf3f5){_0x4baa16=_0x4baa16-0x86;const _0x1d0ef0=a271_0x1d0e();let _0x522631=_0x1d0ef0[_0x4baa16];return _0x522631;}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a271_0x377ea2(0x99)),join(a271_0x377ea2(0xa6),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x140492,_0x2d4a06){const _0x2749fd=a271_0x377ea2;if(!existsSync(_0x140492))return{'kind':'not-recorded'};let _0x532128;try{_0x532128=JSON[_0x2749fd(0x97)](readFileSync(_0x140492,_0x2749fd(0x9f)));}catch(_0x23469f){return{'kind':_0x2749fd(0x93),'reason':_0x140492+'\x20is\x20unreadable:\x20'+_0x23469f['message']};}const _0x1bc80f=_0x532128;if(typeof _0x1bc80f?.['version']!==_0x2749fd(0xa5)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x1bc80f[_0x2749fd(0x88)]))return{'kind':_0x2749fd(0x93),'reason':_0x140492+_0x2749fd(0x92)+String(_0x1bc80f?.['version'])};if(!_0x1bc80f[_0x2749fd(0x99)]||typeof _0x1bc80f[_0x2749fd(0x99)]!==_0x2749fd(0x9a))return{'kind':_0x2749fd(0x93),'reason':_0x140492+_0x2749fd(0x9e)};return _0x1bc80f['skills'][_0x2d4a06]?{'kind':_0x2749fd(0x8d)}:{'kind':'not-recorded'};}export function resolveInstalledSkill(_0x162cb1,_0x2f675e){const _0x292a19=a271_0x377ea2,_0x5cf5d7=_0x2f675e?.['home']??homedir(),_0x1703ca=_0x2f675e?.[_0x292a19(0xa3)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x292a19(0x95)](_0x45b4a4=>join(_0x5cf5d7,_0x45b4a4)),_0x1dc088=_0x2f675e?.[_0x292a19(0x9c)]??join(_0x5cf5d7,SKILL_LOCK_RELATIVE_PATH),_0xa5a50c=_0x1703ca['map'](_0x5e6f32=>join(_0x5e6f32,_0x162cb1,_0x292a19(0x94))),_0x274f0f=_0xa5a50c[_0x292a19(0x90)](_0x26f426=>existsSync(_0x26f426));if(_0x274f0f)return{'state':_0x292a19(0x98),'path':_0x274f0f};const _0x7a0f92=readLockLookup(_0x1dc088,_0x162cb1);if(_0x7a0f92[_0x292a19(0x8a)]===_0x292a19(0x93))return{'state':_0x292a19(0x9d),'reason':_0x7a0f92[_0x292a19(0xa9)]};if(_0x7a0f92[_0x292a19(0x8a)]===_0x292a19(0x8d))return{'state':_0x292a19(0x9d),'reason':_0x1dc088+_0x292a19(0xa4)+_0x162cb1+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0xa5a50c[_0x292a19(0x9b)](',\x20')+')')};return{'state':_0x292a19(0x86),'checked':_0xa5a50c};}
1
+ function a271_0x149d(_0x2d4e7d,_0x4babb1){_0x2d4e7d=_0x2d4e7d-0x1d6;const _0x5ee410=a271_0x5ee4();let _0x149d65=_0x5ee410[_0x2d4e7d];return _0x149d65;}const a271_0x52057c=a271_0x149d;(function(_0x27e721,_0x2e0aa8){const _0x33e1aa=a271_0x149d,_0x234ae5=_0x27e721();while(!![]){try{const _0xbd62bb=parseInt(_0x33e1aa(0x1e5))/0x1+-parseInt(_0x33e1aa(0x1e7))/0x2*(-parseInt(_0x33e1aa(0x1ee))/0x3)+-parseInt(_0x33e1aa(0x1f4))/0x4*(-parseInt(_0x33e1aa(0x1e6))/0x5)+parseInt(_0x33e1aa(0x1f3))/0x6+parseInt(_0x33e1aa(0x1e2))/0x7*(-parseInt(_0x33e1aa(0x1ed))/0x8)+parseInt(_0x33e1aa(0x1dd))/0x9*(-parseInt(_0x33e1aa(0x1d8))/0xa)+-parseInt(_0x33e1aa(0x1f2))/0xb;if(_0xbd62bb===_0x2e0aa8)break;else _0x234ae5['push'](_0x234ae5['shift']());}catch(_0x4ddf49){_0x234ae5['push'](_0x234ae5['shift']());}}}(a271_0x5ee4,0x9a2c4));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a271_0x5ee4(){const _0x3386a0=['map','2031112DxqRFj','112911qaPwRJ','join','find','lockFile','9480625zdtuqU','2828058DuDBCI','68pnaXIM','SKILL.md','message','home','1219210qaPZyW','kind','skills','unverifiable','parse','81swpwXw','\x20uses\x20unsupported\x20version\x20','reason','.skill-lock.json','not-recorded','7QFvJmy','unusable','version','532005wZLILl','297995uHfKdr','44ziZmUF','globalSkillsDirs','\x20is\x20unreadable:\x20','recorded','object'];a271_0x5ee4=function(){return _0x3386a0;};return a271_0x5ee4();}export const SKILL_LOCK_RELATIVE_PATH=join('.agents',a271_0x52057c(0x1e0));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents','skills'),join('.claude',a271_0x52057c(0x1da))];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x47ded6,_0xf0a37c){const _0x1b9bca=a271_0x52057c;if(!existsSync(_0x47ded6))return{'kind':_0x1b9bca(0x1e1)};let _0x3cca20;try{_0x3cca20=JSON[_0x1b9bca(0x1dc)](readFileSync(_0x47ded6,'utf8'));}catch(_0x33dd54){return{'kind':_0x1b9bca(0x1e3),'reason':_0x47ded6+_0x1b9bca(0x1e9)+_0x33dd54[_0x1b9bca(0x1d6)]};}const _0x132100=_0x3cca20;if(typeof _0x132100?.[_0x1b9bca(0x1e4)]!=='number'||!SUPPORTED_LOCK_VERSIONS['includes'](_0x132100[_0x1b9bca(0x1e4)]))return{'kind':_0x1b9bca(0x1e3),'reason':_0x47ded6+_0x1b9bca(0x1de)+String(_0x132100?.[_0x1b9bca(0x1e4)])};if(!_0x132100['skills']||typeof _0x132100['skills']!==_0x1b9bca(0x1eb))return{'kind':'unusable','reason':_0x47ded6+'\x20has\x20no\x20skills\x20map'};return _0x132100[_0x1b9bca(0x1da)][_0xf0a37c]?{'kind':_0x1b9bca(0x1ea)}:{'kind':_0x1b9bca(0x1e1)};}export function resolveInstalledSkill(_0x7fe580,_0x5c19c0){const _0x27a1da=a271_0x52057c,_0x17f7f9=_0x5c19c0?.[_0x27a1da(0x1d7)]??homedir(),_0x25bb61=_0x5c19c0?.[_0x27a1da(0x1e8)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x27a1da(0x1ec)](_0x4cd112=>join(_0x17f7f9,_0x4cd112)),_0x4bddc8=_0x5c19c0?.[_0x27a1da(0x1f1)]??join(_0x17f7f9,SKILL_LOCK_RELATIVE_PATH),_0x226a75=_0x25bb61[_0x27a1da(0x1ec)](_0x3df4e7=>join(_0x3df4e7,_0x7fe580,_0x27a1da(0x1f5))),_0x394c16=_0x226a75[_0x27a1da(0x1f0)](_0x2484e9=>existsSync(_0x2484e9));if(_0x394c16)return{'state':'present','path':_0x394c16};const _0x10ebbd=readLockLookup(_0x4bddc8,_0x7fe580);if(_0x10ebbd[_0x27a1da(0x1d9)]==='unusable')return{'state':_0x27a1da(0x1db),'reason':_0x10ebbd[_0x27a1da(0x1df)]};if(_0x10ebbd['kind']===_0x27a1da(0x1ea))return{'state':_0x27a1da(0x1db),'reason':_0x4bddc8+'\x20records\x20\x22'+_0x7fe580+'\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20'+('('+_0x226a75[_0x27a1da(0x1ef)](',\x20')+')')};return{'state':'absent','checked':_0x226a75};}
@@ -1 +1 @@
1
- function a272_0x78f5(){const _0x14c123=['1005035eKPPxT','6cRZHIE','417958YwJKUn','message','command','97493vTNVyX','flags','2220agbIXJ','stringify','37242CaHNDF','error','466000orkiBO','durationMs','7RPGETw','3515552gJSrwq','13LneUqC','rabetbase.command','1600eFXczf','test','7XwhYLn','1959580yNEcGD','42rPbtrH'];a272_0x78f5=function(){return _0x14c123;};return a272_0x78f5();}function a272_0x4a8c(_0x1cc3ed,_0x5367a9){_0x1cc3ed=_0x1cc3ed-0x1ed;const _0x78f53f=a272_0x78f5();let _0x4a8c13=_0x78f53f[_0x1cc3ed];return _0x4a8c13;}(function(_0x84c88c,_0x2b016d){const _0x32d7fd=a272_0x4a8c,_0xe13fcb=_0x84c88c();while(!![]){try{const _0x5ca82a=-parseInt(_0x32d7fd(0x1f7))/0x1*(-parseInt(_0x32d7fd(0x1fc))/0x2)+-parseInt(_0x32d7fd(0x1fb))/0x3*(parseInt(_0x32d7fd(0x1ef))/0x4)+-parseInt(_0x32d7fd(0x1fa))/0x5*(-parseInt(_0x32d7fd(0x1f9))/0x6)+-parseInt(_0x32d7fd(0x1f1))/0x7*(-parseInt(_0x32d7fd(0x1f2))/0x8)+-parseInt(_0x32d7fd(0x1ed))/0x9*(parseInt(_0x32d7fd(0x1f5))/0xa)+parseInt(_0x32d7fd(0x1ff))/0xb*(-parseInt(_0x32d7fd(0x201))/0xc)+-parseInt(_0x32d7fd(0x1f3))/0xd*(-parseInt(_0x32d7fd(0x1f8))/0xe);if(_0x5ca82a===_0x2b016d)break;else _0xe13fcb['push'](_0xe13fcb['shift']());}catch(_0x5a324e){_0xe13fcb['push'](_0xe13fcb['shift']());}}}(a272_0x78f5,0xdf495));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x1772e0){const _0x248d0a=a272_0x4a8c;return SENSITIVE_PATTERNS['some'](_0x1e5bde=>_0x1e5bde[_0x248d0a(0x1f6)](_0x1772e0));}function sanitizeFlags(_0x3469a0){const _0x318fdc={};for(const [_0x1071eb,_0x2950bf]of Object['entries'](_0x3469a0)){isSensitiveKey(_0x1071eb)?_0x318fdc[_0x1071eb]=_0x2950bf!=null&&_0x2950bf!==''?'[REDACTED]':_0x2950bf:_0x318fdc[_0x1071eb]=_0x2950bf;}return _0x318fdc;}export async function reportCommandTrace(_0x4e5a74){const _0x2ceb82=a272_0x4a8c;try{const _0x3a9492=sanitizeFlags(_0x4e5a74[_0x2ceb82(0x200)]);await sendCliTraceLog({'spanName':_0x2ceb82(0x1f4),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x4e5a74['service'],'command.name':_0x4e5a74[_0x2ceb82(0x1fe)],'command.flags':JSON[_0x2ceb82(0x202)](_0x3a9492),..._0x4e5a74[_0x2ceb82(0x1f0)]!=null?{'command.duration_ms':_0x4e5a74[_0x2ceb82(0x1f0)]}:{},..._0x4e5a74[_0x2ceb82(0x1ee)]?{'command.error':_0x4e5a74['error']instanceof Error?_0x4e5a74[_0x2ceb82(0x1ee)][_0x2ceb82(0x1fd)]:String(_0x4e5a74[_0x2ceb82(0x1ee)])}:{}}});}catch{}}
1
+ (function(_0xd5ec5e,_0x272da9){const _0x32f588=a272_0x5744,_0x4f6fe9=_0xd5ec5e();while(!![]){try{const _0x1b8d69=-parseInt(_0x32f588(0x1ea))/0x1*(parseInt(_0x32f588(0x1f1))/0x2)+parseInt(_0x32f588(0x1f3))/0x3+-parseInt(_0x32f588(0x1f7))/0x4*(-parseInt(_0x32f588(0x1fa))/0x5)+-parseInt(_0x32f588(0x1f2))/0x6+parseInt(_0x32f588(0x1ec))/0x7*(parseInt(_0x32f588(0x1f6))/0x8)+-parseInt(_0x32f588(0x1f4))/0x9+parseInt(_0x32f588(0x1f0))/0xa;if(_0x1b8d69===_0x272da9)break;else _0x4f6fe9['push'](_0x4f6fe9['shift']());}catch(_0x32f4b7){_0x4f6fe9['push'](_0x4f6fe9['shift']());}}}(a272_0x572c,0xd22de));function a272_0x572c(){const _0x3b2beb=['14haauJr','message','error','command','21623320szZZLH','805038AcyVjz','8463480EOrVMj','325908qCACDo','944226ogcysc','stringify','1036760nbWtzC','4aBcwWA','some','durationMs','1243745qhpMDp','test','1LUVLAh','rabetbase.command'];a272_0x572c=function(){return _0x3b2beb;};return a272_0x572c();}function a272_0x5744(_0x5a8b23,_0x107286){_0x5a8b23=_0x5a8b23-0x1e9;const _0x572c80=a272_0x572c();let _0x574408=_0x572c80[_0x5a8b23];return _0x574408;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i,/^value$/i];function isSensitiveKey(_0x452fc1){const _0x29202a=a272_0x5744;return SENSITIVE_PATTERNS[_0x29202a(0x1f8)](_0x280de5=>_0x280de5[_0x29202a(0x1e9)](_0x452fc1));}function sanitizeFlags(_0x136c6a){const _0x599e4e={};for(const [_0x51c215,_0xa43e35]of Object['entries'](_0x136c6a)){isSensitiveKey(_0x51c215)?_0x599e4e[_0x51c215]=_0xa43e35!=null&&_0xa43e35!==''?'[REDACTED]':_0xa43e35:_0x599e4e[_0x51c215]=_0xa43e35;}return _0x599e4e;}export async function reportCommandTrace(_0x58191d){const _0x5bdf21=a272_0x5744;try{const _0x1a9a7c=sanitizeFlags(_0x58191d['flags']);await sendCliTraceLog({'spanName':_0x5bdf21(0x1eb),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x58191d['service'],'command.name':_0x58191d[_0x5bdf21(0x1ef)],'command.flags':JSON[_0x5bdf21(0x1f5)](_0x1a9a7c),..._0x58191d[_0x5bdf21(0x1f9)]!=null?{'command.duration_ms':_0x58191d['durationMs']}:{},..._0x58191d[_0x5bdf21(0x1ee)]?{'command.error':_0x58191d[_0x5bdf21(0x1ee)]instanceof Error?_0x58191d[_0x5bdf21(0x1ee)][_0x5bdf21(0x1ed)]:String(_0x58191d[_0x5bdf21(0x1ee)])}:{}}});}catch{}}
@@ -1 +1 @@
1
- function a273_0x2adb(){var _0x2be3d=['service','8108112Tvrcwv','240mCAPMT','612flQlSA','44zNPkIW','cli.help','2361496zTwOXt','193120eRXYgn','56kjegES','2420618givDQl','1292493dyyFov','3XnmtbL','161286OCGWaM','Failed\x20to\x20report\x20CLI\x20help\x20trace:','5663DRvxrO','error'];a273_0x2adb=function(){return _0x2be3d;};return a273_0x2adb();}(function(_0x8cf226,_0x4be612){var _0x406da0=a273_0x16c9,_0xbd7930=_0x8cf226();while(!![]){try{var _0x11915e=-parseInt(_0x406da0(0x7b))/0x1+parseInt(_0x406da0(0x7a))/0x2*(-parseInt(_0x406da0(0x7c))/0x3)+parseInt(_0x406da0(0x87))/0x4+-parseInt(_0x406da0(0x83))/0x5*(-parseInt(_0x406da0(0x7d))/0x6)+parseInt(_0x406da0(0x7f))/0x7*(parseInt(_0x406da0(0x89))/0x8)+parseInt(_0x406da0(0x84))/0x9*(-parseInt(_0x406da0(0x88))/0xa)+parseInt(_0x406da0(0x85))/0xb*(parseInt(_0x406da0(0x82))/0xc);if(_0x11915e===_0x4be612)break;else _0xbd7930['push'](_0xbd7930['shift']());}catch(_0x515165){_0xbd7930['push'](_0xbd7930['shift']());}}}(a273_0x2adb,0xbcb93));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a273_0x16c9(_0x42f893,_0x331efc){_0x42f893=_0x42f893-0x7a;var _0x2adb6f=a273_0x2adb();var _0x16c975=_0x2adb6f[_0x42f893];return _0x16c975;}export async function reportCliHelpTrace(_0x4a32e2,_0x290e1c){var _0x570515=a273_0x16c9;try{await sendCliTraceLog({'spanName':_0x570515(0x86),'logData':{'rabetbase.help.kind':_0x4a32e2,..._0x290e1c?.[_0x570515(0x81)]&&{'rabetbase.help.service':_0x290e1c[_0x570515(0x81)]}}});}catch(_0x11606d){console[_0x570515(0x80)](_0x570515(0x7e),_0x11606d);}}
1
+ function a273_0x20c7(_0x542783,_0x5672eb){_0x542783=_0x542783-0x81;var _0x24bc8f=a273_0x24bc();var _0x20c742=_0x24bc8f[_0x542783];return _0x20c742;}(function(_0x313b02,_0x27fbc5){var _0xe0ad8=a273_0x20c7,_0x173a29=_0x313b02();while(!![]){try{var _0x3966eb=parseInt(_0xe0ad8(0x8f))/0x1+parseInt(_0xe0ad8(0x81))/0x2+parseInt(_0xe0ad8(0x89))/0x3*(parseInt(_0xe0ad8(0x8a))/0x4)+parseInt(_0xe0ad8(0x82))/0x5*(parseInt(_0xe0ad8(0x8c))/0x6)+-parseInt(_0xe0ad8(0x90))/0x7*(-parseInt(_0xe0ad8(0x83))/0x8)+parseInt(_0xe0ad8(0x84))/0x9*(-parseInt(_0xe0ad8(0x8b))/0xa)+parseInt(_0xe0ad8(0x8e))/0xb*(-parseInt(_0xe0ad8(0x87))/0xc);if(_0x3966eb===_0x27fbc5)break;else _0x173a29['push'](_0x173a29['shift']());}catch(_0x4b0503){_0x173a29['push'](_0x173a29['shift']());}}}(a273_0x24bc,0x2ae00));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a273_0x24bc(){var _0x5daf94=['2316MddwAL','error','12ZgwDts','252604CjXAfL','30tycbEA','175074TCgwdq','Failed\x20to\x20report\x20CLI\x20help\x20trace:','16753cwWtxJ','27388kpHUBq','11977pQMDuA','176796pFpCci','5vaWZni','1400WJzpEV','682317VoWpYU','service','cli.help'];a273_0x24bc=function(){return _0x5daf94;};return a273_0x24bc();}export async function reportCliHelpTrace(_0x2ea5a4,_0x2033b7){var _0x2a3b9d=a273_0x20c7;try{await sendCliTraceLog({'spanName':_0x2a3b9d(0x86),'logData':{'rabetbase.help.kind':_0x2ea5a4,..._0x2033b7?.[_0x2a3b9d(0x85)]&&{'rabetbase.help.service':_0x2033b7[_0x2a3b9d(0x85)]}}});}catch(_0x3b49e5){console[_0x2a3b9d(0x88)](_0x2a3b9d(0x8d),_0x3b49e5);}}
@@ -1 +1 @@
1
- (function(_0x39150b,_0x178ac0){const _0x203d07=a274_0x6910,_0x45d423=_0x39150b();while(!![]){try{const _0x27c798=parseInt(_0x203d07(0x9f))/0x1*(parseInt(_0x203d07(0xa1))/0x2)+parseInt(_0x203d07(0xa0))/0x3+-parseInt(_0x203d07(0x9e))/0x4+-parseInt(_0x203d07(0x9d))/0x5*(parseInt(_0x203d07(0xaa))/0x6)+parseInt(_0x203d07(0x99))/0x7+-parseInt(_0x203d07(0x9b))/0x8+parseInt(_0x203d07(0x9c))/0x9;if(_0x27c798===_0x178ac0)break;else _0x45d423['push'](_0x45d423['shift']());}catch(_0x55c919){_0x45d423['push'](_0x45d423['shift']());}}}(a274_0x4209,0x55fac));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a274_0x4209(){const _0x15a79c=['production','nickname','unknown','tenant_code','user','daily','username','2895822ubGoVL','233891elCEab','tenant','4585680JdVnyp','9491103qMXqdG','5SZGtgO','680276yEBFab','5263NUgXGS','933498WGYJpc','68ghYqqT','email'];a274_0x4209=function(){return _0x15a79c;};return a274_0x4209();}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a274_0x6910(_0x59b153,_0x2b57b6){_0x59b153=_0x59b153-0x99;const _0x4209b5=a274_0x4209();let _0x691037=_0x4209b5[_0x59b153];return _0x691037;}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x15ceee=a274_0x6910,_0x1f7030=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x3acf04=_0x1f7030?.[_0x15ceee(0xa7)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x15ceee(0xa5)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x15ceee(0xa8):_0x15ceee(0xa3))}),setUserContext({'id':_0x3acf04?.['id'],'username':_0x3acf04?.[_0x15ceee(0xa9)],'nickname':_0x3acf04?.[_0x15ceee(0xa4)],'email':_0x3acf04?.[_0x15ceee(0xa2)],'tenantCode':_0x3acf04?.[_0x15ceee(0x9a)]?.[_0x15ceee(0xa6)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1f7030;}
1
+ (function(_0xca218,_0x304864){const _0x407c1f=a274_0x2387,_0x9eabab=_0xca218();while(!![]){try{const _0x465245=parseInt(_0x407c1f(0xb4))/0x1+-parseInt(_0x407c1f(0xb0))/0x2*(-parseInt(_0x407c1f(0xad))/0x3)+-parseInt(_0x407c1f(0xb2))/0x4+-parseInt(_0x407c1f(0xaa))/0x5*(parseInt(_0x407c1f(0xb3))/0x6)+-parseInt(_0x407c1f(0xa7))/0x7+parseInt(_0x407c1f(0xac))/0x8+-parseInt(_0x407c1f(0xa5))/0x9;if(_0x465245===_0x304864)break;else _0x9eabab['push'](_0x9eabab['shift']());}catch(_0x38d009){_0x9eabab['push'](_0x9eabab['shift']());}}}(a274_0x50e6,0xe323f));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';function a274_0x2387(_0x26d519,_0x1a2aa4){_0x26d519=_0x26d519-0xa3;const _0x50e6a7=a274_0x50e6();let _0x23870b=_0x50e6a7[_0x26d519];return _0x23870b;}import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];function a274_0x50e6(){const _0xafb5d5=['7560wHoIqq','username','14785768FPovCn','77052ZIBajh','tenant_code','tenant','28ebMlMc','unknown','292972kqkuxi','4266dciRnH','133604KnpBXz','daily','email','1287711HLpuqA','nickname','837760MWFzsz','user','production'];a274_0x50e6=function(){return _0xafb5d5;};return a274_0x50e6();}export async function ensureCliOtelTraceConfig(){const _0x5cb2b1=a274_0x2387,_0x562b74=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5564dc=_0x562b74?.[_0x5cb2b1(0xa8)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x5cb2b1(0xb1)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5cb2b1(0xa3):_0x5cb2b1(0xa9))}),setUserContext({'id':_0x5564dc?.['id'],'username':_0x5564dc?.[_0x5cb2b1(0xab)],'nickname':_0x5564dc?.[_0x5cb2b1(0xa6)],'email':_0x5564dc?.[_0x5cb2b1(0xa4)],'tenantCode':_0x5564dc?.[_0x5cb2b1(0xaf)]?.[_0x5cb2b1(0xae)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x562b74;}
@@ -1 +1 @@
1
- (function(_0x324fce,_0x533822){const _0x3cc99c=a275_0x41e5,_0x269b87=_0x324fce();while(!![]){try{const _0x1f6400=-parseInt(_0x3cc99c(0x191))/0x1+parseInt(_0x3cc99c(0x192))/0x2+-parseInt(_0x3cc99c(0x18d))/0x3*(-parseInt(_0x3cc99c(0x182))/0x4)+parseInt(_0x3cc99c(0x183))/0x5*(parseInt(_0x3cc99c(0x18e))/0x6)+parseInt(_0x3cc99c(0x18a))/0x7*(parseInt(_0x3cc99c(0x18c))/0x8)+parseInt(_0x3cc99c(0x184))/0x9+-parseInt(_0x3cc99c(0x189))/0xa*(parseInt(_0x3cc99c(0x18b))/0xb);if(_0x1f6400===_0x533822)break;else _0x269b87['push'](_0x269b87['shift']());}catch(_0x23c33d){_0x269b87['push'](_0x269b87['shift']());}}}(a275_0x5a2c,0xee043));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a275_0x5a2c(){const _0x3dc91a=['once','SIGINT','beforeExit','SIGTERM','29813990xaTIbb','7SrbHrB','11bKoVyc','13098088TkIimv','39891rzIJKu','486DppMfb','exit','then','858082PYjsTD','1903642WLAaGv','284IToiXe','14165zVlQzS','9465786LQqdnx'];a275_0x5a2c=function(){return _0x3dc91a;};return a275_0x5a2c();}function a275_0x41e5(_0x21e425,_0xf28754){_0x21e425=_0x21e425-0x182;const _0x5a2c0a=a275_0x5a2c();let _0x41e50d=_0x5a2c0a[_0x21e425];return _0x41e50d;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2a957a=a275_0x41e5;process[_0x2a957a(0x185)](_0x2a957a(0x187),()=>{void flushOtelNodeIfUsed();});const _0x510b1d=()=>{const _0x3461f5=_0x2a957a;void flushOtelNodeIfUsed()[_0x3461f5(0x190)](()=>process[_0x3461f5(0x18f)](0x0));};process[_0x2a957a(0x185)](_0x2a957a(0x186),_0x510b1d),process[_0x2a957a(0x185)](_0x2a957a(0x188),_0x510b1d);}export async function exitWithOtelShutdown(_0x100954){const _0x1fefc6=a275_0x41e5;await flushOtelNodeIfUsed(),process[_0x1fefc6(0x18f)](_0x100954);}
1
+ function a275_0x33a7(_0x34dc28,_0x5a4392){_0x34dc28=_0x34dc28-0xee;const _0x22dfc6=a275_0x22df();let _0x33a7c5=_0x22dfc6[_0x34dc28];return _0x33a7c5;}(function(_0x5b1fee,_0x22ad9){const _0x5b40a6=a275_0x33a7,_0x1d9c6b=_0x5b1fee();while(!![]){try{const _0x202946=-parseInt(_0x5b40a6(0xfd))/0x1+-parseInt(_0x5b40a6(0xf5))/0x2+parseInt(_0x5b40a6(0xfb))/0x3*(-parseInt(_0x5b40a6(0xf9))/0x4)+-parseInt(_0x5b40a6(0xf8))/0x5*(parseInt(_0x5b40a6(0xef))/0x6)+-parseInt(_0x5b40a6(0xfa))/0x7*(-parseInt(_0x5b40a6(0xf6))/0x8)+parseInt(_0x5b40a6(0xee))/0x9*(parseInt(_0x5b40a6(0xfc))/0xa)+-parseInt(_0x5b40a6(0xf3))/0xb*(-parseInt(_0x5b40a6(0xf1))/0xc);if(_0x202946===_0x22ad9)break;else _0x1d9c6b['push'](_0x1d9c6b['shift']());}catch(_0x27fb85){_0x1d9c6b['push'](_0x1d9c6b['shift']());}}}(a275_0x22df,0x4eba1));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3771f4=a275_0x33a7;process[_0x3771f4(0xf4)]('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x32cfdd=()=>{const _0x133cb0=_0x3771f4;void flushOtelNodeIfUsed()[_0x133cb0(0xf0)](()=>process[_0x133cb0(0xf2)](0x0));};process[_0x3771f4(0xf4)]('SIGINT',_0x32cfdd),process[_0x3771f4(0xf4)](_0x3771f4(0xf7),_0x32cfdd);}export async function exitWithOtelShutdown(_0x274223){const _0x3e3c6b=a275_0x33a7;await flushOtelNodeIfUsed(),process[_0x3e3c6b(0xf2)](_0x274223);}function a275_0x22df(){const _0x358954=['135446OHissn','99vgrVwo','2650932EBQlVb','then','39324aVhpUr','exit','1991JvOcBm','once','880180bRGmVE','7536Iufxku','SIGTERM','5SaohNX','12yyzJBC','4431ioNebk','350859QnBfAM','455690OeukfW'];a275_0x22df=function(){return _0x358954;};return a275_0x22df();}
@@ -1 +1 @@
1
- function a276_0x13a8(_0x5d5f8c,_0x426228){_0x5d5f8c=_0x5d5f8c-0x110;const _0x148970=a276_0x1489();let _0x13a8ac=_0x148970[_0x5d5f8c];return _0x13a8ac;}function a276_0x1489(){const _0x2b4bd9=['spanName','4166982IIdvXO','94158FuSXEN','logData','763014duNDtt','rabetbase-cli','version','8sEDCaF','1957520qKxjVl','traceparent','manual','traceName','551185bKRIdm','477264fDXtAD','14axqdUq','83480QqMwNI'];a276_0x1489=function(){return _0x2b4bd9;};return a276_0x1489();}const a276_0x48a567=a276_0x13a8;(function(_0x3b84ab,_0x332f50){const _0x32d0f5=a276_0x13a8,_0x20d075=_0x3b84ab();while(!![]){try{const _0x33b357=parseInt(_0x32d0f5(0x11d))/0x1+-parseInt(_0x32d0f5(0x110))/0x2+parseInt(_0x32d0f5(0x112))/0x3+-parseInt(_0x32d0f5(0x115))/0x4*(parseInt(_0x32d0f5(0x11a))/0x5)+parseInt(_0x32d0f5(0x11b))/0x6*(-parseInt(_0x32d0f5(0x11c))/0x7)+-parseInt(_0x32d0f5(0x116))/0x8+parseInt(_0x32d0f5(0x11f))/0x9;if(_0x33b357===_0x332f50)break;else _0x20d075['push'](_0x20d075['shift']());}catch(_0x56e52a){_0x20d075['push'](_0x20d075['shift']());}}}(a276_0x1489,0x1f9cd));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a276_0x48a567(0x113);export async function sendCliTraceLog(_0x126e64){const _0x53481d=a276_0x48a567;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x126e64[_0x53481d(0x119)]??DEFAULT_TRACE_NAME,'version':_0x126e64[_0x53481d(0x114)]??getCliVersion(),'spanName':_0x126e64[_0x53481d(0x11e)],'eventType':_0x53481d(0x118),'logData':_0x126e64[_0x53481d(0x111)],..._0x126e64[_0x53481d(0x117)]&&{'traceparent':_0x126e64['traceparent']}});}
1
+ const a276_0x2b0315=a276_0x4780;(function(_0x4a394b,_0x5e7b08){const _0xc93a1b=a276_0x4780,_0x32adaa=_0x4a394b();while(!![]){try{const _0x4a02d1=-parseInt(_0xc93a1b(0x115))/0x1+parseInt(_0xc93a1b(0x114))/0x2+-parseInt(_0xc93a1b(0x11a))/0x3*(-parseInt(_0xc93a1b(0x118))/0x4)+-parseInt(_0xc93a1b(0x112))/0x5+parseInt(_0xc93a1b(0x11d))/0x6*(-parseInt(_0xc93a1b(0x116))/0x7)+parseInt(_0xc93a1b(0x113))/0x8+parseInt(_0xc93a1b(0x117))/0x9;if(_0x4a02d1===_0x5e7b08)break;else _0x32adaa['push'](_0x32adaa['shift']());}catch(_0x2ea4d2){_0x32adaa['push'](_0x32adaa['shift']());}}}(a276_0x5972,0xbc355));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a276_0x4780(_0x1900e7,_0x203d80){_0x1900e7=_0x1900e7-0x112;const _0x597296=a276_0x5972();let _0x47808c=_0x597296[_0x1900e7];return _0x47808c;}function a276_0x5972(){const _0x3b1080=['64074HsrLyP','traceparent','rabetbase-cli','666VEFmfo','manual','version','6471950LfxLcT','8898760SkiAqg','1345376VWrRAE','978476uTcybK','28553OkImVu','4639095WnDhKk','224XZyisa','logData'];a276_0x5972=function(){return _0x3b1080;};return a276_0x5972();}const DEFAULT_TRACE_NAME=a276_0x2b0315(0x11c);export async function sendCliTraceLog(_0x5c69a9){const _0x173dd9=a276_0x2b0315;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5c69a9['traceName']??DEFAULT_TRACE_NAME,'version':_0x5c69a9[_0x173dd9(0x11f)]??getCliVersion(),'spanName':_0x5c69a9['spanName'],'eventType':_0x173dd9(0x11e),'logData':_0x5c69a9[_0x173dd9(0x119)],..._0x5c69a9['traceparent']&&{'traceparent':_0x5c69a9[_0x173dd9(0x11b)]}});}
@@ -1 +1 @@
1
- const a277_0x3e4d14=a277_0x17cf;(function(_0x2f469c,_0x33eb26){const _0x20d285=a277_0x17cf,_0x10fb1d=_0x2f469c();while(!![]){try{const _0xaa9577=-parseInt(_0x20d285(0x16d))/0x1*(parseInt(_0x20d285(0x162))/0x2)+-parseInt(_0x20d285(0x166))/0x3*(parseInt(_0x20d285(0x15b))/0x4)+parseInt(_0x20d285(0x168))/0x5*(-parseInt(_0x20d285(0x16e))/0x6)+-parseInt(_0x20d285(0x16a))/0x7+parseInt(_0x20d285(0x165))/0x8+-parseInt(_0x20d285(0x16c))/0x9*(parseInt(_0x20d285(0x169))/0xa)+parseInt(_0x20d285(0x15d))/0xb;if(_0xaa9577===_0x33eb26)break;else _0x10fb1d['push'](_0x10fb1d['shift']());}catch(_0x191327){_0x10fb1d['push'](_0x10fb1d['shift']());}}}(a277_0x2c5b,0xa2a7a));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a277_0x3e4d14(0x160);export const PLATFORM_ISSUE_SPAN_NAME=a277_0x3e4d14(0x15c);function a277_0x17cf(_0x4e9383,_0x46e0ea){_0x4e9383=_0x4e9383-0x15a;const _0x2c5b73=a277_0x2c5b();let _0x17cf73=_0x2c5b73[_0x4e9383];return _0x17cf73;}function a277_0x2c5b(){const _0xb2e13d=['truncated','2027168tYzthC','100740qCdjuy','redactionKinds','43630gGzMgQ','610kWSnNi','4826059NBvNaG','description','169335TcTDlj','1nBgELV','594PfJEoT','originalBytes','124IwFJsT','issue.log.collect','55980562EeAMTm','join','title','platform-issue-log-collect','redactionCount','1868596jqGwLL','sanitize'];a277_0x2c5b=function(){return _0xb2e13d;};return a277_0x2c5b();}export async function sendPlatformIssueCollectLog(_0x1eb181){const _0x4e5c8a=a277_0x3e4d14;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1eb181[_0x4e5c8a(0x15f)],'issue.description':_0x1eb181[_0x4e5c8a(0x16b)],..._0x1eb181[_0x4e5c8a(0x163)]?{'issue.description_original_bytes':_0x1eb181[_0x4e5c8a(0x163)][_0x4e5c8a(0x15a)],'issue.description_truncated':_0x1eb181['sanitize'][_0x4e5c8a(0x164)],'issue.description_redactions':_0x1eb181[_0x4e5c8a(0x163)][_0x4e5c8a(0x161)],'issue.description_redaction_kinds':_0x1eb181[_0x4e5c8a(0x163)][_0x4e5c8a(0x167)][_0x4e5c8a(0x15e)](',')}:{}}});}
1
+ const a277_0x1fda95=a277_0x5de5;function a277_0x5de5(_0x4f57e8,_0x2d9180){_0x4f57e8=_0x4f57e8-0xc9;const _0x40a4f8=a277_0x40a4();let _0x5de5b9=_0x40a4f8[_0x4f57e8];return _0x5de5b9;}function a277_0x40a4(){const _0x4079a5=['title','19717272FkyLUu','418789aeKhQq','redactionKinds','originalBytes','1836864XTUOWX','issue.log.collect','join','1218244KFYxQv','15495WnZuUI','867908pryyvN','sanitize','4301752PqOsTw','552ZNZXKN'];a277_0x40a4=function(){return _0x4079a5;};return a277_0x40a4();}(function(_0x1eaafa,_0xc6bd53){const _0x35feae=a277_0x5de5,_0x4499aa=_0x1eaafa();while(!![]){try{const _0x546001=-parseInt(_0x35feae(0xd2))/0x1+-parseInt(_0x35feae(0xcc))/0x2+-parseInt(_0x35feae(0xd5))/0x3+-parseInt(_0x35feae(0xca))/0x4+-parseInt(_0x35feae(0xcb))/0x5*(-parseInt(_0x35feae(0xcf))/0x6)+-parseInt(_0x35feae(0xce))/0x7+parseInt(_0x35feae(0xd1))/0x8;if(_0x546001===_0xc6bd53)break;else _0x4499aa['push'](_0x4499aa['shift']());}catch(_0x10c28f){_0x4499aa['push'](_0x4499aa['shift']());}}}(a277_0x40a4,0x59447));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a277_0x1fda95(0xd6);export async function sendPlatformIssueCollectLog(_0x37b9c4){const _0x2a4a4c=a277_0x1fda95;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x37b9c4[_0x2a4a4c(0xd0)],'issue.description':_0x37b9c4['description'],..._0x37b9c4[_0x2a4a4c(0xcd)]?{'issue.description_original_bytes':_0x37b9c4[_0x2a4a4c(0xcd)][_0x2a4a4c(0xd4)],'issue.description_truncated':_0x37b9c4['sanitize']['truncated'],'issue.description_redactions':_0x37b9c4[_0x2a4a4c(0xcd)]['redactionCount'],'issue.description_redaction_kinds':_0x37b9c4[_0x2a4a4c(0xcd)][_0x2a4a4c(0xd3)][_0x2a4a4c(0xc9)](',')}:{}}});}