@lovrabet/rabetbase-cli 2.5.1-beta.2 → 2.5.1-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/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/api/generate-sdk-config-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/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.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/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.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-restore.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/dataset/user-deleted-field-list.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-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.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/table-diff-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/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/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/search.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/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.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/sync.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/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.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/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/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.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/deployment-sync.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-routing.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/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.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.d.ts +0 -16
- 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/kb-search-client.d.ts +30 -0
- package/lib/core/kb-search-client.js +1 -0
- 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.d.ts +1 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.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/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/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/skills/rabetbase/SKILL.md +2 -2
- package/skills/rabetbase/references/rabetbase-config.md +1 -1
- package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
- package/skills/rabetbase/references/rabetbase-kb.md +8 -7
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a278_0x4bbd(_0x200ebc,_0xfec41e){_0x200ebc=_0x200ebc-0x1df;var _0xf481f0=a278_0xf481();var _0x4bbd40=_0xf481f0[_0x200ebc];return _0x4bbd40;}function a278_0xf481(){var _0x4f4270=['cli.help','6wTUuFd','427728cpHoHG','error','12hloYhp','1747QYbpap','3186984muGNLA','13827tnFDSW','4509934LcCDZj','6046047fVtplN','service','Failed\x20to\x20report\x20CLI\x20help\x20trace:','548YdRAgT','477415ABgIIR','10YucjDE'];a278_0xf481=function(){return _0x4f4270;};return a278_0xf481();}(function(_0x375359,_0x132be7){var _0x1afad5=a278_0x4bbd,_0x18e71a=_0x375359();while(!![]){try{var _0x14897e=parseInt(_0x1afad5(0x1e2))/0x1*(parseInt(_0x1afad5(0x1e9))/0x2)+-parseInt(_0x1afad5(0x1e4))/0x3*(parseInt(_0x1afad5(0x1e1))/0x4)+parseInt(_0x1afad5(0x1ea))/0x5*(parseInt(_0x1afad5(0x1ed))/0x6)+-parseInt(_0x1afad5(0x1df))/0x7+parseInt(_0x1afad5(0x1e3))/0x8+-parseInt(_0x1afad5(0x1e6))/0x9*(parseInt(_0x1afad5(0x1eb))/0xa)+parseInt(_0x1afad5(0x1e5))/0xb;if(_0x14897e===_0x132be7)break;else _0x18e71a['push'](_0x18e71a['shift']());}catch(_0x49eb65){_0x18e71a['push'](_0x18e71a['shift']());}}}(a278_0xf481,0x9b3a6));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x5e16ab,_0xfacc6f){var _0x122ef0=a278_0x4bbd;try{await sendCliTraceLog({'spanName':_0x122ef0(0x1ec),'logData':{'rabetbase.help.kind':_0x5e16ab,..._0xfacc6f?.[_0x122ef0(0x1e7)]&&{'rabetbase.help.service':_0xfacc6f[_0x122ef0(0x1e7)]}}});}catch(_0x5772b9){console[_0x122ef0(0x1e0)](_0x122ef0(0x1e8),_0x5772b9);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16bf01,_0x1363ea){const _0x112f5b=a279_0x1f57,_0x30b8e5=_0x16bf01();while(!![]){try{const _0x30894a=-parseInt(_0x112f5b(0x18c))/0x1+-parseInt(_0x112f5b(0x195))/0x2*(-parseInt(_0x112f5b(0x196))/0x3)+-parseInt(_0x112f5b(0x18a))/0x4+parseInt(_0x112f5b(0x191))/0x5+-parseInt(_0x112f5b(0x18e))/0x6*(parseInt(_0x112f5b(0x189))/0x7)+parseInt(_0x112f5b(0x193))/0x8*(-parseInt(_0x112f5b(0x18f))/0x9)+parseInt(_0x112f5b(0x197))/0xa;if(_0x30894a===_0x1363ea)break;else _0x30b8e5['push'](_0x30b8e5['shift']());}catch(_0x545d91){_0x30b8e5['push'](_0x30b8e5['shift']());}}}(a279_0x3885,0xbba75));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';function a279_0x1f57(_0x3d6b32,_0x559b47){_0x3d6b32=_0x3d6b32-0x187;const _0x388530=a279_0x3885();let _0x1f5733=_0x388530[_0x3d6b32];return _0x1f5733;}import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a279_0x3885(){const _0x33bf16=['6248neEonP','production','345696dNhAru','6CvzhQT','53509020TFTCWf','user','unknown','70VKBnRK','3243316DDCMKs','username','1275316MuBrKI','daily','902124wYHYUp','16830YCBtTA','tenant_code','610930dygZwY','email'];a279_0x3885=function(){return _0x33bf16;};return a279_0x3885();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x1793a8=a279_0x1f57,_0x1b45ea=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0xaaaf97=_0x1b45ea?.[_0x1793a8(0x187)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x1793a8(0x188)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x1793a8(0x18d):_0x1793a8(0x194))}),setUserContext({'id':_0xaaaf97?.['id'],'username':_0xaaaf97?.[_0x1793a8(0x18b)],'nickname':_0xaaaf97?.['nickname'],'email':_0xaaaf97?.[_0x1793a8(0x192)],'tenantCode':_0xaaaf97?.['tenant']?.[_0x1793a8(0x190)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1b45ea;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22da57,_0x278740){const _0x153492=a280_0x2b5f,_0x321d18=_0x22da57();while(!![]){try{const _0x3cb260=-parseInt(_0x153492(0x1f2))/0x1*(-parseInt(_0x153492(0x1f6))/0x2)+parseInt(_0x153492(0x1ea))/0x3*(-parseInt(_0x153492(0x1f0))/0x4)+parseInt(_0x153492(0x1f3))/0x5*(parseInt(_0x153492(0x1ee))/0x6)+parseInt(_0x153492(0x1f7))/0x7+parseInt(_0x153492(0x1f4))/0x8+-parseInt(_0x153492(0x1eb))/0x9+-parseInt(_0x153492(0x1f8))/0xa*(-parseInt(_0x153492(0x1ec))/0xb);if(_0x3cb260===_0x278740)break;else _0x321d18['push'](_0x321d18['shift']());}catch(_0x42c05f){_0x321d18['push'](_0x321d18['shift']());}}}(a280_0x3c78,0xc0eda));import{shutdownTraces}from'@lovrabet/otel-logger';function a280_0x2b5f(_0x4bbb2e,_0x52d4f9){_0x4bbb2e=_0x4bbb2e-0x1ea;const _0x3c7810=a280_0x3c78();let _0x2b5fe5=_0x3c7810[_0x4bbb2e];return _0x2b5fe5;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3edf7f=a280_0x2b5f;process[_0x3edf7f(0x1ed)](_0x3edf7f(0x1f5),()=>{void flushOtelNodeIfUsed();});const _0x162513=()=>{const _0x14097a=_0x3edf7f;void flushOtelNodeIfUsed()['then'](()=>process[_0x14097a(0x1f1)](0x0));};process[_0x3edf7f(0x1ed)](_0x3edf7f(0x1ef),_0x162513),process[_0x3edf7f(0x1ed)]('SIGTERM',_0x162513);}export async function exitWithOtelShutdown(_0x2d7bdc){const _0x41c528=a280_0x2b5f;await flushOtelNodeIfUsed(),process[_0x41c528(0x1f1)](_0x2d7bdc);}function a280_0x3c78(){const _0x1929df=['12MJoVAu','exit','569WbAzSC','15fzwGwH','1317480AIlhZB','beforeExit','1650RHzvjN','742574ggbrZK','706450EBieAy','1234326SFmwMx','10788381BcSvkK','341wdPjQu','once','586164JonlKw','SIGINT'];a280_0x3c78=function(){return _0x1929df;};return a280_0x3c78();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d5e05,_0x1cc0cc){const _0x309429=a281_0x2194,_0x1e47c0=_0x3d5e05();while(!![]){try{const _0x56a801=parseInt(_0x309429(0x1c7))/0x1*(parseInt(_0x309429(0x1c6))/0x2)+-parseInt(_0x309429(0x1bf))/0x3+parseInt(_0x309429(0x1c0))/0x4*(parseInt(_0x309429(0x1c4))/0x5)+-parseInt(_0x309429(0x1c5))/0x6+-parseInt(_0x309429(0x1c9))/0x7*(parseInt(_0x309429(0x1c1))/0x8)+-parseInt(_0x309429(0x1cb))/0x9+parseInt(_0x309429(0x1ca))/0xa;if(_0x56a801===_0x1cc0cc)break;else _0x1e47c0['push'](_0x1e47c0['shift']());}catch(_0x35a726){_0x1e47c0['push'](_0x1e47c0['shift']());}}}(a281_0x531d,0xefdb0));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';function a281_0x531d(){const _0x419ca4=['314696zXWYEu','7598264KsOzbn','spanName','manual','55vqRjGU','8315070qRpqAl','334DykdCn','8467UYwsbg','traceparent','14IvUHMf','25811650bWIcYO','4039182IHifAk','traceName','431733mcuPjV'];a281_0x531d=function(){return _0x419ca4;};return a281_0x531d();}const DEFAULT_TRACE_NAME='rabetbase-cli';function a281_0x2194(_0x4ffd02,_0x36cc8f){_0x4ffd02=_0x4ffd02-0x1bf;const _0x531dca=a281_0x531d();let _0x21947e=_0x531dca[_0x4ffd02];return _0x21947e;}export async function sendCliTraceLog(_0x3a4726){const _0x453bc2=a281_0x2194;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3a4726[_0x453bc2(0x1cc)]??DEFAULT_TRACE_NAME,'version':_0x3a4726['version']??getCliVersion(),'spanName':_0x3a4726[_0x453bc2(0x1c2)],'eventType':_0x453bc2(0x1c3),'logData':_0x3a4726['logData'],..._0x3a4726[_0x453bc2(0x1c8)]&&{'traceparent':_0x3a4726[_0x453bc2(0x1c8)]}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a282_0x1a37(){const _0x26893f=['redactionKinds','65RiCuQJ','1HAWJhm','10178WJnSYG','sanitize','title','10wDpdTI','6388587TVAPzZ','30916428DfnhgQ','327498AjmTtu','892kROiLb','truncated','12279OECBnK','1266441vMerhz','issue.log.collect','1360010YkdZmA','1240ZImKqo','platform-issue-log-collect','description','redactionCount'];a282_0x1a37=function(){return _0x26893f;};return a282_0x1a37();}const a282_0x5954b6=a282_0x7844;function a282_0x7844(_0x5bb358,_0x54ab87){_0x5bb358=_0x5bb358-0x1d5;const _0x1a3708=a282_0x1a37();let _0x78443b=_0x1a3708[_0x5bb358];return _0x78443b;}(function(_0xa36641,_0x29972d){const _0xc0b7ea=a282_0x7844,_0x494e3e=_0xa36641();while(!![]){try{const _0xa603b2=parseInt(_0xc0b7ea(0x1e6))/0x1*(parseInt(_0xc0b7ea(0x1df))/0x2)+-parseInt(_0xc0b7ea(0x1dc))/0x3*(parseInt(_0xc0b7ea(0x1da))/0x4)+-parseInt(_0xc0b7ea(0x1e5))/0x5*(parseInt(_0xc0b7ea(0x1d9))/0x6)+-parseInt(_0xc0b7ea(0x1e7))/0x7*(parseInt(_0xc0b7ea(0x1e0))/0x8)+-parseInt(_0xc0b7ea(0x1d7))/0x9*(parseInt(_0xc0b7ea(0x1d6))/0xa)+-parseInt(_0xc0b7ea(0x1dd))/0xb+parseInt(_0xc0b7ea(0x1d8))/0xc;if(_0xa603b2===_0x29972d)break;else _0x494e3e['push'](_0x494e3e['shift']());}catch(_0x5749ed){_0x494e3e['push'](_0x494e3e['shift']());}}}(a282_0x1a37,0x8e820));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a282_0x5954b6(0x1e1);export const PLATFORM_ISSUE_SPAN_NAME=a282_0x5954b6(0x1de);export async function sendPlatformIssueCollectLog(_0x9121d){const _0x47683f=a282_0x5954b6;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x9121d[_0x47683f(0x1d5)],'issue.description':_0x9121d[_0x47683f(0x1e2)],..._0x9121d[_0x47683f(0x1e8)]?{'issue.description_original_bytes':_0x9121d[_0x47683f(0x1e8)]['originalBytes'],'issue.description_truncated':_0x9121d[_0x47683f(0x1e8)][_0x47683f(0x1db)],'issue.description_redactions':_0x9121d[_0x47683f(0x1e8)][_0x47683f(0x1e3)],'issue.description_redaction_kinds':_0x9121d[_0x47683f(0x1e8)][_0x47683f(0x1e4)]['join'](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a284_0x451f77=a284_0x1f7c;function a284_0x51fc(){const _0x151ecc=['Cursor\x20IDE','471AlatuM','.qoder/rules/rabetbase.md','.cline/skills/lovrabet/SKILL.md','CodeBuddy','.codex','.trae','74835stMRWK','Cline','Codex\x20IDE','224532EepFsL','file','Cline\x20IDE','Trae','7916250jLBiUL','Claude\x20Code','3384198TGpRRt','claude','.opencode','antigravity','.agent/skills/lovrabet/SKILL.md','OpenCode','Trae\x20IDE','Cursor','.trae/skills/lovrabet/SKILL.md','.qoder','680280kKyFgA','.cursorrules','.claude/skills/lovrabet/SKILL.md','trae','.opencode/skills/lovrabet/SKILL.md','.codebuddy/skills/lovrabet/SKILL.md','.agent','codebuddy','windsurf','476969bKSnBk','.codebuddy','.cline','.codex/skills/lovrabet/SKILL.md','cursor','Generic\x20template\x20fallback','Qoder','1816UQYLlP','cline','CodeBuddy\x20IDE','13954wbrkWv','opencode','qoder','Windsurf','Qoder\x20IDE','agent','Other\x20(generic\x20template)','Antigravity','codex','.windsurf'];a284_0x51fc=function(){return _0x151ecc;};return a284_0x51fc();}(function(_0x32c0f5,_0x331c46){const _0x38c5dc=a284_0x1f7c,_0x5c5538=_0x32c0f5();while(!![]){try{const _0x2df1cd=parseInt(_0x38c5dc(0x14c))/0x1+parseInt(_0x38c5dc(0x11f))/0x2*(parseInt(_0x38c5dc(0x12a))/0x3)+parseInt(_0x38c5dc(0x143))/0x4+parseInt(_0x38c5dc(0x137))/0x5+-parseInt(_0x38c5dc(0x139))/0x6+-parseInt(_0x38c5dc(0x133))/0x7+parseInt(_0x38c5dc(0x153))/0x8*(-parseInt(_0x38c5dc(0x130))/0x9);if(_0x2df1cd===_0x331c46)break;else _0x5c5538['push'](_0x5c5538['shift']());}catch(_0x54b648){_0x5c5538['push'](_0x5c5538['shift']());}}}(a284_0x51fc,0xcd950));export const CORE_IDE_CONFIGS={'cursor':{'name':a284_0x451f77(0x140),'description':a284_0x451f77(0x129),'folders':[a284_0x451f77(0x144),'.cursor'],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a284_0x451f77(0x122),'description':'Windsurf\x20IDE','folders':[a284_0x451f77(0x128)],'files':[{'type':a284_0x451f77(0x134),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a284_0x451f77(0x138),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x145)}]},'cline':{'name':a284_0x451f77(0x131),'description':a284_0x451f77(0x135),'folders':[a284_0x451f77(0x14e)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x12c)}]},'codex':{'name':'Codex','description':a284_0x451f77(0x132),'folders':[a284_0x451f77(0x12e)],'files':[{'type':'file','path':a284_0x451f77(0x14f)}]},'opencode':{'name':a284_0x451f77(0x13e),'description':'OpenCode\x20IDE','folders':[a284_0x451f77(0x13b)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x147)}]},'qoder':{'name':a284_0x451f77(0x152),'description':a284_0x451f77(0x123),'folders':[a284_0x451f77(0x142)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x12b)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a284_0x451f77(0x12d),'description':a284_0x451f77(0x11e),'folders':[a284_0x451f77(0x14d)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x148)}]},'trae':{'name':a284_0x451f77(0x136),'description':a284_0x451f77(0x13f),'folders':[a284_0x451f77(0x12f)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x141)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a284_0x451f77(0x125),'description':a284_0x451f77(0x151),'folders':[a284_0x451f77(0x149)],'files':[{'type':a284_0x451f77(0x134),'path':a284_0x451f77(0x13d)}]},'antigravity':{'name':a284_0x451f77(0x126),'description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':'file','path':a284_0x451f77(0x13d)}]}};export const CORE_IDE_LIST=['claude',a284_0x451f77(0x154),'codebuddy',a284_0x451f77(0x127),a284_0x451f77(0x150),a284_0x451f77(0x120),a284_0x451f77(0x121),a284_0x451f77(0x146),a284_0x451f77(0x14b)];function a284_0x1f7c(_0x4ab4e6,_0x50d231){_0x4ab4e6=_0x4ab4e6-0x11e;const _0x51fcd9=a284_0x51fc();let _0x1f7ce9=_0x51fcd9[_0x4ab4e6];return _0x1f7ce9;}export const IDE_LIST=[a284_0x451f77(0x13c),a284_0x451f77(0x13a),'cline',a284_0x451f77(0x14a),a284_0x451f77(0x127),'cursor','opencode',a284_0x451f77(0x121),'trae',a284_0x451f77(0x14b),a284_0x451f77(0x124)];export const ALL_CORE_IDES=[a284_0x451f77(0x150),a284_0x451f77(0x14b),a284_0x451f77(0x13a),'cline','codex',a284_0x451f77(0x120),a284_0x451f77(0x121),a284_0x451f77(0x14a),a284_0x451f77(0x146)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x199a35,_0x5804d6){const _0x28f487=a285_0x46a0,_0x2743e8=_0x199a35();while(!![]){try{const _0x33a1f5=parseInt(_0x28f487(0xa2))/0x1*(-parseInt(_0x28f487(0x9b))/0x2)+parseInt(_0x28f487(0x9a))/0x3+-parseInt(_0x28f487(0x9f))/0x4*(parseInt(_0x28f487(0x98))/0x5)+parseInt(_0x28f487(0x9e))/0x6*(parseInt(_0x28f487(0x9d))/0x7)+parseInt(_0x28f487(0xa1))/0x8+-parseInt(_0x28f487(0xa0))/0x9*(-parseInt(_0x28f487(0x99))/0xa)+-parseInt(_0x28f487(0x9c))/0xb;if(_0x33a1f5===_0x5804d6)break;else _0x2743e8['push'](_0x2743e8['shift']());}catch(_0x40819e){_0x2743e8['push'](_0x2743e8['shift']());}}}(a285_0x1125,0xce128));function a285_0x1125(){const _0x3bea26=['445WsOqnZ','9640PpvZRq','2463597krNkcu','2858wprYtA','3555497GDFdxU','5893895cvoVvK','6DBIcRo','42556JPxhlG','12267SeyDjQ','2882224VEfVJG','856rBPika'];a285_0x1125=function(){return _0x3bea26;};return a285_0x1125();}function a285_0x46a0(_0x158838,_0x446b78){_0x158838=_0x158838-0x98;const _0x112589=a285_0x1125();let _0x46a03e=_0x112589[_0x158838];return _0x46a03e;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x127844,_0x5d9c7e){const _0x1809a6=a286_0x4d13,_0x3dc26b=_0x127844();while(!![]){try{const _0x988cbe=-parseInt(_0x1809a6(0x14d))/0x1+-parseInt(_0x1809a6(0x14b))/0x2*(-parseInt(_0x1809a6(0x154))/0x3)+parseInt(_0x1809a6(0x156))/0x4*(parseInt(_0x1809a6(0x14e))/0x5)+parseInt(_0x1809a6(0x15d))/0x6*(-parseInt(_0x1809a6(0x15b))/0x7)+-parseInt(_0x1809a6(0x14c))/0x8*(parseInt(_0x1809a6(0x150))/0x9)+parseInt(_0x1809a6(0x158))/0xa+parseInt(_0x1809a6(0x15e))/0xb*(parseInt(_0x1809a6(0x15f))/0xc);if(_0x988cbe===_0x5d9c7e)break;else _0x3dc26b['push'](_0x3dc26b['shift']());}catch(_0x323ddb){_0x3dc26b['push'](_0x3dc26b['shift']());}}}(a286_0x29fd,0x4eff5));import{getTemplateBaseUrl}from'../utils/config.js';function a286_0x4d13(_0x6139e2,_0x429643){_0x6139e2=_0x6139e2-0x14b;const _0x29fdfb=a286_0x29fd();let _0x4d1326=_0x29fdfb[_0x6139e2];return _0x4d1326;}export async function fetchCdnConfig(){const _0x110b22=a286_0x4d13,_0x499412=getTemplateBaseUrl(),_0x10aff8=[_0x499412+_0x110b22(0x14f),_0x499412+_0x110b22(0x15a)];for(const _0x244857 of _0x10aff8){try{const _0x1f41bf=await fetch(_0x244857,{'headers':{'Accept':_0x110b22(0x153)}});if(!_0x1f41bf['ok'])continue;const _0x577e55=await _0x1f41bf[_0x110b22(0x157)]();if(!_0x577e55[_0x110b22(0x155)]?.[_0x110b22(0x159)]||!_0x577e55[_0x110b22(0x15c)]?.[_0x110b22(0x151)]?.[_0x110b22(0x159)])continue;return _0x577e55;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a286_0x29fd(){const _0x5a91cf=['20466WlPOHq','11eaOEzA','1837284vfDhtl','14UyFGYL','235504rsNbUc','489303lfFXyG','10yZrvVH','/config.json','153qjxmdm','node','now','application/json','218349LIJSPi','cli','427516plLhGa','json','6382250KHzXcP','stableVersion','/config/index.json','413SCYpbb','sdk'];a286_0x29fd=function(){return _0x5a91cf;};return a286_0x29fd();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1c0249=a286_0x4d13,_0x9b66b7=Date[_0x1c0249(0x152)]();if(hasCachedConfig){const _0x26071=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x9b66b7-cacheTime<_0x26071)return cachedConfig;}const _0xf65e46=await fetchCdnConfig();return cachedConfig=_0xf65e46,cacheTime=_0x9b66b7,hasCachedConfig=!![],_0xf65e46;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x54443c=a287_0x29f6;(function(_0x59621d,_0x379222){const _0x422e80=a287_0x29f6,_0x1b2f1f=_0x59621d();while(!![]){try{const _0x36011c=parseInt(_0x422e80(0x1fe))/0x1+-parseInt(_0x422e80(0x215))/0x2*(parseInt(_0x422e80(0x213))/0x3)+-parseInt(_0x422e80(0x202))/0x4*(-parseInt(_0x422e80(0x20a))/0x5)+parseInt(_0x422e80(0x1ff))/0x6+parseInt(_0x422e80(0x201))/0x7*(-parseInt(_0x422e80(0x20e))/0x8)+-parseInt(_0x422e80(0x1fc))/0x9+parseInt(_0x422e80(0x203))/0xa;if(_0x36011c===_0x379222)break;else _0x1b2f1f['push'](_0x1b2f1f['shift']());}catch(_0x2bf674){_0x1b2f1f['push'](_0x1b2f1f['shift']());}}}(a287_0xd936,0x673c9));import a287_0x15eb55 from'node:fs';import a287_0x3174cb from'node:path';import a287_0x15f262 from'semver';function a287_0xd936(){const _0x490515=['7364925sYcQrl','some','575899eYtlcY','131328tqbpMa','log','7xeaLSp','2031388YfKfgj','12376920qLGyOO','devDependencies','node','@lovrabet/sdk','latest','coerce','\x1b[1m','5fECEkX','↪\x20SDK\x20update\x20available','existsSync','all','3073576KorkTb','join','package.json','parse','dependencies','4713uvzOnZ','test','914MYFTgN','readFileSync','\x1b[33m','needsUpgrade','utf8','version','stableVersion','1.2.0','node_modules','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','packageName','sdk'];a287_0xd936=function(){return _0x490515;};return a287_0xd936();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a287_0x54443c(0x1f6);function isNonNumericVersion(_0x3eed8e){const _0x4a8823=a287_0x54443c,_0x95d579=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x95d579[_0x4a8823(0x1fd)](_0x2f3487=>_0x2f3487[_0x4a8823(0x214)](_0x3eed8e));}function getInstalledVersion(_0x58251a,_0x1aa714){const _0x45b216=a287_0x54443c;try{const _0x1dbd3f=a287_0x3174cb['join'](_0x58251a,_0x45b216(0x1f7),_0x1aa714,_0x45b216(0x210));if(a287_0x15eb55[_0x45b216(0x20c)](_0x1dbd3f)){const _0x379b68=JSON[_0x45b216(0x211)](a287_0x15eb55[_0x45b216(0x216)](_0x1dbd3f,'utf-8'));return _0x379b68[_0x45b216(0x1f4)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x2f0106=a287_0x54443c;try{const _0x14ea6c=await getCdnConfig();return _0x14ea6c?.[_0x2f0106(0x1fb)]?.[_0x2f0106(0x205)]?.['stableVersion']||null;}catch{return null;}}function a287_0x29f6(_0x2a636d,_0x415cb2){_0x2a636d=_0x2a636d-0x1f2;const _0xd936fe=a287_0xd936();let _0x29f64f=_0xd936fe[_0x2a636d];return _0x29f64f;}async function getSdkPackageName(){const _0x31deae=a287_0x54443c;try{const _0x2aa2d5=await getCdnConfig();return _0x2aa2d5?.[_0x31deae(0x1fb)]?.[_0x31deae(0x205)]?.[_0x31deae(0x1fa)]||_0x31deae(0x206);}catch{return _0x31deae(0x206);}}export async function checkSdkVersion(_0x17b7e3){const _0xcfee4b=a287_0x54443c,_0x3f2cc2=a287_0x3174cb[_0xcfee4b(0x20f)](_0x17b7e3,_0xcfee4b(0x210)),[_0xfb6561,_0x21d8a9]=await Promise[_0xcfee4b(0x20d)]([getSdkStableVersion(),getSdkPackageName()]),_0x2cf9c3=_0xfb6561||FALLBACK_MIN_SDK_VERSION;if(!a287_0x15eb55[_0xcfee4b(0x20c)](_0x3f2cc2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};try{const _0x4af031=JSON['parse'](a287_0x15eb55[_0xcfee4b(0x216)](_0x3f2cc2,_0xcfee4b(0x1f3))),_0x422e02=_0x4af031[_0xcfee4b(0x212)]||{},_0x72bcd4=_0x4af031[_0xcfee4b(0x204)]||{},_0x19b3da=_0x422e02[_0x21d8a9]||_0x72bcd4[_0x21d8a9];if(!_0x19b3da)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};let _0x2b3bfe=getInstalledVersion(_0x17b7e3,_0x21d8a9);!_0x2b3bfe&&(_0x2b3bfe=_0x19b3da);if(isNonNumericVersion(_0x19b3da))return{'installed':!![],'version':_0x2b3bfe,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};const _0xcb3125=a287_0x15f262[_0xcfee4b(0x208)](_0x2b3bfe),_0x2c0953=a287_0x15f262[_0xcfee4b(0x208)](_0x2cf9c3),_0x47d54b=_0xcb3125&&_0x2c0953?a287_0x15f262['lt'](_0xcb3125,_0x2c0953):![];return{'installed':!![],'version':_0x2b3bfe,'needsUpgrade':_0x47d54b,'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2cf9c3,'packageName':_0x21d8a9,'stableVersion':_0xfb6561};}}export function checkSdkVersionSync(_0x3810f0){const _0x502374=a287_0x54443c,_0x52525f=a287_0x3174cb[_0x502374(0x20f)](_0x3810f0,_0x502374(0x210)),_0x36dd9e='@lovrabet/sdk';if(!a287_0x15eb55[_0x502374(0x20c)](_0x52525f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};try{const _0x2c76c9=JSON[_0x502374(0x211)](a287_0x15eb55[_0x502374(0x216)](_0x52525f,_0x502374(0x1f3))),_0x1efed5=_0x2c76c9[_0x502374(0x212)]||{},_0x401e74=_0x2c76c9[_0x502374(0x204)]||{},_0x5e03bb=_0x1efed5[_0x36dd9e]||_0x401e74[_0x36dd9e];if(!_0x5e03bb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};let _0x4d7b4=getInstalledVersion(_0x3810f0,_0x36dd9e);!_0x4d7b4&&(_0x4d7b4=_0x5e03bb);if(isNonNumericVersion(_0x5e03bb))return{'installed':!![],'version':_0x4d7b4,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};const _0x27979e=a287_0x15f262['coerce'](_0x4d7b4),_0x20a4f2=_0x27979e?a287_0x15f262['lt'](_0x27979e,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4d7b4,'needsUpgrade':_0x20a4f2,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x36dd9e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x33e0d5){const _0x3fe9ea=a287_0x54443c;if(!_0x33e0d5[_0x3fe9ea(0x1f2)])return;const _0x40fc59=_0x3fe9ea(0x217),_0x3887e9='\x1b[0m',_0x53ec67=_0x3fe9ea(0x209),_0x268f61=_0x33e0d5['packageName']||'@lovrabet/sdk',_0x4a52d9=_0x33e0d5[_0x3fe9ea(0x1f5)]||_0x33e0d5['minVersion'],_0x71b4c6='npm\x20install\x20'+_0x268f61+'@'+(_0x4a52d9||_0x3fe9ea(0x207));console[_0x3fe9ea(0x200)](),console[_0x3fe9ea(0x200)](''+_0x40fc59+_0x53ec67+_0x3fe9ea(0x20b)+_0x3887e9),console[_0x3fe9ea(0x200)](_0x40fc59+_0x3fe9ea(0x1f9)+_0x268f61+'@'+_0x33e0d5[_0x3fe9ea(0x1f4)]+_0x3887e9),console[_0x3fe9ea(0x200)](_0x40fc59+'\x20\x20\x20Stable\x20version:\x20'+_0x4a52d9+_0x3887e9),console[_0x3fe9ea(0x200)](_0x40fc59+_0x3fe9ea(0x1f8)+_0x71b4c6+_0x3887e9),console[_0x3fe9ea(0x200)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a288_0x311b(_0x49e3be,_0xc7c9c5){_0x49e3be=_0x49e3be-0x194;const _0x4eba8c=a288_0x4eba();let _0x311bd8=_0x4eba8c[_0x49e3be];return _0x311bd8;}(function(_0x993098,_0x4d83f2){const _0x3190a4=a288_0x311b,_0x55ac24=_0x993098();while(!![]){try{const _0x48c5f8=parseInt(_0x3190a4(0x1b6))/0x1+-parseInt(_0x3190a4(0x198))/0x2+parseInt(_0x3190a4(0x1b9))/0x3*(-parseInt(_0x3190a4(0x1b2))/0x4)+-parseInt(_0x3190a4(0x19e))/0x5+parseInt(_0x3190a4(0x1a4))/0x6*(-parseInt(_0x3190a4(0x1b4))/0x7)+-parseInt(_0x3190a4(0x1b7))/0x8*(-parseInt(_0x3190a4(0x1ab))/0x9)+parseInt(_0x3190a4(0x1a6))/0xa*(parseInt(_0x3190a4(0x1b8))/0xb);if(_0x48c5f8===_0x4d83f2)break;else _0x55ac24['push'](_0x55ac24['shift']());}catch(_0x3cc4cb){_0x55ac24['push'](_0x55ac24['shift']());}}}(a288_0x4eba,0x764b6));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a288_0x36aedb from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a288_0x4eba(){const _0x20b887=['utf-8','log','stableVersion','\x20\x20\x20Upgrade\x20command:\x20','6zdDgfk','join','3550uwabyK','Current\x20version:\x20','npm\x20install\x20-g\x20','upgradeMessage','package.json','3069DAifdB','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','\x20\x20\x20','1.0.0','minimumVersionMessage','minimumVersion','188zxbRtx','\x1b[33m','1544767FPufJY','Upgrade\x20command:\x20','791609NWfWag','392ycHRnv','55385tOvAUt','26145FYsOLz','version','\x20\x20\x20Stable\x20version:\x20','currentVersion','\x1b[0m','1321416VHWFiu','parse','filter','\x20\x20\x20Recommended\x20stable:\x20','\x1b[31m','\x20\x20\x20Current\x20CLI\x20version:\x20','4101075LhobgA','coerce'];a288_0x4eba=function(){return _0x20b887;};return a288_0x4eba();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2991c0){const _0x565fec=a288_0x311b,_0x109beb=_0x2991c0['stableVersion']||'latest';return _0x565fec(0x1a8)+NPM_PACKAGE_NAME+'@'+_0x109beb;}function getCurrentCliVersion(){const _0x6063e2=a288_0x311b;try{const _0x368490=fileURLToPath(import.meta.url),_0x1d3c8d=resolve(dirname(_0x368490),_0x6063e2(0x1ad)),_0x5274a4=resolve(_0x1d3c8d,_0x6063e2(0x1aa)),_0x28a394=JSON[_0x6063e2(0x199)](readFileSync(_0x5274a4,_0x6063e2(0x1a0)));return _0x28a394[_0x6063e2(0x194)]||_0x6063e2(0x1af);}catch{return _0x6063e2(0x1af);}}export async function checkCliVersion(){const _0x2f604f=a288_0x311b,_0x4fae4b=getCurrentCliVersion(),_0x207fec=await getCliVersionPolicy(),_0x3e9d34=_0x207fec?.['stableVersion']||null,_0x50e013=_0x207fec?.[_0x2f604f(0x1b1)]||null;let _0xcd0f03=![],_0x26d68d=![];const _0x32543a=a288_0x36aedb[_0x2f604f(0x19f)](_0x4fae4b);if(_0x32543a&&_0x3e9d34)try{const _0x598622=a288_0x36aedb[_0x2f604f(0x19f)](_0x3e9d34);if(_0x598622)_0xcd0f03=a288_0x36aedb['lt'](_0x32543a,_0x598622);}catch{}if(_0x32543a&&_0x50e013)try{const _0x26d71b=a288_0x36aedb[_0x2f604f(0x19f)](_0x50e013);if(_0x26d71b)_0x26d68d=a288_0x36aedb['lt'](_0x32543a,_0x26d71b);}catch{}return _0x26d68d&&(_0xcd0f03=!![]),{'currentVersion':_0x4fae4b,'stableVersion':_0x3e9d34,'minimumVersion':_0x50e013,'needsUpgrade':_0xcd0f03,'belowMinimum':_0x26d68d,'isPreRelease':![],'upgradeMessage':_0x207fec?.['upgradeMessage'],'minimumVersionMessage':_0x207fec?.[_0x2f604f(0x1b0)]};}export function printCliUpgradeWarning(_0x34357e){const _0x10edea=a288_0x311b;if(!_0x34357e['needsUpgrade']&&!_0x34357e['belowMinimum'])return;const _0x58b7da=_0x10edea(0x19c),_0x16d9af=_0x10edea(0x1b3),_0x2d1217=_0x10edea(0x197),_0x398fcb='\x1b[1m',_0x525a68=getCliUpgradeCommand(_0x34357e);console[_0x10edea(0x1a1)](),_0x34357e['belowMinimum']?(console[_0x10edea(0x1a1)](''+_0x58b7da+_0x398fcb+_0x10edea(0x1ac)+_0x2d1217),console[_0x10edea(0x1a1)](_0x58b7da+_0x10edea(0x19d)+_0x34357e[_0x10edea(0x196)]+_0x2d1217),_0x34357e['minimumVersion']&&console[_0x10edea(0x1a1)](_0x58b7da+'\x20\x20\x20Minimum\x20supported:\x20'+_0x34357e[_0x10edea(0x1b1)]+_0x2d1217),_0x34357e[_0x10edea(0x1a2)]&&_0x34357e['stableVersion']!==_0x34357e[_0x10edea(0x1b1)]&&console['log'](_0x58b7da+_0x10edea(0x19b)+_0x34357e[_0x10edea(0x1a2)]+_0x2d1217),_0x34357e['minimumVersionMessage']&&console[_0x10edea(0x1a1)](_0x58b7da+_0x10edea(0x1ae)+_0x34357e[_0x10edea(0x1b0)]+_0x2d1217),console['log'](_0x58b7da+_0x10edea(0x1a3)+_0x525a68+_0x2d1217)):(console[_0x10edea(0x1a1)](''+_0x16d9af+_0x398fcb+'↪\x20New\x20version\x20available'+_0x2d1217),console[_0x10edea(0x1a1)](_0x16d9af+_0x10edea(0x19d)+_0x34357e[_0x10edea(0x196)]+_0x2d1217),console[_0x10edea(0x1a1)](_0x16d9af+_0x10edea(0x195)+_0x34357e[_0x10edea(0x1a2)]+_0x2d1217),_0x34357e[_0x10edea(0x1a9)]&&console['log'](_0x16d9af+_0x10edea(0x1ae)+_0x34357e[_0x10edea(0x1a9)]+_0x2d1217),console[_0x10edea(0x1a1)](_0x16d9af+_0x10edea(0x1a3)+_0x525a68+_0x2d1217)),console['log']();}export function assertCliVersionSupported(_0x2b8033){const _0x55367d=a288_0x311b;if(!_0x2b8033['belowMinimum'])return;const _0x27b287=[_0x2b8033[_0x55367d(0x1b0)],_0x55367d(0x1a7)+_0x2b8033['currentVersion'],_0x2b8033[_0x55367d(0x1b1)]?'Minimum\x20supported:\x20'+_0x2b8033['minimumVersion']:null,_0x55367d(0x1b5)+getCliUpgradeCommand(_0x2b8033)][_0x55367d(0x19a)](Boolean)[_0x55367d(0x1a5)]('\x0a');throw CliErrors['validation']('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x27b287);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29cc1b,_0x504d2b){const _0x34df3e=a289_0x54b7,_0x105694=_0x29cc1b();while(!![]){try{const _0x1b97d7=-parseInt(_0x34df3e(0x1ca))/0x1*(parseInt(_0x34df3e(0x1ba))/0x2)+parseInt(_0x34df3e(0x1d0))/0x3*(parseInt(_0x34df3e(0x1ce))/0x4)+-parseInt(_0x34df3e(0x1c2))/0x5*(-parseInt(_0x34df3e(0x1c5))/0x6)+parseInt(_0x34df3e(0x1c0))/0x7*(-parseInt(_0x34df3e(0x1bf))/0x8)+parseInt(_0x34df3e(0x1cb))/0x9*(parseInt(_0x34df3e(0x1c1))/0xa)+parseInt(_0x34df3e(0x1bc))/0xb*(parseInt(_0x34df3e(0x1c7))/0xc)+-parseInt(_0x34df3e(0x1d2))/0xd;if(_0x1b97d7===_0x504d2b)break;else _0x105694['push'](_0x105694['shift']());}catch(_0xff4e14){_0x105694['push'](_0x105694['shift']());}}}(a289_0xb22c,0xca9f2));function a289_0x54b7(_0x3d4b64,_0x22ecbd){_0x3d4b64=_0x3d4b64-0x1ba;const _0xb22cff=a289_0xb22c();let _0x54b761=_0xb22cff[_0x3d4b64];return _0x54b761;}function a289_0xb22c(){const _0x30b9f8=['string','797470XcGGtq','12295467IFxKfZ','minimumVersion','trim','2584IlazSl','stableVersion','5229MPDfJd','object','30962737vSaTio','minimumVersionMessage','2SDziGU','upgradeMessage','42251hIFcsa','recommendedVersion','minVersion','3678328lOWEUC','21MkvKDV','10RkNDyt','7145635aSrKBr','signal','json','6qodMit','cli','4584CGspQm','now'];a289_0xb22c=function(){return _0x30b9f8;};return a289_0xb22c();}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(_0x425b64){const _0xe5ed88=a289_0x54b7;return typeof _0x425b64===_0xe5ed88(0x1c9)&&_0x425b64['trim']()['length']>0x0?_0x425b64[_0xe5ed88(0x1cd)]():null;}function normalizeCliVersionPolicy(_0x1cecde){const _0x2552ee=a289_0x54b7;if(!_0x1cecde||typeof _0x1cecde!==_0x2552ee(0x1d1))return null;const _0x3914ca=_0x1cecde,_0x4490c5=_0x3914ca[_0x2552ee(0x1c6)]&&typeof _0x3914ca[_0x2552ee(0x1c6)]===_0x2552ee(0x1d1)?_0x3914ca[_0x2552ee(0x1c6)]:_0x3914ca,_0x5b7f5a=pickString(_0x4490c5[_0x2552ee(0x1cf)])||pickString(_0x4490c5['latestVersion'])||pickString(_0x4490c5[_0x2552ee(0x1bd)]),_0xb90fab=pickString(_0x4490c5[_0x2552ee(0x1cc)])||pickString(_0x4490c5[_0x2552ee(0x1be)]);if(!_0x5b7f5a&&!_0xb90fab)return null;return{'stableVersion':_0x5b7f5a,'minimumVersion':_0xb90fab,'upgradeMessage':pickString(_0x4490c5[_0x2552ee(0x1bb)])||undefined,'minimumVersionMessage':pickString(_0x4490c5[_0x2552ee(0x1d3)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x4b2652=a289_0x54b7,_0x61044=new AbortController(),_0x5ede62=setTimeout(()=>_0x61044['abort'](),FETCH_TIMEOUT_MS);try{const _0x1146c9=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x61044[_0x4b2652(0x1c3)]});if(!_0x1146c9['ok'])return null;const _0x326cb9=await _0x1146c9[_0x4b2652(0x1c4)]();return _0x326cb9&&typeof _0x326cb9===_0x4b2652(0x1d1)?_0x326cb9:null;}catch{return null;}finally{clearTimeout(_0x5ede62);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5ddcc7=a289_0x54b7,_0x6ee540=Date[_0x5ddcc7(0x1c8)]();if(hasCachedConfig){const _0x467215=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x6ee540-cacheTime<_0x467215)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x6ee540,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a290_0x7c27d3=a290_0x1191;function a290_0x1191(_0x1c9f74,_0x133242){_0x1c9f74=_0x1c9f74-0xce;const _0x5517c2=a290_0x5517();let _0x11913b=_0x5517c2[_0x1c9f74];return _0x11913b;}(function(_0x147da6,_0xdba9b4){const _0x3f6fb5=a290_0x1191,_0x62444d=_0x147da6();while(!![]){try{const _0x1f230e=-parseInt(_0x3f6fb5(0xd3))/0x1+-parseInt(_0x3f6fb5(0xdb))/0x2+-parseInt(_0x3f6fb5(0xd7))/0x3*(-parseInt(_0x3f6fb5(0xd8))/0x4)+parseInt(_0x3f6fb5(0xd2))/0x5*(parseInt(_0x3f6fb5(0xd6))/0x6)+-parseInt(_0x3f6fb5(0xd4))/0x7*(-parseInt(_0x3f6fb5(0xd1))/0x8)+parseInt(_0x3f6fb5(0xd5))/0x9*(parseInt(_0x3f6fb5(0xcf))/0xa)+-parseInt(_0x3f6fb5(0xda))/0xb*(-parseInt(_0x3f6fb5(0xce))/0xc);if(_0x1f230e===_0xdba9b4)break;else _0x62444d['push'](_0x62444d['shift']());}catch(_0x11194f){_0x62444d['push'](_0x62444d['shift']());}}}(a290_0x5517,0x98203));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a290_0x1dc4e2,getMultiAppConfigs as a290_0x3d167d,getTemplateBaseUrl as a290_0x301125}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a290_0x5517(){const _0x1b16ae=['1243903ZxNVLk','3087833PqgLBi','9hvEgoh','42VAvqBj','3EWbyrr','385436mAWuTy','env','44GXxGGE','2483482UduteN','string','3774348zkGwUM','10950510rPQkZD','project','8jxteeX','155790SYsqyV'];a290_0x5517=function(){return _0x1b16ae;};return a290_0x5517();}export function readConfig(_0x1e205a){const _0x1c4dc0=a290_0x1191,_0x232f9c=readRawConfig(_0x1e205a);return _0x232f9c[_0x1c4dc0(0xd9)]&&typeof _0x232f9c[_0x1c4dc0(0xd9)]===_0x1c4dc0(0xdc)&&initEnv(_0x232f9c[_0x1c4dc0(0xd9)]),_0x232f9c;}export function getConfigAppCode(){return a290_0x1dc4e2();}export function getMultiAppConfigs(_0x3b8603=a290_0x7c27d3(0xd0)){return a290_0x3d167d(_0x3b8603);}export function getTemplateBaseUrl(){return a290_0x301125();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x442e07,_0x28398f){const _0x2f297a=a291_0x4ca4,_0x1cda07=_0x442e07();while(!![]){try{const _0x33bf63=-parseInt(_0x2f297a(0xe1))/0x1+-parseInt(_0x2f297a(0xec))/0x2*(-parseInt(_0x2f297a(0xe9))/0x3)+parseInt(_0x2f297a(0xe8))/0x4+parseInt(_0x2f297a(0xe5))/0x5*(-parseInt(_0x2f297a(0xe4))/0x6)+-parseInt(_0x2f297a(0xe2))/0x7*(-parseInt(_0x2f297a(0xea))/0x8)+-parseInt(_0x2f297a(0xed))/0x9*(-parseInt(_0x2f297a(0xeb))/0xa)+parseInt(_0x2f297a(0xe6))/0xb*(-parseInt(_0x2f297a(0xee))/0xc);if(_0x33bf63===_0x28398f)break;else _0x1cda07['push'](_0x1cda07['shift']());}catch(_0x3f9564){_0x1cda07['push'](_0x1cda07['shift']());}}}(a291_0x363d,0x6462b));function a291_0x363d(){const _0x4dd1ce=['99uXaigW','16779156jqvDWp','number','isFinite','332428rPDmBi','5056639uBOVSm','string','15276fpFBxv','730pncrXC','11WPHDLP','trim','1698428vRZnDa','268665rwHOsH','8lLxIRd','672470Eaerqb','14hTsKRg'];a291_0x363d=function(){return _0x4dd1ce;};return a291_0x363d();}function toFiniteNumber(_0x12764e){const _0x37a211=a291_0x4ca4;if(typeof _0x12764e===_0x37a211(0xdf)&&Number[_0x37a211(0xe0)](_0x12764e))return _0x12764e;if(typeof _0x12764e===_0x37a211(0xe3)){const _0x20abc4=_0x12764e[_0x37a211(0xe7)]();if(!_0x20abc4)return undefined;const _0x43410c=Number(_0x20abc4);if(Number[_0x37a211(0xe0)](_0x43410c))return _0x43410c;}return undefined;}function a291_0x4ca4(_0x87e345,_0x17cee6){_0x87e345=_0x87e345-0xdf;const _0x363d98=a291_0x363d();let _0x4ca47d=_0x363d98[_0x87e345];return _0x4ca47d;}export function normalizeEntityWithIdResponse(_0x107f68){const _0x279283=toFiniteNumber(_0x107f68);if(_0x279283!==undefined)return{'id':_0x279283,'entity':{'id':_0x279283}};if(!_0x107f68||typeof _0x107f68!=='object')return{'id':undefined,'entity':{}};const _0x71b396={..._0x107f68},_0x2ba475=toFiniteNumber(_0x71b396['id']);return _0x2ba475!==undefined&&(_0x71b396['id']=_0x2ba475),{'id':_0x2ba475,'entity':_0x71b396};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a6909,_0x23a723){const _0x515ada=a292_0x47e9,_0x480036=_0x5a6909();while(!![]){try{const _0x48c427=parseInt(_0x515ada(0x1d7))/0x1+parseInt(_0x515ada(0x1d1))/0x2*(-parseInt(_0x515ada(0x1cf))/0x3)+-parseInt(_0x515ada(0x1cd))/0x4*(parseInt(_0x515ada(0x1cc))/0x5)+-parseInt(_0x515ada(0x1d6))/0x6*(-parseInt(_0x515ada(0x1ce))/0x7)+parseInt(_0x515ada(0x1d0))/0x8+parseInt(_0x515ada(0x1d5))/0x9*(-parseInt(_0x515ada(0x1d3))/0xa)+-parseInt(_0x515ada(0x1d4))/0xb*(parseInt(_0x515ada(0x1d2))/0xc);if(_0x48c427===_0x23a723)break;else _0x480036['push'](_0x480036['shift']());}catch(_0x2ed786){_0x480036['push'](_0x480036['shift']());}}}(a292_0x52e6,0xb5285));function a292_0x52e6(){const _0x5293d5=['20209ieuSGQ','3087726Baaxhv','10341176EHQCde','2DkcaCy','40620hehhfT','8932990GlGyOA','451UNBqKO','9CttIrR','2148gGawXy','583037aVxsOS','isDirectory','529415gIvtSx','4RaLnTx'];a292_0x52e6=function(){return _0x5293d5;};return a292_0x52e6();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4bcdf8,_0x15257c){const _0x4bd9aa=a292_0x47e9,_0x1cc8d4=statSync(_0x4bcdf8);if(_0x1cc8d4[_0x4bd9aa(0x1cb)]()){!existsSync(_0x15257c)&&mkdirSync(_0x15257c,{'recursive':!![]});const _0x2bf87c=readdirSync(_0x4bcdf8);for(const _0x5d1462 of _0x2bf87c){await copyDir(join(_0x4bcdf8,_0x5d1462),join(_0x15257c,_0x5d1462));}}else copyFileSync(_0x4bcdf8,_0x15257c);}export function ensureDir(_0x360177){!existsSync(_0x360177)&&mkdirSync(_0x360177,{'recursive':!![]});}function a292_0x47e9(_0x3d002c,_0x3d33e1){_0x3d002c=_0x3d002c-0x1cb;const _0x52e619=a292_0x52e6();let _0x47e9c9=_0x52e619[_0x3d002c];return _0x47e9c9;}export function pathExists(_0x2741b5){return existsSync(_0x2741b5);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a293_0x4396ee=a293_0x4fe7;(function(_0x26688b,_0xbe3bf3){const _0x455dd1=a293_0x4fe7,_0x55706d=_0x26688b();while(!![]){try{const _0x43a33d=-parseInt(_0x455dd1(0x1bd))/0x1*(parseInt(_0x455dd1(0x1c3))/0x2)+parseInt(_0x455dd1(0x1cd))/0x3*(-parseInt(_0x455dd1(0x1bb))/0x4)+parseInt(_0x455dd1(0x1b8))/0x5+parseInt(_0x455dd1(0x1b4))/0x6+-parseInt(_0x455dd1(0x1c8))/0x7*(-parseInt(_0x455dd1(0x1b9))/0x8)+parseInt(_0x455dd1(0x1bc))/0x9+parseInt(_0x455dd1(0x1c6))/0xa*(parseInt(_0x455dd1(0x1c0))/0xb);if(_0x43a33d===_0xbe3bf3)break;else _0x55706d['push'](_0x55706d['shift']());}catch(_0x58a1eb){_0x55706d['push'](_0x55706d['shift']());}}}(a293_0x2dc9,0xcb362));function a293_0x4fe7(_0x2872da,_0x2e50d4){_0x2872da=_0x2872da-0x1b3;const _0x2dc933=a293_0x2dc9();let _0x4fe72a=_0x2dc933[_0x2872da];return _0x4fe72a;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x35bf81=a293_0x4fe7,_0x227a8d=getTemplateBaseUrl();return _0x227a8d+_0x35bf81(0x1c9);}const CACHE_DIR=join(homedir(),a293_0x4396ee(0x1c1),'cache');export async function fetchGuidesFromCDN(){const _0x29c7a2=a293_0x4396ee,_0x16115b=getGuidesCdnUrl(),_0x199b13=await fetch(_0x16115b,{'headers':{'Accept':_0x29c7a2(0x1d7)}});if(!_0x199b13['ok'])throw new Error(_0x29c7a2(0x1c5)+_0x199b13[_0x29c7a2(0x1d3)]+'\x20'+_0x199b13[_0x29c7a2(0x1cc)]);const _0x156c95=await _0x199b13[_0x29c7a2(0x1b5)]();if(!_0x156c95[_0x29c7a2(0x1b3)]||typeof _0x156c95['guides']!==_0x29c7a2(0x1d0))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x156c95;}export function writeGuidesToProject(_0x46beb4,_0x77e3d9,_0x2e0c4d=a293_0x4396ee(0x1be),_0x29b0b7){const _0x4bef71=a293_0x4396ee,_0x49225c=join(_0x77e3d9,_0x2e0c4d);mkdirSync(_0x49225c,{'recursive':!![]});for(const [_0x297549,_0x3b83c1]of Object[_0x4bef71(0x1d1)](_0x46beb4['guides'])){let _0x3bc5cd=_0x3b83c1[_0x4bef71(0x1d6)];_0x3b83c1[_0x4bef71(0x1c2)]&&(_0x3bc5cd=appendUpdateTime(_0x3bc5cd,_0x3b83c1[_0x4bef71(0x1c2)])),writeFileSync(join(_0x49225c,_0x297549+'.md'),_0x3bc5cd,_0x4bef71(0x1d5));}}export function appendUpdateTime(_0x562c5d,_0x25ac5e){const _0x4d4e40=a293_0x4396ee;return _0x562c5d=_0x562c5d[_0x4d4e40(0x1ba)](/\n*>更新时间:.*$/m,''),_0x562c5d[_0x4d4e40(0x1b7)]()+(_0x4d4e40(0x1b6)+_0x25ac5e);}export function getSkillTemplate(_0x337a48){const _0x5c2d94=a293_0x4396ee;return _0x337a48[_0x5c2d94(0x1d4)]?.[_0x5c2d94(0x1d6)]||'';}export function appendExtendContents(_0x182442,_0x5621b0,_0x9bee42){const _0x9e186e=a293_0x4396ee,_0x18831b=[];for(const [,_0x47a03d]of Object[_0x9e186e(0x1d1)](_0x5621b0[_0x9e186e(0x1b3)])){_0x47a03d[_0x9e186e(0x1bf)]&&_0x18831b[_0x9e186e(0x1c4)](_0x47a03d[_0x9e186e(0x1bf)][_0x9e186e(0x1b7)]());}if(_0x18831b[_0x9e186e(0x1ce)]===0x0)return _0x182442;return _0x182442[_0x9e186e(0x1b7)]()+'\x0a\x0a'+_0x18831b['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x163a0f,_0x452427,_0x32547d){const _0xc24580=a293_0x4396ee,_0x458e62=getSkillTemplate(_0x163a0f);if(!_0x458e62)throw new Error(_0xc24580(0x1cb));const _0x1cebb5=dirname(_0x452427);mkdirSync(_0x1cebb5,{'recursive':!![]});let _0x257dfa=_0x458e62[_0xc24580(0x1ba)](/\{\{IDE_NAME\}\}/g,_0x32547d);_0x257dfa=appendExtendContents(_0x257dfa,_0x163a0f),_0x163a0f[_0xc24580(0x1d4)][_0xc24580(0x1c2)]&&(_0x257dfa=appendUpdateTime(_0x257dfa,_0x163a0f[_0xc24580(0x1d4)][_0xc24580(0x1c2)])),writeFileSync(_0x452427,_0x257dfa,_0xc24580(0x1d5));}export async function installGuides(_0x526cb9){const _0x3f02e1=a293_0x4396ee,_0x5d4412=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5d4412,_0x526cb9),Object[_0x3f02e1(0x1d2)](_0x5d4412[_0x3f02e1(0x1b3)])[_0x3f02e1(0x1ce)];}function a293_0x2dc9(){const _0x4fe76d=['statusText','2440572YrbxAU','length','title','object','entries','keys','status','skillTemplate','utf-8','content','application/json','guides','3651264JzGqnw','json','\x0a\x0a>更新时间:','trimEnd','270675ZsJkSW','96712eeIpPo','replace','4wjyBlc','11524392jBtokB','1HMuASC','.lovrabet/skill/guides','extendContent','2180398HsCxCl','.lovrabet','lastUpdated','3137854ooNopg','push','CDN\x20request\x20failed:\x20','30BBfsZq','map','392aprwHb','/skills/guides.json','path','CDN\x20data\x20is\x20missing\x20skillTemplate'];a293_0x2dc9=function(){return _0x4fe76d;};return a293_0x2dc9();}export function getGuidesSummary(_0x175112){const _0x32dabd=a293_0x4396ee;return Object['entries'](_0x175112['guides'])[_0x32dabd(0x1c7)](([_0x17cb3e,_0x568f1e])=>({'key':_0x17cb3e,'title':_0x568f1e[_0x32dabd(0x1cf)],'path':_0x568f1e[_0x32dabd(0x1ca)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e57a2,_0x5cd7d3){const _0x177c64=a294_0x31aa,_0x24242f=_0x1e57a2();while(!![]){try{const _0x39dc2c=-parseInt(_0x177c64(0x15f))/0x1+parseInt(_0x177c64(0x165))/0x2*(-parseInt(_0x177c64(0x159))/0x3)+parseInt(_0x177c64(0x15b))/0x4*(parseInt(_0x177c64(0x156))/0x5)+-parseInt(_0x177c64(0x152))/0x6+-parseInt(_0x177c64(0x16a))/0x7*(parseInt(_0x177c64(0x158))/0x8)+parseInt(_0x177c64(0x157))/0x9*(-parseInt(_0x177c64(0x16b))/0xa)+parseInt(_0x177c64(0x161))/0xb;if(_0x39dc2c===_0x5cd7d3)break;else _0x24242f['push'](_0x24242f['shift']());}catch(_0x7d8d75){_0x24242f['push'](_0x24242f['shift']());}}}(a294_0x22b9,0x71cb6));function a294_0x22b9(){const _0x5b23db=['Request\x20failed','ECONNRESET','headers','617515pdxzfT','180nCBxKs','8iOxqaX','93NokXwp','statusText','4pfiKUw','text','content-type','*\x20Request\x20failed;\x20retry\x20','670799HCMsam','ENOTFOUND','31267005ofoKAO','signal','json','AbortError','19290cbBuUQ','includes','message','url','name','3070935vWwADt','313070cUxpPI','status','2791302GquAfB'];a294_0x22b9=function(){return _0x5b23db;};return a294_0x22b9();}export async function httpRequest(_0x134cd1,_0x4da179={}){const _0x5bce4e=a294_0x31aa,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4da179;let _0x5112cf=null;for(let _0x37c305=0x0;_0x37c305<=retries;_0x37c305++){try{const _0x41a6d9=new AbortController(),_0x1dd800=setTimeout(()=>_0x41a6d9['abort'](),timeout),_0xbbb4dc=await fetch(_0x134cd1,{'headers':headers,'signal':_0x41a6d9[_0x5bce4e(0x162)]});clearTimeout(_0x1dd800);let _0x50ede8;const _0x14306c=_0xbbb4dc['headers']['get'](_0x5bce4e(0x15d));return _0x14306c?.[_0x5bce4e(0x166)]('application/json')?_0x50ede8=await _0xbbb4dc[_0x5bce4e(0x163)]():_0x50ede8=await _0xbbb4dc[_0x5bce4e(0x15c)](),{'ok':_0xbbb4dc['ok'],'status':_0xbbb4dc[_0x5bce4e(0x16c)],'statusText':_0xbbb4dc[_0x5bce4e(0x15a)],'data':_0x50ede8,'headers':_0xbbb4dc[_0x5bce4e(0x155)],'url':_0xbbb4dc[_0x5bce4e(0x168)],'text':()=>_0xbbb4dc[_0x5bce4e(0x15c)]()};}catch(_0x4cf97b){_0x5112cf=_0x4cf97b instanceof Error?_0x4cf97b:new Error(String(_0x4cf97b));if(_0x37c305===retries)break;if(shouldRetry(_0x4cf97b)){console['log'](_0x5bce4e(0x15e)+(_0x37c305+0x1)+'\x20in\x20'+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x5112cf||new Error(_0x5bce4e(0x153));}function shouldRetry(_0x5ea290){const _0x34d007=a294_0x31aa;if(_0x5ea290 instanceof Error){if(_0x5ea290[_0x34d007(0x169)]===_0x34d007(0x164))return![];if(_0x5ea290[_0x34d007(0x169)]==='TypeError'&&_0x5ea290[_0x34d007(0x167)][_0x34d007(0x166)]('fetch'))return!![];if(_0x5ea290[_0x34d007(0x167)]['includes'](_0x34d007(0x154)))return!![];if(_0x5ea290[_0x34d007(0x167)]['includes'](_0x34d007(0x160)))return![];}return![];}function a294_0x31aa(_0x30c8dd,_0xa61e18){_0x30c8dd=_0x30c8dd-0x152;const _0x22b96b=a294_0x22b9();let _0x31aa8f=_0x22b96b[_0x30c8dd];return _0x31aa8f;}function sleep(_0x314ee3){return new Promise(_0x5477fc=>setTimeout(_0x5477fc,_0x314ee3));}export function validateUrl(_0x1a6dbb){try{return new URL(_0x1a6dbb),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c47bd,_0x3da70f){const _0x6f5e35=a295_0x54ef,_0x3607f1=_0x3c47bd();while(!![]){try{const _0x3305fc=-parseInt(_0x6f5e35(0x14b))/0x1*(parseInt(_0x6f5e35(0x14d))/0x2)+parseInt(_0x6f5e35(0x150))/0x3+parseInt(_0x6f5e35(0x14f))/0x4+-parseInt(_0x6f5e35(0x149))/0x5*(parseInt(_0x6f5e35(0x147))/0x6)+-parseInt(_0x6f5e35(0x152))/0x7*(parseInt(_0x6f5e35(0x14a))/0x8)+-parseInt(_0x6f5e35(0x151))/0x9*(-parseInt(_0x6f5e35(0x146))/0xa)+parseInt(_0x6f5e35(0x154))/0xb;if(_0x3305fc===_0x3da70f)break;else _0x3607f1['push'](_0x3607f1['shift']());}catch(_0x34efc1){_0x3607f1['push'](_0x3607f1['shift']());}}}(a295_0x15e9,0xc1eaa));function a295_0x15e9(){const _0x2a56f7=['stdout','305DNQJfm','808EAPMZy','224780QfpUUU','nonInteractive','2WHaBBT','isRaw','2521116OOFzHH','1520565BCahBx','1516572zJuKrk','12579JmstMJ','true','517858VHqalL','isTTY','setRawMode','70DmMTRy','114414xTMjCZ'];a295_0x15e9=function(){return _0x2a56f7;};return a295_0x15e9();}function a295_0x54ef(_0x554602,_0x4e0297){_0x554602=_0x554602-0x145;const _0x15e9fe=a295_0x15e9();let _0x54efbb=_0x15e9fe[_0x554602];return _0x54efbb;}function env(_0x1de2b2){return process.env[`RABETBASE_${_0x1de2b2}`]||process.env[`LOVRABET_${_0x1de2b2}`]||undefined;}export function isNonInteractive(_0x38802f){const _0x2366c0=a295_0x54ef;return!!(_0x38802f[_0x2366c0(0x14c)]||_0x38802f['ci']||env('CI')===_0x2366c0(0x153)||process.env.CI===_0x2366c0(0x153)||!process[_0x2366c0(0x148)][_0x2366c0(0x155)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4acfa7=a295_0x54ef;if(!process['stdin'][_0x4acfa7(0x155)])return![];try{const _0x2f1030=process['stdin'][_0x4acfa7(0x14e)];return process['stdin']['setRawMode'](!![]),process['stdin'][_0x4acfa7(0x145)](_0x2f1030??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a296_0x3314(_0x4be4b4,_0x566db9){_0x4be4b4=_0x4be4b4-0x1c3;const _0x813b2f=a296_0x813b();let _0x331425=_0x813b2f[_0x4be4b4];return _0x331425;}const a296_0x31dd78=a296_0x3314;(function(_0x4ac278,_0x1c84d2){const _0x5109b7=a296_0x3314,_0x49e7d8=_0x4ac278();while(!![]){try{const _0x3e0cf5=-parseInt(_0x5109b7(0x1c8))/0x1+-parseInt(_0x5109b7(0x1d9))/0x2*(parseInt(_0x5109b7(0x1e8))/0x3)+parseInt(_0x5109b7(0x1dc))/0x4+-parseInt(_0x5109b7(0x1d4))/0x5+-parseInt(_0x5109b7(0x1eb))/0x6+parseInt(_0x5109b7(0x1c6))/0x7*(-parseInt(_0x5109b7(0x1d0))/0x8)+parseInt(_0x5109b7(0x1db))/0x9;if(_0x3e0cf5===_0x1c84d2)break;else _0x49e7d8['push'](_0x49e7d8['shift']());}catch(_0x148dee){_0x49e7d8['push'](_0x49e7d8['shift']());}}}(a296_0x813b,0x3cc53));import a296_0x2ddd2c from'winston';import a296_0x51cb34 from'node:fs';import a296_0x5158db from'node:path';class Logger{[a296_0x31dd78(0x1f2)];[a296_0x31dd78(0x1ca)];[a296_0x31dd78(0x1f8)]='';constructor(){const _0x2d6ca2=a296_0x31dd78;this[_0x2d6ca2(0x1ca)]='';}[a296_0x31dd78(0x1cb)](_0xc4e7e3){const _0x226bea=a296_0x31dd78;this[_0x226bea(0x1f8)]=_0xc4e7e3;}[a296_0x31dd78(0x1e5)](){const _0x53682b=a296_0x31dd78,_0x15d6a4=a296_0x5158db['dirname'](this[_0x53682b(0x1ca)]);!a296_0x51cb34[_0x53682b(0x1f6)](_0x15d6a4)&&a296_0x51cb34['mkdirSync'](_0x15d6a4,{'recursive':!![]});const _0x3a58e7=a296_0x2ddd2c[_0x53682b(0x1f9)]['combine'](a296_0x2ddd2c[_0x53682b(0x1f9)][_0x53682b(0x1ef)](),a296_0x2ddd2c['format'][_0x53682b(0x1ce)]({'stack':!![]}),a296_0x2ddd2c[_0x53682b(0x1f9)][_0x53682b(0x1d7)](_0xb5b750=>{const _0xc8ec92=_0x53682b,_0x89a428={'timestamp':_0xb5b750['timestamp']||new Date()[_0xc8ec92(0x1ed)](),'level':_0xb5b750['level']||_0xc8ec92(0x1d2),'command':_0xb5b750[_0xc8ec92(0x1dd)]||_0xc8ec92(0x1e0),'rawCommand':_0xb5b750[_0xc8ec92(0x1de)]||this[_0xc8ec92(0x1f8)]||undefined,'message':_0xb5b750[_0xc8ec92(0x1f0)]||'','duration':_0xb5b750[_0xc8ec92(0x1d6)]||undefined,'details':_0xb5b750[_0xc8ec92(0x1e9)]||undefined};return JSON[_0xc8ec92(0x1f1)](_0x89a428);}));this[_0x53682b(0x1f2)]=a296_0x2ddd2c[_0x53682b(0x1c4)]({'level':_0x53682b(0x1d2),'format':_0x3a58e7,'transports':[new a296_0x2ddd2c[(_0x53682b(0x1da))][(_0x53682b(0x1d8))]({'filename':this[_0x53682b(0x1ca)],'level':_0x53682b(0x1d2)})],'silent':![]}),a296_0x2ddd2c[_0x53682b(0x1e4)]({'success':_0x53682b(0x1c7),'error':_0x53682b(0x1d1),'warn':_0x53682b(0x1cf),'info':_0x53682b(0x1cc)});}['setLogPath'](_0x17be24){const _0xe25474=a296_0x31dd78;this['logFilePath']=a296_0x5158db[_0xe25474(0x1cd)](_0x17be24,_0xe25474(0x1c3)),this[_0xe25474(0x1f2)]&&this['winstonLogger'][_0xe25474(0x1ee)](),this[_0xe25474(0x1e5)]();}['info'](_0x35c3cc,_0x1b1ea3,_0x27356f){const _0x137419=a296_0x31dd78;if(!this[_0x137419(0x1ca)]||!this[_0x137419(0x1f2)])return;this['winstonLogger'][_0x137419(0x1d2)](_0x1b1ea3,{'command':_0x35c3cc,'details':_0x27356f});}[a296_0x31dd78(0x1ec)](_0x294ac3,_0x57e536,_0x5a9286,_0xf3533b){const _0x121284=a296_0x31dd78;if(!this[_0x121284(0x1ca)]||!this[_0x121284(0x1f2)])return;this[_0x121284(0x1f2)][_0x121284(0x1e7)](_0x121284(0x1d2),_0x57e536,{'level':_0x121284(0x1ec),'command':_0x294ac3,'duration':_0x5a9286,'details':_0xf3533b});}[a296_0x31dd78(0x1f7)](_0x31bca6,_0x2fdab5,_0x13294a){const _0x3e296c=a296_0x31dd78;if(!this[_0x3e296c(0x1ca)]||!this[_0x3e296c(0x1f2)])return;this[_0x3e296c(0x1f2)][_0x3e296c(0x1f7)](_0x2fdab5,{'command':_0x31bca6,'details':_0x13294a});}['warn'](_0x3aab12,_0x1312f5,_0x4189c6){const _0x462057=a296_0x31dd78;if(!this['logFilePath']||!this[_0x462057(0x1f2)])return;this[_0x462057(0x1f2)][_0x462057(0x1d5)](_0x1312f5,{'command':_0x3aab12,'details':_0x4189c6});}async['logTask'](_0x520564,_0x2fe4d8,_0x100a93){const _0x18a17f=a296_0x31dd78,_0x31af16=Date['now']();this[_0x18a17f(0x1d2)](_0x520564,'Starting:\x20'+_0x2fe4d8);try{const _0x409d58=await _0x100a93(),_0x227c31=Date[_0x18a17f(0x1e3)]()-_0x31af16;return this[_0x18a17f(0x1ec)](_0x520564,_0x18a17f(0x1e1)+_0x2fe4d8,_0x227c31),_0x409d58;}catch(_0x453160){const _0x520eff=Date['now']()-_0x31af16;this[_0x18a17f(0x1f7)](_0x520564,_0x18a17f(0x1f3)+_0x2fe4d8,{'error':_0x453160 instanceof Error?_0x453160[_0x18a17f(0x1f0)]:String(_0x453160),'duration':_0x520eff});throw _0x453160;}}['readLogs'](){const _0x16bca5=a296_0x31dd78;try{if(!a296_0x51cb34['existsSync'](this[_0x16bca5(0x1ca)]))return[];const _0xf1a5f2=a296_0x51cb34[_0x16bca5(0x1c9)](this['logFilePath'],_0x16bca5(0x1f4));return _0xf1a5f2[_0x16bca5(0x1df)]('\x0a')[_0x16bca5(0x1e6)](_0x59533d=>_0x59533d['trim']())[_0x16bca5(0x1e2)](_0x2b1579=>JSON[_0x16bca5(0x1d3)](_0x2b1579));}catch(_0x4c1599){return console[_0x16bca5(0x1d5)](_0x16bca5(0x1ea),_0x4c1599),[];}}['clearLogs'](){const _0x224639=a296_0x31dd78;try{a296_0x51cb34['existsSync'](this['logFilePath'])&&a296_0x51cb34['writeFileSync'](this[_0x224639(0x1ca)],'','utf8');}catch(_0x2ef2d8){console['warn'](_0x224639(0x1f5),_0x2ef2d8);}}[a296_0x31dd78(0x1c5)](){const _0x93dba9=a296_0x31dd78;return this[_0x93dba9(0x1f2)];}}function a296_0x813b(){const _0x1a9fa2=['red','info','parse','898175ktcPko','warn','duration','printf','File','386350kchLeE','transports','9677673LguhNj','326536qyliUj','command','rawCommand','split','unknown','Completed:\x20','map','now','addColors','initWinstonLogger','filter','log','3LydmMr','details','Failed\x20to\x20read\x20logs:','873840wKHhmY','success','toISOString','clear','timestamp','message','stringify','winstonLogger','Failed:\x20','utf8','Failed\x20to\x20clear\x20logs:','existsSync','error','currentRawCommand','format','.lovrabet.log','createLogger','getWinstonInstance','132902yTJRzM','green','256664RxnDFv','readFileSync','logFilePath','setRawCommand','blue','join','errors','yellow','56hYVMvG'];a296_0x813b=function(){return _0x1a9fa2;};return a296_0x813b();}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x165304,_0x189ecb){const _0xde761f=a297_0x5917,_0x175ec8=_0x165304();while(!![]){try{const _0xd15033=-parseInt(_0xde761f(0x1c1))/0x1*(parseInt(_0xde761f(0x1ce))/0x2)+parseInt(_0xde761f(0x1c5))/0x3+-parseInt(_0xde761f(0x1c7))/0x4+parseInt(_0xde761f(0x1c6))/0x5*(parseInt(_0xde761f(0x1c4))/0x6)+-parseInt(_0xde761f(0x1c0))/0x7*(parseInt(_0xde761f(0x1c8))/0x8)+-parseInt(_0xde761f(0x1c2))/0x9+parseInt(_0xde761f(0x1bf))/0xa*(parseInt(_0xde761f(0x1cd))/0xb);if(_0xd15033===_0x189ecb)break;else _0x175ec8['push'](_0x175ec8['shift']());}catch(_0x56b2f4){_0x175ec8['push'](_0x175ec8['shift']());}}}(a297_0x388e,0x24e98));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4c5bb2){const _0x28c5ec=a297_0x5917;if(!_0x4c5bb2)return undefined;let _0x5b90c7;try{_0x5b90c7=JSON['parse'](_0x4c5bb2);}catch{throw CliErrors['validation'](_0x28c5ec(0x1cc)+_0x4c5bb2);}if(!_0x5b90c7||typeof _0x5b90c7!==_0x28c5ec(0x1c3)||Array[_0x28c5ec(0x1cf)](_0x5b90c7))throw CliErrors[_0x28c5ec(0x1ca)](_0x28c5ec(0x1cb),_0x28c5ec(0x1c9));return _0x5b90c7;}function a297_0x5917(_0xcfff78,_0x43c035){_0xcfff78=_0xcfff78-0x1bf;const _0x388e51=a297_0x388e();let _0x59179e=_0x388e51[_0xcfff78];return _0x59179e;}function a297_0x388e(){const _0x14191f=['--params\x20must\x20be\x20a\x20JSON\x20object','Invalid\x20JSON\x20for\x20--params:\x20','3036fgszZD','266KWWWnP','isArray','18020jZDxVO','7fsAGJJ','1456pEThTJ','1445679gUKogI','object','15366vTNwof','617493ppRGWG','225zNzkAH','749280AZEgva','1005096tYjVgI','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','validation'];a297_0x388e=function(){return _0x14191f;};return a297_0x388e();}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a298_0x159b(_0x43d59a,_0x1f9254){_0x43d59a=_0x43d59a-0x17b;const _0x42fae8=a298_0x42fa();let _0x159bb9=_0x42fae8[_0x43d59a];return _0x159bb9;}(function(_0x23d99c,_0x55e616){const _0x339e4c=a298_0x159b,_0x1e3189=_0x23d99c();while(!![]){try{const _0x4741c9=parseInt(_0x339e4c(0x17e))/0x1*(-parseInt(_0x339e4c(0x182))/0x2)+parseInt(_0x339e4c(0x180))/0x3+parseInt(_0x339e4c(0x17c))/0x4+parseInt(_0x339e4c(0x181))/0x5+-parseInt(_0x339e4c(0x17b))/0x6+parseInt(_0x339e4c(0x183))/0x7*(-parseInt(_0x339e4c(0x17f))/0x8)+-parseInt(_0x339e4c(0x17d))/0x9;if(_0x4741c9===_0x55e616)break;else _0x1e3189['push'](_0x1e3189['shift']());}catch(_0x3bdc54){_0x1e3189['push'](_0x1e3189['shift']());}}}(a298_0x42fa,0x7b84d));function a298_0x42fa(){const _0xe322bb=['6341661chrVIc','58516wfGfwA','12200DHBghP','1528251wAjWdz','4941780RPbIWU','14mdsfgu','581TimImn','275028fMMBjM','1179256oOiTLw'];a298_0x42fa=function(){return _0xe322bb;};return a298_0x42fa();}export const isWindows=process['platform']==='win32';export function resolveNpmBin(_0x19825e){return isWindows?_0x19825e+'.cmd':_0x19825e;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x10fb47){return new Promise(_0x133792=>setTimeout(_0x133792,_0x10fb47));}
|