@lovrabet/rabetbase-cli 2.3.16-beta.2 → 2.3.16-beta.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.
- package/README.md +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/templates/projects/sub-app-react-demo/CHANGELOG.md +1 -1
- package/templates/projects/sub-app-react-demo/README.md +1 -1
- package/templates/projects/sub-app-react-demo/docs/quick-start.md +1 -1
- package/templates/projects/sub-app-react-demo/src/pages/index.tsx +1 -1
- package/lib/commands/project/init.js +0 -1
- package/lib/commands/sql/save.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x320ac2,_0x372913){var _0x2c1930=a230_0x16c3,_0x33292a=_0x320ac2();while(!![]){try{var _0x4c9958=parseInt(_0x2c1930(0x193))/0x1*(parseInt(_0x2c1930(0x195))/0x2)+-parseInt(_0x2c1930(0x187))/0x3*(parseInt(_0x2c1930(0x188))/0x4)+parseInt(_0x2c1930(0x18c))/0x5+parseInt(_0x2c1930(0x18d))/0x6*(parseInt(_0x2c1930(0x191))/0x7)+-parseInt(_0x2c1930(0x198))/0x8*(parseInt(_0x2c1930(0x190))/0x9)+-parseInt(_0x2c1930(0x18a))/0xa*(-parseInt(_0x2c1930(0x18e))/0xb)+parseInt(_0x2c1930(0x197))/0xc*(-parseInt(_0x2c1930(0x199))/0xd);if(_0x4c9958===_0x372913)break;else _0x33292a['push'](_0x33292a['shift']());}catch(_0x579b01){_0x33292a['push'](_0x33292a['shift']());}}}(a230_0x49e2,0xd0a9a));import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x2c90f3){var _0x265d6e=a230_0x16c3;return _0x2c90f3?.[_0x265d6e(0x189)]===!![];}export function resolveErrorOutputFormat(_0x2ae66e){var _0x49c6cd=a230_0x16c3;if(!_0x2ae66e[_0x49c6cd(0x196)])return _0x2ae66e[_0x49c6cd(0x18f)]??_0x49c6cd(0x18b);return resolveOutputConfig({'flags':_0x2ae66e[_0x49c6cd(0x192)]??{},'def':_0x2ae66e['def'],'configDefault':_0x2ae66e[_0x49c6cd(0x18f)]})[_0x49c6cd(0x194)];}function a230_0x16c3(_0x329d37,_0x498366){_0x329d37=_0x329d37-0x187;var _0x49e261=a230_0x49e2();var _0x16c3cc=_0x49e261[_0x329d37];return _0x16c3cc;}function a230_0x49e2(){var _0x643866=['36888qnywny','33872FcSwbs','7865vJApRZ','24KuqfrZ','642556QBlRaF','structuredErrors','240jzrJAU','compress','8242355pumDuX','174enlVWV','21153WlvDnI','defaultFormat','207KcjJNw','302603sAYCcb','flags','382894jFvIZe','format','6zrkvMQ','def'];a230_0x49e2=function(){return _0x643866;};return a230_0x49e2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a231_0x5b8e91=a231_0x5345;(function(_0x4e925b,_0xcd94de){const _0x4d76c8=a231_0x5345,_0x4c56fb=_0x4e925b();while(!![]){try{const _0x43a2cf=-parseInt(_0x4d76c8(0xfb))/0x1*(parseInt(_0x4d76c8(0xf5))/0x2)+parseInt(_0x4d76c8(0xf2))/0x3+parseInt(_0x4d76c8(0xf9))/0x4+parseInt(_0x4d76c8(0xee))/0x5+parseInt(_0x4d76c8(0xf6))/0x6+-parseInt(_0x4d76c8(0xf3))/0x7+-parseInt(_0x4d76c8(0xf4))/0x8*(parseInt(_0x4d76c8(0xf8))/0x9);if(_0x43a2cf===_0xcd94de)break;else _0x4c56fb['push'](_0x4c56fb['shift']());}catch(_0x3f38cb){_0x4c56fb['push'](_0x4c56fb['shift']());}}}(a231_0x5c0b,0x6888f));const EXPLICIT_YES_COMMANDS=new Set([a231_0x5b8e91(0xef),a231_0x5b8e91(0xfc),a231_0x5b8e91(0xf1),a231_0x5b8e91(0xed),a231_0x5b8e91(0xf0),'kb\x20delete']);export const EXPLICIT_YES_FLAG_DESCRIPTION=a231_0x5b8e91(0xf7);function a231_0x5345(_0x58a29e,_0x32d4f1){_0x58a29e=_0x58a29e-0xec;const _0x5c0b73=a231_0x5c0b();let _0x53456a=_0x5c0b73[_0x58a29e];return _0x53456a;}export function requiresExplicitYes(_0x2a36ec){const _0x4f1719=a231_0x5b8e91;return EXPLICIT_YES_COMMANDS[_0x4f1719(0xfa)](_0x2a36ec[_0x4f1719(0xec)]+'\x20'+_0x2a36ec['command']);}function a231_0x5c0b(){const _0x3e7237=['350hjdgGj','menu\x20delete','service','kb\x20create','1435645jOrvuo','menu\x20external-link-update','kb\x20update','menu\x20regroup-start','860112UrukGZ','4905215hQwpkh','8voueXa','262CmsFcn','4454706nVnZaC','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','5271813SFXhQz','1776972BPzAdm','has'];a231_0x5c0b=function(){return _0x3e7237;};return a231_0x5c0b();}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a232_0x36267f=a232_0x3444;(function(_0xa1ed89,_0x37be4e){const _0x216181=a232_0x3444,_0x24bd7e=_0xa1ed89();while(!![]){try{const _0x47786d=-parseInt(_0x216181(0x1f5))/0x1*(parseInt(_0x216181(0x1fb))/0x2)+-parseInt(_0x216181(0x1fc))/0x3+-parseInt(_0x216181(0x1fe))/0x4*(-parseInt(_0x216181(0x1ff))/0x5)+parseInt(_0x216181(0x1f7))/0x6+parseInt(_0x216181(0x1f9))/0x7+-parseInt(_0x216181(0x1f4))/0x8+-parseInt(_0x216181(0x1f8))/0x9*(-parseInt(_0x216181(0x1fa))/0xa);if(_0x47786d===_0x37be4e)break;else _0x24bd7e['push'](_0x24bd7e['shift']());}catch(_0x37ad56){_0x24bd7e['push'](_0x24bd7e['shift']());}}}(a232_0x27e8,0xee457));import{createFlagHelpers}from'@lovrabet/cli-framework';function a232_0x3444(_0x4a56d5,_0xeaa853){_0x4a56d5=_0x4a56d5-0x1f4;const _0x27e81b=a232_0x27e8();let _0x3444e9=_0x27e81b[_0x4a56d5];return _0x3444e9;}import{CliErrors}from'../errors.js';function a232_0x27e8(){const _0x1995ee=['8021416kWUPHb','1hrXCIs','validateFlags','2217156jVfAyc','742635SIOmxU','10854914uajKnO','40yawprx','1240444ZKeEus','3846666uBPyFQ','parseFlags','815396deHrVY','40dKhAxD'];a232_0x27e8=function(){return _0x1995ee;};return a232_0x27e8();}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a232_0x36267f(0x1fd)];export const validateFlags=helpers[a232_0x36267f(0x1f6)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a233_0x1901cc=a233_0x7a64;(function(_0x1c7e98,_0x288ed7){const _0x17ef6d=a233_0x7a64,_0x6f7e2=_0x1c7e98();while(!![]){try{const _0x183bc6=parseInt(_0x17ef6d(0x14e))/0x1*(parseInt(_0x17ef6d(0x155))/0x2)+parseInt(_0x17ef6d(0x14c))/0x3+-parseInt(_0x17ef6d(0x14d))/0x4*(-parseInt(_0x17ef6d(0x153))/0x5)+-parseInt(_0x17ef6d(0x154))/0x6+parseInt(_0x17ef6d(0x146))/0x7+-parseInt(_0x17ef6d(0x152))/0x8*(-parseInt(_0x17ef6d(0x14f))/0x9)+-parseInt(_0x17ef6d(0x151))/0xa*(parseInt(_0x17ef6d(0x148))/0xb);if(_0x183bc6===_0x288ed7)break;else _0x6f7e2['push'](_0x6f7e2['shift']());}catch(_0x22cf10){_0x6f7e2['push'](_0x6f7e2['shift']());}}}(a233_0x4c4b,0xa938c));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a233_0x4c4b(){const _0x3d3b53=['32FfquoH','1887529urqGFV','replace','44moWAqS','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','Requires\x20appcode\x20(set\x20via\x20`','generateFullHelp','2922579freZlh','4PQbjaM','69463KUyrEq','34704TrYuHW','generateCommandHelp','7310190gnlxQc','1992iwJXRS','1982525qgJwFL','568134IYRmzv'];a233_0x4c4b=function(){return _0x3d3b53;};return a233_0x4c4b();}import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x413659=>serviceGroups['get'](_0x413659),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a233_0x1901cc(0x14a)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x400931){const _0x1c1159=a233_0x1901cc,_0x506e37=generators[_0x1c1159(0x150)](_0x400931);if(!requiresExplicitYes(_0x400931))return _0x506e37;return _0x506e37[_0x1c1159(0x147)]('Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.',_0x1c1159(0x149));}function a233_0x7a64(_0x3ddf20,_0x5e99f6){_0x3ddf20=_0x3ddf20-0x146;const _0x4c4b59=a233_0x4c4b();let _0x7a6466=_0x4c4b59[_0x3ddf20];return _0x7a6466;}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a233_0x1901cc(0x14b)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x574b5d,_0x1ee897){var _0x43bd47=a234_0x3e3b,_0x55ee78=_0x574b5d();while(!![]){try{var _0x2306a7=parseInt(_0x43bd47(0x184))/0x1*(parseInt(_0x43bd47(0x17f))/0x2)+parseInt(_0x43bd47(0x17e))/0x3*(-parseInt(_0x43bd47(0x181))/0x4)+-parseInt(_0x43bd47(0x17b))/0x5*(-parseInt(_0x43bd47(0x17a))/0x6)+-parseInt(_0x43bd47(0x17c))/0x7*(parseInt(_0x43bd47(0x182))/0x8)+-parseInt(_0x43bd47(0x179))/0x9*(-parseInt(_0x43bd47(0x180))/0xa)+-parseInt(_0x43bd47(0x177))/0xb*(parseInt(_0x43bd47(0x183))/0xc)+-parseInt(_0x43bd47(0x17d))/0xd*(-parseInt(_0x43bd47(0x178))/0xe);if(_0x2306a7===_0x1ee897)break;else _0x55ee78['push'](_0x55ee78['shift']());}catch(_0x1340df){_0x55ee78['push'](_0x55ee78['shift']());}}}(a234_0x1069,0x2fd5e));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a234_0x3e3b(_0x23949d,_0x422280){_0x23949d=_0x23949d-0x177;var _0x1069a0=a234_0x1069();var _0x3e3b25=_0x1069a0[_0x23949d];return _0x3e3b25;}function a234_0x1069(){var _0x276be6=['129290gSUEiL','8964xFKiGX','120xiWMYW','17945lLBMty','7CLvzxY','13RBOzJE','9564gLEIrL','5512YEXPcQ','3730orqaaa','248XoRQWQ','1257864zQqNCU','68592EWCXBA','73ONCuhZ','198bkCOVm'];a234_0x1069=function(){return _0x276be6;};return a234_0x1069();}
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x53a617,_0x471e00){const _0x4a12ce=a235_0x5ae4,_0x45cf92=_0x53a617();while(!![]){try{const _0x2e6d6e=-parseInt(_0x4a12ce(0xbd))/0x1*(parseInt(_0x4a12ce(0xaf))/0x2)+-parseInt(_0x4a12ce(0xb0))/0x3*(parseInt(_0x4a12ce(0xb1))/0x4)+-parseInt(_0x4a12ce(0xa9))/0x5*(-parseInt(_0x4a12ce(0xb7))/0x6)+-parseInt(_0x4a12ce(0xb6))/0x7*(-parseInt(_0x4a12ce(0xb3))/0x8)+-parseInt(_0x4a12ce(0xb2))/0x9+parseInt(_0x4a12ce(0xa5))/0xa*(parseInt(_0x4a12ce(0xb4))/0xb)+-parseInt(_0x4a12ce(0xb8))/0xc*(-parseInt(_0x4a12ce(0xad))/0xd);if(_0x2e6d6e===_0x471e00)break;else _0x45cf92['push'](_0x45cf92['shift']());}catch(_0x3c4761){_0x45cf92['push'](_0x45cf92['shift']());}}}(a235_0x1546,0xd4eed));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a235_0x5ae4(_0x38d58c,_0x15b660){_0x38d58c=_0x38d58c-0xa0;const _0x1546de=a235_0x1546();let _0x5ae4a0=_0x1546de[_0x38d58c];return _0x5ae4a0;}import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a235_0x1546(){const _0x51cae3=['stringify','_notice','1865NgbPcE','message','jqFilter','json','410098zPNDvj','pretty','56656JYdqcD','39SVRcqn','171364uSKrfy','1907091PgkrxC','817936UwPMko','22wPeiJq','update','7xwvugi','8778OcsvwH','396DMhGUC','error','write','risk','format','47CtQJsk','hint','jq:\x20','code','trim','stdout','endsWith','6417310iZrebv','validation'];a235_0x1546=function(){return _0x51cae3;};return a235_0x1546();}export function formatOutput(_0x2f8a28,_0x334b51){const _0x3e2544=a235_0x5ae4,_0x46fd7b=_0x2f8a28[_0x3e2544(0xa8)],{_notice:_0xe48eb5,..._0x3e76fa}=_0x2f8a28;void _0xe48eb5,baseFormatOutput(_0x3e76fa,_0x334b51),_0x334b51[_0x3e2544(0xbc)]===_0x3e2544(0xae)&&printPrettyNotice(_0x46fd7b);}export function formatCliError(_0x1bdf09,_0x4c5008){const _0x1ee325=a235_0x5ae4;if(_0x4c5008[_0x1ee325(0xbc)]===_0x1ee325(0xae))return![];const _0x541319=_0x1bdf09['data'],_0x55f283={'ok':![],'command':_0x4c5008['command'],'risk':_0x4c5008[_0x1ee325(0xbb)],'data':_0x541319??null,'error':{'code':_0x1bdf09[_0x1ee325(0xa1)],'message':_0x1bdf09[_0x1ee325(0xaa)],..._0x1bdf09[_0x1ee325(0xbe)]?{'hint':_0x1bdf09[_0x1ee325(0xbe)]}:{}}},_0x54bd58=_0x4c5008[_0x1ee325(0xbc)]==='json'?JSON['stringify'](_0x55f283,null,0x2):JSON[_0x1ee325(0xa7)](_0x55f283);let _0x4ebfa1=_0x54bd58;if(_0x4c5008[_0x1ee325(0xab)]?.[_0x1ee325(0xa2)]())try{_0x4ebfa1=applyJqFilter(_0x54bd58,_0x4c5008[_0x1ee325(0xab)]);}catch(_0x561ca3){const _0xa41d98=_0x561ca3 instanceof CliError?_0x561ca3:CliErrors[_0x1ee325(0xa6)](_0x1ee325(0xa0)+(_0x561ca3 instanceof Error?_0x561ca3[_0x1ee325(0xaa)]:String(_0x561ca3))),_0x20928d={..._0x55f283,'error':{'code':_0xa41d98[_0x1ee325(0xa1)],'message':_0xa41d98[_0x1ee325(0xaa)],..._0xa41d98['hint']?{'hint':_0xa41d98[_0x1ee325(0xbe)]}:{},'cause':_0x55f283['error']}};_0x4ebfa1=_0x4c5008[_0x1ee325(0xbc)]===_0x1ee325(0xac)?JSON[_0x1ee325(0xa7)](_0x20928d,null,0x2):JSON['stringify'](_0x20928d);}return process[_0x1ee325(0xa3)][_0x1ee325(0xba)](_0x4ebfa1[_0x1ee325(0xa4)]('\x0a')?_0x4ebfa1:_0x4ebfa1+'\x0a'),!![];}function printPrettyNotice(_0x27a14f){const _0x11acd2=a235_0x5ae4;if(!_0x27a14f?.[_0x11acd2(0xb5)])return;console[_0x11acd2(0xb9)](_0x27a14f['update'][_0x11acd2(0xaa)]+'\x20('+_0x27a14f['update']['url']+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a236_0x44e6(_0x37e4df,_0x63f8a9){_0x37e4df=_0x37e4df-0x197;var _0x110020=a236_0x1100();var _0x44e606=_0x110020[_0x37e4df];return _0x44e606;}(function(_0x4c6ea5,_0x26176d){var _0x1771c7=a236_0x44e6,_0x5b7f1c=_0x4c6ea5();while(!![]){try{var _0x3a1409=-parseInt(_0x1771c7(0x19f))/0x1+parseInt(_0x1771c7(0x19c))/0x2+-parseInt(_0x1771c7(0x19e))/0x3*(-parseInt(_0x1771c7(0x19b))/0x4)+-parseInt(_0x1771c7(0x19d))/0x5+parseInt(_0x1771c7(0x199))/0x6+parseInt(_0x1771c7(0x198))/0x7+parseInt(_0x1771c7(0x19a))/0x8*(-parseInt(_0x1771c7(0x197))/0x9);if(_0x3a1409===_0x26176d)break;else _0x5b7f1c['push'](_0x5b7f1c['shift']());}catch(_0x351724){_0x5b7f1c['push'](_0x5b7f1c['shift']());}}}(a236_0x1100,0xbc2e7));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a236_0x1100(){var _0x2a23f9=['200028AnToqk','797891ZDHeFg','27rvVxeE','9654232newGtg','7278180fswjCv','5347688EvEFlW','8isFnxX','2123480XqYPTO','1066165HNHlkx'];a236_0x1100=function(){return _0x2a23f9;};return a236_0x1100();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c64fe,_0x1af973){const _0x6885c2=a237_0x34f0,_0x34c4fd=_0x1c64fe();while(!![]){try{const _0x10b7c5=parseInt(_0x6885c2(0x10d))/0x1*(parseInt(_0x6885c2(0x100))/0x2)+-parseInt(_0x6885c2(0x103))/0x3+-parseInt(_0x6885c2(0x10b))/0x4*(-parseInt(_0x6885c2(0xfe))/0x5)+parseInt(_0x6885c2(0xfb))/0x6+parseInt(_0x6885c2(0x108))/0x7+-parseInt(_0x6885c2(0x111))/0x8+parseInt(_0x6885c2(0x112))/0x9*(parseInt(_0x6885c2(0x113))/0xa);if(_0x10b7c5===_0x1af973)break;else _0x34c4fd['push'](_0x34c4fd['shift']());}catch(_0x13f616){_0x34c4fd['push'](_0x34c4fd['shift']());}}}(a237_0x2419,0x61cdd));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a237_0x2419(){const _0x40d4d2=['string','some','1249620mEtFrc','length','2KjqhLD','join','Available\x20aliases:\x20','2302017NaSmZr','Unknown\x20alias\x20\x22','\x20api\x20pull`\x20first.','name','No\x20api.ts\x20found\x20in\x20','807569WwwxpU','validation','`\x20requires\x20either\x20--code\x20or\x20--alias.','4EIjAXh','alias','178117MjxtsX','.\x20Run\x20`','flags','\x22.\x20','1623224FJpMWs','105489juyzpo','150wKMHsJ','type','code','3909744igzMAs'];a237_0x2419=function(){return _0x40d4d2;};return a237_0x2419();}import{CLI_BIN_NAME}from'../constant/cli.js';function a237_0x34f0(_0xc42c6f,_0x49ca33){_0xc42c6f=_0xc42c6f-0xfb;const _0x241981=a237_0x2419();let _0x34f0c2=_0x241981[_0xc42c6f];return _0x34f0c2;}export function resolveAliasToCode(_0x30e744,_0x4ee453,_0x2ce889,_0x391499){const _0x4ac490=a237_0x34f0,_0x1a9bab=_0x30e744[_0x4ac490(0x10f)]['some'](_0x52b637=>_0x52b637[_0x4ac490(0x106)]==='code'&&_0x52b637[_0x4ac490(0x114)]===_0x4ac490(0xfc)),_0x38e8dc=_0x30e744['flags'][_0x4ac490(0xfd)](_0x3863f8=>_0x3863f8[_0x4ac490(0x106)]===_0x4ac490(0x10c)&&_0x3863f8[_0x4ac490(0x114)]==='string');if(!_0x1a9bab||!_0x38e8dc)return;const _0x1cec6b=_0x4ee453[_0x4ac490(0x115)]?String(_0x4ee453['code']):'',_0x474a91=_0x4ee453[_0x4ac490(0x10c)]?String(_0x4ee453[_0x4ac490(0x10c)]):'';if(!_0x1cec6b&&!_0x474a91)throw CliErrors[_0x4ac490(0x109)]('`'+_0x391499+_0x4ac490(0x10a));if(_0x474a91&&!_0x1cec6b){const _0x24cb75=resolveAlias(_0x2ce889,_0x474a91);if(!_0x24cb75){const _0x3cc39a=listAliases(_0x2ce889)['map'](_0x66ff3d=>_0x66ff3d[_0x4ac490(0x10c)]),_0x1942cf=_0x3cc39a[_0x4ac490(0xff)]?_0x4ac490(0x102)+_0x3cc39a[_0x4ac490(0x101)](',\x20'):_0x4ac490(0x107)+_0x2ce889+_0x4ac490(0x10e)+CLI_BIN_NAME+_0x4ac490(0x105);throw CliErrors['validation'](_0x4ac490(0x104)+_0x474a91+_0x4ac490(0x110)+_0x1942cf);}_0x4ee453['code']=_0x24cb75;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a238_0x3adb98=a238_0x3b5c;(function(_0x1cd739,_0x467347){const _0x17716e=a238_0x3b5c,_0x36875c=_0x1cd739();while(!![]){try{const _0x14f4f6=-parseInt(_0x17716e(0xb0))/0x1*(parseInt(_0x17716e(0xc4))/0x2)+-parseInt(_0x17716e(0xd3))/0x3*(parseInt(_0x17716e(0xd1))/0x4)+parseInt(_0x17716e(0xc7))/0x5*(-parseInt(_0x17716e(0xad))/0x6)+parseInt(_0x17716e(0xcb))/0x7*(parseInt(_0x17716e(0xdc))/0x8)+parseInt(_0x17716e(0xa6))/0x9*(parseInt(_0x17716e(0xa3))/0xa)+parseInt(_0x17716e(0xb5))/0xb*(-parseInt(_0x17716e(0xb6))/0xc)+parseInt(_0x17716e(0xd7))/0xd;if(_0x14f4f6===_0x467347)break;else _0x36875c['push'](_0x36875c['shift']());}catch(_0x58419d){_0x36875c['push'](_0x36875c['shift']());}}}(a238_0x5975,0xa1638));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a238_0x3b5c(_0x9933d,_0x5667b2){_0x9933d=_0x9933d-0x9b;const _0x59754c=a238_0x5975();let _0x3b5c7b=_0x59754c[_0x9933d];return _0x3b5c7b;}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';function a238_0x5975(){const _0x508691=['1335jmlIkO','some','appCode','riskLevel','28166619kaougS','format','service','defaultPageSize','pageSize','48wjYKgT','apiDir','selectedAppName','rejectedFlags','verbose','value','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','requiresAppCode','RABETBASE_APPCODE','configMissing','71710psUtDK','doctor','authRequired','603GTgegi','name','hasFormat','command','defaultApp','filter','meowKey','6825918gFaMuw','_notice','⚠\x20\x20High-risk\x20operation:\x20','18329jNJZmb','trim','execute','resolveAppCode','catch','11LsYlfN','2940012POicOO','rawFlags','apps','object','\x20\x20\x20Continue?\x20[y/N]\x20','../core/api-client.js','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','Current\x20resolved\x20appcode\x20is\x20\x22','includes','isNonInteractive','cancelled','pretty','hint','find','2dCQDMO','message','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','5HilWVf','toUpperCase','explicitAppName','validation','681247bCnrBx','Set\x20appcode\x20via\x20`','map','schema','appcode','cookie','10508jnGyFH','string'];a238_0x5975=function(){return _0x508691;};return a238_0x5975();}import{isNonInteractive as a238_0x2f6231}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x27923b){const _0x474621=a238_0x3b5c;return typeof _0x27923b===_0x474621(0xd2)&&_0x27923b['trim']()?_0x27923b[_0x474621(0xb1)]():undefined;}function resolveEnvAppCode(){const _0x2094bf=a238_0x3b5c,_0x1b279a=stringFlag(process.env.RABETBASE_APPCODE);if(_0x1b279a)return{'name':_0x2094bf(0xa1),'value':_0x1b279a};const _0x5c5952=stringFlag(process.env.LOVRABET_APPCODE);if(_0x5c5952)return{'name':'LOVRABET_APPCODE','value':_0x5c5952};return undefined;}function hasExplicitAppCode(_0x4065b9,_0x3e5372){const _0x240fc2=a238_0x3b5c;return!!(stringFlag(_0x4065b9[_0x240fc2(0xcf)])||stringFlag(_0x3e5372['appcode']));}function assertEnvAppCodeNotIgnored(_0x19eee5,_0x2963d8,_0x4927f3){const _0x1474d2=a238_0x3b5c;if(!_0x2963d8||_0x4927f3||_0x19eee5===_0x2963d8[_0x1474d2(0x9e)])return;const _0x579eaf=_0x19eee5?_0x1474d2(0xbd)+_0x19eee5+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors['validation'](_0x2963d8[_0x1474d2(0xa7)]+'='+_0x2963d8[_0x1474d2(0x9e)]+_0x1474d2(0x9f)+_0x579eaf+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x2963d8[_0x1474d2(0xa7)]+'\x22.'));}export function createPipelineEnv(_0x122bb2,_0x2daa80,_0x13faaf=[]){const _0x370f62=a238_0x3b5c;return{'rawFlags':_0x2daa80,'args':_0x13faaf,'resolveAppCode':()=>_0x122bb2[_0x370f62(0xd5)],'resolveCookie':()=>_0x122bb2[_0x370f62(0xd0)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a238_0x2f6231(_0x2daa80),'defaultFormat':_0x122bb2['format'],'defaultPageSize':_0x122bb2[_0x370f62(0xdb)],'defaultVerbose':_0x122bb2[_0x370f62(0x9d)],'apiDir':_0x122bb2[_0x370f62(0xdd)],'riskLevel':_0x122bb2[_0x370f62(0xd6)],'selectedAppName':_0x122bb2[_0x370f62(0xc9)],'mergedCli':{'defaultApp':_0x122bb2[_0x370f62(0xaa)],'currentApp':_0x122bb2['currentApp'],'appCode':_0x122bb2['appCode'],'apps':_0x122bb2[_0x370f62(0xb8)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a238_0x3adb98(0xab)](_0x49e703=>PIPELINE_FLAG_NAMES['has'](_0x49e703[a238_0x3adb98(0xa7)]))[a238_0x3adb98(0xcd)](({name:_0x1bd5de,type:_0x18625a,description:_0x2332a1})=>({'name':_0x1bd5de,'type':_0x18625a,'description':_0x2332a1})),'formatOutput':formatOutput,'getCommandLabel'(_0x3e0f0c){const _0x2e2edb=a238_0x3adb98;return CLI_BIN_NAME+'\x20'+_0x3e0f0c[_0x2e2edb(0xd9)]+'\x20'+_0x3e0f0c[_0x2e2edb(0xa9)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3c6a0c){return CliErrors['validation'](_0x3c6a0c);}},async 'prepare'(_0x57b1cc,_0x232a09,_0x180a07,_0x4e8795){const _0x2603fb=a238_0x3adb98,_0xac861c=_0x232a09[_0x2603fb(0xdd)]||DEFAULT_API_DIR;resolveAliasToCode(_0x57b1cc,_0x180a07,_0xac861c,_0x4e8795);const _0x10ff3a=resolveCommandAuthMode(_0x57b1cc);let _0x312e35='';if(_0x10ff3a!=='none'){_0x312e35=_0x232a09['resolveCookie']()||'';if(!_0x312e35){if(_0x10ff3a==='required')throw CliErrors[_0x2603fb(0xa5)]();}else{const {setActiveCookie:_0x494e74}=await import(_0x2603fb(0xbb));_0x494e74(_0x312e35);}}const _0x5be8db=_0x232a09[_0x2603fb(0xb3)]()??'';if(_0x57b1cc[_0x2603fb(0xa0)]!==![]){assertEnvAppCodeNotIgnored(_0x5be8db,resolveEnvAppCode(),hasExplicitAppCode(_0x180a07,_0x232a09[_0x2603fb(0xb7)]));if(!_0x5be8db)throw CliErrors[_0x2603fb(0xa2)](_0x2603fb(0xcc)+CLI_BIN_NAME+_0x2603fb(0xc6));}return{'defaults':{'booleans':{'verbose':_0x232a09['defaultVerbose']},'numbers':{'pagesize':_0x232a09[_0x2603fb(0xda)]}},'extras':{'appCode':_0x5be8db,'cookie':_0x312e35,'apiDomain':_0x232a09['resolveApiDomain'](),'apiDir':_0xac861c,'selectedAppName':_0x232a09[_0x2603fb(0x9b)],'mergedCli':_0x232a09['mergedCli']}};},async 'confirmHighRisk'({env:_0x1b3c04,commandLabel:_0x15fdaf}){const _0x200758=a238_0x3adb98;if(_0x1b3c04[_0x200758(0xbf)])throw CliErrors[_0x200758(0xca)]('High-risk\x20operation\x20`'+_0x15fdaf+_0x200758(0xbc));await requireConfirmationPrompt({'lines':[_0x200758(0xaf)+_0x15fdaf,_0x200758(0xba)],'createCancelledError':_0x47f4e4=>CliErrors[_0x200758(0xc0)](_0x47f4e4)});},async 'finalize'(){const _0x5ad3e3=a238_0x3adb98,{clearActiveCookie:_0x411eff}=await import(_0x5ad3e3(0xbb));_0x411eff();}};export async function runCommand(_0x54b70d,_0x37355d){const _0x4714ef=a238_0x3adb98;assertRejectedFlags(_0x54b70d,_0x37355d[_0x4714ef(0xb7)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x54b70d)?withUpdateNotice(_0x54b70d):_0x54b70d,_0x37355d,runnerAdapter);}function assertRejectedFlags(_0x13d971,_0x126376){const _0x4237a8=a238_0x3adb98;for(const _0x11daf3 of _0x13d971[_0x4237a8(0x9c)]??[]){const _0x3b5305=GLOBAL_FLAGS[_0x4237a8(0xc3)](_0x1fbb93=>_0x1fbb93['name']===_0x11daf3[_0x4237a8(0xa7)]),_0x264471=new Set([_0x11daf3['name'],toCamelCase(_0x11daf3[_0x4237a8(0xa7)]),_0x3b5305?.[_0x4237a8(0xac)]]),_0x5ad88b=[..._0x264471][_0x4237a8(0xd4)](_0x1f9a69=>{if(!_0x1f9a69)return![];const _0x10302c=_0x126376[_0x1f9a69];return _0x10302c!==undefined&&_0x10302c!==null&&_0x10302c!==![];});if(_0x5ad88b)throw CliErrors[_0x4237a8(0xca)](_0x11daf3[_0x4237a8(0xc5)],_0x11daf3[_0x4237a8(0xc2)]);}}function toCamelCase(_0x3b590d){const _0x4001fe=a238_0x3adb98;return _0x3b590d['replace'](/-([a-z])/g,(_0x2f9d4b,_0x153fcc)=>_0x153fcc[_0x4001fe(0xc8)]());}function shouldAttachUpdateNotice(_0x19e6cf){const _0x2e560a=a238_0x3adb98;if(_0x19e6cf[_0x2e560a(0xa8)]===![])return![];return!['update',_0x2e560a(0xce),_0x2e560a(0xa4)][_0x2e560a(0xbe)](_0x19e6cf[_0x2e560a(0xd9)]);}function withUpdateNotice(_0x1d495f){return{..._0x1d495f,async 'execute'(_0x323f02){const _0x1072ce=a238_0x3b5c,_0x4c87a6=shouldResolveUpdateNotice(_0x323f02)?resolveLatestUpdateNotice()[_0x1072ce(0xb4)](()=>null):Promise['resolve'](null),_0x4e06b6=await _0x1d495f[_0x1072ce(0xb2)](_0x323f02);return attachUpdateNotice(_0x4e06b6,await _0x4c87a6);}};}function shouldResolveUpdateNotice(_0x5b2b69){const _0x478e41=a238_0x3adb98;return _0x5b2b69[_0x478e41(0xd8)]===_0x478e41(0xc1)&&!_0x5b2b69['nonInteractive'];}function attachUpdateNotice(_0x27392a,_0x2a05d5){const _0x227170=a238_0x3adb98;if(!_0x2a05d5||!_0x27392a||typeof _0x27392a!=='object')return _0x27392a;const _0x55cdb0=_0x27392a,_0x246dad=typeof _0x55cdb0[_0x227170(0xae)]===_0x227170(0xb9)&&_0x55cdb0[_0x227170(0xae)]!==null?_0x55cdb0[_0x227170(0xae)]:{};return{..._0x55cdb0,'_notice':{..._0x246dad,'update':_0x2a05d5}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b36ff,_0x4dc304){const _0x53f22a=a239_0x3e7d,_0x12df83=_0x1b36ff();while(!![]){try{const _0x2fbff6=parseInt(_0x53f22a(0x12e))/0x1+-parseInt(_0x53f22a(0x130))/0x2*(-parseInt(_0x53f22a(0x131))/0x3)+-parseInt(_0x53f22a(0x134))/0x4*(parseInt(_0x53f22a(0x12f))/0x5)+parseInt(_0x53f22a(0x136))/0x6+-parseInt(_0x53f22a(0x12d))/0x7*(-parseInt(_0x53f22a(0x132))/0x8)+parseInt(_0x53f22a(0x135))/0x9*(parseInt(_0x53f22a(0x12c))/0xa)+-parseInt(_0x53f22a(0x137))/0xb;if(_0x2fbff6===_0x4dc304)break;else _0x12df83['push'](_0x12df83['shift']());}catch(_0x1486e5){_0x12df83['push'](_0x12df83['shift']());}}}(a239_0x1ca3,0x67591));import{buildSchemaPayload as a239_0x2eac4d}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a239_0x3e7d(_0x2e02b3,_0x11cd21){_0x2e02b3=_0x2e02b3-0x12c;const _0x1ca336=a239_0x1ca3();let _0x3e7dc6=_0x1ca336[_0x2e02b3];return _0x3e7dc6;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a239_0x1ca3(){const _0x1ef61e=['71156YhZGhA','1464291dOKLQX','365040UQmwbt','10397904IHPkPV','10RquzKP','4554179DPmpIR','693915LYlXBW','80jiZzwd','262CRmtEV','1950eUYEVq','8aYIlvp','../commands/registry.js'];a239_0x1ca3=function(){return _0x1ef61e;};return a239_0x1ca3();}export async function buildSchemaPayload(){const _0x12fdf3=a239_0x3e7d,{serviceRegistry:_0x124934,findDefinition:_0x288cac}=await import(_0x12fdf3(0x133));return a239_0x2eac4d({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x124934,'buildAllFlags':buildAllFlags,'findDefinition':_0x288cac});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a240_0x4372(){var _0x40874d=['2502420pchIRx','24QsJBXN','33vleorK','40XWOTPu','156888ZmElPQ','578263fXnPuA','4dbZcrb','44700xMDDBm','2375622owYUEI','103356IIZVDg','1251455MWBOuY'];a240_0x4372=function(){return _0x40874d;};return a240_0x4372();}function a240_0x1e29(_0xaa6a82,_0x120464){_0xaa6a82=_0xaa6a82-0x1a4;var _0x437258=a240_0x4372();var _0x1e29e4=_0x437258[_0xaa6a82];return _0x1e29e4;}(function(_0x10fc1a,_0x426054){var _0x3e7105=a240_0x1e29,_0x2c6090=_0x10fc1a();while(!![]){try{var _0x514b46=parseInt(_0x3e7105(0x1a5))/0x1*(parseInt(_0x3e7105(0x1a6))/0x2)+parseInt(_0x3e7105(0x1ab))/0x3*(parseInt(_0x3e7105(0x1ae))/0x4)+-parseInt(_0x3e7105(0x1a9))/0x5+parseInt(_0x3e7105(0x1a8))/0x6+-parseInt(_0x3e7105(0x1a4))/0x7*(parseInt(_0x3e7105(0x1ad))/0x8)+-parseInt(_0x3e7105(0x1a7))/0x9+-parseInt(_0x3e7105(0x1aa))/0xa*(-parseInt(_0x3e7105(0x1ac))/0xb);if(_0x514b46===_0x426054)break;else _0x2c6090['push'](_0x2c6090['shift']());}catch(_0x58bd4c){_0x2c6090['push'](_0x2c6090['shift']());}}}(a240_0x4372,0x3b87a));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a241_0x508aef=a241_0xcbe1;function a241_0x4ab5(){const _0x457cb5=['808ElubXg','2177352zcJdCq','936cfe1','4HgNRjN','288102GSHVCH','287HGEFyy','930556vzLEGg','v2.3.16-beta.4','2026-08-10T12:36:02.606Z','995907UdNTkO','395107NRwOgn','2.3.16-beta.4','1113655TtEkNO'];a241_0x4ab5=function(){return _0x457cb5;};return a241_0x4ab5();}function a241_0xcbe1(_0x13d088,_0x471b4f){_0x13d088=_0x13d088-0x156;const _0x4ab5a7=a241_0x4ab5();let _0xcbe1e8=_0x4ab5a7[_0x13d088];return _0xcbe1e8;}(function(_0x3b2b33,_0x502a24){const _0x23f18f=a241_0xcbe1,_0x525131=_0x3b2b33();while(!![]){try{const _0x189785=parseInt(_0x23f18f(0x15d))/0x1+parseInt(_0x23f18f(0x159))/0x2+-parseInt(_0x23f18f(0x15c))/0x3+-parseInt(_0x23f18f(0x156))/0x4*(-parseInt(_0x23f18f(0x15f))/0x5)+-parseInt(_0x23f18f(0x157))/0x6+parseInt(_0x23f18f(0x158))/0x7*(parseInt(_0x23f18f(0x160))/0x8)+-parseInt(_0x23f18f(0x161))/0x9;if(_0x189785===_0x502a24)break;else _0x525131['push'](_0x525131['shift']());}catch(_0x2cd9f4){_0x525131['push'](_0x525131['shift']());}}}(a241_0x4ab5,0x719bf));export const VERSION=a241_0x508aef(0x15e);export const GIT_TAG=a241_0x508aef(0x15a);export const GIT_COMMIT=a241_0x508aef(0x162);export const BUILD_TIME=a241_0x508aef(0x15b);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x299300,_0x2572ac){var _0x2032a5=a242_0x5843,_0x5d59cc=_0x299300();while(!![]){try{var _0x4cb853=parseInt(_0x2032a5(0x1e4))/0x1+parseInt(_0x2032a5(0x1e1))/0x2+parseInt(_0x2032a5(0x1e8))/0x3*(parseInt(_0x2032a5(0x1eb))/0x4)+-parseInt(_0x2032a5(0x1ea))/0x5+parseInt(_0x2032a5(0x1e5))/0x6+-parseInt(_0x2032a5(0x1de))/0x7+-parseInt(_0x2032a5(0x1e2))/0x8;if(_0x4cb853===_0x2572ac)break;else _0x5d59cc['push'](_0x5d59cc['shift']());}catch(_0x55d9ec){_0x5d59cc['push'](_0x5d59cc['shift']());}}}(a242_0x5167,0x9c4f7));import a242_0x109b78 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a242_0x5843(_0x4144a5,_0x2e49c3){_0x4144a5=_0x4144a5-0x1de;var _0x5167b0=a242_0x5167();var _0x58435d=_0x5167b0[_0x4144a5];return _0x58435d;}export function showHelp(){var _0x4dccd9=a242_0x5843;console['log'](),console['log'](a242_0x109b78[_0x4dccd9(0x1df)][_0x4dccd9(0x1e7)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x4dccd9(0x1e6)](),console['log'](_0x4dccd9(0x1e3)+a242_0x109b78[_0x4dccd9(0x1df)][_0x4dccd9(0x1e7)](CLI_BIN_NAME+_0x4dccd9(0x1e0))+_0x4dccd9(0x1e9)),console['log']();}function a242_0x5167(){var _0x5632d5=['\x20to\x20view\x20available\x20commands.','746245iqsFLX','3532ZWeVBP','3094182AKctok','green','\x20--help','1677854rgUFLC','12600112xAIgEA','\x20\x20Use\x20','14849KbnDKI','5480814xgPwiV','log','bold','3531dVMrMP'];a242_0x5167=function(){return _0x5632d5;};return a242_0x5167();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a99ad,_0x3f046f){const _0x4ac73f=a243_0x29fc,_0x252eb8=_0x2a99ad();while(!![]){try{const _0x3023f7=parseInt(_0x4ac73f(0xfe))/0x1+-parseInt(_0x4ac73f(0xfa))/0x2*(-parseInt(_0x4ac73f(0xff))/0x3)+-parseInt(_0x4ac73f(0x102))/0x4*(-parseInt(_0x4ac73f(0xee))/0x5)+-parseInt(_0x4ac73f(0xec))/0x6+-parseInt(_0x4ac73f(0xfb))/0x7+parseInt(_0x4ac73f(0xfc))/0x8+parseInt(_0x4ac73f(0xf3))/0x9*(parseInt(_0x4ac73f(0x105))/0xa);if(_0x3023f7===_0x3f046f)break;else _0x252eb8['push'](_0x252eb8['shift']());}catch(_0x83e7f9){_0x252eb8['push'](_0x252eb8['shift']());}}}(a243_0x2c1b,0x7f391));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x472dda){const _0xb6a5fd=a243_0x29fc,_0xc3f3bc=[];for(const [_0xc79970,_0x502da4]of Object[_0xb6a5fd(0xf5)](_0x472dda)){if(_0x502da4===!![]){const _0x3d6ca9=_0xc79970[_0xb6a5fd(0x107)](/([A-Z])/g,_0xb6a5fd(0xf4))[_0xb6a5fd(0x101)]();_0xc3f3bc['push'](_0x3d6ca9);}}return _0xc3f3bc;}export function parseDynamicFlags(){const _0x527399=a243_0x29fc,_0xef4060=[];for(let _0x4a6686=0x3;_0x4a6686<process[_0x527399(0x108)]['length'];_0x4a6686++){const _0x1f7700=process['argv'][_0x4a6686];if(_0x1f7700&&_0x1f7700[_0x527399(0x10c)]('--')){const _0x45ed07=_0x1f7700[_0x527399(0xf8)](0x2);_0x45ed07&&!_0x45ed07[_0x527399(0xf6)]('=')&&_0xef4060['push'](_0x45ed07);}}return _0xef4060;}export function getAllProvidedFlags(_0x41d3e9){const _0x229681=a243_0x29fc,_0x47a142=camelCaseFlagsToKebab(_0x41d3e9),_0x3ca69e=parseDynamicFlags(),_0x50f03a=new Set([..._0x47a142,..._0x3ca69e]);return Array[_0x229681(0x10a)](_0x50f03a);}export function normalizeLegacyBffSaveFlags(_0x16be0f){const _0x275ca6=a243_0x29fc,_0x51f9c5=new Set(_0x16be0f);return _0x51f9c5[_0x275ca6(0xf7)]('dangerously-bff-save')&&_0x51f9c5[_0x275ca6(0xf1)](_0x275ca6(0x109)),Array[_0x275ca6(0x10a)](_0x51f9c5);}function a243_0x2c1b(){const _0x6295db=['Equivalent\x20command:\x20','259402tcmYYj','975171TvUXDR','exit','toLowerCase','840cbaBcL','log','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','10IhYeGL','cwd','replace','argv','enable-bff-save','from','skill','startsWith','6149592QFoqOT','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','12295gibriD','--help','setLogPath','add','不支持的命令:\x20','3657330upMZnl','-$1','entries','includes','has','slice','help','2LGzRbp','3641526ffGcij','4472288gfVfZd'];a243_0x2c1b=function(){return _0x6295db;};return a243_0x2c1b();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;function a243_0x29fc(_0x531f83,_0x3036c2){_0x531f83=_0x531f83-0xec;const _0x2c1b41=a243_0x2c1b();let _0x29fc37=_0x2c1b41[_0x531f83];return _0x29fc37;}export async function skillsCommand(_0x27b0a5,_0x55920f,_0x5008f3){const _0x5a72a7=a243_0x29fc;logger[_0x5a72a7(0xf0)](process[_0x5a72a7(0x106)]());if(_0x5008f3?.[_0x5a72a7(0xf9)]||_0x27b0a5===_0x5a72a7(0xef)){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x27b0a5||'(empty)')),console[_0x5a72a7(0x103)]('\x0aAvailable\x20commands:'),console[_0x5a72a7(0x103)]('\x20\x20'+CLI_BIN_NAME+_0x5a72a7(0xed)),console[_0x5a72a7(0x103)](''),console[_0x5a72a7(0x103)](_0x5a72a7(0xfd)+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x5a72a7(0x10b),_0x5a72a7(0xf2)+_0x27b0a5),process[_0x5a72a7(0x100)](0x1);}function showHelp(){const _0xe0c1a1=a243_0x29fc;console[_0xe0c1a1(0x103)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0xe0c1a1(0x104)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a244_0x1b80a3=a244_0x49aa;(function(_0x295f58,_0x25961a){const _0x231ef6=a244_0x49aa,_0x3b1564=_0x295f58();while(!![]){try{const _0x1c8892=-parseInt(_0x231ef6(0x18e))/0x1*(parseInt(_0x231ef6(0x19b))/0x2)+parseInt(_0x231ef6(0x19f))/0x3+parseInt(_0x231ef6(0x180))/0x4*(parseInt(_0x231ef6(0x19e))/0x5)+-parseInt(_0x231ef6(0x17b))/0x6*(-parseInt(_0x231ef6(0x179))/0x7)+parseInt(_0x231ef6(0x171))/0x8+parseInt(_0x231ef6(0x19a))/0x9*(parseInt(_0x231ef6(0x18a))/0xa)+-parseInt(_0x231ef6(0x190))/0xb;if(_0x1c8892===_0x25961a)break;else _0x3b1564['push'](_0x3b1564['shift']());}catch(_0x4ce92f){_0x3b1564['push'](_0x3b1564['shift']());}}}(a244_0xb3fd,0x7e23a));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=a244_0x1b80a3(0x18f);export const NPX_SKILLS_SUBCOMMAND_ADD=a244_0x1b80a3(0x186);export const NPX_SKILLS_FLAG_SKILL='--skill';export const RABETBASE_SKILL_SOURCE=a244_0x1b80a3(0x18b);export const LEGACY_RABETBASE_SKILL_SOURCE=a244_0x1b80a3(0x199);export const DEFAULT_RABETBASE_SKILL_NAME=a244_0x1b80a3(0x177);export const RABETBASE_GLOBAL_SKILL_NAME='rabetbase';export const RABETBASE_SKILL_GIT_SOURCE='git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git';export function resolveGlobalSkillName(_0x33c888){const _0x55837e=a244_0x1b80a3;switch(_0x33c888[_0x55837e(0x183)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x2b8d24){const _0x381293=a244_0x1b80a3,_0x3a6b13=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x2b8d24&&_0x3a6b13[_0x381293(0x193)](NPX_SKILLS_FLAG_SKILL,_0x2b8d24),_0x3a6b13;}function a244_0x49aa(_0x495d01,_0x138ea6){_0x495d01=_0x495d01-0x171;const _0xb3fd1a=a244_0xb3fd();let _0x49aa06=_0xb3fd1a[_0x495d01];return _0x49aa06;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a244_0x1b80a3(0x195),...buildNpxSkillsAddArgv()][a244_0x1b80a3(0x1a2)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a244_0x1b80a3(0x195),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a244_0x1b80a3(0x1a2)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x50c4e8,_0x670bb4,_0x5a508f){return{'ok':![],'status':_0x670bb4,'code':_0x50c4e8,'error':'['+_0x50c4e8+']\x20'+_0x5a508f};}function spawnOptions(_0x3b3a4a,_0x1a3a74){const _0x1658a3=a244_0x1b80a3;return{'cwd':_0x3b3a4a,'stdio':_0x1a3a74,'env':process.env,'shell':![],..._0x1a3a74===_0x1658a3(0x188)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x3486dc,_0x9734e0,_0x509c30,_0x11f9fb){const _0x579001=a244_0x1b80a3,_0x514329=[_0x3486dc[_0x579001(0x1a3)]?_0x3486dc[_0x579001(0x1a3)]['toString']():'',_0x3486dc[_0x579001(0x17c)]?_0x3486dc[_0x579001(0x17c)][_0x579001(0x196)]():'']['filter'](Boolean)['join']('\x0a')['trim']();_0x11f9fb!==_0x579001(0x188)&&_0x514329&&console[_0x579001(0x175)](_0x514329);if(_0x3486dc['error']){const _0x12f339=_0x3486dc[_0x579001(0x1a0)],_0x5bd647=_0x12f339['code']==='ENOENT'?'NPX_NOT_FOUND':_0x12f339[_0x579001(0x189)]==='EPERM'||_0x12f339['code']==='EACCES'?_0x579001(0x18c):'SPAWN_FAILED';return failure(_0x5bd647,_0x3486dc[_0x579001(0x17d)],_0x12f339[_0x579001(0x17a)]);}if(_0x3486dc['signal'])return failure(_0x579001(0x174),_0x3486dc[_0x579001(0x17d)],_0x579001(0x192)+_0x3486dc[_0x579001(0x198)]);if(_0x3486dc[_0x579001(0x17d)]!==0x0)return failure(_0x579001(0x18d),_0x3486dc['status'],_0x514329||_0x579001(0x178)+(_0x3486dc[_0x579001(0x17d)]??_0x579001(0x176)));const _0x121455=_0x514329['match'](/Failed to install\s+(\d+)/i);if(_0x121455&&Number(_0x121455[0x1])>0x0)return failure(_0x579001(0x191),0x0,_0x579001(0x185)+_0x121455[0x1]+_0x579001(0x181)+(_0x514329?':\x0a'+_0x514329:''));if(_0x9734e0){const _0x5b487a=resolveInstalledSkill(_0x9734e0,_0x509c30);if(_0x5b487a[_0x579001(0x197)]==='absent')return failure(_0x579001(0x182),0x0,'Skill\x20\x22'+_0x9734e0+_0x579001(0x17f)+_0x5b487a[_0x579001(0x194)][_0x579001(0x1a2)](',\x20')+')');_0x5b487a[_0x579001(0x197)]==='unverifiable'&&console['warn'](_0x579001(0x17e)+_0x9734e0+'\x22\x20install\x20state:\x20'+_0x5b487a[_0x579001(0x19d)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x200564,_0x19db1c){const _0x42aa17=a244_0x1b80a3;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x3d366d=_0x19db1c?.['stdio']??_0x42aa17(0x19c),_0x18aa43=resolveNpmBin('npx'),_0x368b39=buildNpxSkillsAddArgv(_0x19db1c?.[_0x42aa17(0x187)]),_0x5e527a=[_0x42aa17(0x195),..._0x368b39][_0x42aa17(0x1a2)]('\x20');console[_0x42aa17(0x175)]('*\x20'+_0x5e527a);const _0x4a2114=spawnSync(_0x18aa43,_0x368b39,spawnOptions(_0x200564,_0x3d366d));return normalizeSpawnResult(_0x4a2114,undefined,undefined,_0x3d366d);}function a244_0xb3fd(){const _0x205d04=['add','skill','pipe','code','50igSPGP','lovrabet/rabetbase','PERMISSION_DENIED','CHILD_EXIT_NONZERO','589627KzFvfM','skills','12278640SdwQjI','INSTALL_PARTIAL','npx\x20terminated\x20by\x20signal\x20','push','checked','npx','toString','state','signal','lovrabet/lovrabet-skill','15669pUYVHD','2cUOuCF','inherit','reason','460DMDutU','2435367XrGgRP','error','presence','join','stdout','5906224BZNoQR','stdio','remove','CHILD_TERMINATED','log','unknown','Lovrabet','exit\x20','2051QanRBR','message','8598MnMCvF','stderr','status','!\x20Could\x20not\x20verify\x20\x22','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','10604llhsYc','\x20failed\x20target(s)','SKILL_NOT_INSTALLED','trim','yes','Installer\x20reported\x20'];a244_0xb3fd=function(){return _0x205d04;};return a244_0xb3fd();}export function runNpxSkillsRemove(_0x5d09ad,_0x58ccff,_0xd4a416=LEGACY_RABETBASE_SKILL_SOURCE){const _0x29b62b=a244_0x1b80a3;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1b6bbb=_0x58ccff?.['stdio']??_0x29b62b(0x19c),_0x33db4f=resolveNpmBin(_0x29b62b(0x195)),_0x150bf3=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x29b62b(0x173),_0xd4a416,NPX_SKILLS_FLAG_SKILL,_0x58ccff?.[_0x29b62b(0x187)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x58ccff?.[_0x29b62b(0x184)]?['-y']:[]],_0x27ccdf=[_0x33db4f,..._0x150bf3][_0x29b62b(0x1a2)]('\x20');console[_0x29b62b(0x175)]('*\x20'+_0x27ccdf);const _0x4a165d=spawnSync(_0x33db4f,_0x150bf3,spawnOptions(_0x5d09ad,_0x1b6bbb));return normalizeSpawnResult(_0x4a165d,undefined,undefined,_0x1b6bbb);}export function runNpxSkillsAddGlobal(_0xd83eaa,_0x50158a,_0x107228){const _0x3ca75b=a244_0x1b80a3;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1a692d=resolveNpmBin('npx'),_0x3f7f27=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x50158a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x1d17df=['npx',NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x50158a,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3ca75b(0x1a2)]('\x20');console[_0x3ca75b(0x175)]('*\x20'+_0x1d17df);const _0x5d27ff=spawnSync(_0x1a692d,_0x3f7f27,spawnOptions(_0xd83eaa,_0x3ca75b(0x188)));return normalizeSpawnResult(_0x5d27ff,resolveGlobalSkillName(_0x50158a),_0x107228?.[_0x3ca75b(0x1a1)],_0x107228?.[_0x3ca75b(0x172)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a245_0x21e244=a245_0x31c1;function a245_0x31c1(_0x521f55,_0x11818d){_0x521f55=_0x521f55-0x100;const _0xb8a84f=a245_0xb8a8();let _0x31c186=_0xb8a84f[_0x521f55];return _0x31c186;}function a245_0xb8a8(){const _0x1e62bb=['\x20is\x20unreadable:\x20','1614opmliI','\x20records\x20\x22','524740sBIRLz','object','version','lockFile','117fnBFgN','\x20uses\x20unsupported\x20version\x20','recorded','30312uPuzBC','232XHXRrQ','1455630KHBltN','map','514fmiqGO','not-recorded','skills','unusable','72uNypBr','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','parse','unverifiable','find','number','\x20has\x20no\x20skills\x20map','958vcSvLr','kind','343IfWzmu','SKILL.md','.skill-lock.json','641014XVPOAp','absent','reason','home','utf8','.claude','present','.agents','3921mQhZtI'];a245_0xb8a8=function(){return _0x1e62bb;};return a245_0xb8a8();}(function(_0x74a6a2,_0x1af4dc){const _0x39e3a2=a245_0x31c1,_0x2ee134=_0x74a6a2();while(!![]){try{const _0x386876=-parseInt(_0x39e3a2(0x116))/0x1*(-parseInt(_0x39e3a2(0x10b))/0x2)+-parseInt(_0x39e3a2(0x123))/0x3*(parseInt(_0x39e3a2(0x108))/0x4)+parseInt(_0x39e3a2(0x100))/0x5+-parseInt(_0x39e3a2(0x125))/0x6*(-parseInt(_0x39e3a2(0x118))/0x7)+parseInt(_0x39e3a2(0x107))/0x8*(parseInt(_0x39e3a2(0x104))/0x9)+parseInt(_0x39e3a2(0x109))/0xa+parseInt(_0x39e3a2(0x11b))/0xb*(-parseInt(_0x39e3a2(0x10f))/0xc);if(_0x386876===_0x1af4dc)break;else _0x2ee134['push'](_0x2ee134['shift']());}catch(_0x12a61a){_0x2ee134['push'](_0x2ee134['shift']());}}}(a245_0xb8a8,0x20a49));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a245_0x21e244(0x122),a245_0x21e244(0x11a));export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join('.agents',a245_0x21e244(0x10d)),join(a245_0x21e244(0x120),'skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x5db1fa,_0x578a1b){const _0xfc7c9b=a245_0x21e244;if(!existsSync(_0x5db1fa))return{'kind':_0xfc7c9b(0x10c)};let _0x50b1d5;try{_0x50b1d5=JSON[_0xfc7c9b(0x111)](readFileSync(_0x5db1fa,_0xfc7c9b(0x11f)));}catch(_0x166220){return{'kind':_0xfc7c9b(0x10e),'reason':_0x5db1fa+_0xfc7c9b(0x124)+_0x166220['message']};}const _0x2227c6=_0x50b1d5;if(typeof _0x2227c6?.[_0xfc7c9b(0x102)]!==_0xfc7c9b(0x114)||!SUPPORTED_LOCK_VERSIONS['includes'](_0x2227c6[_0xfc7c9b(0x102)]))return{'kind':_0xfc7c9b(0x10e),'reason':_0x5db1fa+_0xfc7c9b(0x105)+String(_0x2227c6?.[_0xfc7c9b(0x102)])};if(!_0x2227c6[_0xfc7c9b(0x10d)]||typeof _0x2227c6[_0xfc7c9b(0x10d)]!==_0xfc7c9b(0x101))return{'kind':_0xfc7c9b(0x10e),'reason':_0x5db1fa+_0xfc7c9b(0x115)};return _0x2227c6[_0xfc7c9b(0x10d)][_0x578a1b]?{'kind':'recorded'}:{'kind':_0xfc7c9b(0x10c)};}export function resolveInstalledSkill(_0x552c8e,_0x4852e9){const _0x43ffb2=a245_0x21e244,_0x512754=_0x4852e9?.[_0x43ffb2(0x11e)]??homedir(),_0x3e4177=_0x4852e9?.['globalSkillsDirs']??GLOBAL_SKILLS_DIR_RELATIVE_PATHS[_0x43ffb2(0x10a)](_0x14e741=>join(_0x512754,_0x14e741)),_0x1e9a96=_0x4852e9?.[_0x43ffb2(0x103)]??join(_0x512754,SKILL_LOCK_RELATIVE_PATH),_0x3e72e6=_0x3e4177[_0x43ffb2(0x10a)](_0x238743=>join(_0x238743,_0x552c8e,_0x43ffb2(0x119))),_0x17208b=_0x3e72e6[_0x43ffb2(0x113)](_0x47c814=>existsSync(_0x47c814));if(_0x17208b)return{'state':_0x43ffb2(0x121),'path':_0x17208b};const _0x4df2e6=readLockLookup(_0x1e9a96,_0x552c8e);if(_0x4df2e6[_0x43ffb2(0x117)]===_0x43ffb2(0x10e))return{'state':'unverifiable','reason':_0x4df2e6[_0x43ffb2(0x11d)]};if(_0x4df2e6[_0x43ffb2(0x117)]===_0x43ffb2(0x106))return{'state':_0x43ffb2(0x112),'reason':_0x1e9a96+_0x43ffb2(0x126)+_0x552c8e+_0x43ffb2(0x110)+('('+_0x3e72e6['join'](',\x20')+')')};return{'state':_0x43ffb2(0x11c),'checked':_0x3e72e6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x9850c2,_0x2eb126){const _0x35c9e5=a246_0x3102,_0x51c8dc=_0x9850c2();while(!![]){try{const _0x5402a8=parseInt(_0x35c9e5(0x124))/0x1*(parseInt(_0x35c9e5(0x12c))/0x2)+-parseInt(_0x35c9e5(0x120))/0x3*(parseInt(_0x35c9e5(0x11c))/0x4)+parseInt(_0x35c9e5(0x11e))/0x5*(parseInt(_0x35c9e5(0x122))/0x6)+-parseInt(_0x35c9e5(0x12d))/0x7*(-parseInt(_0x35c9e5(0x125))/0x8)+parseInt(_0x35c9e5(0x128))/0x9+-parseInt(_0x35c9e5(0x11d))/0xa+-parseInt(_0x35c9e5(0x12b))/0xb*(-parseInt(_0x35c9e5(0x127))/0xc);if(_0x5402a8===_0x2eb126)break;else _0x51c8dc['push'](_0x51c8dc['shift']());}catch(_0x4870a7){_0x51c8dc['push'](_0x51c8dc['shift']());}}}(a246_0x2151,0x25ac9));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 a246_0x3102(_0x20e34f,_0x2f05e3){_0x20e34f=_0x20e34f-0x118;const _0x215188=a246_0x2151();let _0x31029e=_0x215188[_0x20e34f];return _0x31029e;}function a246_0x2151(){const _0x2c4c1a=['rabetbase.command','17202vHJkHK','test','15629jFNNQo','831608JAygep','flags','895548SLYmbl','1506501BgDDBk','durationMs','command','11ntPFhg','36cPCYQG','7TggpMz','stringify','error','entries','service','[REDACTED]','4068pxvBPj','2399110tmmvkZ','60SqWPtL','some','789BLgZoo'];a246_0x2151=function(){return _0x2c4c1a;};return a246_0x2151();}function isSensitiveKey(_0x372cb6){const _0x509917=a246_0x3102;return SENSITIVE_PATTERNS[_0x509917(0x11f)](_0x564399=>_0x564399[_0x509917(0x123)](_0x372cb6));}function sanitizeFlags(_0x48db05){const _0x272796=a246_0x3102,_0x52ec5f={};for(const [_0x30dbdd,_0x55bcc3]of Object[_0x272796(0x119)](_0x48db05)){isSensitiveKey(_0x30dbdd)?_0x52ec5f[_0x30dbdd]=_0x55bcc3!=null&&_0x55bcc3!==''?_0x272796(0x11b):_0x55bcc3:_0x52ec5f[_0x30dbdd]=_0x55bcc3;}return _0x52ec5f;}export async function reportCommandTrace(_0x5ca14d){const _0x284b51=a246_0x3102;try{const _0x13f146=sanitizeFlags(_0x5ca14d[_0x284b51(0x126)]);await sendCliTraceLog({'spanName':_0x284b51(0x121),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x5ca14d[_0x284b51(0x11a)],'command.name':_0x5ca14d[_0x284b51(0x12a)],'command.flags':JSON[_0x284b51(0x12e)](_0x13f146),..._0x5ca14d['durationMs']!=null?{'command.duration_ms':_0x5ca14d[_0x284b51(0x129)]}:{},..._0x5ca14d[_0x284b51(0x118)]?{'command.error':_0x5ca14d[_0x284b51(0x118)]instanceof Error?_0x5ca14d[_0x284b51(0x118)]['message']:String(_0x5ca14d['error'])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a247_0xe929(_0x5ef621,_0xe09150){_0x5ef621=_0x5ef621-0x1b0;var _0x16b1bd=a247_0x16b1();var _0xe929a0=_0x16b1bd[_0x5ef621];return _0xe929a0;}(function(_0x72ee3e,_0x12f807){var _0x2417f0=a247_0xe929,_0x15bb2e=_0x72ee3e();while(!![]){try{var _0x443b29=parseInt(_0x2417f0(0x1b4))/0x1+parseInt(_0x2417f0(0x1b2))/0x2+parseInt(_0x2417f0(0x1bb))/0x3*(parseInt(_0x2417f0(0x1bc))/0x4)+parseInt(_0x2417f0(0x1b8))/0x5*(parseInt(_0x2417f0(0x1b6))/0x6)+parseInt(_0x2417f0(0x1b9))/0x7*(parseInt(_0x2417f0(0x1b0))/0x8)+parseInt(_0x2417f0(0x1b7))/0x9+-parseInt(_0x2417f0(0x1b1))/0xa*(parseInt(_0x2417f0(0x1ba))/0xb);if(_0x443b29===_0x12f807)break;else _0x15bb2e['push'](_0x15bb2e['shift']());}catch(_0x3427f0){_0x15bb2e['push'](_0x15bb2e['shift']());}}}(a247_0x16b1,0x20f7b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a247_0x16b1(){var _0x38cd90=['2045943dtOYaR','263665ZVRfPr','42CNhTlN','11TPddwd','262296kmCyPJ','8uFLbbI','error','166456zNbQUO','7086560JkmeMp','268898jORqZa','cli.help','24010HXLtnL','service','18vABEnj'];a247_0x16b1=function(){return _0x38cd90;};return a247_0x16b1();}export async function reportCliHelpTrace(_0x141385,_0xefee7b){var _0x250e65=a247_0xe929;try{await sendCliTraceLog({'spanName':_0x250e65(0x1b3),'logData':{'rabetbase.help.kind':_0x141385,..._0xefee7b?.['service']&&{'rabetbase.help.service':_0xefee7b[_0x250e65(0x1b5)]}}});}catch(_0x43ba22){console[_0x250e65(0x1bd)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x43ba22);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x155195,_0x34053a){const _0x291852=a248_0xfbb6,_0x2b3073=_0x155195();while(!![]){try{const _0x1b7d28=-parseInt(_0x291852(0x1c8))/0x1+parseInt(_0x291852(0x1d1))/0x2*(-parseInt(_0x291852(0x1d5))/0x3)+parseInt(_0x291852(0x1c7))/0x4+-parseInt(_0x291852(0x1ce))/0x5+parseInt(_0x291852(0x1cb))/0x6*(-parseInt(_0x291852(0x1d4))/0x7)+parseInt(_0x291852(0x1d3))/0x8+parseInt(_0x291852(0x1d0))/0x9;if(_0x1b7d28===_0x34053a)break;else _0x2b3073['push'](_0x2b3073['shift']());}catch(_0x5ee66d){_0x2b3073['push'](_0x2b3073['shift']());}}}(a248_0x2a20,0xdc61f));function a248_0x2a20(){const _0x586b9a=['499670cJBLKp','tenant','username','1080UCwFQe','production','user','1238415bFWcrX','nickname','15461127xvNHyY','1224152EbAwNJ','email','7483728wVhBqH','65261fxwPog','3AckRTl','5147548oEErmV'];a248_0x2a20=function(){return _0x586b9a;};return a248_0x2a20();}import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a248_0xfbb6(_0x306075,_0x176781){_0x306075=_0x306075-0x1c7;const _0x2a202f=a248_0x2a20();let _0xfbb68b=_0x2a202f[_0x306075];return _0xfbb68b;}import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5cb885=a248_0xfbb6,_0x35ed58=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x2ac7e5=_0x35ed58?.[_0x5cb885(0x1cd)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?'daily':_0x5cb885(0x1cc))}),setUserContext({'id':_0x2ac7e5?.['id'],'username':_0x2ac7e5?.[_0x5cb885(0x1ca)],'nickname':_0x2ac7e5?.[_0x5cb885(0x1cf)],'email':_0x2ac7e5?.[_0x5cb885(0x1d2)],'tenantCode':_0x2ac7e5?.[_0x5cb885(0x1c9)]?.['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x35ed58;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a249_0x2b05(){const _0x4fa2ae=['exit','SIGINT','3429923mLgufo','102VvRXZe','672FHiUKl','183999FzKBsy','beforeExit','SIGTERM','192TRlmzm','8241840CaJvhv','5580460CnEueq','328695SmOALq','22vifcng','2166712FQIxHu','once','10iNJogy','then'];a249_0x2b05=function(){return _0x4fa2ae;};return a249_0x2b05();}function a249_0x5353(_0x4b9007,_0x3d2445){_0x4b9007=_0x4b9007-0xf8;const _0x2b05ba=a249_0x2b05();let _0x535375=_0x2b05ba[_0x4b9007];return _0x535375;}(function(_0x493f78,_0x2e4ddd){const _0x1905d3=a249_0x5353,_0x3720a2=_0x493f78();while(!![]){try{const _0x88e0f2=-parseInt(_0x1905d3(0x102))/0x1*(parseInt(_0x1905d3(0xfb))/0x2)+-parseInt(_0x1905d3(0x105))/0x3*(parseInt(_0x1905d3(0x101))/0x4)+parseInt(_0x1905d3(0x108))/0x5*(parseInt(_0x1905d3(0x100))/0x6)+parseInt(_0x1905d3(0xff))/0x7+-parseInt(_0x1905d3(0xf9))/0x8+-parseInt(_0x1905d3(0x106))/0x9+-parseInt(_0x1905d3(0x107))/0xa*(-parseInt(_0x1905d3(0xf8))/0xb);if(_0x88e0f2===_0x2e4ddd)break;else _0x3720a2['push'](_0x3720a2['shift']());}catch(_0x252645){_0x3720a2['push'](_0x3720a2['shift']());}}}(a249_0x2b05,0x9405a));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 _0x4082d2=a249_0x5353;process[_0x4082d2(0xfa)](_0x4082d2(0x103),()=>{void flushOtelNodeIfUsed();});const _0x2bdb3c=()=>{const _0x2d616e=_0x4082d2;void flushOtelNodeIfUsed()[_0x2d616e(0xfc)](()=>process[_0x2d616e(0xfd)](0x0));};process['once'](_0x4082d2(0xfe),_0x2bdb3c),process['once'](_0x4082d2(0x104),_0x2bdb3c);}export async function exitWithOtelShutdown(_0x4f4b3b){const _0x33d9b0=a249_0x5353;await flushOtelNodeIfUsed(),process[_0x33d9b0(0xfd)](_0x4f4b3b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a250_0x57c4(){const _0x5c91a8=['1402158PlOWip','959679JZmfmO','9maAryP','133736gLSevi','traceName','manual','642480LmAUAm','34975fgBopR','1HCSksq','429eJhihJ','12nLMikK','6927790yuUIFc','spanName','77JKAEiO','traceparent','2128764kWttLN','logData'];a250_0x57c4=function(){return _0x5c91a8;};return a250_0x57c4();}(function(_0x27565f,_0x39d891){const _0x389853=a250_0x250f,_0x439de0=_0x27565f();while(!![]){try{const _0xeeac8e=parseInt(_0x389853(0xfd))/0x1*(parseInt(_0x389853(0x106))/0x2)+parseInt(_0x389853(0x107))/0x3+parseInt(_0x389853(0x104))/0x4+parseInt(_0x389853(0x10d))/0x5*(parseInt(_0x389853(0xff))/0x6)+-parseInt(_0x389853(0x102))/0x7*(-parseInt(_0x389853(0x109))/0x8)+parseInt(_0x389853(0x108))/0x9*(parseInt(_0x389853(0x100))/0xa)+parseInt(_0x389853(0xfe))/0xb*(-parseInt(_0x389853(0x10c))/0xc);if(_0xeeac8e===_0x39d891)break;else _0x439de0['push'](_0x439de0['shift']());}catch(_0x1f3cfe){_0x439de0['push'](_0x439de0['shift']());}}}(a250_0x57c4,0x56daf));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a250_0x250f(_0x16383c,_0x1cf45c){_0x16383c=_0x16383c-0xfd;const _0x57c4c3=a250_0x57c4();let _0x250f10=_0x57c4c3[_0x16383c];return _0x250f10;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x3299cc){const _0x34b6eb=a250_0x250f;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3299cc[_0x34b6eb(0x10a)]??DEFAULT_TRACE_NAME,'version':_0x3299cc['version']??getCliVersion(),'spanName':_0x3299cc[_0x34b6eb(0x101)],'eventType':_0x34b6eb(0x10b),'logData':_0x3299cc[_0x34b6eb(0x105)],..._0x3299cc['traceparent']&&{'traceparent':_0x3299cc[_0x34b6eb(0x103)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a251_0x421ce0=a251_0x351f;(function(_0x2af454,_0x426898){const _0x5889a0=a251_0x351f,_0x395e11=_0x2af454();while(!![]){try{const _0x1b6cb5=parseInt(_0x5889a0(0x9d))/0x1*(-parseInt(_0x5889a0(0xa5))/0x2)+-parseInt(_0x5889a0(0xa0))/0x3+-parseInt(_0x5889a0(0xa3))/0x4*(-parseInt(_0x5889a0(0x9a))/0x5)+parseInt(_0x5889a0(0xa2))/0x6*(-parseInt(_0x5889a0(0x98))/0x7)+parseInt(_0x5889a0(0x9b))/0x8+parseInt(_0x5889a0(0xa1))/0x9+parseInt(_0x5889a0(0xa8))/0xa*(parseInt(_0x5889a0(0x99))/0xb);if(_0x1b6cb5===_0x426898)break;else _0x395e11['push'](_0x395e11['shift']());}catch(_0x3fa9ae){_0x395e11['push'](_0x395e11['shift']());}}}(a251_0x5dc8,0x8ccca));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a251_0x5dc8(){const _0x37a86b=['33qxejbk','5644965NAehRs','3839248xfuOOr','join','14169iNAYrp','sanitize','title','3458742KqGntd','2417490MXKZjI','303204XlLTfk','4smMNop','platform-issue-log-collect','152fjxUUC','redactionKinds','description','3264990xugGVw','redactionCount','7aQuzGP'];a251_0x5dc8=function(){return _0x37a86b;};return a251_0x5dc8();}export const PLATFORM_ISSUE_TRACE_NAME=a251_0x421ce0(0xa4);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a251_0x351f(_0x52d99e,_0x2698b7){_0x52d99e=_0x52d99e-0x98;const _0x5dc8b3=a251_0x5dc8();let _0x351fa5=_0x5dc8b3[_0x52d99e];return _0x351fa5;}export async function sendPlatformIssueCollectLog(_0x4204f7){const _0x1c65d4=a251_0x421ce0;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4204f7[_0x1c65d4(0x9f)],'issue.description':_0x4204f7[_0x1c65d4(0xa7)],..._0x4204f7['sanitize']?{'issue.description_original_bytes':_0x4204f7[_0x1c65d4(0x9e)]['originalBytes'],'issue.description_truncated':_0x4204f7[_0x1c65d4(0x9e)]['truncated'],'issue.description_redactions':_0x4204f7[_0x1c65d4(0x9e)][_0x1c65d4(0xa9)],'issue.description_redaction_kinds':_0x4204f7[_0x1c65d4(0x9e)][_0x1c65d4(0xa6)][_0x1c65d4(0x9c)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a253_0x3f9b5c=a253_0x4aa6;(function(_0x40b25f,_0x577466){const _0x4e3270=a253_0x4aa6,_0x40b14c=_0x40b25f();while(!![]){try{const _0x20b782=parseInt(_0x4e3270(0x141))/0x1*(parseInt(_0x4e3270(0x132))/0x2)+parseInt(_0x4e3270(0x140))/0x3*(parseInt(_0x4e3270(0x120))/0x4)+-parseInt(_0x4e3270(0x113))/0x5*(parseInt(_0x4e3270(0x134))/0x6)+-parseInt(_0x4e3270(0x118))/0x7+-parseInt(_0x4e3270(0x133))/0x8*(parseInt(_0x4e3270(0x12f))/0x9)+-parseInt(_0x4e3270(0x11d))/0xa+-parseInt(_0x4e3270(0x116))/0xb*(-parseInt(_0x4e3270(0x119))/0xc);if(_0x20b782===_0x577466)break;else _0x40b14c['push'](_0x40b14c['shift']());}catch(_0x51e299){_0x40b14c['push'](_0x40b14c['shift']());}}}(a253_0xc508,0x5cfdc));function a253_0xc508(){const _0x41b15a=['9wtZIrd','windsurf','.qoder/skills/lovrabet/SKILL.md','1602ziUTbX','1904248iEXGrg','240xAwASy','Antigravity','Claude\x20Code','CodeBuddy','.codex','opencode','.cline','qoder','cline','Codex','.cursor/skills/rabetbase.md','claude','78KxMGhP','512TGQrKx','Windsurf\x20IDE','.trae/skills/lovrabet/SKILL.md','OpenCode','Cursor','SKILL.md.tpl','Trae','.agent','24205WBnpZm','.claude/skills/lovrabet/SKILL.md','Cursor\x20IDE','539DGmbdY','codebuddy','772611tcDMpa','178884EfvYsh','file','Windsurf','codex','4248390GARvIH','.qoder/rules/rabetbase.md','OpenCode\x20IDE','31880fBpicK','.trae','trae','.codex/skills/lovrabet/SKILL.md','Qoder','.windsurf/workflows/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','CodeBuddy\x20IDE','cursor','其他\x20(通用模板)','agent','Cline','Codex\x20IDE','Antigravity\x20IDE','.claude'];a253_0xc508=function(){return _0x41b15a;};return a253_0xc508();}export const CORE_IDE_CONFIGS={'cursor':{'name':a253_0x3f9b5c(0x10f),'description':a253_0x3f9b5c(0x115),'folders':['.cursorrules','.cursor'],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x13e),'template':a253_0x3f9b5c(0x110)}]},'windsurf':{'name':a253_0x3f9b5c(0x11b),'description':a253_0x3f9b5c(0x10c),'folders':['.windsurf'],'files':[{'type':'file','path':a253_0x3f9b5c(0x125),'template':a253_0x3f9b5c(0x110)}]},'claude':{'name':'Claude\x20Code','description':a253_0x3f9b5c(0x136),'folders':[a253_0x3f9b5c(0x12e)],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x114),'template':a253_0x3f9b5c(0x110)}]},'cline':{'name':a253_0x3f9b5c(0x12b),'description':'Cline\x20IDE','folders':[a253_0x3f9b5c(0x13a)],'files':[{'type':'file','path':'.cline/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]},'codex':{'name':a253_0x3f9b5c(0x13d),'description':a253_0x3f9b5c(0x12c),'folders':[a253_0x3f9b5c(0x138)],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x123),'template':'SKILL.md.tpl'}]},'opencode':{'name':a253_0x3f9b5c(0x10e),'description':a253_0x3f9b5c(0x11f),'folders':['.opencode'],'files':[{'type':a253_0x3f9b5c(0x11a),'path':'.opencode/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]},'qoder':{'name':a253_0x3f9b5c(0x124),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a253_0x3f9b5c(0x11e),'template':a253_0x3f9b5c(0x110)},{'type':'file','path':a253_0x3f9b5c(0x131),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a253_0x3f9b5c(0x137),'description':a253_0x3f9b5c(0x127),'folders':['.codebuddy'],'files':[{'type':a253_0x3f9b5c(0x11a),'path':a253_0x3f9b5c(0x126),'template':a253_0x3f9b5c(0x110)}]},'trae':{'name':a253_0x3f9b5c(0x111),'description':'Trae\x20IDE','folders':[a253_0x3f9b5c(0x121)],'files':[{'type':'file','path':a253_0x3f9b5c(0x10d),'template':a253_0x3f9b5c(0x110)}]}};function a253_0x4aa6(_0x4ebdcb,_0x25ab0e){_0x4ebdcb=_0x4ebdcb-0x10c;const _0xc50883=a253_0xc508();let _0x4aa6a5=_0xc50883[_0x4ebdcb];return _0x4aa6a5;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a253_0x3f9b5c(0x129),'description':'通用模板\x20-\x20兜底方案','folders':[a253_0x3f9b5c(0x112)],'files':[{'type':'file','path':'.agent/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]},'antigravity':{'name':a253_0x3f9b5c(0x135),'description':a253_0x3f9b5c(0x12d),'folders':[a253_0x3f9b5c(0x112)],'files':[{'type':a253_0x3f9b5c(0x11a),'path':'.agent/skills/lovrabet/SKILL.md','template':a253_0x3f9b5c(0x110)}]}};export const CORE_IDE_LIST=[a253_0x3f9b5c(0x13f),a253_0x3f9b5c(0x13c),a253_0x3f9b5c(0x117),a253_0x3f9b5c(0x11c),a253_0x3f9b5c(0x128),'opencode',a253_0x3f9b5c(0x13b),a253_0x3f9b5c(0x122),a253_0x3f9b5c(0x130)];export const IDE_LIST=['antigravity','claude',a253_0x3f9b5c(0x13c),a253_0x3f9b5c(0x117),a253_0x3f9b5c(0x11c),a253_0x3f9b5c(0x128),a253_0x3f9b5c(0x139),'qoder',a253_0x3f9b5c(0x122),a253_0x3f9b5c(0x130),a253_0x3f9b5c(0x12a)];export const ALL_CORE_IDES=[a253_0x3f9b5c(0x128),a253_0x3f9b5c(0x130),'claude',a253_0x3f9b5c(0x13c),a253_0x3f9b5c(0x11c),a253_0x3f9b5c(0x139),a253_0x3f9b5c(0x13b),'codebuddy',a253_0x3f9b5c(0x122)];
|