@lovrabet/rabetbase-cli 2.4.4-beta.1 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-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/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-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/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/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/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/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/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/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.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/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a169_0x5b2af7=a169_0x3471;(function(_0x37d60a,_0x2d5f20){const _0x1ebea7=a169_0x3471,_0x3d12bb=_0x37d60a();while(!![]){try{const _0x37a225=-parseInt(_0x1ebea7(0x1f0))/0x1*(parseInt(_0x1ebea7(0x1e8))/0x2)+-parseInt(_0x1ebea7(0x1c2))/0x3+parseInt(_0x1ebea7(0x1e7))/0x4+parseInt(_0x1ebea7(0x1c7))/0x5+-parseInt(_0x1ebea7(0x1c8))/0x6*(parseInt(_0x1ebea7(0x1f7))/0x7)+parseInt(_0x1ebea7(0x1c9))/0x8*(-parseInt(_0x1ebea7(0x1fc))/0x9)+-parseInt(_0x1ebea7(0x1fa))/0xa*(-parseInt(_0x1ebea7(0x1d4))/0xb);if(_0x37a225===_0x2d5f20)break;else _0x3d12bb['push'](_0x3d12bb['shift']());}catch(_0x1a47e5){_0x3d12bb['push'](_0x3d12bb['shift']());}}}(a169_0x53cd,0xc9b6e));import{createHash}from'node:crypto';import a169_0x32b02e from'node:fs/promises';import a169_0x5b8fba from'node:path';import{PROJECT_TEMPLATE_ASSET_BASE_URL}from'../../../constant/cdn.js';import{extractProjectTemplateArchive}from'../../../commands/project/create/project-template-archive.js';import{getRabetbaseCdnConfig}from'../../../utils/cli-version-policy.js';import{CliErrors}from'../../../errors.js';const TEMPLATE_ID=a169_0x5b2af7(0x1f8),ARCHIVE_TIMEOUT_MS=0x3a98,MAX_ARCHIVE_SIZE=0x14*0x400*0x400;function nonEmptyString(_0x22cb16){const _0x51064d=a169_0x5b2af7;return typeof _0x22cb16===_0x51064d(0x206)&&_0x22cb16[_0x51064d(0x1ee)]()?_0x22cb16[_0x51064d(0x1ee)]():null;}function parseDescriptor(_0x14f80b){const _0x35764f=a169_0x5b2af7;if(!_0x14f80b||typeof _0x14f80b!=='object')throw new Error('CDN\x20config\x20does\x20not\x20define\x20template\x20\x22'+TEMPLATE_ID+'\x22.');const _0x499e33=_0x14f80b,_0x15f2c8=nonEmptyString(_0x499e33[_0x35764f(0x1fd)]),_0x34c77f=nonEmptyString(_0x499e33[_0x35764f(0x1f4)]),_0x4865e9=nonEmptyString(_0x499e33[_0x35764f(0x1d6)])?.['toLowerCase'](),_0x5472f7=_0x499e33[_0x35764f(0x1db)];if(!_0x15f2c8||!_0x34c77f||_0x34c77f!==a169_0x5b8fba['posix'][_0x35764f(0x1e6)](_0x34c77f)||_0x34c77f['includes']('\x5c')||!_0x4865e9||!/^sha256:[a-f0-9]{64}$/[_0x35764f(0x1d5)](_0x4865e9)||typeof _0x5472f7!=='number'||!Number[_0x35764f(0x1f2)](_0x5472f7)||_0x5472f7<=0x0||_0x5472f7>MAX_ARCHIVE_SIZE)throw new Error(_0x35764f(0x20b)+TEMPLATE_ID+'\x22.');return{'version':_0x15f2c8,'name':_0x34c77f,'sha256':_0x4865e9,'size':_0x5472f7};}async function fetchWithTimeout(_0xe99493,_0x1135c1,_0x2fb328,_0x3cee83){const _0x687f8d=a169_0x5b2af7,_0x3079b0=new AbortController(),_0x185921=setTimeout(()=>_0x3079b0[_0x687f8d(0x1ef)](),_0x1135c1);try{const _0xa8b300=await fetch(_0xe99493,{'headers':{'Accept':_0x2fb328},'signal':_0x3079b0[_0x687f8d(0x1f3)]});return await _0x3cee83(_0xa8b300);}finally{clearTimeout(_0x185921);}}async function fetchTemplateDescriptor(){const _0x5d3df0=a169_0x5b2af7,_0x4a62bf=await getRabetbaseCdnConfig();if(!_0x4a62bf)throw new Error('Rabetbase\x20CDN\x20config\x20is\x20unavailable.');return parseDescriptor(_0x4a62bf[_0x5d3df0(0x1f1)]);}function resolveArchiveUrl(_0x12fcbc){const _0x26263c=a169_0x5b2af7,_0x50fd51=new URL(PROJECT_TEMPLATE_ASSET_BASE_URL+'/'),_0x2c8910=new URL(_0x12fcbc,_0x50fd51);if(_0x2c8910['protocol']!==_0x26263c(0x1e3)||_0x2c8910[_0x26263c(0x1d8)]!==_0x50fd51['origin']||!_0x2c8910[_0x26263c(0x1da)][_0x26263c(0x1ce)](_0x50fd51[_0x26263c(0x1da)]))throw new Error('CDN\x20project\x20template\x20URL\x20must\x20use\x20the\x20trusted\x20HTTPS\x20origin.');return _0x2c8910[_0x26263c(0x1ea)];}async function readResponseBytes(_0x3dda86,_0x313b9e){const _0x73b565=a169_0x5b2af7;if(!_0x3dda86[_0x73b565(0x1c1)]){const _0x60db10=Buffer['from'](await _0x3dda86['arrayBuffer']());if(_0x60db10[_0x73b565(0x1ec)]>_0x313b9e)throw new Error(_0x73b565(0x1e4));return _0x60db10;}const _0x46832c=_0x3dda86[_0x73b565(0x1c1)]['getReader'](),_0x1e503c=[];let _0x2fbc59=0x0;try{while(!![]){const {done:_0x47e571,value:_0x595099}=await _0x46832c[_0x73b565(0x1e2)]();if(_0x47e571)break;_0x2fbc59+=_0x595099['byteLength'];if(_0x2fbc59>_0x313b9e){await _0x46832c[_0x73b565(0x202)]();throw new Error(_0x73b565(0x1e4));}_0x1e503c[_0x73b565(0x1c6)](Buffer['from'](_0x595099));}}finally{_0x46832c[_0x73b565(0x204)]();}return Buffer[_0x73b565(0x1fb)](_0x1e503c,_0x2fbc59);}async function downloadArchive(_0x567a41,_0x24b4cd,_0x1d48aa){const _0x2d3836=a169_0x5b2af7,_0xbdd0de=await fetchWithTimeout(resolveArchiveUrl(_0x567a41[_0x2d3836(0x1f4)]),ARCHIVE_TIMEOUT_MS,_0x2d3836(0x1e5),async _0x11d314=>{const _0x265ca2=_0x2d3836;if(!_0x11d314['ok'])throw new Error(_0x265ca2(0x1d7)+_0x11d314[_0x265ca2(0x1f5)]+'.');const _0x4fb0b5=Number(_0x11d314[_0x265ca2(0x207)]['get'](_0x265ca2(0x1ca)));if(Number[_0x265ca2(0x200)](_0x4fb0b5)&&_0x4fb0b5>MAX_ARCHIVE_SIZE)throw new Error(_0x265ca2(0x1df));return readResponseBytes(_0x11d314,_0x567a41['size']);});if(_0xbdd0de['length']!==_0x567a41[_0x2d3836(0x1db)])throw new Error(_0x2d3836(0x203)+_0x567a41[_0x2d3836(0x1db)]+',\x20received\x20'+_0xbdd0de[_0x2d3836(0x1ec)]+'.');_0x1d48aa?.('verifying');const _0x504122='sha256:'+createHash('sha256')[_0x2d3836(0x20c)](_0xbdd0de)[_0x2d3836(0x208)](_0x2d3836(0x1e0));if(_0x504122!==_0x567a41[_0x2d3836(0x1d6)])throw new Error('CDN\x20project\x20template\x20checksum\x20verification\x20failed.');await a169_0x32b02e[_0x2d3836(0x1dc)](_0x24b4cd,_0xbdd0de,{'flag':'wx'});}function a169_0x3471(_0x4b9185,_0x292ba0){_0x4b9185=_0x4b9185-0x1c1;const _0x53cd6a=a169_0x53cd();let _0x3471bf=_0x53cd6a[_0x4b9185];return _0x3471bf;}async function assertTemplateRoot(_0x190786){const _0x3ece64=a169_0x5b2af7,_0x200863=a169_0x5b8fba[_0x3ece64(0x1cc)](_0x190786,'package.json'),_0x1e66b1=JSON['parse'](await a169_0x32b02e['readFile'](_0x200863,_0x3ece64(0x1cb)));if(!_0x1e66b1||typeof _0x1e66b1!=='object')throw new Error(_0x3ece64(0x1cd));}async function readDirectoryIdentity(_0x2486dc){const _0x3f3ad7=a169_0x5b2af7;try{const _0x15da84=await a169_0x32b02e[_0x3f3ad7(0x201)](_0x2486dc);if(!_0x15da84[_0x3f3ad7(0x1eb)]())return null;return{'dev':_0x15da84[_0x3f3ad7(0x1c3)],'ino':_0x15da84['ino']};}catch{return null;}}async function commitStagedProject(_0x4da6de,_0x44f27a){const _0x32f818=a169_0x5b2af7;await a169_0x32b02e[_0x32f818(0x1d9)](_0x44f27a);const _0x40d24e=await readDirectoryIdentity(_0x44f27a);if(!_0x40d24e)throw new Error('Unable\x20to\x20claim\x20the\x20project\x20directory.');try{for(const _0x49bd05 of await a169_0x32b02e['readdir'](_0x4da6de)){await a169_0x32b02e[_0x32f818(0x1d0)](a169_0x5b8fba['join'](_0x4da6de,_0x49bd05),a169_0x5b8fba[_0x32f818(0x1cc)](_0x44f27a,_0x49bd05));}}catch(_0x92d4e5){const _0x4f8baf=await readDirectoryIdentity(_0x44f27a);_0x4f8baf?.['dev']===_0x40d24e[_0x32f818(0x1c3)]&&_0x4f8baf['ino']===_0x40d24e[_0x32f818(0x205)]&&await a169_0x32b02e['rm'](_0x44f27a,{'recursive':!![],'force':!![]});throw _0x92d4e5;}}function a169_0x53cd(){const _0x8f8715=['CDN\x20project\x20template\x20size\x20mismatch:\x20expected\x20','releaseLock','ino','string','headers','digest','message','downloading','CDN\x20config\x20contains\x20an\x20invalid\x20descriptor\x20for\x20\x22','update','body','4219275MNLBdq','dev','code','mkdtemp','push','5862935xbodmD','6AHExpB','103600wkKOhT','content-length','utf8','join','Project\x20template\x20package.json\x20is\x20invalid.','startsWith','validation','rename','EEXIST','Check\x20your\x20network\x20and\x20retry.\x20Details:\x20','resolving','13508cakmZZ','test','sha256','CDN\x20project\x20template\x20request\x20failed\x20with\x20HTTP\x20','origin','mkdir','pathname','size','writeFile','cdn','Use\x20a\x20different\x20project\x20name.','CDN\x20project\x20template\x20exceeds\x20the\x2020\x20MB\x20download\x20limit.','hex','resolve','read','https:','CDN\x20project\x20template\x20exceeds\x20its\x20declared\x20download\x20size.','application/zip','basename','5830740NTZoRQ','4KkLHDr','ENOENT','href','isDirectory','length','Project\x20directory\x20already\x20exists:\x20','trim','abort','134863DsuLyq','projectTemplate','isSafeInteger','signal','name','status','extracting','2119047IjvrDu','sub-app-react-demo','project','1740kzgSPk','concat','27mXWmAp','version','template.zip','Unable\x20to\x20download\x20a\x20valid\x20project\x20template\x20from\x20CDN.','isFinite','lstat','cancel'];a169_0x53cd=function(){return _0x8f8715;};return a169_0x53cd();}export async function materializeProjectTemplate(_0x59ecfd,_0x41e790){const _0x1d3d57=a169_0x5b2af7,_0x26f48b=a169_0x5b8fba[_0x1d3d57(0x1e1)](_0x59ecfd),_0x48aa31=a169_0x5b8fba['dirname'](_0x26f48b);try{await a169_0x32b02e[_0x1d3d57(0x201)](_0x26f48b);throw new Error(_0x1d3d57(0x1ed)+_0x26f48b);}catch(_0xc10123){if(_0xc10123['code']!==_0x1d3d57(0x1e9))throw _0xc10123;}const _0x13f398=await a169_0x32b02e[_0x1d3d57(0x1c5)](a169_0x5b8fba['join'](_0x48aa31,'.rabetbase-create-')),_0x4f07f4=a169_0x5b8fba[_0x1d3d57(0x1cc)](_0x13f398,_0x1d3d57(0x1f9)),_0x443492=a169_0x5b8fba[_0x1d3d57(0x1cc)](_0x13f398,_0x1d3d57(0x1fe));try{try{_0x41e790?.(_0x1d3d57(0x1d3));const _0x32ae75=await fetchTemplateDescriptor();return _0x41e790?.(_0x1d3d57(0x20a)),await downloadArchive(_0x32ae75,_0x443492,_0x41e790),_0x41e790?.(_0x1d3d57(0x1f6)),await extractProjectTemplateArchive(_0x443492,_0x4f07f4),await assertTemplateRoot(_0x4f07f4),await commitStagedProject(_0x4f07f4,_0x26f48b),{'source':_0x1d3d57(0x1dd),'version':_0x32ae75[_0x1d3d57(0x1fd)]};}catch(_0x14a590){if(_0x14a590[_0x1d3d57(0x1c4)]===_0x1d3d57(0x1d1))throw CliErrors[_0x1d3d57(0x1cf)](_0x1d3d57(0x1ed)+_0x26f48b,_0x1d3d57(0x1de));const _0x33c956=_0x14a590 instanceof Error?_0x14a590[_0x1d3d57(0x209)]:String(_0x14a590);throw CliErrors[_0x1d3d57(0x1cf)](_0x1d3d57(0x1ff),_0x1d3d57(0x1d2)+_0x33c956);}}finally{await a169_0x32b02e['rm'](_0x13f398,{'recursive':!![],'force':!![]});}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e4c5f,_0xe0888e){const _0x43e0e5=a170_0x1492,_0x265397=_0x3e4c5f();while(!![]){try{const _0x25ffbb=-parseInt(_0x43e0e5(0x19d))/0x1*(-parseInt(_0x43e0e5(0x18c))/0x2)+parseInt(_0x43e0e5(0x195))/0x3*(-parseInt(_0x43e0e5(0x18e))/0x4)+-parseInt(_0x43e0e5(0x18a))/0x5+parseInt(_0x43e0e5(0x18f))/0x6+-parseInt(_0x43e0e5(0x18b))/0x7*(-parseInt(_0x43e0e5(0x193))/0x8)+parseInt(_0x43e0e5(0x197))/0x9*(parseInt(_0x43e0e5(0x192))/0xa)+-parseInt(_0x43e0e5(0x198))/0xb*(parseInt(_0x43e0e5(0x190))/0xc);if(_0x25ffbb===_0xe0888e)break;else _0x265397['push'](_0x265397['shift']());}catch(_0x3205f2){_0x265397['push'](_0x265397['shift']());}}}(a170_0x4a7e,0x5000d));function a170_0x4a7e(){const _0x2e364b=['Project\x20name\x20cannot\x20be\x20empty','1375641ihMTis','test','73611YcCpPu','1067ThbDRH','\x22\x20is\x20reserved\x20on\x20Windows','length','Project\x20name\x20\x22','\x20characters','481181uefurw','Use\x20a\x20portable\x20directory\x20name\x20without\x20path\x20separators.','3079655WZzayy','536333gxPbFe','2oIFAxk','Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_','4KdoIsk','3092490TayhWC','41100mWkqIb','trim','340usaJwq','48PFMIUM'];a170_0x4a7e=function(){return _0x2e364b;};return a170_0x4a7e();}import{CliErrors}from'../../../errors.js';const PROJECT_NAME_PATTERN=/^[A-Za-z0-9][A-Za-z0-9_-]*$/,WINDOWS_RESERVED_NAME=/^(con|prn|aux|nul|com[1-9]|lpt[1-9])$/i,MAX_PROJECT_NAME_LENGTH=0x64;function a170_0x1492(_0x4220a4,_0x239813){_0x4220a4=_0x4220a4-0x18a;const _0x4a7edb=a170_0x4a7e();let _0x1492d4=_0x4a7edb[_0x4220a4];return _0x1492d4;}export function getProjectNameValidationError(_0x4a5d6d){const _0x1180ac=a170_0x1492,_0x1e3284=_0x4a5d6d['trim']();if(!_0x1e3284)return _0x1180ac(0x194);if(_0x1e3284[_0x1180ac(0x19a)]>MAX_PROJECT_NAME_LENGTH)return'Project\x20name\x20cannot\x20exceed\x20'+MAX_PROJECT_NAME_LENGTH+_0x1180ac(0x19c);if(!PROJECT_NAME_PATTERN[_0x1180ac(0x196)](_0x1e3284))return _0x1180ac(0x18d);if(WINDOWS_RESERVED_NAME[_0x1180ac(0x196)](_0x1e3284))return _0x1180ac(0x19b)+_0x1e3284+_0x1180ac(0x199);return null;}export function validateProjectName(_0x311912){const _0x185777=a170_0x1492,_0x18f363=_0x311912[_0x185777(0x191)](),_0x425e49=getProjectNameValidationError(_0x18f363);if(_0x425e49)throw CliErrors['validation'](_0x425e49,_0x185777(0x19e));return _0x18f363;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a171_0x3b1f(){const _0x41d947=['3275454VtpPhD','has','once','resolve','Project\x20template\x20ZIP\x20exceeds\x20','26TxcrYY','replace','openReadStream','45qVLLum','close','fileName','toLocaleLowerCase','startsWith','16347090vzeYEp','readEntry','isEncrypted','get','2031666WqtDkH','endsWith','Unable\x20to\x20read\x20ZIP\x20entry:\x20','44854iISJXc','1073164nSJJAJ','Unsafe\x20absolute\x20ZIP\x20entry\x20path:\x20','join','10VebhPF','test','set','Case-conflicting\x20ZIP\x20entry\x20path:\x20','dirname','open','3115086XnOxQq','sep','length','split','923408flYaKL','add','\x20entries.','slice','mkdir','catch'];a171_0x3b1f=function(){return _0x41d947;};return a171_0x3b1f();}(function(_0xdf71dc,_0x4224f1){const _0x500e50=a171_0x1a1f,_0x9248d5=_0xdf71dc();while(!![]){try{const _0x5409dc=-parseInt(_0x500e50(0xa7))/0x1*(-parseInt(_0x500e50(0x98))/0x2)+-parseInt(_0x500e50(0xa4))/0x3+-parseInt(_0x500e50(0xa8))/0x4*(parseInt(_0x500e50(0xab))/0x5)+-parseInt(_0x500e50(0xb1))/0x6+parseInt(_0x500e50(0x93))/0x7+parseInt(_0x500e50(0xb5))/0x8*(-parseInt(_0x500e50(0x9b))/0x9)+parseInt(_0x500e50(0xa0))/0xa;if(_0x5409dc===_0x4224f1)break;else _0x9248d5['push'](_0x9248d5['shift']());}catch(_0x395c1b){_0x9248d5['push'](_0x9248d5['shift']());}}}(a171_0x3b1f,0x5bb42));import{createWriteStream}from'node:fs';import a171_0x580ff9 from'node:fs/promises';import a171_0x558d41 from'node:path';import{pipeline}from'node:stream/promises';import a171_0x25caf0 from'yauzl';const MAX_ENTRY_COUNT=0x7d0,MAX_UNCOMPRESSED_SIZE=0x32*0x400*0x400,WINDOWS_RESERVED_NAME=/^(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?$/i,WINDOWS_INVALID_CHAR=/[<>:"|?*\x00-\x1f]/;function openZip(_0x2a4170){return new Promise((_0x501f1b,_0x220371)=>{const _0x19de26=a171_0x1a1f;a171_0x25caf0[_0x19de26(0xb0)](_0x2a4170,{'lazyEntries':!![],'decodeStrings':!![],'strictFileNames':!![],'validateEntrySizes':!![]},(_0x51d756,_0x50ae26)=>{if(_0x51d756||!_0x50ae26){_0x220371(_0x51d756||new Error('Unable\x20to\x20open\x20project\x20template\x20archive.'));return;}_0x501f1b(_0x50ae26);});});}function openEntryStream(_0x5a8d1e,_0x1acd09){return new Promise((_0x3e01c5,_0x1a53d1)=>{const _0xff94a3=a171_0x1a1f;_0x5a8d1e[_0xff94a3(0x9a)](_0x1acd09,(_0x1d3c58,_0x31801f)=>{const _0x467b93=_0xff94a3;if(_0x1d3c58||!_0x31801f){_0x1a53d1(_0x1d3c58||new Error(_0x467b93(0xa6)+_0x1acd09[_0x467b93(0x9d)]));return;}_0x3e01c5(_0x31801f);});});}function validateEntryPath(_0xfad2da){const _0x3a9e94=a171_0x1a1f,_0x3b5818=_0xfad2da[_0x3a9e94(0x99)](/\\/g,'/'),_0x3ad25a=_0x3b5818[_0x3a9e94(0xa5)]('/'),_0x45c93e=_0x3ad25a?_0x3b5818[_0x3a9e94(0x90)](0x0,-0x1):_0x3b5818;if(!_0x45c93e||_0x3b5818[_0x3a9e94(0x9f)]('/')||/^[A-Za-z]:\//['test'](_0x3b5818))throw new Error(_0x3a9e94(0xa9)+_0xfad2da);const _0xb74eb4=_0x45c93e[_0x3a9e94(0xb4)]('/');for(const _0x120b58 of _0xb74eb4){if(!_0x120b58||_0x120b58==='.'||_0x120b58==='..'||_0x120b58['endsWith']('.')||_0x120b58[_0x3a9e94(0xa5)]('\x20')||WINDOWS_INVALID_CHAR[_0x3a9e94(0xac)](_0x120b58)||WINDOWS_RESERVED_NAME[_0x3a9e94(0xac)](_0x120b58))throw new Error('Unsafe\x20or\x20non-portable\x20ZIP\x20entry\x20path:\x20'+_0xfad2da);}return{'relativePath':_0xb74eb4[_0x3a9e94(0xaa)](a171_0x558d41[_0x3a9e94(0xb2)]),'directory':_0x3ad25a};}function a171_0x1a1f(_0x1e4abd,_0x3b156b){_0x1e4abd=_0x1e4abd-0x90;const _0x3b1f01=a171_0x3b1f();let _0x1a1fab=_0x3b1f01[_0x1e4abd];return _0x1a1fab;}function isSymbolicLink(_0x595010){const _0xce63ce=_0x595010['externalFileAttributes']>>>0x10&0xffff;return(_0xce63ce&0xf000)===0xa000;}export async function extractProjectTemplateArchive(_0x54dbac,_0x16f7a2){const _0x2f608a=a171_0x1a1f,_0x4f0bac=await openZip(_0x54dbac),_0x50997f=a171_0x558d41[_0x2f608a(0x96)](_0x16f7a2),_0x317f10=new Set(),_0x326a09=new Map();let _0x4d7e0b=0x0,_0x2eea46=0x0;await a171_0x580ff9[_0x2f608a(0x91)](_0x50997f,{'recursive':!![]}),await new Promise((_0x21f171,_0x1f2d3b)=>{const _0x3bd46c=_0x2f608a;let _0x266780=![];const _0x557e74=_0x42f1bc=>{const _0x225074=a171_0x1a1f;if(_0x266780)return;_0x266780=!![],_0x4f0bac[_0x225074(0x9c)](),_0x1f2d3b(_0x42f1bc instanceof Error?_0x42f1bc:new Error(String(_0x42f1bc)));};_0x4f0bac[_0x3bd46c(0x95)]('error',_0x557e74),_0x4f0bac[_0x3bd46c(0x95)]('end',()=>{if(_0x266780)return;_0x266780=!![],_0x21f171();}),_0x4f0bac['on']('entry',_0x4a6221=>{const _0x2a4cac=_0x3bd46c;void(async()=>{const _0x551a9a=a171_0x1a1f;_0x4d7e0b+=0x1,_0x2eea46+=_0x4a6221['uncompressedSize'];if(_0x4d7e0b>MAX_ENTRY_COUNT)throw new Error(_0x551a9a(0x97)+MAX_ENTRY_COUNT+_0x551a9a(0xb7));if(_0x2eea46>MAX_UNCOMPRESSED_SIZE)throw new Error('Project\x20template\x20ZIP\x20expands\x20beyond\x20the\x2050\x20MB\x20safety\x20limit.');if(_0x4a6221[_0x551a9a(0xa2)]())throw new Error('Encrypted\x20ZIP\x20entries\x20are\x20not\x20supported:\x20'+_0x4a6221[_0x551a9a(0x9d)]);if(isSymbolicLink(_0x4a6221))throw new Error('Symbolic\x20links\x20are\x20not\x20allowed\x20in\x20project\x20templates:\x20'+_0x4a6221[_0x551a9a(0x9d)]);const {relativePath:_0x22f4c5,directory:_0x57da93}=validateEntryPath(_0x4a6221['fileName']),_0x24dacb=_0x22f4c5[_0x551a9a(0xb4)](a171_0x558d41[_0x551a9a(0xb2)]);for(let _0x5613c6=0x1;_0x5613c6<=_0x24dacb[_0x551a9a(0xb3)];_0x5613c6+=0x1){const _0x4425e3=_0x24dacb[_0x551a9a(0x90)](0x0,_0x5613c6)[_0x551a9a(0xaa)](a171_0x558d41[_0x551a9a(0xb2)]),_0x5693cd=_0x4425e3['toLocaleLowerCase']('en-US'),_0x698c78=_0x326a09[_0x551a9a(0xa3)](_0x5693cd);if(_0x698c78&&_0x698c78!==_0x4425e3)throw new Error(_0x551a9a(0xae)+_0x4a6221['fileName']);_0x326a09[_0x551a9a(0xad)](_0x5693cd,_0x4425e3);}const _0xfcb664=_0x22f4c5[_0x551a9a(0x9e)]('en-US');if(_0x317f10[_0x551a9a(0x94)](_0xfcb664))throw new Error('Duplicate\x20or\x20case-conflicting\x20ZIP\x20entry:\x20'+_0x4a6221[_0x551a9a(0x9d)]);_0x317f10[_0x551a9a(0xb6)](_0xfcb664);const _0x1cf96b=a171_0x558d41[_0x551a9a(0x96)](_0x50997f,_0x22f4c5);if(_0x1cf96b!==_0x50997f&&!_0x1cf96b[_0x551a9a(0x9f)](''+_0x50997f+a171_0x558d41[_0x551a9a(0xb2)]))throw new Error('ZIP\x20entry\x20escapes\x20the\x20destination\x20directory:\x20'+_0x4a6221[_0x551a9a(0x9d)]);if(_0x57da93)await a171_0x580ff9['mkdir'](_0x1cf96b,{'recursive':!![]});else{await a171_0x580ff9['mkdir'](a171_0x558d41[_0x551a9a(0xaf)](_0x1cf96b),{'recursive':!![]});const _0x3e03d4=await openEntryStream(_0x4f0bac,_0x4a6221);await pipeline(_0x3e03d4,createWriteStream(_0x1cf96b,{'flags':'wx','mode':0x1a4}));}_0x4f0bac[_0x551a9a(0xa1)]();})()[_0x2a4cac(0x92)](_0x557e74);}),_0x4f0bac[_0x3bd46c(0xa1)]();});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a172_0x390b5d=a172_0x3d15;(function(_0x5a19ed,_0x3e90f1){const _0x3ab9a2=a172_0x3d15,_0x2a7905=_0x5a19ed();while(!![]){try{const _0x4d2c35=parseInt(_0x3ab9a2(0x10b))/0x1+-parseInt(_0x3ab9a2(0x111))/0x2+-parseInt(_0x3ab9a2(0x10c))/0x3+-parseInt(_0x3ab9a2(0x108))/0x4+-parseInt(_0x3ab9a2(0x109))/0x5*(-parseInt(_0x3ab9a2(0x10e))/0x6)+-parseInt(_0x3ab9a2(0x10d))/0x7+parseInt(_0x3ab9a2(0x110))/0x8;if(_0x4d2c35===_0x3e90f1)break;else _0x2a7905['push'](_0x2a7905['shift']());}catch(_0x12759a){_0x2a7905['push'](_0x2a7905['shift']());}}}(a172_0x24a0,0x4024d));import a172_0xcff20 from'node:path';function a172_0x3d15(_0x4a89f7,_0xade9be){_0x4a89f7=_0x4a89f7-0x108;const _0x24a06a=a172_0x24a0();let _0x3d1543=_0x24a06a[_0x4a89f7];return _0x3d1543;}import{fileURLToPath}from'node:url';function a172_0x24a0(){const _0x56e3d6=['173538cNUvdY','1550295uBFcVw','2198245ulPoZz','930OYXwxs','dirname','9915112FWEPdP','231610GpTgda','978656MIpPsK','1325ikjBAZ','resolve'];a172_0x24a0=function(){return _0x56e3d6;};return a172_0x24a0();}const __dirname=a172_0xcff20[a172_0x390b5d(0x10f)](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){const _0x19cbed=a172_0x390b5d;return a172_0xcff20[_0x19cbed(0x10a)](__dirname,'../../../../');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x57c659,_0x1bb603){const _0x4e23b2=a173_0x5814,_0x2d22c2=_0x57c659();while(!![]){try{const _0x2c2f72=parseInt(_0x4e23b2(0x1dd))/0x1*(-parseInt(_0x4e23b2(0x1e9))/0x2)+-parseInt(_0x4e23b2(0x1e6))/0x3*(parseInt(_0x4e23b2(0x1ec))/0x4)+-parseInt(_0x4e23b2(0x1f0))/0x5*(parseInt(_0x4e23b2(0x1e2))/0x6)+parseInt(_0x4e23b2(0x1de))/0x7*(parseInt(_0x4e23b2(0x1ea))/0x8)+-parseInt(_0x4e23b2(0x1f1))/0x9*(parseInt(_0x4e23b2(0x1e7))/0xa)+parseInt(_0x4e23b2(0x1e3))/0xb+parseInt(_0x4e23b2(0x1ed))/0xc*(parseInt(_0x4e23b2(0x1f2))/0xd);if(_0x2c2f72===_0x1bb603)break;else _0x2d22c2['push'](_0x2d22c2['shift']());}catch(_0x14d937){_0x2d22c2['push'](_0x2d22c2['shift']());}}}(a173_0x10cb,0xba69c));import a173_0x290436 from'node:path';function a173_0x5814(_0x25974a,_0x42d032){_0x25974a=_0x25974a-0x1dc;const _0x10cb33=a173_0x10cb();let _0x58141d=_0x10cb33[_0x25974a];return _0x58141d;}function a173_0x10cb(){const _0x2bf6e1=['5361dYLmwZ','14123020QNrwzn','项目模板创建完成','199724LYlhSl','969896cgLGzf','success','2316RiJEKZ','22104WlFVpU','copy','resolve','260855azVcBX','9GhUMNL','18317waUbgW','now','1jkWxHP','49KCEaDw','source','项目模板复制失败','info','102jbHgtS','8285805OPGbWX','version','开始创建项目模板'];a173_0x10cb=function(){return _0x2bf6e1;};return a173_0x10cb();}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{materializeProjectTemplate}from'../../../commands/project/create/materialize-project-template.js';export async function copyProjectTemplate(_0xaeb44d,_0x51e2ab){const _0x183f5c=a173_0x5814,_0xade008=Date[_0x183f5c(0x1dc)](),_0x2f88c8=a173_0x290436[_0x183f5c(0x1ef)](process['cwd'](),_0xaeb44d);try{logger[_0x183f5c(0x1e1)](_0x183f5c(0x1ee),_0x183f5c(0x1e5),{'projectCode':_0xaeb44d});const _0xfba7e9=await materializeProjectTemplate(_0x2f88c8,_0x51e2ab),_0x1b3a1e=Date[_0x183f5c(0x1dc)]()-_0xade008;logger[_0x183f5c(0x1eb)]('copy',_0x183f5c(0x1e8),_0x1b3a1e,{'projectCode':_0xaeb44d,'templateSource':_0xfba7e9[_0x183f5c(0x1df)],'templateVersion':_0xfba7e9[_0x183f5c(0x1e4)]});}catch(_0x3c9c56){const _0x54ecd4=Date['now']()-_0xade008;logger['error']('copy',_0x183f5c(0x1e0),{'projectCode':_0xaeb44d,'error':_0x3c9c56 instanceof Error?_0x3c9c56['message']:String(_0x3c9c56),'duration':_0x54ecd4});throw _0x3c9c56;}return formatElapsed(_0xade008);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a174_0xf2f1(_0x3c8376,_0x27f2c3){_0x3c8376=_0x3c8376-0x124;const _0x4d31c5=a174_0x4d31();let _0xf2f144=_0x4d31c5[_0x3c8376];return _0xf2f144;}(function(_0x4ae6f9,_0x161f81){const _0x3589af=a174_0xf2f1,_0x5139d3=_0x4ae6f9();while(!![]){try{const _0x49a551=parseInt(_0x3589af(0x129))/0x1*(parseInt(_0x3589af(0x12e))/0x2)+-parseInt(_0x3589af(0x127))/0x3+-parseInt(_0x3589af(0x131))/0x4*(parseInt(_0x3589af(0x132))/0x5)+-parseInt(_0x3589af(0x130))/0x6+-parseInt(_0x3589af(0x135))/0x7*(parseInt(_0x3589af(0x133))/0x8)+parseInt(_0x3589af(0x12a))/0x9+parseInt(_0x3589af(0x136))/0xa*(parseInt(_0x3589af(0x139))/0xb);if(_0x49a551===_0x161f81)break;else _0x5139d3['push'](_0x5139d3['shift']());}catch(_0x9e9579){_0x5139d3['push'](_0x5139d3['shift']());}}}(a174_0x4d31,0xe53cf));import a174_0x2d571b from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';function a174_0x4d31(){const _0x2e3bac=['2KDwjSI','resolve','7780146ILmmtk','20HsvoBx','1328060VZbHzM','120304AAwGii','开始格式化代码','28pJXtLN','6726060FMOvJi','message','--write','33ZaPXpI','error','prettier','info','5396403ruRdzw','npx','1832969RqYpvi','14146884ceciUZ','代码格式化失败','now','format'];a174_0x4d31=function(){return _0x2e3bac;};return a174_0x4d31();}export async function formatProjectCode(_0x14c607){const _0x2c13ae=a174_0xf2f1,_0x3112d1=Date[_0x2c13ae(0x12c)](),_0x5a9a0d=a174_0x2d571b[_0x2c13ae(0x12f)](process['cwd'](),_0x14c607);try{logger[_0x2c13ae(0x126)](_0x2c13ae(0x12d),_0x2c13ae(0x134),{'projectCode':_0x14c607}),await execa(resolveNpmBin(_0x2c13ae(0x128)),[_0x2c13ae(0x125),_0x2c13ae(0x138),'.'],{'cwd':_0x5a9a0d});const _0x561f9d=Date[_0x2c13ae(0x12c)]()-_0x3112d1;logger['success'](_0x2c13ae(0x12d),'代码格式化完成',_0x561f9d,{'projectCode':_0x14c607});}catch(_0x1aff54){const _0xa1284d=Date[_0x2c13ae(0x12c)]()-_0x3112d1;logger[_0x2c13ae(0x124)]('format',_0x2c13ae(0x12b),{'projectCode':_0x14c607,'error':_0x1aff54 instanceof Error?_0x1aff54[_0x2c13ae(0x137)]:String(_0x1aff54),'duration':_0xa1284d});throw _0x1aff54;}return formatElapsed(_0x3112d1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x284af9,_0x4b2322){const _0x26281b=a175_0x29bf,_0x4ba4fe=_0x284af9();while(!![]){try{const _0x503f2f=-parseInt(_0x26281b(0x12f))/0x1*(parseInt(_0x26281b(0x126))/0x2)+parseInt(_0x26281b(0x120))/0x3+parseInt(_0x26281b(0x127))/0x4*(parseInt(_0x26281b(0x11c))/0x5)+parseInt(_0x26281b(0x121))/0x6+parseInt(_0x26281b(0x123))/0x7+-parseInt(_0x26281b(0x12c))/0x8+-parseInt(_0x26281b(0x12e))/0x9*(parseInt(_0x26281b(0x12b))/0xa);if(_0x503f2f===_0x4b2322)break;else _0x4ba4fe['push'](_0x4ba4fe['shift']());}catch(_0x5cc714){_0x4ba4fe['push'](_0x4ba4fe['shift']());}}}(a175_0x1d42,0x9ad4e));import a175_0x16bae8 from'node:path';import{execa}from'execa';function a175_0x29bf(_0x24bfb4,_0x388fa3){_0x24bfb4=_0x24bfb4-0x119;const _0x1d42a5=a175_0x1d42();let _0x29bfa9=_0x1d42a5[_0x24bfb4];return _0x29bfa9;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';function a175_0x1d42(){const _0x2bacc1=['message','79572ehIZEE','4272912sXTbya','依赖安装失败','4821229tOSHVO','cwd','info','6aEjrMK','228ROBUlt','https://registry.npmmirror.com','now','install','12700QVBhcD','3649648rUmAiX','--registry','3951JqEuWh','15590iMYBNq','依赖安装完成','error','npm','success','23445piuZmw','resolve','开始安装依赖'];a175_0x1d42=function(){return _0x2bacc1;};return a175_0x1d42();}import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';export async function installDependencies(_0x5728f4){const _0x219e92=a175_0x29bf,_0x4bcae8=Date[_0x219e92(0x129)](),_0x246b28=a175_0x16bae8[_0x219e92(0x11d)](process[_0x219e92(0x124)](),_0x5728f4);try{logger[_0x219e92(0x125)](_0x219e92(0x12a),_0x219e92(0x11e),{'projectCode':_0x5728f4,'registry':_0x219e92(0x128)}),await execa(resolveNpmBin(_0x219e92(0x11a)),[_0x219e92(0x12a),_0x219e92(0x12d),_0x219e92(0x128)],{'cwd':_0x246b28});const _0x524e58=Date[_0x219e92(0x129)]()-_0x4bcae8;logger[_0x219e92(0x11b)](_0x219e92(0x12a),_0x219e92(0x130),_0x524e58,{'projectCode':_0x5728f4});}catch(_0x561232){const _0x540c2a=Date[_0x219e92(0x129)]()-_0x4bcae8;logger[_0x219e92(0x119)](_0x219e92(0x12a),_0x219e92(0x122),{'projectCode':_0x5728f4,'error':_0x561232 instanceof Error?_0x561232[_0x219e92(0x11f)]:String(_0x561232),'duration':_0x540c2a});throw _0x561232;}return formatElapsed(_0x4bcae8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a176_0x1c6d(_0x5ca797,_0x2e15f5){_0x5ca797=_0x5ca797-0xb4;const _0x5d1d1c=a176_0x5d1d();let _0x1c6d29=_0x5d1d1c[_0x5ca797];return _0x1c6d29;}const a176_0x345e7e=a176_0x1c6d;(function(_0x5de2cb,_0x132721){const _0x2c5c01=a176_0x1c6d,_0x5c2fb0=_0x5de2cb();while(!![]){try{const _0x579162=parseInt(_0x2c5c01(0xd3))/0x1*(-parseInt(_0x2c5c01(0xbd))/0x2)+parseInt(_0x2c5c01(0xbb))/0x3*(parseInt(_0x2c5c01(0xd6))/0x4)+-parseInt(_0x2c5c01(0xd5))/0x5+-parseInt(_0x2c5c01(0xb6))/0x6+-parseInt(_0x2c5c01(0xbf))/0x7+-parseInt(_0x2c5c01(0xc1))/0x8*(-parseInt(_0x2c5c01(0xc8))/0x9)+parseInt(_0x2c5c01(0xc2))/0xa;if(_0x579162===_0x132721)break;else _0x5c2fb0['push'](_0x5c2fb0['shift']());}catch(_0x13c4b6){_0x5c2fb0['push'](_0x5c2fb0['shift']());}}}(a176_0x5d1d,0x35071));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{upgradeApp}from'../../commands/project/upgrade.js';const createFlags=[{'name':a176_0x345e7e(0xc0),'type':a176_0x345e7e(0xd1),'description':a176_0x345e7e(0xbe)},{'name':a176_0x345e7e(0xd4),'type':a176_0x345e7e(0xd1),'description':a176_0x345e7e(0xba)},{'name':a176_0x345e7e(0xb5),'type':a176_0x345e7e(0xd1),'description':a176_0x345e7e(0xc4)}],upgradeFlags=[{'name':a176_0x345e7e(0xb9),'type':a176_0x345e7e(0xb8),'description':a176_0x345e7e(0xcf),'default':![]}];function a176_0x5d1d(){const _0x58044d=['Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','create','args','upgrade','Skip\x20confirmation\x20prompt','trim','string','\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]','372182PudmfK','env','662250zvtgam','175540BjxwCZ','Create\x20a\x20new\x20project','appcode','1017720wdqOYx','project','boolean','yes','Target\x20environment','21GVELNw','str','2peOaKI','Project\x20name','2195228zGAQqX','name','376ujBzrX','5895890rVIpUK','nonInteractive','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','../../commands/project/create/main.js','write','cookie','59031mQcaAZ','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.'];a176_0x5d1d=function(){return _0x58044d;};return a176_0x5d1d();}export const projectDefinitions=[{'service':a176_0x345e7e(0xb7),'command':a176_0x345e7e(0xcc),'description':a176_0x345e7e(0xb4),'risk':a176_0x345e7e(0xc6),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'project-name','description':a176_0x345e7e(0xca),'required':![]}],'flags':createFlags,async 'execute'(_0x2ab17a){const _0x98cfa5=a176_0x345e7e,{createApp:_0x25a32c}=await import(_0x98cfa5(0xc5)),_0xa2d164=_0x2ab17a[_0x98cfa5(0xbc)]('name')[_0x98cfa5(0xd0)]()||_0x2ab17a[_0x98cfa5(0xcd)][0x0]?.['trim'](),_0x2990b0=_0x2ab17a[_0x98cfa5(0xbc)](_0x98cfa5(0xd4))||undefined,_0xb262fd=_0x2ab17a[_0x98cfa5(0xbc)]('appcode')||undefined;if(_0x2ab17a[_0x98cfa5(0xc3)]){if(!_0xa2d164)throw CliErrors['validation'](_0x98cfa5(0xc9),'Usage:\x20'+CLI_BIN_NAME+_0x98cfa5(0xd2));await _0x25a32c({'projectCode':_0xa2d164,'appCode':_0xb262fd,'env':_0x2990b0,'cookie':_0x2ab17a[_0x98cfa5(0xc7)],'nonInteractive':!![]});}else await _0x25a32c({'projectCode':_0xa2d164,'appCode':_0xb262fd,'env':_0x2990b0,'cookie':_0x2ab17a[_0x98cfa5(0xc7)]});return{'ok':!![]};}},{'service':'project','command':a176_0x345e7e(0xce),'description':a176_0x345e7e(0xcb),'risk':a176_0x345e7e(0xc6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x3cf88e){const _0xce9ffd=a176_0x345e7e;return await upgradeApp(_0x3cf88e[_0xce9ffd(0xc3)],{'yes':_0x3cf88e['bool']('yes')}),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a177_0x3857b3=a177_0x577b;(function(_0xe15af8,_0x4cee51){const _0x354aa4=a177_0x577b,_0x1f36f4=_0xe15af8();while(!![]){try{const _0x321157=parseInt(_0x354aa4(0xbd))/0x1*(parseInt(_0x354aa4(0x117))/0x2)+parseInt(_0x354aa4(0x101))/0x3*(-parseInt(_0x354aa4(0xba))/0x4)+parseInt(_0x354aa4(0x10f))/0x5+parseInt(_0x354aa4(0xbf))/0x6+-parseInt(_0x354aa4(0xb4))/0x7+parseInt(_0x354aa4(0xe1))/0x8*(-parseInt(_0x354aa4(0xee))/0x9)+parseInt(_0x354aa4(0xfb))/0xa*(parseInt(_0x354aa4(0xbc))/0xb);if(_0x321157===_0x4cee51)break;else _0x1f36f4['push'](_0x1f36f4['shift']());}catch(_0x392b70){_0x1f36f4['push'](_0x1f36f4['shift']());}}}(a177_0x593d,0x3f395));import a177_0x3b781c from'chalk';import a177_0x8b40ee from'ora';import{existsSync,readFileSync,renameSync,rmSync,statSync,unlinkSync,writeFileSync}from'node:fs';import{resolve}from'node:path';import{CONFIG_NAMES,NEW_CONFIG_NAME,readConfigFile,writeConfigFile}from'../../context.js';import{CORE_IDE_CONFIGS}from'../../utils/ai_config.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../../skills/npx-skills-add.js';import{askConfirm}from'../../commands/menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a177_0x3857b3(0xe3)](_0x148587=>_0x148587!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x363975){const _0x33d927=a177_0x3857b3,_0x224e51=[];for(const _0x2dbbca of Object[_0x33d927(0xf9)](CORE_IDE_CONFIGS)){if(_0x2dbbca[_0x33d927(0x11b)])for(const _0x52f072 of _0x2dbbca[_0x33d927(0x11b)]){_0x224e51[_0x33d927(0x128)](resolve(_0x363975,_0x52f072[_0x33d927(0xd3)]));}}return _0x224e51;}function analyse(_0x3c713e){const _0x220699=a177_0x3857b3;let _0x41b4e7=null;const _0x1cdb61=resolve(_0x3c713e,NEW_CONFIG_NAME),_0x1d2aae=existsSync(_0x1cdb61);for(const _0x5385fd of LEGACY_CONFIG_NAMES){const _0x1057a5=resolve(_0x3c713e,_0x5385fd);if(existsSync(_0x1057a5)){const _0x3c46ee=readConfigFile(_0x1057a5),_0x2ba635=Object[_0x220699(0xb3)](_0x3c46ee)['filter'](_0x4c92fa=>typeof _0x3c46ee[_0x4c92fa]!==_0x220699(0x129));_0x41b4e7={'oldPath':_0x1057a5,'hasNewConfig':_0x1d2aae,'fields':_0x2ba635};break;}}const _0x45362d=[],_0xd4be00=resolve(_0x3c713e,'.lovrabet');if(existsSync(_0xd4be00))_0x45362d[_0x220699(0x128)](_0xd4be00);const _0x169436=resolve(_0x3c713e,_0x220699(0x120));if(existsSync(_0x169436))_0x45362d[_0x220699(0x128)](_0x169436);const _0x558acf=resolve(_0x3c713e,_0x220699(0xdc));if(existsSync(_0x558acf))_0x45362d[_0x220699(0x128)](_0x558acf);for(const _0x5c852d of collectIdeSkillFiles(_0x3c713e)){if(existsSync(_0x5c852d))_0x45362d[_0x220699(0x128)](_0x5c852d);}let _0x17c0d0=null;const _0x5bb362=resolve(_0x3c713e,_0x220699(0xd9));if(existsSync(_0x5bb362))try{const _0x8b0f74=JSON[_0x220699(0xc0)](readFileSync(_0x5bb362,_0x220699(0xfe)));if(_0x8b0f74?.[_0x220699(0xd1)]&&typeof _0x8b0f74['mcpServers']===_0x220699(0xd6)){const _0x29797e=[];for(const [_0x22ed54,_0x346574]of Object[_0x220699(0x105)](_0x8b0f74[_0x220699(0xd1)])){const _0x104943=_0x346574;_0x104943?.['args']&&Array['isArray'](_0x104943[_0x220699(0xfd)])&&_0x104943[_0x220699(0xfd)][_0x220699(0x112)](_0x24b6d7=>typeof _0x24b6d7===_0x220699(0xe5)&&_0x24b6d7[_0x220699(0x11c)]('@lovrabet/dataset-mcp-server'))&&_0x29797e[_0x220699(0x128)](_0x22ed54);}_0x29797e[_0x220699(0xf8)]>0x0&&(_0x17c0d0={'path':_0x5bb362,'keys':_0x29797e});}}catch{}const _0x21945b=_0x45362d[_0x220699(0xf8)]>0x0||_0x41b4e7!==null;let _0x27d0fd=null;const _0x3a818d=resolve(_0x3c713e,_0x220699(0xeb));if(existsSync(_0x3a818d))try{const _0x1b4bb0=JSON[_0x220699(0xc0)](readFileSync(_0x3a818d,_0x220699(0xfe)));for(const _0x1b0b6b of[_0x220699(0xb2),_0x220699(0xf1)]){const _0x5b6fe4=_0x1b4bb0?.[_0x1b0b6b]?.[_0x220699(0x104)];if(typeof _0x5b6fe4===_0x220699(0xe5)){_0x5b6fe4!==_0x220699(0xde)&&(_0x27d0fd={'pkgPath':_0x3a818d,'currentVersion':_0x5b6fe4,'field':_0x1b0b6b});break;}}}catch{}return{'configMigration':_0x41b4e7,'oldArtifacts':_0x45362d,'oldMcpConfig':_0x17c0d0,'needsSkillSwap':_0x21945b,'sdkUpgrade':_0x27d0fd};}function printReport(_0x38d24a){const _0x28864c=a177_0x3857b3,{configMigration:_0x446384,oldArtifacts:_0x46ef1c,oldMcpConfig:_0x5802ae,needsSkillSwap:_0x20e9fc}=_0x38d24a;console[_0x28864c(0x12f)](''),console[_0x28864c(0x12f)](a177_0x3b781c[_0x28864c(0xf6)]('===\x20Upgrade\x20Analysis\x20===')),console['log']('');_0x446384?(console[_0x28864c(0x12f)](a177_0x3b781c[_0x28864c(0x12d)](_0x28864c(0x11d))+('\x20\x20'+a177_0x3b781c[_0x28864c(0x118)](_0x446384[_0x28864c(0x115)]))),console[_0x28864c(0x12f)]('\x20\x20New\x20config\x20(.rabetbase.json):\x20'+(_0x446384[_0x28864c(0x106)]?a177_0x3b781c['green'](_0x28864c(0xcd)):a177_0x3b781c['gray'](_0x28864c(0xd7)))),console[_0x28864c(0x12f)](_0x28864c(0x10b)+_0x446384['fields'][_0x28864c(0xbb)](',\x20')),console['log']('\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak')):console[_0x28864c(0x12f)](a177_0x3b781c[_0x28864c(0x12d)](_0x28864c(0x11d))+'\x20\x20'+a177_0x3b781c[_0x28864c(0xb6)](_0x28864c(0xc6)));console['log']('');if(_0x46ef1c[_0x28864c(0xf8)]>0x0){console['log'](a177_0x3b781c[_0x28864c(0x12d)](_0x28864c(0x110)));for(const _0x5c6118 of _0x46ef1c){console['log']('\x20\x20'+a177_0x3b781c[_0x28864c(0xe6)](_0x28864c(0x119))+'\x20\x20'+_0x5c6118);}console[_0x28864c(0x12f)]('\x20\x20Action:\x20delete');}else console['log'](a177_0x3b781c[_0x28864c(0x12d)](_0x28864c(0x110))+'\x20\x20'+a177_0x3b781c[_0x28864c(0xb6)]('none\x20found'));console[_0x28864c(0x12f)]('');_0x5802ae?(console[_0x28864c(0x12f)](a177_0x3b781c[_0x28864c(0x12d)](_0x28864c(0x123))+('\x20\x20'+a177_0x3b781c[_0x28864c(0x118)](_0x5802ae[_0x28864c(0xd3)])+_0x28864c(0xed)+_0x5802ae[_0x28864c(0xb3)][_0x28864c(0xbb)](',\x20'))),console[_0x28864c(0x12f)](_0x28864c(0x10c))):console['log'](a177_0x3b781c[_0x28864c(0x12d)](_0x28864c(0x123))+'\x20\x20'+a177_0x3b781c[_0x28864c(0xb6)](_0x28864c(0xcf)));console[_0x28864c(0x12f)](''),console[_0x28864c(0x12f)](a177_0x3b781c[_0x28864c(0x12d)]('Skill\x20swap:')+('\x20\x20'+(_0x20e9fc?a177_0x3b781c[_0x28864c(0x118)]('needed'):a177_0x3b781c['green'](_0x28864c(0x107)))));_0x20e9fc&&console[_0x28864c(0x12f)]('\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x28864c(0x12f)]('');if(_0x38d24a['sdkUpgrade']){const {currentVersion:_0x5c1529,field:_0x436eab,pkgPath:_0x298b0c}=_0x38d24a[_0x28864c(0xe7)];console['log'](a177_0x3b781c['cyan'](_0x28864c(0xe8))+('\x20\x20'+a177_0x3b781c[_0x28864c(0x118)](_0x298b0c))),console['log']('\x20\x20Current\x20version\x20in\x20'+_0x436eab+':\x20'+a177_0x3b781c[_0x28864c(0x118)](_0x5c1529)+_0x28864c(0x127)+a177_0x3b781c['green']('latest')),console['log'](_0x28864c(0x11e));}else console[_0x28864c(0x12f)](a177_0x3b781c['cyan'](_0x28864c(0xe8))+'\x20\x20'+a177_0x3b781c[_0x28864c(0xb6)](_0x28864c(0x10e)));console[_0x28864c(0x12f)]('');}function execConfigMigration(_0x3948b3,_0x382dbd){const _0x58a226=a177_0x3857b3,{configMigration:_0x3bed5c}=_0x3948b3;if(!_0x3bed5c?.[_0x58a226(0x115)])return{'step':0x1,'label':_0x58a226(0xd2),'ok':!![],'detail':_0x58a226(0xbe)};const _0xfacf26=readConfigFile(_0x3bed5c[_0x58a226(0x115)]),_0x23418f=resolve(_0x382dbd,NEW_CONFIG_NAME),_0x2dedca=_0x3bed5c[_0x58a226(0x106)]?readConfigFile(_0x23418f):{};for(const [_0x2f290a,_0x2be655]of Object[_0x58a226(0x105)](_0xfacf26)){!(_0x2f290a in _0x2dedca)&&(_0x2dedca[_0x2f290a]=_0x2be655);}writeConfigFile(_0x23418f,_0x2dedca);const _0x477282=_0x3bed5c['oldPath']+_0x58a226(0xd5);return renameSync(_0x3bed5c[_0x58a226(0x115)],_0x477282),{'step':0x1,'label':_0x58a226(0xd2),'ok':!![],'detail':_0x3bed5c['oldPath']+_0x58a226(0x127)+_0x23418f+_0x58a226(0x116)+_0x477282+')'};}function a177_0x593d(){const _0x32ae4a=['.lovrabet','.cursor/mcp.json','\x20removed\x20(','\x20\x20#\x20or','.claude/skills/lovrabet','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','latest','lovrabet/rabetbase\x20installed\x20globally','exit\x20','1982520JijBay','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','filter','oldMcpConfig','string','red','sdkUpgrade','@lovrabet/sdk:','oldArtifacts','message','package.json','step','\x20→\x20keys:\x20','9UcIOzr','white','failed','devDependencies','green','info','Clean\x20MCP\x20config','\x20from\x20','bold','Remove\x20old\x20skill','length','values','FAIL','9590nCQOft','\x20→\x20latest','args','utf8','stringify','lovrabet/lovrabet-skill\x20removed','9Qeuwgz','\x20\x20bun\x20install','Remove\x20.lovrabet/','@lovrabet/sdk','entries','hasNewConfig','not\x20needed','\x20\x20Step\x20','Remove\x20legacy\x20artifacts','isDirectory','\x20\x20Fields\x20to\x20migrate:\x20','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','not\x20found\x20or\x20already\x20at\x20latest','257580vlYoLh','Legacy\x20artifacts:','status','some','fail','start','oldPath','\x20(backup:\x20','13970AmUGgK','yellow','FOUND','Step\x201/7:\x20Config\x20migration\x20—\x20','files','includes','Config\x20file:','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','.cursor/rules/lovrabet_rules.mdc','succeed','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','MCP\x20config:','Step\x204/7:\x20MCP\x20config\x20—\x20','label','Upgrade\x20@lovrabet/sdk','\x20→\x20','push','undefined','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','Proceed\x20with\x20upgrade?','no\x20matching\x20entry\x20found','cyan','done','log','dependencies','keys','944643uhbwrn','Install\x20new\x20skill','gray','needsSkillSwap','skipped','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','663416tVIFuG','join','9053XuGxae','5JITevB','skipped\x20(no\x20legacy\x20config)','1581558JUYwsZ','parse','Step\x201/7:\x20Migrating\x20config...','configMigration','Upgrade\x20cancelled.','\x20removed','detail','no\x20legacy\x20config\x20found','Upgrade\x20completed\x20successfully!','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','\x20\x20npm\x20install','yes','error','inherit','already\x20exists\x20(will\x20merge)','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','no\x20legacy\x20entry','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','mcpServers','Config\x20migration','path','removed\x20','.bak','object','not\x20found\x20(will\x20create)'];a177_0x593d=function(){return _0x32ae4a;};return a177_0x593d();}function execRemoveOldArtifacts(_0x266666){const _0x1d5c42=a177_0x3857b3,_0x2b87ef=[];for(const _0x586765 of _0x266666){try{if(!existsSync(_0x586765))continue;const _0x558b7c=tryStat(_0x586765);_0x558b7c?.[_0x1d5c42(0x10a)]()?rmSync(_0x586765,{'recursive':!![],'force':!![]}):unlinkSync(_0x586765);}catch(_0x3908f9){_0x2b87ef['push'](_0x586765+':\x20'+_0x3908f9[_0x1d5c42(0xea)]);}}return{'step':0x3,'label':_0x1d5c42(0x109),'ok':_0x2b87ef[_0x1d5c42(0xf8)]===0x0,'detail':_0x2b87ef[_0x1d5c42(0xf8)]>0x0?_0x266666[_0x1d5c42(0xf8)]-_0x2b87ef['length']+'/'+_0x266666[_0x1d5c42(0xf8)]+_0x1d5c42(0xda)+_0x2b87ef['join'](';\x20')+')':_0x266666['length']+_0x1d5c42(0xc4)};}function execCleanMcp(_0x16ab23){const _0x1b88eb=a177_0x3857b3;if(!_0x16ab23[_0x1b88eb(0xe4)])return{'step':0x4,'label':_0x1b88eb(0xf4),'ok':!![],'detail':_0x1b88eb(0xb8)};try{const _0x793771=readFileSync(_0x16ab23['oldMcpConfig'][_0x1b88eb(0xd3)],_0x1b88eb(0xfe)),_0x2d9cbb=JSON[_0x1b88eb(0xc0)](_0x793771);if(_0x2d9cbb?.[_0x1b88eb(0xd1)]&&typeof _0x2d9cbb['mcpServers']===_0x1b88eb(0xd6)){const _0x3bcb92=[];for(const [_0x3791d6,_0x4eb583]of Object[_0x1b88eb(0x105)](_0x2d9cbb['mcpServers'])){_0x4eb583?.[_0x1b88eb(0xfd)]&&Array['isArray'](_0x4eb583['args'])&&_0x4eb583[_0x1b88eb(0xfd)][_0x1b88eb(0x112)](_0x2f13e8=>typeof _0x2f13e8==='string'&&_0x2f13e8[_0x1b88eb(0x11c)]('@lovrabet/dataset-mcp-server'))&&_0x3bcb92['push'](_0x3791d6);}for(const _0x14abe1 of _0x3bcb92){delete _0x2d9cbb['mcpServers'][_0x14abe1];}return _0x3bcb92['length']>0x0&&writeFileSync(_0x16ab23[_0x1b88eb(0xe4)][_0x1b88eb(0xd3)],JSON[_0x1b88eb(0xff)](_0x2d9cbb,null,0x2)+'\x0a',_0x1b88eb(0xfe)),{'step':0x4,'label':_0x1b88eb(0xf4),'ok':!![],'detail':_0x1b88eb(0xd4)+_0x3bcb92['join'](',\x20')+_0x1b88eb(0xf5)+_0x16ab23[_0x1b88eb(0xe4)][_0x1b88eb(0xd3)]};}return{'step':0x4,'label':_0x1b88eb(0xf4),'ok':!![],'detail':_0x1b88eb(0x12c)};}catch(_0x4a5b3d){return{'step':0x4,'label':_0x1b88eb(0xf4),'ok':![],'detail':_0x4a5b3d[_0x1b88eb(0xea)]};}}function execSkillsRemove(_0x4f637a,_0x3eee60){const _0x544e2e=a177_0x3857b3,_0x320ab7=runNpxSkillsRemove(_0x4f637a,{'stdio':_0x544e2e(0xcc),'yes':_0x3eee60});return{'step':0x5,'label':_0x544e2e(0xf7),'ok':_0x320ab7['ok'],'detail':_0x320ab7['ok']?_0x544e2e(0x100):_0x320ab7['error']??_0x544e2e(0xe0)+_0x320ab7[_0x544e2e(0x111)]};}function execSkillsAdd(_0x1a48bc,_0x72254e){const _0x463587=a177_0x3857b3,_0x3bbeb1=runNpxSkillsAddGlobal(_0x1a48bc,'lovrabet/rabetbase',{'stdio':_0x463587(0xcc),'yes':_0x72254e});return{'step':0x6,'label':_0x463587(0xb5),'ok':_0x3bbeb1['ok'],'detail':_0x3bbeb1['ok']?_0x463587(0xdf):_0x3bbeb1[_0x463587(0xcb)]??_0x463587(0xe0)+_0x3bbeb1[_0x463587(0x111)]};}function a177_0x577b(_0x326308,_0x3eeb53){_0x326308=_0x326308-0xb2;const _0x593d1c=a177_0x593d();let _0x577b9e=_0x593d1c[_0x326308];return _0x577b9e;}function execUpgradeSdk(_0x548f03){const _0x5551d4=a177_0x3857b3;if(!_0x548f03[_0x5551d4(0xe7)])return{'step':0x7,'label':_0x5551d4(0x126),'ok':!![],'detail':'skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)'};const {pkgPath:_0x2b0f92,currentVersion:_0x3954c7,field:_0x105be6}=_0x548f03[_0x5551d4(0xe7)];try{const _0x9aec99=readFileSync(_0x2b0f92,_0x5551d4(0xfe)),_0x3b9baf=JSON[_0x5551d4(0xc0)](_0x9aec99);return _0x3b9baf[_0x105be6][_0x5551d4(0x104)]='latest',writeFileSync(_0x2b0f92,JSON[_0x5551d4(0xff)](_0x3b9baf,null,0x2)+'\x0a',_0x5551d4(0xfe)),{'step':0x7,'label':_0x5551d4(0x126),'ok':!![],'detail':_0x105be6+'[\x22@lovrabet/sdk\x22]:\x20'+_0x3954c7+_0x5551d4(0xfc)};}catch(_0x5acc5a){return{'step':0x7,'label':_0x5551d4(0x126),'ok':![],'detail':_0x5acc5a[_0x5551d4(0xea)]};}}function tryStat(_0x188519){try{return statSync(_0x188519);}catch{return undefined;}}function printSummary(_0x3d3365){const _0x4458e9=a177_0x3857b3;console['log'](''),console[_0x4458e9(0x12f)](a177_0x3b781c[_0x4458e9(0xf6)]('===\x20Upgrade\x20Summary\x20===')),console[_0x4458e9(0x12f)]('');for(const _0x3be17f of _0x3d3365){const _0x180bae=_0x3be17f['ok']?a177_0x3b781c['green']('OK'):a177_0x3b781c[_0x4458e9(0xe6)](_0x4458e9(0xfa));console[_0x4458e9(0x12f)]('\x20\x20'+_0x180bae+_0x4458e9(0x108)+_0x3be17f[_0x4458e9(0xec)]+':\x20'+_0x3be17f[_0x4458e9(0x125)]);if(_0x3be17f['detail'])console['log']('\x20\x20\x20\x20\x20\x20\x20'+a177_0x3b781c[_0x4458e9(0xb6)](_0x3be17f[_0x4458e9(0xc5)]));}console[_0x4458e9(0x12f)]('');}export async function upgradeApp(_0x1ea223,_0x35d8bc){const _0x2e0cf0=a177_0x3857b3,_0x4ace46=process['cwd'](),_0x1c91e6=analyse(_0x4ace46),_0xbf31d9=!_0x1c91e6[_0x2e0cf0(0xc2)]&&_0x1c91e6['oldArtifacts']['length']===0x0&&!_0x1c91e6[_0x2e0cf0(0xe4)]&&!_0x1c91e6[_0x2e0cf0(0xb7)]&&!_0x1c91e6['sdkUpgrade'];if(_0xbf31d9){console[_0x2e0cf0(0x12f)](a177_0x3b781c[_0x2e0cf0(0xf2)]('No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.'));return;}printReport(_0x1c91e6);const _0x4981b1=!!(_0x35d8bc[_0x2e0cf0(0xca)]||_0x35d8bc['Y']||_0x1ea223);if(!_0x4981b1)try{const _0x4aec0d=await askConfirm(_0x2e0cf0(0x12b));if(!_0x4aec0d){console[_0x2e0cf0(0x12f)](a177_0x3b781c[_0x2e0cf0(0xb6)](_0x2e0cf0(0xc3)));return;}}catch(_0x560480){if(_0x560480?.[_0x2e0cf0(0xea)]==='CANCEL'){console[_0x2e0cf0(0x12f)](a177_0x3b781c[_0x2e0cf0(0xb6)](_0x2e0cf0(0xc3)));return;}throw _0x560480;}const _0x23e2f3=[],_0x23ff54=a177_0x8b40ee({'text':_0x2e0cf0(0xc1),'color':_0x2e0cf0(0x12d)})['start'](),_0x269ce9=execConfigMigration(_0x1c91e6,_0x4ace46);_0x23e2f3['push'](_0x269ce9),_0x23ff54[_0x269ce9['ok']?_0x2e0cf0(0x121):'fail'](_0x2e0cf0(0x11a)+(_0x269ce9['detail']??(_0x269ce9['ok']?'done':_0x2e0cf0(0xf0))));const _0x38bc60=resolve(_0x4ace46,_0x2e0cf0(0xd8)),_0x2739b0=a177_0x8b40ee({'text':_0x2e0cf0(0xce),'color':_0x2e0cf0(0x12d)})[_0x2e0cf0(0x114)]();if(existsSync(_0x38bc60))try{rmSync(_0x38bc60,{'recursive':!![],'force':!![]}),_0x2739b0[_0x2e0cf0(0x121)](_0x2e0cf0(0x122)),_0x23e2f3['push']({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![]});}catch(_0x3b944f){_0x2739b0[_0x2e0cf0(0x113)](_0x2e0cf0(0xd0)+_0x3b944f[_0x2e0cf0(0xea)]),_0x23e2f3[_0x2e0cf0(0x128)]({'step':0x2,'label':_0x2e0cf0(0x103),'ok':![],'detail':_0x3b944f[_0x2e0cf0(0xea)]});}else _0x2739b0[_0x2e0cf0(0xf3)](_0x2e0cf0(0x10d)),_0x23e2f3['push']({'step':0x2,'label':_0x2e0cf0(0x103),'ok':!![],'detail':_0x2e0cf0(0xb8)});const _0x264685=a177_0x8b40ee({'text':'Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','color':_0x2e0cf0(0x12d)})['start'](),_0x265293=execRemoveOldArtifacts(_0x1c91e6[_0x2e0cf0(0xe9)]);_0x23e2f3['push'](_0x265293),_0x264685[_0x265293['ok']?_0x2e0cf0(0x121):_0x2e0cf0(0x113)](_0x2e0cf0(0x12a)+(_0x265293[_0x2e0cf0(0xc5)]??(_0x265293['ok']?'done':_0x2e0cf0(0xf0))));const _0x54ccae=a177_0x8b40ee({'text':'Step\x204/7:\x20Cleaning\x20MCP\x20config...','color':_0x2e0cf0(0x12d)})[_0x2e0cf0(0x114)](),_0xf2c3b2=execCleanMcp(_0x1c91e6);_0x23e2f3[_0x2e0cf0(0x128)](_0xf2c3b2),_0x54ccae[_0xf2c3b2['ok']?'succeed':'fail'](_0x2e0cf0(0x124)+(_0xf2c3b2['detail']??(_0xf2c3b2['ok']?_0x2e0cf0(0x12e):'failed')));const _0x5e5991=a177_0x8b40ee({'text':'Step\x205/7:\x20Removing\x20old\x20skill...','color':_0x2e0cf0(0x12d)})['start'](),_0x42f11e=execSkillsRemove(_0x4ace46,_0x4981b1);_0x23e2f3[_0x2e0cf0(0x128)](_0x42f11e),_0x5e5991[_0x42f11e['ok']?'succeed':_0x2e0cf0(0x113)](_0x2e0cf0(0xe2)+(_0x42f11e['detail']??(_0x42f11e['ok']?'done':'failed')));const _0x1de140=a177_0x8b40ee({'text':'Step\x206/7:\x20Installing\x20new\x20skill...','color':_0x2e0cf0(0x12d)})[_0x2e0cf0(0x114)](),_0x43e4c2=execSkillsAdd(_0x4ace46,_0x4981b1);_0x23e2f3[_0x2e0cf0(0x128)](_0x43e4c2),_0x1de140[_0x43e4c2['ok']?_0x2e0cf0(0x121):_0x2e0cf0(0x113)](_0x2e0cf0(0xb9)+(_0x43e4c2[_0x2e0cf0(0xc5)]??(_0x43e4c2['ok']?_0x2e0cf0(0x12e):_0x2e0cf0(0xf0))));const _0x902b0b=a177_0x8b40ee({'text':'Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','color':'cyan'})['start'](),_0x9a8cbb=execUpgradeSdk(_0x1c91e6);_0x23e2f3['push'](_0x9a8cbb),_0x902b0b[_0x9a8cbb['ok']?_0x2e0cf0(0x121):'fail'](_0x2e0cf0(0xc8)+(_0x9a8cbb[_0x2e0cf0(0xc5)]??(_0x9a8cbb['ok']?_0x2e0cf0(0x12e):_0x2e0cf0(0xf0)))),printSummary(_0x23e2f3);const _0x25fbbb=_0x23e2f3[_0x2e0cf0(0x112)](_0x22ae95=>!_0x22ae95['ok']);_0x25fbbb?console[_0x2e0cf0(0x12f)](a177_0x3b781c[_0x2e0cf0(0x118)](_0x2e0cf0(0x11f))):console['log'](a177_0x3b781c[_0x2e0cf0(0xf2)](_0x2e0cf0(0xc7))),_0x9a8cbb['ok']&&_0x1c91e6[_0x2e0cf0(0xe7)]&&(console[_0x2e0cf0(0x12f)](''),console[_0x2e0cf0(0x12f)](a177_0x3b781c['bold']['cyan'](_0x2e0cf0(0xdd))),console[_0x2e0cf0(0x12f)](a177_0x3b781c[_0x2e0cf0(0x12d)]('Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:')),console[_0x2e0cf0(0x12f)](''),console[_0x2e0cf0(0x12f)](a177_0x3b781c['white'](_0x2e0cf0(0xc9))),console[_0x2e0cf0(0x12f)](a177_0x3b781c[_0x2e0cf0(0xef)](_0x2e0cf0(0xdb))),console['log'](a177_0x3b781c[_0x2e0cf0(0xef)](_0x2e0cf0(0x102))),console[_0x2e0cf0(0x12f)](''));}
|
|
1
|
+
const a177_0x210f1e=a177_0x294f;(function(_0x2a7220,_0x49114c){const _0x182b27=a177_0x294f,_0x41d8f9=_0x2a7220();while(!![]){try{const _0x55229e=-parseInt(_0x182b27(0x104))/0x1+parseInt(_0x182b27(0xc8))/0x2*(-parseInt(_0x182b27(0xab))/0x3)+-parseInt(_0x182b27(0xea))/0x4*(-parseInt(_0x182b27(0xf1))/0x5)+parseInt(_0x182b27(0xd0))/0x6+parseInt(_0x182b27(0xdb))/0x7+parseInt(_0x182b27(0xe8))/0x8+parseInt(_0x182b27(0xed))/0x9*(-parseInt(_0x182b27(0x123))/0xa);if(_0x55229e===_0x49114c)break;else _0x41d8f9['push'](_0x41d8f9['shift']());}catch(_0x31a680){_0x41d8f9['push'](_0x41d8f9['shift']());}}}(a177_0x5506,0x25728));import a177_0x1cf5f8 from'chalk';import a177_0xcdf33e from'ora';import{existsSync,readFileSync,renameSync,rmSync,statSync,unlinkSync,writeFileSync}from'node:fs';import{resolve}from'node:path';import{CONFIG_NAMES,NEW_CONFIG_NAME,readConfigFile,writeConfigFile}from'../../context.js';import{CORE_IDE_CONFIGS}from'../../utils/ai_config.js';function a177_0x5506(){const _0x132d7c=['Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','utf8','1840336IXrWpN','Step\x204/7:\x20Cleaning\x20MCP\x20config...','883944vflsca','Config\x20migration','package.json','50616pqvpli','lovrabet/rabetbase\x20installed\x20globally','Step\x201/7:\x20Migrating\x20config...','Step\x204/7:\x20MCP\x20config\x20—\x20','5LAvWar','fail','status','\x20→\x20keys:\x20','\x20removed\x20(','join','dependencies','FAIL','Legacy\x20artifacts:','mcpServers','needsSkillSwap','oldMcpConfig','@lovrabet/dataset-mcp-server','hasNewConfig','Proceed\x20with\x20upgrade?','gray','removed\x20','Install\x20new\x20skill','keys','235086fIDgeu','===\x20Upgrade\x20Summary\x20===','isArray','.claude/skills/lovrabet','Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20','@lovrabet/sdk:','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','exit\x20','log','\x20(backup:\x20','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','filter','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','Step\x206/7:\x20Installing\x20new\x20skill...','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','Remove\x20old\x20skill','latest','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','no\x20matching\x20entry\x20found','message','parse','yes','\x20removed','undefined','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','Remove\x20legacy\x20artifacts','configMigration','bold','.bak','oldPath','label','260eJDurc','entries','detail','yellow','sdkUpgrade','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','@lovrabet/sdk','12zeLeoL','MCP\x20config:','\x20from\x20','Clean\x20MCP\x20config','Upgrade\x20@lovrabet/sdk','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`','path','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','\x20\x20Current\x20version\x20in\x20','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','.cursor/mcp.json','cyan','length','error','Upgrade\x20completed\x20successfully!','skipped','Config\x20file:','skipped\x20(no\x20legacy\x20config)','devDependencies','includes','not\x20needed','green','Step\x205/7:\x20Removing\x20old\x20skill...','start','step','failed','\x20\x20Fields\x20to\x20migrate:\x20','no\x20legacy\x20config\x20found','red','97222zAIATH','.lovrabet','Remove\x20.lovrabet/','\x20\x20\x20\x20\x20\x20\x20','values','some','Upgrade\x20cancelled.','stringify','146280ytNhBO','\x20\x20Step\x20','done','CANCEL','fields','inherit','no\x20legacy\x20entry','succeed','FOUND','\x20\x20npm\x20install','args','1776110XqDvBQ','\x20→\x20latest','string','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','[\x22@lovrabet/sdk\x22]:\x20','.cursor/rules/lovrabet_rules.mdc','\x20\x20#\x20or','\x20→\x20','white','lovrabet/rabetbase','push'];a177_0x5506=function(){return _0x132d7c;};return a177_0x5506();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,runNpxSkillsAddGlobal,runNpxSkillsRemove}from'../../skills/npx-skills-add.js';function a177_0x294f(_0x4496ea,_0x17b7a4){_0x4496ea=_0x4496ea-0xa6;const _0x550696=a177_0x5506();let _0x294f94=_0x550696[_0x4496ea];return _0x294f94;}import{askConfirm}from'../../commands/menu/shared/inquirer.js';const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a177_0x210f1e(0x10f)](_0x490c1d=>_0x490c1d!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x323e3a){const _0x2785e8=a177_0x210f1e,_0x36d041=[];for(const _0x178d52 of Object[_0x2785e8(0xcc)](CORE_IDE_CONFIGS)){if(_0x178d52['files'])for(const _0x3c53d8 of _0x178d52['files']){_0x36d041['push'](resolve(_0x323e3a,_0x3c53d8[_0x2785e8(0xb1)]));}}return _0x36d041;}function analyse(_0x3fe793){const _0x4182ee=a177_0x210f1e;let _0x5c3d27=null;const _0x2ed53a=resolve(_0x3fe793,NEW_CONFIG_NAME),_0x538721=existsSync(_0x2ed53a);for(const _0x179005 of LEGACY_CONFIG_NAMES){const _0x3a30c0=resolve(_0x3fe793,_0x179005);if(existsSync(_0x3a30c0)){const _0x588489=readConfigFile(_0x3a30c0),_0x92a2c=Object[_0x4182ee(0x103)](_0x588489)['filter'](_0x536f17=>typeof _0x588489[_0x536f17]!==_0x4182ee(0x11b));_0x5c3d27={'oldPath':_0x3a30c0,'hasNewConfig':_0x538721,'fields':_0x92a2c};break;}}const _0x16fe14=[],_0x3a1690=resolve(_0x3fe793,_0x4182ee(0xc9));if(existsSync(_0x3a1690))_0x16fe14[_0x4182ee(0xe5)](_0x3a1690);const _0x28435a=resolve(_0x3fe793,_0x4182ee(0xe0));if(existsSync(_0x28435a))_0x16fe14['push'](_0x28435a);const _0x33cd25=resolve(_0x3fe793,_0x4182ee(0x107));if(existsSync(_0x33cd25))_0x16fe14[_0x4182ee(0xe5)](_0x33cd25);for(const _0x2c7a8f of collectIdeSkillFiles(_0x3fe793)){if(existsSync(_0x2c7a8f))_0x16fe14['push'](_0x2c7a8f);}let _0x2ebd54=null;const _0xf55190=resolve(_0x3fe793,_0x4182ee(0xb5));if(existsSync(_0xf55190))try{const _0x22e2ef=JSON[_0x4182ee(0x118)](readFileSync(_0xf55190,_0x4182ee(0xe7)));if(_0x22e2ef?.[_0x4182ee(0xfa)]&&typeof _0x22e2ef['mcpServers']==='object'){const _0x49ccec=[];for(const [_0x326fc2,_0x2f195]of Object[_0x4182ee(0x124)](_0x22e2ef[_0x4182ee(0xfa)])){const _0x5dbca8=_0x2f195;_0x5dbca8?.[_0x4182ee(0xda)]&&Array[_0x4182ee(0x106)](_0x5dbca8['args'])&&_0x5dbca8[_0x4182ee(0xda)][_0x4182ee(0xcd)](_0x4f3d54=>typeof _0x4f3d54===_0x4182ee(0xdd)&&_0x4f3d54[_0x4182ee(0xbe)](_0x4182ee(0xfd)))&&_0x49ccec[_0x4182ee(0xe5)](_0x326fc2);}_0x49ccec[_0x4182ee(0xb7)]>0x0&&(_0x2ebd54={'path':_0xf55190,'keys':_0x49ccec});}}catch{}const _0x1854eb=_0x16fe14['length']>0x0||_0x5c3d27!==null;let _0x58f084=null;const _0x46c53e=resolve(_0x3fe793,_0x4182ee(0xec));if(existsSync(_0x46c53e))try{const _0x4cd2b1=JSON['parse'](readFileSync(_0x46c53e,_0x4182ee(0xe7)));for(const _0x2c5680 of[_0x4182ee(0xf7),_0x4182ee(0xbd)]){const _0x5e6ac0=_0x4cd2b1?.[_0x2c5680]?.[_0x4182ee(0xaa)];if(typeof _0x5e6ac0===_0x4182ee(0xdd)){_0x5e6ac0!==_0x4182ee(0x114)&&(_0x58f084={'pkgPath':_0x46c53e,'currentVersion':_0x5e6ac0,'field':_0x2c5680});break;}}}catch{}return{'configMigration':_0x5c3d27,'oldArtifacts':_0x16fe14,'oldMcpConfig':_0x2ebd54,'needsSkillSwap':_0x1854eb,'sdkUpgrade':_0x58f084};}function printReport(_0x17ea35){const _0x4365d5=a177_0x210f1e,{configMigration:_0x4c5083,oldArtifacts:_0x594053,oldMcpConfig:_0x3516db,needsSkillSwap:_0x21af25}=_0x17ea35;console[_0x4365d5(0x10c)](''),console[_0x4365d5(0x10c)](a177_0x1cf5f8['bold']('===\x20Upgrade\x20Analysis\x20===')),console[_0x4365d5(0x10c)]('');_0x4c5083?(console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xbb))+('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x4c5083[_0x4365d5(0x121)]))),console[_0x4365d5(0x10c)]('\x20\x20New\x20config\x20(.rabetbase.json):\x20'+(_0x4c5083['hasNewConfig']?a177_0x1cf5f8['green']('already\x20exists\x20(will\x20merge)'):a177_0x1cf5f8[_0x4365d5(0x100)]('not\x20found\x20(will\x20create)'))),console[_0x4365d5(0x10c)](_0x4365d5(0xc5)+_0x4c5083[_0x4365d5(0xd4)][_0x4365d5(0xf6)](',\x20')),console[_0x4365d5(0x10c)](_0x4365d5(0x115))):console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xbb))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)](_0x4365d5(0xc6)));console['log']('');if(_0x594053['length']>0x0){console['log'](a177_0x1cf5f8[_0x4365d5(0xb6)]('Legacy\x20artifacts:'));for(const _0x548470 of _0x594053){console['log']('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xc7)](_0x4365d5(0xd8))+'\x20\x20'+_0x548470);}console[_0x4365d5(0x10c)]('\x20\x20Action:\x20delete');}else console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xf9))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)]('none\x20found'));console[_0x4365d5(0x10c)]('');_0x3516db?(console[_0x4365d5(0x10c)](a177_0x1cf5f8['cyan'](_0x4365d5(0xac))+('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x3516db[_0x4365d5(0xb1)])+_0x4365d5(0xf4)+_0x3516db[_0x4365d5(0x103)][_0x4365d5(0xf6)](',\x20'))),console[_0x4365d5(0x10c)]('\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server')):console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0xac))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)](_0x4365d5(0xd6)));console[_0x4365d5(0x10c)](''),console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)]('Skill\x20swap:')+('\x20\x20'+(_0x21af25?a177_0x1cf5f8['yellow']('needed'):a177_0x1cf5f8[_0x4365d5(0xc0)](_0x4365d5(0xbf)))));_0x21af25&&console[_0x4365d5(0x10c)](_0x4365d5(0xb0)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x4365d5(0x10c)]('');if(_0x17ea35[_0x4365d5(0xa8)]){const {currentVersion:_0x52f824,field:_0x3be1ef,pkgPath:_0x36c01b}=_0x17ea35[_0x4365d5(0xa8)];console[_0x4365d5(0x10c)](a177_0x1cf5f8[_0x4365d5(0xb6)](_0x4365d5(0x109))+('\x20\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x36c01b))),console['log'](_0x4365d5(0xb3)+_0x3be1ef+':\x20'+a177_0x1cf5f8[_0x4365d5(0xa7)](_0x52f824)+_0x4365d5(0xe2)+a177_0x1cf5f8[_0x4365d5(0xc0)]('latest')),console[_0x4365d5(0x10c)](_0x4365d5(0x10e));}else console[_0x4365d5(0x10c)](a177_0x1cf5f8['cyan'](_0x4365d5(0x109))+'\x20\x20'+a177_0x1cf5f8[_0x4365d5(0x100)]('not\x20found\x20or\x20already\x20at\x20latest'));console['log']('');}function execConfigMigration(_0x54e5a6,_0xa15095){const _0x19a46e=a177_0x210f1e,{configMigration:_0x1a6453}=_0x54e5a6;if(!_0x1a6453?.[_0x19a46e(0x121)])return{'step':0x1,'label':_0x19a46e(0xeb),'ok':!![],'detail':_0x19a46e(0xbc)};const _0x313169=readConfigFile(_0x1a6453[_0x19a46e(0x121)]),_0x1ac4e2=resolve(_0xa15095,NEW_CONFIG_NAME),_0x15538a=_0x1a6453[_0x19a46e(0xfe)]?readConfigFile(_0x1ac4e2):{};for(const [_0x204aee,_0x2d5eb7]of Object[_0x19a46e(0x124)](_0x313169)){!(_0x204aee in _0x15538a)&&(_0x15538a[_0x204aee]=_0x2d5eb7);}writeConfigFile(_0x1ac4e2,_0x15538a);const _0xb3aaa1=_0x1a6453['oldPath']+_0x19a46e(0x120);return renameSync(_0x1a6453[_0x19a46e(0x121)],_0xb3aaa1),{'step':0x1,'label':_0x19a46e(0xeb),'ok':!![],'detail':_0x1a6453['oldPath']+_0x19a46e(0xe2)+_0x1ac4e2+_0x19a46e(0x10d)+_0xb3aaa1+')'};}function execRemoveOldArtifacts(_0x176672){const _0x30949f=a177_0x210f1e,_0x3dacc7=[];for(const _0x3d214f of _0x176672){try{if(!existsSync(_0x3d214f))continue;const _0x140be6=tryStat(_0x3d214f);_0x140be6?.['isDirectory']()?rmSync(_0x3d214f,{'recursive':!![],'force':!![]}):unlinkSync(_0x3d214f);}catch(_0x32726b){_0x3dacc7[_0x30949f(0xe5)](_0x3d214f+':\x20'+_0x32726b[_0x30949f(0x117)]);}}return{'step':0x3,'label':_0x30949f(0x11d),'ok':_0x3dacc7[_0x30949f(0xb7)]===0x0,'detail':_0x3dacc7['length']>0x0?_0x176672[_0x30949f(0xb7)]-_0x3dacc7[_0x30949f(0xb7)]+'/'+_0x176672[_0x30949f(0xb7)]+_0x30949f(0xf5)+_0x3dacc7[_0x30949f(0xf6)](';\x20')+')':_0x176672[_0x30949f(0xb7)]+_0x30949f(0x11a)};}function execCleanMcp(_0x259f29){const _0x29b27e=a177_0x210f1e;if(!_0x259f29['oldMcpConfig'])return{'step':0x4,'label':_0x29b27e(0xae),'ok':!![],'detail':_0x29b27e(0xba)};try{const _0x74cf92=readFileSync(_0x259f29[_0x29b27e(0xfc)]['path'],'utf8'),_0x19a0cf=JSON[_0x29b27e(0x118)](_0x74cf92);if(_0x19a0cf?.['mcpServers']&&typeof _0x19a0cf[_0x29b27e(0xfa)]==='object'){const _0x203e00=[];for(const [_0x490a26,_0x26ab34]of Object[_0x29b27e(0x124)](_0x19a0cf['mcpServers'])){_0x26ab34?.[_0x29b27e(0xda)]&&Array[_0x29b27e(0x106)](_0x26ab34[_0x29b27e(0xda)])&&_0x26ab34[_0x29b27e(0xda)][_0x29b27e(0xcd)](_0x5d89ac=>typeof _0x5d89ac===_0x29b27e(0xdd)&&_0x5d89ac[_0x29b27e(0xbe)](_0x29b27e(0xfd)))&&_0x203e00[_0x29b27e(0xe5)](_0x490a26);}for(const _0x25baf5 of _0x203e00){delete _0x19a0cf['mcpServers'][_0x25baf5];}return _0x203e00[_0x29b27e(0xb7)]>0x0&&writeFileSync(_0x259f29[_0x29b27e(0xfc)][_0x29b27e(0xb1)],JSON[_0x29b27e(0xcf)](_0x19a0cf,null,0x2)+'\x0a',_0x29b27e(0xe7)),{'step':0x4,'label':_0x29b27e(0xae),'ok':!![],'detail':_0x29b27e(0x101)+_0x203e00[_0x29b27e(0xf6)](',\x20')+_0x29b27e(0xad)+_0x259f29[_0x29b27e(0xfc)][_0x29b27e(0xb1)]};}return{'step':0x4,'label':_0x29b27e(0xae),'ok':!![],'detail':_0x29b27e(0x116)};}catch(_0x2911e7){return{'step':0x4,'label':_0x29b27e(0xae),'ok':![],'detail':_0x2911e7[_0x29b27e(0x117)]};}}function execSkillsRemove(_0x312b3d,_0x2a866b){const _0xe3c98c=a177_0x210f1e,_0x4ce8b9=runNpxSkillsRemove(_0x312b3d,{'stdio':_0xe3c98c(0xd5),'yes':_0x2a866b});return{'step':0x5,'label':_0xe3c98c(0x113),'ok':_0x4ce8b9['ok'],'detail':_0x4ce8b9['ok']?'lovrabet/lovrabet-skill\x20removed':_0x4ce8b9[_0xe3c98c(0xb8)]??_0xe3c98c(0x10b)+_0x4ce8b9[_0xe3c98c(0xf3)]};}function execSkillsAdd(_0x3a4318,_0xcd4a13){const _0x3b579d=a177_0x210f1e,_0x1787b1=runNpxSkillsAddGlobal(_0x3a4318,_0x3b579d(0xe4),{'stdio':_0x3b579d(0xd5),'yes':_0xcd4a13});return{'step':0x6,'label':_0x3b579d(0x102),'ok':_0x1787b1['ok'],'detail':_0x1787b1['ok']?_0x3b579d(0xee):_0x1787b1[_0x3b579d(0xb8)]??'exit\x20'+_0x1787b1[_0x3b579d(0xf3)]};}function execUpgradeSdk(_0x5a5e76){const _0xb92b5b=a177_0x210f1e;if(!_0x5a5e76['sdkUpgrade'])return{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':!![],'detail':'skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)'};const {pkgPath:_0x921eef,currentVersion:_0x15188b,field:_0x15aa24}=_0x5a5e76[_0xb92b5b(0xa8)];try{const _0x58fa32=readFileSync(_0x921eef,_0xb92b5b(0xe7)),_0x4b2fed=JSON[_0xb92b5b(0x118)](_0x58fa32);return _0x4b2fed[_0x15aa24]['@lovrabet/sdk']=_0xb92b5b(0x114),writeFileSync(_0x921eef,JSON['stringify'](_0x4b2fed,null,0x2)+'\x0a',_0xb92b5b(0xe7)),{'step':0x7,'label':_0xb92b5b(0xaf),'ok':!![],'detail':_0x15aa24+_0xb92b5b(0xdf)+_0x15188b+_0xb92b5b(0xdc)};}catch(_0x5526fc){return{'step':0x7,'label':_0xb92b5b(0xaf),'ok':![],'detail':_0x5526fc[_0xb92b5b(0x117)]};}}function tryStat(_0x4140b7){try{return statSync(_0x4140b7);}catch{return undefined;}}function printSummary(_0x29083e){const _0x3d9d29=a177_0x210f1e;console[_0x3d9d29(0x10c)](''),console[_0x3d9d29(0x10c)](a177_0x1cf5f8[_0x3d9d29(0x11f)](_0x3d9d29(0x105))),console[_0x3d9d29(0x10c)]('');for(const _0x33a73a of _0x29083e){const _0x4693ca=_0x33a73a['ok']?a177_0x1cf5f8[_0x3d9d29(0xc0)]('OK'):a177_0x1cf5f8[_0x3d9d29(0xc7)](_0x3d9d29(0xf8));console[_0x3d9d29(0x10c)]('\x20\x20'+_0x4693ca+_0x3d9d29(0xd1)+_0x33a73a[_0x3d9d29(0xc3)]+':\x20'+_0x33a73a[_0x3d9d29(0x122)]);if(_0x33a73a[_0x3d9d29(0xa6)])console[_0x3d9d29(0x10c)](_0x3d9d29(0xcb)+a177_0x1cf5f8[_0x3d9d29(0x100)](_0x33a73a[_0x3d9d29(0xa6)]));}console['log']('');}export async function upgradeApp(_0x29a7c3,_0x521604){const _0xbd42ed=a177_0x210f1e,_0x4f16c6=process['cwd'](),_0x1a4a1e=analyse(_0x4f16c6),_0x255c70=!_0x1a4a1e[_0xbd42ed(0x11e)]&&_0x1a4a1e['oldArtifacts'][_0xbd42ed(0xb7)]===0x0&&!_0x1a4a1e[_0xbd42ed(0xfc)]&&!_0x1a4a1e[_0xbd42ed(0xfb)]&&!_0x1a4a1e[_0xbd42ed(0xa8)];if(_0x255c70){console['log'](a177_0x1cf5f8[_0xbd42ed(0xc0)]('No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.'));return;}printReport(_0x1a4a1e);const _0xf142f6=!!(_0x521604[_0xbd42ed(0x119)]||_0x521604['Y']||_0x29a7c3);if(!_0xf142f6)try{const _0x471455=await askConfirm(_0xbd42ed(0xff));if(!_0x471455){console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0x100)]('Upgrade\x20cancelled.'));return;}}catch(_0x18e92d){if(_0x18e92d?.['message']===_0xbd42ed(0xd3)){console[_0xbd42ed(0x10c)](a177_0x1cf5f8['gray'](_0xbd42ed(0xce)));return;}throw _0x18e92d;}const _0x3a01e5=[],_0xa8d3ba=a177_0xcdf33e({'text':_0xbd42ed(0xef),'color':_0xbd42ed(0xb6)})['start'](),_0xfc0893=execConfigMigration(_0x1a4a1e,_0x4f16c6);_0x3a01e5[_0xbd42ed(0xe5)](_0xfc0893),_0xa8d3ba[_0xfc0893['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)]('Step\x201/7:\x20Config\x20migration\x20—\x20'+(_0xfc0893['detail']??(_0xfc0893['ok']?_0xbd42ed(0xd2):_0xbd42ed(0xc4))));const _0x2f8e23=resolve(_0x4f16c6,'.lovrabet'),_0x5c8279=a177_0xcdf33e({'text':_0xbd42ed(0x11c),'color':'cyan'})[_0xbd42ed(0xc2)]();if(existsSync(_0x2f8e23))try{rmSync(_0x2f8e23,{'recursive':!![],'force':!![]}),_0x5c8279[_0xbd42ed(0xd7)](_0xbd42ed(0x112)),_0x3a01e5['push']({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![]});}catch(_0x2fd8e3){_0x5c8279['fail'](_0xbd42ed(0x108)+_0x2fd8e3['message']),_0x3a01e5[_0xbd42ed(0xe5)]({'step':0x2,'label':_0xbd42ed(0xca),'ok':![],'detail':_0x2fd8e3[_0xbd42ed(0x117)]});}else _0x5c8279['info']('Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped'),_0x3a01e5[_0xbd42ed(0xe5)]({'step':0x2,'label':_0xbd42ed(0xca),'ok':!![],'detail':_0xbd42ed(0xba)});const _0x4059aa=a177_0xcdf33e({'text':_0xbd42ed(0xe6),'color':'cyan'})[_0xbd42ed(0xc2)](),_0xa657b8=execRemoveOldArtifacts(_0x1a4a1e['oldArtifacts']);_0x3a01e5[_0xbd42ed(0xe5)](_0xa657b8),_0x4059aa[_0xa657b8['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)](_0xbd42ed(0xde)+(_0xa657b8['detail']??(_0xa657b8['ok']?_0xbd42ed(0xd2):_0xbd42ed(0xc4))));const _0x16051a=a177_0xcdf33e({'text':_0xbd42ed(0xe9),'color':'cyan'})[_0xbd42ed(0xc2)](),_0x1b3e10=execCleanMcp(_0x1a4a1e);_0x3a01e5[_0xbd42ed(0xe5)](_0x1b3e10),_0x16051a[_0x1b3e10['ok']?'succeed':_0xbd42ed(0xf2)](_0xbd42ed(0xf0)+(_0x1b3e10[_0xbd42ed(0xa6)]??(_0x1b3e10['ok']?'done':_0xbd42ed(0xc4))));const _0x515c71=a177_0xcdf33e({'text':_0xbd42ed(0xc1),'color':_0xbd42ed(0xb6)})['start'](),_0x4801d5=execSkillsRemove(_0x4f16c6,_0xf142f6);_0x3a01e5[_0xbd42ed(0xe5)](_0x4801d5),_0x515c71[_0x4801d5['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)](_0xbd42ed(0x10a)+(_0x4801d5[_0xbd42ed(0xa6)]??(_0x4801d5['ok']?_0xbd42ed(0xd2):_0xbd42ed(0xc4))));const _0x7d375=a177_0xcdf33e({'text':_0xbd42ed(0x111),'color':_0xbd42ed(0xb6)})['start'](),_0x48dfbb=execSkillsAdd(_0x4f16c6,_0xf142f6);_0x3a01e5['push'](_0x48dfbb),_0x7d375[_0x48dfbb['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)](_0xbd42ed(0xb4)+(_0x48dfbb[_0xbd42ed(0xa6)]??(_0x48dfbb['ok']?'done':_0xbd42ed(0xc4))));const _0x23043c=a177_0xcdf33e({'text':_0xbd42ed(0x110),'color':_0xbd42ed(0xb6)})[_0xbd42ed(0xc2)](),_0x35775e=execUpgradeSdk(_0x1a4a1e);_0x3a01e5[_0xbd42ed(0xe5)](_0x35775e),_0x23043c[_0x35775e['ok']?_0xbd42ed(0xd7):_0xbd42ed(0xf2)]('Step\x207/7:\x20@lovrabet/sdk\x20—\x20'+(_0x35775e[_0xbd42ed(0xa6)]??(_0x35775e['ok']?'done':_0xbd42ed(0xc4)))),printSummary(_0x3a01e5);const _0x2cc89e=_0x3a01e5[_0xbd42ed(0xcd)](_0x592122=>!_0x592122['ok']);_0x2cc89e?console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xa7)](_0xbd42ed(0xa9))):console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xc0)](_0xbd42ed(0xb9))),_0x35775e['ok']&&_0x1a4a1e[_0xbd42ed(0xa8)]&&(console[_0xbd42ed(0x10c)](''),console['log'](a177_0x1cf5f8[_0xbd42ed(0x11f)][_0xbd42ed(0xb6)](_0xbd42ed(0xb2))),console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xb6)]('Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:')),console['log'](''),console[_0xbd42ed(0x10c)](a177_0x1cf5f8['white'](_0xbd42ed(0xd9))),console['log'](a177_0x1cf5f8['white'](_0xbd42ed(0xe1))),console[_0xbd42ed(0x10c)](a177_0x1cf5f8[_0xbd42ed(0xe3)]('\x20\x20bun\x20install')),console[_0xbd42ed(0x10c)](''));}
|
package/lib/commands/registry.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a178_0x58ebe4=a178_0xfa01;(function(_0x317d99,_0x6895a7){const _0x5151d1=a178_0xfa01,_0x28d514=_0x317d99();while(!![]){try{const _0xb99ac5=parseInt(_0x5151d1(0xba))/0x1+parseInt(_0x5151d1(0xbd))/0x2*(parseInt(_0x5151d1(0xb2))/0x3)+-parseInt(_0x5151d1(0xe3))/0x4*(parseInt(_0x5151d1(0x10a))/0x5)+parseInt(_0x5151d1(0xd1))/0x6+-parseInt(_0x5151d1(0xc7))/0x7*(-parseInt(_0x5151d1(0xdf))/0x8)+parseInt(_0x5151d1(0xe4))/0x9*(parseInt(_0x5151d1(0xd5))/0xa)+-parseInt(_0x5151d1(0xd8))/0xb*(parseInt(_0x5151d1(0x102))/0xc);if(_0xb99ac5===_0x6895a7)break;else _0x28d514['push'](_0x28d514['shift']());}catch(_0x167fbe){_0x28d514['push'](_0x28d514['shift']());}}}(a178_0x6514,0xcd8fc));import{apiDefinitions}from'../commands/api/index.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{pageDefinitions}from'../commands/page/index.js';import{dataDefinitions}from'../commands/data/index.js';import{dbDefinitions}from'../commands/db/index.js';import{codegenDefinitions}from'../commands/codegen/index.js';import{menuDefinitions}from'../commands/menu/index.js';import{taskDefinitions}from'../commands/task/index.js';import{tenantDefinitions}from'../commands/tenant/index.js';import{roleDefinitions}from'../commands/role/index.js';import{permitDefinitions}from'../commands/permit/index.js';import{appDefinitions}from'../commands/app/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{notificationDefinitions}from'../commands/notification/index.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/index.js';import{doctorDefinition}from'../commands/doctor.js';import{updateDefinition}from'../commands/cli-update.js';import{schemaDefinition}from'../commands/schema.js';import{issueDefinitions}from'../commands/issue/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{userAccountDefinitions}from'../commands/user-account/index.js';import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{projectDefinitions}from'../commands/project/index.js';import{initDefinitions}from'../commands/init/index.js';import{runDefinition}from'../commands/run/index.js';export const serviceRegistry=[];const serviceByName=new Map();function a178_0x6514(){const _0x143525=['rabetbase\x20sql\x20create','project:init','Configuration','7xTrrWh','Permissions','read','Run\x20any\x20package.json\x20script','has','menu:update','skills:install','rabetbase\x20menu\x20asset-update','File','rabetbase\x20app\x20list\x20--remote','3538404eOrmDn','API\x20Development','Logs','Use\x20`','114020rQpVeZ','run','\x20\x20[','14817jeMOff','push','rabetbase\x20auth\x20logout','rabetbase\x20kb\x20detail','rabetbase\x20kb\x20update','bff:new','hidden','1368184iHTZZu','Authentication','defaultCommand','BFF\x20Scripts','16oiLWfc','747AadRSU','OCR','Quick\x20Start','rabetbase\x20workspace\x20use\x20--app\x20<name>','Tenant\x20Members','set','knowledge-base:delete','commands','rabetbase\x20workspace\x20add\x20<name>\x20--appcode\x20<code>','values','Smart\x20List\x20Pages\x20&\x20React\x20Custom\x20Pages','Database\x20Connections','rabetbase\x20kb\x20list','Notification\x20Configuration','create','write','Code\x20Generation','rabetbase\x20run\x20preview','wildcardDef','Roles','skills:','description','Schema','Project','rabetbase\x20workspace\x20remove\x20<name>','map','show','rabetbase\x20kb\x20delete','filter','app:add','30288NtxzJu','rabetbase\x20run\x20build','Menu','rabetbase\x20kb\x20create','skill:install','`\x20instead.','app:remove','rabetbase\x20project\x20create\x20<project-name>','694615AXwXNl','\x20\x20[write]','knowledge-base:create','rabetbase\x20cli-skill\x20install','App\x20Management','isSingleCommand','skill:','sql:new','from','366mtuoZa','SQL\x20Queries','Runtime\x20App\x20Config\x20Management','service','start','command','rabetbase\x20bff\x20create','Workspace','1478269rxNFtj','\x20\x20[high-risk-write]','logout','26428kGnmnD','rabetbase\x20run\x20start','install','get','app:use','length','knowledge-base:list'];a178_0x6514=function(){return _0x143525;};return a178_0x6514();}export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0x3ad901){const _0x33ed8a=a178_0xfa01;for(const _0x164f44 of _0x3ad901){definitions[_0x33ed8a(0xe9)](_0x164f44[_0x33ed8a(0xb5)]+':'+_0x164f44[_0x33ed8a(0xb7)],_0x164f44);let _0x49f74e=serviceGroups[_0x33ed8a(0xc0)](_0x164f44[_0x33ed8a(0xb5)]);!_0x49f74e&&(_0x49f74e=[],serviceGroups[_0x33ed8a(0xe9)](_0x164f44[_0x33ed8a(0xb5)],_0x49f74e)),_0x49f74e[_0x33ed8a(0xd9)](_0x164f44);}}function registerDeclarativeService(_0x2afaf1,_0x5511bd,_0x6c5979){const _0x468b2c=a178_0xfa01;registerDefinitions(_0x5511bd);_0x6c5979?.[_0x468b2c(0xf6)]&®isterDefinitions([_0x6c5979['wildcardDef']]);const _0x326087=_0x47e2bd=>_0x47e2bd===_0x468b2c(0xc9)?'':_0x47e2bd===_0x468b2c(0xf3)?_0x468b2c(0x10b):_0x468b2c(0xbb),_0x368c5={'service':_0x5511bd[0x0]['service'],'label':_0x2afaf1,'commands':_0x5511bd[_0x468b2c(0x100)](_0x13142c=>!_0x13142c[_0x468b2c(0xde)])[_0x468b2c(0xfd)](_0x3a202f=>({'command':_0x3a202f[_0x468b2c(0xb7)],'description':_0x3a202f[_0x468b2c(0xf9)],'tag':_0x326087(_0x3a202f['risk'])})),'declarative':!![],'defaultCommand':_0x6c5979?.[_0x468b2c(0xe1)]??(_0x6c5979?.[_0x468b2c(0x10f)]?_0x5511bd[0x0]['command']:undefined),'wildcardDef':_0x6c5979?.[_0x468b2c(0xf6)],'isSingleCommand':_0x6c5979?.[_0x468b2c(0x10f)]};serviceRegistry[_0x468b2c(0xd9)](_0x368c5),serviceByName[_0x468b2c(0xe9)](_0x368c5[_0x468b2c(0xb5)],_0x368c5);}registerDeclarativeService(a178_0x58ebe4(0xe6),initDefinitions,{'defaultCommand':a178_0x58ebe4(0xd6),'isSingleCommand':!![]}),registerDeclarativeService(a178_0x58ebe4(0xfb),projectDefinitions),registerDeclarativeService(a178_0x58ebe4(0xb9),workspaceDefinitions),registerDeclarativeService(a178_0x58ebe4(0x10e),appDefinitions),registerDeclarativeService(a178_0x58ebe4(0xe0),authDefinitions,{'defaultCommand':'login'}),registerDeclarativeService(a178_0x58ebe4(0xe8),tenantDefinitions),registerDeclarativeService('User\x20Accounts',userAccountDefinitions),registerDeclarativeService('Dataset\x20&\x20Operations',datasetDefinitions),registerDeclarativeService(a178_0x58ebe4(0xee),pageDefinitions),registerDeclarativeService(a178_0x58ebe4(0xd2),apiDefinitions),registerDeclarativeService('Instant\x20API',dataDefinitions),registerDeclarativeService(a178_0x58ebe4(0xe2),bffDefinitions),registerDeclarativeService(a178_0x58ebe4(0xf1),notificationDefinitions),registerDeclarativeService(a178_0x58ebe4(0xb3),sqlDefinitions),registerDeclarativeService(a178_0x58ebe4(0xef),dbDefinitions),registerDeclarativeService(a178_0x58ebe4(0x104),menuDefinitions),registerDeclarativeService('Async\x20Tasks',taskDefinitions),registerDeclarativeService(a178_0x58ebe4(0xf7),roleDefinitions),registerDeclarativeService(a178_0x58ebe4(0xc8),permitDefinitions),registerDeclarativeService(a178_0x58ebe4(0xb4),appConfigDefinitions),registerDeclarativeService('Company\x20Knowledge\x20Base',kbDefinitions),registerDeclarativeService('Platform\x20Issue',issueDefinitions),registerDeclarativeService(a178_0x58ebe4(0xcf),fileDefinitions),registerDeclarativeService(a178_0x58ebe4(0xe5),ocrDefinitions),registerDeclarativeService(a178_0x58ebe4(0xf4),codegenDefinitions),registerDeclarativeService(a178_0x58ebe4(0xc6),configDefinitions),registerDeclarativeService('Diagnostics',[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a178_0x58ebe4(0xfa),[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService('Self\x20Update',[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService('CLI\x20Built-in\x20Skill',cliSkillDefinitions,{'defaultCommand':a178_0x58ebe4(0xbf)}),registerDeclarativeService(a178_0x58ebe4(0xd3),logsDefinitions,{'defaultCommand':a178_0x58ebe4(0xfe)}),registerDeclarativeService('Run\x20Scripts',[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry[a178_0x58ebe4(0xc2)]-0x1];last[a178_0x58ebe4(0xeb)]=[{'command':'<script>','description':a178_0x58ebe4(0xca),'tag':a178_0x58ebe4(0xd7)+runDefinition['risk']+']'}];}function a178_0xfa01(_0x533571,_0x25bbd1){_0x533571=_0x533571-0xb2;const _0x6514d=a178_0x6514();let _0xfa01d6=_0x6514d[_0x533571];return _0xfa01d6;}const REMOVED_COMMAND_REPLACEMENTS=new Map([['sql:save','rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml'],[a178_0x58ebe4(0xdd),a178_0x58ebe4(0xb8)],[a178_0x58ebe4(0x111),a178_0x58ebe4(0xc4)],[a178_0x58ebe4(0xcc),a178_0x58ebe4(0xce)],[a178_0x58ebe4(0xc5),'rabetbase\x20workspace\x20init\x20--appcode\x20<code>'],[a178_0x58ebe4(0x110),a178_0x58ebe4(0x10d)],[a178_0x58ebe4(0x106),a178_0x58ebe4(0x10d)],[a178_0x58ebe4(0xf8),a178_0x58ebe4(0x10d)],[a178_0x58ebe4(0xcd),a178_0x58ebe4(0x10d)],['app:remote',a178_0x58ebe4(0xd0)],[a178_0x58ebe4(0xc1),a178_0x58ebe4(0xe7)],[a178_0x58ebe4(0x101),a178_0x58ebe4(0xec)],[a178_0x58ebe4(0x108),a178_0x58ebe4(0xfc)],[a178_0x58ebe4(0xc3),a178_0x58ebe4(0xf0)],['knowledge-base:detail',a178_0x58ebe4(0xdb)],[a178_0x58ebe4(0x10c),a178_0x58ebe4(0x105)],['knowledge-base:update',a178_0x58ebe4(0xdc)],[a178_0x58ebe4(0xea),a178_0x58ebe4(0xff)]]),REMOVED_FLAT_COMMAND_REPLACEMENTS=new Map([[a178_0x58ebe4(0xf2),a178_0x58ebe4(0x109)],[a178_0x58ebe4(0xb6),a178_0x58ebe4(0xbe)],['build',a178_0x58ebe4(0x103)],['preview',a178_0x58ebe4(0xf5)],[a178_0x58ebe4(0xbc),a178_0x58ebe4(0xda)]]);export function resolveRemovedCommand(_0x18c12a,_0x455c34){const _0x47e995=a178_0x58ebe4;if(!_0x18c12a)return undefined;const _0x315ff9=REMOVED_COMMAND_REPLACEMENTS['get'](_0x18c12a+':'+(_0x455c34??'')),_0x568296=REMOVED_FLAT_COMMAND_REPLACEMENTS[_0x47e995(0xc0)](_0x18c12a),_0x1aff07=_0x315ff9??_0x568296;if(!_0x1aff07)return undefined;const _0x65317f=_0x568296?_0x18c12a:_0x455c34?_0x18c12a+'\x20'+_0x455c34:_0x18c12a;return{'command':_0x65317f,'message':'`rabetbase\x20'+_0x65317f+'`\x20has\x20been\x20removed.','hint':_0x47e995(0xd4)+_0x1aff07+_0x47e995(0x107)};}export function findDefinition(_0x35f5ed,_0x2d60d1){const _0x559f8d=a178_0x58ebe4;return definitions[_0x559f8d(0xc0)](_0x35f5ed+':'+_0x2d60d1);}export function isKnownService(_0x334c61){const _0x53a810=a178_0x58ebe4;return serviceByName[_0x53a810(0xcb)](_0x334c61);}export function isDeclarativeService(_0x53d97f){const _0x3346fc=a178_0x58ebe4;return serviceGroups[_0x3346fc(0xcb)](_0x53d97f)||serviceByName['get'](_0x53d97f)?.[_0x3346fc(0xf6)]!==undefined;}export function getServiceEntry(_0x28bd49){return serviceByName['get'](_0x28bd49);}export function getLegacyHandler(_0x35655b,_0x1b9719){return undefined;}export function getAllDefinitions(){const _0x443329=a178_0x58ebe4;return Array[_0x443329(0x112)](definitions[_0x443329(0xed)]());}
|
|
1
|
+
const a178_0x54d279=a178_0x567f;(function(_0x3b441f,_0x318c0e){const _0x2b8559=a178_0x567f,_0x1d53b3=_0x3b441f();while(!![]){try{const _0x12671d=-parseInt(_0x2b8559(0x1ae))/0x1*(-parseInt(_0x2b8559(0x1b8))/0x2)+-parseInt(_0x2b8559(0x1b9))/0x3+-parseInt(_0x2b8559(0x1c8))/0x4*(parseInt(_0x2b8559(0x1b0))/0x5)+-parseInt(_0x2b8559(0x1f7))/0x6+-parseInt(_0x2b8559(0x1f4))/0x7*(parseInt(_0x2b8559(0x1d4))/0x8)+-parseInt(_0x2b8559(0x1c7))/0x9+-parseInt(_0x2b8559(0x1fb))/0xa*(-parseInt(_0x2b8559(0x1fd))/0xb);if(_0x12671d===_0x318c0e)break;else _0x1d53b3['push'](_0x1d53b3['shift']());}catch(_0x2a16b6){_0x1d53b3['push'](_0x1d53b3['shift']());}}}(a178_0x5abe,0x8c9bf));import{apiDefinitions}from'../commands/api/index.js';import{bffDefinitions}from'../commands/bff/index.js';import{sqlDefinitions}from'../commands/sql/index.js';import{datasetDefinitions}from'../commands/dataset/index.js';import{pageDefinitions}from'../commands/page/index.js';import{dataDefinitions}from'../commands/data/index.js';import{dbDefinitions}from'../commands/db/index.js';import{codegenDefinitions}from'../commands/codegen/index.js';import{menuDefinitions}from'../commands/menu/index.js';function a178_0x567f(_0x4b17c2,_0x570f61){_0x4b17c2=_0x4b17c2-0x1a2;const _0x5abe87=a178_0x5abe();let _0x567f4a=_0x5abe87[_0x4b17c2];return _0x567f4a;}import{taskDefinitions}from'../commands/task/index.js';import{tenantDefinitions}from'../commands/tenant/index.js';import{roleDefinitions}from'../commands/role/index.js';function a178_0x5abe(){const _0x595214=['\x20\x20[write]','120qbeWuo','rabetbase\x20cli-skill\x20install','2225377SZCoCb','rabetbase\x20kb\x20detail','\x20\x20[','Schema','SQL\x20Queries','rabetbase\x20kb\x20delete','sql:new','rabetbase\x20sql\x20create','preview','Company\x20Knowledge\x20Base','rabetbase\x20bff\x20create','command','Platform\x20Issue','knowledge-base:create','skills:install','5668SOalga','API\x20Development','119905mqudKT','filter','build','`\x20has\x20been\x20removed.','login','App\x20Management','app:add','logout','208JXkeco','171333CNWCvs','rabetbase\x20workspace\x20remove\x20<name>','`rabetbase\x20','set','app:remove','knowledge-base:detail','Notification\x20Configuration','map','skill:','rabetbase\x20workspace\x20use\x20--app\x20<name>','from','skills:','push','CLI\x20Built-in\x20Skill','9324684ArlHfi','4fszmtW','defaultCommand','hidden','description','get','rabetbase\x20sql\x20create\x20--name\x20<name>\x20--db-id\x20<id>\x20--mode\x20sql|mybatisXml','sql:save','knowledge-base:list','Diagnostics','values','Run\x20any\x20package.json\x20script','Async\x20Tasks','8nngIja','Tenant\x20Members','length','start','bff:new','`\x20instead.','install','create','rabetbase\x20kb\x20update','rabetbase\x20run\x20build','BFF\x20Scripts','\x20\x20[high-risk-write]','Workspace','Runtime\x20App\x20Config\x20Management','wildcardDef','Run\x20Scripts','commands','isSingleCommand','risk','rabetbase\x20run\x20start','rabetbase\x20auth\x20logout','service','project:init','rabetbase\x20app\x20list\x20--remote','Self\x20Update','Permissions','has','Quick\x20Start','skill:install','rabetbase\x20run\x20preview','Authentication','OCR','7279447xnODgw','Configuration','<script>','1704792LVXSnO','Smart\x20List\x20Pages\x20&\x20React\x20Custom\x20Pages','Instant\x20API'];a178_0x5abe=function(){return _0x595214;};return a178_0x5abe();}import{permitDefinitions}from'../commands/permit/index.js';import{appDefinitions}from'../commands/app/index.js';import{appConfigDefinitions}from'../commands/app-config/index.js';import{kbDefinitions}from'../commands/kb/index.js';import{notificationDefinitions}from'../commands/notification/index.js';import{workspaceDefinitions}from'../commands/workspace/index.js';import{configDefinitions}from'../commands/config/index.js';import{doctorDefinition}from'../commands/doctor.js';import{updateDefinition}from'../commands/cli-update.js';import{schemaDefinition}from'../commands/schema.js';import{issueDefinitions}from'../commands/issue/index.js';import{fileDefinitions}from'../commands/file/index.js';import{ocrDefinitions}from'../commands/ocr/index.js';import{cliSkillDefinitions}from'../commands/cli-skill/index.js';import{userAccountDefinitions}from'../commands/user-account/index.js';import{authDefinitions}from'../commands/auth/index.js';import{logsDefinitions}from'../commands/logs/index.js';import{projectDefinitions}from'../commands/project/index.js';import{initDefinitions}from'../commands/init/index.js';import{runDefinition}from'../commands/run/index.js';export const serviceRegistry=[];const serviceByName=new Map();export const definitions=new Map();export const serviceGroups=new Map();function registerDefinitions(_0xbc7995){const _0xf040e1=a178_0x567f;for(const _0x36837b of _0xbc7995){definitions[_0xf040e1(0x1bc)](_0x36837b['service']+':'+_0x36837b[_0xf040e1(0x1aa)],_0x36837b);let _0x112fe1=serviceGroups[_0xf040e1(0x1cc)](_0x36837b[_0xf040e1(0x1e9)]);!_0x112fe1&&(_0x112fe1=[],serviceGroups[_0xf040e1(0x1bc)](_0x36837b[_0xf040e1(0x1e9)],_0x112fe1)),_0x112fe1[_0xf040e1(0x1c5)](_0x36837b);}}function registerDeclarativeService(_0xfe6dfe,_0x41591c,_0x32d42a){const _0x34dec0=a178_0x567f;registerDefinitions(_0x41591c);_0x32d42a?.[_0x34dec0(0x1e2)]&®isterDefinitions([_0x32d42a[_0x34dec0(0x1e2)]]);const _0x3a5ee8=_0x9b48c7=>_0x9b48c7==='read'?'':_0x9b48c7==='write'?_0x34dec0(0x1fa):_0x34dec0(0x1df),_0x2dc02f={'service':_0x41591c[0x0][_0x34dec0(0x1e9)],'label':_0xfe6dfe,'commands':_0x41591c[_0x34dec0(0x1b1)](_0x232633=>!_0x232633[_0x34dec0(0x1ca)])[_0x34dec0(0x1c0)](_0x2b9760=>({'command':_0x2b9760[_0x34dec0(0x1aa)],'description':_0x2b9760[_0x34dec0(0x1cb)],'tag':_0x3a5ee8(_0x2b9760[_0x34dec0(0x1e6)])})),'declarative':!![],'defaultCommand':_0x32d42a?.[_0x34dec0(0x1c9)]??(_0x32d42a?.[_0x34dec0(0x1e5)]?_0x41591c[0x0]['command']:undefined),'wildcardDef':_0x32d42a?.['wildcardDef'],'isSingleCommand':_0x32d42a?.[_0x34dec0(0x1e5)]};serviceRegistry[_0x34dec0(0x1c5)](_0x2dc02f),serviceByName['set'](_0x2dc02f[_0x34dec0(0x1e9)],_0x2dc02f);}registerDeclarativeService(a178_0x54d279(0x1ef),initDefinitions,{'defaultCommand':'run','isSingleCommand':!![]}),registerDeclarativeService('Project',projectDefinitions),registerDeclarativeService(a178_0x54d279(0x1e0),workspaceDefinitions),registerDeclarativeService(a178_0x54d279(0x1b5),appDefinitions),registerDeclarativeService(a178_0x54d279(0x1f2),authDefinitions,{'defaultCommand':a178_0x54d279(0x1b4)}),registerDeclarativeService(a178_0x54d279(0x1d5),tenantDefinitions),registerDeclarativeService('User\x20Accounts',userAccountDefinitions),registerDeclarativeService('Dataset\x20&\x20Operations',datasetDefinitions),registerDeclarativeService(a178_0x54d279(0x1f8),pageDefinitions),registerDeclarativeService(a178_0x54d279(0x1af),apiDefinitions),registerDeclarativeService(a178_0x54d279(0x1f9),dataDefinitions),registerDeclarativeService(a178_0x54d279(0x1de),bffDefinitions),registerDeclarativeService(a178_0x54d279(0x1bf),notificationDefinitions),registerDeclarativeService(a178_0x54d279(0x1a3),sqlDefinitions),registerDeclarativeService('Database\x20Connections',dbDefinitions),registerDeclarativeService('Menu',menuDefinitions),registerDeclarativeService(a178_0x54d279(0x1d3),taskDefinitions),registerDeclarativeService('Roles',roleDefinitions),registerDeclarativeService(a178_0x54d279(0x1ed),permitDefinitions),registerDeclarativeService(a178_0x54d279(0x1e1),appConfigDefinitions),registerDeclarativeService(a178_0x54d279(0x1a8),kbDefinitions),registerDeclarativeService(a178_0x54d279(0x1ab),issueDefinitions),registerDeclarativeService('File',fileDefinitions),registerDeclarativeService(a178_0x54d279(0x1f3),ocrDefinitions),registerDeclarativeService('Code\x20Generation',codegenDefinitions),registerDeclarativeService(a178_0x54d279(0x1f5),configDefinitions),registerDeclarativeService(a178_0x54d279(0x1d0),[doctorDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a178_0x54d279(0x1a2),[schemaDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a178_0x54d279(0x1ec),[updateDefinition],{'isSingleCommand':!![]}),registerDeclarativeService(a178_0x54d279(0x1c6),cliSkillDefinitions,{'defaultCommand':a178_0x54d279(0x1da)}),registerDeclarativeService('Logs',logsDefinitions,{'defaultCommand':'show'}),registerDeclarativeService(a178_0x54d279(0x1e3),[runDefinition],{'wildcardDef':runDefinition});{const last=serviceRegistry[serviceRegistry[a178_0x54d279(0x1d6)]-0x1];last[a178_0x54d279(0x1e4)]=[{'command':a178_0x54d279(0x1f6),'description':a178_0x54d279(0x1d2),'tag':a178_0x54d279(0x1ff)+runDefinition['risk']+']'}];}const REMOVED_COMMAND_REPLACEMENTS=new Map([[a178_0x54d279(0x1ce),a178_0x54d279(0x1cd)],[a178_0x54d279(0x1d8),a178_0x54d279(0x1a9)],[a178_0x54d279(0x1a5),a178_0x54d279(0x1a6)],['menu:update','rabetbase\x20menu\x20asset-update'],[a178_0x54d279(0x1ea),'rabetbase\x20workspace\x20init\x20--appcode\x20<code>'],[a178_0x54d279(0x1c1),'rabetbase\x20cli-skill\x20install'],[a178_0x54d279(0x1f0),a178_0x54d279(0x1fc)],[a178_0x54d279(0x1c4),a178_0x54d279(0x1fc)],[a178_0x54d279(0x1ad),a178_0x54d279(0x1fc)],['app:remote',a178_0x54d279(0x1eb)],['app:use',a178_0x54d279(0x1c2)],[a178_0x54d279(0x1b6),'rabetbase\x20workspace\x20add\x20<name>\x20--appcode\x20<code>'],[a178_0x54d279(0x1bd),a178_0x54d279(0x1ba)],[a178_0x54d279(0x1cf),'rabetbase\x20kb\x20list'],[a178_0x54d279(0x1be),a178_0x54d279(0x1fe)],[a178_0x54d279(0x1ac),'rabetbase\x20kb\x20create'],['knowledge-base:update',a178_0x54d279(0x1dc)],['knowledge-base:delete',a178_0x54d279(0x1a4)]]),REMOVED_FLAT_COMMAND_REPLACEMENTS=new Map([[a178_0x54d279(0x1db),'rabetbase\x20project\x20create\x20<project-name>'],[a178_0x54d279(0x1d7),a178_0x54d279(0x1e7)],[a178_0x54d279(0x1b2),a178_0x54d279(0x1dd)],[a178_0x54d279(0x1a7),a178_0x54d279(0x1f1)],[a178_0x54d279(0x1b7),a178_0x54d279(0x1e8)]]);export function resolveRemovedCommand(_0x584068,_0x56b2d3){const _0x10c69d=a178_0x54d279;if(!_0x584068)return undefined;const _0x3c22d5=REMOVED_COMMAND_REPLACEMENTS[_0x10c69d(0x1cc)](_0x584068+':'+(_0x56b2d3??'')),_0x1c8afb=REMOVED_FLAT_COMMAND_REPLACEMENTS[_0x10c69d(0x1cc)](_0x584068),_0x1572f1=_0x3c22d5??_0x1c8afb;if(!_0x1572f1)return undefined;const _0x2a7307=_0x1c8afb?_0x584068:_0x56b2d3?_0x584068+'\x20'+_0x56b2d3:_0x584068;return{'command':_0x2a7307,'message':_0x10c69d(0x1bb)+_0x2a7307+_0x10c69d(0x1b3),'hint':'Use\x20`'+_0x1572f1+_0x10c69d(0x1d9)};}export function findDefinition(_0x316c13,_0x1ebe80){return definitions['get'](_0x316c13+':'+_0x1ebe80);}export function isKnownService(_0x26514f){const _0x1a2434=a178_0x54d279;return serviceByName[_0x1a2434(0x1ee)](_0x26514f);}export function isDeclarativeService(_0x6df09c){const _0x598532=a178_0x54d279;return serviceGroups['has'](_0x6df09c)||serviceByName[_0x598532(0x1cc)](_0x6df09c)?.['wildcardDef']!==undefined;}export function getServiceEntry(_0x4f024d){return serviceByName['get'](_0x4f024d);}export function getLegacyHandler(_0x380f3e,_0x4084d2){return undefined;}export function getAllDefinitions(){const _0x6b8f30=a178_0x54d279;return Array[_0x6b8f30(0x1c3)](definitions[_0x6b8f30(0x1d1)]());}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a179_0x3ae712=a179_0x1263;(function(_0x6a9ef4,_0x2d5a0c){const _0x5ba573=a179_0x1263,_0x5d02ac=_0x6a9ef4();while(!![]){try{const _0x5db42d=parseInt(_0x5ba573(0x19f))/0x1+-parseInt(_0x5ba573(0x193))/0x2*(-parseInt(_0x5ba573(0x189))/0x3)+-parseInt(_0x5ba573(0x18e))/0x4+parseInt(_0x5ba573(0x1a2))/0x5*(-parseInt(_0x5ba573(0x18c))/0x6)+-parseInt(_0x5ba573(0x18f))/0x7*(parseInt(_0x5ba573(0x18d))/0x8)+-parseInt(_0x5ba573(0x19a))/0x9+parseInt(_0x5ba573(0x195))/0xa;if(_0x5db42d===_0x2d5a0c)break;else _0x5d02ac['push'](_0x5d02ac['shift']());}catch(_0x2e3008){_0x5d02ac['push'](_0x5d02ac['shift']());}}}(a179_0xf736,0x8b56d));import{createAppRole}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a179_0xf736(){const _0x513434=['4256432wgCJyw','147tVvLsB','validation','/smartapi/permit/role/create','remark','2YrBTTP','POST','34502240fExxDN','Created\x20role\x20','length','flagMissing','appCode','9530550jqQPfy','write','name','Create\x20a\x20CUSTOM\x20user\x20group\x20(role)','create','295884KQyLgi','trim','roleName','125UKyWyP','CUSTOM','Role\x20name\x20cannot\x20exceed\x2064\x20characters.','948963wvKfhv','str','role','242274lgbzBy','136824ncLORo'];a179_0xf736=function(){return _0x513434;};return a179_0xf736();}function a179_0x1263(_0x5d783c,_0x25d064){_0x5d783c=_0x5d783c-0x187;const _0xf73656=a179_0xf736();let _0x126387=_0xf73656[_0x5d783c];return _0x126387;}import{NAME_FLAG,REMARK_FLAG,projectRole}from'../../commands/role/shared.js';const CREATE_PATH=a179_0x3ae712(0x191);function readName(_0x4ad8e0){const _0x3052d3=a179_0x3ae712,_0x1388c3=_0x4ad8e0[_0x3052d3(0x18a)](_0x3052d3(0x19c))[_0x3052d3(0x1a0)]();if(!_0x1388c3)throw CliErrors[_0x3052d3(0x198)]('name','Pass\x20--name\x20<roleName>.');if(_0x1388c3[_0x3052d3(0x197)]>0x40)throw CliErrors[_0x3052d3(0x190)](_0x3052d3(0x188));return _0x1388c3;}export const roleCreate={'service':a179_0x3ae712(0x18b),'command':a179_0x3ae712(0x19e),'description':a179_0x3ae712(0x19d),'risk':a179_0x3ae712(0x19b),'flags':[NAME_FLAG,REMARK_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3e179c){readName(_0x3e179c);},async 'dryRun'(_0x58a10d){const _0x2e5368=a179_0x3ae712,_0x28ca9f=readName(_0x58a10d),_0x35ac93=_0x58a10d['str'](_0x2e5368(0x192))[_0x2e5368(0x1a0)]()||undefined;return asDryRunResult({'operation':_0x2e5368(0x19e),'selector':{'appCode':_0x58a10d[_0x2e5368(0x199)],'roleName':_0x28ca9f},'before':null,'after':{'roleName':_0x28ca9f,'roleType':_0x2e5368(0x187),'remark':_0x35ac93},'dryRun':!![],'backend':{'method':_0x2e5368(0x194),'path':CREATE_PATH},'warnings':[]},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0xa7a3c){const _0x40fb6d=a179_0x3ae712,_0x339723=readName(_0xa7a3c),_0x52ff9a=_0xa7a3c[_0x40fb6d(0x18a)](_0x40fb6d(0x192))[_0x40fb6d(0x1a0)]()||undefined,_0x325d38=await createAppRole({'appCode':_0xa7a3c[_0x40fb6d(0x199)],'roleName':_0x339723,..._0x52ff9a?{'remark':_0x52ff9a}:{}});return{'ok':!![],'data':{'operation':_0x40fb6d(0x19e),'selector':{'appCode':_0xa7a3c['appCode'],'roleId':_0x325d38['id'],'roleName':_0x339723},'before':null,'after':projectRole(_0x325d38),'dryRun':![],'backend':{'method':_0x40fb6d(0x194),'path':CREATE_PATH},'warnings':[]},'message':_0x40fb6d(0x196)+_0x325d38[_0x40fb6d(0x1a1)]+'\x20(id='+_0x325d38['id']+')'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a180_0x198189=a180_0x432d;(function(_0x20e11e,_0x51100e){const _0x4e4e24=a180_0x432d,_0x5f38d0=_0x20e11e();while(!![]){try{const _0x3ec9b3=-parseInt(_0x4e4e24(0x94))/0x1*(-parseInt(_0x4e4e24(0x98))/0x2)+parseInt(_0x4e4e24(0x97))/0x3*(-parseInt(_0x4e4e24(0x8f))/0x4)+-parseInt(_0x4e4e24(0x8c))/0x5*(parseInt(_0x4e4e24(0x87))/0x6)+parseInt(_0x4e4e24(0x8d))/0x7+-parseInt(_0x4e4e24(0x9a))/0x8+-parseInt(_0x4e4e24(0x8e))/0x9+-parseInt(_0x4e4e24(0x88))/0xa*(-parseInt(_0x4e4e24(0x96))/0xb);if(_0x3ec9b3===_0x51100e)break;else _0x5f38d0['push'](_0x5f38d0['shift']());}catch(_0x5e6045){_0x5f38d0['push'](_0x5f38d0['shift']());}}}(a180_0x5eaf,0xd6f4e));import{deleteAppRole}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a180_0x5eaf(){const _0x43ec83=['9448873JJTyyN','13031559IQzeil','113776KfDEmT','roleName','num','high-risk-write','Deleted\x20role\x20','1261196EFCWHN','Role\x20still\x20has\x20','12332573quaPOg','69bvygCz','2gnQwQY','role','5588600eHOXEl','\x20member(s);\x20they\x20will\x20lose\x20this\x20group.','userCount','delete','305868mQcjhP','10rayYKR','POST','\x20(id=','appCode','5JkstLA'];a180_0x5eaf=function(){return _0x43ec83;};return a180_0x5eaf();}import{asDryRunResult}from'../../commands/common/dry-run.js';function a180_0x432d(_0x260229,_0x49cb3c){_0x260229=_0x260229-0x86;const _0x5eaf41=a180_0x5eaf();let _0x432dc4=_0x5eaf41[_0x260229];return _0x432dc4;}import{assertCustomRole,getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';const DELETE_PATH='/smartapi/permit/role/delete';export const roleDelete={'service':a180_0x198189(0x99),'command':'delete','description':'Delete\x20a\x20CUSTOM\x20role\x20(DEV/ADMIN\x20rejected);\x20requires\x20--yes','risk':a180_0x198189(0x92),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'dryRun'(_0xccbe3b){const _0x391ab7=a180_0x198189,_0x1cc770=_0xccbe3b[_0x391ab7(0x91)]('id'),_0xfebec8=await getRoleById(_0xccbe3b[_0x391ab7(0x8b)],_0x1cc770);return assertCustomRole(_0xfebec8,_0x391ab7(0x86)),asDryRunResult({'operation':'delete','selector':{'appCode':_0xccbe3b[_0x391ab7(0x8b)],'roleId':_0x1cc770,'roleName':_0xfebec8[_0x391ab7(0x90)]},'before':projectRole(_0xfebec8),'after':null,'dryRun':!![],'backend':{'method':_0x391ab7(0x89),'path':DELETE_PATH},'warnings':_0xfebec8[_0x391ab7(0x9c)]>0x0?[_0x391ab7(0x95)+_0xfebec8[_0x391ab7(0x9c)]+_0x391ab7(0x9b)]:[]},{'method':_0x391ab7(0x89),'url':DELETE_PATH});},async 'execute'(_0x42e1ed){const _0x4be5d5=a180_0x198189,_0x9cab01=_0x42e1ed[_0x4be5d5(0x91)]('id'),_0x13e95e=await getRoleById(_0x42e1ed[_0x4be5d5(0x8b)],_0x9cab01);return assertCustomRole(_0x13e95e,'delete'),await deleteAppRole(_0x9cab01),{'ok':!![],'data':{'operation':_0x4be5d5(0x86),'selector':{'appCode':_0x42e1ed['appCode'],'roleId':_0x9cab01,'roleName':_0x13e95e[_0x4be5d5(0x90)]},'before':projectRole(_0x13e95e),'after':null,'dryRun':![],'backend':{'method':_0x4be5d5(0x89),'path':DELETE_PATH},'warnings':[]},'message':_0x4be5d5(0x93)+_0x13e95e['roleName']+_0x4be5d5(0x8a)+_0x9cab01+')'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a181_0x4966f0=a181_0x4089;(function(_0x5e48aa,_0xffb219){const _0x1883e3=a181_0x4089,_0x276f74=_0x5e48aa();while(!![]){try{const _0x223e4e=parseInt(_0x1883e3(0x16c))/0x1*(parseInt(_0x1883e3(0x171))/0x2)+parseInt(_0x1883e3(0x16f))/0x3*(parseInt(_0x1883e3(0x170))/0x4)+-parseInt(_0x1883e3(0x161))/0x5*(-parseInt(_0x1883e3(0x162))/0x6)+parseInt(_0x1883e3(0x166))/0x7+-parseInt(_0x1883e3(0x16a))/0x8*(parseInt(_0x1883e3(0x169))/0x9)+-parseInt(_0x1883e3(0x164))/0xa*(-parseInt(_0x1883e3(0x172))/0xb)+parseInt(_0x1883e3(0x16e))/0xc*(-parseInt(_0x1883e3(0x168))/0xd);if(_0x223e4e===_0xffb219)break;else _0x276f74['push'](_0x276f74['shift']());}catch(_0x4f9de4){_0x276f74['push'](_0x276f74['shift']());}}}(a181_0x3bf6,0x99a3e));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a181_0x4089(_0x4961ed,_0x8e594e){_0x4961ed=_0x4961ed-0x160;const _0x3bf6c6=a181_0x3bf6();let _0x408971=_0x3bf6c6[_0x4961ed];return _0x408971;}import{getRoleById,projectRole,ROLE_ID_FLAG}from'../../commands/role/shared.js';function a181_0x3bf6(){const _0x7f38fb=['11322gEddtw','4328BJYVNn','role','1212364zVriyU','detail','18483204eFabFt','34677fVsoXT','292tNiing','2fCodgQ','236643XlGvgG','read','10ZsyPjq','3253584MuFKrC','num','30YVXyoo','Role\x20','8296288WxcnVU','Show\x20a\x20single\x20role\x27s\x20detail','26sQqfoD'];a181_0x3bf6=function(){return _0x7f38fb;};return a181_0x3bf6();}export const roleDetail={'service':a181_0x4966f0(0x16b),'command':a181_0x4966f0(0x16d),'description':a181_0x4966f0(0x167),'risk':a181_0x4966f0(0x160),'flags':[ROLE_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x10c49f){const _0x46c51e=a181_0x4966f0,_0x118442=_0x10c49f[_0x46c51e(0x163)]('id'),_0x2ace69=await getRoleById(_0x10c49f['appCode'],_0x118442);return{'ok':!![],'data':{'role':projectRole(_0x2ace69)},'message':_0x46c51e(0x165)+_0x2ace69['roleName']+'\x20('+_0x2ace69['roleType']+')'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a182_0x3cc7(){const _0x2a1049=['49916SKLvIN','22980DRfLrM','747360GrGisg','9KTMNUc','89028YYruCX','6811454rWTWdd','12PlgCgp','474888wBlOiP','2nTOYXi','1132bhqisA','2589ryYMDK','1199nnunGd','63gzUzTm'];a182_0x3cc7=function(){return _0x2a1049;};return a182_0x3cc7();}(function(_0x390159,_0x3396ea){const _0x4f912c=a182_0x5472,_0x35810d=_0x390159();while(!![]){try{const _0x3e2f76=-parseInt(_0x4f912c(0x1c4))/0x1*(parseInt(_0x4f912c(0x1c9))/0x2)+parseInt(_0x4f912c(0x1c6))/0x3*(parseInt(_0x4f912c(0x1c5))/0x4)+parseInt(_0x4f912c(0x1cb))/0x5+-parseInt(_0x4f912c(0x1cd))/0x6*(-parseInt(_0x4f912c(0x1c8))/0x7)+-parseInt(_0x4f912c(0x1c3))/0x8*(parseInt(_0x4f912c(0x1cc))/0x9)+parseInt(_0x4f912c(0x1ca))/0xa*(parseInt(_0x4f912c(0x1c7))/0xb)+parseInt(_0x4f912c(0x1c2))/0xc*(-parseInt(_0x4f912c(0x1ce))/0xd);if(_0x3e2f76===_0x3396ea)break;else _0x35810d['push'](_0x35810d['shift']());}catch(_0x113fc8){_0x35810d['push'](_0x35810d['shift']());}}}(a182_0x3cc7,0x2346a));import{roleList}from'../../commands/role/list.js';import{roleDetail}from'../../commands/role/detail.js';import{roleCreate}from'../../commands/role/create.js';function a182_0x5472(_0x3a1298,_0x13b534){_0x3a1298=_0x3a1298-0x1c2;const _0x3cc7c3=a182_0x3cc7();let _0x54724=_0x3cc7c3[_0x3a1298];return _0x54724;}import{roleUpdate}from'../../commands/role/update.js';import{roleDelete}from'../../commands/role/delete.js';import{roleUserResolve}from'../../commands/role/user-resolve.js';import{roleUserAdd}from'../../commands/role/user-add.js';import{roleUserRemove}from'../../commands/role/user-remove.js';export const roleDefinitions=[roleList,roleDetail,roleCreate,roleUpdate,roleDelete,roleUserResolve,roleUserAdd,roleUserRemove];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a183_0x418e6c=a183_0x4ea3;(function(_0x1b50d7,_0x215efa){const _0x57183d=a183_0x4ea3,_0x46e176=_0x1b50d7();while(!![]){try{const _0x58542e=-parseInt(_0x57183d(0x1e9))/0x1+-parseInt(_0x57183d(0x1f1))/0x2+-parseInt(_0x57183d(0x1da))/0x3*(parseInt(_0x57183d(0x1e6))/0x4)+-parseInt(_0x57183d(0x1dc))/0x5+parseInt(_0x57183d(0x1f0))/0x6+-parseInt(_0x57183d(0x1d9))/0x7+-parseInt(_0x57183d(0x1e4))/0x8*(-parseInt(_0x57183d(0x1e8))/0x9);if(_0x58542e===_0x215efa)break;else _0x46e176['push'](_0x46e176['shift']());}catch(_0x40a988){_0x46e176['push'](_0x46e176['shift']());}}}(a183_0x525c,0x44d68));import{listAppRoles}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a183_0x525c(){const _0x2553a0=['toUpperCase','appCode','Use\x20one\x20of:\x20','Page\x20index\x20(1-based)','type','number','string','96MiMflC','role','8XSKZLA','filter','1083897MeZOIs','345492MErYnz','ADMIN','Invalid\x20--type\x20\x22','--pagesize\x20must\x20be\x20between\x201\x20and\x20100.','--page\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201.','join','pagesize','1322472ztqtQL','570360VEshYN','map','page','USER','str','Page\x20size\x20(1-100)','\x20role(s)','validation','num','trim','includes','length','CUSTOM','3354652poRiOd','290688okAEgV','Filter\x20by\x20role\x20type','399740lLjblK'];a183_0x525c=function(){return _0x2553a0;};return a183_0x525c();}function a183_0x4ea3(_0x5135af,_0x1a4561){_0x5135af=_0x5135af-0x1cd;const _0x525c31=a183_0x525c();let _0x4ea3fd=_0x525c31[_0x5135af];return _0x4ea3fd;}import{projectRole}from'../../commands/role/shared.js';const ROLE_TYPES=[a183_0x418e6c(0x1ea),'DEV',a183_0x418e6c(0x1cf),a183_0x418e6c(0x1d8)];export const roleList={'service':a183_0x418e6c(0x1e5),'command':'list','description':'List\x20user\x20groups\x20(roles)\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a183_0x418e6c(0x1e1),'type':a183_0x418e6c(0x1e3),'required':![],'description':a183_0x418e6c(0x1db),'enum':ROLE_TYPES},{'name':a183_0x418e6c(0x1ce),'type':'number','description':a183_0x418e6c(0x1e0),'default':0x1},{'name':a183_0x418e6c(0x1ef),'type':a183_0x418e6c(0x1e2),'description':a183_0x418e6c(0x1d1),'default':0x64}],async 'validate'(_0x76bb01){const _0x4a6b34=a183_0x418e6c,_0x79476b=_0x76bb01[_0x4a6b34(0x1d0)](_0x4a6b34(0x1e1))[_0x4a6b34(0x1d5)]();if(_0x79476b&&!ROLE_TYPES[_0x4a6b34(0x1d6)](_0x79476b[_0x4a6b34(0x1dd)]()))throw CliErrors[_0x4a6b34(0x1d3)](_0x4a6b34(0x1eb)+_0x79476b+'\x22.',_0x4a6b34(0x1df)+ROLE_TYPES[_0x4a6b34(0x1ee)](',\x20')+'.');const _0xf03476=_0x76bb01[_0x4a6b34(0x1d4)](_0x4a6b34(0x1ce),0x1),_0xc6fa9f=_0x76bb01[_0x4a6b34(0x1d4)](_0x4a6b34(0x1ef),0x64);if(_0xf03476<0x1)throw CliErrors[_0x4a6b34(0x1d3)](_0x4a6b34(0x1ed));if(_0xc6fa9f<0x1||_0xc6fa9f>0x64)throw CliErrors['validation'](_0x4a6b34(0x1ec));},async 'execute'(_0x21819d){const _0x3d4bfa=a183_0x418e6c,_0x4158b9=_0x21819d['num'](_0x3d4bfa(0x1ce),0x1)||0x1,_0x5eee29=_0x21819d['num'](_0x3d4bfa(0x1ef),0x64)||0x64,_0x264a7f=_0x21819d[_0x3d4bfa(0x1d0)]('type')[_0x3d4bfa(0x1d5)]()[_0x3d4bfa(0x1dd)](),{items:_0x3f042e,paging:_0x285844}=await listAppRoles(_0x21819d[_0x3d4bfa(0x1de)],{'currentPage':_0x4158b9,'pageSize':_0x5eee29}),_0x3618d6=_0x264a7f?_0x3f042e[_0x3d4bfa(0x1e7)](_0x237578=>_0x237578['roleType']===_0x264a7f):_0x3f042e,_0x5bb6d5=_0x3618d6[_0x3d4bfa(0x1cd)](projectRole);return{'ok':!![],'data':{'roles':_0x5bb6d5,'paging':_0x285844},'message':'Found\x20'+_0x5bb6d5[_0x3d4bfa(0x1d7)]+_0x3d4bfa(0x1d2)};}};
|