@lovrabet/rabetbase-cli 2.3.14 → 2.3.15-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/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 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x5e8731=a145_0x4155;(function(_0x214dda,_0x15f529){const _0x30c8df=a145_0x4155,_0x2f4595=_0x214dda();while(!![]){try{const _0x43ed96=-parseInt(_0x30c8df(0x18c))/0x1*(-parseInt(_0x30c8df(0x13f))/0x2)+parseInt(_0x30c8df(0x165))/0x3+-parseInt(_0x30c8df(0x16b))/0x4+-parseInt(_0x30c8df(0x163))/0x5*(parseInt(_0x30c8df(0x166))/0x6)+parseInt(_0x30c8df(0x151))/0x7*(parseInt(_0x30c8df(0x168))/0x8)+parseInt(_0x30c8df(0x131))/0x9*(parseInt(_0x30c8df(0x18a))/0xa)+parseInt(_0x30c8df(0x181))/0xb*(-parseInt(_0x30c8df(0x13e))/0xc);if(_0x43ed96===_0x15f529)break;else _0x2f4595['push'](_0x2f4595['shift']());}catch(_0x388bd6){_0x2f4595['push'](_0x2f4595['shift']());}}}(a145_0x2f3a,0x35fea));import{listPermitRoles}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';export const MENU_ID_FLAG={'name':a145_0x5e8731(0x157),'type':a145_0x5e8731(0x180),'required':!![],'description':a145_0x5e8731(0x145)};function a145_0x2f3a(){const _0x3edb5e=['Role\x20\x22',';\x20SELF\x20=\x20only\x20own\x20rows','dataUpdate','validation','role','apiList','revoke','\x20(comma-separated\x20SELF/ALL/id/name)','resourceCode','flagMissing','str','roleType','number','140745qJpCvQ','trim','allowSelf','export-roles','grant','label','detail-roles','map','data\x20create','550LxKxZD','data\x20detail','85464TnNkHb','push','Disambiguate\x20with\x20an\x20id.','63234xCiCwx','datasets','dataDetail','\x20not\x20found.','\x22\x20is\x20ambiguous\x20(ids:\x20','appCode','dataExport','resourceName','Grant\x20access\x20to\x20the\x20listed\x20resources','find','menuId','entries','\x20is\x20not\x20available\x20for\x20this\x20app.','12dHBmGE','2SiTsSU','ALL','data\x20delete','get','set','access','Menu\x20id\x20(from\x20`menu\x20list`)','SELF','Comma-separated\x20datasetCodes\x20to\x20revoke\x20API\x20access\x20for','Roles\x20for\x20','menuPermit','data\x20update','data\x20export','roleName','--grant\x20and\x20--revoke\x20are\x20mutually\x20exclusive.','menu-roles','menu\x20visibility','allowedActions','594097KtRjDT','key','rolePermit','datasetCode','filter','pageNodeList','menu-id','join','Run\x20`role\x20list`,\x20or\x20use\x20SELF/ALL/<id>.','string','bool','Role\x20id\x20','create-roles','SELF\x20(row-level)\x20applies\x20only\x20to\x20--row-roles.','row\x20visibility','Run\x20`role\x20list`.','delete-roles','dataCreate','65AQZVpR','length','263412gYEZYa','122142xMaTHZ','menus','8sdYveK','row-roles','update-roles','583884HHSzHw','Pass\x20--role\x20<id|name>.','Special\x20role\x20','dataPermit','dataDelete','boolean','test','action','SELF\x20is\x20not\x20allowed\x20for\x20'];a145_0x2f3a=function(){return _0x3edb5e;};return a145_0x2f3a();}export const ROLE_REF_FLAG={'name':a145_0x5e8731(0x178),'type':a145_0x5e8731(0x15a),'required':!![],'description':'Role\x20id\x20or\x20role\x20name'};export const GRANT_FLAG={'name':a145_0x5e8731(0x185),'type':'boolean','required':![],'description':a145_0x5e8731(0x139)};export const REVOKE_FLAG={'name':a145_0x5e8731(0x17a),'type':a145_0x5e8731(0x170),'required':![],'description':'Revoke\x20access\x20to\x20the\x20listed\x20resources'};export const MENUS_FLAG={'name':a145_0x5e8731(0x167),'type':a145_0x5e8731(0x15a),'required':!![],'description':'Comma-separated\x20menu\x20resourceCodes\x20to\x20grant/revoke'};function a145_0x4155(_0x339d1b,_0x4e050f){_0x339d1b=_0x339d1b-0x130;const _0x2f3a6e=a145_0x2f3a();let _0x415576=_0x2f3a6e[_0x339d1b];return _0x415576;}export const DATASETS_FLAG={'name':a145_0x5e8731(0x132),'type':a145_0x5e8731(0x15a),'required':!![],'description':a145_0x5e8731(0x147)};export const PAGE_SLOT_SPECS=[{'flag':a145_0x5e8731(0x14e),'key':'menuPermit','allowSelf':![],'label':a145_0x5e8731(0x14f)},{'flag':a145_0x5e8731(0x15d),'key':a145_0x5e8731(0x162),'allowSelf':![],'label':a145_0x5e8731(0x189)},{'flag':a145_0x5e8731(0x16a),'key':a145_0x5e8731(0x176),'allowSelf':![],'label':a145_0x5e8731(0x14a)},{'flag':a145_0x5e8731(0x161),'key':a145_0x5e8731(0x16f),'allowSelf':![],'label':a145_0x5e8731(0x141)},{'flag':a145_0x5e8731(0x187),'key':a145_0x5e8731(0x133),'allowSelf':![],'label':a145_0x5e8731(0x18b)},{'flag':a145_0x5e8731(0x184),'key':a145_0x5e8731(0x137),'allowSelf':![],'label':a145_0x5e8731(0x14b)},{'flag':a145_0x5e8731(0x169),'key':a145_0x5e8731(0x16e),'allowSelf':!![],'label':a145_0x5e8731(0x15f)}];export const PAGE_SET_ROLE_FLAGS=PAGE_SLOT_SPECS[a145_0x5e8731(0x188)](_0x1ed78e=>({'name':_0x1ed78e['flag'],'type':a145_0x5e8731(0x15a),'required':![],'description':a145_0x5e8731(0x148)+_0x1ed78e[a145_0x5e8731(0x186)]+a145_0x5e8731(0x17b)+(_0x1ed78e[a145_0x5e8731(0x183)]?a145_0x5e8731(0x175):'')}));export function splitList(_0x383073){const _0x3a19d9=a145_0x5e8731;return _0x383073['split'](',')[_0x3a19d9(0x188)](_0x196bed=>_0x196bed[_0x3a19d9(0x182)]())[_0x3a19d9(0x155)](Boolean);}export function projectRoleRef(_0x3642ef){const _0x1ebba9=a145_0x5e8731;return{'id':_0x3642ef['id'],'roleName':_0x3642ef[_0x1ebba9(0x14c)],'roleType':_0x3642ef['roleType']};}export async function resolvePermitRoles(_0x4caef1,_0x977e73,_0x47426f){const _0x2dac79=a145_0x5e8731,_0x1e0ab5=await listPermitRoles(_0x4caef1,{'needSelf':!![],'needPublic':!![]}),_0x243a27=[];for(const _0x3ba977 of _0x977e73){const _0x30e5fc=resolveOnePermitRole(_0x1e0ab5,_0x3ba977);if(!_0x47426f[_0x2dac79(0x183)]&&_0x30e5fc['roleType']===_0x2dac79(0x146))throw CliErrors[_0x2dac79(0x177)](_0x2dac79(0x173)+_0x47426f[_0x2dac79(0x186)]+'.',_0x2dac79(0x15e));if(!_0x243a27['some'](_0x598cdf=>_0x598cdf['id']===_0x30e5fc['id']))_0x243a27[_0x2dac79(0x18d)](_0x30e5fc);}return _0x243a27;}function resolveOnePermitRole(_0x169ff0,_0x1103fb){const _0x19ebe3=a145_0x5e8731,_0x341ebd=_0x1103fb[_0x19ebe3(0x182)](),_0x5ba032=_0x341ebd['toUpperCase']();if(_0x5ba032===_0x19ebe3(0x146)||_0x5ba032===_0x19ebe3(0x140)){const _0x4cbc78=_0x169ff0[_0x19ebe3(0x13a)](_0x2447c4=>_0x2447c4[_0x19ebe3(0x17f)]===_0x5ba032);if(!_0x4cbc78)throw CliErrors[_0x19ebe3(0x177)](_0x19ebe3(0x16d)+_0x5ba032+_0x19ebe3(0x13d));return _0x4cbc78;}if(/^-?\d+$/[_0x19ebe3(0x171)](_0x341ebd)){const _0x3e420c=Number(_0x341ebd),_0x28388a=_0x169ff0[_0x19ebe3(0x13a)](_0x49a411=>_0x49a411['id']===_0x3e420c);if(!_0x28388a)throw CliErrors[_0x19ebe3(0x177)](_0x19ebe3(0x15c)+_0x3e420c+_0x19ebe3(0x134),_0x19ebe3(0x160));return _0x28388a;}const _0x457549=_0x169ff0[_0x19ebe3(0x155)](_0x52788d=>_0x52788d['roleName']===_0x341ebd);if(_0x457549[_0x19ebe3(0x164)]===0x0)throw CliErrors[_0x19ebe3(0x177)]('Role\x20\x22'+_0x341ebd+'\x22\x20not\x20found.',_0x19ebe3(0x159));if(_0x457549[_0x19ebe3(0x164)]>0x1)throw CliErrors[_0x19ebe3(0x177)](_0x19ebe3(0x174)+_0x341ebd+_0x19ebe3(0x135)+_0x457549[_0x19ebe3(0x188)](_0x4de26b=>_0x4de26b['id'])[_0x19ebe3(0x158)](',\x20')+').',_0x19ebe3(0x130));return _0x457549[0x0];}export function projectPageSlot(_0xdfb6ef){const _0x55278c=a145_0x5e8731;if(!_0xdfb6ef)return null;return{'resourceCode':_0xdfb6ef[_0x55278c(0x17c)],'roles':(_0xdfb6ef[_0x55278c(0x153)]??[])[_0x55278c(0x188)](projectRoleRef)};}export function projectPagePermit(_0x40a7a8){const _0x5feee0=a145_0x5e8731,_0x3d8a39={'menuId':_0x40a7a8[_0x5feee0(0x13b)],'appCode':_0x40a7a8[_0x5feee0(0x136)],'menuPermit':projectPageSlot(_0x40a7a8[_0x5feee0(0x149)])};for(const _0x2124ef of PAGE_SLOT_SPECS){if(_0x2124ef[_0x5feee0(0x152)]===_0x5feee0(0x149))continue;_0x3d8a39[_0x2124ef[_0x5feee0(0x152)]]=projectPageSlot(_0x40a7a8[_0x2124ef[_0x5feee0(0x152)]]);}return _0x3d8a39;}export function flattenMenuResources(_0x452c5f){const _0x359b96=new Map(),_0x5ef4da=_0x183ed7=>{const _0x1f7104=a145_0x4155;for(const _0x613bd9 of _0x183ed7??[]){_0x359b96['set'](_0x613bd9[_0x1f7104(0x17c)],{'resourceCode':_0x613bd9['resourceCode'],'resourceName':_0x613bd9[_0x1f7104(0x138)],'action':_0x613bd9[_0x1f7104(0x150)]?.[0x0]??'0'});if(_0x613bd9[_0x1f7104(0x156)])_0x5ef4da(_0x613bd9['pageNodeList']);}};return _0x5ef4da(_0x452c5f),_0x359b96;}export function flattenApiResources(_0x20ea61){const _0x44fbe7=a145_0x5e8731,_0x3b01d0=new Map(),_0x5792e4=new Map();for(const _0x3c08cd of _0x20ea61){const _0x1df58b=_0x3c08cd[_0x44fbe7(0x179)]??{};for(const [_0x5f474f,_0x10f87f]of Object[_0x44fbe7(0x13c)](_0x1df58b)){_0x3b01d0[_0x44fbe7(0x143)](_0x5f474f,{'resourceCode':_0x5f474f,'resourceName':_0x3c08cd[_0x44fbe7(0x138)],'datasetCode':_0x3c08cd['datasetCode'],'action':_0x10f87f?.[0x0]??'0'});const _0x2a8042=_0x5792e4[_0x44fbe7(0x142)](_0x3c08cd['datasetCode'])??[];_0x2a8042[_0x44fbe7(0x18d)](_0x5f474f),_0x5792e4[_0x44fbe7(0x143)](_0x3c08cd[_0x44fbe7(0x154)],_0x2a8042);}}return{'byCode':_0x3b01d0,'byDataset':_0x5792e4};}export function buildPermits(_0x3578e5,_0x351f96){const _0x1ae288=a145_0x5e8731,_0x3554fb={};for(const [_0x3280e4,_0x8712bf]of _0x3578e5){const _0x1566bb=_0x351f96[_0x1ae288(0x142)](_0x3280e4)??_0x8712bf[_0x1ae288(0x172)];_0x3554fb[_0x3280e4]=[_0x1566bb];}return _0x3554fb;}export function readRoleRef(_0x5582a0){const _0xeb4a90=a145_0x5e8731,_0x163141=_0x5582a0[_0xeb4a90(0x17e)](_0xeb4a90(0x178))['trim']();if(!_0x163141)throw CliErrors[_0xeb4a90(0x17d)](_0xeb4a90(0x178),_0xeb4a90(0x16c));return _0x163141;}export function readGrantRevoke(_0x112eab){const _0x4f41ef=a145_0x5e8731,_0x37181e=_0x112eab[_0x4f41ef(0x15b)](_0x4f41ef(0x185)),_0x1dbe8d=_0x112eab[_0x4f41ef(0x15b)](_0x4f41ef(0x17a));if(_0x37181e&&_0x1dbe8d)throw CliErrors[_0x4f41ef(0x177)](_0x4f41ef(0x14d));if(!_0x37181e&&!_0x1dbe8d)throw CliErrors[_0x4f41ef(0x177)]('Missing\x20action.','Pass\x20exactly\x20one\x20of\x20--grant\x20/\x20--revoke.');return _0x37181e?_0x4f41ef(0x144):'0';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15e5eb,_0x3f9a96){const _0x19c7ad=a146_0x5a20,_0x27e522=_0x15e5eb();while(!![]){try{const _0x4c34dc=-parseInt(_0x19c7ad(0xc5))/0x1*(-parseInt(_0x19c7ad(0xd9))/0x2)+parseInt(_0x19c7ad(0xde))/0x3*(parseInt(_0x19c7ad(0xc6))/0x4)+parseInt(_0x19c7ad(0xc4))/0x5*(parseInt(_0x19c7ad(0xca))/0x6)+parseInt(_0x19c7ad(0xc2))/0x7+-parseInt(_0x19c7ad(0xd0))/0x8*(parseInt(_0x19c7ad(0xe0))/0x9)+parseInt(_0x19c7ad(0xcb))/0xa*(-parseInt(_0x19c7ad(0xdf))/0xb)+-parseInt(_0x19c7ad(0xdb))/0xc;if(_0x4c34dc===_0x3f9a96)break;else _0x27e522['push'](_0x27e522['shift']());}catch(_0x78973c){_0x27e522['push'](_0x27e522['shift']());}}}(a146_0x272d,0x56fb6));import{existsSync}from'node:fs';import a146_0x3bb3a5 from'node:path';function a146_0x272d(){const _0x3a80fd=['green','1041840kCWjyv','√\x20Project\x20Name:\x20','test','3XBwRIM','11wirNPP','5786253oBzLOU','Logged\x20in','Skipped','Login\x20failed','3253467JXzurM','√\x20Login\x20status:\x20','120AnEmqs','31GOrjyK','646748iKcOSg','\x22\x20already\x20exists','Not\x20set','cwd','91860qcDBDv','2338270dIvgVm','resolve','env','cyan','log','8alkoBd','Directory\x20\x22','Must\x20start\x20with\x20a\x20letter/number\x20and\x20only\x20contain\x20letters,\x20numbers,\x20-\x20and\x20_','string','No\x20valid\x20login\x20detected.\x20Login\x20first\x20to\x20pull\x20API\x20config?','√\x20App\x20Code:\x20','length','Project\x20name\x20cannot\x20exceed\x2050\x20characters','production','21028MsxZbT'];a146_0x272d=function(){return _0x3a80fd;};return a146_0x272d();}import a146_0x524d73 from'chalk';import{input,confirm}from'@inquirer/prompts';import{getIsSessionValid}from'../../../auth/is-session-valid.js';import{authServer}from'../../../auth/auth-server.js';import{readConfig}from'../../../utils/config.js';import{selectSingleAppcode}from'../../../commands/common/app-selector.js';function a146_0x5a20(_0x326e3e,_0x1ac4fe){_0x326e3e=_0x326e3e-0xbf;const _0x272d71=a146_0x272d();let _0x5a203e=_0x272d71[_0x326e3e];return _0x5a203e;}export async function guidedCreateProject(_0x4b38f9,_0x31967b,_0x3f45af){const _0x432344=a146_0x5a20,_0x526312='my-app',_0x5746a8=readConfig(),_0x10494c=typeof _0x5746a8[_0x432344(0xcd)]===_0x432344(0xd3)?_0x5746a8[_0x432344(0xcd)]:undefined,_0x123bc7=await input({'message':'Project\x20name:','default':_0x526312,'validate':_0xd53229=>{const _0x586cfc=_0x432344,_0x4138bd=_0xd53229['trim']()||_0x526312;if(_0x4138bd[_0x586cfc(0xd6)]>0x32)return _0x586cfc(0xd7);const _0x2c11cc=/^[A-Za-z0-9][A-Za-z0-9_-]*$/;if(_0x4138bd&&!_0x2c11cc[_0x586cfc(0xdd)](_0x4138bd))return _0x586cfc(0xd2);const _0x3ada75=a146_0x3bb3a5[_0x586cfc(0xcc)](process[_0x586cfc(0xc9)](),_0x4138bd);if(existsSync(_0x3ada75))return _0x586cfc(0xd1)+_0x4138bd+_0x586cfc(0xc7);return!![];}});console[_0x432344(0xcf)](a146_0x524d73[_0x432344(0xda)](_0x432344(0xdc)+a146_0x524d73[_0x432344(0xce)](_0x123bc7)));const _0xf2e6bd=await selectSingleAppcode(_0x3f45af);console[_0x432344(0xcf)](a146_0x524d73[_0x432344(0xda)](_0x432344(0xd5)+a146_0x524d73[_0x432344(0xce)](_0xf2e6bd||_0x432344(0xc8))));if(_0xf2e6bd){const _0x15ab2c=await getIsSessionValid();if(!_0x15ab2c){const _0x5e085b=await confirm({'message':_0x432344(0xd4),'default':!![]});if(_0x5e085b){const _0x2aa4cf=await authServer({'silent':!![]});console[_0x432344(0xcf)](a146_0x524d73[_0x432344(0xda)](_0x432344(0xc3)+a146_0x524d73['cyan'](_0x2aa4cf?_0x432344(0xbf):_0x432344(0xc1))));}else console[_0x432344(0xcf)](a146_0x524d73[_0x432344(0xda)](_0x432344(0xc3)+a146_0x524d73[_0x432344(0xce)](_0x432344(0xc0))));}await _0x4b38f9({'projectName':_0x123bc7,'appCode':_0xf2e6bd,'env':_0x31967b||_0x10494c||_0x432344(0xd8)});}else await _0x4b38f9({'projectName':_0x123bc7,'env':_0x31967b||_0x10494c||'production'});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a147_0x39d5(){const _0x4eec8e=['42gdgrda','3347952WLgLcX','replace','1655695polwpN','5948OiaIjN','94nebiDK','705430VMIeUX','809397HIPPMj','82728UZYNel','7GprSvh','2673246UMeIuQ'];a147_0x39d5=function(){return _0x4eec8e;};return a147_0x39d5();}function a147_0x11f9(_0x1f1f95,_0x38bc84){_0x1f1f95=_0x1f1f95-0x7d;const _0x39d5c4=a147_0x39d5();let _0x11f9a1=_0x39d5c4[_0x1f1f95];return _0x11f9a1;}(function(_0x3fbd41,_0x1d1ebb){const _0x91f668=a147_0x11f9,_0x3bf383=_0x3fbd41();while(!![]){try{const _0x1516b9=parseInt(_0x91f668(0x82))/0x1*(parseInt(_0x91f668(0x81))/0x2)+-parseInt(_0x91f668(0x7d))/0x3*(-parseInt(_0x91f668(0x85))/0x4)+-parseInt(_0x91f668(0x80))/0x5+parseInt(_0x91f668(0x87))/0x6*(parseInt(_0x91f668(0x86))/0x7)+-parseInt(_0x91f668(0x7e))/0x8+-parseInt(_0x91f668(0x84))/0x9+parseInt(_0x91f668(0x83))/0xa;if(_0x1516b9===_0x1d1ebb)break;else _0x3bf383['push'](_0x3bf383['shift']());}catch(_0xc934b5){_0x3bf383['push'](_0x3bf383['shift']());}}}(a147_0x39d5,0x3bf76));export function formatElapsed(_0x265322){const _0x390800=a147_0x11f9,_0x53072b=Date['now']()-_0x265322;if(_0x53072b<0x3e8)return _0x53072b+'ms';const _0x17c858=(_0x53072b/0x3e8)['toFixed'](0x2),_0x3082bb=_0x17c858[_0x390800(0x7f)](/\.?0+$/u,'');return _0x3082bb+'s';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x135d51,_0x5e41ad){const _0x506963=a147_0x3ea9,_0x4e31ea=_0x135d51();while(!![]){try{const _0xb3e12a=-parseInt(_0x506963(0x19e))/0x1*(parseInt(_0x506963(0x1a4))/0x2)+parseInt(_0x506963(0x170))/0x3*(parseInt(_0x506963(0x17c))/0x4)+parseInt(_0x506963(0x18b))/0x5+parseInt(_0x506963(0x151))/0x6+-parseInt(_0x506963(0x165))/0x7+-parseInt(_0x506963(0x175))/0x8*(-parseInt(_0x506963(0x193))/0x9)+-parseInt(_0x506963(0x191))/0xa;if(_0xb3e12a===_0x5e41ad)break;else _0x4e31ea['push'](_0x4e31ea['shift']());}catch(_0x44914c){_0x4e31ea['push'](_0x4e31ea['shift']());}}}(a147_0x1011,0x7e1e4));import a147_0x317b91 from'path';import a147_0x46f3b9 from'fs';import a147_0x37cf0a from'chalk';function a147_0x3ea9(_0x207568,_0x541360){_0x207568=_0x207568-0x14a;const _0x1011b1=a147_0x1011();let _0x3ea94f=_0x1011b1[_0x207568];return _0x3ea94f;}import a147_0x1888bb from'ora';import{guidedCreateProject}from'../../../commands/project/create/enhanced-guided-create.js';import{fetchModelList}from'../../../core/api-client.js';import{generateApiFile}from'../../../api/generate-api-file.js';import{initEnv}from'../../../constant/env.js';import{readConfig}from'../../../utils/config.js';import{CLI_BIN_NAME}from'../../../constant/cli.js';import{DEFAULT_API_DIR}from'../../../constant/paths.js';import{writeConfigFile,NEW_CONFIG_NAME}from'../../../context.js';import{copyProjectTemplate}from'../../../commands/project/create/use-copy-project-template.js';function a147_0x1011(){const _0x214c5a=['error','info','utf8','Format\x20code','√\x20Configuration\x20file\x20created,\x20you\x20can\x20configure\x20later\x20with\x20\x27','description','API\x20配置拉取异常','cyan','parse','992751AGMIWI','开始创建项目:\x20','配置应用AppCode:\x20','currentVersion','\x20already\x20exists','16312UfKDbN','production','needsUpgrade','fail','success','*\x20Configuring\x20AppCode\x20for\x20project\x20','package.json','12ZhKdph','√\x20Pulled\x20','readFileSync','existsSync','🚀\x20Next\x20Steps:','*\x20Cleaning\x20up\x20failed\x20project\x20directory:\x20','CLI\x20版本检查','version','apps','Invalid\x20characters\x20in\x20project\x20name.\x20Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters','清理项目目录失败:\x20','Cannot\x20create\x20project\x20in\x20current\x20directory,\x20please\x20check\x20directory\x20permissions','warn','更新\x20package.json\x20name','\x20run\x20start','3563695EOznol','\x20model(s)','projectCode','bold','\x20|\x20Default:\x20','create','18247440VsRLKw','项目创建完成:\x20','3573HUHiWy','!\x20API\x20configuration\x20pull\x20error,\x20you\x20can\x20manually\x20run:\x20rabetbase\x20api\x20pull','\x20\x201.\x20Start\x20project:\x20','*\x20Creating\x20configuration\x20file\x20for\x20project\x20','1.0.0','chdir','constants','rmSync','Project\x20directory\x20','配置应用AppCode失败','string','3siJhRh','...','\x20\x202.\x20Pull\x20API\x20configuration:\x20','appCode','length','green','628452okScXU','cwd','start','cd\x20','*\x20Pulling\x20API\x20configuration...','Project\x20name\x20cannot\x20be\x20empty','projectName','accessSync','message','name','defaultApp','\x20√\x20','setLogPath','4946946FweeOk','\x20api\x20pull','modelCount','log','\x20dataset(s),\x20generated\x20','resolve','dirname','*\x20Updating\x20package.json\x20name\x20and\x20description\x20fields','join','API\x20configuration\x20pulled:\x20','Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters','repeat','项目创建失败:\x20','Install\x20dependencies','\x20|\x20AppCode:\x20','belowMinimum','\x20&&\x20','\x20Generated\x20by\x20rabetbase\x20cli\x20','env','gray','388234RzwLGG','stop'];a147_0x1011=function(){return _0x214c5a;};return a147_0x1011();}import{installDependencies}from'../../../commands/project/create/use-install-dependencies.js';import{formatProjectCode}from'../../../commands/project/create/use-format-code.js';import{logger}from'../../../utils/logger.js';import{assertCliVersionSupported,checkCliVersion,printCliUpgradeWarning}from'../../../utils/cli-version-check.js';import{PROJECT_CREATE_INHERITABLE_KEYS,buildCanonicalProjectConfig}from'../../../config/schema.js';import{selectSingleAppcode}from'../../../commands/common/app-selector.js';import{getRabetbaseCliPackageRoot}from'../../../commands/project/create/project-template-path.js';export async function createApp(_0x100cdd){const _0x26471f=a147_0x3ea9,_0x27be8c=await checkCliVersion();(_0x27be8c['needsUpgrade']||_0x27be8c[_0x26471f(0x160)])&&(printCliUpgradeWarning(_0x27be8c),assertCliVersionSupported(_0x27be8c),logger[_0x26471f(0x168)]('create',_0x26471f(0x182),{'currentVersion':_0x27be8c[_0x26471f(0x173)],'stableVersion':_0x27be8c['stableVersion'],'minimumVersion':_0x27be8c['minimumVersion'],'needsUpgrade':_0x27be8c[_0x26471f(0x177)],'belowMinimum':_0x27be8c[_0x26471f(0x160)]}));if(_0x100cdd['projectCode']&&_0x100cdd[_0x26471f(0x1a1)])await runCreate({'projectName':_0x100cdd['projectCode'],'appCode':_0x100cdd['appCode'],'env':_0x100cdd[_0x26471f(0x163)]},_0x100cdd);else{if(_0x100cdd[_0x26471f(0x18d)]){const _0x45cb63=await selectSingleAppcode(_0x100cdd['cookie']);await runCreate({'projectName':_0x100cdd[_0x26471f(0x18d)],'appCode':_0x45cb63||undefined,'env':_0x100cdd[_0x26471f(0x163)]},_0x100cdd);}else await guidedCreateProject(_0x41cc82=>runCreate(_0x41cc82,_0x100cdd),_0x100cdd[_0x26471f(0x163)],_0x100cdd['cookie']);}}async function runCreate(_0x34ed85,_0xf0880c){const _0xb9e5c0=a147_0x3ea9;if(!_0x34ed85[_0xb9e5c0(0x14a)]||_0x34ed85[_0xb9e5c0(0x14a)]['trim']()==='')throw new Error(_0xb9e5c0(0x1a9));const _0x212e69=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x212e69['test'](_0x34ed85[_0xb9e5c0(0x14a)]))throw new Error(_0xb9e5c0(0x185));if(_0x34ed85['projectName'][_0xb9e5c0(0x1a2)]>0x64)throw new Error(_0xb9e5c0(0x15b));const _0x1b1f0b=a147_0x317b91['resolve'](process['cwd'](),_0x34ed85[_0xb9e5c0(0x14a)]);if(a147_0x46f3b9[_0xb9e5c0(0x17f)](_0x1b1f0b))throw new Error(_0xb9e5c0(0x19b)+_0x34ed85[_0xb9e5c0(0x14a)]+_0xb9e5c0(0x174));try{a147_0x46f3b9[_0xb9e5c0(0x14b)](a147_0x317b91[_0xb9e5c0(0x157)](_0x1b1f0b),a147_0x46f3b9[_0xb9e5c0(0x199)]['W_OK']);}catch{throw new Error(_0xb9e5c0(0x187));}logger[_0xb9e5c0(0x150)](_0x1b1f0b),logger['info'](_0xb9e5c0(0x190),_0xb9e5c0(0x171)+_0x34ed85['projectName'],{'projectDir':_0x1b1f0b,'appCode':_0x34ed85['appCode']}),console['log'](),console[_0xb9e5c0(0x154)](a147_0x37cf0a['green']('\x20√\x20')+'Project\x20name:\x20'+a147_0x37cf0a[_0xb9e5c0(0x1a3)](_0x34ed85[_0xb9e5c0(0x14a)])+(_0x34ed85[_0xb9e5c0(0x1a1)]?_0xb9e5c0(0x15f)+a147_0x37cf0a[_0xb9e5c0(0x16e)](_0x34ed85[_0xb9e5c0(0x1a1)]):''));try{await runTask('Copy\x20project\x20files',()=>copyProjectTemplate(_0x34ed85[_0xb9e5c0(0x14a)])),await updatePackageJsonName(_0x34ed85['projectName']),await runTask(_0xb9e5c0(0x15e),()=>installDependencies(_0x34ed85[_0xb9e5c0(0x14a)])),await runTask(_0xb9e5c0(0x16a),()=>formatProjectCode(_0x34ed85['projectName'])),await configureAppCode(_0x34ed85[_0xb9e5c0(0x14a)],_0x34ed85[_0xb9e5c0(0x1a1)]||'',_0x34ed85['env']);let _0x4662a5=![];if(_0x34ed85[_0xb9e5c0(0x1a1)]){console[_0xb9e5c0(0x154)](_0xb9e5c0(0x1a8));const _0x2e450a=process['cwd']();try{process[_0xb9e5c0(0x198)](_0x1b1f0b);const _0x36ea70=_0x34ed85[_0xb9e5c0(0x163)]||'production';initEnv(_0x36ea70);const {configArray:_0x3c3061}=await fetchModelList(_0x34ed85['appCode'],_0xf0880c['cookie']||''),_0x2ae396=DEFAULT_API_DIR,_0x2304a9=await generateApiFile(_0x3c3061,'',_0x34ed85[_0xb9e5c0(0x1a1)],!![],_0x36ea70,_0x2ae396);console[_0xb9e5c0(0x154)](_0xb9e5c0(0x17d)+_0x3c3061[_0xb9e5c0(0x1a2)]+_0xb9e5c0(0x155)+_0x2304a9[_0xb9e5c0(0x153)]+_0xb9e5c0(0x18c)),logger['info'](_0xb9e5c0(0x190),_0xb9e5c0(0x15a)+_0x34ed85['appCode']);}catch(_0x1d9abf){_0x4662a5=!![],console['log'](_0xb9e5c0(0x194)),logger[_0xb9e5c0(0x188)](_0xb9e5c0(0x190),_0xb9e5c0(0x16d),{'error':_0x1d9abf instanceof Error?_0x1d9abf[_0xb9e5c0(0x14c)]:String(_0x1d9abf)});}finally{process[_0xb9e5c0(0x198)](_0x2e450a);}}logger[_0xb9e5c0(0x179)](_0xb9e5c0(0x190),_0xb9e5c0(0x192)+_0x34ed85[_0xb9e5c0(0x14a)]),console[_0xb9e5c0(0x154)](),console[_0xb9e5c0(0x154)](a147_0x37cf0a[_0xb9e5c0(0x1a3)]('─'['repeat'](0x3c))),console[_0xb9e5c0(0x154)](a147_0x37cf0a[_0xb9e5c0(0x16e)][_0xb9e5c0(0x18e)](_0xb9e5c0(0x180))),console['log'](),console[_0xb9e5c0(0x154)](_0xb9e5c0(0x195)+a147_0x37cf0a[_0xb9e5c0(0x16e)][_0xb9e5c0(0x18e)](_0xb9e5c0(0x1a7)+_0x34ed85[_0xb9e5c0(0x14a)]+_0xb9e5c0(0x161)+CLI_BIN_NAME+_0xb9e5c0(0x18a))),_0x4662a5&&console[_0xb9e5c0(0x154)](_0xb9e5c0(0x1a0)+a147_0x37cf0a['cyan'][_0xb9e5c0(0x18e)](CLI_BIN_NAME+_0xb9e5c0(0x152))),console[_0xb9e5c0(0x154)](a147_0x37cf0a[_0xb9e5c0(0x1a3)]('─'[_0xb9e5c0(0x15c)](0x3c)));}catch(_0x338e05){logger[_0xb9e5c0(0x167)]('create',_0xb9e5c0(0x15d)+_0x34ed85[_0xb9e5c0(0x14a)],{'error':_0x338e05 instanceof Error?_0x338e05[_0xb9e5c0(0x14c)]:String(_0x338e05)});try{a147_0x46f3b9[_0xb9e5c0(0x17f)](_0x1b1f0b)&&(console[_0xb9e5c0(0x154)](_0xb9e5c0(0x181)+_0x1b1f0b),a147_0x46f3b9[_0xb9e5c0(0x19a)](_0x1b1f0b,{'recursive':!![],'force':!![]}));}catch{logger['warn'](_0xb9e5c0(0x190),_0xb9e5c0(0x186)+_0x1b1f0b);}throw _0x338e05;}}async function runTask(_0x1875e4,_0x427cb7){const _0x310002=a147_0x3ea9,_0x429292=a147_0x1888bb(_0x1875e4+_0x310002(0x19f))[_0x310002(0x1a6)]();try{const _0x563bd8=await _0x427cb7();_0x429292[_0x310002(0x166)](),console['log'](''+a147_0x37cf0a[_0x310002(0x1a3)](_0x310002(0x14f))+_0x1875e4+'\x20'+a147_0x37cf0a[_0x310002(0x164)]('['+_0x563bd8+']'));}catch(_0xd830ca){_0x429292[_0x310002(0x178)](_0x1875e4);throw _0xd830ca;}}async function updatePackageJsonName(_0x4d3058){const _0xdbe18b=a147_0x3ea9,_0x4a8898=a147_0x317b91[_0xdbe18b(0x156)](process[_0xdbe18b(0x1a5)](),_0x4d3058),_0x644420=a147_0x317b91[_0xdbe18b(0x159)](_0x4a8898,_0xdbe18b(0x17b));try{console[_0xdbe18b(0x154)](_0xdbe18b(0x158));const _0x42b081=getRabetbaseCliPackageRoot(),_0x3706aa=a147_0x317b91[_0xdbe18b(0x159)](_0x42b081,_0xdbe18b(0x17b));let _0x3410d6=_0xdbe18b(0x197);try{const _0x23e4b4=JSON[_0xdbe18b(0x16f)](a147_0x46f3b9['readFileSync'](_0x3706aa,_0xdbe18b(0x169)));_0x3410d6=_0x23e4b4[_0xdbe18b(0x183)]||'1.0.0';}catch{}const _0x774927=a147_0x46f3b9['readFileSync'](_0x644420,_0xdbe18b(0x169)),_0x5a4482=JSON[_0xdbe18b(0x16f)](_0x774927);_0x5a4482[_0xdbe18b(0x14d)]=_0x4d3058,_0x5a4482[_0xdbe18b(0x16c)]=_0x4d3058+_0xdbe18b(0x162)+_0x3410d6,a147_0x46f3b9['writeFileSync'](_0x644420,JSON['stringify'](_0x5a4482,null,0x2)+'\x0a',_0xdbe18b(0x169)),console[_0xdbe18b(0x154)]('√\x20package.json\x20updated:\x20name='+_0x4d3058),logger[_0xdbe18b(0x168)](_0xdbe18b(0x190),_0xdbe18b(0x189));}catch(_0x388137){logger[_0xdbe18b(0x167)](_0xdbe18b(0x190),'更新\x20package.json\x20失败');throw _0x388137;}}async function configureAppCode(_0x6f7e2e,_0x2b912f,_0x5d12af){const _0x20a250=a147_0x3ea9,_0x5198e5=a147_0x317b91[_0x20a250(0x156)](process[_0x20a250(0x1a5)](),_0x6f7e2e),_0x524539=a147_0x317b91[_0x20a250(0x159)](_0x5198e5,NEW_CONFIG_NAME);try{_0x2b912f?console[_0x20a250(0x154)](_0x20a250(0x17a)+_0x6f7e2e+':\x20'+_0x2b912f):console[_0x20a250(0x154)](_0x20a250(0x196)+_0x6f7e2e);const _0x335a53=getRabetbaseCliPackageRoot(),_0x311685=a147_0x317b91[_0x20a250(0x159)](_0x335a53,'package.json');let _0x483328=_0x20a250(0x197);try{const _0x1d7bfe=JSON[_0x20a250(0x16f)](a147_0x46f3b9[_0x20a250(0x17e)](_0x311685,'utf8'));_0x483328=_0x1d7bfe['version']||'1.0.0';}catch{}const _0x31b605=readConfig(),_0x4eef07=typeof _0x31b605['env']===_0x20a250(0x19d)?_0x31b605[_0x20a250(0x163)]:undefined,_0x5ca6b4={};for(const _0x5d3389 of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x31b605[_0x5d3389]!=null)_0x5ca6b4[_0x5d3389]=_0x31b605[_0x5d3389];}const _0x48973b=buildCanonicalProjectConfig(_0x5ca6b4,{'appCodes':_0x2b912f?[_0x2b912f]:[],'env':_0x5d12af||_0x4eef07||_0x20a250(0x176),'metadata':{'createdAt':new Date()['toLocaleString'](),'version':_0x483328}});writeConfigFile(_0x524539,_0x48973b),_0x2b912f?console[_0x20a250(0x154)]('√\x20Configuration\x20file\x20created,\x20Apps:\x20'+Object['keys'](_0x48973b[_0x20a250(0x184)]||{})[_0x20a250(0x159)](',\x20')+_0x20a250(0x18f)+_0x48973b[_0x20a250(0x14e)]):console['log'](_0x20a250(0x16b)+CLI_BIN_NAME+'\x20config\x20set\x20appcode\x20<app-code>\x27'),logger[_0x20a250(0x168)](_0x20a250(0x190),_0x20a250(0x172)+_0x2b912f);}catch(_0x445aff){logger[_0x20a250(0x167)](_0x20a250(0x190),_0x20a250(0x19c));}}
|
|
1
|
+
function a148_0x1f35(){const _0x41e3f7=['264214kFAaQv','!\x20API\x20configuration\x20pull\x20error,\x20you\x20can\x20manually\x20run:\x20rabetbase\x20api\x20pull','string','keys','*\x20Updating\x20package.json\x20name\x20and\x20description\x20fields','CLI\x20版本检查','success','\x20api\x20pull','配置应用AppCode:\x20','126IjvNmZ','3638621LxXqQh','\x20|\x20Default:\x20','start','\x20√\x20','√\x20Configuration\x20file\x20created,\x20Apps:\x20','setLogPath','Copy\x20project\x20files','\x20|\x20AppCode:\x20','length','API\x20配置拉取异常','🚀\x20Next\x20Steps:','cd\x20','16030NySzGo','Format\x20code','\x20already\x20exists','rmSync','610015FlCwtd','Project\x20name:\x20','√\x20package.json\x20updated:\x20name=','description','bold','package.json','error','appCode','\x20config\x20set\x20appcode\x20<app-code>\x27','配置应用AppCode失败','更新\x20package.json\x20name','\x20&&\x20','\x20\x201.\x20Start\x20project:\x20','create','dirname','join','cyan','readFileSync','version','belowMinimum','repeat','production','projectName','Project\x20name\x20cannot\x20be\x20empty','清理项目目录失败:\x20','trim','projectCode','env','resolve','accessSync','1667724gWcuVy','info','fail','开始创建项目:\x20','stableVersion','Install\x20dependencies','*\x20Pulling\x20API\x20configuration...','API\x20configuration\x20pulled:\x20','name','更新\x20package.json\x20失败','2968364gunrNA','needsUpgrade','apps','201808PHLksK','utf8','1.0.0','parse','项目创建完成:\x20','cookie','cwd','log','项目创建失败:\x20','5pQXuzX','\x20model(s)','Cannot\x20create\x20project\x20in\x20current\x20directory,\x20please\x20check\x20directory\x20permissions','√\x20Configuration\x20file\x20created,\x20you\x20can\x20configure\x20later\x20with\x20\x27','stringify','warn','6YatzKa','green','\x20\x202.\x20Pull\x20API\x20configuration:\x20','message'];a148_0x1f35=function(){return _0x41e3f7;};return a148_0x1f35();}(function(_0x481ed1,_0x304dbf){const _0x4adfd8=a148_0x4e2e,_0x134506=_0x481ed1();while(!![]){try{const _0xb1dc41=-parseInt(_0x4adfd8(0x1c4))/0x1+parseInt(_0x4adfd8(0x1aa))/0x2+-parseInt(_0x4adfd8(0x18a))/0x3+parseInt(_0x4adfd8(0x194))/0x4*(parseInt(_0x4adfd8(0x1a0))/0x5)+parseInt(_0x4adfd8(0x1a6))/0x6*(parseInt(_0x4adfd8(0x1b4))/0x7)+-parseInt(_0x4adfd8(0x197))/0x8*(-parseInt(_0x4adfd8(0x1b3))/0x9)+parseInt(_0x4adfd8(0x1c0))/0xa;if(_0xb1dc41===_0x304dbf)break;else _0x134506['push'](_0x134506['shift']());}catch(_0x56aaf0){_0x134506['push'](_0x134506['shift']());}}}(a148_0x1f35,0x8e4bd));import a148_0x1d4712 from'path';import a148_0x54808b from'fs';import a148_0x5b36b0 from'chalk';import a148_0x32af9e from'ora';function a148_0x4e2e(_0x171421,_0x19fb0f){_0x171421=_0x171421-0x17a;const _0x1f3586=a148_0x1f35();let _0x4e2e09=_0x1f3586[_0x171421];return _0x4e2e09;}import{guidedCreateProject}from'../../../commands/project/create/enhanced-guided-create.js';import{fetchModelList}from'../../../core/api-client.js';import{generateApiFile}from'../../../api/generate-api-file.js';import{initEnv}from'../../../constant/env.js';import{readConfig}from'../../../utils/config.js';import{CLI_BIN_NAME}from'../../../constant/cli.js';import{DEFAULT_API_DIR}from'../../../constant/paths.js';import{writeConfigFile,NEW_CONFIG_NAME}from'../../../context.js';import{copyProjectTemplate}from'../../../commands/project/create/use-copy-project-template.js';import{installDependencies}from'../../../commands/project/create/use-install-dependencies.js';import{formatProjectCode}from'../../../commands/project/create/use-format-code.js';import{logger}from'../../../utils/logger.js';import{assertCliVersionSupported,checkCliVersion,printCliUpgradeWarning}from'../../../utils/cli-version-check.js';import{PROJECT_CREATE_INHERITABLE_KEYS,buildCanonicalProjectConfig}from'../../../config/schema.js';import{selectSingleAppcode}from'../../../commands/common/app-selector.js';import{getRabetbaseCliPackageRoot}from'../../../commands/project/create/project-template-path.js';export async function createApp(_0x1675c4){const _0x53c166=a148_0x4e2e,_0x3fdd77=await checkCliVersion();(_0x3fdd77['needsUpgrade']||_0x3fdd77[_0x53c166(0x17f)])&&(printCliUpgradeWarning(_0x3fdd77),assertCliVersionSupported(_0x3fdd77),logger[_0x53c166(0x18b)](_0x53c166(0x1d1),_0x53c166(0x1af),{'currentVersion':_0x3fdd77['currentVersion'],'stableVersion':_0x3fdd77[_0x53c166(0x18e)],'minimumVersion':_0x3fdd77['minimumVersion'],'needsUpgrade':_0x3fdd77[_0x53c166(0x195)],'belowMinimum':_0x3fdd77['belowMinimum']}));if(_0x1675c4[_0x53c166(0x186)]&&_0x1675c4[_0x53c166(0x1cb)])await runCreate({'projectName':_0x1675c4[_0x53c166(0x186)],'appCode':_0x1675c4[_0x53c166(0x1cb)],'env':_0x1675c4[_0x53c166(0x187)]},_0x1675c4);else{if(_0x1675c4[_0x53c166(0x186)]){const _0x2769a6=await selectSingleAppcode(_0x1675c4[_0x53c166(0x19c)]);await runCreate({'projectName':_0x1675c4[_0x53c166(0x186)],'appCode':_0x2769a6||undefined,'env':_0x1675c4[_0x53c166(0x187)]},_0x1675c4);}else await guidedCreateProject(_0x1de364=>runCreate(_0x1de364,_0x1675c4),_0x1675c4[_0x53c166(0x187)],_0x1675c4[_0x53c166(0x19c)]);}}async function runCreate(_0x5a56a3,_0x3fc327){const _0x39828a=a148_0x4e2e;if(!_0x5a56a3[_0x39828a(0x182)]||_0x5a56a3['projectName'][_0x39828a(0x185)]()==='')throw new Error(_0x39828a(0x183));const _0x157d50=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x157d50['test'](_0x5a56a3['projectName']))throw new Error('Invalid\x20characters\x20in\x20project\x20name.\x20Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters');if(_0x5a56a3[_0x39828a(0x182)][_0x39828a(0x1bc)]>0x64)throw new Error('Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters');const _0x289b7b=a148_0x1d4712[_0x39828a(0x188)](process[_0x39828a(0x19d)](),_0x5a56a3[_0x39828a(0x182)]);if(a148_0x54808b['existsSync'](_0x289b7b))throw new Error('Project\x20directory\x20'+_0x5a56a3[_0x39828a(0x182)]+_0x39828a(0x1c2));try{a148_0x54808b[_0x39828a(0x189)](a148_0x1d4712[_0x39828a(0x17a)](_0x289b7b),a148_0x54808b['constants']['W_OK']);}catch{throw new Error(_0x39828a(0x1a2));}logger[_0x39828a(0x1b9)](_0x289b7b),logger['info'](_0x39828a(0x1d1),_0x39828a(0x18d)+_0x5a56a3[_0x39828a(0x182)],{'projectDir':_0x289b7b,'appCode':_0x5a56a3[_0x39828a(0x1cb)]}),console[_0x39828a(0x19e)](),console[_0x39828a(0x19e)](a148_0x5b36b0[_0x39828a(0x1a7)](_0x39828a(0x1b7))+_0x39828a(0x1c5)+a148_0x5b36b0[_0x39828a(0x1a7)](_0x5a56a3[_0x39828a(0x182)])+(_0x5a56a3[_0x39828a(0x1cb)]?_0x39828a(0x1bb)+a148_0x5b36b0['cyan'](_0x5a56a3[_0x39828a(0x1cb)]):''));try{await runTask(_0x39828a(0x1ba),()=>copyProjectTemplate(_0x5a56a3['projectName'])),await updatePackageJsonName(_0x5a56a3[_0x39828a(0x182)]),await runTask(_0x39828a(0x18f),()=>installDependencies(_0x5a56a3[_0x39828a(0x182)])),await runTask(_0x39828a(0x1c1),()=>formatProjectCode(_0x5a56a3[_0x39828a(0x182)])),await configureAppCode(_0x5a56a3[_0x39828a(0x182)],_0x5a56a3[_0x39828a(0x1cb)]||'',_0x5a56a3[_0x39828a(0x187)]);let _0x2d545f=![];if(_0x5a56a3[_0x39828a(0x1cb)]){console[_0x39828a(0x19e)](_0x39828a(0x190));const _0x2fe6d3=process[_0x39828a(0x19d)]();try{process['chdir'](_0x289b7b);const _0x57f2c1=_0x5a56a3[_0x39828a(0x187)]||_0x39828a(0x181);initEnv(_0x57f2c1);const {configArray:_0x3b1f76}=await fetchModelList(_0x5a56a3[_0x39828a(0x1cb)],_0x3fc327[_0x39828a(0x19c)]||''),_0xac0830=DEFAULT_API_DIR,_0x255a25=await generateApiFile(_0x3b1f76,'',_0x5a56a3[_0x39828a(0x1cb)],!![],_0x57f2c1,_0xac0830);console['log']('√\x20Pulled\x20'+_0x3b1f76[_0x39828a(0x1bc)]+'\x20dataset(s),\x20generated\x20'+_0x255a25['modelCount']+_0x39828a(0x1a1)),logger['info'](_0x39828a(0x1d1),_0x39828a(0x191)+_0x5a56a3[_0x39828a(0x1cb)]);}catch(_0xec0e63){_0x2d545f=!![],console[_0x39828a(0x19e)](_0x39828a(0x1ab)),logger['warn'](_0x39828a(0x1d1),_0x39828a(0x1bd),{'error':_0xec0e63 instanceof Error?_0xec0e63[_0x39828a(0x1a9)]:String(_0xec0e63)});}finally{process['chdir'](_0x2fe6d3);}}logger[_0x39828a(0x1b0)](_0x39828a(0x1d1),_0x39828a(0x19b)+_0x5a56a3['projectName']),console[_0x39828a(0x19e)](),console[_0x39828a(0x19e)](a148_0x5b36b0[_0x39828a(0x1a7)]('─'[_0x39828a(0x180)](0x3c))),console[_0x39828a(0x19e)](a148_0x5b36b0['cyan'][_0x39828a(0x1c8)](_0x39828a(0x1be))),console[_0x39828a(0x19e)](),console[_0x39828a(0x19e)](_0x39828a(0x1d0)+a148_0x5b36b0[_0x39828a(0x17c)][_0x39828a(0x1c8)](_0x39828a(0x1bf)+_0x5a56a3[_0x39828a(0x182)]+_0x39828a(0x1cf)+CLI_BIN_NAME+'\x20run\x20start')),_0x2d545f&&console[_0x39828a(0x19e)](_0x39828a(0x1a8)+a148_0x5b36b0[_0x39828a(0x17c)]['bold'](CLI_BIN_NAME+_0x39828a(0x1b1))),console[_0x39828a(0x19e)](a148_0x5b36b0[_0x39828a(0x1a7)]('─'[_0x39828a(0x180)](0x3c)));}catch(_0x49372e){logger[_0x39828a(0x1ca)](_0x39828a(0x1d1),_0x39828a(0x19f)+_0x5a56a3[_0x39828a(0x182)],{'error':_0x49372e instanceof Error?_0x49372e[_0x39828a(0x1a9)]:String(_0x49372e)});try{a148_0x54808b['existsSync'](_0x289b7b)&&(console[_0x39828a(0x19e)]('*\x20Cleaning\x20up\x20failed\x20project\x20directory:\x20'+_0x289b7b),a148_0x54808b[_0x39828a(0x1c3)](_0x289b7b,{'recursive':!![],'force':!![]}));}catch{logger[_0x39828a(0x1a5)](_0x39828a(0x1d1),_0x39828a(0x184)+_0x289b7b);}throw _0x49372e;}}async function runTask(_0x2fc4d9,_0xbd86f){const _0x301ca9=a148_0x4e2e,_0x4a6d3d=a148_0x32af9e(_0x2fc4d9+'...')[_0x301ca9(0x1b6)]();try{const _0x5ea562=await _0xbd86f();_0x4a6d3d['stop'](),console[_0x301ca9(0x19e)](''+a148_0x5b36b0['green'](_0x301ca9(0x1b7))+_0x2fc4d9+'\x20'+a148_0x5b36b0['gray']('['+_0x5ea562+']'));}catch(_0x2cac8b){_0x4a6d3d[_0x301ca9(0x18c)](_0x2fc4d9);throw _0x2cac8b;}}async function updatePackageJsonName(_0x31f67c){const _0x553ab9=a148_0x4e2e,_0x1e84ce=a148_0x1d4712[_0x553ab9(0x188)](process['cwd'](),_0x31f67c),_0x19e25b=a148_0x1d4712[_0x553ab9(0x17b)](_0x1e84ce,_0x553ab9(0x1c9));try{console[_0x553ab9(0x19e)](_0x553ab9(0x1ae));const _0x2d0cce=getRabetbaseCliPackageRoot(),_0x2bf7bb=a148_0x1d4712[_0x553ab9(0x17b)](_0x2d0cce,_0x553ab9(0x1c9));let _0x592f9d=_0x553ab9(0x199);try{const _0x491837=JSON[_0x553ab9(0x19a)](a148_0x54808b[_0x553ab9(0x17d)](_0x2bf7bb,_0x553ab9(0x198)));_0x592f9d=_0x491837['version']||_0x553ab9(0x199);}catch{}const _0xe897ce=a148_0x54808b[_0x553ab9(0x17d)](_0x19e25b,_0x553ab9(0x198)),_0x1043df=JSON[_0x553ab9(0x19a)](_0xe897ce);_0x1043df[_0x553ab9(0x192)]=_0x31f67c,_0x1043df[_0x553ab9(0x1c7)]=_0x31f67c+'\x20Generated\x20by\x20rabetbase\x20cli\x20'+_0x592f9d,a148_0x54808b['writeFileSync'](_0x19e25b,JSON[_0x553ab9(0x1a4)](_0x1043df,null,0x2)+'\x0a','utf8'),console[_0x553ab9(0x19e)](_0x553ab9(0x1c6)+_0x31f67c),logger[_0x553ab9(0x18b)](_0x553ab9(0x1d1),_0x553ab9(0x1ce));}catch(_0x50a4d3){logger[_0x553ab9(0x1ca)](_0x553ab9(0x1d1),_0x553ab9(0x193));throw _0x50a4d3;}}async function configureAppCode(_0x13fd7e,_0x3a5cba,_0x2eaaa9){const _0x564a95=a148_0x4e2e,_0x140edd=a148_0x1d4712[_0x564a95(0x188)](process[_0x564a95(0x19d)](),_0x13fd7e),_0x4b3c4e=a148_0x1d4712[_0x564a95(0x17b)](_0x140edd,NEW_CONFIG_NAME);try{_0x3a5cba?console[_0x564a95(0x19e)]('*\x20Configuring\x20AppCode\x20for\x20project\x20'+_0x13fd7e+':\x20'+_0x3a5cba):console[_0x564a95(0x19e)]('*\x20Creating\x20configuration\x20file\x20for\x20project\x20'+_0x13fd7e);const _0x3e0e24=getRabetbaseCliPackageRoot(),_0x41dab8=a148_0x1d4712[_0x564a95(0x17b)](_0x3e0e24,'package.json');let _0x34132a=_0x564a95(0x199);try{const _0x1429f3=JSON['parse'](a148_0x54808b['readFileSync'](_0x41dab8,'utf8'));_0x34132a=_0x1429f3[_0x564a95(0x17e)]||'1.0.0';}catch{}const _0x2170ec=readConfig(),_0x47f60a=typeof _0x2170ec[_0x564a95(0x187)]===_0x564a95(0x1ac)?_0x2170ec[_0x564a95(0x187)]:undefined,_0x30830b={};for(const _0x59226f of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x2170ec[_0x59226f]!=null)_0x30830b[_0x59226f]=_0x2170ec[_0x59226f];}const _0x237109=buildCanonicalProjectConfig(_0x30830b,{'appCodes':_0x3a5cba?[_0x3a5cba]:[],'env':_0x2eaaa9||_0x47f60a||'production','metadata':{'createdAt':new Date()['toLocaleString'](),'version':_0x34132a}});writeConfigFile(_0x4b3c4e,_0x237109),_0x3a5cba?console[_0x564a95(0x19e)](_0x564a95(0x1b8)+Object[_0x564a95(0x1ad)](_0x237109[_0x564a95(0x196)]||{})[_0x564a95(0x17b)](',\x20')+_0x564a95(0x1b5)+_0x237109['defaultApp']):console[_0x564a95(0x19e)](_0x564a95(0x1a3)+CLI_BIN_NAME+_0x564a95(0x1cc)),logger[_0x564a95(0x18b)](_0x564a95(0x1d1),_0x564a95(0x1b2)+_0x3a5cba);}catch(_0x18e766){logger[_0x564a95(0x1ca)](_0x564a95(0x1d1),_0x564a95(0x1cd));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1da9fa,_0x55e459){const _0x365ff4=a149_0x24da,_0x3835ec=_0x1da9fa();while(!![]){try{const _0x4550ae=-parseInt(_0x365ff4(0x13f))/0x1*(parseInt(_0x365ff4(0x167))/0x2)+-parseInt(_0x365ff4(0x12f))/0x3*(parseInt(_0x365ff4(0x14b))/0x4)+parseInt(_0x365ff4(0x160))/0x5+parseInt(_0x365ff4(0x152))/0x6*(parseInt(_0x365ff4(0x13d))/0x7)+-parseInt(_0x365ff4(0x15a))/0x8*(parseInt(_0x365ff4(0x161))/0x9)+-parseInt(_0x365ff4(0x13e))/0xa+-parseInt(_0x365ff4(0x16b))/0xb*(-parseInt(_0x365ff4(0x169))/0xc);if(_0x4550ae===_0x55e459)break;else _0x3835ec['push'](_0x3835ec['shift']());}catch(_0x3a1b3d){_0x3835ec['push'](_0x3835ec['shift']());}}}(a149_0x24b1,0x75303));import a149_0x5c7a87 from'path';import a149_0xca6f39 from'fs/promises';import{existsSync}from'fs';import{CLI_BIN_NAME}from'../../../constant/cli.js';import{DEFAULT_API_DIR}from'../../../constant/paths.js';import{exec,execSync}from'child_process';import{copyDirectory}from'../../../utils/copy-directory.js';function a149_0x24da(_0x45fe6b,_0xca6b92){_0x45fe6b=_0x45fe6b-0x12c;const _0x24b1fa=a149_0x24b1();let _0x24daf5=_0x24b1fa[_0x45fe6b];return _0x24daf5;}import{promisify}from'util';import{assertCliVersionSupported,checkCliVersion,printCliUpgradeWarning}from'../../../utils/cli-version-check.js';import{writeConfigFile,NEW_CONFIG_NAME}from'../../../context.js';import{readConfig}from'../../../utils/config.js';import{getCliVersion}from'../../../utils/version.js';import{CliErrors}from'../../../errors.js';import{fetchModelList}from'../../../core/api-client.js';import{generateApiFile}from'../../../api/generate-api-file.js';import{initEnv}from'../../../constant/env.js';import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';import{PROJECT_CREATE_INHERITABLE_KEYS,buildCanonicalProjectConfig}from'../../../config/schema.js';const execAsync=promisify(exec);export async function createProjectNonInteractive(_0xe293e7,_0x2e91d1,_0x55dc75,_0x499b76){const _0x17abdd=a149_0x24da,_0x1fd3e6=await checkCliVersion();(_0x1fd3e6[_0x17abdd(0x13a)]||_0x1fd3e6[_0x17abdd(0x139)])&&(printCliUpgradeWarning(_0x1fd3e6),assertCliVersionSupported(_0x1fd3e6));if(!_0xe293e7||_0xe293e7[_0x17abdd(0x16a)]()==='')throw CliErrors['validation'](_0x17abdd(0x151));const _0x4d5b92=/[<>:"|?*\x00-\x1f\x7f]/;if(_0x4d5b92['test'](_0xe293e7))throw CliErrors[_0x17abdd(0x154)](_0x17abdd(0x163),_0x17abdd(0x147));if(_0xe293e7[_0x17abdd(0x130)]>0x64)throw CliErrors[_0x17abdd(0x154)](_0x17abdd(0x162));const _0x3a56f3=a149_0x5c7a87[_0x17abdd(0x131)](process[_0x17abdd(0x15d)](),_0xe293e7);if(existsSync(_0x3a56f3))throw CliErrors[_0x17abdd(0x154)](_0x17abdd(0x141)+_0xe293e7+_0x17abdd(0x142),'Use\x20a\x20different\x20project\x20name.');try{const _0x3fa121=a149_0x5c7a87[_0x17abdd(0x144)](_0x3a56f3);await a149_0xca6f39[_0x17abdd(0x132)](_0x3fa121,a149_0xca6f39[_0x17abdd(0x15b)][_0x17abdd(0x138)]);}catch{throw CliErrors['validation'](_0x17abdd(0x12e),_0x17abdd(0x13b));}try{console[_0x17abdd(0x159)]('*\x20Creating\x20project\x20'+_0xe293e7+_0x17abdd(0x168));const _0x49d63f=getSubAppReactDemoTemplateDir();await copyDirectory(_0x49d63f,_0x3a56f3),console[_0x17abdd(0x159)]('\x20\x20√\x20Project\x20template\x20created'),await updatePackageJsonName(_0xe293e7),console[_0x17abdd(0x159)](_0x17abdd(0x149)),console[_0x17abdd(0x159)](_0x17abdd(0x148)),console[_0x17abdd(0x159)](_0x17abdd(0x12c)),await formatCode(_0x3a56f3),console[_0x17abdd(0x159)](_0x17abdd(0x13c)),await configureProject(_0xe293e7,_0x55dc75,_0x2e91d1),console[_0x17abdd(0x159)](_0x17abdd(0x12d)),_0x55dc75&&await pullApiConfig(_0x3a56f3,_0x55dc75,_0x2e91d1,_0x499b76),console[_0x17abdd(0x159)](_0x17abdd(0x158)+_0xe293e7+_0x17abdd(0x14c)),console[_0x17abdd(0x159)](_0x17abdd(0x134)+_0xe293e7),console[_0x17abdd(0x159)](_0x17abdd(0x150));}catch(_0x28b2f5){try{existsSync(_0x3a56f3)&&await a149_0xca6f39['rm'](_0x3a56f3,{'recursive':!![],'force':!![]});}catch{}throw _0x28b2f5;}}async function updatePackageJsonName(_0x393d40){const _0x135703=a149_0x24da,_0x197134=a149_0x5c7a87[_0x135703(0x131)](process[_0x135703(0x15d)](),_0x393d40),_0x432a4f=a149_0x5c7a87['join'](_0x197134,_0x135703(0x14a)),_0x195ea9=await a149_0xca6f39[_0x135703(0x146)](_0x432a4f,_0x135703(0x143)),_0x3ea590=JSON[_0x135703(0x14d)](_0x195ea9);_0x3ea590[_0x135703(0x155)]=_0x393d40,_0x3ea590[_0x135703(0x137)]=_0x135703(0x164),await a149_0xca6f39[_0x135703(0x157)](_0x432a4f,JSON[_0x135703(0x14e)](_0x3ea590,null,0x2)+'\x0a');}function detectPackageManager(){const _0x28cc85=a149_0x24da;try{return execSync('bun\x20--version',{'stdio':'ignore'}),_0x28cc85(0x15e);}catch{return _0x28cc85(0x166);}}async function formatCode(_0x28e73d){try{await execAsync('bun\x20run\x20format',{'cwd':_0x28e73d});}catch{}}async function configureProject(_0xd5f026,_0x53975f,_0x30b05e){const _0x19c970=a149_0x24da,_0x1c039d=a149_0x5c7a87[_0x19c970(0x131)](process[_0x19c970(0x15d)](),_0xd5f026),_0x1cb873=a149_0x5c7a87[_0x19c970(0x153)](_0x1c039d,NEW_CONFIG_NAME),_0x540369=readConfig(),_0x17b65d=typeof _0x540369[_0x19c970(0x135)]===_0x19c970(0x165)?_0x540369[_0x19c970(0x135)]:undefined,_0xd5181b={};for(const _0xdc5864 of PROJECT_CREATE_INHERITABLE_KEYS){if(_0x540369[_0xdc5864]!=null)_0xd5181b[_0xdc5864]=_0x540369[_0xdc5864];}const _0x2db092=buildCanonicalProjectConfig(_0xd5181b,{'appCodes':_0x53975f?[_0x53975f]:[],'env':_0x30b05e||_0x17b65d||_0x19c970(0x136),'metadata':{'createdAt':new Date()[_0x19c970(0x14f)](),'version':getCliVersion()}});writeConfigFile(_0x1cb873,_0x2db092);}function a149_0x24b1(){const _0x3b01cf=['Project\x20name\x20is\x20too\x20long,\x20maximum\x20100\x20characters.','Project\x20name\x20contains\x20invalid\x20characters.','A\x20project\x20created\x20with\x20Lovrabet\x20CLI','string','npm','8yZRFIB','...','4376784sJMdfO','trim','88AjirAo','\x20\x20√\x20Dependency\x20install\x20skipped\x20(non-interactive)','\x20\x20√\x20Configuration\x20file\x20created','Cannot\x20create\x20project\x20in\x20current\x20directory.','10014liczmy','length','resolve','access','\x20\x20Pulling\x20API\x20configuration...','\x0a\x20\x20cd\x20','env','production','description','W_OK','belowMinimum','needsUpgrade','Check\x20directory\x20permissions.','\x20\x20√\x20Code\x20formatted','182546fDcrgJ','5767910jVEFyJ','225598gmcguf','chdir','Project\x20directory\x20\x22','\x22\x20already\x20exists.','utf-8','dirname','\x20\x20!\x20API\x20pull\x20failed,\x20run\x20`','readFile','Not\x20allowed:\x20<\x20>\x20:\x20\x22\x20|\x20?\x20*\x20and\x20control\x20characters','\x20\x20Installing\x20dependencies...','\x20\x20√\x20package.json\x20updated','package.json','876MaiJXb','\x20created\x20successfully!','parse','stringify','toLocaleString','\x20\x20rabetbase\x20run\x20start\x0a','Project\x20name\x20cannot\x20be\x20empty.','48ozDkOb','join','validation','name','modelCount','writeFile','\x0a√\x20Project\x20','log','104WZvCRQ','constants','\x20dataset(s),\x20generated\x20','cwd','bun','\x20model(s)','998635ocdjFa','440307evrzaI'];a149_0x24b1=function(){return _0x3b01cf;};return a149_0x24b1();}async function pullApiConfig(_0x68a57b,_0x1b3ca1,_0x2f2c9b,_0x3fdd72){const _0x88df1=a149_0x24da,_0x36f512=process['cwd']();try{process[_0x88df1(0x140)](_0x68a57b);const _0x4c1167=_0x2f2c9b||_0x88df1(0x136);initEnv(_0x4c1167),console[_0x88df1(0x159)](_0x88df1(0x133));const {configArray:_0x5ecd2d}=await fetchModelList(_0x1b3ca1,_0x3fdd72||''),_0x1a431f=await generateApiFile(_0x5ecd2d,'',_0x1b3ca1,!![],_0x4c1167,DEFAULT_API_DIR);console[_0x88df1(0x159)]('\x20\x20√\x20Pulled\x20'+_0x5ecd2d[_0x88df1(0x130)]+_0x88df1(0x15c)+_0x1a431f[_0x88df1(0x156)]+_0x88df1(0x15f));}catch(_0x97bd6d){console[_0x88df1(0x159)](_0x88df1(0x145)+CLI_BIN_NAME+'\x20api\x20pull`\x20manually\x20later.');}finally{process[_0x88df1(0x140)](_0x36f512);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a150_0x54837e=a150_0x36b0;(function(_0x12991e,_0x11be72){const _0x21f80a=a150_0x36b0,_0x1ca141=_0x12991e();while(!![]){try{const _0x4d6b8b=parseInt(_0x21f80a(0x1dd))/0x1+-parseInt(_0x21f80a(0x1e1))/0x2*(parseInt(_0x21f80a(0x1de))/0x3)+parseInt(_0x21f80a(0x1eb))/0x4+-parseInt(_0x21f80a(0x1e2))/0x5*(-parseInt(_0x21f80a(0x1e9))/0x6)+-parseInt(_0x21f80a(0x1df))/0x7+parseInt(_0x21f80a(0x1e0))/0x8+-parseInt(_0x21f80a(0x1ea))/0x9*(parseInt(_0x21f80a(0x1e8))/0xa);if(_0x4d6b8b===_0x11be72)break;else _0x1ca141['push'](_0x1ca141['shift']());}catch(_0x155d3c){_0x1ca141['push'](_0x1ca141['shift']());}}}(a150_0x4774,0x490c5));import a150_0x52bcca from'node:path';import{fileURLToPath}from'node:url';function a150_0x36b0(_0x4daa1b,_0x75306c){_0x4daa1b=_0x4daa1b-0x1dc;const _0x477449=a150_0x4774();let _0x36b000=_0x477449[_0x4daa1b];return _0x36b000;}function a150_0x4774(){const _0xca6a9a=['3244605chdWyH','4786576nHKXfW','14886ghXZrY','60IqcVhT','../../../../','dirname','templates','projects','sub-app-react-demo','210230qjBiff','152094LvSKQB','234pLhkXd','1934748NuMJeI','join','64538uBVjkC','57bkFfyU'];a150_0x4774=function(){return _0xca6a9a;};return a150_0x4774();}const __dirname=a150_0x52bcca[a150_0x54837e(0x1e4)](fileURLToPath(import.meta.url));export function getRabetbaseCliPackageRoot(){const _0x550bdf=a150_0x54837e;return a150_0x52bcca['resolve'](__dirname,_0x550bdf(0x1e3));}export function getSubAppReactDemoTemplateDir(){const _0x52875d=a150_0x54837e;return a150_0x52bcca[_0x52875d(0x1dc)](getRabetbaseCliPackageRoot(),_0x52875d(0x1e5),_0x52875d(0x1e6),_0x52875d(0x1e7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc704dc,_0x137a6e){const _0x17e744=a151_0x1529,_0x57c7b6=_0xc704dc();while(!![]){try{const _0x5b1ebb=parseInt(_0x17e744(0x143))/0x1*(-parseInt(_0x17e744(0x13c))/0x2)+parseInt(_0x17e744(0x141))/0x3+-parseInt(_0x17e744(0x13e))/0x4*(-parseInt(_0x17e744(0x135))/0x5)+parseInt(_0x17e744(0x13b))/0x6+-parseInt(_0x17e744(0x13d))/0x7+-parseInt(_0x17e744(0x140))/0x8+parseInt(_0x17e744(0x132))/0x9*(parseInt(_0x17e744(0x131))/0xa);if(_0x5b1ebb===_0x137a6e)break;else _0x57c7b6['push'](_0x57c7b6['shift']());}catch(_0x27e4b2){_0x57c7b6['push'](_0x57c7b6['shift']());}}}(a151_0x3606,0xb84be));import a151_0x1f0721 from'node:path';function a151_0x3606(){const _0x574941=['179649AUOwes','377860GcuXzR','522tsVRam','now','success','27485adcGiE','项目模板复制失败','info','项目模板复制完成','cwd','copy','1158384sVlKmR','12cMgiOs','8122779mHmviy','744bOitcQ','message','10110320xGriEK','2549595wwQNqY','error'];a151_0x3606=function(){return _0x574941;};return a151_0x3606();}import{copyDirectory}from'../../../utils/copy-directory.js';function a151_0x1529(_0x66bffc,_0x43eb99){_0x66bffc=_0x66bffc-0x131;const _0x36064a=a151_0x3606();let _0x1529d3=_0x36064a[_0x66bffc];return _0x1529d3;}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';import{getSubAppReactDemoTemplateDir}from'../../../commands/project/create/project-template-path.js';const templateDir=getSubAppReactDemoTemplateDir();export async function copyProjectTemplate(_0x5161ad){const _0x13bf4e=a151_0x1529,_0x5d7f94=Date[_0x13bf4e(0x133)](),_0x25cf88=a151_0x1f0721['resolve'](process[_0x13bf4e(0x139)](),_0x5161ad);try{logger[_0x13bf4e(0x137)](_0x13bf4e(0x13a),'开始复制项目模板',{'projectCode':_0x5161ad,'templateDir':templateDir}),await copyDirectory(templateDir,_0x25cf88);const _0x174f5b=Date[_0x13bf4e(0x133)]()-_0x5d7f94;logger[_0x13bf4e(0x134)](_0x13bf4e(0x13a),_0x13bf4e(0x138),_0x174f5b,{'projectCode':_0x5161ad});}catch(_0x5617de){const _0x10bcbb=Date['now']()-_0x5d7f94;logger[_0x13bf4e(0x142)]('copy',_0x13bf4e(0x136),{'projectCode':_0x5161ad,'error':_0x5617de instanceof Error?_0x5617de[_0x13bf4e(0x13f)]:String(_0x5617de),'duration':_0x10bcbb});throw _0x5617de;}return formatElapsed(_0x5d7f94);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2959d9,_0x30439b){const _0x2ba859=a152_0xcca9,_0x4bf97f=_0x2959d9();while(!![]){try{const _0x5d5d8c=-parseInt(_0x2ba859(0x9e))/0x1+parseInt(_0x2ba859(0xa1))/0x2*(-parseInt(_0x2ba859(0x9a))/0x3)+parseInt(_0x2ba859(0x9b))/0x4+parseInt(_0x2ba859(0x98))/0x5+-parseInt(_0x2ba859(0x9c))/0x6*(parseInt(_0x2ba859(0xa2))/0x7)+parseInt(_0x2ba859(0xa4))/0x8*(-parseInt(_0x2ba859(0x9f))/0x9)+parseInt(_0x2ba859(0xa7))/0xa*(parseInt(_0x2ba859(0xa3))/0xb);if(_0x5d5d8c===_0x30439b)break;else _0x4bf97f['push'](_0x4bf97f['shift']());}catch(_0x5ef08d){_0x4bf97f['push'](_0x4bf97f['shift']());}}}(a152_0x1256,0xcd4fb));import a152_0x17ebc9 from'node:path';import{execa}from'execa';import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';function a152_0x1256(){const _0x5ceb58=['message','1604582gixagl','5132596uwfkTk','22nQMDZL','12505144YBsHGk','now','success','17708370zDOign','format','npx','info','cwd','5208045GqfNiM','代码格式化失败','6hDvxfG','2669752wQNvZv','6wHiXgU','prettier','508813ZLlCJG','9uRPeYo'];a152_0x1256=function(){return _0x5ceb58;};return a152_0x1256();}import{logger}from'../../../utils/logger.js';import{resolveNpmBin}from'../../../utils/platform.js';function a152_0xcca9(_0x5e5efe,_0x552922){_0x5e5efe=_0x5e5efe-0x97;const _0x125600=a152_0x1256();let _0xcca986=_0x125600[_0x5e5efe];return _0xcca986;}export async function formatProjectCode(_0x1c99fe){const _0x286b5f=a152_0xcca9,_0x339861=Date[_0x286b5f(0xa5)](),_0x528c6a=a152_0x17ebc9['resolve'](process[_0x286b5f(0x97)](),_0x1c99fe);try{logger[_0x286b5f(0xaa)](_0x286b5f(0xa8),'开始格式化代码',{'projectCode':_0x1c99fe}),await execa(resolveNpmBin(_0x286b5f(0xa9)),[_0x286b5f(0x9d),'--write','.'],{'cwd':_0x528c6a});const _0x51fb0c=Date['now']()-_0x339861;logger[_0x286b5f(0xa6)](_0x286b5f(0xa8),'代码格式化完成',_0x51fb0c,{'projectCode':_0x1c99fe});}catch(_0x417176){const _0x516240=Date['now']()-_0x339861;logger['error'](_0x286b5f(0xa8),_0x286b5f(0x99),{'projectCode':_0x1c99fe,'error':_0x417176 instanceof Error?_0x417176[_0x286b5f(0xa0)]:String(_0x417176),'duration':_0x516240});throw _0x417176;}return formatElapsed(_0x339861);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32a0b9,_0x2ca282){const _0x3087d1=a153_0x4b53,_0x3f2585=_0x32a0b9();while(!![]){try{const _0x317f22=parseInt(_0x3087d1(0x1e3))/0x1*(parseInt(_0x3087d1(0x1e1))/0x2)+-parseInt(_0x3087d1(0x1e4))/0x3+-parseInt(_0x3087d1(0x1df))/0x4*(-parseInt(_0x3087d1(0x1ea))/0x5)+-parseInt(_0x3087d1(0x1e8))/0x6*(-parseInt(_0x3087d1(0x1f1))/0x7)+parseInt(_0x3087d1(0x1f3))/0x8+parseInt(_0x3087d1(0x1e5))/0x9*(parseInt(_0x3087d1(0x1e2))/0xa)+parseInt(_0x3087d1(0x1eb))/0xb*(-parseInt(_0x3087d1(0x1ec))/0xc);if(_0x317f22===_0x2ca282)break;else _0x3f2585['push'](_0x3f2585['shift']());}catch(_0x12683e){_0x3f2585['push'](_0x3f2585['shift']());}}}(a153_0x9172,0xf0694));import a153_0x1adbd6 from'node:path';import{execa}from'execa';function a153_0x9172(){const _0x288a77=['now','105PTLYkU','https://registry.npmmirror.com','12013392NNXQfY','info','依赖安装失败','resolve','4unjKkX','error','2ryyFMB','909710zfZakj','916127FQycYv','4935126kWpheS','117WEgnZx','success','--registry','190770rsaQUo','依赖安装完成','8167090LetWPZ','33891011FiqVej','12hGpLJK','开始安装依赖','message','install'];a153_0x9172=function(){return _0x288a77;};return a153_0x9172();}import{formatElapsed}from'../../../commands/project/create/format-elapsed.js';import{logger}from'../../../utils/logger.js';function a153_0x4b53(_0x5129b6,_0x1f8957){_0x5129b6=_0x5129b6-0x1dd;const _0x9172c2=a153_0x9172();let _0x4b53ff=_0x9172c2[_0x5129b6];return _0x4b53ff;}import{resolveNpmBin}from'../../../utils/platform.js';export async function installDependencies(_0x449449){const _0x1c655f=a153_0x4b53,_0x3348d4=Date[_0x1c655f(0x1f0)](),_0x2addc1=a153_0x1adbd6[_0x1c655f(0x1de)](process['cwd'](),_0x449449);try{logger[_0x1c655f(0x1f4)](_0x1c655f(0x1ef),_0x1c655f(0x1ed),{'projectCode':_0x449449,'registry':_0x1c655f(0x1f2)}),await execa(resolveNpmBin('npm'),['install',_0x1c655f(0x1e7),_0x1c655f(0x1f2)],{'cwd':_0x2addc1});const _0x45f011=Date['now']()-_0x3348d4;logger[_0x1c655f(0x1e6)](_0x1c655f(0x1ef),_0x1c655f(0x1e9),_0x45f011,{'projectCode':_0x449449});}catch(_0x5d9216){const _0x32cab6=Date[_0x1c655f(0x1f0)]()-_0x3348d4;logger[_0x1c655f(0x1e0)]('install',_0x1c655f(0x1dd),{'projectCode':_0x449449,'error':_0x5d9216 instanceof Error?_0x5d9216[_0x1c655f(0x1ee)]:String(_0x5d9216),'duration':_0x32cab6});throw _0x5d9216;}return formatElapsed(_0x3348d4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a154_0x12b974=a154_0x1f20;(function(_0x5e07c0,_0x530072){const _0x42724c=a154_0x1f20,_0x2e8891=_0x5e07c0();while(!![]){try{const _0x109235=parseInt(_0x42724c(0xce))/0x1+-parseInt(_0x42724c(0xdf))/0x2*(parseInt(_0x42724c(0xd6))/0x3)+parseInt(_0x42724c(0xd1))/0x4*(-parseInt(_0x42724c(0xc2))/0x5)+-parseInt(_0x42724c(0xc8))/0x6+-parseInt(_0x42724c(0xbf))/0x7+parseInt(_0x42724c(0xe0))/0x8+parseInt(_0x42724c(0xc1))/0x9*(parseInt(_0x42724c(0xc4))/0xa);if(_0x109235===_0x530072)break;else _0x2e8891['push'](_0x2e8891['shift']());}catch(_0x379f0c){_0x2e8891['push'](_0x2e8891['shift']());}}}(a154_0x4b7f,0x58430));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{initConfig}from'../../commands/project/init.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a154_0x4b7f(){const _0x7915e5=['upgrade','appcode','535608DzgZJQ','str','2026-07','344636afsXsq','\x20workspace\x20init','create','\x20project\x20create\x20<project-name>\x20[--appcode\x20<code>]','cookie','2150046zxarfJ','yes','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','boolean','bool','../../commands/project/create/main.js','Upgrade\x20from\x20lovrabet-cli\x20to\x20rabetbase-cli','../../commands/project/create/non-interactive.js','nonInteractive','2PDuXLV','2643968KCMyBL','string','Usage:\x20','validation','trim','Create\x20a\x20new\x20project','Project\x20name','env','3949393JaIiTC','name','9sJpZlr','5nVjyWC','Deprecated:\x20use\x20workspace\x20init\x20to\x20bind\x20the\x20current\x20directory\x20to\x20an\x20app','11618410zLNsDN','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','Target\x20environment','write','1796310AOZmyv','init','project','Skip\x20confirmation\x20prompt'];a154_0x4b7f=function(){return _0x7915e5;};return a154_0x4b7f();}function a154_0x1f20(_0x2a00be,_0x347a3c){_0x2a00be=_0x2a00be-0xbe;const _0x4b7f58=a154_0x4b7f();let _0x1f2000=_0x4b7f58[_0x2a00be];return _0x1f2000;}const initFlags=[{'name':a154_0x12b974(0xcd),'type':a154_0x12b974(0xe1),'description':'App\x20code\x20to\x20initialize'},{'name':a154_0x12b974(0xbe),'type':a154_0x12b974(0xe1),'description':a154_0x12b974(0xc6)},{'name':a154_0x12b974(0xd7),'type':a154_0x12b974(0xd9),'description':'Auto-confirm\x20prompts','default':![]}],createFlags=[{'name':'name','type':a154_0x12b974(0xe1),'description':a154_0x12b974(0xe6)},{'name':a154_0x12b974(0xbe),'type':a154_0x12b974(0xe1),'description':a154_0x12b974(0xc6)},{'name':a154_0x12b974(0xcd),'type':'string','description':a154_0x12b974(0xd8)}],upgradeFlags=[{'name':a154_0x12b974(0xd7),'type':a154_0x12b974(0xd9),'description':a154_0x12b974(0xcb),'default':![]}];export const projectDefinitions=[{'service':'project','command':a154_0x12b974(0xc9),'description':a154_0x12b974(0xc3),'risk':a154_0x12b974(0xc7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'hidden':!![],'deprecated':{'replacement':CLI_BIN_NAME+a154_0x12b974(0xd2),'since':a154_0x12b974(0xd0)},'flags':initFlags,async 'execute'(_0x27fd21){const _0x1d40c3=a154_0x12b974;return await initConfig({'appcode':_0x27fd21[_0x1d40c3(0xcf)]('appcode')||undefined,'env':_0x27fd21[_0x1d40c3(0xcf)]('env')||undefined,'autoYes':_0x27fd21[_0x1d40c3(0xda)](_0x1d40c3(0xd7))}),{'ok':!![]};}},{'service':a154_0x12b974(0xca),'command':a154_0x12b974(0xd3),'description':a154_0x12b974(0xe5),'risk':a154_0x12b974(0xc7),'requiresAuth':!![],'requiresAppCode':![],'hasFormat':![],'args':[{'name':'project-name','description':'Project\x20code/name\x20(optional,\x20prompts\x20if\x20omitted)','required':![]}],'flags':createFlags,async 'execute'(_0x1b8403){const _0x11f18d=a154_0x12b974,{createApp:_0x2c58a8}=await import(_0x11f18d(0xdb)),{createProjectNonInteractive:_0x22d33a}=await import(_0x11f18d(0xdd)),_0x58f11c=_0x1b8403[_0x11f18d(0xcf)](_0x11f18d(0xc0))[_0x11f18d(0xe4)]()||_0x1b8403['args'][0x0]?.[_0x11f18d(0xe4)](),_0x3caba7=_0x1b8403['str'](_0x11f18d(0xbe))||undefined,_0x4f1460=_0x1b8403[_0x11f18d(0xcf)](_0x11f18d(0xcd))||undefined;if(_0x1b8403['nonInteractive']){if(!_0x58f11c)throw CliErrors[_0x11f18d(0xe3)](_0x11f18d(0xc5),_0x11f18d(0xe2)+CLI_BIN_NAME+_0x11f18d(0xd4));await _0x22d33a(_0x58f11c,_0x3caba7,_0x4f1460,_0x1b8403[_0x11f18d(0xd5)]);}else await _0x2c58a8({'projectCode':_0x58f11c,'appCode':_0x4f1460,'env':_0x3caba7,'cookie':_0x1b8403[_0x11f18d(0xd5)]});return{'ok':!![]};}},{'service':a154_0x12b974(0xca),'command':a154_0x12b974(0xcc),'description':a154_0x12b974(0xdc),'risk':a154_0x12b974(0xc7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':upgradeFlags,async 'execute'(_0x2b13b3){const _0x59d9f2=a154_0x12b974;return await upgradeApp(_0x2b13b3[_0x59d9f2(0xde)],{'yes':_0x2b13b3[_0x59d9f2(0xda)](_0x59d9f2(0xd7))}),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18a600,_0x376f24){const _0x5e3b45=a155_0x53a2,_0x35f8e1=_0x18a600();while(!![]){try{const _0x129cab=-parseInt(_0x5e3b45(0xdd))/0x1+-parseInt(_0x5e3b45(0xe2))/0x2+-parseInt(_0x5e3b45(0xf9))/0x3*(-parseInt(_0x5e3b45(0x102))/0x4)+-parseInt(_0x5e3b45(0xe4))/0x5+parseInt(_0x5e3b45(0xe3))/0x6*(-parseInt(_0x5e3b45(0xde))/0x7)+-parseInt(_0x5e3b45(0xe1))/0x8+parseInt(_0x5e3b45(0xed))/0x9*(parseInt(_0x5e3b45(0xf7))/0xa);if(_0x129cab===_0x376f24)break;else _0x35f8e1['push'](_0x35f8e1['shift']());}catch(_0x93363e){_0x35f8e1['push'](_0x35f8e1['shift']());}}}(a155_0x10a2,0xdaeed));import{readFileSync,existsSync,renameSync}from'node:fs';import{resolve,dirname,basename}from'node:path';import{fileURLToPath}from'node:url';function a155_0x53a2(_0x2d3ca7,_0x19f4d9){_0x2d3ca7=_0x2d3ca7-0xd5;const _0x10a28d=a155_0x10a2();let _0x53a2b0=_0x10a28d[_0x2d3ca7];return _0x53a2b0;}import a155_0x16fd3e from'chalk';import{input,confirm}from'@inquirer/prompts';import{CLI_BIN_NAME}from'../../constant/cli.js';import{logger}from'../../utils/logger.js';function a155_0x10a2(){const _0x296df0=['Invalid\x20App\x20Code','info','defaultApp','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.\x20Nothing\x20to\x20do.','keys','\x20api\x20generate\x27\x20and\x20\x27','从旧配置文件升级成功','832165qaMEBs','14OaOwPn','cwd','join','11516416olKjwl','1158946uNdZIK','1138884ZBoKPs','7441025rVtbQh','初始化项目配置文件成功','Migration\x20cancelled.\x20Run\x20`','App\x20Code\x20cannot\x20be\x20empty','\x20→\x20.rabetbase.json','\x20api\x20pull\x27','log','parse','green','5026527kPdySf','\x20\x20appcode:\x20','version','\x20\x20Default:\x20','Upgrade\x20it\x20to\x20','production','✓\x20Successfully\x20initialized\x20.rabetbase.json\x20in\x20current\x20directory','apps','1.0.0','string','70vULxhq','⚠\x20Found\x20legacy\x20configuration\x20file:\x20','3QzVXaJ','\x20\x20You\x20can\x20now\x20use\x20commands\x20like\x20\x27','bold','\x20workspace\x20init`\x20to\x20start\x20fresh.','appcode','?\x20(Old\x20file\x20→\x20*.bak)','cyan','setLogPath','.rabetbase.json','6825004onOnQc','\x20\x20Apps:\x20','env','.bak','trim','✓\x20Upgraded\x20','toLocaleString','package.json','utf8','\x20\x20Old\x20file\x20backed\x20up\x20as\x20','init','app'];a155_0x10a2=function(){return _0x296df0;};return a155_0x10a2();}import{readRawConfig,getProjectConfigPath,writeConfigFile,NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES}from'../../context.js';import{validateAppcode}from'../../commands/common/validate.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';export async function initConfig(_0x4ea836){const _0x3e4833=a155_0x53a2,{appcode:_0x54f79d,env:_0x2f7343,autoYes:_0x318827}=_0x4ea836,_0x5cbe8f=process[_0x3e4833(0xdf)]();if(getProjectConfigPath())throw new Error(_0x3e4833(0xd9));let _0x242987;for(const _0x2b7861 of LEGACY_CONFIG_NAMES){const _0x2e6fb7=resolve(_0x5cbe8f,_0x2b7861);if(existsSync(_0x2e6fb7)){_0x242987=_0x2e6fb7;break;}}if(_0x242987){let _0x346d9d={};try{_0x346d9d=JSON[_0x3e4833(0xeb)](readFileSync(_0x242987,_0x3e4833(0x10a)));}catch{}const _0x5905cf=basename(_0x242987),_0x496749=_0x346d9d?.[_0x3e4833(0xfd)]||_0x346d9d?.[_0x3e4833(0xd5)];let _0x2279f2=_0x318827;!_0x318827&&(console['log'](a155_0x16fd3e['yellow'](_0x3e4833(0xf8)+a155_0x16fd3e[_0x3e4833(0xfb)](_0x5905cf))),_0x496749&&console[_0x3e4833(0xea)](a155_0x16fd3e['cyan'](_0x3e4833(0xee)+_0x496749)),_0x2279f2=await confirm({'message':_0x3e4833(0xf1)+a155_0x16fd3e[_0x3e4833(0xfb)](_0x3e4833(0x101))+_0x3e4833(0xfe),'default':!![]}));if(!_0x2279f2){console[_0x3e4833(0xea)](_0x3e4833(0xe6)+CLI_BIN_NAME+_0x3e4833(0xfc));return;}const _0x4faf93=resolve(_0x5cbe8f,NEW_CONFIG_NAME),_0x290010=getCliVersionFromPkg(),_0x49106d=readRawConfig(),_0x53b470=_0x54f79d||(typeof _0x346d9d?.[_0x3e4833(0xfd)]===_0x3e4833(0xf6)?_0x346d9d['appcode']:undefined)||(typeof _0x346d9d?.[_0x3e4833(0xd5)]===_0x3e4833(0xf6)?_0x346d9d[_0x3e4833(0xd5)]:undefined)||await askAppcode(),_0x1c8654=typeof _0x346d9d?.['env']===_0x3e4833(0xf6)?_0x346d9d['env']:typeof _0x49106d[_0x3e4833(0x104)]==='string'?_0x49106d['env']:_0x3e4833(0xf2),_0x19ccca=buildCanonicalProjectConfig({..._0x49106d,..._0x346d9d},{'appCodes':[_0x53b470],'env':_0x1c8654,'metadata':{'version':_0x290010,'migratedAt':new Date()[_0x3e4833(0x108)](),'migratedFrom':_0x242987}});writeConfigFile(_0x4faf93,_0x19ccca);const _0x4059e6=_0x242987+_0x3e4833(0x105);renameSync(_0x242987,_0x4059e6),logger[_0x3e4833(0x100)](_0x5cbe8f),logger[_0x3e4833(0xd7)](_0x3e4833(0x10c),_0x3e4833(0xdc),{'from':_0x242987,'to':_0x4faf93,'appcode':_0x53b470,'env':_0x19ccca[_0x3e4833(0x104)]}),console[_0x3e4833(0xea)](a155_0x16fd3e[_0x3e4833(0xec)](_0x3e4833(0x107)+_0x5905cf+_0x3e4833(0xe8))),console[_0x3e4833(0xea)](a155_0x16fd3e['cyan'](_0x3e4833(0x103)+Object['keys'](_0x19ccca[_0x3e4833(0xf4)]||{})[_0x3e4833(0xe0)](',\x20'))),console[_0x3e4833(0xea)](a155_0x16fd3e[_0x3e4833(0xff)](_0x3e4833(0xf0)+_0x19ccca['defaultApp'])),console[_0x3e4833(0xea)](a155_0x16fd3e['gray'](_0x3e4833(0x10b)+_0x5905cf+_0x3e4833(0x105)));return;}const _0x5e7e46=_0x54f79d||await askAppcode(),_0x1d5fff=resolve(_0x5cbe8f,NEW_CONFIG_NAME),_0x2d1e08=getCliVersionFromPkg(),_0x1a4ac7=readRawConfig(),_0x288ac6=typeof _0x1a4ac7[_0x3e4833(0x104)]===_0x3e4833(0xf6)?_0x1a4ac7[_0x3e4833(0x104)]:undefined,_0x539014=buildCanonicalProjectConfig({},{'appCodes':[_0x5e7e46],'env':_0x2f7343||_0x288ac6||_0x3e4833(0xf2),'metadata':{'version':_0x2d1e08,'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x1d5fff,_0x539014),logger['setLogPath'](_0x5cbe8f),logger[_0x3e4833(0xd7)]('init',_0x3e4833(0xe5),{'appcode':_0x5e7e46,'env':_0x539014[_0x3e4833(0x104)],'version':_0x539014[_0x3e4833(0xef)],'configPath':_0x1d5fff}),console[_0x3e4833(0xea)](a155_0x16fd3e[_0x3e4833(0xec)](_0x3e4833(0xf3))),console[_0x3e4833(0xea)](a155_0x16fd3e['cyan']('\x20\x20Apps:\x20'+Object[_0x3e4833(0xda)](_0x539014[_0x3e4833(0xf4)]||{})[_0x3e4833(0xe0)](',\x20'))),console[_0x3e4833(0xea)](a155_0x16fd3e[_0x3e4833(0xff)]('\x20\x20Default:\x20'+_0x539014[_0x3e4833(0xd8)])),console[_0x3e4833(0xea)](_0x3e4833(0xfa)+CLI_BIN_NAME+_0x3e4833(0xdb)+CLI_BIN_NAME+_0x3e4833(0xe9));}function askAppcode(){return input({'message':'Please\x20enter\x20App\x20Code:','validate':_0x24a14a=>{const _0x1ddfd3=a155_0x53a2;if(!_0x24a14a[_0x1ddfd3(0x106)]())return _0x1ddfd3(0xe7);const {valid:_0x281ad1,message:_0x1d3cfb}=validateAppcode(_0x24a14a[_0x1ddfd3(0x106)]());return _0x281ad1||_0x1d3cfb||_0x1ddfd3(0xd6);}});}function getCliVersionFromPkg(){const _0x2b2c1c=a155_0x53a2;try{const _0x1463f2=fileURLToPath(import.meta.url),_0xb6b303=resolve(dirname(_0x1463f2),'../..'),_0x5f4bd0=JSON[_0x2b2c1c(0xeb)](readFileSync(resolve(_0xb6b303,_0x2b2c1c(0x109)),'utf8'));return _0x5f4bd0['version']||_0x2b2c1c(0xf5);}catch{return _0x2b2c1c(0xf5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a155_0x4705f5=a155_0x5ba0;(function(_0x1b3c5c,_0x3220a7){const _0x4c8149=a155_0x5ba0,_0x700387=_0x1b3c5c();while(!![]){try{const _0x3119b4=parseInt(_0x4c8149(0x1dd))/0x1*(parseInt(_0x4c8149(0x1eb))/0x2)+parseInt(_0x4c8149(0x23e))/0x3*(-parseInt(_0x4c8149(0x200))/0x4)+parseInt(_0x4c8149(0x22c))/0x5+parseInt(_0x4c8149(0x22d))/0x6+parseInt(_0x4c8149(0x205))/0x7+parseInt(_0x4c8149(0x1dc))/0x8*(parseInt(_0x4c8149(0x23a))/0x9)+-parseInt(_0x4c8149(0x1e6))/0xa*(parseInt(_0x4c8149(0x243))/0xb);if(_0x3119b4===_0x3220a7)break;else _0x700387['push'](_0x700387['shift']());}catch(_0x39a134){_0x700387['push'](_0x700387['shift']());}}}(a155_0x2806,0x79793));import a155_0x3b0fbc from'chalk';import a155_0x190b8e 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[a155_0x4705f5(0x204)](_0x206efb=>_0x206efb!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x581c38){const _0x383281=a155_0x4705f5,_0x1b9832=[];for(const _0x5ca1a2 of Object[_0x383281(0x212)](CORE_IDE_CONFIGS)){if(_0x5ca1a2['files'])for(const _0x29caa4 of _0x5ca1a2[_0x383281(0x236)]){_0x1b9832[_0x383281(0x1f5)](resolve(_0x581c38,_0x29caa4['path']));}}return _0x1b9832;}function analyse(_0x484e81){const _0x52f2b5=a155_0x4705f5;let _0x6ecfd2=null;const _0x526432=resolve(_0x484e81,NEW_CONFIG_NAME),_0x52af8d=existsSync(_0x526432);for(const _0xa2217e of LEGACY_CONFIG_NAMES){const _0x71e4aa=resolve(_0x484e81,_0xa2217e);if(existsSync(_0x71e4aa)){const _0x1374cc=readConfigFile(_0x71e4aa),_0x206b75=Object[_0x52f2b5(0x208)](_0x1374cc)[_0x52f2b5(0x204)](_0x299216=>typeof _0x1374cc[_0x299216]!==_0x52f2b5(0x1e2));_0x6ecfd2={'oldPath':_0x71e4aa,'hasNewConfig':_0x52af8d,'fields':_0x206b75};break;}}const _0x182bf2=[],_0x3cf6f0=resolve(_0x484e81,_0x52f2b5(0x1d7));if(existsSync(_0x3cf6f0))_0x182bf2['push'](_0x3cf6f0);const _0x4b3dc6=resolve(_0x484e81,_0x52f2b5(0x240));if(existsSync(_0x4b3dc6))_0x182bf2[_0x52f2b5(0x1f5)](_0x4b3dc6);const _0x5853f4=resolve(_0x484e81,_0x52f2b5(0x234));if(existsSync(_0x5853f4))_0x182bf2[_0x52f2b5(0x1f5)](_0x5853f4);for(const _0x503ae5 of collectIdeSkillFiles(_0x484e81)){if(existsSync(_0x503ae5))_0x182bf2[_0x52f2b5(0x1f5)](_0x503ae5);}let _0x2dbbd7=null;const _0xbb5757=resolve(_0x484e81,'.cursor/mcp.json');if(existsSync(_0xbb5757))try{const _0x3cb5a2=JSON[_0x52f2b5(0x229)](readFileSync(_0xbb5757,_0x52f2b5(0x252)));if(_0x3cb5a2?.[_0x52f2b5(0x248)]&&typeof _0x3cb5a2['mcpServers']===_0x52f2b5(0x21e)){const _0x2da1b7=[];for(const [_0x8aeac3,_0x7db0f3]of Object[_0x52f2b5(0x1e9)](_0x3cb5a2[_0x52f2b5(0x248)])){const _0x40bfc0=_0x7db0f3;_0x40bfc0?.[_0x52f2b5(0x223)]&&Array['isArray'](_0x40bfc0[_0x52f2b5(0x223)])&&_0x40bfc0[_0x52f2b5(0x223)][_0x52f2b5(0x239)](_0x44683b=>typeof _0x44683b===_0x52f2b5(0x1e3)&&_0x44683b[_0x52f2b5(0x1ef)](_0x52f2b5(0x24e)))&&_0x2da1b7['push'](_0x8aeac3);}_0x2da1b7[_0x52f2b5(0x224)]>0x0&&(_0x2dbbd7={'path':_0xbb5757,'keys':_0x2da1b7});}}catch{}const _0x6653a3=_0x182bf2['length']>0x0||_0x6ecfd2!==null;let _0x4bec7a=null;const _0x18f90d=resolve(_0x484e81,_0x52f2b5(0x1da));if(existsSync(_0x18f90d))try{const _0x2c6b48=JSON[_0x52f2b5(0x229)](readFileSync(_0x18f90d,_0x52f2b5(0x252)));for(const _0x5275a8 of[_0x52f2b5(0x21d),_0x52f2b5(0x202)]){const _0x290d82=_0x2c6b48?.[_0x5275a8]?.[_0x52f2b5(0x211)];if(typeof _0x290d82===_0x52f2b5(0x1e3)){_0x290d82!==_0x52f2b5(0x228)&&(_0x4bec7a={'pkgPath':_0x18f90d,'currentVersion':_0x290d82,'field':_0x5275a8});break;}}}catch{}return{'configMigration':_0x6ecfd2,'oldArtifacts':_0x182bf2,'oldMcpConfig':_0x2dbbd7,'needsSkillSwap':_0x6653a3,'sdkUpgrade':_0x4bec7a};}function printReport(_0x49f63c){const _0x69174b=a155_0x4705f5,{configMigration:_0x15d277,oldArtifacts:_0x47a9fb,oldMcpConfig:_0x349572,needsSkillSwap:_0xab4139}=_0x49f63c;console[_0x69174b(0x203)](''),console['log'](a155_0x3b0fbc[_0x69174b(0x22e)](_0x69174b(0x231))),console['log']('');_0x15d277?(console[_0x69174b(0x203)](a155_0x3b0fbc[_0x69174b(0x242)](_0x69174b(0x1d5))+('\x20\x20'+a155_0x3b0fbc[_0x69174b(0x1d2)](_0x15d277[_0x69174b(0x222)]))),console[_0x69174b(0x203)](_0x69174b(0x210)+(_0x15d277[_0x69174b(0x1de)]?a155_0x3b0fbc[_0x69174b(0x1f3)]('already\x20exists\x20(will\x20merge)'):a155_0x3b0fbc['gray']('not\x20found\x20(will\x20create)'))),console[_0x69174b(0x203)]('\x20\x20Fields\x20to\x20migrate:\x20'+_0x15d277[_0x69174b(0x23b)][_0x69174b(0x23c)](',\x20')),console[_0x69174b(0x203)](_0x69174b(0x1d9))):console['log'](a155_0x3b0fbc[_0x69174b(0x242)](_0x69174b(0x1d5))+'\x20\x20'+a155_0x3b0fbc[_0x69174b(0x20b)](_0x69174b(0x219)));console['log']('');if(_0x47a9fb['length']>0x0){console['log'](a155_0x3b0fbc[_0x69174b(0x242)](_0x69174b(0x21c)));for(const _0x532019 of _0x47a9fb){console[_0x69174b(0x203)]('\x20\x20'+a155_0x3b0fbc[_0x69174b(0x206)](_0x69174b(0x1cf))+'\x20\x20'+_0x532019);}console[_0x69174b(0x203)](_0x69174b(0x1d8));}else console['log'](a155_0x3b0fbc[_0x69174b(0x242)](_0x69174b(0x21c))+'\x20\x20'+a155_0x3b0fbc['gray'](_0x69174b(0x1f6)));console['log']('');_0x349572?(console[_0x69174b(0x203)](a155_0x3b0fbc[_0x69174b(0x242)]('MCP\x20config:')+('\x20\x20'+a155_0x3b0fbc[_0x69174b(0x1d2)](_0x349572['path'])+_0x69174b(0x227)+_0x349572[_0x69174b(0x208)][_0x69174b(0x23c)](',\x20'))),console['log'](_0x69174b(0x1e8))):console[_0x69174b(0x203)](a155_0x3b0fbc['cyan'](_0x69174b(0x1d1))+'\x20\x20'+a155_0x3b0fbc[_0x69174b(0x20b)](_0x69174b(0x249)));console[_0x69174b(0x203)](''),console[_0x69174b(0x203)](a155_0x3b0fbc[_0x69174b(0x242)]('Skill\x20swap:')+('\x20\x20'+(_0xab4139?a155_0x3b0fbc['yellow'](_0x69174b(0x1ea)):a155_0x3b0fbc[_0x69174b(0x1f3)]('not\x20needed'))));_0xab4139&&console[_0x69174b(0x203)]('\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x69174b(0x203)]('');if(_0x49f63c[_0x69174b(0x1fd)]){const {currentVersion:_0x11f1e1,field:_0x7ddae4,pkgPath:_0x1376e4}=_0x49f63c[_0x69174b(0x1fd)];console[_0x69174b(0x203)](a155_0x3b0fbc[_0x69174b(0x242)](_0x69174b(0x246))+('\x20\x20'+a155_0x3b0fbc[_0x69174b(0x1d2)](_0x1376e4))),console[_0x69174b(0x203)](_0x69174b(0x20e)+_0x7ddae4+':\x20'+a155_0x3b0fbc[_0x69174b(0x1d2)](_0x11f1e1)+'\x20→\x20'+a155_0x3b0fbc[_0x69174b(0x1f3)](_0x69174b(0x228))),console[_0x69174b(0x203)](_0x69174b(0x237));}else console['log'](a155_0x3b0fbc[_0x69174b(0x242)](_0x69174b(0x246))+'\x20\x20'+a155_0x3b0fbc['gray'](_0x69174b(0x241)));console['log']('');}function execConfigMigration(_0x5bac63,_0x10c112){const _0x5ad91b=a155_0x4705f5,{configMigration:_0x28727c}=_0x5bac63;if(!_0x28727c?.['oldPath'])return{'step':0x1,'label':_0x5ad91b(0x214),'ok':!![],'detail':_0x5ad91b(0x24b)};const _0x177743=readConfigFile(_0x28727c[_0x5ad91b(0x222)]),_0x4f848d=resolve(_0x10c112,NEW_CONFIG_NAME),_0x1a69b5=_0x28727c[_0x5ad91b(0x1de)]?readConfigFile(_0x4f848d):{};for(const [_0x46868f,_0x2b1c8a]of Object[_0x5ad91b(0x1e9)](_0x177743)){!(_0x46868f in _0x1a69b5)&&(_0x1a69b5[_0x46868f]=_0x2b1c8a);}writeConfigFile(_0x4f848d,_0x1a69b5);const _0x3ef69b=_0x28727c[_0x5ad91b(0x222)]+_0x5ad91b(0x1db);return renameSync(_0x28727c['oldPath'],_0x3ef69b),{'step':0x1,'label':'Config\x20migration','ok':!![],'detail':_0x28727c[_0x5ad91b(0x222)]+_0x5ad91b(0x1e5)+_0x4f848d+_0x5ad91b(0x1e1)+_0x3ef69b+')'};}function a155_0x2806(){const _0x3c8e88=['.lovrabet','\x20\x20Action:\x20delete','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','package.json','.bak','80VbVNlM','11cKFNrs','hasNewConfig','CANCEL','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','\x20(backup:\x20','undefined','string','\x20\x20bun\x20install','\x20→\x20','48610yyyMTW','oldMcpConfig','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','entries','needed','112618VyalBC','stringify','\x20removed\x20(','FAIL','includes','no\x20matching\x20entry\x20found','succeed','Remove\x20legacy\x20artifacts','green','Proceed\x20with\x20upgrade?','push','none\x20found','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','isArray','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','failed','Clean\x20MCP\x20config','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','sdkUpgrade','[\x22@lovrabet/sdk\x22]:\x20','Upgrade\x20@lovrabet/sdk','375644LjzDdt','removed\x20','devDependencies','log','filter','1387645NnfNxP','red','Remove\x20old\x20skill','keys','Upgrade\x20cancelled.','fail','gray','start','white','\x20\x20Current\x20version\x20in\x20','\x20\x20\x20\x20\x20\x20\x20','\x20\x20New\x20config\x20(.rabetbase.json):\x20','@lovrabet/sdk','values','skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)','Config\x20migration','Step\x205/7:\x20Removing\x20old\x20skill...','yes','\x20→\x20latest','No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.','no\x20legacy\x20config\x20found','oldArtifacts','Step\x204/7:\x20MCP\x20config\x20—\x20','Legacy\x20artifacts:','dependencies','object','exit\x20','Upgrade\x20completed\x20successfully!','\x20removed','oldPath','args','length','\x20\x20Step\x20','\x20\x20#\x20or','\x20→\x20keys:\x20','latest','parse','error','cwd','83105ISRCij','3838650BVJOxP','bold','skipped','Step\x204/7:\x20Cleaning\x20MCP\x20config...','===\x20Upgrade\x20Analysis\x20===','Remove\x20.lovrabet/','lovrabet/lovrabet-skill\x20removed','.claude/skills/lovrabet','\x20\x20npm\x20install','files','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','configMigration','some','513603bjlImo','fields','join','detail','12elncTu','needsSkillSwap','.cursor/rules/lovrabet_rules.mdc','not\x20found\x20or\x20already\x20at\x20latest','cyan','2651ddKBDw','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','message','@lovrabet/sdk:','status','mcpServers','no\x20legacy\x20entry','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','skipped\x20(no\x20legacy\x20config)','path','lovrabet/rabetbase\x20installed\x20globally','@lovrabet/dataset-mcp-server','info','Step\x206/7:\x20Installing\x20new\x20skill...','Install\x20new\x20skill','utf8','Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','FOUND','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','MCP\x20config:','yellow','isDirectory','Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','Config\x20file:','done'];a155_0x2806=function(){return _0x3c8e88;};return a155_0x2806();}function execRemoveOldArtifacts(_0x1c75d0){const _0x2974dc=a155_0x4705f5,_0x336d6a=[];for(const _0x571c91 of _0x1c75d0){try{if(!existsSync(_0x571c91))continue;const _0x423ea2=tryStat(_0x571c91);_0x423ea2?.[_0x2974dc(0x1d3)]()?rmSync(_0x571c91,{'recursive':!![],'force':!![]}):unlinkSync(_0x571c91);}catch(_0x10cf08){_0x336d6a[_0x2974dc(0x1f5)](_0x571c91+':\x20'+_0x10cf08[_0x2974dc(0x245)]);}}return{'step':0x3,'label':_0x2974dc(0x1f2),'ok':_0x336d6a[_0x2974dc(0x224)]===0x0,'detail':_0x336d6a[_0x2974dc(0x224)]>0x0?_0x1c75d0[_0x2974dc(0x224)]-_0x336d6a[_0x2974dc(0x224)]+'/'+_0x1c75d0[_0x2974dc(0x224)]+_0x2974dc(0x1ed)+_0x336d6a[_0x2974dc(0x23c)](';\x20')+')':_0x1c75d0[_0x2974dc(0x224)]+_0x2974dc(0x221)};}function execCleanMcp(_0x2eb49f){const _0x3d651f=a155_0x4705f5;if(!_0x2eb49f[_0x3d651f(0x1e7)])return{'step':0x4,'label':_0x3d651f(0x1fb),'ok':!![],'detail':_0x3d651f(0x22f)};try{const _0x5a56e3=readFileSync(_0x2eb49f[_0x3d651f(0x1e7)]['path'],_0x3d651f(0x252)),_0x1a8d36=JSON[_0x3d651f(0x229)](_0x5a56e3);if(_0x1a8d36?.['mcpServers']&&typeof _0x1a8d36['mcpServers']==='object'){const _0x5398e9=[];for(const [_0x5f4915,_0x2126ac]of Object['entries'](_0x1a8d36['mcpServers'])){_0x2126ac?.['args']&&Array[_0x3d651f(0x1f8)](_0x2126ac[_0x3d651f(0x223)])&&_0x2126ac[_0x3d651f(0x223)]['some'](_0x5deddf=>typeof _0x5deddf==='string'&&_0x5deddf[_0x3d651f(0x1ef)](_0x3d651f(0x24e)))&&_0x5398e9[_0x3d651f(0x1f5)](_0x5f4915);}for(const _0xc25bcd of _0x5398e9){delete _0x1a8d36['mcpServers'][_0xc25bcd];}return _0x5398e9[_0x3d651f(0x224)]>0x0&&writeFileSync(_0x2eb49f[_0x3d651f(0x1e7)]['path'],JSON[_0x3d651f(0x1ec)](_0x1a8d36,null,0x2)+'\x0a',_0x3d651f(0x252)),{'step':0x4,'label':_0x3d651f(0x1fb),'ok':!![],'detail':_0x3d651f(0x201)+_0x5398e9[_0x3d651f(0x23c)](',\x20')+'\x20from\x20'+_0x2eb49f[_0x3d651f(0x1e7)][_0x3d651f(0x24c)]};}return{'step':0x4,'label':_0x3d651f(0x1fb),'ok':!![],'detail':_0x3d651f(0x1f0)};}catch(_0x3b19b4){return{'step':0x4,'label':'Clean\x20MCP\x20config','ok':![],'detail':_0x3b19b4[_0x3d651f(0x245)]};}}function a155_0x5ba0(_0x2a3f8b,_0x50b872){_0x2a3f8b=_0x2a3f8b-0x1cf;const _0x280601=a155_0x2806();let _0x5ba0f7=_0x280601[_0x2a3f8b];return _0x5ba0f7;}function execSkillsRemove(_0x24b048,_0x332bba){const _0x2a5ff5=a155_0x4705f5,_0x3d38b3=runNpxSkillsRemove(_0x24b048,{'stdio':'inherit','yes':_0x332bba});return{'step':0x5,'label':_0x2a5ff5(0x207),'ok':_0x3d38b3['ok'],'detail':_0x3d38b3['ok']?_0x2a5ff5(0x233):_0x3d38b3[_0x2a5ff5(0x22a)]??_0x2a5ff5(0x21f)+_0x3d38b3['status']};}function execSkillsAdd(_0x58a051,_0x8c78ef){const _0x5e4594=a155_0x4705f5,_0x26b528=runNpxSkillsAddGlobal(_0x58a051,'lovrabet/rabetbase',{'stdio':'inherit','yes':_0x8c78ef});return{'step':0x6,'label':_0x5e4594(0x251),'ok':_0x26b528['ok'],'detail':_0x26b528['ok']?_0x5e4594(0x24d):_0x26b528[_0x5e4594(0x22a)]??_0x5e4594(0x21f)+_0x26b528[_0x5e4594(0x247)]};}function execUpgradeSdk(_0x1d05dd){const _0x39d817=a155_0x4705f5;if(!_0x1d05dd[_0x39d817(0x1fd)])return{'step':0x7,'label':_0x39d817(0x1ff),'ok':!![],'detail':_0x39d817(0x213)};const {pkgPath:_0x1cf89e,currentVersion:_0x4ab820,field:_0x8ef9d4}=_0x1d05dd['sdkUpgrade'];try{const _0x5a7967=readFileSync(_0x1cf89e,_0x39d817(0x252)),_0x33916f=JSON[_0x39d817(0x229)](_0x5a7967);return _0x33916f[_0x8ef9d4][_0x39d817(0x211)]=_0x39d817(0x228),writeFileSync(_0x1cf89e,JSON[_0x39d817(0x1ec)](_0x33916f,null,0x2)+'\x0a',_0x39d817(0x252)),{'step':0x7,'label':_0x39d817(0x1ff),'ok':!![],'detail':_0x8ef9d4+_0x39d817(0x1fe)+_0x4ab820+_0x39d817(0x217)};}catch(_0xf038d1){return{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':![],'detail':_0xf038d1[_0x39d817(0x245)]};}}function tryStat(_0x2eefe6){try{return statSync(_0x2eefe6);}catch{return undefined;}}function printSummary(_0x43f961){const _0x2ad75e=a155_0x4705f5;console[_0x2ad75e(0x203)](''),console[_0x2ad75e(0x203)](a155_0x3b0fbc[_0x2ad75e(0x22e)]('===\x20Upgrade\x20Summary\x20===')),console[_0x2ad75e(0x203)]('');for(const _0x49db30 of _0x43f961){const _0x4dada8=_0x49db30['ok']?a155_0x3b0fbc[_0x2ad75e(0x1f3)]('OK'):a155_0x3b0fbc[_0x2ad75e(0x206)](_0x2ad75e(0x1ee));console['log']('\x20\x20'+_0x4dada8+_0x2ad75e(0x225)+_0x49db30['step']+':\x20'+_0x49db30['label']);if(_0x49db30['detail'])console[_0x2ad75e(0x203)](_0x2ad75e(0x20f)+a155_0x3b0fbc[_0x2ad75e(0x20b)](_0x49db30['detail']));}console[_0x2ad75e(0x203)]('');}export async function upgradeApp(_0x3e0685,_0x3841c5){const _0x37810b=a155_0x4705f5,_0x19332d=process[_0x37810b(0x22b)](),_0x278d39=analyse(_0x19332d),_0x3e6ff1=!_0x278d39[_0x37810b(0x238)]&&_0x278d39['oldArtifacts'][_0x37810b(0x224)]===0x0&&!_0x278d39[_0x37810b(0x1e7)]&&!_0x278d39[_0x37810b(0x23f)]&&!_0x278d39[_0x37810b(0x1fd)];if(_0x3e6ff1){console[_0x37810b(0x203)](a155_0x3b0fbc['green'](_0x37810b(0x218)));return;}printReport(_0x278d39);const _0x257092=!!(_0x3841c5[_0x37810b(0x216)]||_0x3841c5['Y']||_0x3e0685);if(!_0x257092)try{const _0x11db57=await askConfirm(_0x37810b(0x1f4));if(!_0x11db57){console[_0x37810b(0x203)](a155_0x3b0fbc['gray'](_0x37810b(0x209)));return;}}catch(_0x4405f3){if(_0x4405f3?.[_0x37810b(0x245)]===_0x37810b(0x1df)){console[_0x37810b(0x203)](a155_0x3b0fbc[_0x37810b(0x20b)]('Upgrade\x20cancelled.'));return;}throw _0x4405f3;}const _0x1f25d3=[],_0x303c13=a155_0x190b8e({'text':'Step\x201/7:\x20Migrating\x20config...','color':_0x37810b(0x242)})[_0x37810b(0x20c)](),_0x3069c0=execConfigMigration(_0x278d39,_0x19332d);_0x1f25d3[_0x37810b(0x1f5)](_0x3069c0),_0x303c13[_0x3069c0['ok']?_0x37810b(0x1f1):_0x37810b(0x20a)]('Step\x201/7:\x20Config\x20migration\x20—\x20'+(_0x3069c0[_0x37810b(0x23d)]??(_0x3069c0['ok']?_0x37810b(0x1d6):_0x37810b(0x1fa))));const _0x70063f=resolve(_0x19332d,_0x37810b(0x1d7)),_0x4848f4=a155_0x190b8e({'text':_0x37810b(0x1d0),'color':_0x37810b(0x242)})[_0x37810b(0x20c)]();if(existsSync(_0x70063f))try{rmSync(_0x70063f,{'recursive':!![],'force':!![]}),_0x4848f4[_0x37810b(0x1f1)](_0x37810b(0x244)),_0x1f25d3['push']({'step':0x2,'label':_0x37810b(0x232),'ok':!![]});}catch(_0x2f7147){_0x4848f4['fail']('Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20'+_0x2f7147['message']),_0x1f25d3[_0x37810b(0x1f5)]({'step':0x2,'label':_0x37810b(0x232),'ok':![],'detail':_0x2f7147[_0x37810b(0x245)]});}else _0x4848f4[_0x37810b(0x24f)](_0x37810b(0x1f9)),_0x1f25d3['push']({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![],'detail':_0x37810b(0x22f)});const _0x329b05=a155_0x190b8e({'text':_0x37810b(0x1d4),'color':_0x37810b(0x242)})[_0x37810b(0x20c)](),_0x2543d1=execRemoveOldArtifacts(_0x278d39[_0x37810b(0x21a)]);_0x1f25d3['push'](_0x2543d1),_0x329b05[_0x2543d1['ok']?_0x37810b(0x1f1):_0x37810b(0x20a)]('Step\x203/7:\x20Legacy\x20artifacts\x20—\x20'+(_0x2543d1['detail']??(_0x2543d1['ok']?_0x37810b(0x1d6):'failed')));const _0x243b6a=a155_0x190b8e({'text':_0x37810b(0x230),'color':'cyan'})[_0x37810b(0x20c)](),_0x19f50c=execCleanMcp(_0x278d39);_0x1f25d3[_0x37810b(0x1f5)](_0x19f50c),_0x243b6a[_0x19f50c['ok']?_0x37810b(0x1f1):_0x37810b(0x20a)](_0x37810b(0x21b)+(_0x19f50c[_0x37810b(0x23d)]??(_0x19f50c['ok']?_0x37810b(0x1d6):_0x37810b(0x1fa))));const _0x2d73b4=a155_0x190b8e({'text':_0x37810b(0x215),'color':_0x37810b(0x242)})[_0x37810b(0x20c)](),_0x1cfa80=execSkillsRemove(_0x19332d,_0x257092);_0x1f25d3[_0x37810b(0x1f5)](_0x1cfa80),_0x2d73b4[_0x1cfa80['ok']?_0x37810b(0x1f1):'fail'](_0x37810b(0x253)+(_0x1cfa80[_0x37810b(0x23d)]??(_0x1cfa80['ok']?'done':_0x37810b(0x1fa))));const _0x24519e=a155_0x190b8e({'text':_0x37810b(0x250),'color':_0x37810b(0x242)})[_0x37810b(0x20c)](),_0x35c87b=execSkillsAdd(_0x19332d,_0x257092);_0x1f25d3[_0x37810b(0x1f5)](_0x35c87b),_0x24519e[_0x35c87b['ok']?_0x37810b(0x1f1):_0x37810b(0x20a)](_0x37810b(0x1f7)+(_0x35c87b[_0x37810b(0x23d)]??(_0x35c87b['ok']?_0x37810b(0x1d6):_0x37810b(0x1fa))));const _0x2fc66d=a155_0x190b8e({'text':_0x37810b(0x1e0),'color':_0x37810b(0x242)})['start'](),_0x42e290=execUpgradeSdk(_0x278d39);_0x1f25d3[_0x37810b(0x1f5)](_0x42e290),_0x2fc66d[_0x42e290['ok']?_0x37810b(0x1f1):_0x37810b(0x20a)](_0x37810b(0x24a)+(_0x42e290[_0x37810b(0x23d)]??(_0x42e290['ok']?_0x37810b(0x1d6):'failed'))),printSummary(_0x1f25d3);const _0x314478=_0x1f25d3[_0x37810b(0x239)](_0x3de35a=>!_0x3de35a['ok']);_0x314478?console[_0x37810b(0x203)](a155_0x3b0fbc[_0x37810b(0x1d2)]('Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.')):console['log'](a155_0x3b0fbc['green'](_0x37810b(0x220))),_0x42e290['ok']&&_0x278d39[_0x37810b(0x1fd)]&&(console[_0x37810b(0x203)](''),console['log'](a155_0x3b0fbc[_0x37810b(0x22e)][_0x37810b(0x242)](_0x37810b(0x1fc))),console[_0x37810b(0x203)](a155_0x3b0fbc[_0x37810b(0x242)]('Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:')),console[_0x37810b(0x203)](''),console['log'](a155_0x3b0fbc['white'](_0x37810b(0x235))),console['log'](a155_0x3b0fbc[_0x37810b(0x20d)](_0x37810b(0x226))),console[_0x37810b(0x203)](a155_0x3b0fbc['white'](_0x37810b(0x1e4))),console[_0x37810b(0x203)](''));}
|
|
1
|
+
(function(_0x2ca04b,_0x4d6252){const _0x4f1a2b=a156_0x49ae,_0x2cd3f1=_0x2ca04b();while(!![]){try{const _0x4efd99=-parseInt(_0x4f1a2b(0x113))/0x1+-parseInt(_0x4f1a2b(0x10f))/0x2+-parseInt(_0x4f1a2b(0x116))/0x3*(-parseInt(_0x4f1a2b(0xc6))/0x4)+parseInt(_0x4f1a2b(0xb4))/0x5+parseInt(_0x4f1a2b(0xf2))/0x6+parseInt(_0x4f1a2b(0xe3))/0x7*(parseInt(_0x4f1a2b(0x11c))/0x8)+-parseInt(_0x4f1a2b(0xea))/0x9*(parseInt(_0x4f1a2b(0x107))/0xa);if(_0x4efd99===_0x4d6252)break;else _0x2cd3f1['push'](_0x2cd3f1['shift']());}catch(_0x3ab2a7){_0x2cd3f1['push'](_0x2cd3f1['shift']());}}}(a156_0x5856,0x4dffa));import a156_0x410482 from'chalk';import a156_0x2ac73f 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';function a156_0x5856(){const _0x22359a=['Step\x205/7:\x20Remove\x20old\x20skill\x20—\x20','532720CjeFeg','status','Remove\x20legacy\x20artifacts','CANCEL','keys','message','done','yes','189152aUDJEc','\x20\x20Step\x20','length','latest','193731RyXPft','red','skipped','6ArFdxu','no\x20legacy\x20config\x20found','\x20\x20New\x20config\x20(.rabetbase.json):\x20','\x20removed','package.json','Upgrade\x20completed\x20successfully!','40xlIHsw','fail','isArray','Step\x207/7:\x20Upgrading\x20@lovrabet/sdk\x20in\x20package.json...','sdkUpgrade','hasNewConfig','.cursor/rules/lovrabet_rules.mdc','needed','info','\x20\x20Action:\x20migrate\x20→\x20backup\x20old\x20as\x20.bak','oldMcpConfig','args','Step\x201/7:\x20Migrating\x20config...','oldPath','path','no\x20matching\x20entry\x20found','Remove\x20old\x20skill','MCP\x20config:','@lovrabet/dataset-mcp-server','Upgrade\x20cancelled.','green','dependencies','@lovrabet/sdk:','cyan','detail','FOUND','Step\x202/7:\x20.lovrabet/\x20directory\x20removed','gray','files','Config\x20file:','oldArtifacts','.bak','filter','lovrabet/rabetbase\x20installed\x20globally','2225210KIIzFf','configMigration','cwd','[\x22@lovrabet/sdk\x22]:\x20','\x20\x20Action:\x20remove\x20entries\x20containing\x20@lovrabet/dataset-mcp-server','succeed','Remove\x20.lovrabet/','step','Please\x20re-install\x20dependencies\x20to\x20apply\x20the\x20change:','entries','@lovrabet/sdk','@lovrabet/sdk\x20has\x20been\x20updated\x20to\x20latest\x20in\x20package.json.','Step\x205/7:\x20Removing\x20old\x20skill...','.claude/skills/lovrabet','Step\x207/7:\x20@lovrabet/sdk\x20—\x20','error','\x20\x20Current\x20version\x20in\x20','\x20\x20Action:\x20delete','1223132hszjUr','yellow','\x20from\x20','label','not\x20found\x20(will\x20create)','Config\x20migration','Step\x204/7:\x20Cleaning\x20MCP\x20config...','.lovrabet','===\x20Upgrade\x20Summary\x20===','push','removed\x20','Skill\x20swap:','Legacy\x20artifacts:','white','lovrabet/lovrabet-skill\x20removed','lovrabet/rabetbase','.cursor/mcp.json','Step\x206/7:\x20Installing\x20new\x20skill...','\x20\x20npm\x20install','log','Proceed\x20with\x20upgrade?','not\x20found\x20or\x20already\x20at\x20latest','failed','\x20→\x20','Step\x203/7:\x20Removing\x20legacy\x20IDE\x20skill\x20files...','parse','Some\x20steps\x20failed.\x20Check\x20the\x20summary\x20above\x20for\x20details.','mcpServers','Step\x202/7:\x20Removing\x20.lovrabet/\x20directory...','473466QhsYdc','\x20\x20#\x20or','no\x20legacy\x20entry','Step\x203/7:\x20Legacy\x20artifacts\x20—\x20','\x20\x20Action:\x20remove\x20old\x20lovrabet/lovrabet-skill,\x20add\x20via\x20`','start','Upgrade\x20@lovrabet/sdk','135vCsJVn','none\x20found','object','inherit','already\x20exists\x20(will\x20merge)','Step\x204/7:\x20MCP\x20config\x20—\x20','Step\x202/7:\x20.lovrabet/\x20not\x20found,\x20skipped','Clean\x20MCP\x20config','72426jRhaFR','stringify','Step\x206/7:\x20Install\x20new\x20skill\x20—\x20','\x20\x20Action:\x20update\x20package.json\x20(you\x20will\x20need\x20to\x20re-run\x20install)','undefined','\x20removed\x20(','isDirectory','string','utf8','bold','\x20→\x20keys:\x20','some','skipped\x20(not\x20found\x20or\x20already\x20at\x20latest)','\x20\x20bun\x20install','includes','not\x20needed','FAIL','\x20\x20\x20\x20\x20\x20\x20','Install\x20new\x20skill','join'];a156_0x5856=function(){return _0x22359a;};return a156_0x5856();}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['filter'](_0x3fee1a=>_0x3fee1a!==NEW_CONFIG_NAME);function collectIdeSkillFiles(_0x288e9c){const _0x5cee15=a156_0x49ae,_0x3d30ae=[];for(const _0x50ec84 of Object['values'](CORE_IDE_CONFIGS)){if(_0x50ec84[_0x5cee15(0xae)])for(const _0x281267 of _0x50ec84['files']){_0x3d30ae[_0x5cee15(0xcf)](resolve(_0x288e9c,_0x281267[_0x5cee15(0xa0)]));}}return _0x3d30ae;}function analyse(_0x1ffcb6){const _0x98f3b1=a156_0x49ae;let _0x1ae682=null;const _0x452a6d=resolve(_0x1ffcb6,NEW_CONFIG_NAME),_0x3cd8ad=existsSync(_0x452a6d);for(const _0xfd3fcf of LEGACY_CONFIG_NAMES){const _0x1b5308=resolve(_0x1ffcb6,_0xfd3fcf);if(existsSync(_0x1b5308)){const _0x282c41=readConfigFile(_0x1b5308),_0x45c243=Object[_0x98f3b1(0x10b)](_0x282c41)[_0x98f3b1(0xb2)](_0x44e131=>typeof _0x282c41[_0x44e131]!==_0x98f3b1(0xf6));_0x1ae682={'oldPath':_0x1b5308,'hasNewConfig':_0x3cd8ad,'fields':_0x45c243};break;}}const _0x542c49=[],_0x3ad9a4=resolve(_0x1ffcb6,_0x98f3b1(0xcd));if(existsSync(_0x3ad9a4))_0x542c49[_0x98f3b1(0xcf)](_0x3ad9a4);const _0x283d14=resolve(_0x1ffcb6,_0x98f3b1(0x122));if(existsSync(_0x283d14))_0x542c49[_0x98f3b1(0xcf)](_0x283d14);const _0x571c43=resolve(_0x1ffcb6,_0x98f3b1(0xc1));if(existsSync(_0x571c43))_0x542c49['push'](_0x571c43);for(const _0x17c566 of collectIdeSkillFiles(_0x1ffcb6)){if(existsSync(_0x17c566))_0x542c49[_0x98f3b1(0xcf)](_0x17c566);}let _0x527660=null;const _0x54eacb=resolve(_0x1ffcb6,_0x98f3b1(0xd6));if(existsSync(_0x54eacb))try{const _0x431724=JSON[_0x98f3b1(0xdf)](readFileSync(_0x54eacb,_0x98f3b1(0xfa)));if(_0x431724?.[_0x98f3b1(0xe1)]&&typeof _0x431724[_0x98f3b1(0xe1)]==='object'){const _0x54c933=[];for(const [_0x134ce4,_0x5bdc94]of Object[_0x98f3b1(0xbd)](_0x431724['mcpServers'])){const _0x439eb8=_0x5bdc94;_0x439eb8?.['args']&&Array[_0x98f3b1(0x11e)](_0x439eb8[_0x98f3b1(0x9d)])&&_0x439eb8[_0x98f3b1(0x9d)][_0x98f3b1(0xfd)](_0x2baa39=>typeof _0x2baa39===_0x98f3b1(0xf9)&&_0x2baa39[_0x98f3b1(0x100)]('@lovrabet/dataset-mcp-server'))&&_0x54c933[_0x98f3b1(0xcf)](_0x134ce4);}_0x54c933[_0x98f3b1(0x111)]>0x0&&(_0x527660={'path':_0x54eacb,'keys':_0x54c933});}}catch{}const _0x118daa=_0x542c49[_0x98f3b1(0x111)]>0x0||_0x1ae682!==null;let _0x322f2a=null;const _0x4c37cc=resolve(_0x1ffcb6,_0x98f3b1(0x11a));if(existsSync(_0x4c37cc))try{const _0x5a35f0=JSON[_0x98f3b1(0xdf)](readFileSync(_0x4c37cc,'utf8'));for(const _0x2c16a6 of[_0x98f3b1(0xa7),'devDependencies']){const _0x2a8909=_0x5a35f0?.[_0x2c16a6]?.[_0x98f3b1(0xbe)];if(typeof _0x2a8909===_0x98f3b1(0xf9)){_0x2a8909!==_0x98f3b1(0x112)&&(_0x322f2a={'pkgPath':_0x4c37cc,'currentVersion':_0x2a8909,'field':_0x2c16a6});break;}}}catch{}return{'configMigration':_0x1ae682,'oldArtifacts':_0x542c49,'oldMcpConfig':_0x527660,'needsSkillSwap':_0x118daa,'sdkUpgrade':_0x322f2a};}function printReport(_0xaccc31){const _0x37c16b=a156_0x49ae,{configMigration:_0x237abd,oldArtifacts:_0x52d8e1,oldMcpConfig:_0x374886,needsSkillSwap:_0x551264}=_0xaccc31;console['log'](''),console[_0x37c16b(0xd9)](a156_0x410482[_0x37c16b(0xfb)]('===\x20Upgrade\x20Analysis\x20===')),console[_0x37c16b(0xd9)]('');_0x237abd?(console[_0x37c16b(0xd9)](a156_0x410482[_0x37c16b(0xa9)](_0x37c16b(0xaf))+('\x20\x20'+a156_0x410482[_0x37c16b(0xc7)](_0x237abd[_0x37c16b(0x9f)]))),console[_0x37c16b(0xd9)](_0x37c16b(0x118)+(_0x237abd['hasNewConfig']?a156_0x410482[_0x37c16b(0xa6)](_0x37c16b(0xee)):a156_0x410482[_0x37c16b(0xad)](_0x37c16b(0xca)))),console[_0x37c16b(0xd9)]('\x20\x20Fields\x20to\x20migrate:\x20'+_0x237abd['fields'][_0x37c16b(0x105)](',\x20')),console['log'](_0x37c16b(0x9b))):console['log'](a156_0x410482[_0x37c16b(0xa9)](_0x37c16b(0xaf))+'\x20\x20'+a156_0x410482[_0x37c16b(0xad)](_0x37c16b(0x117)));console[_0x37c16b(0xd9)]('');if(_0x52d8e1[_0x37c16b(0x111)]>0x0){console[_0x37c16b(0xd9)](a156_0x410482[_0x37c16b(0xa9)](_0x37c16b(0xd2)));for(const _0x21ac81 of _0x52d8e1){console[_0x37c16b(0xd9)]('\x20\x20'+a156_0x410482['red'](_0x37c16b(0xab))+'\x20\x20'+_0x21ac81);}console['log'](_0x37c16b(0xc5));}else console['log'](a156_0x410482[_0x37c16b(0xa9)]('Legacy\x20artifacts:')+'\x20\x20'+a156_0x410482[_0x37c16b(0xad)](_0x37c16b(0xeb)));console['log']('');_0x374886?(console[_0x37c16b(0xd9)](a156_0x410482[_0x37c16b(0xa9)](_0x37c16b(0xa3))+('\x20\x20'+a156_0x410482[_0x37c16b(0xc7)](_0x374886[_0x37c16b(0xa0)])+_0x37c16b(0xfc)+_0x374886[_0x37c16b(0x10b)][_0x37c16b(0x105)](',\x20'))),console['log'](_0x37c16b(0xb8))):console[_0x37c16b(0xd9)](a156_0x410482[_0x37c16b(0xa9)](_0x37c16b(0xa3))+'\x20\x20'+a156_0x410482[_0x37c16b(0xad)](_0x37c16b(0xe5)));console['log'](''),console[_0x37c16b(0xd9)](a156_0x410482['cyan'](_0x37c16b(0xd1))+('\x20\x20'+(_0x551264?a156_0x410482['yellow'](_0x37c16b(0x123)):a156_0x410482[_0x37c16b(0xa6)](_0x37c16b(0x101)))));_0x551264&&console['log'](_0x37c16b(0xe7)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE+'`');console[_0x37c16b(0xd9)]('');if(_0xaccc31[_0x37c16b(0x120)]){const {currentVersion:_0x47b8d5,field:_0x3d94d5,pkgPath:_0x1bad72}=_0xaccc31[_0x37c16b(0x120)];console[_0x37c16b(0xd9)](a156_0x410482[_0x37c16b(0xa9)](_0x37c16b(0xa8))+('\x20\x20'+a156_0x410482['yellow'](_0x1bad72))),console[_0x37c16b(0xd9)](_0x37c16b(0xc4)+_0x3d94d5+':\x20'+a156_0x410482[_0x37c16b(0xc7)](_0x47b8d5)+'\x20→\x20'+a156_0x410482[_0x37c16b(0xa6)](_0x37c16b(0x112))),console[_0x37c16b(0xd9)](_0x37c16b(0xf5));}else console[_0x37c16b(0xd9)](a156_0x410482[_0x37c16b(0xa9)](_0x37c16b(0xa8))+'\x20\x20'+a156_0x410482[_0x37c16b(0xad)](_0x37c16b(0xdb)));console[_0x37c16b(0xd9)]('');}function execConfigMigration(_0x2b09b0,_0x44453b){const _0x359e81=a156_0x49ae,{configMigration:_0x5d0e56}=_0x2b09b0;if(!_0x5d0e56?.[_0x359e81(0x9f)])return{'step':0x1,'label':_0x359e81(0xcb),'ok':!![],'detail':'skipped\x20(no\x20legacy\x20config)'};const _0x46efb0=readConfigFile(_0x5d0e56[_0x359e81(0x9f)]),_0x3c6fba=resolve(_0x44453b,NEW_CONFIG_NAME),_0x1a8da0=_0x5d0e56[_0x359e81(0x121)]?readConfigFile(_0x3c6fba):{};for(const [_0x200b63,_0x205184]of Object[_0x359e81(0xbd)](_0x46efb0)){!(_0x200b63 in _0x1a8da0)&&(_0x1a8da0[_0x200b63]=_0x205184);}writeConfigFile(_0x3c6fba,_0x1a8da0);const _0x1a19ce=_0x5d0e56[_0x359e81(0x9f)]+_0x359e81(0xb1);return renameSync(_0x5d0e56['oldPath'],_0x1a19ce),{'step':0x1,'label':_0x359e81(0xcb),'ok':!![],'detail':_0x5d0e56[_0x359e81(0x9f)]+_0x359e81(0xdd)+_0x3c6fba+'\x20(backup:\x20'+_0x1a19ce+')'};}function execRemoveOldArtifacts(_0x11a6b4){const _0x44d677=a156_0x49ae,_0xe50a99=[];for(const _0x3f50a2 of _0x11a6b4){try{if(!existsSync(_0x3f50a2))continue;const _0x479ddf=tryStat(_0x3f50a2);_0x479ddf?.[_0x44d677(0xf8)]()?rmSync(_0x3f50a2,{'recursive':!![],'force':!![]}):unlinkSync(_0x3f50a2);}catch(_0x240037){_0xe50a99[_0x44d677(0xcf)](_0x3f50a2+':\x20'+_0x240037['message']);}}return{'step':0x3,'label':_0x44d677(0x109),'ok':_0xe50a99[_0x44d677(0x111)]===0x0,'detail':_0xe50a99[_0x44d677(0x111)]>0x0?_0x11a6b4[_0x44d677(0x111)]-_0xe50a99[_0x44d677(0x111)]+'/'+_0x11a6b4[_0x44d677(0x111)]+_0x44d677(0xf7)+_0xe50a99[_0x44d677(0x105)](';\x20')+')':_0x11a6b4[_0x44d677(0x111)]+_0x44d677(0x119)};}function execCleanMcp(_0x5ac508){const _0x5672fa=a156_0x49ae;if(!_0x5ac508['oldMcpConfig'])return{'step':0x4,'label':_0x5672fa(0xf1),'ok':!![],'detail':'skipped'};try{const _0x126655=readFileSync(_0x5ac508[_0x5672fa(0x9c)][_0x5672fa(0xa0)],_0x5672fa(0xfa)),_0x193b97=JSON[_0x5672fa(0xdf)](_0x126655);if(_0x193b97?.['mcpServers']&&typeof _0x193b97[_0x5672fa(0xe1)]===_0x5672fa(0xec)){const _0x17b421=[];for(const [_0x3e6b68,_0xb7abb0]of Object[_0x5672fa(0xbd)](_0x193b97['mcpServers'])){_0xb7abb0?.[_0x5672fa(0x9d)]&&Array[_0x5672fa(0x11e)](_0xb7abb0[_0x5672fa(0x9d)])&&_0xb7abb0['args'][_0x5672fa(0xfd)](_0x182627=>typeof _0x182627===_0x5672fa(0xf9)&&_0x182627[_0x5672fa(0x100)](_0x5672fa(0xa4)))&&_0x17b421['push'](_0x3e6b68);}for(const _0x2b7634 of _0x17b421){delete _0x193b97['mcpServers'][_0x2b7634];}return _0x17b421[_0x5672fa(0x111)]>0x0&&writeFileSync(_0x5ac508['oldMcpConfig'][_0x5672fa(0xa0)],JSON['stringify'](_0x193b97,null,0x2)+'\x0a','utf8'),{'step':0x4,'label':_0x5672fa(0xf1),'ok':!![],'detail':_0x5672fa(0xd0)+_0x17b421[_0x5672fa(0x105)](',\x20')+_0x5672fa(0xc8)+_0x5ac508[_0x5672fa(0x9c)]['path']};}return{'step':0x4,'label':_0x5672fa(0xf1),'ok':!![],'detail':_0x5672fa(0xa1)};}catch(_0x59dd21){return{'step':0x4,'label':_0x5672fa(0xf1),'ok':![],'detail':_0x59dd21[_0x5672fa(0x10c)]};}}function execSkillsRemove(_0x153051,_0x3ebe12){const _0x48e05c=a156_0x49ae,_0xf0e986=runNpxSkillsRemove(_0x153051,{'stdio':_0x48e05c(0xed),'yes':_0x3ebe12});return{'step':0x5,'label':_0x48e05c(0xa2),'ok':_0xf0e986['ok'],'detail':_0xf0e986['ok']?_0x48e05c(0xd4):_0xf0e986['error']??'exit\x20'+_0xf0e986[_0x48e05c(0x108)]};}function execSkillsAdd(_0x1911cc,_0x26014d){const _0x150cd2=a156_0x49ae,_0x1110e4=runNpxSkillsAddGlobal(_0x1911cc,_0x150cd2(0xd5),{'stdio':_0x150cd2(0xed),'yes':_0x26014d});return{'step':0x6,'label':_0x150cd2(0x104),'ok':_0x1110e4['ok'],'detail':_0x1110e4['ok']?_0x150cd2(0xb3):_0x1110e4[_0x150cd2(0xc3)]??'exit\x20'+_0x1110e4[_0x150cd2(0x108)]};}function a156_0x49ae(_0x5db12e,_0x2d5601){_0x5db12e=_0x5db12e-0x9b;const _0x585686=a156_0x5856();let _0x49aebc=_0x585686[_0x5db12e];return _0x49aebc;}function execUpgradeSdk(_0x30daf7){const _0x5bb88a=a156_0x49ae;if(!_0x30daf7[_0x5bb88a(0x120)])return{'step':0x7,'label':_0x5bb88a(0xe9),'ok':!![],'detail':_0x5bb88a(0xfe)};const {pkgPath:_0x38983c,currentVersion:_0x201169,field:_0x3db0cc}=_0x30daf7[_0x5bb88a(0x120)];try{const _0x1214cd=readFileSync(_0x38983c,_0x5bb88a(0xfa)),_0x3e1ad0=JSON[_0x5bb88a(0xdf)](_0x1214cd);return _0x3e1ad0[_0x3db0cc]['@lovrabet/sdk']=_0x5bb88a(0x112),writeFileSync(_0x38983c,JSON[_0x5bb88a(0xf3)](_0x3e1ad0,null,0x2)+'\x0a',_0x5bb88a(0xfa)),{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':!![],'detail':_0x3db0cc+_0x5bb88a(0xb7)+_0x201169+'\x20→\x20latest'};}catch(_0x5ee2bd){return{'step':0x7,'label':'Upgrade\x20@lovrabet/sdk','ok':![],'detail':_0x5ee2bd[_0x5bb88a(0x10c)]};}}function tryStat(_0x2ca2ff){try{return statSync(_0x2ca2ff);}catch{return undefined;}}function printSummary(_0x2d106f){const _0xae89f=a156_0x49ae;console[_0xae89f(0xd9)](''),console[_0xae89f(0xd9)](a156_0x410482[_0xae89f(0xfb)](_0xae89f(0xce))),console[_0xae89f(0xd9)]('');for(const _0x1dead6 of _0x2d106f){const _0x43b5db=_0x1dead6['ok']?a156_0x410482['green']('OK'):a156_0x410482[_0xae89f(0x114)](_0xae89f(0x102));console['log']('\x20\x20'+_0x43b5db+_0xae89f(0x110)+_0x1dead6[_0xae89f(0xbb)]+':\x20'+_0x1dead6[_0xae89f(0xc9)]);if(_0x1dead6[_0xae89f(0xaa)])console[_0xae89f(0xd9)](_0xae89f(0x103)+a156_0x410482['gray'](_0x1dead6[_0xae89f(0xaa)]));}console[_0xae89f(0xd9)]('');}export async function upgradeApp(_0x276916,_0x336947){const _0x28ce7e=a156_0x49ae,_0x429dee=process[_0x28ce7e(0xb6)](),_0x1bbe87=analyse(_0x429dee),_0x4d6576=!_0x1bbe87[_0x28ce7e(0xb5)]&&_0x1bbe87[_0x28ce7e(0xb0)][_0x28ce7e(0x111)]===0x0&&!_0x1bbe87[_0x28ce7e(0x9c)]&&!_0x1bbe87['needsSkillSwap']&&!_0x1bbe87[_0x28ce7e(0x120)];if(_0x4d6576){console[_0x28ce7e(0xd9)](a156_0x410482[_0x28ce7e(0xa6)]('No\x20legacy\x20artifacts\x20found.\x20Your\x20project\x20is\x20already\x20up-to-date.'));return;}printReport(_0x1bbe87);const _0x429b86=!!(_0x336947[_0x28ce7e(0x10e)]||_0x336947['Y']||_0x276916);if(!_0x429b86)try{const _0x1c39bd=await askConfirm(_0x28ce7e(0xda));if(!_0x1c39bd){console['log'](a156_0x410482[_0x28ce7e(0xad)]('Upgrade\x20cancelled.'));return;}}catch(_0x5f5220){if(_0x5f5220?.['message']===_0x28ce7e(0x10a)){console[_0x28ce7e(0xd9)](a156_0x410482[_0x28ce7e(0xad)](_0x28ce7e(0xa5)));return;}throw _0x5f5220;}const _0x3c8f18=[],_0x4b2db2=a156_0x2ac73f({'text':_0x28ce7e(0x9e),'color':'cyan'})['start'](),_0x2ad095=execConfigMigration(_0x1bbe87,_0x429dee);_0x3c8f18[_0x28ce7e(0xcf)](_0x2ad095),_0x4b2db2[_0x2ad095['ok']?_0x28ce7e(0xb9):_0x28ce7e(0x11d)]('Step\x201/7:\x20Config\x20migration\x20—\x20'+(_0x2ad095[_0x28ce7e(0xaa)]??(_0x2ad095['ok']?_0x28ce7e(0x10d):_0x28ce7e(0xdc))));const _0x3d980a=resolve(_0x429dee,_0x28ce7e(0xcd)),_0x39492b=a156_0x2ac73f({'text':_0x28ce7e(0xe2),'color':_0x28ce7e(0xa9)})[_0x28ce7e(0xe8)]();if(existsSync(_0x3d980a))try{rmSync(_0x3d980a,{'recursive':!![],'force':!![]}),_0x39492b['succeed'](_0x28ce7e(0xac)),_0x3c8f18[_0x28ce7e(0xcf)]({'step':0x2,'label':_0x28ce7e(0xba),'ok':!![]});}catch(_0x5bf389){_0x39492b[_0x28ce7e(0x11d)]('Step\x202/7:\x20.lovrabet/\x20removal\x20failed\x20—\x20'+_0x5bf389[_0x28ce7e(0x10c)]),_0x3c8f18[_0x28ce7e(0xcf)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':![],'detail':_0x5bf389[_0x28ce7e(0x10c)]});}else _0x39492b[_0x28ce7e(0x124)](_0x28ce7e(0xf0)),_0x3c8f18[_0x28ce7e(0xcf)]({'step':0x2,'label':'Remove\x20.lovrabet/','ok':!![],'detail':_0x28ce7e(0x115)});const _0x2ac83e=a156_0x2ac73f({'text':_0x28ce7e(0xde),'color':_0x28ce7e(0xa9)})[_0x28ce7e(0xe8)](),_0x1cd21c=execRemoveOldArtifacts(_0x1bbe87['oldArtifacts']);_0x3c8f18[_0x28ce7e(0xcf)](_0x1cd21c),_0x2ac83e[_0x1cd21c['ok']?'succeed':_0x28ce7e(0x11d)](_0x28ce7e(0xe6)+(_0x1cd21c['detail']??(_0x1cd21c['ok']?'done':_0x28ce7e(0xdc))));const _0x214c91=a156_0x2ac73f({'text':_0x28ce7e(0xcc),'color':_0x28ce7e(0xa9)})['start'](),_0x341364=execCleanMcp(_0x1bbe87);_0x3c8f18[_0x28ce7e(0xcf)](_0x341364),_0x214c91[_0x341364['ok']?_0x28ce7e(0xb9):'fail'](_0x28ce7e(0xef)+(_0x341364[_0x28ce7e(0xaa)]??(_0x341364['ok']?_0x28ce7e(0x10d):_0x28ce7e(0xdc))));const _0x5e57f5=a156_0x2ac73f({'text':_0x28ce7e(0xc0),'color':_0x28ce7e(0xa9)})['start'](),_0x1b062c=execSkillsRemove(_0x429dee,_0x429b86);_0x3c8f18['push'](_0x1b062c),_0x5e57f5[_0x1b062c['ok']?_0x28ce7e(0xb9):_0x28ce7e(0x11d)](_0x28ce7e(0x106)+(_0x1b062c[_0x28ce7e(0xaa)]??(_0x1b062c['ok']?_0x28ce7e(0x10d):_0x28ce7e(0xdc))));const _0x200258=a156_0x2ac73f({'text':_0x28ce7e(0xd7),'color':_0x28ce7e(0xa9)})[_0x28ce7e(0xe8)](),_0x870757=execSkillsAdd(_0x429dee,_0x429b86);_0x3c8f18['push'](_0x870757),_0x200258[_0x870757['ok']?_0x28ce7e(0xb9):_0x28ce7e(0x11d)](_0x28ce7e(0xf4)+(_0x870757[_0x28ce7e(0xaa)]??(_0x870757['ok']?_0x28ce7e(0x10d):'failed')));const _0x131a06=a156_0x2ac73f({'text':_0x28ce7e(0x11f),'color':'cyan'})[_0x28ce7e(0xe8)](),_0x3342f5=execUpgradeSdk(_0x1bbe87);_0x3c8f18[_0x28ce7e(0xcf)](_0x3342f5),_0x131a06[_0x3342f5['ok']?_0x28ce7e(0xb9):_0x28ce7e(0x11d)](_0x28ce7e(0xc2)+(_0x3342f5[_0x28ce7e(0xaa)]??(_0x3342f5['ok']?_0x28ce7e(0x10d):_0x28ce7e(0xdc)))),printSummary(_0x3c8f18);const _0x594378=_0x3c8f18[_0x28ce7e(0xfd)](_0x4a27e8=>!_0x4a27e8['ok']);_0x594378?console[_0x28ce7e(0xd9)](a156_0x410482['yellow'](_0x28ce7e(0xe0))):console['log'](a156_0x410482[_0x28ce7e(0xa6)](_0x28ce7e(0x11b))),_0x3342f5['ok']&&_0x1bbe87[_0x28ce7e(0x120)]&&(console[_0x28ce7e(0xd9)](''),console[_0x28ce7e(0xd9)](a156_0x410482[_0x28ce7e(0xfb)]['cyan'](_0x28ce7e(0xbf))),console[_0x28ce7e(0xd9)](a156_0x410482[_0x28ce7e(0xa9)](_0x28ce7e(0xbc))),console[_0x28ce7e(0xd9)](''),console[_0x28ce7e(0xd9)](a156_0x410482[_0x28ce7e(0xd3)](_0x28ce7e(0xd8))),console[_0x28ce7e(0xd9)](a156_0x410482[_0x28ce7e(0xd3)](_0x28ce7e(0xe4))),console['log'](a156_0x410482[_0x28ce7e(0xd3)](_0x28ce7e(0xff))),console[_0x28ce7e(0xd9)](''));}
|