@lovrabet/rabetbase-cli 2.2.4 → 2.2.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/app-config/delete.js +1 -0
- package/lib/commands/app-config/get.js +1 -0
- package/lib/commands/app-config/index.js +1 -0
- package/lib/commands/app-config/list.js +1 -0
- package/lib/commands/app-config/set.js +1 -0
- package/lib/commands/app-config/shared.js +1 -0
- 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-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -0
- 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/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-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 -0
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/templates/README.md +15 -25
- package/templates/generate-api/api.ts.tpl +2 -2
- package/templates/generate-api/client.ts.tpl +2 -2
- package/templates/projects/sub-app-react-demo/CHANGELOG.md +15 -1
- package/templates/projects/sub-app-react-demo/README.md +159 -231
- package/templates/projects/sub-app-react-demo/docs/quick-start.md +145 -426
- package/templates/projects/sub-app-react-demo/src/api/api.ts +8 -65
- package/templates/projects/sub-app-react-demo/src/api/client.ts +10 -42
- package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +28 -0
- package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +55 -0
- package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +6 -9
- package/templates/projects/sub-app-react-demo/src/main.tsx +10 -6
- package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +3 -5
- package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +153 -148
- package/templates/projects/sub-app-react-demo/src/pages/index.module.css +500 -0
- package/templates/projects/sub-app-react-demo/src/pages/index.tsx +517 -343
- package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +325 -242
- package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +8 -6
- package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +174 -87
- package/templates/projects/sub-app-react-demo/src/style.css +19 -3
- package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
- package/templates/projects/sub-app-react-demo/docs/API_RULE_CHANGE.md +0 -212
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a80_0x1162b2=a80_0x3e9e;function a80_0x3e9e(_0x12d11c,_0x15b1ed){_0x12d11c=_0x12d11c-0x18a;const _0x1c850b=a80_0x1c85();let _0x3e9e87=_0x1c850b[_0x12d11c];return _0x3e9e87;}(function(_0x524466,_0x5c32e7){const _0x2559a4=a80_0x3e9e,_0x4dc059=_0x524466();while(!![]){try{const _0x1c380f=-parseInt(_0x2559a4(0x19f))/0x1+parseInt(_0x2559a4(0x19e))/0x2*(-parseInt(_0x2559a4(0x19d))/0x3)+parseInt(_0x2559a4(0x199))/0x4+parseInt(_0x2559a4(0x18a))/0x5*(-parseInt(_0x2559a4(0x18f))/0x6)+-parseInt(_0x2559a4(0x195))/0x7+parseInt(_0x2559a4(0x18b))/0x8+parseInt(_0x2559a4(0x19b))/0x9;if(_0x1c380f===_0x5c32e7)break;else _0x4dc059['push'](_0x4dc059['shift']());}catch(_0xf316b6){_0x4dc059['push'](_0x4dc059['shift']());}}}(a80_0x1c85,0xe1048));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a80_0x1c85(){const _0x3d7897=['length','37708479dViPLk','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','72FUPYsX','138962LbBbUA','1653258mkxBPY','95lnsqpA','13242944EUzJxF','page','number','Page\x20index\x20(1-based)','366018AlYiZC','pagesize','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','read','\x20database\x20connection(s)','Found\x20','10873016xDqyOb','list','appCode','Page\x20size','4438480Ejpmdu'];a80_0x1c85=function(){return _0x3d7897;};return a80_0x1c85();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a80_0x1162b2(0x196),'description':a80_0x1162b2(0x191),'risk':a80_0x1162b2(0x192),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a80_0x1162b2(0x18c),'type':a80_0x1162b2(0x18d),'description':a80_0x1162b2(0x18e),'default':0x1},{'name':a80_0x1162b2(0x190),'type':a80_0x1162b2(0x18d),'description':a80_0x1162b2(0x198),'default':0x64}],async 'execute'(_0x20d2d9){const _0x1ccb68=a80_0x1162b2,_0xfd764d=_0x20d2d9['num']('page',0x1)||0x1,_0x394441=_0x20d2d9['num'](_0x1ccb68(0x190),0x64)||0x64,{items:_0x5a807d,paging:_0x59c13a}=await listDbLinks(_0x20d2d9[_0x1ccb68(0x197)],{'currentPage':_0xfd764d,'pageSize':_0x394441}),_0x5c4b17=sanitizeDbLinkList(_0x5a807d),_0x749fcb=_0x59c13a?_0x59c13a:{'currentPage':_0xfd764d,'pageSize':_0x394441,'rowsOnPage':_0x5c4b17[_0x1ccb68(0x19a)],'totalCount':null,'note':_0x1ccb68(0x19c)};return{'ok':!![],'data':{'connections':_0x5c4b17,'paging':_0x749fcb},'message':_0x1ccb68(0x194)+_0x5c4b17[_0x1ccb68(0x19a)]+_0x1ccb68(0x193)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xf1f930,_0x3fdb9b){const _0x230d1e=a81_0x5e00,_0x3efdb1=_0xf1f930();while(!![]){try{const _0x4066ae=-parseInt(_0x230d1e(0xe6))/0x1+parseInt(_0x230d1e(0xf6))/0x2*(parseInt(_0x230d1e(0xf5))/0x3)+-parseInt(_0x230d1e(0xf3))/0x4+parseInt(_0x230d1e(0xf7))/0x5+-parseInt(_0x230d1e(0xfd))/0x6+-parseInt(_0x230d1e(0xf8))/0x7+parseInt(_0x230d1e(0xeb))/0x8*(parseInt(_0x230d1e(0xf2))/0x9);if(_0x4066ae===_0x3fdb9b)break;else _0x3efdb1['push'](_0x3efdb1['shift']());}catch(_0x2d44c3){_0x3efdb1['push'](_0x3efdb1['shift']());}}}(a81_0x7f42,0xd7fbc));import{getAppBaseUrl}from'../../constant/domain.js';function shouldRedactKey(_0x307cc4){const _0x4b5bd8=a81_0x5e00,_0x221a28=_0x307cc4['toLowerCase']();if(_0x221a28===_0x4b5bd8(0xf0)||_0x221a28===_0x4b5bd8(0xed)||_0x221a28===_0x4b5bd8(0xe5))return!![];if(_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xe7))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xe9))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xec)))return!![];if(_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xfe))||_0x221a28[_0x4b5bd8(0xfb)](_0x4b5bd8(0xff)))return!![];if(_0x221a28===_0x4b5bd8(0xf1)||_0x221a28===_0x4b5bd8(0xf4)||_0x221a28==='jdbcurl')return!![];return![];}function a81_0x7f42(){const _0x1cbd81=['[redacted]','password','authorization','27gplNur','3583408fGDrYa','connectionstring','12417xTuwkn','74PWsBjD','6895115aGnZaW','3574039gfdFis','test','isFinite','includes','map','9131514zrsxHd','privatekey','accesskey','dbpassword','1627415WaChVj','secret','keys','token','trim','10422040gwQqlI','credential','passwd','length'];a81_0x7f42=function(){return _0x1cbd81;};return a81_0x7f42();}export function sanitizeDbLinkForOutput(_0x4854d9){const _0x3a638a=a81_0x5e00,_0x329bd7={..._0x4854d9};for(const _0x7fd82a of Object[_0x3a638a(0xe8)](_0x329bd7)){if(!shouldRedactKey(_0x7fd82a))continue;const _0x5a38b5=_0x329bd7[_0x7fd82a];_0x5a38b5!=null&&String(_0x5a38b5)[_0x3a638a(0xee)]>0x0&&(_0x329bd7[_0x7fd82a]=_0x3a638a(0xef));}return _0x329bd7;}export function sanitizeDbLinkList(_0x2db0dd){const _0x2ae248=a81_0x5e00;return _0x2db0dd[_0x2ae248(0xfc)](_0xd0ae76=>sanitizeDbLinkForOutput(_0xd0ae76));}function a81_0x5e00(_0x2481fe,_0x41e941){_0x2481fe=_0x2481fe-0xe5;const _0x7f4256=a81_0x7f42();let _0x5e0013=_0x7f4256[_0x2481fe];return _0x5e0013;}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x5760b7){const _0x2a3d3c=a81_0x5e00,_0x54065b=_0x5760b7[_0x2a3d3c(0xea)]();if(!_0x54065b)return![];return DB_URL_PATTERN[_0x2a3d3c(0xf9)](_0x54065b);}export function buildDbPageLinks(_0x32a67e,_0x2c4f52){const _0x4e92dc=a81_0x5e00,_0x7b587b=_0x32a67e?.[_0x4e92dc(0xea)]();if(!_0x7b587b)return undefined;const _0xd3f2e4=typeof _0x2c4f52==='number'?String(_0x2c4f52):String(_0x2c4f52??'')[_0x4e92dc(0xea)]();if(!_0xd3f2e4)return undefined;const _0x16237d=Number(_0xd3f2e4);if(!Number[_0x4e92dc(0xfa)](_0x16237d)||_0x16237d<=0x0)return undefined;const _0x5172f8=getAppBaseUrl(_0x7b587b),_0xb5c035=encodeURIComponent(String(_0x16237d));return{'databasePage':_0x5172f8+'/data/database','erPage':_0x5172f8+'/data/er?dbId='+_0xb5c035};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a82_0x2490(){const _0x5350bf=['362795qZthgK','1591612DJHjtO','read','1397thkJls','tables','351240sLurAd','1822614wsiJSa','44610oiLSEx','2NrUaxg','215VUnzxi','82590OHlfcD','5276124TgQGBW','length','7FNpVYp','num'];a82_0x2490=function(){return _0x5350bf;};return a82_0x2490();}const a82_0x3adb4b=a82_0x15e1;(function(_0x56a142,_0xafe5e){const _0x7ef4b4=a82_0x15e1,_0x4a40f0=_0x56a142();while(!![]){try{const _0x4d7b3=-parseInt(_0x7ef4b4(0x189))/0x1*(parseInt(_0x7ef4b4(0x191))/0x2)+parseInt(_0x7ef4b4(0x18f))/0x3+-parseInt(_0x7ef4b4(0x18a))/0x4+-parseInt(_0x7ef4b4(0x192))/0x5*(-parseInt(_0x7ef4b4(0x193))/0x6)+-parseInt(_0x7ef4b4(0x187))/0x7*(parseInt(_0x7ef4b4(0x18e))/0x8)+-parseInt(_0x7ef4b4(0x194))/0x9+parseInt(_0x7ef4b4(0x190))/0xa*(parseInt(_0x7ef4b4(0x18c))/0xb);if(_0x4d7b3===_0xafe5e)break;else _0x4a40f0['push'](_0x4a40f0['shift']());}catch(_0xba714b){_0x4a40f0['push'](_0x4a40f0['shift']());}}}(a82_0x2490,0x5b965));function a82_0x15e1(_0x26412b,_0x3c6787){_0x26412b=_0x26412b-0x187;const _0x24906f=a82_0x2490();let _0x15e17e=_0x24906f[_0x26412b];return _0x15e17e;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a82_0x3adb4b(0x18d),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a82_0x3adb4b(0x18b),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd92a36){const _0x39a231=a82_0x3adb4b,_0x3fbe4f=_0xd92a36[_0x39a231(0x188)]('id'),_0x6e2d69=await getDbAllTableList(_0xd92a36['appCode'],_0x3fbe4f);return{'ok':!![],'data':{'dbLinkId':_0x3fbe4f,'total':_0x6e2d69['length'],'tables':_0x6e2d69},'message':_0x6e2d69[_0x39a231(0x195)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x3fbe4f};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x2219e8=a83_0x29ec;(function(_0x37e4b8,_0x4a5c65){const _0x3d3680=a83_0x29ec,_0x2bb936=_0x37e4b8();while(!![]){try{const _0x1724a6=parseInt(_0x3d3680(0xc7))/0x1*(parseInt(_0x3d3680(0xc6))/0x2)+parseInt(_0x3d3680(0xbc))/0x3+parseInt(_0x3d3680(0xc3))/0x4*(-parseInt(_0x3d3680(0xb1))/0x5)+-parseInt(_0x3d3680(0xb7))/0x6*(-parseInt(_0x3d3680(0xc4))/0x7)+-parseInt(_0x3d3680(0xb3))/0x8*(-parseInt(_0x3d3680(0xad))/0x9)+-parseInt(_0x3d3680(0xb5))/0xa*(-parseInt(_0x3d3680(0xc5))/0xb)+-parseInt(_0x3d3680(0xbd))/0xc;if(_0x1724a6===_0x4a5c65)break;else _0x2bb936['push'](_0x2bb936['shift']());}catch(_0x5994e4){_0x2bb936['push'](_0x2bb936['shift']());}}}(a83_0xa3cf,0x84946));import{testDbLinkConnect}from'../../core/api-client.js';function a83_0x29ec(_0x1882a1,_0x5eaaa8){_0x1882a1=_0x1882a1-0xad;const _0xa3cf2b=a83_0xa3cf();let _0x29ec02=_0xa3cf2b[_0x1882a1];return _0x29ec02;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a83_0xa3cf(){const _0x6869d2=['Connection\x20check\x20finished\x20for\x20db\x20link\x20','keys','\x20(see\x20data.result)','1880CmJHMd','error','520768UQKNOp','data','557490BlbqwZ','success','6PCyhDL','Connection\x20OK\x20for\x20db\x20link\x20','object','message','code','3091578QsmTvi','24951696BlRwkt','read','num','length','slice','test','4076MTGVTv','712635midhhA','66euEwwE','286RchauV','6663VgqaVp','81WZnoMm'];a83_0xa3cf=function(){return _0x6869d2;};return a83_0xa3cf();}function summarizeTestConnectResult(_0x22131f){const _0x42271b=a83_0x29ec;if(_0x22131f===!![]||_0x22131f===![])return{'success':_0x22131f};if(_0x22131f===null||_0x22131f===undefined)return{'type':typeof _0x22131f};if(typeof _0x22131f!==_0x42271b(0xb9))return{'type':typeof _0x22131f};const _0x38cc59=_0x22131f,_0x4454e1=[_0x42271b(0xb6),_0x42271b(0xba),_0x42271b(0xbb),_0x42271b(0xb2),'msg',_0x42271b(0xb4)],_0x269ec7={};for(const _0x523823 of _0x4454e1){if(_0x523823 in _0x38cc59)_0x269ec7[_0x523823]=_0x38cc59[_0x523823];}return Object[_0x42271b(0xaf)](_0x269ec7)[_0x42271b(0xc0)]===0x0&&(_0x269ec7[_0x42271b(0xaf)]=Object[_0x42271b(0xaf)](_0x38cc59)[_0x42271b(0xc1)](0x0,0x14)),_0x269ec7;}export const dbTest={'service':'db','command':a83_0x2219e8(0xc2),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a83_0x2219e8(0xbe),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4ed86f){const _0x5d9745=a83_0x2219e8,_0x4f1f82=_0x4ed86f[_0x5d9745(0xbf)]('id'),_0x27cb81=await testDbLinkConnect(_0x4f1f82),_0x47c466=_0x27cb81===!![]||typeof _0x27cb81===_0x5d9745(0xb9)&&_0x27cb81!==null&&_0x27cb81[_0x5d9745(0xb6)]===!![],_0x2af193=summarizeTestConnectResult(_0x27cb81);return{'ok':!![],'data':{'id':_0x4f1f82,'connected':Boolean(_0x47c466),'result':_0x2af193},'message':_0x47c466?_0x5d9745(0xb8)+_0x4f1f82:_0x5d9745(0xae)+_0x4f1f82+_0x5d9745(0xb0)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84_0xa2a833=a84_0x476d;(function(_0x5095a3,_0x10baf9){const _0x3be5ea=a84_0x476d,_0x5cdd75=_0x5095a3();while(!![]){try{const _0x5cf54f=-parseInt(_0x3be5ea(0xfb))/0x1+parseInt(_0x3be5ea(0x106))/0x2+-parseInt(_0x3be5ea(0x10b))/0x3+-parseInt(_0x3be5ea(0x109))/0x4*(parseInt(_0x3be5ea(0xea))/0x5)+parseInt(_0x3be5ea(0xeb))/0x6+parseInt(_0x3be5ea(0xf6))/0x7+parseInt(_0x3be5ea(0x101))/0x8;if(_0x5cf54f===_0x10baf9)break;else _0x5cdd75['push'](_0x5cdd75['shift']());}catch(_0x1d9d0d){_0x5cdd75['push'](_0x5cdd75['shift']());}}}(a84_0x1004,0x3cd31));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a84_0x476d(_0x3313fc,_0x355855){_0x3313fc=_0x3313fc-0xea;const _0x10045c=a84_0x1004();let _0x476dc4=_0x10045c[_0x3313fc];return _0x476dc4;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a84_0x1004(){const _0xfab50d=['username','New\x20connection\x20parameter\x20string','validation','New\x20username','password','str','dbparam','dbDesc','3077389GIMZzI','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Updated\x20db\x20link\x20','New\x20host:port','171364BnXMrN','write','dbname','POST','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','trim','1693600lXAIdt','dbdesc','New\x20description','dburl','num','442290fPaLXF','string','New\x20database\x20name','1252PmIMcq','dbUrl','212685srtPRm','dbParam','7915iUXXXa','686418InVnrC','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbName'];a84_0x1004=function(){return _0xfab50d;};return a84_0x1004();}export const dbUpdate={'service':'db','command':'update','description':a84_0xa2a833(0xec),'risk':a84_0xa2a833(0xfc),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a84_0xa2a833(0xfd),'type':'string','description':a84_0xa2a833(0x108)},{'name':'dburl','type':'string','description':a84_0xa2a833(0xfa)},{'name':a84_0xa2a833(0xee),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xf1)},{'name':a84_0xa2a833(0xf2),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xff)},{'name':a84_0xa2a833(0xf4),'type':a84_0xa2a833(0x107),'description':a84_0xa2a833(0xef)},{'name':a84_0xa2a833(0x102),'type':'string','description':a84_0xa2a833(0x103)}],async 'validate'(_0x57c75f){const _0x479c2b=a84_0xa2a833,_0x2aee7d=_0x57c75f[_0x479c2b(0xf3)]('dburl');if(_0x2aee7d&&!validateDbUrl(_0x2aee7d[_0x479c2b(0x100)]()))throw CliErrors[_0x479c2b(0xf0)](_0x479c2b(0xf8)+_0x2aee7d+'\x22');},async 'dryRun'(_0x5ee65f){const _0x371fc7=a84_0xa2a833,_0x439954=_0x5ee65f[_0x371fc7(0x105)]('id'),_0x2d7d1c=await getDbLinkInfo(_0x439954),_0x55cdcc={..._0x2d7d1c},_0x1170a0=_0x5ee65f['str'](_0x371fc7(0xfd));if(_0x1170a0)_0x55cdcc[_0x371fc7(0xed)]=_0x1170a0;const _0xc6af6e=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0x104));if(_0xc6af6e)_0x55cdcc[_0x371fc7(0x10a)]=_0xc6af6e['trim']();const _0x3b77a8=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0xee));if(_0x3b77a8)_0x55cdcc[_0x371fc7(0xee)]=_0x3b77a8;const _0x34bfb6=_0x5ee65f['str']('password');if(_0x34bfb6)_0x55cdcc[_0x371fc7(0xf2)]=_0x34bfb6;const _0x2ad1a6=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0xf4));if(_0x2ad1a6)_0x55cdcc[_0x371fc7(0x10c)]=_0x2ad1a6;const _0x1a1180=_0x5ee65f[_0x371fc7(0xf3)](_0x371fc7(0x102));if(_0x1a1180)_0x55cdcc[_0x371fc7(0xf5)]=_0x1a1180;const _0x1f59e6=sanitizeDbLinkForOutput(_0x55cdcc);return{'method':_0x371fc7(0xfe),'url':'/smartapi/dblink/update','body':_0x1f59e6,'description':_0x371fc7(0xf7)};},async 'execute'(_0x540896){const _0x2698a0=a84_0xa2a833,_0x57c640=_0x540896[_0x2698a0(0x105)]('id'),_0x380579=await getDbLinkInfo(_0x57c640),_0x18bdc7={..._0x380579},_0x474860=_0x540896['str']('dbname');if(_0x474860)_0x18bdc7['dbName']=_0x474860;const _0x307cc7=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0x104));if(_0x307cc7)_0x18bdc7[_0x2698a0(0x10a)]=_0x307cc7[_0x2698a0(0x100)]();const _0xe5449f=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0xee));if(_0xe5449f)_0x18bdc7[_0x2698a0(0xee)]=_0xe5449f;const _0x344354=_0x540896[_0x2698a0(0xf3)]('password');if(_0x344354)_0x18bdc7[_0x2698a0(0xf2)]=_0x344354;const _0x592e86=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0xf4));if(_0x592e86)_0x18bdc7[_0x2698a0(0x10c)]=_0x592e86;const _0x5eb60f=_0x540896[_0x2698a0(0xf3)](_0x2698a0(0x102));if(_0x5eb60f)_0x18bdc7[_0x2698a0(0xf5)]=_0x5eb60f;const {id:_0x4396bf,entity:_0x451525}=normalizeEntityWithIdResponse(await updateDbLink(_0x18bdc7));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x451525),'message':_0x2698a0(0xf9)+(_0x4396bf??_0x57c640)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a77_0xa98fad=a77_0x4abb;function a77_0x5c62(){const _0x303ce1=['✓\x20Valid','cookie','(set,\x20length=','\x20\x20─','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','accessKey','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','format','apps','✗\x20Expired','42BnTmrK','20623174LrYPLX','appCode','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','env','(none)','raw','1023192NuMJCz','check','read','619776FFOpIt','69741SmLlgb','message','green','value','log','platform','\x20doctor','locale','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','doctor','keys','\x20\x20Apps','496907wkXSbA','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','padEnd','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','status','Global','✗\x20Not\x20logged\x20in','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','explicitAppName','missing','\x20\x20API\x20Endpoints','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','139856NkKJZU','pageSize','80EqWgqg','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','appcode','12TwCLnb','length','verbose','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','Project','unknown','842390gLBsXx','\x20\x20Auth','(not\x20found)','(no\x20file)','red','(set\x20via\x20file,\x20length=','yellow','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','repeat','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','36uEzUmu','bold','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a77_0x5c62=function(){return _0x303ce1;};return a77_0x5c62();}(function(_0x4617a3,_0x35362f){const _0x1c9638=a77_0x4abb,_0x1ef55d=_0x4617a3();while(!![]){try{const _0x7d2a57=parseInt(_0x1c9638(0x110))/0x1+-parseInt(_0x1c9638(0x120))/0x2*(-parseInt(_0x1c9638(0xe6))/0x3)+parseInt(_0x1c9638(0x125))/0x4*(parseInt(_0x1c9638(0xd8))/0x5)+parseInt(_0x1c9638(0xf6))/0x6*(parseInt(_0x1c9638(0x103))/0x7)+-parseInt(_0x1c9638(0xff))/0x8+-parseInt(_0x1c9638(0x102))/0x9*(-parseInt(_0x1c9638(0x122))/0xa)+-parseInt(_0x1c9638(0xf7))/0xb;if(_0x7d2a57===_0x35362f)break;else _0x1ef55d['push'](_0x1ef55d['shift']());}catch(_0x18c29b){_0x1ef55d['push'](_0x1ef55d['shift']());}}}(a77_0x5c62,0x70285));function a77_0x4abb(_0x1a23af,_0x2c3c62){_0x1a23af=_0x1a23af-0xd3;const _0x5c62e5=a77_0x5c62();let _0x4abbbd=_0x5c62e5[_0x1a23af];return _0x4abbbd;}import a77_0x4a1c70 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x1cf8ac){const _0x257683=a77_0x4abb,_0x31e450=GIT_COMMIT!==_0x257683(0xd7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x4b326b=buildConfigFromFlags({}),_0x5bac84=getCookie();console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](CLI_BIN_NAME+_0x257683(0x109))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)]('─'[_0x257683(0xe3)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x31e450),console['log'](_0x257683(0x10b)+process['version']),console['log'](_0x257683(0xd4)+process[_0x257683(0x108)]+'\x20'+process[_0x257683(0x10c)]),console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0xd5))),console['log'](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)['repeat'](0x1e)));const _0xf8b943=getGlobalConfigPath(),_0x1f685a=getProjectConfigPath();console['log'](_0x257683(0xf9)+(_0xf8b943||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xda)))),console[_0x257683(0x107)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f685a||a77_0x4a1c70[_0x257683(0xe0)]('(not\x20found)'))),console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)]('\x20\x20Config\x20JSON')),console[_0x257683(0x107)](a77_0x4a1c70['gray'](_0x257683(0xec)[_0x257683(0xe3)](0x1e)));const _0x10590=(_0x301c24,_0x5d3f37)=>{const _0x3268b1=_0x257683;if(!_0x5d3f37){console['log']('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xe0)](_0x3268b1(0xdb)));return;}const _0x403678=inspectCliConfigJsonFile(_0x5d3f37);if(_0x403678['status']==='ok')console[_0x3268b1(0x107)]('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0x105)]('✓\x20Valid\x20JSON'));else{if(_0x403678[_0x3268b1(0x117)]==='empty')console['log']('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xde)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x403678[_0x3268b1(0x117)]===_0x3268b1(0x11d)?console['log']('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xe0)]('(missing)')):(console[_0x3268b1(0x107)]('\x20\x20'+_0x301c24[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xdc)]('✗\x20Invalid\x20JSON')),console[_0x3268b1(0x107)]('\x20\x20'+''[_0x3268b1(0x114)](0x11)+'\x20'+a77_0x4a1c70[_0x3268b1(0xdc)](_0x403678[_0x3268b1(0x104)])));}};_0x10590(_0x257683(0x118),_0xf8b943),_0x10590(_0x257683(0xd6),_0x1f685a),console[_0x257683(0x107)](),console['log'](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0x116))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)[_0x257683(0xe3)](0x1e))),console['log'](_0x257683(0xdf)+(_0x4b326b[_0x257683(0xf8)]||a77_0x4a1c70[_0x257683(0xdc)]('(not\x20set)'))),console[_0x257683(0x107)](_0x257683(0xe4)+_0x4b326b[_0x257683(0xfc)]),console[_0x257683(0x107)](_0x257683(0xe8)+_0x4b326b[_0x257683(0x10a)]),console[_0x257683(0x107)](_0x257683(0x112)+_0x4b326b[_0x257683(0xe5)]),console[_0x257683(0x107)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4b326b['defaultApp']||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd)))),console[_0x257683(0x107)](_0x257683(0xe1)+(_0x4b326b[_0x257683(0xef)]||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd)))),console[_0x257683(0x107)]('\x20\x20explicitAppName:\x20'+(_0x4b326b[_0x257683(0x11c)]||a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd)))),console[_0x257683(0x107)](_0x257683(0xee)+(_0x4b326b['format']||a77_0x4a1c70[_0x257683(0xe0)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x257683(0xf3)]+')'))),console[_0x257683(0x107)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4b326b[_0x257683(0x121)]??a77_0x4a1c70[_0x257683(0xe0)]('(default)'))),console[_0x257683(0x107)](_0x257683(0xf1)+_0x4b326b['riskLevel']),console[_0x257683(0x107)](_0x257683(0x115)+_0x4b326b[_0x257683(0xd3)]),console[_0x257683(0x107)](_0x257683(0x11a)+(_0x4b326b['cookie']?a77_0x4a1c70['green'](_0x257683(0xeb)+_0x4b326b['cookie'][_0x257683(0x126)]+')'):_0x5bac84?a77_0x4a1c70[_0x257683(0x105)](_0x257683(0xdd)+_0x5bac84[_0x257683(0x126)]+')'):a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd))));const _0x81420d=Object[_0x257683(0x10e)](_0x4b326b[_0x257683(0xf4)]);if(_0x81420d['length']>0x0){console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0x10f))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)[_0x257683(0xe3)](0x1e)));for(const _0x4bfb98 of _0x81420d){const _0x532d62=_0x4b326b['apps'][_0x4bfb98],_0x1a050b=_0x4bfb98===_0x4b326b['defaultApp'],_0x4245f9=_0x4bfb98===_0x4b326b[_0x257683(0xef)],_0x5233ac=_0x4245f9?a77_0x4a1c70[_0x257683(0x105)](_0x257683(0xfa)):'',_0x44a8d0=_0x1a050b?'\x20(default)':'';console[_0x257683(0x107)]('\x20\x20'+_0x4bfb98+_0x44a8d0+_0x5233ac),console[_0x257683(0x107)](_0x257683(0x111)+_0x532d62[_0x257683(0x124)]);const _0x92cf8c=buildAppDoctorFields(_0x532d62,{'env':_0x4b326b['env'],'apiDir':_0x4b326b[_0x257683(0xfe)][_0x257683(0xe5)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x4b326b[_0x257683(0xea)]||_0x5bac84||undefined,'accessKey':_0x4b326b[_0x257683(0xf0)]});console[_0x257683(0x107)](_0x257683(0xed)+_0x92cf8c['env']['value']+'\x20\x20'+a77_0x4a1c70[_0x257683(0xe0)]('('+_0x92cf8c[_0x257683(0xfc)]['source']+')')),console[_0x257683(0x107)](_0x257683(0x123)+_0x92cf8c[_0x257683(0xe5)][_0x257683(0x106)]+'\x20\x20'+a77_0x4a1c70[_0x257683(0xe0)]('('+_0x92cf8c['apiDir']['source']+')'));const _0x539dd4=_0x92cf8c[_0x257683(0xea)][_0x257683(0x106)]?a77_0x4a1c70[_0x257683(0x105)]('(set,\x20length='+_0x92cf8c['cookie'][_0x257683(0x106)][_0x257683(0x126)]+')'):a77_0x4a1c70[_0x257683(0xe0)]('(none)');console[_0x257683(0x107)](_0x257683(0xf2)+_0x539dd4+'\x20\x20'+a77_0x4a1c70[_0x257683(0xe0)]('('+_0x92cf8c[_0x257683(0xea)][_0x257683(0x113)]+')'));const _0x3a82be=_0x92cf8c[_0x257683(0xf0)]['value']?a77_0x4a1c70[_0x257683(0x105)](_0x257683(0xeb)+_0x92cf8c[_0x257683(0xf0)][_0x257683(0x106)][_0x257683(0x126)]+')'):a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xfd));console[_0x257683(0x107)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x3a82be+'\x20\x20'+a77_0x4a1c70['gray']('('+_0x92cf8c[_0x257683(0xf0)]['source']+')'));}}console[_0x257683(0x107)](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0x11e))),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe0)](_0x257683(0xec)[_0x257683(0xe3)](0x1e))),console['log'](_0x257683(0x11f)+getApiDomain()),console[_0x257683(0x107)](_0x257683(0xe2)+getUserDomain()),console[_0x257683(0x107)](_0x257683(0x11b)+getRuntimeDomain()),console['log'](),console[_0x257683(0x107)](a77_0x4a1c70[_0x257683(0xe7)](_0x257683(0xd9))),console[_0x257683(0x107)](a77_0x4a1c70['gray'](_0x257683(0xec)[_0x257683(0xe3)](0x1e)));if(_0x5bac84){const _0x1d6d07=await getIsSessionValid();console[_0x257683(0x107)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1d6d07?a77_0x4a1c70['green'](_0x257683(0xe9)):a77_0x4a1c70[_0x257683(0xdc)](_0x257683(0xf5))));}else console[_0x257683(0x107)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a77_0x4a1c70[_0x257683(0xdc)](_0x257683(0x119)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a77_0xa98fad(0x10d),'command':a77_0xa98fad(0x100),'description':a77_0xa98fad(0xfb),'risk':a77_0xa98fad(0x101),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a85_0x162547=a85_0x5495;(function(_0x5c8c0a,_0x4fa459){const _0x242e9a=a85_0x5495,_0x328877=_0x5c8c0a();while(!![]){try{const _0x125597=-parseInt(_0x242e9a(0xca))/0x1+-parseInt(_0x242e9a(0x9f))/0x2*(-parseInt(_0x242e9a(0xd6))/0x3)+parseInt(_0x242e9a(0xba))/0x4+-parseInt(_0x242e9a(0xb8))/0x5+-parseInt(_0x242e9a(0xd0))/0x6*(parseInt(_0x242e9a(0xc7))/0x7)+-parseInt(_0x242e9a(0xd7))/0x8+parseInt(_0x242e9a(0xd3))/0x9;if(_0x125597===_0x4fa459)break;else _0x328877['push'](_0x328877['shift']());}catch(_0xd5d84){_0x328877['push'](_0x328877['shift']());}}}(a85_0x4fdc,0xe69e4));import a85_0x518a82 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a85_0x5495(_0x25f839,_0x3d674d){_0x25f839=_0x25f839-0x91;const _0x4fdc18=a85_0x4fdc();let _0x5495b9=_0x4fdc18[_0x25f839];return _0x5495b9;}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a85_0x4fdc(){const _0x36400d=['\x20\x20API\x20Endpoints','currentApp','(none)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','raw','accessKey','\x20\x20Config\x20Files','keys','empty','\x20\x20Config\x20JSON','\x20\x20Merged\x20Config','defaultApp','✗\x20Not\x20logged\x20in','38MXgITy','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','(default:\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','pageSize','riskLevel','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','env','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','\x20\x20─','doctor','repeat','locale','format','check','length','\x20\x20explicitAppName:\x20','✓\x20Valid\x20JSON','apps','padEnd','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8015065pRWxdl','⚠\x20Empty\x20(treated\x20as\x20{})','4007328lhNLeR','(missing)','(default)','green','(no\x20file)','(not\x20found)','read','status','yellow','gray','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2493813YgIqDE','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','567974TTbzDq','source','\x20(default)','log','apiDir','bold','6ZFWUly','red','✓\x20Valid','20735694lckrlR','cookie','(set,\x20length=','279897RHvhQP','12852968XNgQxC','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','appcode','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','value','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','arch'];a85_0x4fdc=function(){return _0x36400d;};return a85_0x4fdc();}async function execute(_0x51f560){const _0x2edf3a=a85_0x5495,_0x5a8f50=GIT_COMMIT!==_0x2edf3a(0xa5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2edf3a(0xab)](0x0,0xa)+')':VERSION,_0x285bee=buildConfigFromFlags({}),_0x3da772=getCookie();console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82['bold'](CLI_BIN_NAME+'\x20doctor')),console['log'](a85_0x518a82[_0x2edf3a(0xc3)]('─'['repeat'](0x32))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa1)+_0x5a8f50),console[_0x2edf3a(0xcd)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x2edf3a(0xcd)](_0x2edf3a(0xd8)+process['platform']+'\x20'+process[_0x2edf3a(0x91)]),console['log'](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x98))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)['repeat'](0x1e)));const _0xd5080d=getGlobalConfigPath(),_0x118270=getProjectConfigPath();console[_0x2edf3a(0xcd)](_0x2edf3a(0xb7)+(_0xd5080d||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbf)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc4)+(_0x118270||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbf)))),console['log'](),console['log'](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x9b))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));const _0xcb1c5a=(_0x2aa84a,_0x3329b1)=>{const _0x122e78=_0x2edf3a;if(!_0x3329b1){console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc3)](_0x122e78(0xbe)));return;}const _0x20655b=inspectCliConfigJsonFile(_0x3329b1);if(_0x20655b[_0x122e78(0xc1)]==='ok')console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xbd)](_0x122e78(0xb4)));else{if(_0x20655b['status']===_0x122e78(0x9a))console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc2)](_0x122e78(0xb9)));else _0x20655b[_0x122e78(0xc1)]==='missing'?console[_0x122e78(0xcd)]('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xc3)](_0x122e78(0xbb))):(console['log']('\x20\x20'+_0x2aa84a[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82['red']('✗\x20Invalid\x20JSON')),console[_0x122e78(0xcd)]('\x20\x20'+''[_0x122e78(0xb6)](0x11)+'\x20'+a85_0x518a82[_0x122e78(0xd1)](_0x20655b['message'])));}};_0xcb1c5a('Global',_0xd5080d),_0xcb1c5a(_0x2edf3a(0xdf),_0x118270),console['log'](),console['log'](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x9c))),console['log'](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa4)+(_0x285bee['appCode']||a85_0x518a82[_0x2edf3a(0xd1)]('(not\x20set)'))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc8)+_0x285bee[_0x2edf3a(0xa9)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x285bee[_0x2edf3a(0xaf)]),console[_0x2edf3a(0xcd)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x285bee[_0x2edf3a(0xce)]),console[_0x2edf3a(0xcd)](_0x2edf3a(0xe0)+(_0x285bee[_0x2edf3a(0x9d)]||a85_0x518a82['gray'](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x285bee[_0x2edf3a(0x93)]||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xb3)+(_0x285bee['explicitAppName']||a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0x94)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc6)+(_0x285bee['format']||a85_0x518a82['gray'](_0x2edf3a(0xa3)+DEFAULT_CONFIG_VALUES[_0x2edf3a(0xb0)]+')'))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa0)+(_0x285bee[_0x2edf3a(0xa6)]??a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xbc)))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xc5)+_0x285bee[_0x2edf3a(0xa7)]),console[_0x2edf3a(0xcd)](_0x2edf3a(0xaa)+_0x285bee['verbose']),console[_0x2edf3a(0xcd)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x285bee['cookie']?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd5)+_0x285bee['cookie'][_0x2edf3a(0xb2)]+')'):_0x3da772?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xa2)+_0x3da772[_0x2edf3a(0xb2)]+')'):a85_0x518a82[_0x2edf3a(0xc3)]('(none)')));const _0x1cb1ca=Object[_0x2edf3a(0x99)](_0x285bee[_0x2edf3a(0xb5)]);if(_0x1cb1ca['length']>0x0){console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)]('\x20\x20Apps')),console[_0x2edf3a(0xcd)](a85_0x518a82['gray'](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));for(const _0x3e4f06 of _0x1cb1ca){const _0x5761cc=_0x285bee[_0x2edf3a(0xb5)][_0x3e4f06],_0x2e01c8=_0x3e4f06===_0x285bee[_0x2edf3a(0x9d)],_0xd805eb=_0x3e4f06===_0x285bee[_0x2edf3a(0x93)],_0x22b213=_0xd805eb?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd9)):'',_0x16ce30=_0x2e01c8?_0x2edf3a(0xcc):'';console[_0x2edf3a(0xcd)]('\x20\x20'+_0x3e4f06+_0x16ce30+_0x22b213),console[_0x2edf3a(0xcd)](_0x2edf3a(0xa8)+_0x5761cc[_0x2edf3a(0xdb)]);const _0x11c96d=buildAppDoctorFields(_0x5761cc,{'env':_0x285bee[_0x2edf3a(0xa9)],'apiDir':_0x285bee[_0x2edf3a(0x96)][_0x2edf3a(0xce)]||DEFAULT_CONFIG_VALUES[_0x2edf3a(0xce)],'cookie':_0x285bee[_0x2edf3a(0xd4)]||_0x3da772||undefined,'accessKey':_0x285bee[_0x2edf3a(0x97)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x11c96d[_0x2edf3a(0xa9)][_0x2edf3a(0xdd)]+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d['env'][_0x2edf3a(0xcb)]+')')),console[_0x2edf3a(0xcd)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x11c96d['apiDir'][_0x2edf3a(0xdd)]+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d[_0x2edf3a(0xce)]['source']+')'));const _0x43c6e8=_0x11c96d[_0x2edf3a(0xd4)]['value']?a85_0x518a82['green'](_0x2edf3a(0xd5)+_0x11c96d['cookie'][_0x2edf3a(0xdd)][_0x2edf3a(0xb2)]+')'):a85_0x518a82['gray'](_0x2edf3a(0x94));console[_0x2edf3a(0xcd)](_0x2edf3a(0xda)+_0x43c6e8+'\x20\x20'+a85_0x518a82['gray']('('+_0x11c96d[_0x2edf3a(0xd4)][_0x2edf3a(0xcb)]+')'));const _0x10d53f=_0x11c96d[_0x2edf3a(0x97)]['value']?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd5)+_0x11c96d['accessKey']['value'][_0x2edf3a(0xb2)]+')'):a85_0x518a82['gray'](_0x2edf3a(0x94));console[_0x2edf3a(0xcd)](_0x2edf3a(0xe1)+_0x10d53f+'\x20\x20'+a85_0x518a82[_0x2edf3a(0xc3)]('('+_0x11c96d[_0x2edf3a(0x97)][_0x2edf3a(0xcb)]+')'));}}console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)](_0x2edf3a(0x92))),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xc3)]('\x20\x20─'[_0x2edf3a(0xae)](0x1e))),console[_0x2edf3a(0xcd)](_0x2edf3a(0xde)+getApiDomain()),console['log'](_0x2edf3a(0x95)+getUserDomain()),console[_0x2edf3a(0xcd)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x2edf3a(0xcd)](),console[_0x2edf3a(0xcd)](a85_0x518a82[_0x2edf3a(0xcf)]('\x20\x20Auth')),console['log'](a85_0x518a82[_0x2edf3a(0xc3)](_0x2edf3a(0xac)[_0x2edf3a(0xae)](0x1e)));if(_0x3da772){const _0x4c2828=await getIsSessionValid();console[_0x2edf3a(0xcd)](_0x2edf3a(0xc9)+(_0x4c2828?a85_0x518a82[_0x2edf3a(0xbd)](_0x2edf3a(0xd2)):a85_0x518a82[_0x2edf3a(0xd1)]('✗\x20Expired')));}else console[_0x2edf3a(0xcd)](_0x2edf3a(0xc9)+a85_0x518a82[_0x2edf3a(0xd1)](_0x2edf3a(0x9e)));return console[_0x2edf3a(0xcd)](),{'ok':!![]};}export const doctorDefinition={'service':a85_0x162547(0xad),'command':a85_0x162547(0xb1),'description':a85_0x162547(0xdc),'risk':a85_0x162547(0xc0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86_0x3b25eb=a86_0x736d;(function(_0xd2a3c5,_0x1ea670){const _0x13d263=a86_0x736d,_0x22f7dc=_0xd2a3c5();while(!![]){try{const _0x39eec9=-parseInt(_0x13d263(0xba))/0x1*(parseInt(_0x13d263(0x9c))/0x2)+-parseInt(_0x13d263(0xaa))/0x3*(parseInt(_0x13d263(0xa6))/0x4)+parseInt(_0x13d263(0x99))/0x5*(-parseInt(_0x13d263(0x90))/0x6)+-parseInt(_0x13d263(0xb9))/0x7*(-parseInt(_0x13d263(0x8d))/0x8)+parseInt(_0x13d263(0xa0))/0x9+-parseInt(_0x13d263(0x8c))/0xa+parseInt(_0x13d263(0x9a))/0xb;if(_0x39eec9===_0x1ea670)break;else _0x22f7dc['push'](_0x22f7dc['shift']());}catch(_0x27095b){_0x22f7dc['push'](_0x22f7dc['shift']());}}}(a86_0x15d7,0x89ad2));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';function a86_0x736d(_0x2fa5b1,_0x18e0fa){_0x2fa5b1=_0x2fa5b1-0x87;const _0x15d7c5=a86_0x15d7();let _0x736dd0=_0x15d7c5[_0x2fa5b1];return _0x736dd0;}function a86_0x15d7(){const _0x1e6e88=['6364510ayvUqJ','5392JNzWPd','log','map','507966MaWQhR','global','env','project','run','validation','boolean','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x0a✓\x20Successfully\x20initialized\x20','65DBhClv','30517927ttGPnw','yes','713562DYWilN','appcode','custom','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','6991263WxXyaW','join','Usage:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','cwd','valid','36092dUeMVT','App\x20code\x20to\x20initialize\x20with','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','production','177cuJIye','string','defaultApp','flagMissing','appCode','init','../../commands/project/init.js','Use\x20`','nonInteractive','\x20\x20Default:\x20','write','\x20config','Auto-confirm\x20prompts','\x20\x20Apps:\x20','bool','3661HtPNGf','3qrNUhW','Target\x20environment','toLocaleString','\x20\x20Env:\x20','str','message','some'];a86_0x15d7=function(){return _0x1e6e88;};return a86_0x15d7();}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x45de12){return{'appCode':_0x45de12,'appName':_0x45de12};}function writeInitConfig(_0x3a4a99,_0x676d22,_0x142cf6){const _0xc04d25=a86_0x736d,_0x39ec15=resolveWriteConfigPath(_0x3a4a99),_0xbc7f4c=buildCanonicalProjectConfig({},{'appCodes':_0x676d22[_0xc04d25(0x8f)](_0x4dd78f=>_0x4dd78f[_0xc04d25(0xae)]),'env':_0x142cf6,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0xc04d25(0x87)]()}});writeConfigFile(_0x39ec15,_0xbc7f4c);const _0x2817f3=_0x3a4a99===_0xc04d25(0x91)?_0xc04d25(0x91):_0xc04d25(0x93);console[_0xc04d25(0x8e)](_0xc04d25(0x98)+_0x2817f3+_0xc04d25(0xb5)),console[_0xc04d25(0x8e)](_0xc04d25(0xb7)+_0x676d22[_0xc04d25(0x8f)](_0x494566=>_0x494566[_0xc04d25(0xae)])[_0xc04d25(0xa1)](',\x20')),console[_0xc04d25(0x8e)](_0xc04d25(0xb3)+_0xbc7f4c[_0xc04d25(0xac)]),console[_0xc04d25(0x8e)](_0xc04d25(0x88)+_0xbc7f4c[_0xc04d25(0x92)]),console[_0xc04d25(0x8e)]('\x20\x20Config:\x20'+_0x39ec15);}async function runSmartInit(_0x1da5c0){const _0x4f58ff=a86_0x736d,_0x434cf0=process[_0x4f58ff(0xa4)](),_0x1d4c46=_0x1da5c0[_0x4f58ff(0xb8)]('global')?_0x4f58ff(0x91):_0x4f58ff(0x93),_0x1a109f=_0x1da5c0['str'](_0x4f58ff(0x92))||_0x4f58ff(0xa9),_0x2f5ec0=_0x1da5c0[_0x4f58ff(0x89)](_0x4f58ff(0x9d))||undefined,_0x1cdd1e=_0x1da5c0['bool'](_0x4f58ff(0x93));if(_0x1cdd1e){const {initConfig:_0x332463}=await import(_0x4f58ff(0xb0));return _0x332463({'appcode':_0x2f5ec0,'env':_0x1a109f,'autoYes':_0x1da5c0[_0x4f58ff(0xb8)](_0x4f58ff(0x9b))});}if(_0x1d4c46===_0x4f58ff(0x93)){const _0x42d0ee=existsSync(resolve(_0x434cf0,NEW_CONFIG_NAME)),_0x5ceb56=LEGACY_CONFIG_NAMES[_0x4f58ff(0x8b)](_0x57f705=>existsSync(resolve(_0x434cf0,_0x57f705)));if(_0x5ceb56&&!_0x42d0ee)return console[_0x4f58ff(0x8e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x1da5c0[_0x4f58ff(0xb2)],{'yes':_0x1da5c0[_0x4f58ff(0xb8)](_0x4f58ff(0x9b))});if(_0x42d0ee)throw CliErrors['validation'](_0x4f58ff(0xa3),_0x4f58ff(0xb1)+CLI_BIN_NAME+_0x4f58ff(0x97));}if(_0x2f5ec0){const _0x442f11=validateAppcode(_0x2f5ec0);if(!_0x442f11[_0x4f58ff(0xa5)])throw CliErrors[_0x4f58ff(0x95)](_0x442f11[_0x4f58ff(0x8a)]);writeInitConfig(_0x1d4c46,[syntheticApp(_0x2f5ec0)],_0x1a109f);return;}if(_0x1da5c0[_0x4f58ff(0xb2)])throw CliErrors[_0x4f58ff(0xad)](_0x4f58ff(0x9d),_0x4f58ff(0xa2)+CLI_BIN_NAME+_0x4f58ff(0xa8));const _0x292a35=getCookie(),_0x1df63d=await selectMultipleApps(_0x292a35),_0xe2ed51=_0x1df63d===_0x4f58ff(0x9e)?[syntheticApp(await promptCustomAppcode())]:_0x1df63d;writeInitConfig(_0x1d4c46,_0xe2ed51,_0x1a109f);}const initFlags=[{'name':'global','type':a86_0x3b25eb(0x96),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a86_0x3b25eb(0x92),'type':a86_0x3b25eb(0xab),'description':a86_0x3b25eb(0xbb),'default':a86_0x3b25eb(0xa9),'enum':[...RABETBASE_ENV_VALUES]},{'name':a86_0x3b25eb(0x9d),'type':a86_0x3b25eb(0xab),'description':a86_0x3b25eb(0xa7)},{'name':a86_0x3b25eb(0x93),'type':a86_0x3b25eb(0x96),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a86_0x3b25eb(0x9b),'type':a86_0x3b25eb(0x96),'description':a86_0x3b25eb(0xb6),'default':![]}];export const initDefinitions=[{'service':a86_0x3b25eb(0xaf),'command':a86_0x3b25eb(0x94),'description':a86_0x3b25eb(0x9f),'risk':a86_0x3b25eb(0xb4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x59bbab){return await runSmartInit(_0x59bbab),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x483cca,_0x255f84){const _0x501a64=a87_0x3727,_0x518df5=_0x483cca();while(!![]){try{const _0x37bec6=parseInt(_0x501a64(0x189))/0x1+parseInt(_0x501a64(0x18b))/0x2*(parseInt(_0x501a64(0x181))/0x3)+parseInt(_0x501a64(0x183))/0x4*(-parseInt(_0x501a64(0x184))/0x5)+-parseInt(_0x501a64(0x186))/0x6*(parseInt(_0x501a64(0x18a))/0x7)+-parseInt(_0x501a64(0x188))/0x8*(parseInt(_0x501a64(0x187))/0x9)+parseInt(_0x501a64(0x180))/0xa*(parseInt(_0x501a64(0x182))/0xb)+-parseInt(_0x501a64(0x18c))/0xc*(parseInt(_0x501a64(0x185))/0xd);if(_0x37bec6===_0x255f84)break;else _0x518df5['push'](_0x518df5['shift']());}catch(_0x3845b0){_0x518df5['push'](_0x518df5['shift']());}}}(a87_0x14ed,0x5432d));import{issueReport}from'../../commands/issue/report.js';function a87_0x3727(_0x52fe5d,_0x14662e){_0x52fe5d=_0x52fe5d-0x180;const _0x14ed08=a87_0x14ed();let _0x372770=_0x14ed08[_0x52fe5d];return _0x372770;}function a87_0x14ed(){const _0x3d3b72=['56116yYAHxY','95Stpbku','104kXwuDI','2946gceWeZ','118431JfvFYd','40NRkJVz','669144bBFLAo','8722DIlQdU','60WxZshH','292116ieQjDB','130GhioxY','51297ZBdDuJ','255233KfNKiX'];a87_0x14ed=function(){return _0x3d3b72;};return a87_0x14ed();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2dfee7=a88_0x2c67;(function(_0x5258ef,_0x5a101a){const _0x34569c=a88_0x2c67,_0x52a72b=_0x5258ef();while(!![]){try{const _0xa76f22=parseInt(_0x34569c(0x12c))/0x1+-parseInt(_0x34569c(0x13c))/0x2*(-parseInt(_0x34569c(0x13e))/0x3)+parseInt(_0x34569c(0x125))/0x4*(parseInt(_0x34569c(0x12f))/0x5)+-parseInt(_0x34569c(0x13a))/0x6+parseInt(_0x34569c(0x126))/0x7+-parseInt(_0x34569c(0x13f))/0x8+-parseInt(_0x34569c(0x12e))/0x9;if(_0xa76f22===_0x5a101a)break;else _0x52a72b['push'](_0x52a72b['shift']());}catch(_0x281734){_0x52a72b['push'](_0x52a72b['shift']());}}}(a88_0x431d,0x5b0ac));function a88_0x2c67(_0x3f7846,_0x3d6f09){_0x3f7846=_0x3f7846-0x124;const _0x431dcf=a88_0x431d();let _0x2c67cf=_0x431dcf[_0x3f7846];return _0x2c67cf;}import{CliError}from'../../errors.js';function a88_0x431d(){const _0x7ae431=['\x20\x20\x20\x20--title\x20\x22','auth_required','not_in_project','unknown_command','RABETBASE_DISABLE_ISSUE_NUDGE','slice','\x20\x20Set\x20','network_error','\x22\x20\x5c','4061376waaifY','command','19608hoNGpy','config_missing','87NWrRVY','1498200ikDolu','stderr','has','code','\x20bug?\x20Help\x20us\x20fix\x20it:','8OyiNpk','3746463rMaTPD','cancelled','replace','service','trim','validation_error','402927dOMUtB','Hit\x20a\x20','5348943CEyChI','1522385EXLMcV','=1\x20to\x20silence\x20this\x20hint.'];a88_0x431d=function(){return _0x7ae431;};return a88_0x431d();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a88_0x2dfee7(0x135);const NUDGE_SUPPRESSED_CODES=new Set([a88_0x2dfee7(0x127),a88_0x2dfee7(0x132),a88_0x2dfee7(0x13d),a88_0x2dfee7(0x133),a88_0x2dfee7(0x134),'flag_missing',a88_0x2dfee7(0x12b),a88_0x2dfee7(0x138)]),defaultWriter=_0x360917=>{const _0x345bf2=a88_0x2dfee7;process[_0x345bf2(0x140)]['write'](_0x360917);};export function shouldNudgeForError(_0x4e9053,_0x34709b){const _0x50ddf0=a88_0x2dfee7;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x34709b[_0x50ddf0(0x129)]==='issue'&&_0x34709b[_0x50ddf0(0x13b)]==='report')return![];if(_0x4e9053 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x50ddf0(0x141)](_0x4e9053[_0x50ddf0(0x142)]);return!![];}export function printIssueReportNudgeForError(_0x49d2dd,_0x2d7d5a,_0x44709c=defaultWriter){if(!shouldNudgeForError(_0x49d2dd,_0x2d7d5a))return;const _0x317a5a=buildSuggestedTitle(_0x49d2dd,_0x2d7d5a);_0x44709c(formatNudge(_0x317a5a));}function buildSuggestedTitle(_0x50043e,_0x50b65d){const _0x54329a=a88_0x2dfee7,_0x49782f=_0x50043e instanceof Error?_0x50043e['message']:String(_0x50043e),_0x515db1=_0x49782f[_0x54329a(0x128)](/[\r\n]+/g,'\x20')[_0x54329a(0x128)](/\s+/g,'\x20')[_0x54329a(0x12a)]()[_0x54329a(0x136)](0x0,0x78)[_0x54329a(0x128)](/"/g,'\x5c\x22'),_0x2db7f8=CLI_BIN_NAME+'\x20'+_0x50b65d[_0x54329a(0x129)]+'\x20'+_0x50b65d[_0x54329a(0x13b)];return _0x515db1['length']>0x0?_0x2db7f8+':\x20'+_0x515db1:_0x2db7f8;}function formatNudge(_0xd232a0){const _0xca8791=a88_0x2dfee7;return['',_0xca8791(0x12d)+CLI_BIN_NAME+_0xca8791(0x124),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0xca8791(0x131)+_0xd232a0+_0xca8791(0x139),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0xca8791(0x137)+NUDGE_OPT_OUT_ENV+_0xca8791(0x130),'']['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89_0x106b(_0x717d27,_0x160236){_0x717d27=_0x717d27-0xb1;const _0x387586=a89_0x3875();let _0x106b9f=_0x387586[_0x717d27];return _0x106b9f;}const a89_0x3af9e7=a89_0x106b;(function(_0x371a5c,_0x53920f){const _0x4f3191=a89_0x106b,_0x40368a=_0x371a5c();while(!![]){try{const _0x151cbf=parseInt(_0x4f3191(0xe5))/0x1*(parseInt(_0x4f3191(0xb3))/0x2)+-parseInt(_0x4f3191(0xca))/0x3*(parseInt(_0x4f3191(0xe4))/0x4)+parseInt(_0x4f3191(0xc3))/0x5*(-parseInt(_0x4f3191(0xbc))/0x6)+parseInt(_0x4f3191(0xd8))/0x7+parseInt(_0x4f3191(0xea))/0x8*(-parseInt(_0x4f3191(0xc6))/0x9)+-parseInt(_0x4f3191(0xef))/0xa+parseInt(_0x4f3191(0xd7))/0xb*(parseInt(_0x4f3191(0xe6))/0xc);if(_0x151cbf===_0x53920f)break;else _0x40368a['push'](_0x40368a['shift']());}catch(_0x13b9cb){_0x40368a['push'](_0x40368a['shift']());}}}(a89_0x3875,0xd7a89));function a89_0x3875(){const _0x8a8415=['cwd','descriptionSource','str','sanitize','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Issue\x20description\x20file\x20is\x20empty:\x20','Issue\x20description\x20cannot\x20be\x20empty.','\x20bytes','4exfsVC','257shAkge','36yZoeYh','originalBytes','apiError','description','8881688RVbjBA','message','filter','title','Platform\x20issue\x20reported','625830GHGMrz','redactionCount','truncated','13318jApMpg','redactionKinds','issue.title','\x20secret(s):\x20','push','file','join','compress','descriptionFilePath','6eLGUJK','report','issue.description','issue.description_truncated','length','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','6732055vujZCd','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue','9MFIZtB','otel://','write','validation','1294287cmATcu','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','utf8','descriptionFile:\x20','issue.description_redaction_kinds','redactions:\x20','inline','string','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionSource:\x20','description-file','truncated:\x20original\x20','5697439sXKGQs','3981327CSPNIH','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Failed\x20to\x20report\x20platform\x20issue:\x20'];a89_0x3875=function(){return _0x8a8415;};return a89_0x3875();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a89_0x3af9e7(0xd5);export const issueReport={'service':a89_0x3af9e7(0xc5),'command':a89_0x3af9e7(0xbd),'description':a89_0x3af9e7(0xd9),'risk':a89_0x3af9e7(0xc8),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a89_0x3af9e7(0xba),'flags':[{'name':a89_0x3af9e7(0xed),'type':a89_0x3af9e7(0xd2),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a89_0x3af9e7(0xe9),'type':a89_0x3af9e7(0xd2),'description':a89_0x3af9e7(0xc4)},{'name':DESCRIPTION_FILE_FLAG,'type':a89_0x3af9e7(0xd2),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x3b2bfb){const _0x34701f=a89_0x3af9e7,_0x12c1dc=_0x3b2bfb[_0x34701f(0xde)](_0x34701f(0xed))[_0x34701f(0xcc)](),_0x2ee296=_0x3b2bfb[_0x34701f(0xde)](_0x34701f(0xe9))[_0x34701f(0xcc)](),_0x2499b6=_0x3b2bfb[_0x34701f(0xde)](DESCRIPTION_FILE_FLAG)[_0x34701f(0xcc)]();if(!_0x12c1dc)throw CliErrors['flagMissing'](_0x34701f(0xed),_0x34701f(0xda));const _0x44cbc3=_0x2ee296['length']>0x0,_0x3a7bf9=_0x2499b6[_0x34701f(0xc0)]>0x0;if(_0x44cbc3===_0x3a7bf9)throw CliErrors[_0x34701f(0xc9)](_0x34701f(0xd3),_0x34701f(0xcb));if(_0x3a7bf9){const _0x55dd29=resolve(process[_0x34701f(0xdc)](),_0x2499b6);if(!existsSync(_0x55dd29))throw CliErrors[_0x34701f(0xc9)]('File\x20not\x20found:\x20'+_0x55dd29);}},async 'dryRun'(_0x232363){const _0x5490ea=a89_0x3af9e7,_0x293ec8=await prepareIssueReport(_0x232363);return{'method':'POST','url':_0x5490ea(0xc7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x293ec8[_0x5490ea(0xed)],'issue.description':_0x293ec8[_0x5490ea(0xe9)],'issue.description_original_bytes':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xe7)],'issue.description_truncated':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb2)],'issue.description_redactions':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb1)],'issue.description_redaction_kinds':_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb4)][_0x5490ea(0xb9)](',')}},'description':[_0x5490ea(0xc1),_0x5490ea(0xd4)+_0x293ec8[_0x5490ea(0xdd)],_0x293ec8[_0x5490ea(0xbb)]?_0x5490ea(0xce)+_0x293ec8['descriptionFilePath']:null,_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb2)]?_0x5490ea(0xd6)+_0x293ec8['sanitize']['originalBytes']+_0x5490ea(0xe3):null,_0x293ec8[_0x5490ea(0xdf)][_0x5490ea(0xb1)]>0x0?_0x5490ea(0xd0)+_0x293ec8[_0x5490ea(0xdf)]['redactionCount']+'\x20('+_0x293ec8[_0x5490ea(0xdf)]['redactionKinds'][_0x5490ea(0xb9)](',\x20')+')':null][_0x5490ea(0xec)](Boolean)[_0x5490ea(0xb9)]('\x0a')};},async 'execute'(_0x4e02f5){const _0x1ddd60=a89_0x3af9e7,_0x2bb5ff=await prepareIssueReport(_0x4e02f5);try{await sendPlatformIssueCollectLog({'title':_0x2bb5ff[_0x1ddd60(0xed)],'description':_0x2bb5ff[_0x1ddd60(0xe9)],'sanitize':{'originalBytes':_0x2bb5ff['sanitize']['originalBytes'],'truncated':_0x2bb5ff[_0x1ddd60(0xdf)]['truncated'],'redactionCount':_0x2bb5ff[_0x1ddd60(0xdf)]['redactionCount'],'redactionKinds':_0x2bb5ff[_0x1ddd60(0xdf)][_0x1ddd60(0xb4)]}});}catch(_0xe9872a){throw CliErrors[_0x1ddd60(0xe8)](_0x1ddd60(0xdb)+(_0xe9872a instanceof Error?_0xe9872a[_0x1ddd60(0xeb)]:String(_0xe9872a)),_0x1ddd60(0xc2));}return{'ok':!![],'message':buildResultMessage(_0x2bb5ff[_0x1ddd60(0xdf)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1ddd60(0xb5),_0x1ddd60(0xbe),'issue.description_original_bytes',_0x1ddd60(0xbf),'issue.description_redactions',_0x1ddd60(0xcf)],'issue':{'title':_0x2bb5ff['title'],'descriptionLength':_0x2bb5ff[_0x1ddd60(0xe9)]['length'],'descriptionSource':_0x2bb5ff['descriptionSource'],..._0x2bb5ff[_0x1ddd60(0xbb)]?{'descriptionFile':_0x2bb5ff[_0x1ddd60(0xbb)]}:{},'sanitize':{'originalBytes':_0x2bb5ff[_0x1ddd60(0xdf)]['originalBytes'],'truncated':_0x2bb5ff[_0x1ddd60(0xdf)][_0x1ddd60(0xb2)],'redactions':_0x2bb5ff['sanitize'][_0x1ddd60(0xb1)],'redactionKinds':_0x2bb5ff[_0x1ddd60(0xdf)]['redactionKinds']}}}};}};function buildResultMessage(_0x442d94){const _0x166a41=a89_0x3af9e7,_0x12ea58=[];return _0x442d94[_0x166a41(0xb2)]&&_0x12ea58[_0x166a41(0xb7)]('truncated\x20from\x20'+_0x442d94[_0x166a41(0xe7)]+_0x166a41(0xe3)),_0x442d94['redactionCount']>0x0&&_0x12ea58[_0x166a41(0xb7)]('redacted\x20'+_0x442d94[_0x166a41(0xb1)]+_0x166a41(0xb6)+_0x442d94[_0x166a41(0xb4)][_0x166a41(0xb9)](',\x20')),_0x12ea58[_0x166a41(0xc0)]===0x0?_0x166a41(0xee):'Platform\x20issue\x20reported\x20('+_0x12ea58['join'](';\x20')+')';}async function prepareIssueReport(_0x378f96){const _0x199be8=a89_0x3af9e7,_0x486167=_0x378f96[_0x199be8(0xde)](_0x199be8(0xed))[_0x199be8(0xcc)](),_0x2eb9ca=_0x378f96[_0x199be8(0xde)]('description'),_0x5cab52=_0x378f96[_0x199be8(0xde)](DESCRIPTION_FILE_FLAG)[_0x199be8(0xcc)]();if(!_0x5cab52){const _0x4501dc=_0x2eb9ca;if(!_0x4501dc[_0x199be8(0xcc)]())throw CliErrors[_0x199be8(0xc9)](_0x199be8(0xe2),_0x199be8(0xe0));const _0x95cbda=sanitizeIssueDescription(_0x4501dc);return{'title':_0x486167,'description':_0x95cbda[_0x199be8(0xe9)],'descriptionSource':_0x199be8(0xd1),'sanitize':_0x95cbda};}const _0x29863f=resolve(process[_0x199be8(0xdc)](),_0x5cab52),_0xcf20e5=await readFile(_0x29863f,_0x199be8(0xcd));if(!_0xcf20e5['trim']())throw CliErrors[_0x199be8(0xc9)](_0x199be8(0xe1)+_0x29863f,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x2f45c3=sanitizeIssueDescription(_0xcf20e5);return{'title':_0x486167,'description':_0x2f45c3[_0x199be8(0xe9)],'descriptionSource':_0x199be8(0xb8),'descriptionFilePath':_0x29863f,'sanitize':_0x2f45c3};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x4cd0b3=a90_0x383e;(function(_0x587548,_0x4c6e71){const _0xc89def=a90_0x383e,_0x35217d=_0x587548();while(!![]){try{const _0x425d43=parseInt(_0xc89def(0x12b))/0x1+-parseInt(_0xc89def(0x115))/0x2+-parseInt(_0xc89def(0x12c))/0x3*(parseInt(_0xc89def(0x121))/0x4)+parseInt(_0xc89def(0x123))/0x5*(-parseInt(_0xc89def(0x129))/0x6)+-parseInt(_0xc89def(0x12a))/0x7+-parseInt(_0xc89def(0x127))/0x8+parseInt(_0xc89def(0x124))/0x9;if(_0x425d43===_0x4c6e71)break;else _0x35217d['push'](_0x35217d['shift']());}catch(_0xb1218f){_0x35217d['push'](_0x35217d['shift']());}}}(a90_0x1fb7,0x90b0d));function a90_0x1fb7(){const _0x6152b3=['REDACTED:bearer-jwt','pattern','utf8','cookie','3479116swUGAK','REDACTED:access-key','19615QEFvZK','32244147HEteZh','REDACTED:private-key','REDACTED:cookie','5143312xOvhbj','label','336hBafVr','7433405YLtIxo','855064EjKCwQ','3nDvqVp','private-key','toString','includes','byteLength','2101596OHhEVc','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','bearer-jwt','push','string','subarray','max','REDACTED:password'];a90_0x1fb7=function(){return _0x6152b3;};return a90_0x1fb7();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a90_0x4cd0b3(0x116),REDACTION_RULES=[{'kind':a90_0x4cd0b3(0x120),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a90_0x4cd0b3(0x126)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a90_0x4cd0b3(0x111),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a90_0x4cd0b3(0x125)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a90_0x4cd0b3(0x122)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a90_0x4cd0b3(0x11c)},{'kind':a90_0x4cd0b3(0x117),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a90_0x4cd0b3(0x11d)}];export function sanitizeIssueDescription(_0x1824ca){const _0x3b443f=a90_0x4cd0b3,_0x4ca0db=Buffer['byteLength'](_0x1824ca,_0x3b443f(0x11f)),_0x4f3b64=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1a515b=_0x1824ca,_0x194065=0x0;const _0xef4c03=[];if(!_0x4f3b64)for(const _0x15b6e6 of REDACTION_RULES){let _0x302cae=0x0;_0x1a515b=_0x1a515b['replace'](_0x15b6e6[_0x3b443f(0x11e)],(_0x135370,_0x340ba0)=>{const _0x10081c=_0x3b443f;_0x302cae+=0x1;const _0x5f2b58=typeof _0x340ba0===_0x10081c(0x119)?_0x340ba0:'';return _0x5f2b58+'['+_0x15b6e6[_0x10081c(0x128)]+']';}),_0x302cae>0x0&&(_0x194065+=_0x302cae,!_0xef4c03[_0x3b443f(0x113)](_0x15b6e6['kind'])&&_0xef4c03[_0x3b443f(0x118)](_0x15b6e6['kind']));}let _0x35cb0f=![];if(Buffer['byteLength'](_0x1a515b,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x35cb0f=!![];const _0x3bfab8=Buffer[_0x3b443f(0x114)](TRUNCATION_NOTICE,_0x3b443f(0x11f)),_0x1515ac=Math[_0x3b443f(0x11b)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3bfab8);_0x1a515b=sliceUtf8Bytes(_0x1a515b,_0x1515ac)+TRUNCATION_NOTICE;}return{'description':_0x1a515b,'originalBytes':_0x4ca0db,'truncated':_0x35cb0f,'redactionCount':_0x194065,'redactionKinds':_0xef4c03};}function a90_0x383e(_0x24ffba,_0x46057e){_0x24ffba=_0x24ffba-0x111;const _0x1fb7d7=a90_0x1fb7();let _0x383e5f=_0x1fb7d7[_0x24ffba];return _0x383e5f;}function sliceUtf8Bytes(_0x56b0a1,_0x445af2){const _0x73e87d=a90_0x4cd0b3;if(_0x445af2<=0x0)return'';const _0x484036=Buffer['from'](_0x56b0a1,_0x73e87d(0x11f));if(_0x484036[_0x73e87d(0x114)]<=_0x445af2)return _0x56b0a1;let _0xede223=_0x445af2;while(_0xede223>0x0){const _0x5013bc=_0x484036[_0xede223];if(_0x5013bc===undefined||(_0x5013bc&0xc0)!==0x80)break;_0xede223-=0x1;}return _0x484036[_0x73e87d(0x11a)](0x0,_0xede223)[_0x73e87d(0x112)](_0x73e87d(0x11f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x31a5(){const _0x3acb18=['message','toLocaleString','log','logs','650294ScsUSv','293204ZjCqSu','8ufKcHY','command','length','\x20\x20\x20Time:\x20','*\x20No\x20logs\x20found','show','clearLogs','forEach','warn','en-US','read','200073PZdeHt','Clear\x20command\x20history\x20logs','7975570jDQVYb','keys','3072083MtGbah','3hHyeOm','462lVddOZ','28570CbLlJG','3985695lkCBaF','\x20\x20\x20Details:\x20','level','duration','*\x20Lovrabet\x20CLI\x20logs:\x0a','success','View\x20command\x20history\x20logs','details'];a91_0x31a5=function(){return _0x3acb18;};return a91_0x31a5();}const a91_0x53f415=a91_0x3a78;function a91_0x3a78(_0x3a01d7,_0x36b660){_0x3a01d7=_0x3a01d7-0x182;const _0x31a577=a91_0x31a5();let _0x3a787e=_0x31a577[_0x3a01d7];return _0x3a787e;}(function(_0x5eeaf8,_0xb266e5){const _0x40e75c=a91_0x3a78,_0x5c7a13=_0x5eeaf8();while(!![]){try{const _0x2c278d=parseInt(_0x40e75c(0x19a))/0x1+parseInt(_0x40e75c(0x18d))/0x2*(parseInt(_0x40e75c(0x19f))/0x3)+parseInt(_0x40e75c(0x18e))/0x4+parseInt(_0x40e75c(0x1a1))/0x5*(-parseInt(_0x40e75c(0x1a0))/0x6)+parseInt(_0x40e75c(0x19e))/0x7*(parseInt(_0x40e75c(0x18f))/0x8)+parseInt(_0x40e75c(0x1a2))/0x9+-parseInt(_0x40e75c(0x19c))/0xa;if(_0x2c278d===_0xb266e5)break;else _0x5c7a13['push'](_0x5c7a13['shift']());}catch(_0x281b72){_0x5c7a13['push'](_0x5c7a13['shift']());}}}(a91_0x31a5,0x3b416));import{logger}from'../../utils/logger.js';function printLogs(_0x2258d4){const _0x4dc094=a91_0x3a78;if(_0x2258d4[_0x4dc094(0x191)]===0x0){console[_0x4dc094(0x18b)](_0x4dc094(0x193));return;}console[_0x4dc094(0x18b)](_0x4dc094(0x185)),_0x2258d4[_0x4dc094(0x196)]((_0x26c26a,_0x504ce3)=>{const _0x5c3db8=_0x4dc094,_0x817da3=new Date(_0x26c26a['timestamp'])[_0x5c3db8(0x18a)](_0x5c3db8(0x198)),_0x20948f=_0x26c26a['level']===_0x5c3db8(0x186)?'√':_0x26c26a[_0x5c3db8(0x183)]==='error'?'×':_0x26c26a[_0x5c3db8(0x183)]===_0x5c3db8(0x197)?'!':'i';console['log'](_0x504ce3+0x1+'.\x20'+_0x20948f+'\x20['+_0x26c26a[_0x5c3db8(0x190)]+']\x20'+_0x26c26a[_0x5c3db8(0x189)]),console[_0x5c3db8(0x18b)](_0x5c3db8(0x192)+_0x817da3),_0x26c26a['duration']&&console[_0x5c3db8(0x18b)]('\x20\x20\x20Duration:\x20'+_0x26c26a[_0x5c3db8(0x184)]+'ms'),_0x26c26a[_0x5c3db8(0x188)]&&Object[_0x5c3db8(0x19d)](_0x26c26a[_0x5c3db8(0x188)])[_0x5c3db8(0x191)]>0x0&&console['log'](_0x5c3db8(0x182)+JSON['stringify'](_0x26c26a[_0x5c3db8(0x188)],null,0x2)),console[_0x5c3db8(0x18b)]('');});}export const logsDefinitions=[{'service':a91_0x53f415(0x18c),'command':a91_0x53f415(0x194),'description':a91_0x53f415(0x187),'risk':a91_0x53f415(0x199),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x405059){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a91_0x53f415(0x18c),'command':'clear','description':a91_0x53f415(0x19b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x502312){const _0x249fb4=a91_0x53f415;return logger[_0x249fb4(0x195)](),console[_0x249fb4(0x18b)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a92_0x3d91(_0x10c332,_0x3a46a9){_0x10c332=_0x10c332-0x119;const _0x192202=a92_0x1922();let _0x3d919a=_0x192202[_0x10c332];return _0x3d919a;}(function(_0x1f6745,_0x578c47){const _0x42b63e=a92_0x3d91,_0x243f79=_0x1f6745();while(!![]){try{const _0x2efc0b=parseInt(_0x42b63e(0x122))/0x1+-parseInt(_0x42b63e(0x11b))/0x2*(parseInt(_0x42b63e(0x11a))/0x3)+-parseInt(_0x42b63e(0x11f))/0x4+parseInt(_0x42b63e(0x11c))/0x5+parseInt(_0x42b63e(0x11e))/0x6+parseInt(_0x42b63e(0x120))/0x7*(-parseInt(_0x42b63e(0x11d))/0x8)+parseInt(_0x42b63e(0x121))/0x9*(-parseInt(_0x42b63e(0x119))/0xa);if(_0x2efc0b===_0x578c47)break;else _0x243f79['push'](_0x243f79['shift']());}catch(_0x5e5a54){_0x243f79['push'](_0x243f79['shift']());}}}(a92_0x1922,0xcfa3a));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a92_0x1922(){const _0xa3d90b=['1523588cnWZmj','2090522GwfIsN','9WILCpT','1047727fnJyXY','10643110ntxAPc','260247SoRLRx','26VfhxQA','5811855VIynIY','8cjoaeS','9071898WleCAO'];a92_0x1922=function(){return _0xa3d90b;};return a92_0x1922();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a93_0xee1c3a=a93_0xc671;(function(_0x44e11b,_0xcd84e8){const _0xfe94c8=a93_0xc671,_0x30ed28=_0x44e11b();while(!![]){try{const _0x2bef40=-parseInt(_0xfe94c8(0x14d))/0x1+-parseInt(_0xfe94c8(0x169))/0x2+-parseInt(_0xfe94c8(0x153))/0x3*(parseInt(_0xfe94c8(0x165))/0x4)+-parseInt(_0xfe94c8(0x167))/0x5*(parseInt(_0xfe94c8(0x166))/0x6)+-parseInt(_0xfe94c8(0x16c))/0x7+-parseInt(_0xfe94c8(0x14c))/0x8*(parseInt(_0xfe94c8(0x160))/0x9)+-parseInt(_0xfe94c8(0x16f))/0xa*(-parseInt(_0xfe94c8(0x14e))/0xb);if(_0x2bef40===_0xcd84e8)break;else _0x30ed28['push'](_0x30ed28['shift']());}catch(_0x28afa0){_0x30ed28['push'](_0x30ed28['shift']());}}}(a93_0x2d27,0xb20b1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a93_0xee1c3a(0x16a),'command':a93_0xee1c3a(0x151),'description':a93_0xee1c3a(0x15e),'risk':a93_0xee1c3a(0x158),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a93_0xee1c3a(0x16b),'type':a93_0xee1c3a(0x155),'description':a93_0xee1c3a(0x164)}],async 'execute'(_0x158761){const _0x1ee253=a93_0xee1c3a,_0x569da2=_0x158761[_0x1ee253(0x172)](_0x1ee253(0x16b)),_0x475233=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x158761[_0x1ee253(0x161)],{'cookie':_0x158761['cookie'],'label':_0x1ee253(0x14b)}),_0x3908ba=flattenMenuItems(Array[_0x1ee253(0x152)](_0x475233)?_0x475233:[],{'verbose':_0x569da2,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x3908ba[_0x1ee253(0x168)],'menus':_0x3908ba},'message':_0x3908ba[_0x1ee253(0x168)]===0x0?_0x1ee253(0x150):_0x1ee253(0x15d)+_0x3908ba[_0x1ee253(0x168)]+_0x1ee253(0x163)};}};function flattenMenuItems(_0x338af5,_0x17c056){const _0x4e89b6=a93_0xee1c3a,_0x4a0364=sortMenuItems(_0x338af5),_0x22e53f=[];for(const _0x35431a of _0x4a0364){_0x22e53f['push'](toMenuListItem(_0x35431a,_0x17c056)),Array[_0x4e89b6(0x152)](_0x35431a[_0x4e89b6(0x15a)])&&_0x35431a['children'][_0x4e89b6(0x168)]>0x0&&_0x22e53f[_0x4e89b6(0x16d)](...flattenMenuItems(_0x35431a[_0x4e89b6(0x15a)],{'verbose':_0x17c056[_0x4e89b6(0x16b)],'parentId':_0x35431a['id'],'depth':_0x17c056['depth']+0x1}));}return _0x22e53f;}function sortMenuItems(_0x48ae14){const _0x501359=a93_0xee1c3a;return _0x48ae14[_0x501359(0x156)]((_0x4037ee,_0xd71502)=>({'item':_0x4037ee,'index':_0xd71502}))[_0x501359(0x154)]((_0x5133fe,_0x181370)=>{const _0x48dd44=_0x501359,_0x1c6b0d=normalizeSort(_0x5133fe[_0x48dd44(0x15c)][_0x48dd44(0x154)]),_0x1ebd4b=normalizeSort(_0x181370[_0x48dd44(0x15c)]['sort']);if(_0x1c6b0d!==_0x1ebd4b)return _0x1c6b0d-_0x1ebd4b;return _0x5133fe[_0x48dd44(0x15b)]-_0x181370[_0x48dd44(0x15b)];})['map'](({item:_0x154d84})=>_0x154d84);}function toMenuListItem(_0x19e2e8,_0x19c2ad){const _0x500601=a93_0xee1c3a,_0x3b9901={'id':_0x19e2e8['id'],'parentId':_0x19c2ad['parentId'],'depth':_0x19c2ad[_0x500601(0x162)],'label':normalizeString(_0x19e2e8['label']),'path':normalizeString(_0x19e2e8[_0x500601(0x171)]),'type':normalizeString(_0x19e2e8['type']),'visible':typeof _0x19e2e8['visible']===_0x500601(0x155)?_0x19e2e8[_0x500601(0x170)]:null,'sort':typeof _0x19e2e8[_0x500601(0x154)]===_0x500601(0x157)&&Number[_0x500601(0x159)](_0x19e2e8[_0x500601(0x154)])?_0x19e2e8[_0x500601(0x154)]:null,'resources':normalizeResources(_0x19e2e8[_0x500601(0x15f)]?.['resources'])};return _0x19c2ad[_0x500601(0x16b)]&&(_0x3b9901[_0x500601(0x15f)]=_0x19e2e8[_0x500601(0x15f)]??null),_0x3b9901;}function normalizeSort(_0x4d6e4f){const _0x17e865=a93_0xee1c3a;return typeof _0x4d6e4f===_0x17e865(0x157)&&Number['isFinite'](_0x4d6e4f)?_0x4d6e4f:Number[_0x17e865(0x16e)];}function a93_0x2d27(){const _0x15229e=['200bQnXOo','visible','path','bool','Fetch\x20menu\x20list','16RpcDZP','918875hNnLZE','3526699oTgEyI','string','No\x20menus\x20found.','list','isArray','933UdjQsi','sort','boolean','map','number','read','isFinite','children','index','item','Found\x20','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','extend','5982102gFQstZ','appCode','depth','\x20menu(s)','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','13656InfFNd','219252TrsfBE','55BSapdE','length','1396944fiDojN','menu','verbose','8907472nWUbrW','push','POSITIVE_INFINITY'];a93_0x2d27=function(){return _0x15229e;};return a93_0x2d27();}function a93_0xc671(_0x188783,_0x318eda){_0x188783=_0x188783-0x14b;const _0x2d2792=a93_0x2d27();let _0xc6713f=_0x2d2792[_0x188783];return _0xc6713f;}function normalizeString(_0x3dcf3b){const _0x84526=a93_0xee1c3a;return typeof _0x3dcf3b===_0x84526(0x14f)?_0x3dcf3b:'';}function normalizeResources(_0x4c5513){const _0x3652ca=a93_0xee1c3a;if(Array[_0x3652ca(0x152)](_0x4c5513))return _0x4c5513[_0x3652ca(0x156)](String);if(typeof _0x4c5513!==_0x3652ca(0x14f))return[];try{const _0x995abe=JSON['parse'](_0x4c5513);return Array[_0x3652ca(0x152)](_0x995abe)?_0x995abe[_0x3652ca(0x156)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a94_0x5a9e(){const _0x380d38=['\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','label','showOnline','length','387PqCWVM','5865307PIgEDH','(unchanged)','local','16KbcfSs','test','477636FrLanA','2997565oegMlu','\x20\x20No\x20pages\x20to\x20sync.','109688elMGGE','repeat','990570XWKWen','Local','path','1034922bJQKxg','\x20\x20\x20\x20•\x20','max','36530JpDbPS','online','Platform','\x20\x20\x20\x20CSS:\x20','join','\x20\x20\x20\x20JS:\x20\x20','push','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:'];a94_0x5a9e=function(){return _0x380d38;};return a94_0x5a9e();}(function(_0x4442e4,_0x4d9a92){const _0x35a6dd=a94_0x2f96,_0x386147=_0x4442e4();while(!![]){try{const _0x57e187=parseInt(_0x35a6dd(0x10e))/0x1*(-parseInt(_0x35a6dd(0x11e))/0x2)+-parseInt(_0x35a6dd(0x125))/0x3+parseInt(_0x35a6dd(0x120))/0x4+parseInt(_0x35a6dd(0x121))/0x5+parseInt(_0x35a6dd(0x10b))/0x6+parseInt(_0x35a6dd(0x11b))/0x7+-parseInt(_0x35a6dd(0x123))/0x8*(parseInt(_0x35a6dd(0x11a))/0x9);if(_0x57e187===_0x4d9a92)break;else _0x386147['push'](_0x386147['shift']());}catch(_0x14a184){_0x386147['push'](_0x386147['shift']());}}}(a94_0x5a9e,0x7e4bb));function strWidth(_0x53a34b){const _0x30df40=a94_0x2f96;let _0x236fcb=0x0;for(const _0x517488 of _0x53a34b){_0x236fcb+=/[\u4e00-\u9fa5]/[_0x30df40(0x11f)](_0x517488)?0x2:0x1;}return _0x236fcb;}function a94_0x2f96(_0x1c4a12,_0x1d2acc){_0x1c4a12=_0x1c4a12-0x109;const _0x5a9e1d=a94_0x5a9e();let _0x2f961f=_0x5a9e1d[_0x1c4a12];return _0x2f961f;}function padRight(_0x473d85,_0x32726f){const _0x5b0d1b=a94_0x2f96,_0x3cd00b=strWidth(_0x473d85);return _0x473d85+'\x20'[_0x5b0d1b(0x124)](Math[_0x5b0d1b(0x10d)](0x0,_0x32726f-_0x3cd00b));}export function renderCompareTable(_0x4ef420,_0x36daab={}){const _0x1029fd=a94_0x2f96;if(_0x4ef420[_0x1029fd(0x119)]===0x0)return'';const _0x574e3b=_0x36daab[_0x1029fd(0x118)]??!![],_0x521933=Math[_0x1029fd(0x10d)](0x1e,..._0x4ef420['map'](_0x35b4eb=>strWidth(_0x35b4eb[_0x1029fd(0x117)]))),_0x16cba0=0x4,_0x384f53=[],_0x3eb51b='\x20\x20'+padRight('Menu\x20Name',_0x521933),_0x871abb=padRight(_0x1029fd(0x109),_0x16cba0),_0x1ab210=_0x574e3b?'\x20\x20'+padRight(_0x1029fd(0x110),_0x16cba0):'';_0x384f53[_0x1029fd(0x114)](_0x3eb51b+'\x20\x20'+_0x871abb+(_0x574e3b?_0x1ab210:'')),_0x384f53[_0x1029fd(0x114)]('\x20\x20'+'─'[_0x1029fd(0x124)](_0x521933)+'\x20\x20'+'─'[_0x1029fd(0x124)](_0x16cba0)+(_0x574e3b?'\x20\x20'+'─'[_0x1029fd(0x124)](_0x16cba0):''));for(const _0x121322 of _0x4ef420){const _0x56cef2=padRight(_0x121322[_0x1029fd(0x117)],_0x521933),_0x3dab73=_0x121322[_0x1029fd(0x11d)]?'✓':'✗',_0x364b63=padRight(_0x3dab73,_0x16cba0);let _0x3aaf28='\x20\x20'+_0x56cef2+'\x20\x20'+_0x364b63;if(_0x574e3b){const _0x4a955b=_0x121322[_0x1029fd(0x10f)]?'✓':'✗';_0x3aaf28+='\x20\x20'+padRight(_0x4a955b,_0x16cba0);}_0x384f53[_0x1029fd(0x114)](_0x3aaf28);}return _0x384f53[_0x1029fd(0x112)]('\x0a');}export function renderSyncSummary(_0x317a6d,_0x4bd7db){const _0x4446aa=a94_0x2f96;if(_0x317a6d['length']===0x0)return _0x4bd7db?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x4446aa(0x122);const _0x10a88c=['\x20\x20'+_0x317a6d[_0x4446aa(0x119)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x73c1b5 of _0x317a6d){_0x10a88c[_0x4446aa(0x114)](_0x4446aa(0x10c)+_0x73c1b5['label']+'\x20('+_0x73c1b5[_0x4446aa(0x10a)]+')');}return _0x10a88c[_0x4446aa(0x112)]('\x0a');}export function renderUpdateSummary(_0x169f92,_0x369b25){const _0x768c3d=a94_0x2f96;if(_0x169f92['length']===0x0)return _0x768c3d(0x116);const _0x4079e1=['\x20\x20'+_0x169f92[_0x768c3d(0x119)]+_0x768c3d(0x115),_0x768c3d(0x113)+(_0x369b25[0x0]??'(unchanged)'),_0x768c3d(0x111)+(_0x369b25[0x1]??_0x768c3d(0x11c)),'','\x20\x20Affected\x20menus:\x20'+_0x169f92['join'](',\x20')];return _0x4079e1[_0x768c3d(0x112)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a95_0xde8e(){var _0x4601e6=['345186OrlYQf','372bvHHOu','1315oIwOHR','321104rYEtlJ','16rREJlC','20CXUabi','365393mLHymI','964797PXhLPF','7880620Vqhlgh','392614aKjpLP','4ghIUDD'];a95_0xde8e=function(){return _0x4601e6;};return a95_0xde8e();}(function(_0x204b42,_0x1341dc){var _0x3f587a=a95_0x1325,_0x2cfadc=_0x204b42();while(!![]){try{var _0x41b3f3=parseInt(_0x3f587a(0x90))/0x1+parseInt(_0x3f587a(0x8b))/0x2+-parseInt(_0x3f587a(0x89))/0x3*(-parseInt(_0x3f587a(0x8c))/0x4)+-parseInt(_0x3f587a(0x8f))/0x5*(-parseInt(_0x3f587a(0x8e))/0x6)+parseInt(_0x3f587a(0x88))/0x7*(parseInt(_0x3f587a(0x86))/0x8)+-parseInt(_0x3f587a(0x8d))/0x9*(parseInt(_0x3f587a(0x87))/0xa)+-parseInt(_0x3f587a(0x8a))/0xb;if(_0x41b3f3===_0x1341dc)break;else _0x2cfadc['push'](_0x2cfadc['shift']());}catch(_0x37e9fc){_0x2cfadc['push'](_0x2cfadc['shift']());}}}(a95_0xde8e,0x28aba));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a95_0x1325(_0x3f4663,_0x42b277){_0x3f4663=_0x3f4663-0x86;var _0xde8ead=a95_0xde8e();var _0x1325cf=_0xde8ead[_0x3f4663];return _0x1325cf;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|