@lovrabet/rabetbase-cli 2.4.3-beta.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-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/react/create.js +1 -1
- package/lib/commands/page/react/detail.js +1 -1
- package/lib/commands/page/react/list.js +1 -1
- package/lib/commands/page/react/publish.js +1 -1
- package/lib/commands/page/react/shared.js +1 -1
- package/lib/commands/page/react/syntax.js +1 -1
- package/lib/commands/page/react/template.js +1 -1
- package/lib/commands/page/react/update.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/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/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/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/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/guides/react-custom-page-workflow.md +9 -3
- package/skills/rabetbase/knowledge/react-page/generation-standards.md +13 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a91_0x37ec04=a91_0x3aac;(function(_0xf97cef,_0x5ba362){const _0x5665e3=a91_0x3aac,_0x3a6f1a=_0xf97cef();while(!![]){try{const _0x10642a=parseInt(_0x5665e3(0x103))/0x1*(parseInt(_0x5665e3(0xed))/0x2)+parseInt(_0x5665e3(0x104))/0x3+parseInt(_0x5665e3(0xe6))/0x4+-parseInt(_0x5665e3(0xfb))/0x5+parseInt(_0x5665e3(0x105))/0x6*(parseInt(_0x5665e3(0xff))/0x7)+-parseInt(_0x5665e3(0xfa))/0x8+-parseInt(_0x5665e3(0x101))/0x9;if(_0x10642a===_0x5ba362)break;else _0x3a6f1a['push'](_0x3a6f1a['shift']());}catch(_0x54880b){_0x3a6f1a['push'](_0x3a6f1a['shift']());}}}(a91_0xd814,0xad836));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';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a91_0xd814(){const _0x1752a3=['--password\x20must\x20contain\x20the\x20real\x20database\x20password,\x20not\x20a\x20masked\x20value.','The\x20server\x20returned\x20a\x20masked\x20database\x20password.\x20Pass\x20the\x20current\x20or\x20replacement\x20password\x20explicitly\x20with\x20--password\x20to\x20update\x20this\x20connection\x20safely.','dbDesc','New\x20database\x20name','Current\x20or\x20replacement\x20password.\x20Required\x20when\x20the\x20server\x20returns\x20a\x20masked\x20password','New\x20description','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20username','Update\x20a\x20database\x20connection\x20by\x20merging\x20supplied\x20fields\x20into\x20the\x20current\x20server\x20record.\x20A\x20masked\x20server\x20password\x20requires\x20explicit\x20--password','trim','dbParam','1883592CiLWWC','5586930hzpBvb','update','string','dburl','2296rcfkOI','str','22278456PEdUqD','dbparam','381RHBaRU','4021389YcJDCL','9696GrhDti','validation','has','dbdesc','/smartapi/dblink/update','username','[redacted]','num','5306144FZtcCy','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','New\x20connection\x20parameter\x20string','dbname','******','New\x20host:port','password','7044PrmDhe','dbUrl'];a91_0xd814=function(){return _0x1752a3;};return a91_0xd814();}function a91_0x3aac(_0x14e6b2,_0x20fade){_0x14e6b2=_0x14e6b2-0xe2;const _0xd81436=a91_0xd814();let _0x3aacb6=_0xd81436[_0x14e6b2];return _0x3aacb6;}const MASKED_PASSWORD_VALUES=new Set([a91_0x37ec04(0xea),a91_0x37ec04(0xe4)]);function mergeDbLinkUpdate(_0x2d2995,_0x3a261b){const _0x5684e0=a91_0x37ec04,_0x4073a4={..._0x2d2995},_0x2fa9bf=_0x3a261b['str']('password');if(_0x2fa9bf&&MASKED_PASSWORD_VALUES[_0x5684e0(0x107)](_0x2fa9bf))throw CliErrors[_0x5684e0(0x106)](_0x5684e0(0xef));if(!_0x2fa9bf&&MASKED_PASSWORD_VALUES[_0x5684e0(0x107)](String(_0x2d2995[_0x5684e0(0xec)]??'')))throw CliErrors[_0x5684e0(0x106)](_0x5684e0(0xf0));const _0x2b4da2=_0x3a261b[_0x5684e0(0x100)](_0x5684e0(0xe9));if(_0x2b4da2)_0x4073a4['dbName']=_0x2b4da2;const _0x8bfe82=_0x3a261b['str'](_0x5684e0(0xfe));if(_0x8bfe82)_0x4073a4[_0x5684e0(0xee)]=_0x8bfe82[_0x5684e0(0xf8)]();const _0x584f36=_0x3a261b['str'](_0x5684e0(0xe3));if(_0x584f36)_0x4073a4[_0x5684e0(0xe3)]=_0x584f36;if(_0x2fa9bf)_0x4073a4['password']=_0x2fa9bf;const _0x23b023=_0x3a261b['str'](_0x5684e0(0x102));if(_0x23b023)_0x4073a4[_0x5684e0(0xf9)]=_0x23b023;const _0x4cb129=_0x3a261b[_0x5684e0(0x100)](_0x5684e0(0x108));if(_0x4cb129)_0x4073a4[_0x5684e0(0xf1)]=_0x4cb129;return _0x4073a4;}export const dbUpdate={'service':'db','command':a91_0x37ec04(0xfc),'description':a91_0x37ec04(0xf7),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf2)},{'name':a91_0x37ec04(0xfe),'type':'string','description':a91_0x37ec04(0xeb)},{'name':a91_0x37ec04(0xe3),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf6)},{'name':a91_0x37ec04(0xec),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf3)},{'name':a91_0x37ec04(0x102),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xe8)},{'name':a91_0x37ec04(0x108),'type':a91_0x37ec04(0xfd),'description':a91_0x37ec04(0xf4)}],async 'validate'(_0x2d25f3){const _0x5dcc63=a91_0x37ec04,_0x6f5bb2=_0x2d25f3[_0x5dcc63(0x100)]('dburl');if(_0x6f5bb2&&!validateDbUrl(_0x6f5bb2[_0x5dcc63(0xf8)]()))throw CliErrors['validation'](_0x5dcc63(0xf5)+_0x6f5bb2+'\x22');},async 'dryRun'(_0x576a12){const _0x468b8e=a91_0x37ec04,_0x5f1212=_0x576a12[_0x468b8e(0xe5)]('id'),_0x3c8d3e=await getDbLinkInfo(_0x5f1212),_0x440919=mergeDbLinkUpdate(_0x3c8d3e,_0x576a12),_0x127a9b=sanitizeDbLinkForOutput(_0x440919);return{'method':'POST','url':_0x468b8e(0xe2),'body':_0x127a9b,'description':_0x468b8e(0xe7)};},async 'execute'(_0x415e40){const _0x59bc80=a91_0x37ec04,_0x1626ff=_0x415e40[_0x59bc80(0xe5)]('id'),_0x7a6b10=await getDbLinkInfo(_0x1626ff),_0x27e61d=mergeDbLinkUpdate(_0x7a6b10,_0x415e40),{id:_0x4bb094,entity:_0x562504}=normalizeEntityWithIdResponse(await updateDbLink(_0x27e61d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x562504),'message':'Updated\x20db\x20link\x20'+(_0x4bb094??_0x1626ff)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a92_0x381037=a92_0x349b;function a92_0x349b(_0x3ad911,_0xb1d99){_0x3ad911=_0x3ad911-0x120;const _0xbe28f2=a92_0xbe28();let _0x349be9=_0xbe28f2[_0x3ad911];return _0x349be9;}(function(_0x5cd17c,_0x11250e){const _0x49c64f=a92_0x349b,_0x319cf2=_0x5cd17c();while(!![]){try{const _0x2f0534=-parseInt(_0x49c64f(0x169))/0x1*(-parseInt(_0x49c64f(0x126))/0x2)+parseInt(_0x49c64f(0x133))/0x3*(-parseInt(_0x49c64f(0x167))/0x4)+parseInt(_0x49c64f(0x153))/0x5*(parseInt(_0x49c64f(0x148))/0x6)+-parseInt(_0x49c64f(0x161))/0x7*(-parseInt(_0x49c64f(0x128))/0x8)+parseInt(_0x49c64f(0x122))/0x9+-parseInt(_0x49c64f(0x13c))/0xa+parseInt(_0x49c64f(0x16a))/0xb*(-parseInt(_0x49c64f(0x145))/0xc);if(_0x2f0534===_0x11250e)break;else _0x319cf2['push'](_0x319cf2['shift']());}catch(_0x254689){_0x319cf2['push'](_0x319cf2['shift']());}}}(a92_0xbe28,0xb327b));import a92_0x1def70 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';function a92_0xbe28(){const _0x534cfc=['\x20\x20Merged\x20Config','\x20\x20Config\x20JSON','format','(not\x20set)','currentApp','check','(unknown)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','apiDir','85bRtNdY','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','(not\x20found)','env','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','arch','\x20\x20Config\x20Files','\x20(default)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20\x20\x20accessKey:\x20\x20','21iNREBJ','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20←\x20current','platform','empty','\x20\x20Built-in\x20Skill','35960HSKyws','accessKey','101303ZLWvtA','17009993TRCJqW','source','slice','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','state','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','cookie','\x20doctor','(set,\x20length=','keys','✓\x20Valid','installedPath','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','\x20\x20runtimeDomain:\x20\x20\x20','green','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','yellow','status','8284167oDWREd','appcode','riskLevel','repeat','2MjQoJB','\x20\x20Apps','2952152ISRlQT','length','(none)','log','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','raw','gray','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','reason','packageVersion','339SGYsai','\x20\x20Skill\x20Version:\x20\x20\x20','red','missing','Project','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','value','skillVersion','1540450JZhKlc','appCode','doctor','current','pageSize','apps','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','repairCommand','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','12UbrdOD','\x20\x20explicitAppName:\x20','(missing)','466332gYJXwL','padEnd'];a92_0xbe28=function(){return _0x534cfc;};return a92_0xbe28();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x15a69f){const _0x49dcb1=a92_0x349b,_0x2ca932=GIT_COMMIT!==_0x49dcb1(0x172)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x49dcb1(0x16c)](0x0,0xa)+')':VERSION,_0x3b1e38=buildConfigFromFlags({}),_0x230203=getCookie();console['log'](),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x174)](CLI_BIN_NAME+_0x49dcb1(0x17b))),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x12f)]('─'[_0x49dcb1(0x125)](0x32))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x155)+_0x2ca932),console[_0x49dcb1(0x12b)](_0x49dcb1(0x182)+process['version']),console[_0x49dcb1(0x12b)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x49dcb1(0x164)]+'\x20'+process[_0x49dcb1(0x15c)]);const _0x1d4d6f=inspectBuiltinSkill();console[_0x49dcb1(0x12b)](),console[_0x49dcb1(0x12b)](a92_0x1def70['bold'](_0x49dcb1(0x166))),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x15b)[_0x49dcb1(0x125)](0x1e)));const _0x93f724=_0x1d4d6f[_0x49dcb1(0x175)]===_0x49dcb1(0x13f)?a92_0x1def70['green']('✓\x20'+_0x1d4d6f[_0x49dcb1(0x175)]):a92_0x1def70[_0x49dcb1(0x135)]('✗\x20'+_0x1d4d6f[_0x49dcb1(0x175)]);console['log'](_0x49dcb1(0x16d)+_0x93f724),console[_0x49dcb1(0x12b)](_0x49dcb1(0x179)+_0x1d4d6f[_0x49dcb1(0x132)]),console[_0x49dcb1(0x12b)](_0x49dcb1(0x134)+(_0x1d4d6f[_0x49dcb1(0x13b)]||a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x150)))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x157)+(_0x1d4d6f[_0x49dcb1(0x17f)]||a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x158))));if(_0x1d4d6f['reason'])console['log'](_0x49dcb1(0x12c)+_0x1d4d6f[_0x49dcb1(0x131)]);_0x1d4d6f[_0x49dcb1(0x175)]!==_0x49dcb1(0x13f)&&console['log']('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1d4d6f[_0x49dcb1(0x143)]);console[_0x49dcb1(0x12b)](),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x174)](_0x49dcb1(0x15d))),console[_0x49dcb1(0x12b)](a92_0x1def70['gray'](_0x49dcb1(0x15b)[_0x49dcb1(0x125)](0x1e)));const _0x1a1125=getGlobalConfigPath(),_0x10c0f7=getProjectConfigPath();console[_0x49dcb1(0x12b)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1a1125||a92_0x1def70[_0x49dcb1(0x12f)]('(not\x20found)'))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x15a)+(_0x10c0f7||a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x158)))),console[_0x49dcb1(0x12b)](),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x174)](_0x49dcb1(0x14b))),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x15b)[_0x49dcb1(0x125)](0x1e)));const _0x46e923=(_0x3f073e,_0xd18153)=>{const _0x3f3709=_0x49dcb1;if(!_0xd18153){console[_0x3f3709(0x12b)]('\x20\x20'+_0x3f073e['padEnd'](0x11)+'\x20'+a92_0x1def70[_0x3f3709(0x12f)]('(no\x20file)'));return;}const _0x2bd3d8=inspectCliConfigJsonFile(_0xd18153);if(_0x2bd3d8[_0x3f3709(0x121)]==='ok')console[_0x3f3709(0x12b)]('\x20\x20'+_0x3f073e['padEnd'](0x11)+'\x20'+a92_0x1def70[_0x3f3709(0x185)](_0x3f3709(0x139)));else{if(_0x2bd3d8['status']===_0x3f3709(0x165))console[_0x3f3709(0x12b)]('\x20\x20'+_0x3f073e[_0x3f3709(0x149)](0x11)+'\x20'+a92_0x1def70[_0x3f3709(0x120)](_0x3f3709(0x15f)));else _0x2bd3d8[_0x3f3709(0x121)]===_0x3f3709(0x136)?console['log']('\x20\x20'+_0x3f073e[_0x3f3709(0x149)](0x11)+'\x20'+a92_0x1def70[_0x3f3709(0x12f)](_0x3f3709(0x147))):(console[_0x3f3709(0x12b)]('\x20\x20'+_0x3f073e[_0x3f3709(0x149)](0x11)+'\x20'+a92_0x1def70[_0x3f3709(0x135)](_0x3f3709(0x181))),console[_0x3f3709(0x12b)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a92_0x1def70['red'](_0x2bd3d8[_0x3f3709(0x170)])));}};_0x46e923('Global',_0x1a1125),_0x46e923(_0x49dcb1(0x137),_0x10c0f7),console[_0x49dcb1(0x12b)](),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x174)](_0x49dcb1(0x14a))),console['log'](a92_0x1def70[_0x49dcb1(0x12f)]('\x20\x20─'[_0x49dcb1(0x125)](0x1e))),console['log'](_0x49dcb1(0x138)+(_0x3b1e38[_0x49dcb1(0x13d)]||a92_0x1def70['red'](_0x49dcb1(0x14d)))),console[_0x49dcb1(0x12b)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b1e38[_0x49dcb1(0x159)]),console['log'](_0x49dcb1(0x16f)+_0x3b1e38[_0x49dcb1(0x183)]),console[_0x49dcb1(0x12b)](_0x49dcb1(0x178)+_0x3b1e38['apiDir']),console['log'](_0x49dcb1(0x142)+(_0x3b1e38[_0x49dcb1(0x177)]||a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x12a)))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x176)+(_0x3b1e38[_0x49dcb1(0x14e)]||a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x12a)))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x146)+(_0x3b1e38['explicitAppName']||a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x12a)))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x154)+(_0x3b1e38[_0x49dcb1(0x14c)]||a92_0x1def70[_0x49dcb1(0x12f)]('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x49dcb1(0x14c)]+')'))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x156)+(_0x3b1e38[_0x49dcb1(0x140)]??a92_0x1def70[_0x49dcb1(0x12f)]('(default)'))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x151)+_0x3b1e38[_0x49dcb1(0x124)]),console[_0x49dcb1(0x12b)](_0x49dcb1(0x171)+_0x3b1e38['verbose']),console[_0x49dcb1(0x12b)](_0x49dcb1(0x173)+(_0x3b1e38[_0x49dcb1(0x17a)]?a92_0x1def70[_0x49dcb1(0x185)](_0x49dcb1(0x17c)+_0x3b1e38[_0x49dcb1(0x17a)][_0x49dcb1(0x129)]+')'):_0x230203?a92_0x1def70[_0x49dcb1(0x185)]('(set\x20via\x20file,\x20length='+_0x230203['length']+')'):a92_0x1def70[_0x49dcb1(0x12f)]('(none)')));const _0x2b3d79=Object[_0x49dcb1(0x17d)](_0x3b1e38['apps']);if(_0x2b3d79[_0x49dcb1(0x129)]>0x0){console[_0x49dcb1(0x12b)](),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x174)](_0x49dcb1(0x127))),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x15b)[_0x49dcb1(0x125)](0x1e)));for(const _0x2e46aa of _0x2b3d79){const _0x218efa=_0x3b1e38[_0x49dcb1(0x141)][_0x2e46aa],_0x295a14=_0x2e46aa===_0x3b1e38[_0x49dcb1(0x177)],_0x5a4e41=_0x2e46aa===_0x3b1e38[_0x49dcb1(0x14e)],_0x43cadf=_0x5a4e41?a92_0x1def70[_0x49dcb1(0x185)](_0x49dcb1(0x163)):'',_0x408714=_0x295a14?_0x49dcb1(0x15e):'';console[_0x49dcb1(0x12b)]('\x20\x20'+_0x2e46aa+_0x408714+_0x43cadf),console[_0x49dcb1(0x12b)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x218efa[_0x49dcb1(0x123)]);const _0x6068b8=buildAppDoctorFields(_0x218efa,{'env':_0x3b1e38['env'],'apiDir':_0x3b1e38[_0x49dcb1(0x12e)][_0x49dcb1(0x152)]||DEFAULT_CONFIG_VALUES[_0x49dcb1(0x152)],'cookie':_0x3b1e38[_0x49dcb1(0x17a)]||_0x230203||undefined,'accessKey':_0x3b1e38[_0x49dcb1(0x168)]});console['log'](_0x49dcb1(0x180)+_0x6068b8[_0x49dcb1(0x159)]['value']+'\x20\x20'+a92_0x1def70[_0x49dcb1(0x12f)]('('+_0x6068b8[_0x49dcb1(0x159)][_0x49dcb1(0x16b)]+')')),console['log'](_0x49dcb1(0x162)+_0x6068b8[_0x49dcb1(0x152)][_0x49dcb1(0x13a)]+'\x20\x20'+a92_0x1def70[_0x49dcb1(0x12f)]('('+_0x6068b8[_0x49dcb1(0x152)][_0x49dcb1(0x16b)]+')'));const _0x255279=_0x6068b8[_0x49dcb1(0x17a)][_0x49dcb1(0x13a)]?a92_0x1def70[_0x49dcb1(0x185)](_0x49dcb1(0x17c)+_0x6068b8[_0x49dcb1(0x17a)]['value'][_0x49dcb1(0x129)]+')'):a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x12a));console[_0x49dcb1(0x12b)](_0x49dcb1(0x130)+_0x255279+'\x20\x20'+a92_0x1def70[_0x49dcb1(0x12f)]('('+_0x6068b8['cookie'][_0x49dcb1(0x16b)]+')'));const _0x1ee4cf=_0x6068b8[_0x49dcb1(0x168)]['value']?a92_0x1def70['green'](_0x49dcb1(0x17c)+_0x6068b8['accessKey'][_0x49dcb1(0x13a)][_0x49dcb1(0x129)]+')'):a92_0x1def70[_0x49dcb1(0x12f)](_0x49dcb1(0x12a));console[_0x49dcb1(0x12b)](_0x49dcb1(0x160)+_0x1ee4cf+'\x20\x20'+a92_0x1def70[_0x49dcb1(0x12f)]('('+_0x6068b8[_0x49dcb1(0x168)][_0x49dcb1(0x16b)]+')'));}}console['log'](),console[_0x49dcb1(0x12b)](a92_0x1def70[_0x49dcb1(0x174)]('\x20\x20API\x20Endpoints')),console[_0x49dcb1(0x12b)](a92_0x1def70['gray'](_0x49dcb1(0x15b)['repeat'](0x1e))),console[_0x49dcb1(0x12b)](_0x49dcb1(0x144)+getApiDomain()),console[_0x49dcb1(0x12b)](_0x49dcb1(0x12d)+getUserDomain()),console[_0x49dcb1(0x12b)](_0x49dcb1(0x184)+getRuntimeDomain()),console[_0x49dcb1(0x12b)](),console['log'](a92_0x1def70[_0x49dcb1(0x174)]('\x20\x20Auth')),console['log'](a92_0x1def70['gray'](_0x49dcb1(0x15b)['repeat'](0x1e)));if(_0x230203){const _0x4ec700=await getIsSessionValid();console[_0x49dcb1(0x12b)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4ec700?a92_0x1def70['green'](_0x49dcb1(0x17e)):a92_0x1def70[_0x49dcb1(0x135)](_0x49dcb1(0x16e))));}else console[_0x49dcb1(0x12b)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x1def70[_0x49dcb1(0x135)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x381037(0x13e),'command':a92_0x381037(0x14f),'description':a92_0x381037(0x186),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a92_0x203707=a92_0x4451;(function(_0x535301,_0x36195c){const _0x53d190=a92_0x4451,_0x4f90cd=_0x535301();while(!![]){try{const _0x384816=-parseInt(_0x53d190(0x1eb))/0x1+-parseInt(_0x53d190(0x192))/0x2+-parseInt(_0x53d190(0x1b7))/0x3+parseInt(_0x53d190(0x1c8))/0x4+parseInt(_0x53d190(0x1c1))/0x5+-parseInt(_0x53d190(0x19f))/0x6*(-parseInt(_0x53d190(0x1b6))/0x7)+parseInt(_0x53d190(0x19a))/0x8;if(_0x384816===_0x36195c)break;else _0x4f90cd['push'](_0x4f90cd['shift']());}catch(_0x5bf1f0){_0x4f90cd['push'](_0x4f90cd['shift']());}}}(a92_0x1c02,0xa9bf7));import a92_0x4105af 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';function a92_0x1c02(){const _0x347751=['(default)','green','log','padEnd','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20doctor','explicitAppName','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','114001MlnszP','✓\x20Valid','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','state','unknown','✗\x20Invalid\x20JSON','\x20\x20─','\x20\x20Config\x20JSON','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','1782240EWqGQI','appcode','repairCommand','read','(set,\x20length=','(none)','keys','(default:\x20','4873600jzlLhl','reason','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','Global','6PnCUCe','repeat','arch','\x20\x20Auth','appCode','apps','platform','skillVersion','defaultApp','missing','value','version','(not\x20set)','message','length','\x20\x20Package\x20Version:\x20','\x20\x20Skill\x20Version:\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','yellow','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','raw','✓\x20Valid\x20JSON','1181551jTlttt','3510159gqkPuo','current','\x20\x20Installed\x20Path:\x20\x20','cookie','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','5419570oyTzqP','format','\x20\x20API\x20Endpoints','\x20\x20Apps','installedPath','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','riskLevel','4034216SvbMfG','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','source','status','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20(default)','apiDir','env','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','slice','bold','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unknown)','\x20\x20Merged\x20Config','locale','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files'];a92_0x1c02=function(){return _0x347751;};return a92_0x1c02();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a92_0x4451(_0x59fcf8,_0x2afe23){_0x59fcf8=_0x59fcf8-0x189;const _0x1c0231=a92_0x1c02();let _0x44517d=_0x1c0231[_0x59fcf8];return _0x44517d;}async function execute(_0x16a3d8){const _0x3d85e4=a92_0x4451,_0x51553e=GIT_COMMIT!==_0x3d85e4(0x18a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3d85e4(0x1d9)](0x0,0xa)+')':VERSION,_0x5e5eb8=buildConfigFromFlags({}),_0x37e29d=getCookie();console[_0x3d85e4(0x1e3)](),console['log'](a92_0x4105af['bold'](CLI_BIN_NAME+_0x3d85e4(0x1e6))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)]('─'[_0x3d85e4(0x1a0)](0x32))),console['log'](_0x3d85e4(0x1ea)+_0x51553e),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1c9)+process[_0x3d85e4(0x1aa)]),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x19c)+process[_0x3d85e4(0x1a5)]+'\x20'+process[_0x3d85e4(0x1a1)]);const _0x471582=inspectBuiltinSkill();console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1da)]('\x20\x20Built-in\x20Skill')),console[_0x3d85e4(0x1e3)](a92_0x4105af['gray']('\x20\x20─'[_0x3d85e4(0x1a0)](0x1e)));const _0x3dc6ea=_0x471582['state']===_0x3d85e4(0x1b8)?a92_0x4105af[_0x3d85e4(0x1e2)]('✓\x20'+_0x471582['state']):a92_0x4105af[_0x3d85e4(0x1d3)]('✗\x20'+_0x471582[_0x3d85e4(0x189)]);console['log'](_0x3d85e4(0x1ed)+_0x3dc6ea),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1ae)+_0x471582['packageVersion']),console['log'](_0x3d85e4(0x1af)+(_0x471582[_0x3d85e4(0x1a6)]||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x1dc)))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b9)+(_0x471582[_0x3d85e4(0x1c5)]||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18f))));if(_0x471582[_0x3d85e4(0x19b)])console['log'](_0x3d85e4(0x1cf)+_0x471582[_0x3d85e4(0x19b)]);_0x471582[_0x3d85e4(0x189)]!=='current'&&console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1d1)+_0x471582[_0x3d85e4(0x194)]);console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af['bold'](_0x3d85e4(0x1e0))),console['log'](a92_0x4105af['gray'](_0x3d85e4(0x18c)[_0x3d85e4(0x1a0)](0x1e)));const _0x5e2a7f=getGlobalConfigPath(),_0x38c2d4=getProjectConfigPath();console[_0x3d85e4(0x1e3)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5e2a7f||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18f)))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1be)+(_0x38c2d4||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18f)))),console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af['bold'](_0x3d85e4(0x18d))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18c)[_0x3d85e4(0x1a0)](0x1e)));const _0x99f6b5=(_0xbf4e3e,_0x2eb8af)=>{const _0x1d3012=_0x3d85e4;if(!_0x2eb8af){console[_0x1d3012(0x1e3)]('\x20\x20'+_0xbf4e3e['padEnd'](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1d0)]('(no\x20file)'));return;}const _0x1fa9fc=inspectCliConfigJsonFile(_0x2eb8af);if(_0x1fa9fc['status']==='ok')console[_0x1d3012(0x1e3)]('\x20\x20'+_0xbf4e3e['padEnd'](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1e2)](_0x1d3012(0x1b5)));else{if(_0x1fa9fc[_0x1d3012(0x1ce)]==='empty')console['log']('\x20\x20'+_0xbf4e3e[_0x1d3012(0x1e4)](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1b1)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x1fa9fc['status']===_0x1d3012(0x1a8)?console['log']('\x20\x20'+_0xbf4e3e[_0x1d3012(0x1e4)](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1d0)](_0x1d3012(0x1bf))):(console[_0x1d3012(0x1e3)]('\x20\x20'+_0xbf4e3e[_0x1d3012(0x1e4)](0x11)+'\x20'+a92_0x4105af['red'](_0x1d3012(0x18b))),console[_0x1d3012(0x1e3)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a92_0x4105af[_0x1d3012(0x1d3)](_0x1fa9fc[_0x1d3012(0x1ac)])));}};_0x99f6b5(_0x3d85e4(0x19e),_0x5e2a7f),_0x99f6b5(_0x3d85e4(0x1d8),_0x38c2d4),console[_0x3d85e4(0x1e3)](),console['log'](a92_0x4105af[_0x3d85e4(0x1da)](_0x3d85e4(0x1dd))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)]('\x20\x20─'[_0x3d85e4(0x1a0)](0x1e))),console[_0x3d85e4(0x1e3)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5e5eb8[_0x3d85e4(0x1a3)]||a92_0x4105af[_0x3d85e4(0x1d3)](_0x3d85e4(0x1ab)))),console['log'](_0x3d85e4(0x190)+_0x5e5eb8[_0x3d85e4(0x1d6)]),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1e8)+_0x5e5eb8[_0x3d85e4(0x1de)]),console['log'](_0x3d85e4(0x1bc)+_0x5e5eb8[_0x3d85e4(0x1d5)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x5e5eb8[_0x3d85e4(0x1a7)]||a92_0x4105af[_0x3d85e4(0x1d0)]('(none)'))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1bd)+(_0x5e5eb8['currentApp']||a92_0x4105af['gray'](_0x3d85e4(0x197)))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b3)+(_0x5e5eb8[_0x3d85e4(0x1e7)]||a92_0x4105af['gray'](_0x3d85e4(0x197)))),console['log'](_0x3d85e4(0x1db)+(_0x5e5eb8[_0x3d85e4(0x1c2)]||a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x199)+DEFAULT_CONFIG_VALUES[_0x3d85e4(0x1c2)]+')'))),console['log'](_0x3d85e4(0x1d2)+(_0x5e5eb8['pageSize']??a92_0x4105af['gray'](_0x3d85e4(0x1e1)))),console['log'](_0x3d85e4(0x1e5)+_0x5e5eb8[_0x3d85e4(0x1c7)]),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1d7)+_0x5e5eb8['verbose']),console['log'](_0x3d85e4(0x1df)+(_0x5e5eb8[_0x3d85e4(0x1ba)]?a92_0x4105af['green'](_0x3d85e4(0x196)+_0x5e5eb8[_0x3d85e4(0x1ba)][_0x3d85e4(0x1ad)]+')'):_0x37e29d?a92_0x4105af[_0x3d85e4(0x1e2)]('(set\x20via\x20file,\x20length='+_0x37e29d[_0x3d85e4(0x1ad)]+')'):a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x197))));const _0x40c0d6=Object[_0x3d85e4(0x198)](_0x5e5eb8[_0x3d85e4(0x1a4)]);if(_0x40c0d6[_0x3d85e4(0x1ad)]>0x0){console[_0x3d85e4(0x1e3)](),console['log'](a92_0x4105af['bold'](_0x3d85e4(0x1c4))),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x18c)[_0x3d85e4(0x1a0)](0x1e)));for(const _0x5a1fd4 of _0x40c0d6){const _0x1dd480=_0x5e5eb8[_0x3d85e4(0x1a4)][_0x5a1fd4],_0xab7738=_0x5a1fd4===_0x5e5eb8[_0x3d85e4(0x1a7)],_0x865263=_0x5a1fd4===_0x5e5eb8['currentApp'],_0x1d672f=_0x865263?a92_0x4105af[_0x3d85e4(0x1e2)](_0x3d85e4(0x1cc)):'',_0x2a102e=_0xab7738?_0x3d85e4(0x1d4):'';console['log']('\x20\x20'+_0x5a1fd4+_0x2a102e+_0x1d672f),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b2)+_0x1dd480[_0x3d85e4(0x193)]);const _0xc17e35=buildAppDoctorFields(_0x1dd480,{'env':_0x5e5eb8[_0x3d85e4(0x1d6)],'apiDir':_0x5e5eb8[_0x3d85e4(0x1b4)][_0x3d85e4(0x1d5)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5e5eb8[_0x3d85e4(0x1ba)]||_0x37e29d||undefined,'accessKey':_0x5e5eb8[_0x3d85e4(0x19d)]});console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1cb)+_0xc17e35[_0x3d85e4(0x1d6)][_0x3d85e4(0x1a9)]+'\x20\x20'+a92_0x4105af[_0x3d85e4(0x1d0)]('('+_0xc17e35[_0x3d85e4(0x1d6)]['source']+')')),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1c6)+_0xc17e35['apiDir']['value']+'\x20\x20'+a92_0x4105af['gray']('('+_0xc17e35[_0x3d85e4(0x1d5)]['source']+')'));const _0x3610e7=_0xc17e35[_0x3d85e4(0x1ba)][_0x3d85e4(0x1a9)]?a92_0x4105af['green']('(set,\x20length='+_0xc17e35[_0x3d85e4(0x1ba)][_0x3d85e4(0x1a9)][_0x3d85e4(0x1ad)]+')'):a92_0x4105af[_0x3d85e4(0x1d0)](_0x3d85e4(0x197));console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1bb)+_0x3610e7+'\x20\x20'+a92_0x4105af[_0x3d85e4(0x1d0)]('('+_0xc17e35[_0x3d85e4(0x1ba)][_0x3d85e4(0x1cd)]+')'));const _0x1b8bbd=_0xc17e35[_0x3d85e4(0x19d)]['value']?a92_0x4105af[_0x3d85e4(0x1e2)]('(set,\x20length='+_0xc17e35[_0x3d85e4(0x19d)][_0x3d85e4(0x1a9)][_0x3d85e4(0x1ad)]+')'):a92_0x4105af[_0x3d85e4(0x1d0)]('(none)');console[_0x3d85e4(0x1e3)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x1b8bbd+'\x20\x20'+a92_0x4105af[_0x3d85e4(0x1d0)]('('+_0xc17e35[_0x3d85e4(0x19d)]['source']+')'));}}console[_0x3d85e4(0x1e3)](),console[_0x3d85e4(0x1e3)](a92_0x4105af['bold'](_0x3d85e4(0x1c3))),console['log'](a92_0x4105af[_0x3d85e4(0x1d0)]('\x20\x20─'['repeat'](0x1e))),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1c0)+getApiDomain()),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x18e)+getUserDomain()),console[_0x3d85e4(0x1e3)](_0x3d85e4(0x1b0)+getRuntimeDomain()),console['log'](),console[_0x3d85e4(0x1e3)](a92_0x4105af[_0x3d85e4(0x1da)](_0x3d85e4(0x1a2))),console['log'](a92_0x4105af[_0x3d85e4(0x1d0)]('\x20\x20─'['repeat'](0x1e)));if(_0x37e29d){const _0x3e8a76=await getIsSessionValid();console[_0x3d85e4(0x1e3)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e8a76?a92_0x4105af[_0x3d85e4(0x1e2)](_0x3d85e4(0x1ec)):a92_0x4105af[_0x3d85e4(0x1d3)](_0x3d85e4(0x191))));}else console[_0x3d85e4(0x1e3)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x4105af['red'](_0x3d85e4(0x1ca)));return console[_0x3d85e4(0x1e3)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x203707(0x1e9),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x203707(0x195),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x2b3779=a93_0x38da;(function(_0x13bd59,_0x4b6b9f){const _0x35abdc=a93_0x38da,_0x2d3b9f=_0x13bd59();while(!![]){try{const _0x840974=parseInt(_0x35abdc(0xda))/0x1+-parseInt(_0x35abdc(0xe3))/0x2*(parseInt(_0x35abdc(0xdc))/0x3)+-parseInt(_0x35abdc(0xc4))/0x4+-parseInt(_0x35abdc(0xc8))/0x5*(parseInt(_0x35abdc(0xd5))/0x6)+-parseInt(_0x35abdc(0xc7))/0x7+-parseInt(_0x35abdc(0xd4))/0x8+parseInt(_0x35abdc(0xdb))/0x9;if(_0x840974===_0x4b6b9f)break;else _0x2d3b9f['push'](_0x2d3b9f['shift']());}catch(_0x3b759e){_0x2d3b9f['push'](_0x2d3b9f['shift']());}}}(a93_0x1991,0x2190a));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x2b3779(0xc5),'type':a93_0x2b3779(0xd3),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a93_0x2b3779(0xd3),'required':!![],'description':a93_0x2b3779(0xe1)},DOWNLOAD_FLAG={'name':a93_0x2b3779(0xca),'type':a93_0x2b3779(0xe2),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a93_0x2b3779(0xc9),'type':a93_0x2b3779(0xe2),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x5826ea){const _0x5b00dc=a93_0x2b3779,_0x4fcbe3=_0x5826ea[_0x5b00dc(0xcd)]();if(!_0x4fcbe3)throw CliErrors[_0x5b00dc(0xd6)](_0x5b00dc(0xe0));return _0x4fcbe3;}function a93_0x38da(_0x10b521,_0x688aa9){_0x10b521=_0x10b521-0xc4;const _0x1991b0=a93_0x1991();let _0x38da22=_0x1991b0[_0x10b521];return _0x38da22;}const fileUpload={'service':a93_0x2b3779(0xc5),'command':a93_0x2b3779(0xdf),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a93_0x2b3779(0xd9),'flags':[FILE_FLAG],async 'dryRun'(_0x40ccf6){const _0x58e596=a93_0x2b3779,_0x41677a=requireDevelopmentUploadFile(_0x40ccf6[_0x58e596(0xd1)](_0x58e596(0xc5)),_0x58e596(0xc6));return{'method':_0x58e596(0xde),'url':'/smartapi/common/uploadFile','body':{'appCode':_0x40ccf6['appCode'],'multipart':{'file':_0x41677a}},'description':_0x58e596(0xcf)+_0x41677a['path']+'\x20to\x20development\x20app\x20'+_0x40ccf6[_0x58e596(0xce)]};},async 'execute'(_0x2a7ce2){const _0x1271ce=a93_0x2b3779,_0xa0bbf8=requireDevelopmentUploadFile(_0x2a7ce2['str'](_0x1271ce(0xc5)),'File'),_0x4aed7e=await uploadDevelopmentFile(_0x2a7ce2['appCode'],_0xa0bbf8[_0x1271ce(0xd2)]);return{'ok':!![],'data':_0x4aed7e,'message':_0x4aed7e[_0x1271ce(0xd7)]?_0x1271ce(0xe4)+_0x4aed7e['filePath']+_0x1271ce(0xd0):_0x1271ce(0xcb)};}},fileQueryUrl={'service':'file','command':a93_0x2b3779(0xd8),'description':a93_0x2b3779(0xdd),'risk':a93_0x2b3779(0xd9),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x39449b){const _0x28a4ef=a93_0x2b3779,_0x176f32=requireFilePath(_0x39449b['str']('filepath')),_0x464320=await queryDevelopmentFileUrl(_0x176f32,{'download':_0x39449b[_0x28a4ef(0xcc)]('download'),'longTerm':_0x39449b[_0x28a4ef(0xcc)](_0x28a4ef(0xc9))});return{'ok':!![],'data':_0x464320};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a93_0x1991(){const _0x4f6752=['Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','boolean','127378AvJTGe','Uploaded\x20file:\x20','711988coXizS','file','File','519799qCoOGK','27270bMmMtf','long-term','download','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','bool','trim','appCode','Preview:\x20upload\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','str','path','string','472680HGAkVB','6AoqKBJ','validation','filePath','query-url','read','14993qDcOsp','5673141MyMcdL','9QuQjmK','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','POST','upload','filePath\x20is\x20required.'];a93_0x1991=function(){return _0x4f6752;};return a93_0x1991();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x5c761e=a94_0x1612;function a94_0x139d(){const _0x5121ad=['join','App\x20code\x20to\x20initialize\x20with','production','env','cwd','4951849iBsCEM','appcode','Usage:\x20','\x20config','8342646vErPpf','str','\x20\x20Config:\x20','\x20\x20Env:\x20','message','init','63526034tZIvda','run','map','\x0a✓\x20Successfully\x20initialized\x20','some','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','16iVtoal','\x20\x20Apps:\x20','project','flagMissing','207934wbpnxf','bool','13756KzSqsn','441kDWGCA','nonInteractive','log','3927807JCZjmc','Target\x20environment','toLocaleString','165JJFbwR','global','string','custom','yes','Write\x20to\x20global\x20config\x20instead\x20of\x20project','appCode','Use\x20`','2yvUJXQ','256140bHtyhF'];a94_0x139d=function(){return _0x5121ad;};return a94_0x139d();}(function(_0x5c42bd,_0xffa773){const _0x1364d8=a94_0x1612,_0x2061d8=_0x5c42bd();while(!![]){try{const _0x493706=parseInt(_0x1364d8(0x1ba))/0x1*(parseInt(_0x1364d8(0x1a9))/0x2)+-parseInt(_0x1364d8(0x1af))/0x3+-parseInt(_0x1364d8(0x1ab))/0x4*(-parseInt(_0x1364d8(0x1b2))/0x5)+-parseInt(_0x1364d8(0x199))/0x6+parseInt(_0x1364d8(0x195))/0x7*(-parseInt(_0x1364d8(0x1a5))/0x8)+parseInt(_0x1364d8(0x1ac))/0x9*(-parseInt(_0x1364d8(0x18f))/0xa)+parseInt(_0x1364d8(0x19f))/0xb;if(_0x493706===_0xffa773)break;else _0x2061d8['push'](_0x2061d8['shift']());}catch(_0x1a8a73){_0x2061d8['push'](_0x2061d8['shift']());}}}(a94_0x139d,0xb1779));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';function a94_0x1612(_0x1d6c1e,_0x55832f){_0x1d6c1e=_0x1d6c1e-0x18f;const _0x139d2b=a94_0x139d();let _0x16128f=_0x139d2b[_0x1d6c1e];return _0x16128f;}import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';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(_0x103aa9){return{'appCode':_0x103aa9,'appName':_0x103aa9};}function writeInitConfig(_0x526091,_0x52fcc2,_0xc91940){const _0x438ba4=a94_0x1612,_0x38d7a9=resolveWriteConfigPath(_0x526091),_0xc9416=buildCanonicalProjectConfig({},{'appCodes':_0x52fcc2['map'](_0xbcaf9b=>_0xbcaf9b[_0x438ba4(0x1b8)]),'env':_0xc91940,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x438ba4(0x1b1)]()}});writeConfigFile(_0x38d7a9,_0xc9416);const _0x5d7e4e=_0x526091===_0x438ba4(0x1b3)?_0x438ba4(0x1b3):'project';console[_0x438ba4(0x1ae)](_0x438ba4(0x1a2)+_0x5d7e4e+_0x438ba4(0x198)),console[_0x438ba4(0x1ae)](_0x438ba4(0x1a6)+_0x52fcc2[_0x438ba4(0x1a1)](_0x38734a=>_0x38734a['appCode'])[_0x438ba4(0x190)](',\x20')),console[_0x438ba4(0x1ae)]('\x20\x20Default:\x20'+_0xc9416['defaultApp']),console[_0x438ba4(0x1ae)](_0x438ba4(0x19c)+_0xc9416['env']),console[_0x438ba4(0x1ae)](_0x438ba4(0x19b)+_0x38d7a9);}async function runSmartInit(_0x5cd9cb){const _0x5c1b9a=a94_0x1612,_0x57bf6a=process[_0x5c1b9a(0x194)](),_0x48d0fa=_0x5cd9cb['bool'](_0x5c1b9a(0x1b3))?_0x5c1b9a(0x1b3):_0x5c1b9a(0x1a7),_0x576d76=_0x5cd9cb['str'](_0x5c1b9a(0x193))||_0x5c1b9a(0x192),_0x5b8500=_0x5cd9cb[_0x5c1b9a(0x19a)]('appcode')||undefined;if(_0x48d0fa===_0x5c1b9a(0x1a7)){const _0x582407=existsSync(resolve(_0x57bf6a,NEW_CONFIG_NAME)),_0x25334c=LEGACY_CONFIG_NAMES[_0x5c1b9a(0x1a3)](_0x8e97e2=>existsSync(resolve(_0x57bf6a,_0x8e97e2)));if(_0x25334c&&!_0x582407)return console[_0x5c1b9a(0x1ae)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x5cd9cb[_0x5c1b9a(0x1ad)],{'yes':_0x5cd9cb[_0x5c1b9a(0x1aa)]('yes')});if(_0x582407)throw CliErrors['validation'](_0x5c1b9a(0x1a4),_0x5c1b9a(0x1b9)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x5b8500){const _0x4edf86=validateAppcode(_0x5b8500);if(!_0x4edf86['valid'])throw CliErrors['validation'](_0x4edf86[_0x5c1b9a(0x19d)]);writeInitConfig(_0x48d0fa,[syntheticApp(_0x5b8500)],_0x576d76);return;}if(_0x5cd9cb[_0x5c1b9a(0x1ad)])throw CliErrors[_0x5c1b9a(0x1a8)](_0x5c1b9a(0x196),_0x5c1b9a(0x197)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x208a30=getCookie(),_0x3c52b5=await selectMultipleApps(_0x208a30),_0x19eef1=_0x3c52b5===_0x5c1b9a(0x1b5)?[syntheticApp(await promptCustomAppcode())]:_0x3c52b5;writeInitConfig(_0x48d0fa,_0x19eef1,_0x576d76);}const initFlags=[{'name':'global','type':'boolean','description':a94_0x5c761e(0x1b7),'default':![]},{'name':a94_0x5c761e(0x193),'type':a94_0x5c761e(0x1b4),'description':a94_0x5c761e(0x1b0),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a94_0x5c761e(0x1b4),'description':a94_0x5c761e(0x191)},{'name':a94_0x5c761e(0x1b6),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a94_0x5c761e(0x19e),'command':a94_0x5c761e(0x1a0),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x51eede){return await runSmartInit(_0x51eede),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a95_0x4b56(){const _0x151ed6=['5697672hxZPkK','155rSHHBg','318mzhHsb','201130DisYvp','6591213haKEdb','135AFbLPj','627yDiaQc','11106ZlRkIo','9261dvMRYw','1570134ktAaoQ','51736uwLaEL'];a95_0x4b56=function(){return _0x151ed6;};return a95_0x4b56();}function a95_0x1409(_0x51f528,_0x2afa80){_0x51f528=_0x51f528-0x173;const _0x4b563e=a95_0x4b56();let _0x1409bc=_0x4b563e[_0x51f528];return _0x1409bc;}(function(_0x2f1d59,_0x1ca245){const _0x587f32=a95_0x1409,_0x53b6ca=_0x2f1d59();while(!![]){try{const _0x1b1cdd=parseInt(_0x587f32(0x178))/0x1*(-parseInt(_0x587f32(0x17a))/0x2)+parseInt(_0x587f32(0x17c))/0x3+-parseInt(_0x587f32(0x17d))/0x4*(parseInt(_0x587f32(0x174))/0x5)+parseInt(_0x587f32(0x175))/0x6*(parseInt(_0x587f32(0x17b))/0x7)+parseInt(_0x587f32(0x173))/0x8+-parseInt(_0x587f32(0x177))/0x9+parseInt(_0x587f32(0x176))/0xa*(parseInt(_0x587f32(0x179))/0xb);if(_0x1b1cdd===_0x1ca245)break;else _0x53b6ca['push'](_0x53b6ca['shift']());}catch(_0x24a5c7){_0x53b6ca['push'](_0x53b6ca['shift']());}}}(a95_0x4b56,0x8af5d));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x26fa5b=a96_0x4cef;(function(_0x2b3980,_0x24a751){const _0x3910eb=a96_0x4cef,_0x50e11d=_0x2b3980();while(!![]){try{const _0x1bf0f5=-parseInt(_0x3910eb(0xc4))/0x1+parseInt(_0x3910eb(0xc0))/0x2+parseInt(_0x3910eb(0xbf))/0x3*(parseInt(_0x3910eb(0xb8))/0x4)+-parseInt(_0x3910eb(0xaf))/0x5+-parseInt(_0x3910eb(0xcb))/0x6*(parseInt(_0x3910eb(0xb5))/0x7)+parseInt(_0x3910eb(0xbd))/0x8+parseInt(_0x3910eb(0xad))/0x9;if(_0x1bf0f5===_0x24a751)break;else _0x50e11d['push'](_0x50e11d['shift']());}catch(_0x4a08a5){_0x50e11d['push'](_0x50e11d['shift']());}}}(a96_0x2f15,0x77c17));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x26fa5b(0xba);function a96_0x2f15(){const _0x9d9671=['validation_error','2415669qsVDeT','762522ZPEFUL','\x22\x20\x5c','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','509684XKQhGv','issue','code','trim','message','unknown_command','length','18KOqJOg','slice','config_missing','service','=1\x20to\x20silence\x20this\x20hint.','439722KOkZaN','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','955170TOPQTz','has','\x20\x20\x20\x20--title\x20\x22','command','report','replace','890386HWRxRU','cancelled','stderr','4ZLoBjI','\x20bug?\x20Help\x20us\x20fix\x20it:','RABETBASE_DISABLE_ISSUE_NUDGE','network_error','write','2699912niNdzC'];a96_0x2f15=function(){return _0x9d9671;};return a96_0x2f15();}function a96_0x4cef(_0x4ecf56,_0x4f38fd){_0x4ecf56=_0x4ecf56-0xac;const _0x2f15ff=a96_0x2f15();let _0x4cef2b=_0x2f15ff[_0x4ecf56];return _0x4cef2b;}const NUDGE_SUPPRESSED_CODES=new Set([a96_0x26fa5b(0xb6),'auth_required',a96_0x26fa5b(0xcd),'not_in_project',a96_0x26fa5b(0xc9),'flag_missing',a96_0x26fa5b(0xbe),a96_0x26fa5b(0xbb)]),defaultWriter=_0x323a30=>{const _0x935fd2=a96_0x26fa5b;process[_0x935fd2(0xb7)][_0x935fd2(0xbc)](_0x323a30);};export function shouldNudgeForError(_0x5aba58,_0x3683f7){const _0x488421=a96_0x26fa5b;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x3683f7[_0x488421(0xce)]===_0x488421(0xc5)&&_0x3683f7[_0x488421(0xb2)]===_0x488421(0xb3))return![];if(_0x5aba58 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x488421(0xb0)](_0x5aba58[_0x488421(0xc6)]);return!![];}export function printIssueReportNudgeForError(_0x3d349e,_0x2e7d39,_0x409361=defaultWriter){if(!shouldNudgeForError(_0x3d349e,_0x2e7d39))return;const _0x5691a9=buildSuggestedTitle(_0x3d349e,_0x2e7d39);_0x409361(formatNudge(_0x5691a9));}function buildSuggestedTitle(_0x5a9356,_0x3fda6d){const _0x4512d0=a96_0x26fa5b,_0x56fe71=_0x5a9356 instanceof Error?_0x5a9356[_0x4512d0(0xc8)]:String(_0x5a9356),_0x5c1cfe=_0x56fe71['replace'](/[\r\n]+/g,'\x20')[_0x4512d0(0xb4)](/\s+/g,'\x20')[_0x4512d0(0xc7)]()[_0x4512d0(0xcc)](0x0,0x78)[_0x4512d0(0xb4)](/"/g,'\x5c\x22'),_0x28603f=CLI_BIN_NAME+'\x20'+_0x3fda6d[_0x4512d0(0xce)]+'\x20'+_0x3fda6d[_0x4512d0(0xb2)];return _0x5c1cfe[_0x4512d0(0xca)]>0x0?_0x28603f+':\x20'+_0x5c1cfe:_0x28603f;}function formatNudge(_0x522ee5){const _0x6d1612=a96_0x26fa5b;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x6d1612(0xb9),'\x20\x20'+CLI_BIN_NAME+_0x6d1612(0xc3),_0x6d1612(0xb1)+_0x522ee5+_0x6d1612(0xc1),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x6d1612(0xae),_0x6d1612(0xc2)+NUDGE_OPT_OUT_ENV+_0x6d1612(0xac),'']['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97_0x34a69d=a97_0x4475;(function(_0x5f21e6,_0x202498){const _0x2a1c79=a97_0x4475,_0x494f9d=_0x5f21e6();while(!![]){try{const _0x51d8b8=-parseInt(_0x2a1c79(0x1f7))/0x1+-parseInt(_0x2a1c79(0x1ec))/0x2+parseInt(_0x2a1c79(0x1f4))/0x3*(-parseInt(_0x2a1c79(0x1f3))/0x4)+-parseInt(_0x2a1c79(0x1e0))/0x5+parseInt(_0x2a1c79(0x1d3))/0x6+-parseInt(_0x2a1c79(0x205))/0x7*(-parseInt(_0x2a1c79(0x1fc))/0x8)+parseInt(_0x2a1c79(0x1e2))/0x9*(parseInt(_0x2a1c79(0x1f9))/0xa);if(_0x51d8b8===_0x202498)break;else _0x494f9d['push'](_0x494f9d['shift']());}catch(_0x36d6ca){_0x494f9d['push'](_0x494f9d['shift']());}}}(a97_0x4a3b,0xab00d));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=a97_0x34a69d(0x1dd);function a97_0x4475(_0x498d48,_0xc11be9){_0x498d48=_0x498d48-0x1d2;const _0x4a3b57=a97_0x4a3b();let _0x44750c=_0x4a3b57[_0x498d48];return _0x44750c;}function a97_0x4a3b(){const _0x2fca5d=['6915005SDRyLG','descriptionFilePath','27fKTDCy','flagMissing','trim','sanitize','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','otel://','issue.title','message','issue.description_original_bytes','join','197080MSpexB','push','File\x20not\x20found:\x20','issue.description','truncated:\x20original\x20','redactionCount','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','8YVhrqV','583473bGlcKG','redacted\x20','utf8','858055kxsPWN','truncated','6487270FTqHJa','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','originalBytes','1111032kdHliT','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','compress','Issue\x20description\x20file\x20is\x20empty:\x20','length','validation','cwd','string','description','14tFuYPx','issue.description_truncated','filter','title','truncated\x20from\x20','report','Issue\x20description\x20cannot\x20be\x20empty.','redactions:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','7230408kQwLvi','write','issue.description_redaction_kinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','issue.description_redactions','redactionKinds','str','apiError','Platform\x20issue\x20reported\x20(','description-file','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','\x20bytes'];a97_0x4a3b=function(){return _0x2fca5d;};return a97_0x4a3b();}export const issueReport={'service':'issue','command':a97_0x34a69d(0x20a),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a97_0x34a69d(0x1d4),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x34a69d(0x1fe),'flags':[{'name':a97_0x34a69d(0x208),'type':'string','required':!![],'description':'One-line\x20issue\x20summary'},{'name':a97_0x34a69d(0x204),'type':a97_0x34a69d(0x203),'description':a97_0x34a69d(0x1fa)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x34a69d(0x203),'description':a97_0x34a69d(0x1e6)}],async 'validate'(_0x56ea10){const _0x4f6d29=a97_0x34a69d,_0x329437=_0x56ea10[_0x4f6d29(0x1da)](_0x4f6d29(0x208))[_0x4f6d29(0x1e4)](),_0x2b3fb8=_0x56ea10[_0x4f6d29(0x1da)](_0x4f6d29(0x204))[_0x4f6d29(0x1e4)](),_0xa8d84b=_0x56ea10[_0x4f6d29(0x1da)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x329437)throw CliErrors[_0x4f6d29(0x1e3)](_0x4f6d29(0x208),_0x4f6d29(0x1d7));const _0x9088b1=_0x2b3fb8[_0x4f6d29(0x200)]>0x0,_0x1f6759=_0xa8d84b['length']>0x0;if(_0x9088b1===_0x1f6759)throw CliErrors[_0x4f6d29(0x201)](_0x4f6d29(0x1de),_0x4f6d29(0x1f2));if(_0x1f6759){const _0x1ed956=resolve(process['cwd'](),_0xa8d84b);if(!existsSync(_0x1ed956))throw CliErrors[_0x4f6d29(0x201)](_0x4f6d29(0x1ee)+_0x1ed956);}},async 'dryRun'(_0x4b06e8){const _0x386144=a97_0x34a69d,_0x448c75=await prepareIssueReport(_0x4b06e8);return{'method':'POST','url':_0x386144(0x1e7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x448c75[_0x386144(0x208)],'issue.description':_0x448c75[_0x386144(0x204)],'issue.description_original_bytes':_0x448c75[_0x386144(0x1e5)][_0x386144(0x1fb)],'issue.description_truncated':_0x448c75[_0x386144(0x1e5)]['truncated'],'issue.description_redactions':_0x448c75[_0x386144(0x1e5)]['redactionCount'],'issue.description_redaction_kinds':_0x448c75['sanitize'][_0x386144(0x1d9)]['join'](',')}},'description':[_0x386144(0x1d6),'descriptionSource:\x20'+_0x448c75['descriptionSource'],_0x448c75[_0x386144(0x1e1)]?'descriptionFile:\x20'+_0x448c75[_0x386144(0x1e1)]:null,_0x448c75[_0x386144(0x1e5)][_0x386144(0x1f8)]?_0x386144(0x1f0)+_0x448c75[_0x386144(0x1e5)]['originalBytes']+_0x386144(0x1df):null,_0x448c75[_0x386144(0x1e5)][_0x386144(0x1f1)]>0x0?_0x386144(0x20c)+_0x448c75[_0x386144(0x1e5)][_0x386144(0x1f1)]+'\x20('+_0x448c75[_0x386144(0x1e5)][_0x386144(0x1d9)][_0x386144(0x1eb)](',\x20')+')':null][_0x386144(0x207)](Boolean)['join']('\x0a')};},async 'execute'(_0x2e1584){const _0x3e1836=a97_0x34a69d,_0x30c965=await prepareIssueReport(_0x2e1584);try{await sendPlatformIssueCollectLog({'title':_0x30c965['title'],'description':_0x30c965[_0x3e1836(0x204)],'sanitize':{'originalBytes':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1fb)],'truncated':_0x30c965['sanitize'][_0x3e1836(0x1f8)],'redactionCount':_0x30c965['sanitize'][_0x3e1836(0x1f1)],'redactionKinds':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1d9)]}});}catch(_0x454bae){throw CliErrors[_0x3e1836(0x1db)](_0x3e1836(0x1d2)+(_0x454bae instanceof Error?_0x454bae[_0x3e1836(0x1e9)]:String(_0x454bae)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x30c965['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3e1836(0x1e8),_0x3e1836(0x1ef),_0x3e1836(0x1ea),_0x3e1836(0x206),_0x3e1836(0x1d8),_0x3e1836(0x1d5)],'issue':{'title':_0x30c965[_0x3e1836(0x208)],'descriptionLength':_0x30c965['description'][_0x3e1836(0x200)],'descriptionSource':_0x30c965['descriptionSource'],..._0x30c965[_0x3e1836(0x1e1)]?{'descriptionFile':_0x30c965[_0x3e1836(0x1e1)]}:{},'sanitize':{'originalBytes':_0x30c965[_0x3e1836(0x1e5)]['originalBytes'],'truncated':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1f8)],'redactions':_0x30c965[_0x3e1836(0x1e5)][_0x3e1836(0x1f1)],'redactionKinds':_0x30c965['sanitize'][_0x3e1836(0x1d9)]}}}};}};function buildResultMessage(_0x37180c){const _0x52dfad=a97_0x34a69d,_0x51eb7d=[];return _0x37180c[_0x52dfad(0x1f8)]&&_0x51eb7d[_0x52dfad(0x1ed)](_0x52dfad(0x209)+_0x37180c[_0x52dfad(0x1fb)]+_0x52dfad(0x1df)),_0x37180c[_0x52dfad(0x1f1)]>0x0&&_0x51eb7d[_0x52dfad(0x1ed)](_0x52dfad(0x1f5)+_0x37180c[_0x52dfad(0x1f1)]+'\x20secret(s):\x20'+_0x37180c[_0x52dfad(0x1d9)]['join'](',\x20')),_0x51eb7d['length']===0x0?'Platform\x20issue\x20reported':_0x52dfad(0x1dc)+_0x51eb7d[_0x52dfad(0x1eb)](';\x20')+')';}async function prepareIssueReport(_0x5956ac){const _0x56d3c0=a97_0x34a69d,_0x3e628c=_0x5956ac[_0x56d3c0(0x1da)](_0x56d3c0(0x208))[_0x56d3c0(0x1e4)](),_0x24ec41=_0x5956ac[_0x56d3c0(0x1da)](_0x56d3c0(0x204)),_0x4a493e=_0x5956ac[_0x56d3c0(0x1da)](DESCRIPTION_FILE_FLAG)[_0x56d3c0(0x1e4)]();if(!_0x4a493e){const _0x56fed0=_0x24ec41;if(!_0x56fed0[_0x56d3c0(0x1e4)]())throw CliErrors[_0x56d3c0(0x201)](_0x56d3c0(0x20b),_0x56d3c0(0x1fd));const _0x4a0726=sanitizeIssueDescription(_0x56fed0);return{'title':_0x3e628c,'description':_0x4a0726['description'],'descriptionSource':'inline','sanitize':_0x4a0726};}const _0x12a18d=resolve(process[_0x56d3c0(0x202)](),_0x4a493e),_0x3fff01=await readFile(_0x12a18d,_0x56d3c0(0x1f6));if(!_0x3fff01['trim']())throw CliErrors[_0x56d3c0(0x201)](_0x56d3c0(0x1ff)+_0x12a18d,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x29f510=sanitizeIssueDescription(_0x3fff01);return{'title':_0x3e628c,'description':_0x29f510[_0x56d3c0(0x204)],'descriptionSource':'file','descriptionFilePath':_0x12a18d,'sanitize':_0x29f510};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x21c042=a98_0x2dff;function a98_0x2dff(_0x153f15,_0x195332){_0x153f15=_0x153f15-0x78;const _0x9ee148=a98_0x9ee1();let _0x2dffdc=_0x9ee148[_0x153f15];return _0x2dffdc;}(function(_0x22aeb0,_0x12e398){const _0x5a14e2=a98_0x2dff,_0x5b6df2=_0x22aeb0();while(!![]){try{const _0x16f17f=parseInt(_0x5a14e2(0x83))/0x1*(-parseInt(_0x5a14e2(0x96))/0x2)+parseInt(_0x5a14e2(0x91))/0x3+parseInt(_0x5a14e2(0x89))/0x4*(-parseInt(_0x5a14e2(0x81))/0x5)+-parseInt(_0x5a14e2(0x93))/0x6*(parseInt(_0x5a14e2(0x78))/0x7)+-parseInt(_0x5a14e2(0x86))/0x8+-parseInt(_0x5a14e2(0x7c))/0x9+parseInt(_0x5a14e2(0x97))/0xa;if(_0x16f17f===_0x12e398)break;else _0x5b6df2['push'](_0x5b6df2['shift']());}catch(_0x39dbd9){_0x5b6df2['push'](_0x5b6df2['shift']());}}}(a98_0x9ee1,0xe5254));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x21c042(0x87),REDACTION_RULES=[{'kind':a98_0x21c042(0x8a),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a98_0x21c042(0x85),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x21c042(0x80)},{'kind':a98_0x21c042(0x8d),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x21c042(0x90)},{'kind':a98_0x21c042(0x7e),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x21c042(0x88)},{'kind':a98_0x21c042(0x8b),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a98_0x21c042(0x8c),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x21c042(0x8e)}];export function sanitizeIssueDescription(_0x1f4b7c){const _0x43a92f=a98_0x21c042,_0x516e38=Buffer[_0x43a92f(0x92)](_0x1f4b7c,_0x43a92f(0x79)),_0x580f17=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x516880=_0x1f4b7c,_0x391bf2=0x0;const _0x2d55a1=[];if(!_0x580f17){const _0x5b4d39=protectOssAccessKeyIds(_0x516880);_0x516880=_0x5b4d39[_0x43a92f(0x99)];for(const _0x54ee17 of REDACTION_RULES){let _0x3eeadc=0x0;_0x516880=_0x516880[_0x43a92f(0x7d)](_0x54ee17[_0x43a92f(0x84)],(_0x3712a6,_0x3b9d8b)=>{const _0x192c02=_0x43a92f;_0x3eeadc+=0x1;const _0xa48289=typeof _0x3b9d8b===_0x192c02(0x95)?_0x3b9d8b:'';return _0xa48289+'['+_0x54ee17[_0x192c02(0x98)]+']';}),_0x3eeadc>0x0&&(_0x391bf2+=_0x3eeadc,!_0x2d55a1['includes'](_0x54ee17[_0x43a92f(0x7f)])&&_0x2d55a1[_0x43a92f(0x9a)](_0x54ee17['kind']));}_0x516880=_0x5b4d39[_0x43a92f(0x8f)](_0x516880);}let _0x3bab13=![];if(Buffer[_0x43a92f(0x92)](_0x516880,_0x43a92f(0x79))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3bab13=!![];const _0x367437=Buffer['byteLength'](TRUNCATION_NOTICE,_0x43a92f(0x79)),_0x4436a8=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x367437);_0x516880=sliceUtf8Bytes(_0x516880,_0x4436a8)+TRUNCATION_NOTICE;}return{'description':_0x516880,'originalBytes':_0x516e38,'truncated':_0x3bab13,'redactionCount':_0x391bf2,'redactionKinds':_0x2d55a1};}function protectOssAccessKeyIds(_0x4b95f2){const _0x3da6ad=a98_0x21c042,_0x130dee=[],_0x54eda5=_0x4b95f2['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x4e0a6b,_0x2546a0)=>{const _0x12e3d1=a98_0x2dff,_0x49a2c9=_0x130dee['push'](_0x4e0a6b['slice'](_0x2546a0['length']))-0x1;return _0x2546a0+_0x12e3d1(0x7b)+_0x49a2c9+'__';});return{'description':_0x54eda5,'restore':_0x3ce55c=>_0x3ce55c[_0x3da6ad(0x7d)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x4bd5a4,_0x516264,_0x5eef4f)=>{const _0x356b03=_0x130dee[Number(_0x5eef4f)];return _0x356b03===undefined?_0x4bd5a4:''+_0x516264+_0x356b03;})};}function a98_0x9ee1(){const _0x2ef0c2=['bearer-jwt','private-key','REDACTED:bearer-jwt','restore','REDACTED:private-key','15402MBwkXn','byteLength','1293258VkWYoR','subarray','string','12psCZGu','56992590Dreoss','label','description','push','35VbnlTx','utf8','toString','__RB_OSS_ID_','8071344NZHldv','replace','access-key','kind','REDACTED:authorization','5WEQXpB','from','264664OdVcpq','pattern','authorization','5484840HSzyPC','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','REDACTED:access-key','2070772ySoSHS','cookie','password'];a98_0x9ee1=function(){return _0x2ef0c2;};return a98_0x9ee1();}function sliceUtf8Bytes(_0x3d5487,_0x97e11e){const _0x354880=a98_0x21c042;if(_0x97e11e<=0x0)return'';const _0x57ec4c=Buffer[_0x354880(0x82)](_0x3d5487,'utf8');if(_0x57ec4c[_0x354880(0x92)]<=_0x97e11e)return _0x3d5487;let _0x2fb4b0=_0x97e11e;while(_0x2fb4b0>0x0){const _0xdb40d8=_0x57ec4c[_0x2fb4b0];if(_0xdb40d8===undefined||(_0xdb40d8&0xc0)!==0x80)break;_0x2fb4b0-=0x1;}return _0x57ec4c[_0x354880(0x94)](0x0,_0x2fb4b0)[_0x354880(0x7a)](_0x354880(0x79));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x434c97=a99_0x1db1;(function(_0xbd8298,_0x58f15b){const _0x1e716f=a99_0x1db1,_0xf3b3b5=_0xbd8298();while(!![]){try{const _0x31e4e7=-parseInt(_0x1e716f(0x13b))/0x1+parseInt(_0x1e716f(0x122))/0x2+parseInt(_0x1e716f(0x128))/0x3+-parseInt(_0x1e716f(0x142))/0x4*(parseInt(_0x1e716f(0x141))/0x5)+-parseInt(_0x1e716f(0x12c))/0x6+-parseInt(_0x1e716f(0x129))/0x7+parseInt(_0x1e716f(0x14e))/0x8*(parseInt(_0x1e716f(0x143))/0x9);if(_0x31e4e7===_0x58f15b)break;else _0xf3b3b5['push'](_0xf3b3b5['shift']());}catch(_0x1db693){_0xf3b3b5['push'](_0xf3b3b5['shift']());}}}(a99_0x408a,0x53765));function a99_0x408a(){const _0x29e635=['file','Knowledge-base\x20title','\x20does\x20not\x20match\x20the\x20requested\x20create\x20state.','13855xqjFzE','932MYpMuB','846PrxuZa','Create\x20a\x20company\x20knowledge\x20base\x20from\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file','Company\x20knowledge\x20base\x20','contentHash','--file\x20is\x20required.','rabetbase\x20kb\x20detail\x20--id\x20','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','--title\x20is\x20required.','Expected\x20one\x20exact\x20company\x20knowledge\x20base\x20after\x20uncertain\x20create;\x20found\x20','length','Do\x20not\x20resubmit.\x20Inspect\x20the\x20resolved\x20app\x20and\x20determine\x20the\x20outcome\x20manually.','148448PfGIDF','UTF-8\x20text\x20or\x20Markdown\x20content\x20file','143634IBptLG','str','create','Pass\x20a\x20UTF-8\x20text\x20or\x20Markdown\x20file.','kb_title_required','Company\x20knowledge\x20base\x20already\x20exists\x20for\x20app\x20','907785mJekcb','2273789TfRQQS','title','content','1427748kAtaec','cookie','Created\x20company\x20knowledge\x20base\x20','/admin/knowledge-base/create','high-risk-write','rabetbase\x20kb\x20list\x20--title\x20','Run\x20`rabetbase\x20kb\x20detail\x20--id\x20','\x20with\x20title\x20','company','\x20--format\x20compress','Create\x20response\x20was\x20unavailable;\x20recovered\x20one\x20exact\x20company/app/title\x20record\x20without\x20resubmitting.','string','trim','kb_create_outcome_unknown','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','568387IeLfno','appCode','verified'];a99_0x408a=function(){return _0x29e635;};return a99_0x408a();}import{createEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';import{asDryRunResult}from'../../commands/common/dry-run.js';function a99_0x1db1(_0x3437ba,_0xbc0f77){_0x3437ba=_0x3437ba-0x122;const _0x408a74=a99_0x408a();let _0x1db15b=_0x408a74[_0x3437ba];return _0x1db15b;}import{assertCompanyKnowledgeBase,fetchAllCompanyKnowledgeBases,findExactCompanyKnowledgeBases,inspectKbContent,kbError,projectKb,readKbFile,requireKb,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const CREATE_PATH=a99_0x434c97(0x12f);function readCreateInput(_0x4d4d15){const _0x883912=a99_0x434c97,_0x26eed6=_0x4d4d15[_0x883912(0x123)](_0x883912(0x12a))['trim']();if(!_0x26eed6)throw kbError(_0x883912(0x126),_0x883912(0x14a));const _0x4d8b86=_0x4d4d15[_0x883912(0x123)](_0x883912(0x13e))[_0x883912(0x138)]();if(!_0x4d8b86)throw kbError('kb_file_required',_0x883912(0x147),_0x883912(0x125));return{'title':_0x26eed6,'file':_0x4d8b86};}async function prepareCreate(_0x390c58){const _0x35ca87=a99_0x434c97,_0x8e5d6e=readCreateInput(_0x390c58),_0x4dc6c8=await readKbFile(_0x8e5d6e[_0x35ca87(0x13e)]),_0x4663e3=await fetchAllCompanyKnowledgeBases(_0x390c58,{'title':_0x8e5d6e[_0x35ca87(0x12a)]}),_0x1cea02=findExactCompanyKnowledgeBases(_0x4663e3,_0x390c58[_0x35ca87(0x13c)],_0x8e5d6e['title']);if(_0x1cea02[_0x35ca87(0x14c)]>0x0)throw kbError('kb_already_exists',_0x35ca87(0x127)+_0x390c58['appCode']+_0x35ca87(0x133)+_0x8e5d6e[_0x35ca87(0x12a)]+'.',_0x35ca87(0x132)+_0x1cea02[0x0]['id']+'\x20--format\x20compress`\x20before\x20choosing\x20update.');return{..._0x8e5d6e,'content':_0x4dc6c8};}function plannedAfter(_0x4934d5,_0x55e29b){const _0x3af4a9=a99_0x434c97;return{'scope':_0x3af4a9(0x134),'appCode':_0x4934d5[_0x3af4a9(0x13c)],'title':_0x55e29b[_0x3af4a9(0x12a)],'contentByteSize':_0x55e29b[_0x3af4a9(0x12b)]['byteSize'],'contentHash':_0x55e29b[_0x3af4a9(0x12b)]['contentHash']};}function verifyCreatedState(_0x612a4a,_0x9c663e,_0x2925a3){const _0x2d6262=a99_0x434c97;assertCompanyKnowledgeBase(_0x2925a3,_0x612a4a[_0x2d6262(0x13c)],_0x2925a3['id']);const _0x23fd8f=inspectKbContent(_0x2925a3['content']);if(_0x2925a3[_0x2d6262(0x12a)]!==_0x9c663e['title']||_0x23fd8f[_0x2d6262(0x146)]!==_0x9c663e['content'][_0x2d6262(0x146)])throw kbError('kb_verification_failed',_0x2d6262(0x145)+_0x2925a3['id']+_0x2d6262(0x140),_0x2d6262(0x13a)+_0x2925a3['id']+_0x2d6262(0x149));return projectKb(_0x2925a3);}export const kbCreate={'service':'kb','command':a99_0x434c97(0x124),'description':a99_0x434c97(0x144),'risk':a99_0x434c97(0x130),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a99_0x434c97(0x12a),'type':'string','required':!![],'description':a99_0x434c97(0x13f)},{'name':a99_0x434c97(0x13e),'type':a99_0x434c97(0x137),'required':!![],'description':a99_0x434c97(0x14f)}],async 'validate'(_0x2fbfc4){readCreateInput(_0x2fbfc4),requireKbExplicitYes(_0x2fbfc4);},async 'dryRun'(_0x1b8f62){const _0x5ca5bc=a99_0x434c97,_0x3789e0=await prepareCreate(_0x1b8f62);return asDryRunResult({'operation':_0x5ca5bc(0x124),'selector':{'scope':_0x5ca5bc(0x134),'appCode':_0x1b8f62[_0x5ca5bc(0x13c)],'title':_0x3789e0[_0x5ca5bc(0x12a)]},'before':null,'after':plannedAfter(_0x1b8f62,_0x3789e0),'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'lookupCommand':_0x5ca5bc(0x131)+JSON['stringify'](_0x3789e0[_0x5ca5bc(0x12a)])+_0x5ca5bc(0x135)}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x4fafe6){const _0x3e0d2e=a99_0x434c97;requireKbExplicitYes(_0x4fafe6);const _0x2fa4dc=await prepareCreate(_0x4fafe6);let _0xe863e0,_0x1a28b9=![];try{const _0x28e3d4=await createEnterpriseKnowledgeBase(_0x4fafe6[_0x3e0d2e(0x12d)],{'appCode':_0x4fafe6['appCode'],'title':_0x2fa4dc['title'],'content':_0x2fa4dc[_0x3e0d2e(0x12b)][_0x3e0d2e(0x12b)]});assertCompanyKnowledgeBase(_0x28e3d4,_0x4fafe6[_0x3e0d2e(0x13c)],_0x28e3d4['id']),_0xe863e0=_0x28e3d4['id'];}catch(_0x438ae2){if(!isPlatformTransportFailure(_0x438ae2))throw _0x438ae2;_0x1a28b9=!![];}if(_0xe863e0===undefined){const _0x57027b=await verifyKbMutationReadback(_0x3e0d2e(0x124),!![],()=>fetchAllCompanyKnowledgeBases(_0x4fafe6,{'title':_0x2fa4dc[_0x3e0d2e(0x12a)]})),_0x2281ca=findExactCompanyKnowledgeBases(_0x57027b,_0x4fafe6[_0x3e0d2e(0x13c)],_0x2fa4dc[_0x3e0d2e(0x12a)]);if(_0x2281ca['length']!==0x1)throw kbError(_0x3e0d2e(0x139),_0x3e0d2e(0x14b)+_0x2281ca[_0x3e0d2e(0x14c)]+'.',_0x3e0d2e(0x14d));_0xe863e0=_0x2281ca[0x0]['id'];}const _0x2e943b=await verifyKbMutationReadback(_0x3e0d2e(0x124),_0x1a28b9,()=>requireKb(_0x4fafe6,_0xe863e0)),_0x28dbe2=verifyCreatedState(_0x4fafe6,_0x2fa4dc,_0x2e943b),_0x35641d=_0x1a28b9?[_0x3e0d2e(0x136)]:[];return{'ok':!![],'data':{'operation':_0x3e0d2e(0x124),'selector':{'id':_0x28dbe2['id'],'scope':_0x3e0d2e(0x134),'appCode':_0x28dbe2['appCode']},'before':null,'after':_0x28dbe2,'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':_0x35641d,'verification':{'status':_0x3e0d2e(0x13d),'recoveredAfterUnknownResponse':_0x1a28b9,'lookupCommand':_0x3e0d2e(0x148)+_0x28dbe2['id']+_0x3e0d2e(0x135)}},'message':_0x3e0d2e(0x12e)+_0x28dbe2['id']+'\x20for\x20'+_0x28dbe2['appCode']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a100_0x1d2fa9=a100_0x2da2;(function(_0x1528ef,_0x19e483){const _0xe29a15=a100_0x2da2,_0x5483fd=_0x1528ef();while(!![]){try{const _0x190ad6=parseInt(_0xe29a15(0x1e3))/0x1+-parseInt(_0xe29a15(0x1f4))/0x2*(parseInt(_0xe29a15(0x1f0))/0x3)+parseInt(_0xe29a15(0x201))/0x4+-parseInt(_0xe29a15(0x1f6))/0x5*(parseInt(_0xe29a15(0x1ed))/0x6)+-parseInt(_0xe29a15(0x1f9))/0x7+-parseInt(_0xe29a15(0x202))/0x8*(-parseInt(_0xe29a15(0x1e2))/0x9)+parseInt(_0xe29a15(0x1f2))/0xa;if(_0x190ad6===_0x19e483)break;else _0x5483fd['push'](_0x5483fd['shift']());}catch(_0x3f0670){_0x5483fd['push'](_0x5483fd['shift']());}}}(a100_0x5ba1,0x361cd));import{deleteEnterpriseKnowledgeBase,isPlatformTransportFailure}from'../../core/api-client.js';function a100_0x2da2(_0x38202c,_0x2066e9){_0x38202c=_0x38202c-0x1e1;const _0x5ba197=a100_0x5ba1();let _0x2da285=_0x5ba197[_0x38202c];return _0x2da285;}import{asDryRunResult}from'../../commands/common/dry-run.js';function a100_0x5ba1(){const _0x1dbadc=['195692hayMXA','kb_expected_version_invalid','isSafeInteger','no_op','\x20--format\x20compress`;\x20do\x20not\x20resubmit\x20automatically.','/admin/knowledge-base/delete','unshift','snapshotHash','Non-atomic\x20preflight\x20assertion\x20for\x20the\x20current\x20version','company','90CZSVTq','\x20remains\x20readable\x20after\x20delete.','verified','1347bGnDPB','--expected-version\x20must\x20be\x20a\x20non-negative\x20safe\x20integer.','2189090xEBVSe','high-risk-write','992GLllXH','\x20--format\x20compress','31760zOYkyf','expected-version','Inspect\x20it\x20with\x20`rabetbase\x20kb\x20detail\x20--id\x20','1276247SGxwIT','Soft-delete\x20a\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','delete','already_absent','appCode','Company\x20knowledge\x20base\x20','POST','\x20is\x20already\x20absent;\x20no\x20delete\x20request\x20was\x20made','892448IeAAbH','8SLerOM','rabetbase\x20kb\x20detail\x20--id\x20','Delete\x20response\x20was\x20unavailable;\x20exact-ID\x20not-found\x20readback\x20verified\x20database\x20soft\x20deletion\x20without\x20resubmitting.','flag','number','758133VCvBFP'];a100_0x5ba1=function(){return _0x1dbadc;};return a100_0x5ba1();}import{assertExpectedKbVersion,getKbOrNull,kbError,projectKb,readKbId,requireKbExplicitYes,verifyKbMutationReadback}from'../../commands/kb/shared.js';const DELETE_PATH=a100_0x1d2fa9(0x1e8),RAG_WARNING='Database\x20soft\x20deletion\x20was\x20verified;\x20asynchronous\x20RAG\x20cleanup\x20was\x20not\x20verified\x20by\x20the\x20CLI.',NON_ATOMIC_WARNING='--expected-version\x20is\x20a\x20non-atomic\x20read-before-write\x20assertion;\x20the\x20server\x20delete\x20contract\x20has\x20no\x20version\x20predicate.';function readExpectedVersion(_0xdd20a3){const _0x5bba78=a100_0x1d2fa9,_0x4aecbe=_0xdd20a3[_0x5bba78(0x205)](_0x5bba78(0x1f7));if(_0x4aecbe===undefined)return undefined;const _0x3d086f=Number(_0x4aecbe);if(!Number[_0x5bba78(0x1e5)](_0x3d086f)||_0x3d086f<0x0)throw kbError(_0x5bba78(0x1e4),_0x5bba78(0x1f1));return _0x3d086f;}function noOpData(_0x92f4a8,_0xab7711,_0x87e68){const _0x40eeea=a100_0x1d2fa9;return{'operation':_0x40eeea(0x1e6),'selector':{'id':_0xab7711,'scope':_0x40eeea(0x1ec),'appCode':_0x92f4a8[_0x40eeea(0x1fd)]},'before':null,'after':null,'dryRun':_0x87e68,'deleteCalled':![],'backend':{'method':_0x40eeea(0x1ff),'path':DELETE_PATH},'warnings':[],'verification':{'status':_0x40eeea(0x1fc),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]}}};}export const kbDelete={'service':'kb','command':'delete','description':a100_0x1d2fa9(0x1fa),'risk':a100_0x1d2fa9(0x1f3),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':'number','required':!![],'description':'Company\x20knowledge-base\x20id'},{'name':'expected-version','type':a100_0x1d2fa9(0x1e1),'required':![],'description':a100_0x1d2fa9(0x1eb)}],async 'validate'(_0x1def49){readKbId(_0x1def49),readExpectedVersion(_0x1def49),requireKbExplicitYes(_0x1def49);},async 'dryRun'(_0x19163f){const _0x4b27b7=a100_0x1d2fa9,_0x3c2c6b=readKbId(_0x19163f),_0x1dc317=readExpectedVersion(_0x19163f),_0x1e4cc6=await getKbOrNull(_0x19163f,_0x3c2c6b);if(!_0x1e4cc6)return asDryRunResult(noOpData(_0x19163f,_0x3c2c6b,!![]),{'method':_0x4b27b7(0x1ff),'url':DELETE_PATH});assertExpectedKbVersion(_0x1e4cc6,_0x1dc317);const _0x709051=projectKb(_0x1e4cc6),_0x136f08=[RAG_WARNING];if(_0x1dc317!==undefined)_0x136f08[_0x4b27b7(0x1e9)](NON_ATOMIC_WARNING);return asDryRunResult({'operation':_0x4b27b7(0x1fb),'selector':{'id':_0x709051['id'],'scope':_0x4b27b7(0x1ec),'appCode':_0x709051['appCode']},'before':_0x709051,'after':null,'dryRun':!![],'deleteCalled':![],'backend':{'method':_0x4b27b7(0x1ff),'path':DELETE_PATH},'warnings':_0x136f08,'verification':{'expectedVersion':_0x1dc317??null,'atomicCompareAndSet':![],'snapshotHash':_0x709051[_0x4b27b7(0x1ea)],'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'lookupCommand':_0x4b27b7(0x203)+_0x709051['id']+_0x4b27b7(0x1f5)}},{'method':_0x4b27b7(0x1ff),'url':DELETE_PATH});},async 'execute'(_0x4caf10){const _0x71333=a100_0x1d2fa9;requireKbExplicitYes(_0x4caf10);const _0x1436db=readKbId(_0x4caf10),_0x5c90d4=readExpectedVersion(_0x4caf10),_0x307c86=await getKbOrNull(_0x4caf10,_0x1436db);if(!_0x307c86)return{'ok':!![],'data':noOpData(_0x4caf10,_0x1436db,![]),'message':_0x71333(0x1fe)+_0x1436db+_0x71333(0x200)};assertExpectedKbVersion(_0x307c86,_0x5c90d4);const _0x2e6af6=projectKb(_0x307c86);let _0x24da40=![];try{await deleteEnterpriseKnowledgeBase(_0x4caf10['cookie'],_0x1436db);}catch(_0x299e6a){if(!isPlatformTransportFailure(_0x299e6a))throw _0x299e6a;_0x24da40=!![];}const _0x67167e=await verifyKbMutationReadback(_0x71333(0x1fb),_0x24da40,()=>getKbOrNull(_0x4caf10,_0x1436db));if(_0x67167e)throw kbError(_0x24da40?'kb_delete_outcome_unknown':'kb_verification_failed',_0x71333(0x1fe)+_0x1436db+_0x71333(0x1ee),_0x71333(0x1f8)+_0x1436db+_0x71333(0x1e7));const _0x4463db=[RAG_WARNING];if(_0x5c90d4!==undefined)_0x4463db['unshift'](NON_ATOMIC_WARNING);return _0x24da40&&_0x4463db[_0x71333(0x1e9)](_0x71333(0x204)),{'ok':!![],'data':{'operation':_0x71333(0x1fb),'selector':{'id':_0x2e6af6['id'],'scope':_0x71333(0x1ec),'appCode':_0x2e6af6[_0x71333(0x1fd)]},'before':_0x2e6af6,'after':null,'dryRun':![],'deleteCalled':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':_0x4463db,'verification':{'status':_0x71333(0x1ef),'databaseSoftDelete':!![],'ragCleanup':{'asynchronous':!![],'verified':![]},'recoveredAfterUnknownResponse':_0x24da40,'lookupCommand':'rabetbase\x20kb\x20detail\x20--id\x20'+_0x2e6af6['id']+_0x71333(0x1f5)}},'message':'Soft-deleted\x20company\x20knowledge\x20base\x20'+_0x2e6af6['id']};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a101_0x12b5(_0x58d70b,_0x21e61e){_0x58d70b=_0x58d70b-0x154;const _0x1d8a2a=a101_0x1d8a();let _0x12b550=_0x1d8a2a[_0x58d70b];return _0x12b550;}const a101_0x211379=a101_0x12b5;(function(_0x4ea6d0,_0x1a4318){const _0x45d433=a101_0x12b5,_0x25afdc=_0x4ea6d0();while(!![]){try{const _0x2856a9=parseInt(_0x45d433(0x155))/0x1+-parseInt(_0x45d433(0x156))/0x2*(parseInt(_0x45d433(0x15f))/0x3)+parseInt(_0x45d433(0x15b))/0x4*(parseInt(_0x45d433(0x15e))/0x5)+parseInt(_0x45d433(0x15c))/0x6*(-parseInt(_0x45d433(0x159))/0x7)+parseInt(_0x45d433(0x158))/0x8*(-parseInt(_0x45d433(0x15a))/0x9)+-parseInt(_0x45d433(0x154))/0xa+parseInt(_0x45d433(0x160))/0xb;if(_0x2856a9===_0x1a4318)break;else _0x25afdc['push'](_0x25afdc['shift']());}catch(_0x13de71){_0x25afdc['push'](_0x25afdc['shift']());}}}(a101_0x1d8a,0x9bab9));import{projectKb,readKbId,requireKb}from'../../commands/kb/shared.js';function a101_0x1d8a(){const _0x158249=['20489568DwrqDF','Show\x20one\x20company\x20knowledge\x20base\x20for\x20the\x20resolved\x20app','Loaded\x20company\x20knowledge\x20base\x20','6566760GtalZi','434741xOEEoO','6jdyRln','number','104mBJYSt','287vOiCUO','278595rddkMc','28XteKyH','121782tYMrFv','read','718255TEQwGf','774093RJaWGW'];a101_0x1d8a=function(){return _0x158249;};return a101_0x1d8a();}export const kbDetail={'service':'kb','command':'detail','description':a101_0x211379(0x161),'risk':a101_0x211379(0x15d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':'id','type':a101_0x211379(0x157),'required':!![],'description':'Company\x20knowledge-base\x20id'}],async 'validate'(_0x413aeb){readKbId(_0x413aeb);},async 'execute'(_0x5333cc){const _0x40537c=a101_0x211379,_0x2cd710=readKbId(_0x5333cc),_0x134007=await requireKb(_0x5333cc,_0x2cd710);return{'ok':!![],'data':{'knowledgeBase':projectKb(_0x134007)},'message':_0x40537c(0x162)+_0x2cd710};}};
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa5ba11,_0x3c2904){const _0x55a12f=a102_0xdbf2,_0x25b7bb=_0xa5ba11();while(!![]){try{const _0x128e41=-parseInt(_0x55a12f(0x1f6))/0x1+-parseInt(_0x55a12f(0x1fa))/0x2+parseInt(_0x55a12f(0x1f7))/0x3*(-parseInt(_0x55a12f(0x1f8))/0x4)+parseInt(_0x55a12f(0x1f9))/0x5*(parseInt(_0x55a12f(0x1f3))/0x6)+-parseInt(_0x55a12f(0x1f4))/0x7+parseInt(_0x55a12f(0x1f5))/0x8*(parseInt(_0x55a12f(0x1fd))/0x9)+-parseInt(_0x55a12f(0x1fb))/0xa*(-parseInt(_0x55a12f(0x1fc))/0xb);if(_0x128e41===_0x3c2904)break;else _0x25b7bb['push'](_0x25b7bb['shift']());}catch(_0x1734d8){_0x25b7bb['push'](_0x25b7bb['shift']());}}}(a102_0x58b5,0x1d5d4));function a102_0x58b5(){const _0x4130f8=['841960cZnUst','40xRHPLR','139841MyvRxb','24DcIaQU','6104uLpPxB','280rGkXXA','380274cVkFgC','81830WrtajO','517dCZzOm','306153tDTChA','3006HzrlxA'];a102_0x58b5=function(){return _0x4130f8;};return a102_0x58b5();}import{kbList}from'../../commands/kb/list.js';import{kbDetail}from'../../commands/kb/detail.js';import{kbCreate}from'../../commands/kb/create.js';import{kbUpdate}from'../../commands/kb/update.js';function a102_0xdbf2(_0x53e4cc,_0x212c9f){_0x53e4cc=_0x53e4cc-0x1f3;const _0x58b5bf=a102_0x58b5();let _0xdbf25=_0x58b5bf[_0x53e4cc];return _0xdbf25;}import{kbDelete}from'../../commands/kb/delete.js';export const kbDefinitions=[kbList,kbDetail,kbCreate,kbUpdate,kbDelete];
|
package/lib/commands/kb/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103_0x1e9da5=a103_0x31d2;(function(_0x162145,_0xbb4b58){const _0x5b0eb9=a103_0x31d2,_0x13ec0b=_0x162145();while(!![]){try{const _0x4083aa=parseInt(_0x5b0eb9(0x93))/0x1*(-parseInt(_0x5b0eb9(0x8f))/0x2)+-parseInt(_0x5b0eb9(0x95))/0x3+-parseInt(_0x5b0eb9(0x97))/0x4+parseInt(_0x5b0eb9(0x96))/0x5+-parseInt(_0x5b0eb9(0x9d))/0x6+-parseInt(_0x5b0eb9(0x9a))/0x7*(-parseInt(_0x5b0eb9(0x91))/0x8)+parseInt(_0x5b0eb9(0x99))/0x9*(parseInt(_0x5b0eb9(0x90))/0xa);if(_0x4083aa===_0xbb4b58)break;else _0x13ec0b['push'](_0x13ec0b['shift']());}catch(_0x4a35b0){_0x13ec0b['push'](_0x13ec0b['shift']());}}}(a103_0x2ac6,0x5778e));import{fetchAllCompanyKnowledgeBases,projectKb}from'../../commands/kb/shared.js';export const kbList={'service':'kb','command':'list','description':a103_0x1e9da5(0x9f),'risk':a103_0x1e9da5(0x94),'requiresAppCode':!![],'structuredErrors':!![],'flags':[{'name':a103_0x1e9da5(0x9b),'type':a103_0x1e9da5(0xa2),'required':![],'description':a103_0x1e9da5(0x98)}],async 'execute'(_0x5ebe4f){const _0x1946f7=a103_0x1e9da5,_0x570c5f=_0x5ebe4f[_0x1946f7(0x9e)](_0x1946f7(0x9b))[_0x1946f7(0xa3)](),_0x1f34b9=await fetchAllCompanyKnowledgeBases(_0x5ebe4f,{..._0x570c5f?{'title':_0x570c5f}:{}}),_0xfd986d=_0x1f34b9[_0x1946f7(0x9c)](projectKb);return{'ok':!![],'data':{'total':_0xfd986d[_0x1946f7(0x92)],'knowledgeBases':_0xfd986d},'message':_0x1946f7(0xa0)+_0xfd986d[_0x1946f7(0x92)]+_0x1946f7(0xa4)+_0x5ebe4f[_0x1946f7(0xa1)]};}};function a103_0x31d2(_0x3e968b,_0x67aef9){_0x3e968b=_0x3e968b-0x8f;const _0x2ac605=a103_0x2ac6();let _0x31d27a=_0x2ac605[_0x3e968b];return _0x31d27a;}function a103_0x2ac6(){const _0xc59c24=['appCode','string','trim','\x20company\x20knowledge\x20base(s)\x20for\x20','2IGKESq','58010TqHWDK','434344rmmuCU','length','405079BWXLSg','read','398157OPAZro','3302850NTervW','1034420VwlvzM','Filter\x20by\x20knowledge-base\x20title','1206bkPmXQ','35rUoFIJ','title','map','3328080taKEeT','str','List\x20company\x20knowledge\x20bases\x20for\x20the\x20resolved\x20app','Found\x20'];a103_0x2ac6=function(){return _0xc59c24;};return a103_0x2ac6();}
|