@lovrabet/rabetbase-cli 2.3.2 → 2.3.3-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/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/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.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-selector.js +1 -1
- package/lib/commands/common/flags.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 -0
- 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/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/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/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.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/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/update.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/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/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/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/workspace/index.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-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/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/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a192_0x2fb6c6=a192_0x42e2;(function(_0x55efe5,_0x7549a1){const _0x3ad592=a192_0x42e2,_0x4e8cfa=_0x55efe5();while(!![]){try{const _0x1f9f6d=-parseInt(_0x3ad592(0x88))/0x1+-parseInt(_0x3ad592(0x87))/0x2*(parseInt(_0x3ad592(0x89))/0x3)+parseInt(_0x3ad592(0x84))/0x4+-parseInt(_0x3ad592(0x8f))/0x5*(parseInt(_0x3ad592(0x9d))/0x6)+-parseInt(_0x3ad592(0x9e))/0x7+parseInt(_0x3ad592(0x85))/0x8*(parseInt(_0x3ad592(0x91))/0x9)+-parseInt(_0x3ad592(0x92))/0xa*(-parseInt(_0x3ad592(0xa0))/0xb);if(_0x1f9f6d===_0x7549a1)break;else _0x4e8cfa['push'](_0x4e8cfa['shift']());}catch(_0x5e05bb){_0x4e8cfa['push'](_0x4e8cfa['shift']());}}}(a192_0x3d2c,0xf2e3d));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI=a192_0x2fb6c6(0x99);export const NPX_SKILLS_SUBCOMMAND_ADD=a192_0x2fb6c6(0x9c);function a192_0x42e2(_0x5da720,_0x48b553){_0x5da720=_0x5da720-0x84;const _0x3d2c20=a192_0x3d2c();let _0x42e2ee=_0x3d2c20[_0x5da720];return _0x42e2ee;}export const NPX_SKILLS_FLAG_SKILL=a192_0x2fb6c6(0x9a);export const RABETBASE_SKILL_SOURCE=a192_0x2fb6c6(0xa1);export const LEGACY_RABETBASE_SKILL_SOURCE='lovrabet/lovrabet-skill';export const DEFAULT_RABETBASE_SKILL_NAME=a192_0x2fb6c6(0x8e);export function buildNpxSkillsAddArgv(_0x361cc5){const _0x2580c6=a192_0x2fb6c6,_0x4fb729=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x361cc5&&_0x4fb729[_0x2580c6(0x97)](NPX_SKILLS_FLAG_SKILL,_0x361cc5),_0x4fb729;}export const NPX_SKILLS_ADD_COMMAND_LINE=['npx',...buildNpxSkillsAddArgv()][a192_0x2fb6c6(0x8d)]('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a192_0x2fb6c6(0x94),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a192_0x2fb6c6(0x8d)]('\x20');export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x5ded4f,_0x5f3fca){const _0x1aa8ef=a192_0x2fb6c6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x156e69=_0x5f3fca?.[_0x1aa8ef(0x9b)]??_0x1aa8ef(0xa3),_0x2b8736=resolveNpmBin(_0x1aa8ef(0x94)),_0x3f5b36=buildNpxSkillsAddArgv(_0x5f3fca?.['skill']),_0x4210e1=[_0x1aa8ef(0x94),..._0x3f5b36]['join']('\x20');console[_0x1aa8ef(0x98)]('*\x20'+_0x4210e1);const _0x2dc28d=spawnSync(_0x2b8736,_0x3f5b36,{'cwd':_0x5ded4f,'stdio':_0x156e69,'env':process.env,'shell':![]}),_0x18d72f=_0x2dc28d[_0x1aa8ef(0x96)];if(_0x18d72f===0x0)return{'ok':!![],'status':0x0};let _0xe1df24=_0x1aa8ef(0xa2)+(_0x18d72f??_0x1aa8ef(0x95));if(_0x156e69===_0x1aa8ef(0x9f)){const _0x436c91=_0x2dc28d[_0x1aa8ef(0x8a)]?_0x2dc28d[_0x1aa8ef(0x8a)]['toString']()[_0x1aa8ef(0x8c)]():'',_0x288bb0=_0x2dc28d['stdout']?_0x2dc28d[_0x1aa8ef(0x86)][_0x1aa8ef(0x93)]()[_0x1aa8ef(0x8c)]():'';if(_0x436c91)_0xe1df24=_0x436c91;else{if(_0x288bb0)_0xe1df24=_0x288bb0;}}return{'ok':![],'status':_0x18d72f??null,'error':_0xe1df24};}export function runNpxSkillsRemove(_0xb2f9b4,_0x1f25b3,_0x3d3b93=LEGACY_RABETBASE_SKILL_SOURCE){const _0x29d33f=a192_0x2fb6c6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x14a659=_0x1f25b3?.[_0x29d33f(0x9b)]??'inherit',_0x29260c=resolveNpmBin(_0x29d33f(0x94)),_0x64c7eb=[NPX_FLAG_YES,NPX_SKILLS_CLI,_0x29d33f(0x8b),_0x3d3b93,NPX_SKILLS_FLAG_SKILL,_0x1f25b3?.[_0x29d33f(0x90)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x1f25b3?.['yes']?['-y']:[]],_0x3b8078=[_0x29260c,..._0x64c7eb][_0x29d33f(0x8d)]('\x20');console['log']('*\x20'+_0x3b8078);const _0x47df7d=spawnSync(_0x29260c,_0x64c7eb,{'cwd':_0xb2f9b4,'stdio':_0x14a659,'env':process.env,'shell':![]}),_0x9a7a3e=_0x47df7d[_0x29d33f(0x96)];if(_0x9a7a3e===0x0)return{'ok':!![],'status':0x0};let _0x449139=_0x29d33f(0xa2)+(_0x9a7a3e??_0x29d33f(0x95));if(_0x14a659===_0x29d33f(0x9f)){const _0x1e8468=_0x47df7d['stderr']?_0x47df7d[_0x29d33f(0x8a)][_0x29d33f(0x93)]()['trim']():'',_0x3b810e=_0x47df7d[_0x29d33f(0x86)]?_0x47df7d[_0x29d33f(0x86)][_0x29d33f(0x93)]()['trim']():'';if(_0x1e8468)_0x449139=_0x1e8468;else{if(_0x3b810e)_0x449139=_0x3b810e;}}return{'ok':![],'status':_0x9a7a3e??null,'error':_0x449139};}function a192_0x3d2c(){const _0x19f3b0=['44149190uwzUpG','toString','npx','unknown','status','push','log','skills','--skill','stdio','add','666948MWCqAz','12897269dQNtnl','pipe','11DIUPeP','lovrabet/rabetbase','exit\x20','inherit','1671028ETxfBJ','142904QfUyIi','stdout','4ytEIzt','99451WYJJsH','2793147hnzymw','stderr','remove','trim','join','Lovrabet','20TjhIod','skill','207WUaANA'];a192_0x3d2c=function(){return _0x19f3b0;};return a192_0x3d2c();}export function runNpxSkillsAddGlobal(_0x411c15,_0x18dd7b,_0x504360){const _0x6d75cd=a192_0x2fb6c6;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x299f53=_0x504360?.['stdio']??'inherit',_0x4f8394=resolveNpmBin(_0x6d75cd(0x94)),_0x7653bc=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x18dd7b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x487be9=[_0x6d75cd(0x94),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0x18dd7b,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x6d75cd(0x8d)]('\x20');console['log']('*\x20'+_0x487be9);const _0xa07dbe=spawnSync(_0x4f8394,_0x7653bc,{'cwd':_0x411c15,'stdio':_0x299f53,'env':process.env,'shell':![]}),_0x450961=_0xa07dbe[_0x6d75cd(0x96)];if(_0x450961===0x0)return{'ok':!![],'status':0x0};let _0x481ffb=_0x6d75cd(0xa2)+(_0x450961??_0x6d75cd(0x95));if(_0x299f53===_0x6d75cd(0x9f)){const _0x41841d=_0xa07dbe[_0x6d75cd(0x8a)]?_0xa07dbe[_0x6d75cd(0x8a)][_0x6d75cd(0x93)]()['trim']():'',_0x5d9930=_0xa07dbe[_0x6d75cd(0x86)]?_0xa07dbe[_0x6d75cd(0x86)][_0x6d75cd(0x93)]()[_0x6d75cd(0x8c)]():'';if(_0x41841d)_0x481ffb=_0x41841d;else{if(_0x5d9930)_0x481ffb=_0x5d9930;}}return{'ok':![],'status':_0x450961??null,'error':_0x481ffb};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a193_0x3f72(_0x2c3244,_0x1931dd){_0x2c3244=_0x2c3244-0x1b1;const _0x1a8470=a193_0x1a84();let _0x3f72ed=_0x1a8470[_0x2c3244];return _0x3f72ed;}(function(_0x3a064b,_0x844954){const _0xad0465=a193_0x3f72,_0xf197c9=_0x3a064b();while(!![]){try{const _0x411ec1=-parseInt(_0xad0465(0x1c4))/0x1*(parseInt(_0xad0465(0x1c6))/0x2)+parseInt(_0xad0465(0x1b5))/0x3*(parseInt(_0xad0465(0x1b9))/0x4)+-parseInt(_0xad0465(0x1b3))/0x5*(-parseInt(_0xad0465(0x1bd))/0x6)+parseInt(_0xad0465(0x1c2))/0x7*(parseInt(_0xad0465(0x1c0))/0x8)+-parseInt(_0xad0465(0x1b1))/0x9+parseInt(_0xad0465(0x1ba))/0xa+-parseInt(_0xad0465(0x1b8))/0xb;if(_0x411ec1===_0x844954)break;else _0xf197c9['push'](_0xf197c9['shift']());}catch(_0x5a1bcd){_0xf197c9['push'](_0xf197c9['shift']());}}}(a193_0x1a84,0x8eefa));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a193_0x1a84(){const _0x4396d5=['stringify','20499655Fsjstp','7268PkexOH','9194150iLPLzN','durationMs','rabetbase.command','54942bSyOox','test','message','1464IXrqOw','entries','25907SCIVSC','command','4ioGEmo','service','163428FEbDuD','3559041WSUYnk','flags','585PqwJsR','error','831NDTCwS','[REDACTED]'];a193_0x1a84=function(){return _0x4396d5;};return a193_0x1a84();}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(_0x1e35d8){const _0x204768=a193_0x3f72;return SENSITIVE_PATTERNS['some'](_0x304bf6=>_0x304bf6[_0x204768(0x1be)](_0x1e35d8));}function sanitizeFlags(_0x183a31){const _0x42c9ea=a193_0x3f72,_0x15e7e0={};for(const [_0x8c0cdd,_0x1cd237]of Object[_0x42c9ea(0x1c1)](_0x183a31)){isSensitiveKey(_0x8c0cdd)?_0x15e7e0[_0x8c0cdd]=_0x1cd237!=null&&_0x1cd237!==''?_0x42c9ea(0x1b6):_0x1cd237:_0x15e7e0[_0x8c0cdd]=_0x1cd237;}return _0x15e7e0;}export async function reportCommandTrace(_0x8c9f4){const _0x3fe996=a193_0x3f72;try{const _0x37bb0a=sanitizeFlags(_0x8c9f4[_0x3fe996(0x1b2)]);await sendCliTraceLog({'spanName':_0x3fe996(0x1bc),'logData':{'command.cli_version':getCliVersion(),'command.service':_0x8c9f4[_0x3fe996(0x1c5)],'command.name':_0x8c9f4[_0x3fe996(0x1c3)],'command.flags':JSON[_0x3fe996(0x1b7)](_0x37bb0a),..._0x8c9f4[_0x3fe996(0x1bb)]!=null?{'command.duration_ms':_0x8c9f4[_0x3fe996(0x1bb)]}:{},..._0x8c9f4[_0x3fe996(0x1b4)]?{'command.error':_0x8c9f4['error']instanceof Error?_0x8c9f4[_0x3fe996(0x1b4)][_0x3fe996(0x1bf)]:String(_0x8c9f4[_0x3fe996(0x1b4)])}:{}}});}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x295664,_0x346a68){var _0x269432=a194_0x16d0,_0x2b2dcf=_0x295664();while(!![]){try{var _0x3cb010=parseInt(_0x269432(0x165))/0x1*(parseInt(_0x269432(0x166))/0x2)+-parseInt(_0x269432(0x16a))/0x3*(-parseInt(_0x269432(0x160))/0x4)+-parseInt(_0x269432(0x162))/0x5*(-parseInt(_0x269432(0x16e))/0x6)+-parseInt(_0x269432(0x163))/0x7+parseInt(_0x269432(0x161))/0x8*(parseInt(_0x269432(0x169))/0x9)+parseInt(_0x269432(0x16b))/0xa*(-parseInt(_0x269432(0x168))/0xb)+-parseInt(_0x269432(0x16d))/0xc*(parseInt(_0x269432(0x164))/0xd);if(_0x3cb010===_0x346a68)break;else _0x2b2dcf['push'](_0x2b2dcf['shift']());}catch(_0x2994e8){_0x2b2dcf['push'](_0x2b2dcf['shift']());}}}(a194_0x452c,0x3528f));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a194_0x16d0(_0x409194,_0x3d8536){_0x409194=_0x409194-0x160;var _0x452c3a=a194_0x452c();var _0x16d0fa=_0x452c3a[_0x409194];return _0x16d0fa;}export async function reportCliHelpTrace(_0x59320d,_0x12962e){var _0x4283b4=a194_0x16d0;try{await sendCliTraceLog({'spanName':_0x4283b4(0x16c),'logData':{'rabetbase.help.kind':_0x59320d,..._0x12962e?.['service']&&{'rabetbase.help.service':_0x12962e['service']}}});}catch(_0x314de3){console[_0x4283b4(0x167)]('Failed\x20to\x20report\x20CLI\x20help\x20trace:',_0x314de3);}}function a194_0x452c(){var _0x5989e9=['2iPbJBv','277598diGMgI','error','1695122nrvzxt','1165815ygvpZe','142521zcltLN','10IPFvrd','cli.help','12FzbUJI','1146OjLtVx','28KBhmDx','24MQfyVw','2615rXOXUL','3039757UVhGFb','3803137UxKdHa'];a194_0x452c=function(){return _0x5989e9;};return a194_0x452c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a195_0x4bbe(_0x57945b,_0x345c14){_0x57945b=_0x57945b-0x1e4;const _0x45ca20=a195_0x45ca();let _0x4bbe39=_0x45ca20[_0x57945b];return _0x4bbe39;}(function(_0x11aca5,_0x18bed5){const _0xa761de=a195_0x4bbe,_0x809efc=_0x11aca5();while(!![]){try{const _0x19704a=-parseInt(_0xa761de(0x1e5))/0x1+parseInt(_0xa761de(0x1ec))/0x2+parseInt(_0xa761de(0x1f0))/0x3*(parseInt(_0xa761de(0x1ed))/0x4)+parseInt(_0xa761de(0x1e9))/0x5*(-parseInt(_0xa761de(0x1ea))/0x6)+-parseInt(_0xa761de(0x1e4))/0x7+parseInt(_0xa761de(0x1e8))/0x8*(parseInt(_0xa761de(0x1ee))/0x9)+-parseInt(_0xa761de(0x1ef))/0xa;if(_0x19704a===_0x18bed5)break;else _0x809efc['push'](_0x809efc['shift']());}catch(_0x47009f){_0x809efc['push'](_0x809efc['shift']());}}}(a195_0x45ca,0xd0486));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';function a195_0x45ca(){const _0x3279d8=['production','1934660kRxLjY','812904xMPmom','11115uGKnlJ','643280RfwMiO','9WMDaxX','username','unknown','daily','email','656404vPMQRm','343336KPDoJj','tenant','tenant_code','3000SIEQDd','3427855ENQZeu','6bFaSGc'];a195_0x45ca=function(){return _0x3279d8;};return a195_0x45ca();}let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x206d9b=a195_0x4bbe,_0x4e7fe4=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x474284=_0x4e7fe4?.['user'];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x206d9b(0x1f2)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x206d9b(0x1f3):_0x206d9b(0x1eb))}),setUserContext({'id':_0x474284?.['id'],'username':_0x474284?.[_0x206d9b(0x1f1)],'nickname':_0x474284?.['nickname'],'email':_0x474284?.[_0x206d9b(0x1f4)],'tenantCode':_0x474284?.[_0x206d9b(0x1e6)][_0x206d9b(0x1e7)],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x4e7fe4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xfee4f0,_0x34a95f){const _0xc31481=a196_0xe1fc,_0x5010ec=_0xfee4f0();while(!![]){try{const _0x3d674f=parseInt(_0xc31481(0x13b))/0x1*(-parseInt(_0xc31481(0x147))/0x2)+parseInt(_0xc31481(0x148))/0x3*(-parseInt(_0xc31481(0x139))/0x4)+parseInt(_0xc31481(0x144))/0x5*(parseInt(_0xc31481(0x13e))/0x6)+parseInt(_0xc31481(0x13d))/0x7*(parseInt(_0xc31481(0x142))/0x8)+parseInt(_0xc31481(0x14a))/0x9+parseInt(_0xc31481(0x140))/0xa+parseInt(_0xc31481(0x146))/0xb*(-parseInt(_0xc31481(0x13f))/0xc);if(_0x3d674f===_0x34a95f)break;else _0x5010ec['push'](_0x5010ec['shift']());}catch(_0x358671){_0x5010ec['push'](_0x5010ec['shift']());}}}(a196_0x160f,0x399ab));function a196_0x160f(){const _0x2fa112=['once','1164815vCnTFq','SIGTERM','150117OtIBcb','2mJswox','111234csFTqE','exit','2036700yHCirG','20mRGKnx','then','295570iGrWdS','beforeExit','21dQgJib','6GkOdTW','120IUOtfo','932920EOfOuI','SIGINT','802192gxIQhD'];a196_0x160f=function(){return _0x2fa112;};return a196_0x160f();}function a196_0xe1fc(_0x1d3099,_0x277df0){_0x1d3099=_0x1d3099-0x139;const _0x160f85=a196_0x160f();let _0xe1fcc=_0x160f85[_0x1d3099];return _0xe1fcc;}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x3648a7=a196_0xe1fc;process[_0x3648a7(0x143)](_0x3648a7(0x13c),()=>{void flushOtelNodeIfUsed();});const _0x43fe4d=()=>{const _0x25ccf1=_0x3648a7;void flushOtelNodeIfUsed()[_0x25ccf1(0x13a)](()=>process[_0x25ccf1(0x149)](0x0));};process[_0x3648a7(0x143)](_0x3648a7(0x141),_0x43fe4d),process[_0x3648a7(0x143)](_0x3648a7(0x145),_0x43fe4d);}export async function exitWithOtelShutdown(_0x158705){const _0x1ed7bb=a196_0xe1fc;await flushOtelNodeIfUsed(),process[_0x1ed7bb(0x149)](_0x158705);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4f57cd,_0x4451dd){const _0x53f1b1=a197_0x1b24,_0x2b14cc=_0x4f57cd();while(!![]){try{const _0x512c13=parseInt(_0x53f1b1(0x133))/0x1+-parseInt(_0x53f1b1(0x12a))/0x2+parseInt(_0x53f1b1(0x12c))/0x3+-parseInt(_0x53f1b1(0x12f))/0x4+-parseInt(_0x53f1b1(0x129))/0x5+-parseInt(_0x53f1b1(0x128))/0x6+-parseInt(_0x53f1b1(0x12b))/0x7*(-parseInt(_0x53f1b1(0x12e))/0x8);if(_0x512c13===_0x4451dd)break;else _0x2b14cc['push'](_0x2b14cc['shift']());}catch(_0x55ebd9){_0x2b14cc['push'](_0x2b14cc['shift']());}}}(a197_0xe2cc,0xb3d07));import{sendTraceLog}from'@lovrabet/otel-logger';function a197_0x1b24(_0xabc7d4,_0x1c823f){_0xabc7d4=_0xabc7d4-0x128;const _0xe2cc2a=a197_0xe2cc();let _0x1b2485=_0xe2cc2a[_0xabc7d4];return _0x1b2485;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x28c2ac){const _0x1cfc67=a197_0x1b24;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x28c2ac[_0x1cfc67(0x132)]??DEFAULT_TRACE_NAME,'version':_0x28c2ac['version']??getCliVersion(),'spanName':_0x28c2ac['spanName'],'eventType':_0x1cfc67(0x12d),'logData':_0x28c2ac[_0x1cfc67(0x130)],..._0x28c2ac[_0x1cfc67(0x131)]&&{'traceparent':_0x28c2ac[_0x1cfc67(0x131)]}});}function a197_0xe2cc(){const _0x30b3f4=['logData','traceparent','traceName','707848NuYkoW','4130112HWnlsW','2607085wbRloV','2885470qaZuTx','119763KIDMUy','2410737fInFtY','manual','1480MEHHkj','5150276PilzLj'];a197_0xe2cc=function(){return _0x30b3f4;};return a197_0xe2cc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a198_0x29f5(){const _0x3d7946=['389590kpartV','4230387ilLGKt','issue.log.collect','platform-issue-log-collect','212KBiYJv','sanitize','326IgRSZj','1014822SFpxfT','36415MWLnKg','description','truncated','6006KkJJKv','join','originalBytes','redactionCount','1985WEuBmv','728472OHFQVA','1379WVvpmS'];a198_0x29f5=function(){return _0x3d7946;};return a198_0x29f5();}const a198_0xc78d06=a198_0x5c9a;(function(_0x179c7f,_0x10c4ed){const _0x5ad41e=a198_0x5c9a,_0x30f69d=_0x179c7f();while(!![]){try{const _0x1b3a1d=parseInt(_0x5ad41e(0xa1))/0x1*(-parseInt(_0x5ad41e(0xaa))/0x2)+parseInt(_0x5ad41e(0xab))/0x3+parseInt(_0x5ad41e(0xa8))/0x4*(-parseInt(_0x5ad41e(0xac))/0x5)+-parseInt(_0x5ad41e(0xaf))/0x6*(-parseInt(_0x5ad41e(0xa3))/0x7)+-parseInt(_0x5ad41e(0xa2))/0x8+parseInt(_0x5ad41e(0xa5))/0x9+parseInt(_0x5ad41e(0xa4))/0xa;if(_0x1b3a1d===_0x10c4ed)break;else _0x30f69d['push'](_0x30f69d['shift']());}catch(_0x5bdcb8){_0x30f69d['push'](_0x30f69d['shift']());}}}(a198_0x29f5,0x3b894));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a198_0xc78d06(0xa7);export const PLATFORM_ISSUE_SPAN_NAME=a198_0xc78d06(0xa6);function a198_0x5c9a(_0x1ffffd,_0x1d849f){_0x1ffffd=_0x1ffffd-0xa1;const _0x29f5b6=a198_0x29f5();let _0x5c9a71=_0x29f5b6[_0x1ffffd];return _0x5c9a71;}export async function sendPlatformIssueCollectLog(_0xfa1999){const _0x587242=a198_0xc78d06;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0xfa1999['title'],'issue.description':_0xfa1999[_0x587242(0xad)],..._0xfa1999[_0x587242(0xa9)]?{'issue.description_original_bytes':_0xfa1999[_0x587242(0xa9)][_0x587242(0xb1)],'issue.description_truncated':_0xfa1999['sanitize'][_0x587242(0xae)],'issue.description_redactions':_0xfa1999['sanitize'][_0x587242(0xb2)],'issue.description_redaction_kinds':_0xfa1999[_0x587242(0xa9)]['redactionKinds'][_0x587242(0xb0)](',')}:{}}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x14008a=a200_0x4947;(function(_0x137272,_0x475625){const _0x50f42c=a200_0x4947,_0x39a029=_0x137272();while(!![]){try{const _0x5e050a=-parseInt(_0x50f42c(0xb5))/0x1+-parseInt(_0x50f42c(0xc8))/0x2+-parseInt(_0x50f42c(0xc4))/0x3*(parseInt(_0x50f42c(0xd4))/0x4)+-parseInt(_0x50f42c(0xdd))/0x5*(parseInt(_0x50f42c(0xda))/0x6)+-parseInt(_0x50f42c(0xcf))/0x7+-parseInt(_0x50f42c(0xac))/0x8+-parseInt(_0x50f42c(0xcd))/0x9*(-parseInt(_0x50f42c(0xc2))/0xa);if(_0x5e050a===_0x475625)break;else _0x39a029['push'](_0x39a029['shift']());}catch(_0x3fd02d){_0x39a029['push'](_0x39a029['shift']());}}}(a200_0x37e4,0x7376e));export const CORE_IDE_CONFIGS={'cursor':{'name':a200_0x14008a(0xc6),'description':a200_0x14008a(0xd8),'folders':[a200_0x14008a(0xc7),a200_0x14008a(0xaa)],'files':[{'type':a200_0x14008a(0xbc),'path':a200_0x14008a(0xad),'template':a200_0x14008a(0xaf)}]},'windsurf':{'name':'Windsurf','description':a200_0x14008a(0xae),'folders':[a200_0x14008a(0xbf)],'files':[{'type':a200_0x14008a(0xbc),'path':'.windsurf/workflows/rabetbase.md','template':a200_0x14008a(0xaf)}]},'claude':{'name':'Claude\x20Code','description':a200_0x14008a(0xd9),'folders':[a200_0x14008a(0xbd)],'files':[{'type':'file','path':a200_0x14008a(0xc3),'template':a200_0x14008a(0xaf)}]},'cline':{'name':a200_0x14008a(0xb8),'description':a200_0x14008a(0xd6),'folders':[a200_0x14008a(0xb4)],'files':[{'type':a200_0x14008a(0xbc),'path':'.cline/skills/lovrabet/SKILL.md','template':a200_0x14008a(0xaf)}]},'codex':{'name':a200_0x14008a(0xcc),'description':a200_0x14008a(0xca),'folders':['.codex'],'files':[{'type':a200_0x14008a(0xbc),'path':a200_0x14008a(0xc0),'template':'SKILL.md.tpl'}]},'opencode':{'name':'OpenCode','description':a200_0x14008a(0xc5),'folders':[a200_0x14008a(0xb1)],'files':[{'type':a200_0x14008a(0xbc),'path':'.opencode/skills/lovrabet/SKILL.md','template':a200_0x14008a(0xaf)}]},'qoder':{'name':a200_0x14008a(0xb6),'description':a200_0x14008a(0xce),'folders':[a200_0x14008a(0xd0)],'files':[{'type':a200_0x14008a(0xbc),'path':a200_0x14008a(0xc1),'template':a200_0x14008a(0xaf)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md','template':a200_0x14008a(0xaf)}]},'codebuddy':{'name':a200_0x14008a(0xab),'description':a200_0x14008a(0xb9),'folders':['.codebuddy'],'files':[{'type':a200_0x14008a(0xbc),'path':a200_0x14008a(0xd1),'template':a200_0x14008a(0xaf)}]},'trae':{'name':a200_0x14008a(0xb7),'description':a200_0x14008a(0xd5),'folders':[a200_0x14008a(0xd3)],'files':[{'type':a200_0x14008a(0xbc),'path':a200_0x14008a(0xcb),'template':a200_0x14008a(0xaf)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a200_0x14008a(0xb2),'description':'通用模板\x20-\x20兜底方案','folders':[a200_0x14008a(0xb0)],'files':[{'type':a200_0x14008a(0xbc),'path':a200_0x14008a(0xdf),'template':a200_0x14008a(0xaf)}]},'antigravity':{'name':'Antigravity','description':a200_0x14008a(0xa9),'folders':[a200_0x14008a(0xb0)],'files':[{'type':'file','path':a200_0x14008a(0xdf),'template':a200_0x14008a(0xaf)}]}};export const CORE_IDE_LIST=[a200_0x14008a(0xb3),a200_0x14008a(0xd7),a200_0x14008a(0xd2),a200_0x14008a(0xbb),a200_0x14008a(0xdc),a200_0x14008a(0xc9),a200_0x14008a(0xdb),'trae',a200_0x14008a(0xba)];export const IDE_LIST=['antigravity',a200_0x14008a(0xb3),a200_0x14008a(0xd7),'codebuddy',a200_0x14008a(0xbb),a200_0x14008a(0xdc),a200_0x14008a(0xc9),'qoder',a200_0x14008a(0xbe),a200_0x14008a(0xba),a200_0x14008a(0xde)];function a200_0x37e4(){const _0x71553=['4923443PjzoED','.qoder','.codebuddy/skills/lovrabet/SKILL.md','codebuddy','.trae','36KoEKpy','Trae\x20IDE','Cline\x20IDE','cline','Cursor\x20IDE','Claude\x20Code','850716BTvnax','qoder','cursor','5JDTynN','agent','.agent/skills/lovrabet/SKILL.md','Antigravity\x20IDE','.cursor','CodeBuddy','4201208ToOSfz','.cursor/skills/rabetbase.md','Windsurf\x20IDE','SKILL.md.tpl','.agent','.opencode','其他\x20(通用模板)','claude','.cline','527018MxnpyI','Qoder','Trae','Cline','CodeBuddy\x20IDE','windsurf','codex','file','.claude','trae','.windsurf','.codex/skills/lovrabet/SKILL.md','.qoder/rules/rabetbase.md','36030ymWjpH','.claude/skills/lovrabet/SKILL.md','87411PYYvXA','OpenCode\x20IDE','Cursor','.cursorrules','1775304RImnob','opencode','Codex\x20IDE','.trae/skills/lovrabet/SKILL.md','Codex','8793rROalp','Qoder\x20IDE'];a200_0x37e4=function(){return _0x71553;};return a200_0x37e4();}function a200_0x4947(_0xfe3f5e,_0x2153a0){_0xfe3f5e=_0xfe3f5e-0xa9;const _0x37e401=a200_0x37e4();let _0x494765=_0x37e401[_0xfe3f5e];return _0x494765;}export const ALL_CORE_IDES=[a200_0x14008a(0xdc),a200_0x14008a(0xba),a200_0x14008a(0xb3),'cline','codex','opencode',a200_0x14008a(0xdb),a200_0x14008a(0xd2),a200_0x14008a(0xbe)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xddc464,_0x3089b1){const _0x49e74e=a201_0x5dc9,_0x9e6d45=_0xddc464();while(!![]){try{const _0x41371e=parseInt(_0x49e74e(0x1cf))/0x1*(parseInt(_0x49e74e(0x1c8))/0x2)+-parseInt(_0x49e74e(0x1cb))/0x3*(parseInt(_0x49e74e(0x1c7))/0x4)+-parseInt(_0x49e74e(0x1d1))/0x5+parseInt(_0x49e74e(0x1cc))/0x6+-parseInt(_0x49e74e(0x1ce))/0x7+-parseInt(_0x49e74e(0x1ca))/0x8*(-parseInt(_0x49e74e(0x1c9))/0x9)+-parseInt(_0x49e74e(0x1cd))/0xa*(-parseInt(_0x49e74e(0x1d0))/0xb);if(_0x41371e===_0x3089b1)break;else _0x9e6d45['push'](_0x9e6d45['shift']());}catch(_0x5bace5){_0x9e6d45['push'](_0x9e6d45['shift']());}}}(a201_0x5df0,0xc6f1b));function a201_0x5dc9(_0x2a466b,_0x404cf4){_0x2a466b=_0x2a466b-0x1c7;const _0x5df0e4=a201_0x5df0();let _0x5dc9d9=_0x5df0e4[_0x2a466b];return _0x5dc9d9;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a201_0x5df0(){const _0x1a6480=['6pXWCjv','891441MUUTrQ','8oyeVxL','3CTtCrF','5281386frYnvp','30fKcyAy','9679152kjhDHv','380194VqkJDt','9212918ZKwFZu','5963205HTLofv','4968896sivMGO'];a201_0x5df0=function(){return _0x1a6480;};return a201_0x5df0();}
|
package/lib/utils/cdn-config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x323bfb,_0x413e31){const _0xf8a4e8=a202_0x38f5,_0x507c27=_0x323bfb();while(!![]){try{const _0x241530=-parseInt(_0xf8a4e8(0xe8))/0x1+-parseInt(_0xf8a4e8(0xdd))/0x2+parseInt(_0xf8a4e8(0xdb))/0x3*(parseInt(_0xf8a4e8(0xde))/0x4)+parseInt(_0xf8a4e8(0xda))/0x5*(parseInt(_0xf8a4e8(0xe0))/0x6)+-parseInt(_0xf8a4e8(0xe5))/0x7*(parseInt(_0xf8a4e8(0xe2))/0x8)+-parseInt(_0xf8a4e8(0xe1))/0x9*(-parseInt(_0xf8a4e8(0xdc))/0xa)+parseInt(_0xf8a4e8(0xe3))/0xb;if(_0x241530===_0x413e31)break;else _0x507c27['push'](_0x507c27['shift']());}catch(_0x80193a){_0x507c27['push'](_0x507c27['shift']());}}}(a202_0x28c7,0x70609));import{getTemplateBaseUrl}from'../utils/config.js';function a202_0x28c7(){const _0x28a5c3=['cli','2379348cVuKsy','9DNoqhD','8oiPsJQ','13511817lXzpbA','/config.json','4467197xrcTsV','stableVersion','json','690548MekpOe','/config/index.json','5fjamkZ','2653611zBgLFM','176450AAQRGX','1476142CTrGsy','4vrBqUl'];a202_0x28c7=function(){return _0x28a5c3;};return a202_0x28c7();}export async function fetchCdnConfig(){const _0x59407c=a202_0x38f5,_0x542f2e=getTemplateBaseUrl(),_0x3fd82f=[_0x542f2e+_0x59407c(0xe4),_0x542f2e+_0x59407c(0xe9)];for(const _0x2a1c04 of _0x3fd82f){try{const _0x3cf4ce=await fetch(_0x2a1c04,{'headers':{'Accept':'application/json'}});if(!_0x3cf4ce['ok'])continue;const _0x42fbfc=await _0x3cf4ce[_0x59407c(0xe7)]();if(!_0x42fbfc[_0x59407c(0xdf)]?.[_0x59407c(0xe6)]||!_0x42fbfc['sdk']?.['node']?.[_0x59407c(0xe6)])continue;return _0x42fbfc;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a202_0x38f5(_0x4be9a5,_0x4dddea){_0x4be9a5=_0x4be9a5-0xda;const _0x28c764=a202_0x28c7();let _0x38f59c=_0x28c764[_0x4be9a5];return _0x38f59c;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0xc6bd6c=Date['now']();if(hasCachedConfig){const _0x2fc745=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xc6bd6c-cacheTime<_0x2fc745)return cachedConfig;}const _0x489b23=await fetchCdnConfig();return cachedConfig=_0x489b23,cacheTime=_0xc6bd6c,hasCachedConfig=!![],_0x489b23;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x24996a,_0x347a49){const _0x109267=a203_0x27bb,_0x1fa143=_0x24996a();while(!![]){try{const _0x266618=-parseInt(_0x109267(0x10d))/0x1+parseInt(_0x109267(0x11a))/0x2+-parseInt(_0x109267(0x120))/0x3*(parseInt(_0x109267(0x12d))/0x4)+parseInt(_0x109267(0x115))/0x5+parseInt(_0x109267(0x127))/0x6*(parseInt(_0x109267(0x11d))/0x7)+-parseInt(_0x109267(0x11c))/0x8*(-parseInt(_0x109267(0x110))/0x9)+-parseInt(_0x109267(0x128))/0xa;if(_0x266618===_0x347a49)break;else _0x1fa143['push'](_0x1fa143['shift']());}catch(_0x118d26){_0x1fa143['push'](_0x1fa143['shift']());}}}(a203_0x2981,0xb5789));function a203_0x27bb(_0x55da9f,_0x27cfb4){_0x55da9f=_0x55da9f-0x10c;const _0x298174=a203_0x2981();let _0x27bbb6=_0x298174[_0x55da9f];return _0x27bbb6;}function a203_0x2981(){const _0x33b1c4=['minVersion','test','some','1127429IbAGIA','package.json','log','108tBDycW','existsSync','\x1b[1m','node_modules','\x1b[0m','6561575dclinX','\x1b[33m','packageName','readFileSync','devDependencies','70030ihCJYv','all','982952mPBrpe','72121MyVjOC','node','sdk','3709185owqUgg','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','↪\x20SDK\x20update\x20available','utf8','702NmnmMP','9200800tDHUCA','join','dependencies','utf-8','parse','4Thyizb','stableVersion','@lovrabet/sdk','version','needsUpgrade','coerce'];a203_0x2981=function(){return _0x33b1c4;};return a203_0x2981();}import a203_0x491560 from'node:fs';import a203_0x345a6d from'node:path';import a203_0x2c7d03 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x51c6c3){const _0x569d14=a203_0x27bb,_0x6ce4=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x6ce4[_0x569d14(0x10c)](_0x53cc5a=>_0x53cc5a[_0x569d14(0x134)](_0x51c6c3));}function getInstalledVersion(_0x2d24a5,_0x24c5cf){const _0x1ab627=a203_0x27bb;try{const _0x30d769=a203_0x345a6d[_0x1ab627(0x129)](_0x2d24a5,_0x1ab627(0x113),_0x24c5cf,_0x1ab627(0x10e));if(a203_0x491560[_0x1ab627(0x111)](_0x30d769)){const _0x28c6f4=JSON[_0x1ab627(0x12c)](a203_0x491560[_0x1ab627(0x118)](_0x30d769,_0x1ab627(0x12b)));return _0x28c6f4['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4485b1=a203_0x27bb;try{const _0x34dd74=await getCdnConfig();return _0x34dd74?.[_0x4485b1(0x11f)]?.['node']?.[_0x4485b1(0x12e)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x351bfb=a203_0x27bb;try{const _0x122608=await getCdnConfig();return _0x122608?.[_0x351bfb(0x11f)]?.[_0x351bfb(0x11e)]?.[_0x351bfb(0x117)]||_0x351bfb(0x12f);}catch{return _0x351bfb(0x12f);}}export async function checkSdkVersion(_0x139a3c){const _0x14d062=a203_0x27bb,_0x203891=a203_0x345a6d[_0x14d062(0x129)](_0x139a3c,_0x14d062(0x10e)),[_0x1913c3,_0x4d293f]=await Promise[_0x14d062(0x11b)]([getSdkStableVersion(),getSdkPackageName()]),_0x4a3fc5=_0x1913c3||FALLBACK_MIN_SDK_VERSION;if(!a203_0x491560['existsSync'](_0x203891))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4a3fc5,'packageName':_0x4d293f,'stableVersion':_0x1913c3};try{const _0x17d184=JSON[_0x14d062(0x12c)](a203_0x491560[_0x14d062(0x118)](_0x203891,_0x14d062(0x126))),_0x3ba868=_0x17d184[_0x14d062(0x12a)]||{},_0xde21f9=_0x17d184[_0x14d062(0x119)]||{},_0x58050e=_0x3ba868[_0x4d293f]||_0xde21f9[_0x4d293f];if(!_0x58050e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4a3fc5,'packageName':_0x4d293f,'stableVersion':_0x1913c3};let _0x53906c=getInstalledVersion(_0x139a3c,_0x4d293f);!_0x53906c&&(_0x53906c=_0x58050e);if(isNonNumericVersion(_0x58050e))return{'installed':!![],'version':_0x53906c,'needsUpgrade':![],'minVersion':_0x4a3fc5,'packageName':_0x4d293f,'stableVersion':_0x1913c3};const _0x5eaa28=a203_0x2c7d03[_0x14d062(0x132)](_0x53906c),_0x1c0183=a203_0x2c7d03['coerce'](_0x4a3fc5),_0x5f5a33=_0x5eaa28&&_0x1c0183?a203_0x2c7d03['lt'](_0x5eaa28,_0x1c0183):![];return{'installed':!![],'version':_0x53906c,'needsUpgrade':_0x5f5a33,'minVersion':_0x4a3fc5,'packageName':_0x4d293f,'stableVersion':_0x1913c3};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4a3fc5,'packageName':_0x4d293f,'stableVersion':_0x1913c3};}}export function checkSdkVersionSync(_0x4dfa8c){const _0x32b055=a203_0x27bb,_0xa8c481=a203_0x345a6d[_0x32b055(0x129)](_0x4dfa8c,_0x32b055(0x10e)),_0x5d5491='@lovrabet/sdk';if(!a203_0x491560['existsSync'](_0xa8c481))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d5491,'stableVersion':null};try{const _0x41cdd4=JSON[_0x32b055(0x12c)](a203_0x491560[_0x32b055(0x118)](_0xa8c481,_0x32b055(0x126))),_0x52dbe8=_0x41cdd4[_0x32b055(0x12a)]||{},_0x188e47=_0x41cdd4['devDependencies']||{},_0x3e28fd=_0x52dbe8[_0x5d5491]||_0x188e47[_0x5d5491];if(!_0x3e28fd)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d5491,'stableVersion':null};let _0x580b83=getInstalledVersion(_0x4dfa8c,_0x5d5491);!_0x580b83&&(_0x580b83=_0x3e28fd);if(isNonNumericVersion(_0x3e28fd))return{'installed':!![],'version':_0x580b83,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d5491,'stableVersion':null};const _0x8913ed=a203_0x2c7d03[_0x32b055(0x132)](_0x580b83),_0x238389=_0x8913ed?a203_0x2c7d03['lt'](_0x8913ed,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x580b83,'needsUpgrade':_0x238389,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d5491,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5d5491,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5b1a13){const _0x2da47d=a203_0x27bb;if(!_0x5b1a13[_0x2da47d(0x131)])return;const _0x1a4b1b=_0x2da47d(0x116),_0x1e3c8c=_0x2da47d(0x114),_0x3583c5=_0x2da47d(0x112),_0x56e700=_0x5b1a13[_0x2da47d(0x117)]||_0x2da47d(0x12f),_0x5b076a=_0x5b1a13[_0x2da47d(0x12e)]||_0x5b1a13[_0x2da47d(0x133)],_0x58313b=_0x2da47d(0x124)+_0x56e700+'@'+(_0x5b076a||'latest');console[_0x2da47d(0x10f)](),console[_0x2da47d(0x10f)](''+_0x1a4b1b+_0x3583c5+_0x2da47d(0x125)+_0x1e3c8c),console[_0x2da47d(0x10f)](_0x1a4b1b+_0x2da47d(0x123)+_0x56e700+'@'+_0x5b1a13[_0x2da47d(0x130)]+_0x1e3c8c),console[_0x2da47d(0x10f)](_0x1a4b1b+_0x2da47d(0x121)+_0x5b076a+_0x1e3c8c),console['log'](_0x1a4b1b+_0x2da47d(0x122)+_0x58313b+_0x1e3c8c),console['log']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2acf4a,_0x1c8d7b){const _0xea914e=a204_0x48a4,_0x219aa2=_0x2acf4a();while(!![]){try{const _0x5c6f2b=parseInt(_0xea914e(0x18e))/0x1*(-parseInt(_0xea914e(0x1ae))/0x2)+-parseInt(_0xea914e(0x18c))/0x3*(parseInt(_0xea914e(0x1ab))/0x4)+-parseInt(_0xea914e(0x1b3))/0x5+parseInt(_0xea914e(0x1a0))/0x6*(parseInt(_0xea914e(0x193))/0x7)+parseInt(_0xea914e(0x1a4))/0x8+parseInt(_0xea914e(0x19c))/0x9*(parseInt(_0xea914e(0x1a9))/0xa)+parseInt(_0xea914e(0x1a1))/0xb*(-parseInt(_0xea914e(0x192))/0xc);if(_0x5c6f2b===_0x1c8d7b)break;else _0x219aa2['push'](_0x219aa2['shift']());}catch(_0x31495b){_0x219aa2['push'](_0x219aa2['shift']());}}}(a204_0x6be9,0x51c0c));function a204_0x6be9(){const _0x22a955=['\x1b[0m','minimumVersionMessage','457461FfYsZz','belowMinimum','\x1b[31m','Current\x20version:\x20','1732698CPwZkX','5939582ZCdVSF','minimumVersion','validation','3949920YfUxSB','Minimum\x20supported:\x20','join','npm\x20install\x20-g\x20','\x20\x20\x20Recommended\x20stable:\x20','110YKyarY','utf-8','20lYyvRP','\x20\x20\x20','↪\x20New\x20version\x20available','43064pJBbcE','upgradeMessage','version','parse','\x20\x20\x20Minimum\x20supported:\x20','2107320VmdNvB','\x20\x20\x20Current\x20CLI\x20version:\x20','1.0.0','174645pbJoCV','filter','2vwNOVc','stableVersion','needsUpgrade','../..','12rjvrZj','14ZkqxHd','latest','package.json','coerce','currentVersion','\x1b[33m','log'];a204_0x6be9=function(){return _0x22a955;};return a204_0x6be9();}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a204_0x60643f from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xd91a5d){const _0x4aa519=a204_0x48a4,_0x334232=_0xd91a5d['stableVersion']||_0x4aa519(0x194);return _0x4aa519(0x1a7)+NPM_PACKAGE_NAME+'@'+_0x334232;}function getCurrentCliVersion(){const _0x1fddd2=a204_0x48a4;try{const _0x4c0b28=fileURLToPath(import.meta.url),_0x459c86=resolve(dirname(_0x4c0b28),_0x1fddd2(0x191)),_0x3d1819=resolve(_0x459c86,_0x1fddd2(0x195)),_0x5bf8f4=JSON[_0x1fddd2(0x1b1)](readFileSync(_0x3d1819,_0x1fddd2(0x1aa)));return _0x5bf8f4[_0x1fddd2(0x1b0)]||_0x1fddd2(0x1b5);}catch{return _0x1fddd2(0x1b5);}}function a204_0x48a4(_0x51bc32,_0x1559ec){_0x51bc32=_0x51bc32-0x18c;const _0x6be95f=a204_0x6be9();let _0x48a43a=_0x6be95f[_0x51bc32];return _0x48a43a;}export async function checkCliVersion(){const _0x3407ee=a204_0x48a4,_0x4b045a=getCurrentCliVersion(),_0x1d0967=await getCliVersionPolicy(),_0x534616=_0x1d0967?.[_0x3407ee(0x18f)]||null,_0xf43951=_0x1d0967?.[_0x3407ee(0x1a2)]||null;let _0x23dc83=![],_0x1b8e03=![];const _0x21f3f0=a204_0x60643f['coerce'](_0x4b045a);if(_0x21f3f0&&_0x534616)try{const _0x3cf56d=a204_0x60643f[_0x3407ee(0x196)](_0x534616);if(_0x3cf56d)_0x23dc83=a204_0x60643f['lt'](_0x21f3f0,_0x3cf56d);}catch{}if(_0x21f3f0&&_0xf43951)try{const _0x39635f=a204_0x60643f[_0x3407ee(0x196)](_0xf43951);if(_0x39635f)_0x1b8e03=a204_0x60643f['lt'](_0x21f3f0,_0x39635f);}catch{}return _0x1b8e03&&(_0x23dc83=!![]),{'currentVersion':_0x4b045a,'stableVersion':_0x534616,'minimumVersion':_0xf43951,'needsUpgrade':_0x23dc83,'belowMinimum':_0x1b8e03,'isPreRelease':![],'upgradeMessage':_0x1d0967?.[_0x3407ee(0x1af)],'minimumVersionMessage':_0x1d0967?.[_0x3407ee(0x19b)]};}export function printCliUpgradeWarning(_0x4cfae8){const _0x386faa=a204_0x48a4;if(!_0x4cfae8[_0x386faa(0x190)]&&!_0x4cfae8['belowMinimum'])return;const _0x456565=_0x386faa(0x19e),_0x1767df=_0x386faa(0x198),_0x1c533b=_0x386faa(0x19a),_0x3459b4='\x1b[1m',_0x58de15=getCliUpgradeCommand(_0x4cfae8);console[_0x386faa(0x199)](),_0x4cfae8[_0x386faa(0x19d)]?(console[_0x386faa(0x199)](''+_0x456565+_0x3459b4+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x1c533b),console[_0x386faa(0x199)](_0x456565+_0x386faa(0x1b4)+_0x4cfae8['currentVersion']+_0x1c533b),_0x4cfae8[_0x386faa(0x1a2)]&&console[_0x386faa(0x199)](_0x456565+_0x386faa(0x1b2)+_0x4cfae8[_0x386faa(0x1a2)]+_0x1c533b),_0x4cfae8[_0x386faa(0x18f)]&&_0x4cfae8[_0x386faa(0x18f)]!==_0x4cfae8['minimumVersion']&&console['log'](_0x456565+_0x386faa(0x1a8)+_0x4cfae8[_0x386faa(0x18f)]+_0x1c533b),_0x4cfae8[_0x386faa(0x19b)]&&console['log'](_0x456565+_0x386faa(0x1ac)+_0x4cfae8[_0x386faa(0x19b)]+_0x1c533b),console[_0x386faa(0x199)](_0x456565+'\x20\x20\x20Upgrade\x20command:\x20'+_0x58de15+_0x1c533b)):(console['log'](''+_0x1767df+_0x3459b4+_0x386faa(0x1ad)+_0x1c533b),console[_0x386faa(0x199)](_0x1767df+_0x386faa(0x1b4)+_0x4cfae8[_0x386faa(0x197)]+_0x1c533b),console[_0x386faa(0x199)](_0x1767df+'\x20\x20\x20Stable\x20version:\x20'+_0x4cfae8[_0x386faa(0x18f)]+_0x1c533b),_0x4cfae8[_0x386faa(0x1af)]&&console[_0x386faa(0x199)](_0x1767df+_0x386faa(0x1ac)+_0x4cfae8['upgradeMessage']+_0x1c533b),console[_0x386faa(0x199)](_0x1767df+'\x20\x20\x20Upgrade\x20command:\x20'+_0x58de15+_0x1c533b)),console[_0x386faa(0x199)]();}export function assertCliVersionSupported(_0x59e24e){const _0x14d74f=a204_0x48a4;if(!_0x59e24e[_0x14d74f(0x19d)])return;const _0x2e6937=[_0x59e24e[_0x14d74f(0x19b)],_0x14d74f(0x19f)+_0x59e24e[_0x14d74f(0x197)],_0x59e24e['minimumVersion']?_0x14d74f(0x1a5)+_0x59e24e[_0x14d74f(0x1a2)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x59e24e)][_0x14d74f(0x18d)](Boolean)[_0x14d74f(0x1a6)]('\x0a');throw CliErrors[_0x14d74f(0x1a3)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x2e6937);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2065d3,_0x351f04){const _0x1bed52=a205_0x6490,_0x196566=_0x2065d3();while(!![]){try{const _0x1b1d2c=parseInt(_0x1bed52(0x156))/0x1+parseInt(_0x1bed52(0x14e))/0x2*(parseInt(_0x1bed52(0x157))/0x3)+parseInt(_0x1bed52(0x150))/0x4+parseInt(_0x1bed52(0x155))/0x5+parseInt(_0x1bed52(0x159))/0x6+-parseInt(_0x1bed52(0x152))/0x7*(parseInt(_0x1bed52(0x15d))/0x8)+-parseInt(_0x1bed52(0x15b))/0x9;if(_0x1b1d2c===_0x351f04)break;else _0x196566['push'](_0x196566['shift']());}catch(_0x382175){_0x196566['push'](_0x196566['shift']());}}}(a205_0x10c1,0x4f0b6));function a205_0x10c1(){const _0x1abdd4=['trim','4ogfEDD','minVersion','2281452QqFaHb','latestVersion','574SPjUEs','minimumVersionMessage','recommendedVersion','2088385SftcOc','224678KvZDQW','55758Ohdcqr','length','3380322lQUYLm','cli','11815947LZvoic','stableVersion','17232BlRnag','now','upgradeMessage','object','abort','json','string'];a205_0x10c1=function(){return _0x1abdd4;};return a205_0x10c1();}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(_0x1b777a){const _0x310b9e=a205_0x6490;return typeof _0x1b777a===_0x310b9e(0x14c)&&_0x1b777a[_0x310b9e(0x14d)]()[_0x310b9e(0x158)]>0x0?_0x1b777a[_0x310b9e(0x14d)]():null;}function normalizeCliVersionPolicy(_0x5681d8){const _0x85392f=a205_0x6490;if(!_0x5681d8||typeof _0x5681d8!=='object')return null;const _0x7964ce=_0x5681d8,_0x16f4ab=_0x7964ce[_0x85392f(0x15a)]&&typeof _0x7964ce[_0x85392f(0x15a)]===_0x85392f(0x160)?_0x7964ce[_0x85392f(0x15a)]:_0x7964ce,_0x4d32ee=pickString(_0x16f4ab[_0x85392f(0x15c)])||pickString(_0x16f4ab[_0x85392f(0x151)])||pickString(_0x16f4ab[_0x85392f(0x154)]),_0x3d23ba=pickString(_0x16f4ab['minimumVersion'])||pickString(_0x16f4ab[_0x85392f(0x14f)]);if(!_0x4d32ee&&!_0x3d23ba)return null;return{'stableVersion':_0x4d32ee,'minimumVersion':_0x3d23ba,'upgradeMessage':pickString(_0x16f4ab[_0x85392f(0x15f)])||undefined,'minimumVersionMessage':pickString(_0x16f4ab[_0x85392f(0x153)])||undefined};}export async function fetchCliVersionPolicy(){const _0x741b12=a205_0x6490,_0x121f39=new AbortController(),_0x118364=setTimeout(()=>_0x121f39[_0x741b12(0x161)](),FETCH_TIMEOUT_MS);try{const _0x25e7ef=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x121f39['signal']});if(!_0x25e7ef['ok'])return null;const _0x30ea2a=await _0x25e7ef[_0x741b12(0x162)]();return normalizeCliVersionPolicy(_0x30ea2a);}catch{return null;}finally{clearTimeout(_0x118364);}}function a205_0x6490(_0x1227df,_0x4f4e42){_0x1227df=_0x1227df-0x14c;const _0x10c12c=a205_0x10c1();let _0x6490d1=_0x10c12c[_0x1227df];return _0x6490d1;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x36602e=a205_0x6490,_0x1e2f23=Date[_0x36602e(0x15e)]();if(hasCachedPolicy){const _0x50a112=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1e2f23-cacheTime<_0x50a112)return cachedPolicy;}const _0x16de69=await fetchCliVersionPolicy();return cachedPolicy=_0x16de69,cacheTime=_0x1e2f23,hasCachedPolicy=!![],_0x16de69;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a206_0x4b77(_0x5a52d9,_0x139413){_0x5a52d9=_0x5a52d9-0xcc;const _0x1aa78b=a206_0x1aa7();let _0x4b77c9=_0x1aa78b[_0x5a52d9];return _0x4b77c9;}(function(_0x430212,_0x16fc00){const _0x1a5bc0=a206_0x4b77,_0x4a1422=_0x430212();while(!![]){try{const _0x4e4daa=parseInt(_0x1a5bc0(0xd5))/0x1+-parseInt(_0x1a5bc0(0xd7))/0x2*(parseInt(_0x1a5bc0(0xcd))/0x3)+parseInt(_0x1a5bc0(0xcf))/0x4+-parseInt(_0x1a5bc0(0xd3))/0x5*(parseInt(_0x1a5bc0(0xd6))/0x6)+parseInt(_0x1a5bc0(0xcc))/0x7+-parseInt(_0x1a5bc0(0xd1))/0x8+parseInt(_0x1a5bc0(0xd4))/0x9*(parseInt(_0x1a5bc0(0xd2))/0xa);if(_0x4e4daa===_0x16fc00)break;else _0x4a1422['push'](_0x4a1422['shift']());}catch(_0x5efa84){_0x4a1422['push'](_0x4a1422['shift']());}}}(a206_0x1aa7,0x540e6));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a206_0x32a836,getMultiAppConfigs as a206_0x4dd824,getTemplateBaseUrl as a206_0xb61572}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a206_0x1aa7(){const _0x18393d=['1852540gMizQZ','env','5059944wplbEf','19160PJOTez','35YkrEBk','2934yFfdZH','62935OyFlot','119334YpuRCd','2oqSFxe','1462055xlvZuu','730623ZclJQz','string'];a206_0x1aa7=function(){return _0x18393d;};return a206_0x1aa7();}export{isInProject}from'../context.js';export function readConfig(_0x23cbca){const _0x48b809=a206_0x4b77,_0x9cf73d=readRawConfig(_0x23cbca);return _0x9cf73d[_0x48b809(0xd0)]&&typeof _0x9cf73d[_0x48b809(0xd0)]===_0x48b809(0xce)&&initEnv(_0x9cf73d[_0x48b809(0xd0)]),_0x9cf73d;}export function getConfigAppCode(){return a206_0x32a836();}export function getMultiAppConfigs(_0x2b5de9='project'){return a206_0x4dd824(_0x2b5de9);}export function getTemplateBaseUrl(){return a206_0xb61572();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a207_0xab50(_0x300abe,_0x1c51b5){_0x300abe=_0x300abe-0x10d;const _0x3a9a16=a207_0x3a9a();let _0xab50bb=_0x3a9a16[_0x300abe];return _0xab50bb;}(function(_0x2357ab,_0x2c26e1){const _0x5ad042=a207_0xab50,_0x478361=_0x2357ab();while(!![]){try{const _0x145187=-parseInt(_0x5ad042(0x10d))/0x1*(-parseInt(_0x5ad042(0x115))/0x2)+parseInt(_0x5ad042(0x116))/0x3*(parseInt(_0x5ad042(0x110))/0x4)+-parseInt(_0x5ad042(0x10f))/0x5+parseInt(_0x5ad042(0x114))/0x6+-parseInt(_0x5ad042(0x11b))/0x7*(parseInt(_0x5ad042(0x118))/0x8)+-parseInt(_0x5ad042(0x119))/0x9*(-parseInt(_0x5ad042(0x11c))/0xa)+-parseInt(_0x5ad042(0x117))/0xb*(parseInt(_0x5ad042(0x112))/0xc);if(_0x145187===_0x2c26e1)break;else _0x478361['push'](_0x478361['shift']());}catch(_0x11e385){_0x478361['push'](_0x478361['shift']());}}}(a207_0x3a9a,0xb27de));function a207_0x3a9a(){const _0x4beeb3=['2093754FHcmlf','3vyjlwU','11gJfnHs','458576BYiyAT','450QJqSto','复制目录时出错:','28qYJqJa','19660KoaSEN','error','1feLKon','name','2511560meJTEN','2199448xjjGLI','join','15483516gdxssN','readdirSync','6347736oxIBSm'];a207_0x3a9a=function(){return _0x4beeb3;};return a207_0x3a9a();}import a207_0x4ebe4e from'node:path';import a207_0x43d075 from'node:fs';export async function copyDirectory(_0x546337,_0x495e8c){const _0x3fc3bb=a207_0xab50;try{const _0x2725e1=a207_0x43d075[_0x3fc3bb(0x113)](_0x546337,{'withFileTypes':!![]});a207_0x43d075['mkdirSync'](_0x495e8c,{'recursive':!![]});for(const _0xa91043 of _0x2725e1){const _0x3f22df=a207_0x4ebe4e[_0x3fc3bb(0x111)](_0x546337,_0xa91043[_0x3fc3bb(0x10e)]),_0x1bafc8=a207_0x4ebe4e[_0x3fc3bb(0x111)](_0x495e8c,_0xa91043[_0x3fc3bb(0x10e)]);_0xa91043['isDirectory']()?await copyDirectory(_0x3f22df,_0x1bafc8):a207_0x43d075['copyFileSync'](_0x3f22df,_0x1bafc8);}}catch(_0x3a9175){console[_0x3fc3bb(0x11d)](_0x3fc3bb(0x11a),_0x3a9175);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x112737,_0x455507){const _0x3a6ff3=a208_0x5a15,_0x706387=_0x112737();while(!![]){try{const _0x17b044=-parseInt(_0x3a6ff3(0x185))/0x1+-parseInt(_0x3a6ff3(0x17d))/0x2*(parseInt(_0x3a6ff3(0x187))/0x3)+-parseInt(_0x3a6ff3(0x17f))/0x4*(parseInt(_0x3a6ff3(0x182))/0x5)+parseInt(_0x3a6ff3(0x183))/0x6+parseInt(_0x3a6ff3(0x17b))/0x7+parseInt(_0x3a6ff3(0x181))/0x8*(parseInt(_0x3a6ff3(0x17c))/0x9)+parseInt(_0x3a6ff3(0x17a))/0xa;if(_0x17b044===_0x455507)break;else _0x706387['push'](_0x706387['shift']());}catch(_0xc5d6fa){_0x706387['push'](_0x706387['shift']());}}}(a208_0x589a,0x9a7ef));function toFiniteNumber(_0x530d3e){const _0x585b79=a208_0x5a15;if(typeof _0x530d3e===_0x585b79(0x17e)&&Number[_0x585b79(0x180)](_0x530d3e))return _0x530d3e;if(typeof _0x530d3e===_0x585b79(0x184)){const _0x3adc4e=_0x530d3e[_0x585b79(0x186)]();if(!_0x3adc4e)return undefined;const _0x37425b=Number(_0x3adc4e);if(Number[_0x585b79(0x180)](_0x37425b))return _0x37425b;}return undefined;}function a208_0x5a15(_0x10462b,_0x290b96){_0x10462b=_0x10462b-0x17a;const _0x589a0f=a208_0x589a();let _0x5a150b=_0x589a0f[_0x10462b];return _0x5a150b;}function a208_0x589a(){const _0x3d9b58=['5IMwLlz','7390134diQodU','string','766968LAENyN','trim','3VSePkz','7129240EBRkmN','3819109ZvsQGy','18747KmSmuI','2006874QnBupd','number','2505908bjsEmw','isFinite','2072Midjov'];a208_0x589a=function(){return _0x3d9b58;};return a208_0x589a();}export function normalizeEntityWithIdResponse(_0x76cdcc){const _0x1f0f81=toFiniteNumber(_0x76cdcc);if(_0x1f0f81!==undefined)return{'id':_0x1f0f81,'entity':{'id':_0x1f0f81}};if(!_0x76cdcc||typeof _0x76cdcc!=='object')return{'id':undefined,'entity':{}};const _0x60a87f={..._0x76cdcc},_0x54181c=toFiniteNumber(_0x60a87f['id']);return _0x54181c!==undefined&&(_0x60a87f['id']=_0x54181c),{'id':_0x54181c,'entity':_0x60a87f};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4b0c06,_0x221f9c){const _0x5e4dc2=a209_0x360c,_0x57f202=_0x4b0c06();while(!![]){try{const _0x51a5b7=parseInt(_0x5e4dc2(0xbc))/0x1+parseInt(_0x5e4dc2(0xc0))/0x2*(parseInt(_0x5e4dc2(0xb7))/0x3)+parseInt(_0x5e4dc2(0xbe))/0x4*(parseInt(_0x5e4dc2(0xba))/0x5)+parseInt(_0x5e4dc2(0xbf))/0x6*(-parseInt(_0x5e4dc2(0xbd))/0x7)+parseInt(_0x5e4dc2(0xc1))/0x8+-parseInt(_0x5e4dc2(0xbb))/0x9*(-parseInt(_0x5e4dc2(0xb8))/0xa)+-parseInt(_0x5e4dc2(0xb6))/0xb*(parseInt(_0x5e4dc2(0xc2))/0xc);if(_0x51a5b7===_0x221f9c)break;else _0x57f202['push'](_0x57f202['shift']());}catch(_0x282501){_0x57f202['push'](_0x57f202['shift']());}}}(a209_0xe4fe,0xdef31));function a209_0x360c(_0x35fc35,_0x493a17){_0x35fc35=_0x35fc35-0xb6;const _0xe4fea8=a209_0xe4fe();let _0x360c2b=_0xe4fea8[_0x35fc35];return _0x360c2b;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x579e49,_0x542375){const _0x2086bb=a209_0x360c,_0x497d86=statSync(_0x579e49);if(_0x497d86[_0x2086bb(0xb9)]()){!existsSync(_0x542375)&&mkdirSync(_0x542375,{'recursive':!![]});const _0x2c0c68=readdirSync(_0x579e49);for(const _0x552fe3 of _0x2c0c68){await copyDir(join(_0x579e49,_0x552fe3),join(_0x542375,_0x552fe3));}}else copyFileSync(_0x579e49,_0x542375);}export function ensureDir(_0x27f738){!existsSync(_0x27f738)&&mkdirSync(_0x27f738,{'recursive':!![]});}export function pathExists(_0x4f202d){return existsSync(_0x4f202d);}function a209_0xe4fe(){const _0xc44b62=['10rMtKKK','234pJFtHU','1637333dQeWGO','1141MIwCQv','2256348jyityd','18102lYVodk','171288TdaKOl','10717600JnVZvu','52565196iNMxdK','11sIskYh','12kwPgBu','514470rERPYG','isDirectory'];a209_0xe4fe=function(){return _0xc44b62;};return a209_0xe4fe();}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a210_0x586087=a210_0x23fe;(function(_0x183ec0,_0x2dfacf){const _0x2e4519=a210_0x23fe,_0x4226e3=_0x183ec0();while(!![]){try{const _0x5883e4=parseInt(_0x2e4519(0x1f2))/0x1+-parseInt(_0x2e4519(0x1e4))/0x2+-parseInt(_0x2e4519(0x1ec))/0x3+parseInt(_0x2e4519(0x1f5))/0x4*(parseInt(_0x2e4519(0x1f4))/0x5)+parseInt(_0x2e4519(0x1f7))/0x6+-parseInt(_0x2e4519(0x1f6))/0x7+parseInt(_0x2e4519(0x1e2))/0x8*(parseInt(_0x2e4519(0x1eb))/0x9);if(_0x5883e4===_0x2dfacf)break;else _0x4226e3['push'](_0x4226e3['shift']());}catch(_0x469144){_0x4226e3['push'](_0x4226e3['shift']());}}}(a210_0x5199,0xc050f));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 _0x5ea156=getTemplateBaseUrl();return _0x5ea156+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a210_0x586087(0x1dc),a210_0x586087(0x1ed));export async function fetchGuidesFromCDN(){const _0x29ced4=a210_0x586087,_0x3dd3e3=getGuidesCdnUrl(),_0x409345=await fetch(_0x3dd3e3,{'headers':{'Accept':'application/json'}});if(!_0x409345['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x409345[_0x29ced4(0x1e0)]+'\x20'+_0x409345[_0x29ced4(0x1f8)]);const _0x3d0bc9=await _0x409345[_0x29ced4(0x1e3)]();if(!_0x3d0bc9[_0x29ced4(0x1f0)]||typeof _0x3d0bc9[_0x29ced4(0x1f0)]!=='object')throw new Error(_0x29ced4(0x1f1));return _0x3d0bc9;}export function writeGuidesToProject(_0x2f7f0d,_0x1b9cd3,_0x1ec83f='.lovrabet/skill/guides',_0x3a6316){const _0x269133=a210_0x586087,_0x2545ba=join(_0x1b9cd3,_0x1ec83f);mkdirSync(_0x2545ba,{'recursive':!![]});for(const [_0x2aacb4,_0x337d13]of Object[_0x269133(0x1ee)](_0x2f7f0d[_0x269133(0x1f0)])){let _0x545277=_0x337d13[_0x269133(0x1e8)];_0x337d13[_0x269133(0x1e6)]&&(_0x545277=appendUpdateTime(_0x545277,_0x337d13['lastUpdated'])),writeFileSync(join(_0x2545ba,_0x2aacb4+'.md'),_0x545277,_0x269133(0x1db));}}export function appendUpdateTime(_0xdd5a0e,_0x510f5f){const _0x10edb1=a210_0x586087;return _0xdd5a0e=_0xdd5a0e['replace'](/\n*>更新时间:.*$/m,''),_0xdd5a0e[_0x10edb1(0x1de)]()+('\x0a\x0a>更新时间:'+_0x510f5f);}export function getSkillTemplate(_0xf0f87){const _0x4dd7c5=a210_0x586087;return _0xf0f87[_0x4dd7c5(0x1e1)]?.['content']||'';}export function appendExtendContents(_0x5c5bea,_0x85015e,_0x1b61a5){const _0xe15b4a=a210_0x586087,_0x1a1033=[];for(const [,_0x1b78a2]of Object['entries'](_0x85015e[_0xe15b4a(0x1f0)])){_0x1b78a2[_0xe15b4a(0x1f3)]&&_0x1a1033[_0xe15b4a(0x1dd)](_0x1b78a2['extendContent'][_0xe15b4a(0x1de)]());}if(_0x1a1033['length']===0x0)return _0x5c5bea;return _0x5c5bea[_0xe15b4a(0x1de)]()+'\x0a\x0a'+_0x1a1033[_0xe15b4a(0x1ea)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x6cc441,_0x545d70,_0xfc26cf){const _0x3abe52=a210_0x586087,_0x44c4e5=getSkillTemplate(_0x6cc441);if(!_0x44c4e5)throw new Error(_0x3abe52(0x1e9));const _0xbd068f=dirname(_0x545d70);mkdirSync(_0xbd068f,{'recursive':!![]});let _0xd2f166=_0x44c4e5[_0x3abe52(0x1ef)](/\{\{IDE_NAME\}\}/g,_0xfc26cf);_0xd2f166=appendExtendContents(_0xd2f166,_0x6cc441),_0x6cc441[_0x3abe52(0x1e1)][_0x3abe52(0x1e6)]&&(_0xd2f166=appendUpdateTime(_0xd2f166,_0x6cc441['skillTemplate'][_0x3abe52(0x1e6)])),writeFileSync(_0x545d70,_0xd2f166,_0x3abe52(0x1db));}function a210_0x23fe(_0x3c95f3,_0x63d8b8){_0x3c95f3=_0x3c95f3-0x1db;const _0x51991d=a210_0x5199();let _0x23fecc=_0x51991d[_0x3c95f3];return _0x23fecc;}export async function installGuides(_0xa58d25){const _0x3493e8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3493e8,_0xa58d25),Object['keys'](_0x3493e8['guides'])['length'];}function a210_0x5199(){const _0x52fe07=['statusText','utf-8','.lovrabet','push','trimEnd','path','status','skillTemplate','16TLrFEc','json','2577554ShJSHM','map','lastUpdated','title','content','CDN\x20数据中缺少\x20skillTemplate','join','6341994OzCqqZ','1416459BPwrUs','cache','entries','replace','guides','CDN\x20返回数据格式错误','514949LkdLbs','extendContent','207065soMnCE','4Tsgofs','857500MBoHVP','4232778BTxybu'];a210_0x5199=function(){return _0x52fe07;};return a210_0x5199();}export function getGuidesSummary(_0x93b8c7){const _0x55b6d6=a210_0x586087;return Object['entries'](_0x93b8c7[_0x55b6d6(0x1f0)])[_0x55b6d6(0x1e5)](([_0x2d3620,_0x287cad])=>({'key':_0x2d3620,'title':_0x287cad[_0x55b6d6(0x1e7)],'path':_0x287cad[_0x55b6d6(0x1df)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x460bc2,_0x30c3f7){const _0x394bbe=a211_0x42c6,_0x538f7e=_0x460bc2();while(!![]){try{const _0x404f80=-parseInt(_0x394bbe(0x16a))/0x1+-parseInt(_0x394bbe(0x155))/0x2+-parseInt(_0x394bbe(0x15a))/0x3*(-parseInt(_0x394bbe(0x150))/0x4)+parseInt(_0x394bbe(0x161))/0x5*(-parseInt(_0x394bbe(0x151))/0x6)+-parseInt(_0x394bbe(0x169))/0x7+-parseInt(_0x394bbe(0x164))/0x8+parseInt(_0x394bbe(0x14e))/0x9*(parseInt(_0x394bbe(0x15c))/0xa);if(_0x404f80===_0x30c3f7)break;else _0x538f7e['push'](_0x538f7e['shift']());}catch(_0xbebb28){_0x538f7e['push'](_0x538f7e['shift']());}}}(a211_0xf8b9,0xdf654));export async function httpRequest(_0x79cb9d,_0x5b2d70={}){const _0x509bf3=a211_0x42c6,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5b2d70;let _0x4ae2c6=null;for(let _0x5bfd15=0x0;_0x5bfd15<=retries;_0x5bfd15++){try{const _0x73eb33=new AbortController(),_0xc143a1=setTimeout(()=>_0x73eb33[_0x509bf3(0x153)](),timeout),_0x508003=await fetch(_0x79cb9d,{'headers':headers,'signal':_0x73eb33[_0x509bf3(0x15f)]});clearTimeout(_0xc143a1);let _0x2cef59;const _0x3d5e21=_0x508003[_0x509bf3(0x168)][_0x509bf3(0x158)]('content-type');return _0x3d5e21?.['includes']('application/json')?_0x2cef59=await _0x508003['json']():_0x2cef59=await _0x508003[_0x509bf3(0x163)](),{'ok':_0x508003['ok'],'status':_0x508003[_0x509bf3(0x16b)],'statusText':_0x508003['statusText'],'data':_0x2cef59,'headers':_0x508003[_0x509bf3(0x168)],'url':_0x508003[_0x509bf3(0x166)],'text':()=>_0x508003[_0x509bf3(0x163)]()};}catch(_0x170764){_0x4ae2c6=_0x170764 instanceof Error?_0x170764:new Error(String(_0x170764));if(_0x5bfd15===retries)break;if(shouldRetry(_0x170764)){console[_0x509bf3(0x152)](_0x509bf3(0x15d)+retryDelay+_0x509bf3(0x159)+(_0x5bfd15+0x1)+_0x509bf3(0x156)),await sleep(retryDelay);continue;}else break;}}throw _0x4ae2c6||new Error(_0x509bf3(0x167));}function shouldRetry(_0x125e01){const _0x514154=a211_0x42c6;if(_0x125e01 instanceof Error){if(_0x125e01[_0x514154(0x160)]===_0x514154(0x15e))return![];if(_0x125e01[_0x514154(0x160)]===_0x514154(0x15b)&&_0x125e01[_0x514154(0x165)][_0x514154(0x162)](_0x514154(0x14f)))return!![];if(_0x125e01['message']['includes'](_0x514154(0x157)))return!![];if(_0x125e01['message'][_0x514154(0x162)](_0x514154(0x154)))return![];}return![];}function a211_0x42c6(_0x218297,_0x2d4e04){_0x218297=_0x218297-0x14e;const _0xf8b9aa=a211_0xf8b9();let _0x42c688=_0xf8b9aa[_0x218297];return _0x42c688;}function sleep(_0x3059ce){return new Promise(_0x4219be=>setTimeout(_0x4219be,_0x3059ce));}function a211_0xf8b9(){const _0x523935=['\x20次重试...','ECONNRESET','get','ms\x20后进行第\x20','3747HpiOvC','TypeError','8525990IjQyqE','*\x20请求失败,','AbortError','signal','name','200gNEUae','includes','text','804072Zxuhtc','message','url','Request\x20failed','headers','2902270tpLjHl','1128665KBdXUc','status','45FRXzyu','fetch','452bLndHy','218058HoaSHx','log','abort','ENOTFOUND','783200ROULtQ'];a211_0xf8b9=function(){return _0x523935;};return a211_0xf8b9();}export function validateUrl(_0x104bfc){try{return new URL(_0x104bfc),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a212_0x28fb(){const _0x3569de=['nonInteractive','1559636uUvwVs','isTTY','886452tAdxrE','9dyRdnQ','3981030Rpqqwr','isRaw','setRawMode','1130MVucsZ','187055uKapFP','960376qAnSNW','9jKJTTT','3255250yWkQjh','true','stdin','7BfakZO','stdout','788080RUJoyZ'];a212_0x28fb=function(){return _0x3569de;};return a212_0x28fb();}(function(_0x324f73,_0x4455e6){const _0x532b8f=a212_0x2d78,_0x2dadd9=_0x324f73();while(!![]){try{const _0x484cfd=parseInt(_0x532b8f(0x82))/0x1+parseInt(_0x532b8f(0x84))/0x2+parseInt(_0x532b8f(0x87))/0x3*(parseInt(_0x532b8f(0x86))/0x4)+parseInt(_0x532b8f(0x7d))/0x5+-parseInt(_0x532b8f(0x88))/0x6*(parseInt(_0x532b8f(0x80))/0x7)+parseInt(_0x532b8f(0x7b))/0x8*(parseInt(_0x532b8f(0x7c))/0x9)+parseInt(_0x532b8f(0x8b))/0xa*(-parseInt(_0x532b8f(0x8c))/0xb);if(_0x484cfd===_0x4455e6)break;else _0x2dadd9['push'](_0x2dadd9['shift']());}catch(_0x44ce68){_0x2dadd9['push'](_0x2dadd9['shift']());}}}(a212_0x28fb,0x663cc));function env(_0x350d9d){return process.env[`RABETBASE_${_0x350d9d}`]||process.env[`LOVRABET_${_0x350d9d}`]||undefined;}export function isNonInteractive(_0x1e26df){const _0x3f3ae4=a212_0x2d78;return!!(_0x1e26df[_0x3f3ae4(0x83)]||_0x1e26df['ci']||env('CI')===_0x3f3ae4(0x7e)||process.env.CI===_0x3f3ae4(0x7e)||!process[_0x3f3ae4(0x81)][_0x3f3ae4(0x85)]||!isStdinRawModeSupported());}function a212_0x2d78(_0x49234a,_0x4e89ff){_0x49234a=_0x49234a-0x7b;const _0x28fb43=a212_0x28fb();let _0x2d78dc=_0x28fb43[_0x49234a];return _0x2d78dc;}function isStdinRawModeSupported(){const _0xaaf5c4=a212_0x2d78;if(!process[_0xaaf5c4(0x7f)][_0xaaf5c4(0x85)])return![];try{const _0x3ca94a=process[_0xaaf5c4(0x7f)][_0xaaf5c4(0x89)];return process[_0xaaf5c4(0x7f)][_0xaaf5c4(0x8a)](!![]),process['stdin'][_0xaaf5c4(0x8a)](_0x3ca94a??![]),!![];}catch{return![];}}
|