@lovrabet/rabetbase-cli 2.3.15 → 2.3.16-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- 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 -0
- 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 -0
- package/lib/commands/kb/delete.js +1 -0
- package/lib/commands/kb/detail.js +1 -0
- package/lib/commands/kb/index.js +1 -0
- package/lib/commands/kb/list.js +1 -0
- package/lib/commands/kb/shared.js +1 -0
- package/lib/commands/kb/update.js +1 -0
- 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/init.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/save.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 -0
- package/lib/commands/tenant/members-list.js +1 -0
- package/lib/commands/tenant/shared.js +1 -0
- 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 -0
- 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 +2 -2
- package/lib/commands/app/add.js +0 -1
- package/lib/commands/app/remove.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x207821,_0x4a6a2e){const _0x787b68=a241_0x5092,_0x38abc7=_0x207821();while(!![]){try{const _0x4ef526=-parseInt(_0x787b68(0xe8))/0x1*(parseInt(_0x787b68(0xe7))/0x2)+-parseInt(_0x787b68(0xe6))/0x3*(parseInt(_0x787b68(0xdf))/0x4)+parseInt(_0x787b68(0xe0))/0x5+-parseInt(_0x787b68(0xe3))/0x6+-parseInt(_0x787b68(0xe4))/0x7*(-parseInt(_0x787b68(0xde))/0x8)+-parseInt(_0x787b68(0xe1))/0x9+parseInt(_0x787b68(0xe2))/0xa;if(_0x4ef526===_0x4a6a2e)break;else _0x38abc7['push'](_0x38abc7['shift']());}catch(_0x492c1a){_0x38abc7['push'](_0x38abc7['shift']());}}}(a241_0x5e92,0x67006));function a241_0x5092(_0x4e8ce9,_0x50f047){_0x4e8ce9=_0x4e8ce9-0xde;const _0x5e92b7=a241_0x5e92();let _0x509216=_0x5e92b7[_0x4e8ce9];return _0x509216;}import{buildSchemaPayload as a241_0xbb48c9}from'@lovrabet/cli-framework';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';function a241_0x5e92(){const _0x4cf454=['677552QkeWTl','1605465fHiBJs','7242075bnTcVa','26515780dBiuRi','4826400NVPNUW','2184nGmvnp','../commands/registry.js','12WMlhjA','346036GnLebA','3OsyxwV','6536vSYlyz'];a241_0x5e92=function(){return _0x4cf454;};return a241_0x5e92();}export async function buildSchemaPayload(){const _0x1fee70=a241_0x5092,{serviceRegistry:_0xf784fd,findDefinition:_0x3ce37f}=await import(_0x1fee70(0xe5));return a241_0xbb48c9({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xf784fd,'buildAllFlags':buildAllFlags,'findDefinition':_0x3ce37f});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x420dbe,_0x57ec91){var _0x489533=a242_0x2af9,_0x234dc6=_0x420dbe();while(!![]){try{var _0x186836=-parseInt(_0x489533(0xaa))/0x1+-parseInt(_0x489533(0xae))/0x2*(-parseInt(_0x489533(0xaf))/0x3)+-parseInt(_0x489533(0xb0))/0x4*(-parseInt(_0x489533(0xa9))/0x5)+-parseInt(_0x489533(0xab))/0x6+parseInt(_0x489533(0xad))/0x7+-parseInt(_0x489533(0xb2))/0x8*(parseInt(_0x489533(0xac))/0x9)+parseInt(_0x489533(0xb1))/0xa;if(_0x186836===_0x57ec91)break;else _0x234dc6['push'](_0x234dc6['shift']());}catch(_0x403c89){_0x234dc6['push'](_0x234dc6['shift']());}}}(a242_0x2bc5,0x5e54d));function a242_0x2bc5(){var _0x157515=['136IgsCUg','6277460fovYkX','263632LctvaK','48245fHiRvc','108335OoNHDB','3054570bktvEx','90TcFEPL','780556FOOkMA','532062qflVRs','3eENOgk'];a242_0x2bc5=function(){return _0x157515;};return a242_0x2bc5();}function a242_0x2af9(_0x2b6c2c,_0x349950){_0x2b6c2c=_0x2b6c2c-0xa9;var _0x2bc50c=a242_0x2bc5();var _0x2af97a=_0x2bc50c[_0x2b6c2c];return _0x2af97a;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a243_0x4f1f26=a243_0x5b42;function a243_0x5ed1(){const _0xd47fff=['140320UBideN','9333ZczZVU','856373paTkOx','100vMZUsI','v2.3.16-beta.2','855eiQiAA','2932ITPcwW','73480xXfcMv','1814208DhbaUM','6bWXwHK','2.3.16-beta.2','64113ShmlqW'];a243_0x5ed1=function(){return _0xd47fff;};return a243_0x5ed1();}(function(_0x411cad,_0x49512e){const _0x4a184d=a243_0x5b42,_0x9047b7=_0x411cad();while(!![]){try{const _0x46f6e1=-parseInt(_0x4a184d(0x17a))/0x1+parseInt(_0x4a184d(0x175))/0x2+-parseInt(_0x4a184d(0x179))/0x3+parseInt(_0x4a184d(0x174))/0x4*(parseInt(_0x4a184d(0x173))/0x5)+-parseInt(_0x4a184d(0x177))/0x6*(parseInt(_0x4a184d(0x17c))/0x7)+parseInt(_0x4a184d(0x176))/0x8+-parseInt(_0x4a184d(0x17b))/0x9*(-parseInt(_0x4a184d(0x171))/0xa);if(_0x46f6e1===_0x49512e)break;else _0x9047b7['push'](_0x9047b7['shift']());}catch(_0x1cd6d8){_0x9047b7['push'](_0x9047b7['shift']());}}}(a243_0x5ed1,0x1c1ff));function a243_0x5b42(_0x16f1e0,_0x19b96c){_0x16f1e0=_0x16f1e0-0x171;const _0x5ed17d=a243_0x5ed1();let _0x5b4282=_0x5ed17d[_0x16f1e0];return _0x5b4282;}export const VERSION=a243_0x4f1f26(0x178);export const GIT_TAG=a243_0x4f1f26(0x172);export const GIT_COMMIT='9ab578e';export const BUILD_TIME='2026-08-10T05:41:09.292Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a244_0x4149(){var _0x27fe02=['8114015RvSPFn','105899CFizfF','145HNLxkb','5441216nkyvdN','250hLUkdi','10551vTpwRU','bold','log','\x20--help','447048zCqZxg','\x20\x20Use\x20','green','2102464nIhuhb','166152fkYgtV','20IZvAhC','296CKrYvU'];a244_0x4149=function(){return _0x27fe02;};return a244_0x4149();}(function(_0x1d5fac,_0x42bc83){var _0x7b5480=a244_0x3144,_0x221e81=_0x1d5fac();while(!![]){try{var _0x59df97=parseInt(_0x7b5480(0x13f))/0x1*(parseInt(_0x7b5480(0x13c))/0x2)+parseInt(_0x7b5480(0x143))/0x3*(-parseInt(_0x7b5480(0x13d))/0x4)+-parseInt(_0x7b5480(0x140))/0x5*(-parseInt(_0x7b5480(0x13b))/0x6)+parseInt(_0x7b5480(0x13e))/0x7+-parseInt(_0x7b5480(0x13a))/0x8+parseInt(_0x7b5480(0x147))/0x9*(-parseInt(_0x7b5480(0x142))/0xa)+-parseInt(_0x7b5480(0x141))/0xb;if(_0x59df97===_0x42bc83)break;else _0x221e81['push'](_0x221e81['shift']());}catch(_0x3c4875){_0x221e81['push'](_0x221e81['shift']());}}}(a244_0x4149,0xb9f51));import a244_0x4fb955 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a244_0x3144(_0x4bbd88,_0x15fbec){_0x4bbd88=_0x4bbd88-0x139;var _0x414928=a244_0x4149();var _0x3144bb=_0x414928[_0x4bbd88];return _0x3144bb;}export function showHelp(){var _0x55356b=a244_0x3144;console[_0x55356b(0x145)](),console[_0x55356b(0x145)](a244_0x4fb955[_0x55356b(0x139)][_0x55356b(0x144)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x55356b(0x145)](),console[_0x55356b(0x145)](_0x55356b(0x148)+a244_0x4fb955['green'][_0x55356b(0x144)](CLI_BIN_NAME+_0x55356b(0x146))+'\x20to\x20view\x20available\x20commands.'),console['log']();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d7f1c,_0x431dab){const _0x58496e=a245_0x9adf,_0x4fe90a=_0x2d7f1c();while(!![]){try{const _0x1fb285=-parseInt(_0x58496e(0x155))/0x1+-parseInt(_0x58496e(0x144))/0x2+-parseInt(_0x58496e(0x143))/0x3+-parseInt(_0x58496e(0x160))/0x4+parseInt(_0x58496e(0x149))/0x5+parseInt(_0x58496e(0x148))/0x6+parseInt(_0x58496e(0x157))/0x7*(parseInt(_0x58496e(0x147))/0x8);if(_0x1fb285===_0x431dab)break;else _0x4fe90a['push'](_0x4fe90a['shift']());}catch(_0x1d1f85){_0x4fe90a['push'](_0x4fe90a['shift']());}}}(a245_0x4f3f,0xee31a));function a245_0x4f3f(){const _0xd4038c=['1507507ZbJJYf','replace','18866869uHqkrl','length','\x20cli-skill\x20install\x0a\x0aEquivalent\x20command:\x20','dangerously-bff-save','from','setLogPath','log','push','add','678144tsNsPJ','skill','help','5574258mEeDOX','1165810sggUMb','\x20cli-skill\x20install\x20\x20\x20\x20\x20\x20\x20#\x20Install\x20CLI\x20Built-in\x20Skill','slice','8afbSsD','3542952SjJgFg','9039585VbKkDl','enable-bff-save','--help','exit','includes','Error:\x20Unsupported\x20command:\x20','\x0aAvailable\x20commands:','\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/rabetbase/guides/.\x0a','(empty)','不支持的命令:\x20','argv','error'];a245_0x4f3f=function(){return _0xd4038c;};return a245_0x4f3f();}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(_0x30ce5b){const _0x3e4859=a245_0x9adf,_0x240d29=[];for(const [_0x1f81a3,_0x1c58bd]of Object['entries'](_0x30ce5b)){if(_0x1c58bd===!![]){const _0x35973a=_0x1f81a3[_0x3e4859(0x156)](/([A-Z])/g,'-$1')['toLowerCase']();_0x240d29[_0x3e4859(0x15e)](_0x35973a);}}return _0x240d29;}export function parseDynamicFlags(){const _0x2cd3cd=a245_0x9adf,_0x3f1b70=[];for(let _0x5b4b5d=0x3;_0x5b4b5d<process[_0x2cd3cd(0x153)][_0x2cd3cd(0x158)];_0x5b4b5d++){const _0x1ce2a8=process[_0x2cd3cd(0x153)][_0x5b4b5d];if(_0x1ce2a8&&_0x1ce2a8['startsWith']('--')){const _0x2c308f=_0x1ce2a8[_0x2cd3cd(0x146)](0x2);_0x2c308f&&!_0x2c308f[_0x2cd3cd(0x14d)]('=')&&_0x3f1b70[_0x2cd3cd(0x15e)](_0x2c308f);}}return _0x3f1b70;}export function getAllProvidedFlags(_0x1312a4){const _0x5b00c7=a245_0x9adf,_0x174e94=camelCaseFlagsToKebab(_0x1312a4),_0x150ea8=parseDynamicFlags(),_0x350f41=new Set([..._0x174e94,..._0x150ea8]);return Array[_0x5b00c7(0x15b)](_0x350f41);}function a245_0x9adf(_0x22d9c1,_0xcd6b58){_0x22d9c1=_0x22d9c1-0x143;const _0x4f3f82=a245_0x4f3f();let _0x9adf06=_0x4f3f82[_0x22d9c1];return _0x9adf06;}export function normalizeLegacyBffSaveFlags(_0x2e2e26){const _0x2fba40=a245_0x9adf,_0x28627b=new Set(_0x2e2e26);return _0x28627b['has'](_0x2fba40(0x15a))&&_0x28627b[_0x2fba40(0x15f)](_0x2fba40(0x14a)),Array['from'](_0x28627b);}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x4e7b6e,_0xd65cfc,_0xde14e2){const _0x4a1848=a245_0x9adf;logger[_0x4a1848(0x15c)](process['cwd']());if(_0xde14e2?.[_0x4a1848(0x162)]||_0x4e7b6e===_0x4a1848(0x14b)){showHelp();return;}console[_0x4a1848(0x154)](_0x4a1848(0x14e)+(_0x4e7b6e||_0x4a1848(0x151))),console[_0x4a1848(0x15d)](_0x4a1848(0x14f)),console[_0x4a1848(0x15d)]('\x20\x20'+CLI_BIN_NAME+_0x4a1848(0x145)),console[_0x4a1848(0x15d)](''),console[_0x4a1848(0x15d)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger['error'](_0x4a1848(0x161),_0x4a1848(0x152)+_0x4e7b6e),process[_0x4a1848(0x14c)](0x1);}function showHelp(){const _0x2fd62f=a245_0x9adf;console[_0x2fd62f(0x15d)]('\x0aRabetbase\x20CLI\x20Skill\x20-\x20Developer\x20Workflow\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x2fd62f(0x159)+SKILLS_INSTALL_COMMAND_LINE+_0x2fd62f(0x150));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a246_0x2c9e31=a246_0x1af0;function a246_0x1af0(_0x1f6e67,_0x28a3e6){_0x1f6e67=_0x1f6e67-0x111;const _0x14fbaf=a246_0x14fb();let _0x1af082=_0x14fbaf[_0x1f6e67];return _0x1af082;}(function(_0x5f238d,_0x1b2778){const _0x5c052b=a246_0x1af0,_0x36e0f5=_0x5f238d();while(!![]){try{const _0x181eeb=parseInt(_0x5c052b(0x148))/0x1+parseInt(_0x5c052b(0x136))/0x2*(parseInt(_0x5c052b(0x13a))/0x3)+parseInt(_0x5c052b(0x115))/0x4*(-parseInt(_0x5c052b(0x146))/0x5)+-parseInt(_0x5c052b(0x12c))/0x6*(-parseInt(_0x5c052b(0x11c))/0x7)+parseInt(_0x5c052b(0x145))/0x8*(parseInt(_0x5c052b(0x14f))/0x9)+-parseInt(_0x5c052b(0x119))/0xa*(-parseInt(_0x5c052b(0x123))/0xb)+-parseInt(_0x5c052b(0x134))/0xc;if(_0x181eeb===_0x1b2778)break;else _0x36e0f5['push'](_0x36e0f5['shift']());}catch(_0x3e1c57){_0x36e0f5['push'](_0x36e0f5['shift']());}}}(a246_0x14fb,0x67200));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=a246_0x2c9e31(0x127);export const NPX_SKILLS_SUBCOMMAND_ADD=a246_0x2c9e31(0x132);export const NPX_SKILLS_FLAG_SKILL=a246_0x2c9e31(0x14a);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a246_0x2c9e31(0x131);export const DEFAULT_RABETBASE_SKILL_NAME=a246_0x2c9e31(0x13b);export const RABETBASE_GLOBAL_SKILL_NAME=a246_0x2c9e31(0x141);export const RABETBASE_SKILL_GIT_SOURCE=a246_0x2c9e31(0x14c);export function resolveGlobalSkillName(_0xa9782d){const _0x57fbbb=a246_0x2c9e31;switch(_0xa9782d[_0x57fbbb(0x13c)]()){case RABETBASE_SKILL_SOURCE:case RABETBASE_SKILL_GIT_SOURCE:return RABETBASE_GLOBAL_SKILL_NAME;default:return undefined;}}export function buildNpxSkillsAddArgv(_0x584439){const _0x4ddfd7=a246_0x2c9e31,_0x208b6f=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x584439&&_0x208b6f[_0x4ddfd7(0x130)](NPX_SKILLS_FLAG_SKILL,_0x584439),_0x208b6f;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a246_0x2c9e31(0x113),...buildNpxSkillsAddArgv()][a246_0x2c9e31(0x135)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a246_0x2c9e31(0x113),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a246_0x2c9e31(0x135)]('\x20');const CHILD_OUTPUT_MAX_BUFFER=0x10*0x400*0x400;function failure(_0x556741,_0x85df38,_0x430101){return{'ok':![],'status':_0x85df38,'code':_0x556741,'error':'['+_0x556741+']\x20'+_0x430101};}function spawnOptions(_0x25c941,_0x161a24){const _0x602c5e=a246_0x2c9e31;return{'cwd':_0x25c941,'stdio':_0x161a24,'env':process.env,'shell':![],..._0x161a24===_0x602c5e(0x14d)?{'maxBuffer':CHILD_OUTPUT_MAX_BUFFER}:{}};}function normalizeSpawnResult(_0x2441cb,_0x4435e0,_0x884e81,_0x40b544){const _0x539199=a246_0x2c9e31,_0x405d6a=[_0x2441cb[_0x539199(0x114)]?_0x2441cb[_0x539199(0x114)][_0x539199(0x12e)]():'',_0x2441cb[_0x539199(0x12a)]?_0x2441cb[_0x539199(0x12a)][_0x539199(0x12e)]():''][_0x539199(0x11d)](Boolean)['join']('\x0a')[_0x539199(0x13c)]();_0x40b544!=='pipe'&&_0x405d6a&&console[_0x539199(0x133)](_0x405d6a);if(_0x2441cb[_0x539199(0x126)]){const _0x53160b=_0x2441cb['error'],_0x1b2c0a=_0x53160b[_0x539199(0x11f)]===_0x539199(0x12f)?_0x539199(0x11b):_0x53160b[_0x539199(0x11f)]===_0x539199(0x116)||_0x53160b[_0x539199(0x11f)]===_0x539199(0x13f)?_0x539199(0x142):_0x539199(0x121);return failure(_0x1b2c0a,_0x2441cb[_0x539199(0x118)],_0x53160b['message']);}if(_0x2441cb[_0x539199(0x137)])return failure(_0x539199(0x140),_0x2441cb[_0x539199(0x118)],_0x539199(0x14b)+_0x2441cb[_0x539199(0x137)]);if(_0x2441cb[_0x539199(0x118)]!==0x0)return failure(_0x539199(0x138),_0x2441cb[_0x539199(0x118)],_0x405d6a||'exit\x20'+(_0x2441cb[_0x539199(0x118)]??_0x539199(0x149)));const _0x45c508=_0x405d6a[_0x539199(0x125)](/Failed to install\s+(\d+)/i);if(_0x45c508&&Number(_0x45c508[0x1])>0x0)return failure(_0x539199(0x122),0x0,_0x539199(0x147)+_0x45c508[0x1]+_0x539199(0x139)+(_0x405d6a?':\x0a'+_0x405d6a:''));if(_0x4435e0){const _0x3cf2a4=resolveInstalledSkill(_0x4435e0,_0x884e81);if(_0x3cf2a4['state']===_0x539199(0x11e))return failure(_0x539199(0x129),0x0,_0x539199(0x117)+_0x4435e0+_0x539199(0x11a)+_0x3cf2a4[_0x539199(0x111)][_0x539199(0x135)](',\x20')+')');_0x3cf2a4[_0x539199(0x112)]===_0x539199(0x13d)&&console[_0x539199(0x14e)](_0x539199(0x124)+_0x4435e0+_0x539199(0x12d)+_0x3cf2a4[_0x539199(0x13e)]);}return{'ok':!![],'status':0x0};}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x4a388f,_0x4f9506){const _0x3e5ce0=a246_0x2c9e31;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x1010ae=_0x4f9506?.['stdio']??_0x3e5ce0(0x143),_0x527867=resolveNpmBin(_0x3e5ce0(0x113)),_0x2fb028=buildNpxSkillsAddArgv(_0x4f9506?.['skill']),_0x59a54c=[_0x3e5ce0(0x113),..._0x2fb028][_0x3e5ce0(0x135)]('\x20');console['log']('*\x20'+_0x59a54c);const _0x18e50c=spawnSync(_0x527867,_0x2fb028,spawnOptions(_0x4a388f,_0x1010ae));return normalizeSpawnResult(_0x18e50c,undefined,undefined,_0x1010ae);}function a246_0x14fb(){const _0x1e39ca=['CHILD_EXIT_NONZERO','\x20failed\x20target(s)','84XeGYwI','Lovrabet','trim','unverifiable','reason','EACCES','CHILD_TERMINATED','rabetbase','PERMISSION_DENIED','inherit','presence','5649888YfonbJ','5RovUKY','Installer\x20reported\x20','772392sYAdDB','unknown','--skill','npx\x20terminated\x20by\x20signal\x20','git@codeup.aliyun.com:yuntoo/open/rabetbase-cli.git','pipe','warn','9zOQXrr','skill','checked','state','npx','stdout','1356488ENgNyj','EPERM','Skill\x20\x22','status','1190MuuiOg','\x22\x20not\x20found\x20after\x20install\x20(checked\x20','NPX_NOT_FOUND','119KfdHoB','filter','absent','code','remove','SPAWN_FAILED','INSTALL_PARTIAL','4367BOyBJF','!\x20Could\x20not\x20verify\x20\x22','match','error','skills','stdio','SKILL_NOT_INSTALLED','stderr','yes','23970RuRhcv','\x22\x20install\x20state:\x20','toString','ENOENT','push','lovrabet/lovrabet-skill','add','log','13774560YvredH','join','22544qOgpaL','signal'];a246_0x14fb=function(){return _0x1e39ca;};return a246_0x14fb();}export function runNpxSkillsRemove(_0x561c02,_0x2ddadb,_0x254fcb=LEGACY_RABETBASE_SKILL_SOURCE){const _0x49d978=a246_0x2c9e31;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x294377=_0x2ddadb?.['stdio']??_0x49d978(0x143),_0x45294f=resolveNpmBin(_0x49d978(0x113)),_0x4a5a2d=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x49d978(0x120),_0x254fcb,NPX_SKILLS_FLAG_SKILL,_0x2ddadb?.[_0x49d978(0x150)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x2ddadb?.[_0x49d978(0x12b)]?['-y']:[]],_0x45fd71=[_0x45294f,..._0x4a5a2d][_0x49d978(0x135)]('\x20');console[_0x49d978(0x133)]('*\x20'+_0x45fd71);const _0x514d9d=spawnSync(_0x45294f,_0x4a5a2d,spawnOptions(_0x561c02,_0x294377));return normalizeSpawnResult(_0x514d9d,undefined,undefined,_0x294377);}export function runNpxSkillsAddGlobal(_0xa5b5f8,_0x4c2da0,_0x2f97cc){const _0x3cbcb5=a246_0x2c9e31;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0xc1ab1b=resolveNpmBin(_0x3cbcb5(0x113)),_0x4cd2a7=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4c2da0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x2c15f8=[_0x3cbcb5(0x113),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x4c2da0,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x3cbcb5(0x135)]('\x20');console[_0x3cbcb5(0x133)]('*\x20'+_0x2c15f8);const _0x2d0529=spawnSync(_0xc1ab1b,_0x4cd2a7,spawnOptions(_0xa5b5f8,'pipe'));return normalizeSpawnResult(_0x2d0529,resolveGlobalSkillName(_0x4c2da0),_0x2f97cc?.[_0x3cbcb5(0x144)],_0x2f97cc?.[_0x3cbcb5(0x128)]);}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a247_0x4fc2d8=a247_0xe9a5;(function(_0x56d942,_0x35716e){const _0x111353=a247_0xe9a5,_0x2e3455=_0x56d942();while(!![]){try{const _0x42cf1b=-parseInt(_0x111353(0x6a))/0x1*(-parseInt(_0x111353(0x72))/0x2)+parseInt(_0x111353(0x84))/0x3*(parseInt(_0x111353(0x6d))/0x4)+parseInt(_0x111353(0x83))/0x5+-parseInt(_0x111353(0x76))/0x6*(parseInt(_0x111353(0x6b))/0x7)+parseInt(_0x111353(0x69))/0x8+parseInt(_0x111353(0x79))/0x9*(-parseInt(_0x111353(0x78))/0xa)+-parseInt(_0x111353(0x75))/0xb;if(_0x42cf1b===_0x35716e)break;else _0x2e3455['push'](_0x2e3455['shift']());}catch(_0x1b5548){_0x2e3455['push'](_0x2e3455['shift']());}}}(a247_0x3519,0x41488));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const SKILL_LOCK_RELATIVE_PATH=join(a247_0x4fc2d8(0x7b),a247_0x4fc2d8(0x86));function a247_0x3519(){const _0x22fc79=['join','SKILL.md','\x20uses\x20unsupported\x20version\x20','parse','kind','number','message','1811504CNOshL','23IyPrlq','35juTEtJ','map','6964WswkZd','object','absent','present','recorded','32846MOIwfr','version','not-recorded','1881781rUMlbW','92982uozSHV','\x20records\x20\x22','230IiHecC','59175qVzGQP','reason','.agents','\x20has\x20no\x20skills\x20map','includes','lockFile','globalSkillsDirs','\x20is\x20unreadable:\x20','unverifiable','\x22\x20but\x20no\x20SKILL.md\x20was\x20found\x20in\x20known\x20layouts\x20','228020yMQLni','30teecdY','skills','.skill-lock.json','home','unusable','find'];a247_0x3519=function(){return _0x22fc79;};return a247_0x3519();}export const GLOBAL_SKILLS_DIR_RELATIVE_PATHS=[join(a247_0x4fc2d8(0x7b),a247_0x4fc2d8(0x85)),join('.claude','skills')];const SUPPORTED_LOCK_VERSIONS=[0x3];function readLockLookup(_0x774815,_0x3b5996){const _0x3fd09c=a247_0x4fc2d8;if(!existsSync(_0x774815))return{'kind':_0x3fd09c(0x74)};let _0x2a3376;try{_0x2a3376=JSON[_0x3fd09c(0x8d)](readFileSync(_0x774815,'utf8'));}catch(_0x122a8b){return{'kind':_0x3fd09c(0x88),'reason':_0x774815+_0x3fd09c(0x80)+_0x122a8b[_0x3fd09c(0x90)]};}const _0x45b711=_0x2a3376;if(typeof _0x45b711?.[_0x3fd09c(0x73)]!==_0x3fd09c(0x8f)||!SUPPORTED_LOCK_VERSIONS[_0x3fd09c(0x7d)](_0x45b711['version']))return{'kind':_0x3fd09c(0x88),'reason':_0x774815+_0x3fd09c(0x8c)+String(_0x45b711?.[_0x3fd09c(0x73)])};if(!_0x45b711[_0x3fd09c(0x85)]||typeof _0x45b711['skills']!==_0x3fd09c(0x6e))return{'kind':_0x3fd09c(0x88),'reason':_0x774815+_0x3fd09c(0x7c)};return _0x45b711[_0x3fd09c(0x85)][_0x3b5996]?{'kind':_0x3fd09c(0x71)}:{'kind':_0x3fd09c(0x74)};}function a247_0xe9a5(_0x5354ab,_0x12389d){_0x5354ab=_0x5354ab-0x69;const _0x351913=a247_0x3519();let _0xe9a59=_0x351913[_0x5354ab];return _0xe9a59;}export function resolveInstalledSkill(_0x1b7fa5,_0xf572a8){const _0x2033e8=a247_0x4fc2d8,_0x7ced59=_0xf572a8?.[_0x2033e8(0x87)]??homedir(),_0x1251c2=_0xf572a8?.[_0x2033e8(0x7f)]??GLOBAL_SKILLS_DIR_RELATIVE_PATHS['map'](_0x21685b=>join(_0x7ced59,_0x21685b)),_0x504a5a=_0xf572a8?.[_0x2033e8(0x7e)]??join(_0x7ced59,SKILL_LOCK_RELATIVE_PATH),_0xaacc78=_0x1251c2[_0x2033e8(0x6c)](_0xf3b06a=>join(_0xf3b06a,_0x1b7fa5,_0x2033e8(0x8b))),_0x229baa=_0xaacc78[_0x2033e8(0x89)](_0x31572a=>existsSync(_0x31572a));if(_0x229baa)return{'state':_0x2033e8(0x70),'path':_0x229baa};const _0x36d8ec=readLockLookup(_0x504a5a,_0x1b7fa5);if(_0x36d8ec[_0x2033e8(0x8e)]===_0x2033e8(0x88))return{'state':_0x2033e8(0x81),'reason':_0x36d8ec[_0x2033e8(0x7a)]};if(_0x36d8ec['kind']===_0x2033e8(0x71))return{'state':'unverifiable','reason':_0x504a5a+_0x2033e8(0x77)+_0x1b7fa5+_0x2033e8(0x82)+('('+_0xaacc78[_0x2033e8(0x8a)](',\x20')+')')};return{'state':_0x2033e8(0x6f),'checked':_0xaacc78};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a248_0x24b0(){const _0x7356c7=['stringify','81uimFSF','333xsenAz','1863588cjUuuQ','durationMs','251128nhAwdj','error','39632KyuSsU','3827887gJPzVR','some','entries','2205076liqrtD','message','command','[REDACTED]','rabetbase.command','1336440DiTYtn','386129LKDtbH'];a248_0x24b0=function(){return _0x7356c7;};return a248_0x24b0();}function a248_0xcb47(_0x119f37,_0x50002a){_0x119f37=_0x119f37-0x12c;const _0x24b05c=a248_0x24b0();let _0xcb47b3=_0x24b05c[_0x119f37];return _0xcb47b3;}(function(_0x3da193,_0x465605){const _0x353b6=a248_0xcb47,_0x28a5c5=_0x3da193();while(!![]){try{const _0xcdd7d7=parseInt(_0x353b6(0x13b))/0x1+parseInt(_0x353b6(0x131))/0x2*(-parseInt(_0x353b6(0x13d))/0x3)+parseInt(_0x353b6(0x135))/0x4+-parseInt(_0x353b6(0x13a))/0x5+-parseInt(_0x353b6(0x12d))/0x6+-parseInt(_0x353b6(0x132))/0x7+parseInt(_0x353b6(0x12f))/0x8*(parseInt(_0x353b6(0x12c))/0x9);if(_0xcdd7d7===_0x465605)break;else _0x28a5c5['push'](_0x28a5c5['shift']());}catch(_0x44edb5){_0x28a5c5['push'](_0x28a5c5['shift']());}}}(a248_0x24b0,0x6b342));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(_0x41bb41){const _0x30001f=a248_0xcb47;return SENSITIVE_PATTERNS[_0x30001f(0x133)](_0x46c580=>_0x46c580['test'](_0x41bb41));}function sanitizeFlags(_0x5078b7){const _0x1cab8a=a248_0xcb47,_0x100411={};for(const [_0x40b0c0,_0x1c481e]of Object[_0x1cab8a(0x134)](_0x5078b7)){isSensitiveKey(_0x40b0c0)?_0x100411[_0x40b0c0]=_0x1c481e!=null&&_0x1c481e!==''?_0x1cab8a(0x138):_0x1c481e:_0x100411[_0x40b0c0]=_0x1c481e;}return _0x100411;}export async function reportCommandTrace(_0x9ff96f){const _0x29bd75=a248_0xcb47;try{const _0x54cdcf=sanitizeFlags(_0x9ff96f['flags']);await sendCliTraceLog({'spanName':_0x29bd75(0x139),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x9ff96f['service'],'command.name':_0x9ff96f[_0x29bd75(0x137)],'command.flags':JSON[_0x29bd75(0x13c)](_0x54cdcf),..._0x9ff96f[_0x29bd75(0x12e)]!=null?{'command.duration_ms':_0x9ff96f[_0x29bd75(0x12e)]}:{},..._0x9ff96f[_0x29bd75(0x130)]?{'command.error':_0x9ff96f[_0x29bd75(0x130)]instanceof Error?_0x9ff96f[_0x29bd75(0x130)][_0x29bd75(0x136)]:String(_0x9ff96f[_0x29bd75(0x130)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a249_0x296c(_0x4badbe,_0x2c46f4){_0x4badbe=_0x4badbe-0xae;var _0x211660=a249_0x2116();var _0x296c6b=_0x211660[_0x4badbe];return _0x296c6b;}(function(_0x296336,_0x1cbcda){var _0x399338=a249_0x296c,_0x340b43=_0x296336();while(!![]){try{var _0x84f281=parseInt(_0x399338(0xb2))/0x1*(parseInt(_0x399338(0xba))/0x2)+-parseInt(_0x399338(0xb0))/0x3+parseInt(_0x399338(0xb3))/0x4*(parseInt(_0x399338(0xb7))/0x5)+parseInt(_0x399338(0xb5))/0x6+parseInt(_0x399338(0xaf))/0x7+parseInt(_0x399338(0xae))/0x8+parseInt(_0x399338(0xbb))/0x9*(-parseInt(_0x399338(0xb8))/0xa);if(_0x84f281===_0x1cbcda)break;else _0x340b43['push'](_0x340b43['shift']());}catch(_0x59d132){_0x340b43['push'](_0x340b43['shift']());}}}(a249_0x2116,0xe42d6));function a249_0x2116(){var _0x1c7350=['6816096TeiHVC','2533118oDdTPX','2506173JcjOyD','error','1ZpTJFV','3012316elmLIM','service','1764546DUoEnN','cli.help','5gWXcvj','430ODXlvO','Failed\x20to\x20report\x20CLI\x20help\x20trace:','768342asguIV','183186KwMOci'];a249_0x2116=function(){return _0x1c7350;};return a249_0x2116();}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x51b216,_0x430aa3){var _0xc95944=a249_0x296c;try{await sendCliTraceLog({'spanName':_0xc95944(0xb6),'logData':{'rabetbase.help.kind':_0x51b216,..._0x430aa3?.[_0xc95944(0xb4)]&&{'rabetbase.help.service':_0x430aa3[_0xc95944(0xb4)]}}});}catch(_0x16aa74){console[_0xc95944(0xb1)](_0xc95944(0xb9),_0x16aa74);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a542e,_0xef81d3){const _0x209b75=a250_0x1fcf,_0x298786=_0x1a542e();while(!![]){try{const _0x5dbf53=-parseInt(_0x209b75(0x141))/0x1*(-parseInt(_0x209b75(0x135))/0x2)+-parseInt(_0x209b75(0x140))/0x3+parseInt(_0x209b75(0x13c))/0x4+-parseInt(_0x209b75(0x139))/0x5+-parseInt(_0x209b75(0x137))/0x6+parseInt(_0x209b75(0x13f))/0x7*(parseInt(_0x209b75(0x13a))/0x8)+parseInt(_0x209b75(0x144))/0x9;if(_0x5dbf53===_0xef81d3)break;else _0x298786['push'](_0x298786['shift']());}catch(_0x32a3a7){_0x298786['push'](_0x298786['shift']());}}}(a250_0x5aeb,0x39712));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a250_0x5aeb(){const _0x4e0e4f=['user','1359236YbcjYV','production','username','210YVcgjo','241323evrJiw','19tMyxeM','tenant','email','1141605bhMgGi','8998jQfuUL','tenant_code','2192412yjeumf','daily','911900tvNVHv','83032Gxqjuo'];a250_0x5aeb=function(){return _0x4e0e4f;};return a250_0x5aeb();}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';function a250_0x1fcf(_0x484888,_0x5f0740){_0x484888=_0x484888-0x135;const _0x5aeb02=a250_0x5aeb();let _0x1fcf0f=_0x5aeb02[_0x484888];return _0x1fcf0f;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x5be8ba=a250_0x1fcf,_0x148a2c=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x5a78a4=_0x148a2c?.[_0x5be8ba(0x13b)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!=='unknown'?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x5be8ba(0x138):_0x5be8ba(0x13d))}),setUserContext({'id':_0x5a78a4?.['id'],'username':_0x5a78a4?.[_0x5be8ba(0x13e)],'nickname':_0x5a78a4?.['nickname'],'email':_0x5a78a4?.[_0x5be8ba(0x143)],'tenantCode':_0x5a78a4?.[_0x5be8ba(0x142)]?.[_0x5be8ba(0x136)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x148a2c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f827a,_0x47fe98){const _0x423d26=a251_0x3519,_0x55d0d0=_0x1f827a();while(!![]){try{const _0x50a10b=-parseInt(_0x423d26(0x1a9))/0x1*(-parseInt(_0x423d26(0x1a1))/0x2)+parseInt(_0x423d26(0x1a0))/0x3*(parseInt(_0x423d26(0x19e))/0x4)+-parseInt(_0x423d26(0x1a3))/0x5*(parseInt(_0x423d26(0x19b))/0x6)+-parseInt(_0x423d26(0x1a8))/0x7+parseInt(_0x423d26(0x19c))/0x8+parseInt(_0x423d26(0x1a6))/0x9+-parseInt(_0x423d26(0x19f))/0xa;if(_0x50a10b===_0x47fe98)break;else _0x55d0d0['push'](_0x55d0d0['shift']());}catch(_0x3652d2){_0x55d0d0['push'](_0x55d0d0['shift']());}}}(a251_0x4fa0,0x6ec3a));import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;function a251_0x3519(_0x4c8dd8,_0x454af4){_0x4c8dd8=_0x4c8dd8-0x19b;const _0x4fa0e7=a251_0x4fa0();let _0x3519a3=_0x4fa0e7[_0x4c8dd8];return _0x3519a3;}export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3c64a6=a251_0x3519;process[_0x3c64a6(0x1a7)](_0x3c64a6(0x19d),()=>{void flushOtelNodeIfUsed();});const _0x596cca=()=>{const _0x36f426=_0x3c64a6;void flushOtelNodeIfUsed()['then'](()=>process[_0x36f426(0x1a4)](0x0));};process[_0x3c64a6(0x1a7)](_0x3c64a6(0x1a2),_0x596cca),process['once'](_0x3c64a6(0x1a5),_0x596cca);}function a251_0x4fa0(){const _0x33cebc=['SIGTERM','4876767XHvafY','once','1085770xpeXWz','73791qDzoVd','1295304tgIMAv','5009456tOAsqO','beforeExit','254292fJZuDL','3284140EIbCtR','6NnTubi','2mIHQah','SIGINT','10aFGWTn','exit'];a251_0x4fa0=function(){return _0x33cebc;};return a251_0x4fa0();}export async function exitWithOtelShutdown(_0x2854cb){await flushOtelNodeIfUsed(),process['exit'](_0x2854cb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a252_0x409f60=a252_0x1522;(function(_0x492be0,_0x4914ea){const _0x3cfcd9=a252_0x1522,_0x4c7378=_0x492be0();while(!![]){try{const _0xddc7cb=-parseInt(_0x3cfcd9(0x7b))/0x1+parseInt(_0x3cfcd9(0x6b))/0x2*(-parseInt(_0x3cfcd9(0x71))/0x3)+parseInt(_0x3cfcd9(0x6d))/0x4+-parseInt(_0x3cfcd9(0x7a))/0x5*(-parseInt(_0x3cfcd9(0x79))/0x6)+-parseInt(_0x3cfcd9(0x7c))/0x7*(parseInt(_0x3cfcd9(0x74))/0x8)+-parseInt(_0x3cfcd9(0x6e))/0x9*(-parseInt(_0x3cfcd9(0x76))/0xa)+parseInt(_0x3cfcd9(0x72))/0xb*(-parseInt(_0x3cfcd9(0x78))/0xc);if(_0xddc7cb===_0x4914ea)break;else _0x4c7378['push'](_0x4c7378['shift']());}catch(_0x457879){_0x4c7378['push'](_0x4c7378['shift']());}}}(a252_0x13ff,0x2e8aa));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a252_0x13ff(){const _0x2badea=['2cXoJnC','manual','1467064iFiloQ','153IdybnU','spanName','traceparent','558447zLIBSR','11uejeEt','rabetbase-cli','32HhGatK','version','125070XwIeeN','traceName','3581844aFxgOq','570492zbnUBY','20LLpdAA','215479eBxjyb','120687dYFhbv','logData'];a252_0x13ff=function(){return _0x2badea;};return a252_0x13ff();}function a252_0x1522(_0x22d37c,_0x3733d9){_0x22d37c=_0x22d37c-0x6a;const _0x13fffa=a252_0x13ff();let _0x15229e=_0x13fffa[_0x22d37c];return _0x15229e;}import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a252_0x409f60(0x73);export async function sendCliTraceLog(_0x5d42cf){const _0x56895b=a252_0x409f60;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x5d42cf[_0x56895b(0x77)]??DEFAULT_TRACE_NAME,'version':_0x5d42cf[_0x56895b(0x75)]??getCliVersion(),'spanName':_0x5d42cf[_0x56895b(0x6f)],'eventType':_0x56895b(0x6c),'logData':_0x5d42cf[_0x56895b(0x6a)],..._0x5d42cf[_0x56895b(0x70)]&&{'traceparent':_0x5d42cf[_0x56895b(0x70)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a253_0x1bcb4c=a253_0x3d73;function a253_0x2f80(){const _0x41f89e=['redactionCount','12609750lunRUi','issue.log.collect','664318CVJART','sanitize','42EaTUOP','28021TGtwQK','1530822ZoCXXS','1bpqojN','platform-issue-log-collect','919072lIZuEP','108415LYQixp','join','4yqjwXi','description','615060uquuxV','title'];a253_0x2f80=function(){return _0x41f89e;};return a253_0x2f80();}(function(_0x4bc1eb,_0x595dd1){const _0x4b6d48=a253_0x3d73,_0x34e039=_0x4bc1eb();while(!![]){try{const _0x42d149=-parseInt(_0x4b6d48(0xef))/0x1*(parseInt(_0x4b6d48(0xea))/0x2)+-parseInt(_0x4b6d48(0xee))/0x3+-parseInt(_0x4b6d48(0xf4))/0x4*(parseInt(_0x4b6d48(0xf2))/0x5)+parseInt(_0x4b6d48(0xec))/0x6*(-parseInt(_0x4b6d48(0xed))/0x7)+parseInt(_0x4b6d48(0xf1))/0x8+-parseInt(_0x4b6d48(0xe5))/0x9+parseInt(_0x4b6d48(0xe8))/0xa;if(_0x42d149===_0x595dd1)break;else _0x34e039['push'](_0x34e039['shift']());}catch(_0x4f1890){_0x34e039['push'](_0x34e039['shift']());}}}(a253_0x2f80,0x65696));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a253_0x3d73(_0x52b5d7,_0x548289){_0x52b5d7=_0x52b5d7-0xe4;const _0x2f804c=a253_0x2f80();let _0x3d7372=_0x2f804c[_0x52b5d7];return _0x3d7372;}export const PLATFORM_ISSUE_TRACE_NAME=a253_0x1bcb4c(0xf0);export const PLATFORM_ISSUE_SPAN_NAME=a253_0x1bcb4c(0xe9);export async function sendPlatformIssueCollectLog(_0x441ac9){const _0x5c7c16=a253_0x1bcb4c;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x441ac9[_0x5c7c16(0xe6)],'issue.description':_0x441ac9[_0x5c7c16(0xe4)],..._0x441ac9[_0x5c7c16(0xeb)]?{'issue.description_original_bytes':_0x441ac9[_0x5c7c16(0xeb)]['originalBytes'],'issue.description_truncated':_0x441ac9[_0x5c7c16(0xeb)]['truncated'],'issue.description_redactions':_0x441ac9[_0x5c7c16(0xeb)][_0x5c7c16(0xe7)],'issue.description_redaction_kinds':_0x441ac9['sanitize']['redactionKinds'][_0x5c7c16(0xf3)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a255_0x1a295d=a255_0x282a;(function(_0x1a3a70,_0x8de7eb){const _0x1896a0=a255_0x282a,_0x319d20=_0x1a3a70();while(!![]){try{const _0x15ea82=parseInt(_0x1896a0(0x1e6))/0x1*(parseInt(_0x1896a0(0x213))/0x2)+parseInt(_0x1896a0(0x202))/0x3+-parseInt(_0x1896a0(0x20e))/0x4*(-parseInt(_0x1896a0(0x1e5))/0x5)+parseInt(_0x1896a0(0x1ed))/0x6*(parseInt(_0x1896a0(0x1fa))/0x7)+-parseInt(_0x1896a0(0x1f7))/0x8*(-parseInt(_0x1896a0(0x1f4))/0x9)+parseInt(_0x1896a0(0x207))/0xa*(parseInt(_0x1896a0(0x1f2))/0xb)+-parseInt(_0x1896a0(0x210))/0xc;if(_0x15ea82===_0x8de7eb)break;else _0x319d20['push'](_0x319d20['shift']());}catch(_0x17877a){_0x319d20['push'](_0x319d20['shift']());}}}(a255_0x3d6f,0x7a14a));function a255_0x3d6f(){const _0x2c5329=['Antigravity','.agent/skills/lovrabet/SKILL.md','441606eRLlSy','.cursor','9vXgjhV','.windsurf/workflows/rabetbase.md','qoder','7533480CnfnaX','Trae','Qoder','7798mfYRcs','cline','.cline','.codex','.codebuddy/skills/lovrabet/SKILL.md','Windsurf\x20IDE','.cursorrules','file','2124885FbzhRd','.qoder/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','Windsurf','Cline\x20IDE','230DKDfyO','codebuddy','Cursor','CodeBuddy\x20IDE','.claude/skills/lovrabet/SKILL.md','.agent','.opencode','4XcdqTV','Cline','27508032PUEwEk','cursor','Claude\x20Code','2GiklNN','opencode','CodeBuddy','claude','.opencode/skills/lovrabet/SKILL.md','codex','.windsurf','Cursor\x20IDE','windsurf','Trae\x20IDE','.trae','.cursor/skills/rabetbase.md','agent','844475VKpjOW','15WSfpBQ','.trae/skills/lovrabet/SKILL.md','Antigravity\x20IDE','trae','.cline/skills/lovrabet/SKILL.md','SKILL.md.tpl','OpenCode\x20IDE','270snrcmU','通用模板\x20-\x20兜底方案','.qoder'];a255_0x3d6f=function(){return _0x2c5329;};return a255_0x3d6f();}export const CORE_IDE_CONFIGS={'cursor':{'name':a255_0x1a295d(0x209),'description':a255_0x1a295d(0x21a),'folders':[a255_0x1a295d(0x200),a255_0x1a295d(0x1f3)],'files':[{'type':'file','path':a255_0x1a295d(0x1e3),'template':a255_0x1a295d(0x1eb)}]},'windsurf':{'name':a255_0x1a295d(0x205),'description':a255_0x1a295d(0x1ff),'folders':[a255_0x1a295d(0x219)],'files':[{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x1f5),'template':a255_0x1a295d(0x1eb)}]},'claude':{'name':a255_0x1a295d(0x212),'description':a255_0x1a295d(0x212),'folders':['.claude'],'files':[{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x20b),'template':a255_0x1a295d(0x1eb)}]},'cline':{'name':a255_0x1a295d(0x20f),'description':a255_0x1a295d(0x206),'folders':[a255_0x1a295d(0x1fc)],'files':[{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x1ea),'template':a255_0x1a295d(0x1eb)}]},'codex':{'name':'Codex','description':'Codex\x20IDE','folders':[a255_0x1a295d(0x1fd)],'files':[{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x204),'template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':a255_0x1a295d(0x1ec),'folders':[a255_0x1a295d(0x20d)],'files':[{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x217),'template':a255_0x1a295d(0x1eb)}]},'qoder':{'name':a255_0x1a295d(0x1f9),'description':'Qoder\x20IDE','folders':[a255_0x1a295d(0x1ef)],'files':[{'type':'file','path':'.qoder/rules/rabetbase.md','template':a255_0x1a295d(0x1eb)},{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x203),'template':a255_0x1a295d(0x1eb)}]},'codebuddy':{'name':a255_0x1a295d(0x215),'description':a255_0x1a295d(0x20a),'folders':['.codebuddy'],'files':[{'type':'file','path':a255_0x1a295d(0x1fe),'template':'SKILL.md.tpl'}]},'trae':{'name':a255_0x1a295d(0x1f8),'description':a255_0x1a295d(0x21c),'folders':[a255_0x1a295d(0x1e2)],'files':[{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x1e7),'template':a255_0x1a295d(0x1eb)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a255_0x1a295d(0x1ee),'folders':['.agent'],'files':[{'type':a255_0x1a295d(0x201),'path':'.agent/skills/lovrabet/SKILL.md','template':a255_0x1a295d(0x1eb)}]},'antigravity':{'name':a255_0x1a295d(0x1f0),'description':a255_0x1a295d(0x1e8),'folders':[a255_0x1a295d(0x20c)],'files':[{'type':a255_0x1a295d(0x201),'path':a255_0x1a295d(0x1f1),'template':a255_0x1a295d(0x1eb)}]}};export const CORE_IDE_LIST=[a255_0x1a295d(0x216),a255_0x1a295d(0x1fb),a255_0x1a295d(0x208),a255_0x1a295d(0x218),a255_0x1a295d(0x211),a255_0x1a295d(0x214),a255_0x1a295d(0x1f6),a255_0x1a295d(0x1e9),a255_0x1a295d(0x21b)];export const IDE_LIST=['antigravity','claude','cline',a255_0x1a295d(0x208),a255_0x1a295d(0x218),a255_0x1a295d(0x211),'opencode',a255_0x1a295d(0x1f6),a255_0x1a295d(0x1e9),'windsurf',a255_0x1a295d(0x1e4)];function a255_0x282a(_0x2edabe,_0x311105){_0x2edabe=_0x2edabe-0x1e2;const _0x3d6fa6=a255_0x3d6f();let _0x282a3a=_0x3d6fa6[_0x2edabe];return _0x282a3a;}export const ALL_CORE_IDES=[a255_0x1a295d(0x211),'windsurf',a255_0x1a295d(0x216),a255_0x1a295d(0x1fb),'codex','opencode',a255_0x1a295d(0x1f6),a255_0x1a295d(0x208),'trae'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a256_0x280d(){const _0x26d2ab=['5562voMJrf','1344MRrOwe','8120CnQhnV','14117GRmUdq','71140BraUwD','2687234ATvaUX','225ZANbEK','54248AUVlnw','3GNmbCo','450zWmyJk','14470JEvpWy'];a256_0x280d=function(){return _0x26d2ab;};return a256_0x280d();}(function(_0x769063,_0x2936e6){const _0x3b3304=a256_0xa7f4,_0x5c30d3=_0x769063();while(!![]){try{const _0x4b0cb1=parseInt(_0x3b3304(0x12d))/0x1+-parseInt(_0x3b3304(0x131))/0x2+parseInt(_0x3b3304(0x132))/0x3*(parseInt(_0x3b3304(0x12e))/0x4)+parseInt(_0x3b3304(0x133))/0x5*(parseInt(_0x3b3304(0x135))/0x6)+-parseInt(_0x3b3304(0x136))/0x7*(parseInt(_0x3b3304(0x137))/0x8)+parseInt(_0x3b3304(0x130))/0x9*(-parseInt(_0x3b3304(0x134))/0xa)+parseInt(_0x3b3304(0x12f))/0xb;if(_0x4b0cb1===_0x2936e6)break;else _0x5c30d3['push'](_0x5c30d3['shift']());}catch(_0x221fb5){_0x5c30d3['push'](_0x5c30d3['shift']());}}}(a256_0x280d,0x18c47));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a256_0xa7f4(_0x39e9de,_0x213634){_0x39e9de=_0x39e9de-0x12d;const _0x280d7c=a256_0x280d();let _0xa7f455=_0x280d7c[_0x39e9de];return _0xa7f455;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e304c,_0x1a4447){const _0xa0ff79=a257_0x4438,_0x4b684e=_0x1e304c();while(!![]){try{const _0x555c99=-parseInt(_0xa0ff79(0x118))/0x1*(parseInt(_0xa0ff79(0x11a))/0x2)+-parseInt(_0xa0ff79(0x121))/0x3+parseInt(_0xa0ff79(0x117))/0x4+parseInt(_0xa0ff79(0x115))/0x5+parseInt(_0xa0ff79(0x11c))/0x6+parseInt(_0xa0ff79(0x119))/0x7*(parseInt(_0xa0ff79(0x116))/0x8)+-parseInt(_0xa0ff79(0x120))/0x9;if(_0x555c99===_0x1a4447)break;else _0x4b684e['push'](_0x4b684e['shift']());}catch(_0x4f3c79){_0x4b684e['push'](_0x4b684e['shift']());}}}(a257_0x2020,0xa05f2));function a257_0x4438(_0x41ba4d,_0x474ca9){_0x41ba4d=_0x41ba4d-0x112;const _0x20204e=a257_0x2020();let _0x4438da=_0x20204e[_0x41ba4d];return _0x4438da;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x42b1e6=a257_0x4438,_0x3acb84=getTemplateBaseUrl(),_0x4f844e=[_0x3acb84+'/config.json',_0x3acb84+_0x42b1e6(0x11e)];for(const _0xeba18a of _0x4f844e){try{const _0xe903a9=await fetch(_0xeba18a,{'headers':{'Accept':_0x42b1e6(0x113)}});if(!_0xe903a9['ok'])continue;const _0x546de0=await _0xe903a9[_0x42b1e6(0x11f)]();if(!_0x546de0['cli']?.['stableVersion']||!_0x546de0[_0x42b1e6(0x112)]?.[_0x42b1e6(0x114)]?.[_0x42b1e6(0x11b)])continue;return _0x546de0;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x520ed6=a257_0x4438,_0xada8f8=Date[_0x520ed6(0x11d)]();if(hasCachedConfig){const _0x51d74e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xada8f8-cacheTime<_0x51d74e)return cachedConfig;}const _0x1ff726=await fetchCdnConfig();return cachedConfig=_0x1ff726,cacheTime=_0xada8f8,hasCachedConfig=!![],_0x1ff726;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a257_0x2020(){const _0x26fd82=['sdk','application/json','node','736890EvvWZz','8eFZPiV','3630828JJiDJi','13rKvetz','2303903nxPYaj','187834iUIcfB','stableVersion','6216552GtWvIo','now','/config/index.json','json','1481391BzIEzm','1133712azkEZF'];a257_0x2020=function(){return _0x26fd82;};return a257_0x2020();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e00dd,_0x15cddd){const _0x4b1e38=a258_0x4112,_0x566599=_0x5e00dd();while(!![]){try{const _0x11aa99=-parseInt(_0x4b1e38(0x184))/0x1+-parseInt(_0x4b1e38(0x181))/0x2*(-parseInt(_0x4b1e38(0x178))/0x3)+parseInt(_0x4b1e38(0x17c))/0x4*(parseInt(_0x4b1e38(0x17f))/0x5)+-parseInt(_0x4b1e38(0x196))/0x6*(parseInt(_0x4b1e38(0x18c))/0x7)+parseInt(_0x4b1e38(0x190))/0x8+-parseInt(_0x4b1e38(0x183))/0x9+parseInt(_0x4b1e38(0x18f))/0xa;if(_0x11aa99===_0x15cddd)break;else _0x566599['push'](_0x566599['shift']());}catch(_0x124e37){_0x566599['push'](_0x566599['shift']());}}}(a258_0x599e,0xe294e));import a258_0x2a15fe from'node:fs';import a258_0x3beac2 from'node:path';import a258_0x43ee12 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a258_0x599e(){const _0x25b9d3=['join','40ARnnrg','log','↪\x20SDK\x20update\x20available','93070yTGUhy','\x1b[0m','30RElxSI','sdk','8218044TBUTux','989930yVPtbn','all','\x20\x20\x20Stable\x20version:\x20','utf8','minVersion','node','\x1b[1m','parse','751835bGyuwj','packageName','existsSync','6317250vvdGVb','11590952lNdOyD','node_modules','@lovrabet/sdk','npm\x20install\x20','dependencies','\x20\x20\x20Current\x20version:\x20','18wlPaqy','\x20\x20\x20Upgrade\x20command:\x20','devDependencies','test','readFileSync','package.json','utf-8','latest','177321BxVXeN','coerce','stableVersion'];a258_0x599e=function(){return _0x25b9d3;};return a258_0x599e();}const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x16ecb2){const _0xe106f2=a258_0x4112,_0x16eabc=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x16eabc['some'](_0x5a73ed=>_0x5a73ed[_0xe106f2(0x199)](_0x16ecb2));}function getInstalledVersion(_0x4c0761,_0x1db74d){const _0x4b56ba=a258_0x4112;try{const _0x166be0=a258_0x3beac2['join'](_0x4c0761,_0x4b56ba(0x191),_0x1db74d,'package.json');if(a258_0x2a15fe[_0x4b56ba(0x18e)](_0x166be0)){const _0x48b60c=JSON[_0x4b56ba(0x18b)](a258_0x2a15fe[_0x4b56ba(0x19a)](_0x166be0,_0x4b56ba(0x176)));return _0x48b60c['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x224128=a258_0x4112;try{const _0x1d3176=await getCdnConfig();return _0x1d3176?.[_0x224128(0x182)]?.[_0x224128(0x189)]?.[_0x224128(0x17a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2b9973=a258_0x4112;try{const _0x491df7=await getCdnConfig();return _0x491df7?.[_0x2b9973(0x182)]?.[_0x2b9973(0x189)]?.[_0x2b9973(0x18d)]||_0x2b9973(0x192);}catch{return _0x2b9973(0x192);}}export async function checkSdkVersion(_0x2205c8){const _0x4c54b2=a258_0x4112,_0x45a468=a258_0x3beac2[_0x4c54b2(0x17b)](_0x2205c8,_0x4c54b2(0x19b)),[_0x1bd78a,_0x80ffab]=await Promise[_0x4c54b2(0x185)]([getSdkStableVersion(),getSdkPackageName()]),_0x293acc=_0x1bd78a||FALLBACK_MIN_SDK_VERSION;if(!a258_0x2a15fe['existsSync'](_0x45a468))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x293acc,'packageName':_0x80ffab,'stableVersion':_0x1bd78a};try{const _0xa18819=JSON['parse'](a258_0x2a15fe[_0x4c54b2(0x19a)](_0x45a468,_0x4c54b2(0x187))),_0x529611=_0xa18819[_0x4c54b2(0x194)]||{},_0x56f739=_0xa18819[_0x4c54b2(0x198)]||{},_0x22ba45=_0x529611[_0x80ffab]||_0x56f739[_0x80ffab];if(!_0x22ba45)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x293acc,'packageName':_0x80ffab,'stableVersion':_0x1bd78a};let _0x407d6c=getInstalledVersion(_0x2205c8,_0x80ffab);!_0x407d6c&&(_0x407d6c=_0x22ba45);if(isNonNumericVersion(_0x22ba45))return{'installed':!![],'version':_0x407d6c,'needsUpgrade':![],'minVersion':_0x293acc,'packageName':_0x80ffab,'stableVersion':_0x1bd78a};const _0x1a4841=a258_0x43ee12[_0x4c54b2(0x179)](_0x407d6c),_0x4e59a8=a258_0x43ee12['coerce'](_0x293acc),_0x32cff9=_0x1a4841&&_0x4e59a8?a258_0x43ee12['lt'](_0x1a4841,_0x4e59a8):![];return{'installed':!![],'version':_0x407d6c,'needsUpgrade':_0x32cff9,'minVersion':_0x293acc,'packageName':_0x80ffab,'stableVersion':_0x1bd78a};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x293acc,'packageName':_0x80ffab,'stableVersion':_0x1bd78a};}}function a258_0x4112(_0x9becbe,_0x459924){_0x9becbe=_0x9becbe-0x176;const _0x599ed4=a258_0x599e();let _0x4112ea=_0x599ed4[_0x9becbe];return _0x4112ea;}export function checkSdkVersionSync(_0x170307){const _0x1cf94f=a258_0x4112,_0x279d07=a258_0x3beac2[_0x1cf94f(0x17b)](_0x170307,_0x1cf94f(0x19b)),_0x169442=_0x1cf94f(0x192);if(!a258_0x2a15fe['existsSync'](_0x279d07))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x169442,'stableVersion':null};try{const _0x3013ab=JSON[_0x1cf94f(0x18b)](a258_0x2a15fe[_0x1cf94f(0x19a)](_0x279d07,_0x1cf94f(0x187))),_0x2f7e49=_0x3013ab[_0x1cf94f(0x194)]||{},_0x5d9429=_0x3013ab[_0x1cf94f(0x198)]||{},_0xcc819f=_0x2f7e49[_0x169442]||_0x5d9429[_0x169442];if(!_0xcc819f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x169442,'stableVersion':null};let _0x4eee88=getInstalledVersion(_0x170307,_0x169442);!_0x4eee88&&(_0x4eee88=_0xcc819f);if(isNonNumericVersion(_0xcc819f))return{'installed':!![],'version':_0x4eee88,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x169442,'stableVersion':null};const _0x3daeb7=a258_0x43ee12[_0x1cf94f(0x179)](_0x4eee88),_0x233a3c=_0x3daeb7?a258_0x43ee12['lt'](_0x3daeb7,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4eee88,'needsUpgrade':_0x233a3c,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x169442,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x169442,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4cf029){const _0x10c133=a258_0x4112;if(!_0x4cf029['needsUpgrade'])return;const _0x406e66='\x1b[33m',_0xb670fc=_0x10c133(0x180),_0x45c364=_0x10c133(0x18a),_0xc9a7c1=_0x4cf029[_0x10c133(0x18d)]||_0x10c133(0x192),_0x497c3d=_0x4cf029[_0x10c133(0x17a)]||_0x4cf029[_0x10c133(0x188)],_0x4bd85f=_0x10c133(0x193)+_0xc9a7c1+'@'+(_0x497c3d||_0x10c133(0x177));console[_0x10c133(0x17d)](),console[_0x10c133(0x17d)](''+_0x406e66+_0x45c364+_0x10c133(0x17e)+_0xb670fc),console[_0x10c133(0x17d)](_0x406e66+_0x10c133(0x195)+_0xc9a7c1+'@'+_0x4cf029['version']+_0xb670fc),console[_0x10c133(0x17d)](_0x406e66+_0x10c133(0x186)+_0x497c3d+_0xb670fc),console[_0x10c133(0x17d)](_0x406e66+_0x10c133(0x197)+_0x4bd85f+_0xb670fc),console[_0x10c133(0x17d)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d6b95,_0x48ec02){const _0x64615b=a259_0x3a92,_0x3a0a6d=_0x5d6b95();while(!![]){try{const _0x51f2d1=parseInt(_0x64615b(0x147))/0x1*(-parseInt(_0x64615b(0x13c))/0x2)+parseInt(_0x64615b(0x148))/0x3*(-parseInt(_0x64615b(0x133))/0x4)+parseInt(_0x64615b(0x12f))/0x5*(parseInt(_0x64615b(0x126))/0x6)+parseInt(_0x64615b(0x149))/0x7+parseInt(_0x64615b(0x12a))/0x8*(parseInt(_0x64615b(0x141))/0x9)+-parseInt(_0x64615b(0x14d))/0xa*(parseInt(_0x64615b(0x13b))/0xb)+parseInt(_0x64615b(0x14c))/0xc;if(_0x51f2d1===_0x48ec02)break;else _0x3a0a6d['push'](_0x3a0a6d['shift']());}catch(_0x10f5ce){_0x3a0a6d['push'](_0x3a0a6d['shift']());}}}(a259_0x2e96,0x1fe90));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a259_0x1d9f10 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a259_0x2e96(){const _0x494f16=['currentVersion','Minimum\x20supported:\x20','22yPcroY','196kyLkFb','minimumVersionMessage','../..','belowMinimum','utf-8','983187XXeVfD','join','\x1b[31m','\x20\x20\x20Recommended\x20stable:\x20','needsUpgrade','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','57RKmYAU','20244yFZqFO','1099238EYBnYI','parse','minimumVersion','512568pCaMDW','507930XropZz','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','6WxcFyr','\x1b[33m','coerce','\x20\x20\x20Upgrade\x20command:\x20','8saEEhC','stableVersion','↪\x20New\x20version\x20available','\x20\x20\x20','\x1b[1m','926545UbeMZI','\x1b[0m','validation','log','152pfKDWq','Upgrade\x20command:\x20','1.0.0','upgradeMessage','filter','\x20\x20\x20Minimum\x20supported:\x20'];a259_0x2e96=function(){return _0x494f16;};return a259_0x2e96();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x5c55b3){const _0x342706=a259_0x3a92,_0x27bbb9=_0x5c55b3[_0x342706(0x12b)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x27bbb9;}function a259_0x3a92(_0x5a17c2,_0x3d6fec){_0x5a17c2=_0x5a17c2-0x123;const _0x2e963c=a259_0x2e96();let _0x3a92ad=_0x2e963c[_0x5a17c2];return _0x3a92ad;}function getCurrentCliVersion(){const _0x55b8e0=a259_0x3a92;try{const _0x49d593=fileURLToPath(import.meta.url),_0x57c6d0=resolve(dirname(_0x49d593),_0x55b8e0(0x13e)),_0x4e3358=resolve(_0x57c6d0,'package.json'),_0x306b89=JSON[_0x55b8e0(0x14a)](readFileSync(_0x4e3358,_0x55b8e0(0x140)));return _0x306b89['version']||'1.0.0';}catch{return _0x55b8e0(0x135);}}export async function checkCliVersion(){const _0x430b51=a259_0x3a92,_0x368312=getCurrentCliVersion(),_0x359ea4=await getCliVersionPolicy(),_0x3c7f34=_0x359ea4?.[_0x430b51(0x12b)]||null,_0x4e7586=_0x359ea4?.[_0x430b51(0x14b)]||null;let _0x2041eb=![],_0xe65ff7=![];const _0x421367=a259_0x1d9f10[_0x430b51(0x128)](_0x368312);if(_0x421367&&_0x3c7f34)try{const _0x25f709=a259_0x1d9f10[_0x430b51(0x128)](_0x3c7f34);if(_0x25f709)_0x2041eb=a259_0x1d9f10['lt'](_0x421367,_0x25f709);}catch{}if(_0x421367&&_0x4e7586)try{const _0x257b3d=a259_0x1d9f10[_0x430b51(0x128)](_0x4e7586);if(_0x257b3d)_0xe65ff7=a259_0x1d9f10['lt'](_0x421367,_0x257b3d);}catch{}return _0xe65ff7&&(_0x2041eb=!![]),{'currentVersion':_0x368312,'stableVersion':_0x3c7f34,'minimumVersion':_0x4e7586,'needsUpgrade':_0x2041eb,'belowMinimum':_0xe65ff7,'isPreRelease':![],'upgradeMessage':_0x359ea4?.[_0x430b51(0x136)],'minimumVersionMessage':_0x359ea4?.[_0x430b51(0x13d)]};}export function printCliUpgradeWarning(_0x37fc01){const _0x9e0993=a259_0x3a92;if(!_0x37fc01[_0x9e0993(0x145)]&&!_0x37fc01[_0x9e0993(0x13f)])return;const _0x241d55=_0x9e0993(0x143),_0x1acd60=_0x9e0993(0x127),_0xc1c615=_0x9e0993(0x130),_0x29e140=_0x9e0993(0x12e),_0x40f8a9=getCliUpgradeCommand(_0x37fc01);console[_0x9e0993(0x132)](),_0x37fc01[_0x9e0993(0x13f)]?(console[_0x9e0993(0x132)](''+_0x241d55+_0x29e140+_0x9e0993(0x123)+_0xc1c615),console[_0x9e0993(0x132)](_0x241d55+_0x9e0993(0x125)+_0x37fc01['currentVersion']+_0xc1c615),_0x37fc01['minimumVersion']&&console[_0x9e0993(0x132)](_0x241d55+_0x9e0993(0x138)+_0x37fc01[_0x9e0993(0x14b)]+_0xc1c615),_0x37fc01['stableVersion']&&_0x37fc01[_0x9e0993(0x12b)]!==_0x37fc01[_0x9e0993(0x14b)]&&console[_0x9e0993(0x132)](_0x241d55+_0x9e0993(0x144)+_0x37fc01['stableVersion']+_0xc1c615),_0x37fc01[_0x9e0993(0x13d)]&&console[_0x9e0993(0x132)](_0x241d55+_0x9e0993(0x12d)+_0x37fc01[_0x9e0993(0x13d)]+_0xc1c615),console[_0x9e0993(0x132)](_0x241d55+_0x9e0993(0x129)+_0x40f8a9+_0xc1c615)):(console['log'](''+_0x1acd60+_0x29e140+_0x9e0993(0x12c)+_0xc1c615),console[_0x9e0993(0x132)](_0x1acd60+_0x9e0993(0x125)+_0x37fc01[_0x9e0993(0x139)]+_0xc1c615),console[_0x9e0993(0x132)](_0x1acd60+_0x9e0993(0x124)+_0x37fc01[_0x9e0993(0x12b)]+_0xc1c615),_0x37fc01[_0x9e0993(0x136)]&&console[_0x9e0993(0x132)](_0x1acd60+_0x9e0993(0x12d)+_0x37fc01[_0x9e0993(0x136)]+_0xc1c615),console[_0x9e0993(0x132)](_0x1acd60+_0x9e0993(0x129)+_0x40f8a9+_0xc1c615)),console[_0x9e0993(0x132)]();}export function assertCliVersionSupported(_0x207357){const _0x5afe26=a259_0x3a92;if(!_0x207357['belowMinimum'])return;const _0x52921d=[_0x207357[_0x5afe26(0x13d)],'Current\x20version:\x20'+_0x207357['currentVersion'],_0x207357[_0x5afe26(0x14b)]?_0x5afe26(0x13a)+_0x207357[_0x5afe26(0x14b)]:null,_0x5afe26(0x134)+getCliUpgradeCommand(_0x207357)][_0x5afe26(0x137)](Boolean)[_0x5afe26(0x142)]('\x0a');throw CliErrors[_0x5afe26(0x131)](_0x5afe26(0x146),_0x52921d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2927e7,_0x261737){const _0x5e303b=a260_0x5570,_0xb59a6e=_0x2927e7();while(!![]){try{const _0x15d2bb=-parseInt(_0x5e303b(0x1f4))/0x1+parseInt(_0x5e303b(0x1ff))/0x2+parseInt(_0x5e303b(0x1f0))/0x3*(-parseInt(_0x5e303b(0x201))/0x4)+-parseInt(_0x5e303b(0x1fd))/0x5*(-parseInt(_0x5e303b(0x1f1))/0x6)+parseInt(_0x5e303b(0x1f6))/0x7*(parseInt(_0x5e303b(0x1fc))/0x8)+parseInt(_0x5e303b(0x1fa))/0x9*(parseInt(_0x5e303b(0x1f9))/0xa)+parseInt(_0x5e303b(0x1ef))/0xb*(-parseInt(_0x5e303b(0x1f7))/0xc);if(_0x15d2bb===_0x261737)break;else _0xb59a6e['push'](_0xb59a6e['shift']());}catch(_0x132f77){_0xb59a6e['push'](_0xb59a6e['shift']());}}}(a260_0x59b6,0x73f07));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x487e36){const _0x35c733=a260_0x5570;return typeof _0x487e36==='string'&&_0x487e36['trim']()[_0x35c733(0x1f8)]>0x0?_0x487e36['trim']():null;}function normalizeCliVersionPolicy(_0x1f1408){const _0x2fb38d=a260_0x5570;if(!_0x1f1408||typeof _0x1f1408!=='object')return null;const _0x42a3ef=_0x1f1408,_0x46d967=_0x42a3ef[_0x2fb38d(0x207)]&&typeof _0x42a3ef[_0x2fb38d(0x207)]===_0x2fb38d(0x200)?_0x42a3ef[_0x2fb38d(0x207)]:_0x42a3ef,_0x3896fc=pickString(_0x46d967[_0x2fb38d(0x204)])||pickString(_0x46d967[_0x2fb38d(0x1fe)])||pickString(_0x46d967[_0x2fb38d(0x202)]),_0x258293=pickString(_0x46d967[_0x2fb38d(0x1f3)])||pickString(_0x46d967[_0x2fb38d(0x206)]);if(!_0x3896fc&&!_0x258293)return null;return{'stableVersion':_0x3896fc,'minimumVersion':_0x258293,'upgradeMessage':pickString(_0x46d967[_0x2fb38d(0x205)])||undefined,'minimumVersionMessage':pickString(_0x46d967[_0x2fb38d(0x1f5)])||undefined};}export async function fetchCliVersionPolicy(){const _0x5993fa=a260_0x5570,_0x5b8b91=new AbortController(),_0x17a0be=setTimeout(()=>_0x5b8b91[_0x5993fa(0x1f2)](),FETCH_TIMEOUT_MS);try{const _0x359f80=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5993fa(0x1fb)},'signal':_0x5b8b91['signal']});if(!_0x359f80['ok'])return null;const _0x20897e=await _0x359f80['json']();return normalizeCliVersionPolicy(_0x20897e);}catch{return null;}finally{clearTimeout(_0x17a0be);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a260_0x5570(_0x58a821,_0xa67190){_0x58a821=_0x58a821-0x1ef;const _0x59b60f=a260_0x59b6();let _0x5570be=_0x59b60f[_0x58a821];return _0x5570be;}function a260_0x59b6(){const _0x4ada3d=['3mccSXO','519330fLsZde','abort','minimumVersion','579651YcewcZ','minimumVersionMessage','7eYKYdo','7504248OtdxSn','length','13540PbyhbW','4518adZXfh','application/json','1245232KUgOfQ','15WAFjxQ','latestVersion','1571156lRfUpH','object','802852SSjtzC','recommendedVersion','now','stableVersion','upgradeMessage','minVersion','cli','11DuFvsq'];a260_0x59b6=function(){return _0x4ada3d;};return a260_0x59b6();}export async function getCliVersionPolicy(){const _0x3a7a25=a260_0x5570,_0xf043c1=Date[_0x3a7a25(0x203)]();if(hasCachedPolicy){const _0x5e3ae1=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xf043c1-cacheTime<_0x5e3ae1)return cachedPolicy;}const _0x3bb62a=await fetchCliVersionPolicy();return cachedPolicy=_0x3bb62a,cacheTime=_0xf043c1,hasCachedPolicy=!![],_0x3bb62a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a261_0x34e583=a261_0x46c7;(function(_0x3fd876,_0x2a075e){const _0xd20b7d=a261_0x46c7,_0x19d4e9=_0x3fd876();while(!![]){try{const _0x5d1322=-parseInt(_0xd20b7d(0x1d2))/0x1*(-parseInt(_0xd20b7d(0x1db))/0x2)+-parseInt(_0xd20b7d(0x1d8))/0x3*(-parseInt(_0xd20b7d(0x1d4))/0x4)+parseInt(_0xd20b7d(0x1d6))/0x5*(parseInt(_0xd20b7d(0x1d9))/0x6)+parseInt(_0xd20b7d(0x1d7))/0x7+parseInt(_0xd20b7d(0x1dd))/0x8+parseInt(_0xd20b7d(0x1dc))/0x9+parseInt(_0xd20b7d(0x1d1))/0xa*(-parseInt(_0xd20b7d(0x1d5))/0xb);if(_0x5d1322===_0x2a075e)break;else _0x19d4e9['push'](_0x19d4e9['shift']());}catch(_0xbb7ba0){_0x19d4e9['push'](_0x19d4e9['shift']());}}}(a261_0x481b,0x6191c));function a261_0x46c7(_0x5619c4,_0x27004b){_0x5619c4=_0x5619c4-0x1d0;const _0x481b74=a261_0x481b();let _0x46c79c=_0x481b74[_0x5619c4];return _0x46c79c;}import{initEnv}from'../constant/env.js';function a261_0x481b(){const _0xda000d=['1394028VVRxme','318fwpobo','env','292108KngOGn','255249QtxmzJ','3730752gxMbNy','string','10TbaRQh','1ezLkxC','project','4IBCJKF','20152121HwRCoX','36875xfexdX','5147415XnvOQb'];a261_0x481b=function(){return _0xda000d;};return a261_0x481b();}import{readRawConfig,getConfigAppCode as a261_0x2d0c9d,getMultiAppConfigs as a261_0x1dd850,getTemplateBaseUrl as a261_0x80c962}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x382aec){const _0x14910f=a261_0x46c7,_0xf6813e=readRawConfig(_0x382aec);return _0xf6813e['env']&&typeof _0xf6813e[_0x14910f(0x1da)]===_0x14910f(0x1d0)&&initEnv(_0xf6813e['env']),_0xf6813e;}export function getConfigAppCode(){return a261_0x2d0c9d();}export function getMultiAppConfigs(_0x4eb4ff=a261_0x34e583(0x1d3)){return a261_0x1dd850(_0x4eb4ff);}export function getTemplateBaseUrl(){return a261_0x80c962();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a262_0x3d6a(_0xc97a5c,_0x110c30){_0xc97a5c=_0xc97a5c-0x182;const _0x4e8da2=a262_0x4e8d();let _0x3d6a78=_0x4e8da2[_0xc97a5c];return _0x3d6a78;}(function(_0x29df92,_0x2b18e3){const _0x38fef8=a262_0x3d6a,_0x4ff133=_0x29df92();while(!![]){try{const _0x369768=-parseInt(_0x38fef8(0x188))/0x1+-parseInt(_0x38fef8(0x190))/0x2+parseInt(_0x38fef8(0x185))/0x3+-parseInt(_0x38fef8(0x184))/0x4*(-parseInt(_0x38fef8(0x186))/0x5)+-parseInt(_0x38fef8(0x18e))/0x6+-parseInt(_0x38fef8(0x18a))/0x7*(parseInt(_0x38fef8(0x18f))/0x8)+-parseInt(_0x38fef8(0x193))/0x9*(parseInt(_0x38fef8(0x18b))/0xa);if(_0x369768===_0x2b18e3)break;else _0x4ff133['push'](_0x4ff133['shift']());}catch(_0x2c5cac){_0x4ff133['push'](_0x4ff133['shift']());}}}(a262_0x4e8d,0x1a6a5));import a262_0x370530 from'node:path';import a262_0xab0b5c from'node:fs';function a262_0x4e8d(){const _0x12c014=['246082TECCpp','isDirectory','readdirSync','147123xYZSRQ','复制目录时出错:','mkdirSync','682364gwSYyd','623409FlLRzr','5lqhoCp','copyFileSync','57506XtXSGh','join','21FSmPvL','10QWGfUp','name','error','66966kizQjt','165712TTIohf'];a262_0x4e8d=function(){return _0x12c014;};return a262_0x4e8d();}export async function copyDirectory(_0x7ac916,_0x122c07){const _0x184928=a262_0x3d6a;try{const _0x11237a=a262_0xab0b5c[_0x184928(0x192)](_0x7ac916,{'withFileTypes':!![]});a262_0xab0b5c[_0x184928(0x183)](_0x122c07,{'recursive':!![]});for(const _0x1b7e95 of _0x11237a){const _0x4d8377=a262_0x370530[_0x184928(0x189)](_0x7ac916,_0x1b7e95[_0x184928(0x18c)]),_0x1bf5c1=a262_0x370530['join'](_0x122c07,_0x1b7e95[_0x184928(0x18c)]);_0x1b7e95[_0x184928(0x191)]()?await copyDirectory(_0x4d8377,_0x1bf5c1):a262_0xab0b5c[_0x184928(0x187)](_0x4d8377,_0x1bf5c1);}}catch(_0x1d6a76){console[_0x184928(0x18d)](_0x184928(0x182),_0x1d6a76);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28fc36,_0x2b0223){const _0x566292=a263_0x2228,_0x3dbfce=_0x28fc36();while(!![]){try{const _0x523a02=-parseInt(_0x566292(0x1c7))/0x1+parseInt(_0x566292(0x1bd))/0x2+-parseInt(_0x566292(0x1c3))/0x3+parseInt(_0x566292(0x1be))/0x4+parseInt(_0x566292(0x1c6))/0x5*(parseInt(_0x566292(0x1c4))/0x6)+-parseInt(_0x566292(0x1bc))/0x7+parseInt(_0x566292(0x1c1))/0x8*(parseInt(_0x566292(0x1c2))/0x9);if(_0x523a02===_0x2b0223)break;else _0x3dbfce['push'](_0x3dbfce['shift']());}catch(_0x2a5bc4){_0x3dbfce['push'](_0x3dbfce['shift']());}}}(a263_0x3d9c,0xc14d7));function a263_0x2228(_0x2fa609,_0x2ec391){_0x2fa609=_0x2fa609-0x1bc;const _0x3d9cf6=a263_0x3d9c();let _0x2228b9=_0x3d9cf6[_0x2fa609];return _0x2228b9;}function a263_0x3d9c(){const _0x40b037=['3526536NXlEBs','object','string','7352UjbjxV','18486wFwtGG','2081262AFwsbi','585594aKeZVo','isFinite','10cOnAjm','1232158SvBRXr','3767001CXgNgx','582728XTCrzh'];a263_0x3d9c=function(){return _0x40b037;};return a263_0x3d9c();}function toFiniteNumber(_0x20cc2c){const _0x2b02c4=a263_0x2228;if(typeof _0x20cc2c==='number'&&Number[_0x2b02c4(0x1c5)](_0x20cc2c))return _0x20cc2c;if(typeof _0x20cc2c===_0x2b02c4(0x1c0)){const _0x510e56=_0x20cc2c['trim']();if(!_0x510e56)return undefined;const _0x113e8d=Number(_0x510e56);if(Number[_0x2b02c4(0x1c5)](_0x113e8d))return _0x113e8d;}return undefined;}export function normalizeEntityWithIdResponse(_0x517f51){const _0x50a389=a263_0x2228,_0x580329=toFiniteNumber(_0x517f51);if(_0x580329!==undefined)return{'id':_0x580329,'entity':{'id':_0x580329}};if(!_0x517f51||typeof _0x517f51!==_0x50a389(0x1bf))return{'id':undefined,'entity':{}};const _0x56f874={..._0x517f51},_0x505671=toFiniteNumber(_0x56f874['id']);return _0x505671!==undefined&&(_0x56f874['id']=_0x505671),{'id':_0x505671,'entity':_0x56f874};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x7125f9,_0x4200f6){const _0x605371=a264_0x514e,_0x14d4c3=_0x7125f9();while(!![]){try{const _0x47a374=parseInt(_0x605371(0x164))/0x1+parseInt(_0x605371(0x160))/0x2*(-parseInt(_0x605371(0x166))/0x3)+-parseInt(_0x605371(0x15e))/0x4+-parseInt(_0x605371(0x162))/0x5+parseInt(_0x605371(0x15f))/0x6*(-parseInt(_0x605371(0x165))/0x7)+parseInt(_0x605371(0x161))/0x8+-parseInt(_0x605371(0x163))/0x9;if(_0x47a374===_0x4200f6)break;else _0x14d4c3['push'](_0x14d4c3['shift']());}catch(_0x16abb9){_0x14d4c3['push'](_0x14d4c3['shift']());}}}(a264_0x1cf6,0xbe6ed));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a264_0x1cf6(){const _0x242cf1=['isDirectory','600456gWVJxG','6GjboNx','10sNCzeq','7617824mhlHWi','589205uHSRCw','6023916XhmdBm','1064766othgpj','1959209lJXhfm','11889ffiXWw'];a264_0x1cf6=function(){return _0x242cf1;};return a264_0x1cf6();}function a264_0x514e(_0x457b88,_0x4a1a1b){_0x457b88=_0x457b88-0x15e;const _0x1cf6fc=a264_0x1cf6();let _0x514e6f=_0x1cf6fc[_0x457b88];return _0x514e6f;}import{join}from'node:path';export async function copyDir(_0x30ca04,_0x2096f8){const _0x2d83a7=a264_0x514e,_0x16f248=statSync(_0x30ca04);if(_0x16f248[_0x2d83a7(0x167)]()){!existsSync(_0x2096f8)&&mkdirSync(_0x2096f8,{'recursive':!![]});const _0x397079=readdirSync(_0x30ca04);for(const _0x441e07 of _0x397079){await copyDir(join(_0x30ca04,_0x441e07),join(_0x2096f8,_0x441e07));}}else copyFileSync(_0x30ca04,_0x2096f8);}export function ensureDir(_0x198a37){!existsSync(_0x198a37)&&mkdirSync(_0x198a37,{'recursive':!![]});}export function pathExists(_0x5d02b6){return existsSync(_0x5d02b6);}
|