@lovrabet/lovrabet-cli 2.3.6-beta.3 → 2.3.6
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/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/import-excel.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.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-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/personal-bff/index.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/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.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/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.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/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/access-error.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.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/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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/services/dataset-import/auto-id-runner.js +1 -1
- package/lib/services/dataset-import/excel-reader.js +1 -1
- package/lib/services/dataset-import/image-bytes.js +1 -1
- package/lib/services/dataset-import/image-ooxml.js +1 -1
- package/lib/services/dataset-import/image-runner.js +1 -1
- package/lib/services/dataset-import/metadata.js +1 -1
- package/lib/services/dataset-import/preview.js +1 -1
- package/lib/services/dataset-import/runner.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
function a27_0x3d08(_0x373d06,_0x518781){_0x373d06=_0x373d06-0x1c9;const _0x40658d=a27_0x4065();let _0x3d0891=_0x40658d[_0x373d06];return _0x3d0891;}const a27_0xad014=a27_0x3d08;(function(_0x56dc4b,_0x11628a){const _0x5c1d1c=a27_0x3d08,_0x223e96=_0x56dc4b();while(!![]){try{const _0xd2f67d=parseInt(_0x5c1d1c(0x1c9))/0x1+parseInt(_0x5c1d1c(0x1fd))/0x2+parseInt(_0x5c1d1c(0x211))/0x3+parseInt(_0x5c1d1c(0x1cd))/0x4*(-parseInt(_0x5c1d1c(0x1d8))/0x5)+-parseInt(_0x5c1d1c(0x202))/0x6+-parseInt(_0x5c1d1c(0x1f9))/0x7+parseInt(_0x5c1d1c(0x1ee))/0x8*(-parseInt(_0x5c1d1c(0x215))/0x9);if(_0xd2f67d===_0x11628a)break;else _0x223e96['push'](_0x223e96['shift']());}catch(_0x5f3afd){_0x223e96['push'](_0x223e96['shift']());}}}(a27_0x4065,0x7e385));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';function a27_0x4065(){const _0x31cc59=['Create\x20one\x20record\x20in\x20the\x20dataset','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','confirmationDescription','update','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','paramsRequired','\x20\x20PARAMS\x20STRUCTURE','dryRun','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','aggregate','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','Filter\x20dataset\x20records\x20with\x20query\x20conditions','16WRzIKP','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','Preview:\x20data\x20','operation','risk','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','5972701rwqksX','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20DATASET\x20BOUNDARY','2039320RSpoOP','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20\x20EXAMPLES','write','1782150mlocZw','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','delete','read','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','batch','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','create','filter','now','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20AGGREGATE\x20TYPES','command','1791108XxLWgH','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','175626twwEsD','POST','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','data','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','map','data\x20','description','\x20\x20WHERE\x20OPERATORS','getOne','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','code','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','batchCreate','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','757265CiefPF','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}','join','48djlhop','params','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}','length','str','\x20completed\x20in\x20','body','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','high-risk-write','278195rdbtlu'];a27_0x4065=function(){return _0x31cc59;};return a27_0x4065();}import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':'filter','operation':a27_0xad014(0x20b),'risk':a27_0xad014(0x205),'paramsRequired':![],'description':a27_0xad014(0x1ed),'paramsHint':a27_0xad014(0x1ef)+a27_0xad014(0x203),'helpExtra':[a27_0xad014(0x223),'\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}',a27_0xad014(0x1d1),a27_0xad014(0x21d),a27_0xad014(0x1e9),a27_0xad014(0x1f5),a27_0xad014(0x218),a27_0xad014(0x21b),'\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}',a27_0xad014(0x219),'','\x20\x20LOGICAL\x20COMBINATORS',a27_0xad014(0x1da),a27_0xad014(0x22c),'',a27_0xad014(0x209),a27_0xad014(0x1fa),a27_0xad014(0x20d),a27_0xad014(0x1ca),a27_0xad014(0x21e),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','','\x20\x20PAGINATION',a27_0xad014(0x214),a27_0xad014(0x212),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a27_0xad014(0x1ff),a27_0xad014(0x1fb),'\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27',a27_0xad014(0x1e4)][a27_0xad014(0x1cc)]('\x0a')},{'command':a27_0xad014(0x224),'operation':a27_0xad014(0x224),'risk':a27_0xad014(0x205),'paramsRequired':!![],'description':a27_0xad014(0x20e),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0xad014(0x20a),'operation':a27_0xad014(0x20a),'risk':a27_0xad014(0x201),'paramsRequired':!![],'description':a27_0xad014(0x1d9),'confirmationDescription':'Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0xad014(0x22b)},{'command':a27_0xad014(0x22a),'operation':a27_0xad014(0x22a),'risk':a27_0xad014(0x201),'paramsRequired':!![],'description':a27_0xad014(0x1e7),'helpExtra':['\x20\x20EXCEL\x20ROUTES','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.',a27_0xad014(0x21f),a27_0xad014(0x1dd),a27_0xad014(0x21c),a27_0xad014(0x1e6),'\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.',a27_0xad014(0x207),a27_0xad014(0x1e1),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.']['join']('\x0a'),'confirmationDescription':a27_0xad014(0x1d0),'paramsHint':'JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27'},{'command':'update','operation':a27_0xad014(0x1dc),'risk':a27_0xad014(0x201),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20data\x20record','confirmationDescription':'Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0xad014(0x1fe)+'Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27'},{'command':'delete','operation':a27_0xad014(0x204),'risk':a27_0xad014(0x1d7),'paramsRequired':!![],'description':a27_0xad014(0x1f7),'confirmationDescription':a27_0xad014(0x1e5),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0xad014(0x1e8),'operation':a27_0xad014(0x1e8),'risk':a27_0xad014(0x205),'paramsRequired':![],'description':a27_0xad014(0x217),'paramsHint':a27_0xad014(0x1e3)+a27_0xad014(0x1f6),'helpExtra':[a27_0xad014(0x20f),'\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}',a27_0xad014(0x1cb),a27_0xad014(0x1f1),a27_0xad014(0x229),'\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}',a27_0xad014(0x226),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a27_0xad014(0x1df),a27_0xad014(0x227),'\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)',a27_0xad014(0x1e2),a27_0xad014(0x1f0),a27_0xad014(0x1ec),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a27_0xad014(0x213),'\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields',a27_0xad014(0x1d6),'',a27_0xad014(0x1fc),a27_0xad014(0x1f8),a27_0xad014(0x1cf),a27_0xad014(0x206),'\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a27_0xad014(0x200),a27_0xad014(0x1ea),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','',a27_0xad014(0x225),a27_0xad014(0x1eb),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a27_0xad014(0x1cc)]('\x0a')}];function makeDataCommand(_0x5a0d5b){const _0x17abb8=a27_0xad014,_0x133878=_0x17abb8(0x221)+_0x5a0d5b[_0x17abb8(0x210)],_0x5ef572={'service':_0x17abb8(0x21a),'command':_0x5a0d5b[_0x17abb8(0x210)],'description':_0x5a0d5b['description'],'risk':_0x5a0d5b[_0x17abb8(0x1f4)],..._0x5a0d5b['confirmationDescription']?{'confirmationDescription':_0x5a0d5b[_0x17abb8(0x1db)]}:{},'helpExtra':_0x5a0d5b['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x5a0d5b['paramsHint']}],'validate':async _0x2f6c5b=>{const _0x5868bd=_0x17abb8;_0x5a0d5b[_0x5868bd(0x1de)]&&requireAnyOf(_0x2f6c5b,[_0x5868bd(0x1ce)],_0x133878),_0x5a0d5b[_0x5868bd(0x1f3)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2f6c5b[_0x5868bd(0x1d3)](_0x5868bd(0x1ce)))),_0x5a0d5b[_0x5868bd(0x1f3)]==='update'&&parseUpdateIdsFromParams(parseJsonParams(_0x2f6c5b['str'](_0x5868bd(0x1ce)))??{});},async 'execute'(_0x3940ef){const _0xa65942=_0x17abb8,_0xdf6c2e=_0x3940ef[_0xa65942(0x1d3)](_0xa65942(0x228)),_0x48cb71=_0x5a0d5b[_0xa65942(0x1f3)]===_0xa65942(0x22a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3940ef['str'](_0xa65942(0x1ce)))):parseJsonParams(_0x3940ef['str'](_0xa65942(0x1ce)))??{},_0x4bc1b3=_0x5a0d5b[_0xa65942(0x1f3)]==='update'?parseUpdateIdsFromParams(_0x48cb71):undefined,_0x400358=_0x4bc1b3?normalizeUpdateParamsForRuntime(_0x48cb71,_0x4bc1b3):_0x48cb71,_0x12c405=Date['now'](),_0x145589=await executeData(_0xdf6c2e,_0x5a0d5b[_0xa65942(0x1f3)],_0x400358),_0x26913a=Date[_0xa65942(0x20c)]()-_0x12c405,_0x89a478=_0x4bc1b3&&_0x4bc1b3[_0xa65942(0x1d2)]>0x1?buildBatchUpdateResult(_0x4bc1b3,_0x145589):_0x145589;return{'ok':!![],'data':{'result':_0x89a478,'elapsed':_0x26913a},'message':_0xa65942(0x221)+_0x5a0d5b[_0xa65942(0x210)]+_0xa65942(0x1d4)+_0x26913a+'ms'};}};return _0x5a0d5b[_0x17abb8(0x1f4)]!==_0x17abb8(0x205)&&(_0x5ef572[_0x17abb8(0x1e0)]=async _0x385f32=>{const _0x1d824e=_0x17abb8,_0x35b01f=_0x385f32[_0x1d824e(0x1d3)](_0x1d824e(0x228)),_0x4eb76a=_0x5a0d5b[_0x1d824e(0x1f3)]===_0x1d824e(0x22a)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x385f32[_0x1d824e(0x1d3)](_0x1d824e(0x1ce)))):parseJsonParams(_0x385f32[_0x1d824e(0x1d3)](_0x1d824e(0x1ce)))??{};let _0x3b6d22=_0x4eb76a;if(_0x5a0d5b[_0x1d824e(0x1f3)]===_0x1d824e(0x1dc)){const _0x3cf1e7=parseUpdateIdsFromParams(_0x4eb76a);_0x3b6d22=normalizeUpdateParamsForRuntime(_0x4eb76a,_0x3cf1e7);}return dryRun(_0x1d824e(0x216),'/api/{appCode}/'+_0x35b01f+'/'+_0x5a0d5b['operation'])[_0x1d824e(0x1d5)](_0x3b6d22)[_0x1d824e(0x222)](_0x1d824e(0x1f2)+_0x5a0d5b[_0x1d824e(0x210)]+'\x20on\x20dataset\x20'+_0x35b01f)['build']();}),_0x5ef572;}export const dataDefinitions=[...specs[a27_0xad014(0x220)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x3e67a7,_0x23c1c7){const _0x1667c0=a27_0xad014;return{'operation':'update','mode':_0x1667c0(0x208),'ids':_0x3e67a7,'total':_0x3e67a7[_0x1667c0(0x1d2)],'result':_0x23c1c7};}
|
|
1
|
+
const a27_0x11b4db=a27_0x4e61;function a27_0x4e61(_0x1f8cf9,_0x1d0770){_0x1f8cf9=_0x1f8cf9-0x174;const _0x2d5e18=a27_0x2d5e();let _0x4e61ba=_0x2d5e18[_0x1f8cf9];return _0x4e61ba;}(function(_0x543fe2,_0x262f46){const _0x466bc5=a27_0x4e61,_0x3178a3=_0x543fe2();while(!![]){try{const _0x2f3742=parseInt(_0x466bc5(0x1d9))/0x1*(parseInt(_0x466bc5(0x1b2))/0x2)+-parseInt(_0x466bc5(0x1db))/0x3*(parseInt(_0x466bc5(0x1b4))/0x4)+-parseInt(_0x466bc5(0x187))/0x5+parseInt(_0x466bc5(0x181))/0x6*(parseInt(_0x466bc5(0x18a))/0x7)+-parseInt(_0x466bc5(0x19e))/0x8*(parseInt(_0x466bc5(0x1c3))/0x9)+-parseInt(_0x466bc5(0x176))/0xa*(-parseInt(_0x466bc5(0x1bd))/0xb)+-parseInt(_0x466bc5(0x186))/0xc;if(_0x2f3742===_0x262f46)break;else _0x3178a3['push'](_0x3178a3['shift']());}catch(_0x3af861){_0x3178a3['push'](_0x3178a3['shift']());}}}(a27_0x2d5e,0x57322));import{dataImportExcel}from'./import-excel.js';function a27_0x2d5e(){const _0x94d999=['str','\x20\x20\x20\x20$eq\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22age\x22:{\x22$eq\x22:18}}','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','74193cErDeu','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','240fzlMXf','paramsRequired','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','POST','aggregate','\x20\x20EXCEL\x20ROUTES','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','\x20\x20\x20\x20$lte\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20or\x20equal\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lte\x22:1000}}','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','10iAmrqO','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','filter','\x20\x20WHERE\x20OPERATORS','\x20\x20\x20\x20$gte\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20or\x20equal\x20\x20{\x22amount\x22:{\x22$gte\x22:100}}','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','Get\x20a\x20single\x20record\x20by\x20ID','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','4264428bAnaGs','params','paramsHint','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','6297828MZVfGj','2995825eDzhOU','data\x20','\x20\x20\x20\x20Do\x20NOT\x20use\x20--where,\x20--select,\x20--order-by,\x20--current-page,\x20--page,\x20or\x20--page-size\x20as\x20CLI\x20flags.','7MKAyiX','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','delete','read','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','Create\x20one\x20record\x20in\x20the\x20dataset','helpExtra','\x20\x20\x20\x20$and\x20\x20\x20\x20\x20\x20\x20\x20\x20All\x20conditions\x20match\x20\x20\x20{\x22$and\x22:[{\x22age\x22:{\x22$gte\x22:18}},{\x22status\x22:{\x22$eq\x22:\x22active\x22}}]}','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','code','\x20\x20\x20\x20Page\x201:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','now','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','confirmationDescription','/api/{appCode}/','getOne','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','156232Qvidoo','batch','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20EXAMPLES','risk','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','operation','write','map','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','Filter\x20dataset\x20records\x20with\x20query\x20conditions','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','\x20\x20\x20\x20$contain\x20\x20\x20\x20\x20Substring\x20match\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$contain\x22:\x22test\x22}}','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rounded\x20average\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg\x22,\x22round\x22:true,\x22precision\x22:2}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','length','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','10LFSoCk','\x20\x20\x20\x20$in\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Value\x20in\x20set\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22country\x22:{\x22$in\x22:[\x22CN\x22,\x22US\x22]}}','7768VMtfkf','\x20\x20\x20\x20$startWith\x20\x20\x20Starts\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22name\x22:{\x22$startWith\x22:\x22Mr.\x22}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','command','build','\x20\x20\x20\x20MAX\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Maximum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MAX\x22,\x22alias\x22:\x22max_price\x22}','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','6962021dFCPPL','\x20\x20\x20\x20$or\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Any\x20condition\x20matches\x20\x20{\x22$or\x22:[{\x22status\x22:{\x22$eq\x22:\x22active\x22}},{\x22status\x22:{\x22$eq\x22:\x22pending\x22}}]}','\x20\x20\x20\x20$lt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Less\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$lt\x22:1000}}','join','\x20\x20\x20\x20Page\x202:\x20--params\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22orderBy\x22:[{\x22id\x22:\x22asc\x22}],\x22currentPage\x22:2,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20$ne\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Not\x20equals\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22status\x22:{\x22$ne\x22:\x22deleted\x22}}','36nkugvq','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','description','\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','\x20\x20\x20\x20AVG\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Average\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22score\x22,\x22type\x22:\x22AVG\x22,\x22alias\x22:\x22avg_score\x22}','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\x20\x20\x20\x20having\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Post-aggregation\x20filters\x20using\x20real\x20dataset\x20fields,\x20e.g.\x20{\x22category_id\x22:{\x22$notNull\x22:true}}','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20distinct\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22,\x22distinct\x22:true}','\x20\x20PARAMS\x20STRUCTURE','batchCreate','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20SUM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Sum\x20of\x20column\x20values\x20\x20\x20\x20\x20{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','update','body','Preview:\x20data\x20'];a27_0x2d5e=function(){return _0x94d999;};return a27_0x2d5e();}import{executeData}from'../../core/sdk-client.js';import{CODE_FLAG,PARAMS_FLAG}from'../../commands/common/flags.js';import{requireAnyOf}from'../../commands/common/constraints.js';import{parseJsonParams,parseJsonParamsValue,parseBatchCreateItemsFromParams,parseUpdateIdsFromParams,normalizeUpdateParamsForRuntime}from'../../utils/params.js';import{dryRun}from'../../framework/dryrun.js';const specs=[{'command':a27_0x11b4db(0x179),'operation':a27_0x11b4db(0x179),'risk':a27_0x11b4db(0x18d),'paramsRequired':![],'description':a27_0x11b4db(0x1a9),'paramsHint':a27_0x11b4db(0x1aa)+a27_0x11b4db(0x1af),'helpExtra':[a27_0x11b4db(0x17a),a27_0x11b4db(0x1d7),a27_0x11b4db(0x1c2),'\x20\x20\x20\x20$gt\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Greater\x20than\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22amount\x22:{\x22$gt\x22:100}}',a27_0x11b4db(0x17b),a27_0x11b4db(0x1bf),a27_0x11b4db(0x174),a27_0x11b4db(0x1b3),a27_0x11b4db(0x1ad),a27_0x11b4db(0x1b5),'\x20\x20\x20\x20$endWith\x20\x20\x20\x20\x20Ends\x20with\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22email\x22:{\x22$endWith\x22:\x22@example.com\x22}}','',a27_0x11b4db(0x1b7),a27_0x11b4db(0x191),a27_0x11b4db(0x1be),'',a27_0x11b4db(0x184),a27_0x11b4db(0x1bc),a27_0x11b4db(0x1a0),a27_0x11b4db(0x175),a27_0x11b4db(0x18e),a27_0x11b4db(0x180),'','\x20\x20PAGINATION','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.',a27_0x11b4db(0x189),a27_0x11b4db(0x1ca),'\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.',a27_0x11b4db(0x194),a27_0x11b4db(0x1c1),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x11b4db(0x1c0)]('\x0a')},{'command':a27_0x11b4db(0x19c),'operation':a27_0x11b4db(0x19c),'risk':a27_0x11b4db(0x18d),'paramsRequired':!![],'description':a27_0x11b4db(0x17d),'paramsHint':a27_0x11b4db(0x17c)},{'command':'create','operation':'create','risk':a27_0x11b4db(0x1a6),'paramsRequired':!![],'description':a27_0x11b4db(0x18f),'confirmationDescription':a27_0x11b4db(0x1a8),'paramsHint':a27_0x11b4db(0x185)},{'command':a27_0x11b4db(0x1cf),'operation':a27_0x11b4db(0x1cf),'risk':a27_0x11b4db(0x1a6),'paramsRequired':!![],'description':a27_0x11b4db(0x1e3),'helpExtra':[a27_0x11b4db(0x1e1),a27_0x11b4db(0x177),a27_0x11b4db(0x1b8),a27_0x11b4db(0x19d),a27_0x11b4db(0x1ab),'\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.',a27_0x11b4db(0x1de),a27_0x11b4db(0x1c4),a27_0x11b4db(0x199),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.'][a27_0x11b4db(0x1c0)]('\x0a'),'confirmationDescription':a27_0x11b4db(0x1a4),'paramsHint':a27_0x11b4db(0x1d0)},{'command':a27_0x11b4db(0x1d3),'operation':a27_0x11b4db(0x1d3),'risk':a27_0x11b4db(0x1a6),'paramsRequired':!![],'description':'Update\x20an\x20existing\x20data\x20record','confirmationDescription':a27_0x11b4db(0x196),'paramsHint':a27_0x11b4db(0x17e)+a27_0x11b4db(0x1dd)},{'command':a27_0x11b4db(0x18c),'operation':a27_0x11b4db(0x18c),'risk':'high-risk-write','paramsRequired':!![],'description':a27_0x11b4db(0x1c7),'confirmationDescription':'Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x11b4db(0x1e0),'operation':a27_0x11b4db(0x1e0),'risk':a27_0x11b4db(0x18d),'paramsRequired':![],'description':a27_0x11b4db(0x192),'paramsHint':a27_0x11b4db(0x197)+a27_0x11b4db(0x1c8),'helpExtra':['\x20\x20AGGREGATE\x20TYPES',a27_0x11b4db(0x1d1),'\x20\x20\x20\x20COUNT\x20\x20\x20\x20\x20\x20\x20\x20Count\x20of\x20records\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}',a27_0x11b4db(0x1cd),a27_0x11b4db(0x1c9),a27_0x11b4db(0x1ae),a27_0x11b4db(0x1bb),'\x20\x20\x20\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a27_0x11b4db(0x1ce),a27_0x11b4db(0x1ac),a27_0x11b4db(0x1b6),a27_0x11b4db(0x1b1),a27_0x11b4db(0x198),a27_0x11b4db(0x1cb),a27_0x11b4db(0x1e4),'',a27_0x11b4db(0x1e2),a27_0x11b4db(0x17f),a27_0x11b4db(0x1d2),'\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','','\x20\x20DATASET\x20BOUNDARY',a27_0x11b4db(0x18b),a27_0x11b4db(0x1a1),'\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL',a27_0x11b4db(0x1d8),'',a27_0x11b4db(0x1a2),a27_0x11b4db(0x1cc),a27_0x11b4db(0x1c6),'',a27_0x11b4db(0x1da),'\x20\x20\x20\x20--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22id\x22,\x22type\x22:\x22COUNT\x22,\x22alias\x22:\x22cnt\x22}],\x22groupBy\x22:[\x22region\x22],\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}}}\x27','',a27_0x11b4db(0x178)][a27_0x11b4db(0x1c0)]('\x0a')}];function makeDataCommand(_0x33104e){const _0x5d1641=a27_0x11b4db,_0x57da0d=_0x5d1641(0x188)+_0x33104e[_0x5d1641(0x1b9)],_0x126ca6={'service':'data','command':_0x33104e[_0x5d1641(0x1b9)],'description':_0x33104e[_0x5d1641(0x1c5)],'risk':_0x33104e[_0x5d1641(0x1a3)],..._0x33104e[_0x5d1641(0x19a)]?{'confirmationDescription':_0x33104e['confirmationDescription']}:{},'helpExtra':_0x33104e[_0x5d1641(0x190)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x33104e[_0x5d1641(0x183)]}],'validate':async _0x2d6c78=>{const _0xd41320=_0x5d1641;_0x33104e[_0xd41320(0x1dc)]&&requireAnyOf(_0x2d6c78,['params'],_0x57da0d),_0x33104e[_0xd41320(0x1a5)]==='batchCreate'&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x2d6c78[_0xd41320(0x1d6)]('params'))),_0x33104e[_0xd41320(0x1a5)]===_0xd41320(0x1d3)&&parseUpdateIdsFromParams(parseJsonParams(_0x2d6c78[_0xd41320(0x1d6)](_0xd41320(0x182)))??{});},async 'execute'(_0x10d057){const _0x12031b=_0x5d1641,_0x35444e=_0x10d057[_0x12031b(0x1d6)]('code'),_0x5bf01a=_0x33104e['operation']===_0x12031b(0x1cf)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x10d057[_0x12031b(0x1d6)]('params'))):parseJsonParams(_0x10d057[_0x12031b(0x1d6)](_0x12031b(0x182)))??{},_0x43ba57=_0x33104e[_0x12031b(0x1a5)]==='update'?parseUpdateIdsFromParams(_0x5bf01a):undefined,_0x112710=_0x43ba57?normalizeUpdateParamsForRuntime(_0x5bf01a,_0x43ba57):_0x5bf01a,_0xf87719=Date[_0x12031b(0x195)](),_0x44adb0=await executeData(_0x35444e,_0x33104e['operation'],_0x112710),_0x48de15=Date['now']()-_0xf87719,_0x3bac6d=_0x43ba57&&_0x43ba57[_0x12031b(0x1b0)]>0x1?buildBatchUpdateResult(_0x43ba57,_0x44adb0):_0x44adb0;return{'ok':!![],'data':{'result':_0x3bac6d,'elapsed':_0x48de15},'message':_0x12031b(0x188)+_0x33104e['command']+'\x20completed\x20in\x20'+_0x48de15+'ms'};}};return _0x33104e['risk']!==_0x5d1641(0x18d)&&(_0x126ca6['dryRun']=async _0x530a12=>{const _0x4fc107=_0x5d1641,_0xad6203=_0x530a12['str'](_0x4fc107(0x193)),_0x2e40cd=_0x33104e[_0x4fc107(0x1a5)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x530a12[_0x4fc107(0x1d6)](_0x4fc107(0x182)))):parseJsonParams(_0x530a12[_0x4fc107(0x1d6)]('params'))??{};let _0x158585=_0x2e40cd;if(_0x33104e['operation']===_0x4fc107(0x1d3)){const _0x53a21b=parseUpdateIdsFromParams(_0x2e40cd);_0x158585=normalizeUpdateParamsForRuntime(_0x2e40cd,_0x53a21b);}return dryRun(_0x4fc107(0x1df),_0x4fc107(0x19b)+_0xad6203+'/'+_0x33104e[_0x4fc107(0x1a5)])[_0x4fc107(0x1d4)](_0x158585)[_0x4fc107(0x1c5)](_0x4fc107(0x1d5)+_0x33104e[_0x4fc107(0x1b9)]+'\x20on\x20dataset\x20'+_0xad6203)[_0x4fc107(0x1ba)]();}),_0x126ca6;}export const dataDefinitions=[...specs[a27_0x11b4db(0x1a7)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x4144ed,_0x4c1918){const _0x484814=a27_0x11b4db;return{'operation':'update','mode':_0x484814(0x19f),'ids':_0x4144ed,'total':_0x4144ed['length'],'result':_0x4c1918};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x4aab73=a28_0x55f4;(function(_0x31dd6a,_0x50b639){const _0x2888e0=a28_0x55f4,_0xe6f775=_0x31dd6a();while(!![]){try{const _0x3e86c0=parseInt(_0x2888e0(0x1d6))/0x1*(parseInt(_0x2888e0(0x1b1))/0x2)+parseInt(_0x2888e0(0x1c5))/0x3+-parseInt(_0x2888e0(0x1d4))/0x4*(-parseInt(_0x2888e0(0x1d2))/0x5)+-parseInt(_0x2888e0(0x1d9))/0x6*(parseInt(_0x2888e0(0x1c3))/0x7)+-parseInt(_0x2888e0(0x1a4))/0x8*(-parseInt(_0x2888e0(0x1dd))/0x9)+-parseInt(_0x2888e0(0x1b5))/0xa*(parseInt(_0x2888e0(0x1e5))/0xb)+parseInt(_0x2888e0(0x1cd))/0xc;if(_0x3e86c0===_0x50b639)break;else _0xe6f775['push'](_0xe6f775['shift']());}catch(_0x226d4e){_0xe6f775['push'](_0xe6f775['shift']());}}}(a28_0x5016,0xc71d8));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function normalizeField(_0x34730a){const _0x5434f5=a28_0x55f4;if(_0x34730a[_0x5434f5(0x1a3)])return null;const _0x281c9f=Boolean(_0x34730a['displayName']!==undefined||_0x34730a[_0x5434f5(0x1db)]!==undefined);let _0x3247be={};if(!_0x281c9f&&typeof _0x34730a['extend']===_0x5434f5(0x1ae))try{_0x3247be=JSON[_0x5434f5(0x1b7)](_0x34730a['extend']);}catch{}const _0x59d260=_0x281c9f?_0x34730a[_0x5434f5(0x1a2)]:_0x34730a[_0x5434f5(0x1bc)],_0x2a2ffe=_0x281c9f?_0x34730a[_0x5434f5(0x1bb)]:_0x34730a[_0x5434f5(0x1a2)],_0x377880=_0x281c9f?_0x34730a[_0x5434f5(0x1db)]:_0x34730a[_0x5434f5(0x1bf)]||_0x34730a['dataType'],_0x287ba7=_0x281c9f?_0x34730a[_0x5434f5(0x1de)]===!![]:_0x3247be[_0x5434f5(0x1de)]===!![],_0x2ed859=_0x281c9f?_0x34730a[_0x5434f5(0x1c4)]===!![]:_0x3247be[_0x5434f5(0x1c4)]===!![],_0x3dc23a=_0x281c9f?_0x34730a[_0x5434f5(0x1ca)]??null:_0x3247be[_0x5434f5(0x1ca)]??null,_0x20242c={'name':_0x59d260,'displayName':_0x2a2ffe||_0x59d260,'type':_0x377880,'dbType':_0x34730a['dbType'],'pk':_0x287ba7,'required':_0x2ed859,'description':_0x34730a[_0x5434f5(0x1cb)]||undefined};return Array[_0x5434f5(0x1ba)](_0x3dc23a)&&_0x3dc23a[_0x5434f5(0x1a5)]>0x0&&(_0x20242c['options']=_0x3dc23a),_0x20242c;}function parseJsonMaybe(_0x346e22){const _0x2e69d5=a28_0x55f4;if(typeof _0x346e22!==_0x2e69d5(0x1ae))return _0x346e22;try{return JSON['parse'](_0x346e22);}catch{return _0x346e22;}}function normalizeOperationEntry(_0x330ecd,_0x3fb847){const _0x51cbb8=a28_0x55f4;if(!_0x3fb847||typeof _0x3fb847!==_0x51cbb8(0x1b9))return null;if(!_0x3fb847[_0x51cbb8(0x1dc)]||!_0x3fb847['path'])return null;const _0xbcd421={'name':_0x330ecd,'method':_0x3fb847[_0x51cbb8(0x1dc)],'path':_0x3fb847[_0x51cbb8(0x1c2)]};if(_0x3fb847[_0x51cbb8(0x1ac)])_0xbcd421[_0x51cbb8(0x1ac)]=_0x3fb847[_0x51cbb8(0x1ac)];if(_0x3fb847[_0x51cbb8(0x1b6)]!=null)_0xbcd421[_0x51cbb8(0x1b6)]=parseJsonMaybe(_0x3fb847[_0x51cbb8(0x1b6)]);if(_0x3fb847['responseBody']!=null)_0xbcd421[_0x51cbb8(0x1d7)]=parseJsonMaybe(_0x3fb847[_0x51cbb8(0x1d7)]);if(_0x3fb847['beforeScriptId']!=null)_0xbcd421[_0x51cbb8(0x1e9)]=_0x3fb847[_0x51cbb8(0x1e9)];if(_0x3fb847[_0x51cbb8(0x1c8)]!=null)_0xbcd421[_0x51cbb8(0x1c8)]=_0x3fb847[_0x51cbb8(0x1c8)];if(Array[_0x51cbb8(0x1ba)](_0x3fb847['requestFields']))_0xbcd421['requestFields']=_0x3fb847[_0x51cbb8(0x1c1)];if(Array['isArray'](_0x3fb847[_0x51cbb8(0x1a8)]))_0xbcd421[_0x51cbb8(0x1a8)]=_0x3fb847[_0x51cbb8(0x1a8)];return _0xbcd421;}function summarizeDbtable(_0x55b6d3){const _0xdf8ad2=a28_0x55f4,_0x5621d1={},_0x30966b=[_0xdf8ad2(0x1e8),_0xdf8ad2(0x1b0),_0xdf8ad2(0x1c9),'datasetKey',_0xdf8ad2(0x1de),_0xdf8ad2(0x1cf),_0xdf8ad2(0x1c6),_0xdf8ad2(0x1af),'updateTimeField','creatorIdField','creatorNameField',_0xdf8ad2(0x1a9),'modifierNameField',_0xdf8ad2(0x1d5),'dblinkInfoDTO'];for(const _0x4ca9b0 of _0x30966b){if(_0x55b6d3[_0x4ca9b0]!==undefined)_0x5621d1[_0x4ca9b0]=_0x55b6d3[_0x4ca9b0];}return typeof _0x5621d1[_0xdf8ad2(0x1cf)]===_0xdf8ad2(0x1ae)&&_0x5621d1[_0xdf8ad2(0x1cf)][_0xdf8ad2(0x1a5)]>0x0&&(_0x5621d1[_0xdf8ad2(0x1be)]=_0x5621d1[_0xdf8ad2(0x1cf)][_0xdf8ad2(0x1da)](',')[_0xdf8ad2(0x1a7)](_0x40ecb3=>_0x40ecb3[_0xdf8ad2(0x1df)]())[_0xdf8ad2(0x1e6)](Boolean)),_0x5621d1;}function normalizeRelatedPages(_0x4ffab5){const _0x27056f=a28_0x55f4;if(!Array[_0x27056f(0x1ba)](_0x4ffab5))return[];return _0x4ffab5[_0x27056f(0x1e6)](_0x3ee496=>_0x3ee496&&typeof _0x3ee496===_0x27056f(0x1b9))[_0x27056f(0x1a7)](_0x5e00ab=>({'id':_0x5e00ab['id'],'type':_0x5e00ab[_0x27056f(0x1bf)],'code':_0x5e00ab[_0x27056f(0x1bc)],'title':_0x5e00ab[_0x27056f(0x1ce)],'deleted':_0x5e00ab['deleted']===!![]}));}function normalizeFallbackFieldName(_0x1a837a,_0x4a2843){const _0x5cd914=a28_0x55f4,_0x450428=_0x1a837a[_0x5cd914(0x1df)]();if(!_0x450428)return null;return{'name':_0x450428,'displayName':_0x450428,'type':undefined,'dbType':undefined,'pk':_0x450428===_0x4a2843,'required':![],'description':undefined};}function a28_0x55f4(_0x16911b,_0x22d07f){_0x16911b=_0x16911b-0x1a2;const _0x501645=a28_0x5016();let _0x55f43a=_0x501645[_0x16911b];return _0x55f43a;}function a28_0x5016(){const _0x301ffa=['dbName','221822dzcItj','str','properties','datasetKey','136810FJrlCJ','requestBody','parse','relations','object','isArray','displayName','code','sourceType','allFieldNames','type','fields','requestFields','path','42Dzikvr','required','1217676GeLwCM','logicField','doVersion','afterScriptId','tableName','options','description','modelId','20648808MkUzZY','title','allFields','operations','relatedPageInfoList','9385FIrSqQ','read','1324piIsVe','labelField','5juPyaj','responseBody','find','1139190nGekzU','split','doType','method','1538001UnqccT','pkField','trim','formatRules','validateRules','indexes','dbtableConfig','tableComment','1221PANWXG','filter','dataset','dbId','beforeScriptId','name','deleted','8zPkDOc','length','push','map','responseFields','modifierIdField','source','appCode','host','columnCodeListWithDeleted','string','createTimeField'];a28_0x5016=function(){return _0x301ffa;};return a28_0x5016();}async function loadListFieldFallback(_0x12bf8e,_0x241ddf){const _0x2406e4=a28_0x55f4;if(!_0x12bf8e||!_0x241ddf)return[];try{const _0x23c315=await listDatasets(_0x12bf8e,{'code':_0x241ddf}),_0x5e9238=_0x23c315[_0x2406e4(0x1d8)](_0x5ada84=>_0x5ada84[_0x2406e4(0x1bc)]===_0x241ddf)??_0x23c315[0x0],_0x7f7c82=_0x5e9238?.['dbtableConfig']??{},_0xc110e5=typeof _0x7f7c82[_0x2406e4(0x1cf)]==='string'?_0x7f7c82[_0x2406e4(0x1cf)][_0x2406e4(0x1da)](','):[];return _0xc110e5['map'](_0x4ec3f6=>normalizeFallbackFieldName(_0x4ec3f6,_0x7f7c82['pkField']))[_0x2406e4(0x1e6)](_0xf4065=>_0xf4065!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x4aab73(0x1e7),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x4aab73(0x1d3),'flags':[CODE_FLAG],async 'execute'(_0x256b28){const _0x2f83e7=a28_0x4aab73,_0x2e508d=await getDatasetDetail(_0x256b28[_0x2f83e7(0x1b2)](_0x2f83e7(0x1bc))),_0x3f9c05=Array[_0x2f83e7(0x1ba)](_0x2e508d['fields'])?_0x2e508d[_0x2f83e7(0x1c0)]:Array[_0x2f83e7(0x1ba)](_0x2e508d[_0x2f83e7(0x1b3)])?_0x2e508d[_0x2f83e7(0x1b3)]:[];let _0x31fe75=_0x3f9c05[_0x2f83e7(0x1a7)](_0x1fd79e=>normalizeField(_0x1fd79e))['filter'](_0x5eb1bc=>_0x5eb1bc!==null);_0x31fe75[_0x2f83e7(0x1a5)]===0x0&&(_0x31fe75=await loadListFieldFallback(_0x256b28[_0x2f83e7(0x1ab)],_0x256b28[_0x2f83e7(0x1b2)](_0x2f83e7(0x1bc))));const _0x40e3f4=_0x2e508d[_0x2f83e7(0x1d0)]??{},_0x445b16=[];for(const [_0x52ff80,_0x3d25f2]of Object['entries'](_0x40e3f4)){const _0x5a7a5d=normalizeOperationEntry(_0x52ff80,_0x3d25f2);if(_0x5a7a5d)_0x445b16[_0x2f83e7(0x1a6)](_0x5a7a5d);}const _0xfc21ca=_0x2e508d[_0x2f83e7(0x1e3)]??{},_0x3f55ba=_0x2e508d[_0x2f83e7(0x1e7)]??{},_0x475950=_0xfc21ca[_0x2f83e7(0x1e8)]!=null?{'id':_0xfc21ca[_0x2f83e7(0x1e8)],'name':_0xfc21ca[_0x2f83e7(0x1b0)]??null}:undefined;let _0x446a36;return typeof _0x2e508d['extend']==='string'&&(_0x446a36=parseJsonMaybe(_0x2e508d['extend'])),{'ok':!![],'data':{'id':_0x2e508d[_0x2f83e7(0x1cc)]??_0x2e508d['id'],'name':_0x2e508d[_0x2f83e7(0x1a2)],'code':_0x2e508d['modelCode']||_0x2e508d[_0x2f83e7(0x1bc)],'doVersion':_0x2e508d[_0x2f83e7(0x1c7)],'description':_0x2e508d[_0x2f83e7(0x1cb)]||_0x3f55ba[_0x2f83e7(0x1e4)]||undefined,'source':_0x2e508d[_0x2f83e7(0x1aa)]||_0x3f55ba[_0x2f83e7(0x1bd)],'table':_0xfc21ca[_0x2f83e7(0x1c9)]||_0x3f55ba[_0x2f83e7(0x1c9)],'datasetKey':_0xfc21ca[_0x2f83e7(0x1b4)],'pk':_0xfc21ca[_0x2f83e7(0x1de)],'db':_0x475950,'dbtable':summarizeDbtable(_0xfc21ca),'fields':_0x31fe75,'operations':_0x445b16,'indexes':Array['isArray'](_0x3f55ba[_0x2f83e7(0x1e2)])?_0x3f55ba[_0x2f83e7(0x1e2)]:[],'relations':_0x2e508d[_0x2f83e7(0x1b8)]??null,'relatedPages':normalizeRelatedPages(_0x2e508d[_0x2f83e7(0x1d1)]),...Array[_0x2f83e7(0x1ba)](_0x2e508d[_0x2f83e7(0x1ad)])?{'columnCodeListWithDeleted':_0x2e508d['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x2f83e7(0x1ba)](_0x2e508d[_0x2f83e7(0x1e0)])?_0x2e508d[_0x2f83e7(0x1e0)]:[],'validateRules':Array[_0x2f83e7(0x1ba)](_0x2e508d[_0x2f83e7(0x1e1)])?_0x2e508d[_0x2f83e7(0x1e1)]:[],..._0x446a36!==undefined?{'extend':_0x446a36}:{},'stats':{'fieldCount':_0x31fe75[_0x2f83e7(0x1a5)],'operationCount':_0x445b16[_0x2f83e7(0x1a5)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a29_0x1499(_0x406fb2,_0x4bcfe3){_0x406fb2=_0x406fb2-0x19d;const _0x5677c4=a29_0x5677();let _0x1499bf=_0x5677c4[_0x406fb2];return _0x1499bf;}(function(_0x5c3463,_0x5dfd80){const _0x4d7e41=a29_0x1499,_0x526266=_0x5c3463();while(!![]){try{const _0x23cc14=-parseInt(_0x4d7e41(0x1a4))/0x1+-parseInt(_0x4d7e41(0x19f))/0x2*(-parseInt(_0x4d7e41(0x19d))/0x3)+parseInt(_0x4d7e41(0x1a1))/0x4*(parseInt(_0x4d7e41(0x1a5))/0x5)+parseInt(_0x4d7e41(0x19e))/0x6+-parseInt(_0x4d7e41(0x1a3))/0x7+-parseInt(_0x4d7e41(0x1a0))/0x8+parseInt(_0x4d7e41(0x1a2))/0x9;if(_0x23cc14===_0x5dfd80)break;else _0x526266['push'](_0x526266['shift']());}catch(_0x56f0e7){_0x526266['push'](_0x526266['shift']());}}}(a29_0x5677,0x8cd5a));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a29_0x5677(){const _0x45ca53=['10413KIdcMe','4509858zVnXxI','534pZoaAS','9094664EyHoeG','248900DGFRuh','5053158TNvVSA','525434Olkhze','948909zHwqpH','40FRicxM'];a29_0x5677=function(){return _0x45ca53;};return a29_0x5677();}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a30_0x3929e4=a30_0x3e46;function a30_0x4993(){const _0x1cb4fd=['pkField','name','2526545SBeaDK','3HMzBaT','385SRbxvL','code','read','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','datasetKey','10852886BHNDVz','string','tableName','167704nVnvaR','58974vNFjYv','dbtableConfig','1258426sYQGGt','split','trim','map','10EzMVdX','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','appCode','213292OoxiqR','4073312mDlTjx','allFields','source','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','table-name','9mfQiLC','str'];a30_0x4993=function(){return _0x1cb4fd;};return a30_0x4993();}function a30_0x3e46(_0x24c094,_0xe0c99){_0x24c094=_0x24c094-0x78;const _0x4993ba=a30_0x4993();let _0x3e4673=_0x4993ba[_0x24c094];return _0x3e4673;}(function(_0x6110d3,_0x3def18){const _0x5162b2=a30_0x3e46,_0x57ccdd=_0x6110d3();while(!![]){try{const _0x5aa7a2=parseInt(_0x5162b2(0x90))/0x1+parseInt(_0x5162b2(0x88))/0x2+parseInt(_0x5162b2(0x7c))/0x3*(parseInt(_0x5162b2(0x85))/0x4)+-parseInt(_0x5162b2(0x7b))/0x5+-parseInt(_0x5162b2(0x86))/0x6*(parseInt(_0x5162b2(0x7d))/0x7)+-parseInt(_0x5162b2(0x91))/0x8*(parseInt(_0x5162b2(0x96))/0x9)+-parseInt(_0x5162b2(0x8c))/0xa*(-parseInt(_0x5162b2(0x82))/0xb);if(_0x5aa7a2===_0x3def18)break;else _0x57ccdd['push'](_0x57ccdd['shift']());}catch(_0x54a0a2){_0x57ccdd['push'](_0x57ccdd['shift']());}}}(a30_0x4993,0x4d255));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':'dataset','command':'list','description':a30_0x3929e4(0x94),'risk':a30_0x3929e4(0x7f),'flags':[{'name':'name','type':a30_0x3929e4(0x83),'description':a30_0x3929e4(0x8d)},{'name':a30_0x3929e4(0x95),'type':a30_0x3929e4(0x83),'description':a30_0x3929e4(0x80)},{...CODE_FLAG,'required':![],'description':a30_0x3929e4(0x8e)}],async 'execute'(_0x234a42){const _0x12fa04=a30_0x3929e4,_0xa90ed3=_0x234a42[_0x12fa04(0x78)](_0x12fa04(0x7a)),_0x1a8bb4=_0x234a42[_0x12fa04(0x78)](_0x12fa04(0x7e)),_0x4d2db8=_0x234a42[_0x12fa04(0x78)](_0x12fa04(0x95)),_0x2c0939=await listDatasets(_0x234a42[_0x12fa04(0x8f)],{..._0xa90ed3&&{'name':_0xa90ed3},..._0x1a8bb4&&{'code':_0x1a8bb4},..._0x4d2db8&&{'tableName':_0x4d2db8}});return{'ok':!![],'data':{'total':_0x2c0939['length'],'datasets':_0x2c0939['map'](_0x316a4f=>{const _0x467938=_0x12fa04,_0x230bc6=_0x316a4f[_0x467938(0x87)]??{};return{'id':_0x316a4f['id'],'code':_0x316a4f['code'],'name':_0x316a4f['name'],'source':_0x316a4f[_0x467938(0x93)],'description':_0x316a4f['description'],'table':_0x230bc6[_0x467938(0x84)],'datasetKey':_0x230bc6[_0x467938(0x81)],'pk':_0x230bc6[_0x467938(0x79)],'fields':_0x230bc6[_0x467938(0x92)]?_0x230bc6['allFields'][_0x467938(0x89)](',')[_0x467938(0x8b)](_0x216458=>_0x216458[_0x467938(0x8a)]()):[]};})}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x3bc0dc=a31_0x2ac7;(function(_0x37973e,_0x27602c){const _0x517544=a31_0x2ac7,_0x5e0fd9=_0x37973e();while(!![]){try{const _0x5308ab=-parseInt(_0x517544(0xca))/0x1*(parseInt(_0x517544(0xbf))/0x2)+parseInt(_0x517544(0xbc))/0x3*(-parseInt(_0x517544(0xba))/0x4)+parseInt(_0x517544(0xc2))/0x5+-parseInt(_0x517544(0xc7))/0x6+parseInt(_0x517544(0xc9))/0x7+parseInt(_0x517544(0xc3))/0x8+parseInt(_0x517544(0xc5))/0x9;if(_0x5308ab===_0x27602c)break;else _0x5e0fd9['push'](_0x5e0fd9['shift']());}catch(_0x320cad){_0x5e0fd9['push'](_0x5e0fd9['shift']());}}}(a31_0x3b4b,0x7ae27));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';const DEFAULT_MARKDOWN=a31_0x3bc0dc(0xbb);export function formatDatasetSdkMarkdown(_0x4c3a5b){const _0x551e12=a31_0x3bc0dc,_0x53ea8f=typeof _0x4c3a5b===_0x551e12(0xcc)?_0x4c3a5b['trim']():'';return _0x53ea8f||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x3bc0dc(0xc8),'command':a31_0x3bc0dc(0xc4),'description':a31_0x3bc0dc(0xc6),'risk':a31_0x3bc0dc(0xcb),'flags':[{...CODE_FLAG,'description':a31_0x3bc0dc(0xbd)}],async 'execute'(_0x490ef3){const _0x363cc5=a31_0x3bc0dc,_0x31e5b0=_0x490ef3[_0x363cc5(0xbe)](_0x363cc5(0xc0)),_0x3d7f11=await getDatasetSdkUsageDoc(_0x31e5b0,_0x490ef3['appCode']);return{'ok':!![],'data':{'code':_0x31e5b0,'appCode':_0x490ef3[_0x363cc5(0xc1)],'markdown':formatDatasetSdkMarkdown(_0x3d7f11)}};}};function a31_0x2ac7(_0x588ca2,_0x441957){_0x588ca2=_0x588ca2-0xba;const _0x3b4bb9=a31_0x3b4b();let _0x2ac704=_0x3b4bb9[_0x588ca2];return _0x2ac704;}function a31_0x3b4b(){const _0x5c23e7=['1638468aYfIGl','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','5863680wXIpDS','dataset','6119183IQjgTe','94WflbqT','read','string','225440QoaUuE','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','21OucxOO','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','str','17050AxBvxW','code','appCode','4010090AuYRIk','6545968tqSiJt','sdk-doc'];a31_0x3b4b=function(){return _0x5c23e7;};return a31_0x3b4b();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0xf3aefd=a32_0x3225;(function(_0x2d6d0e,_0x1e2dd1){const _0x1da494=a32_0x3225,_0x4faa8a=_0x2d6d0e();while(!![]){try{const _0x52fa53=parseInt(_0x1da494(0x205))/0x1*(parseInt(_0x1da494(0x20f))/0x2)+parseInt(_0x1da494(0x20d))/0x3+parseInt(_0x1da494(0x23f))/0x4+-parseInt(_0x1da494(0x1f4))/0x5*(parseInt(_0x1da494(0x21f))/0x6)+-parseInt(_0x1da494(0x241))/0x7+-parseInt(_0x1da494(0x1ed))/0x8*(parseInt(_0x1da494(0x200))/0x9)+parseInt(_0x1da494(0x240))/0xa*(parseInt(_0x1da494(0x1f8))/0xb);if(_0x52fa53===_0x1e2dd1)break;else _0x4faa8a['push'](_0x4faa8a['shift']());}catch(_0x617215){_0x4faa8a['push'](_0x4faa8a['shift']());}}}(a32_0x53ef,0xcfd22));import a32_0x1c4e40 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';function a32_0x3225(_0x69e695,_0x55cdd4){_0x69e695=_0x69e695-0x1cf;const _0x53efde=a32_0x53ef();let _0x322508=_0x53efde[_0x69e695];return _0x322508;}import{normalizeLovrabetRegion}from'../constant/region.js';import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';import{inspectBuiltinSkill}from'../skills/builtin-skill.js';function a32_0x53ef(){const _0x30dd5a=['empty','\x20+\x20','format','(invalid)','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','global','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','6385216tQQXcu','3130gYMxfp','5021716kXjZqB','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20auth\x20(effective):\x20','bold','pageSize','read','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Country/Region\x20Configuration','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','appCode','current','red','✓\x20Valid\x20JSON','\x20\x20Installed\x20Path:\x20\x20','\x20config','prototype','repairCommand','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','gray','raw','routing','\x20\x20Skill\x20Version:\x20\x20\x20','packageVersion','\x20\x20Merged\x20Config','\x20config\x20init','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','hasOwnProperty','\x20\x20Repair\x20project:\x20\x20','riskLevel','(default:\x20','\x20\x20Built-in\x20Skill','registryPath','\x20config\x20delete\x20inherit\x20--global','region','Diagnose\x20CLI\x20configuration\x20and\x20environment','✗\x20Invalid\x20JSON','16lIHlzT','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20commands)','accessKey','skillVersion','✓\x20Loaded','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','2279445tkTmoH','Project','\x20\x20Repair\x20global:\x20\x20\x20','\x20doctor','15213ftgfoe','installedPath','repeat','message','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','5289201bAKROd','not\x20configured','\x20config\x20delete\x20region','yellow','inherit','231mWChHQ','reason','state','services','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','arch','filter','3244683zINTha','project','8666mZfsUS','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20','includes','serviceCount','\x20\x20Config\x20JSON','⚠\x20Empty','\x20\x20Service\x20Tree','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','globalConfig','padEnd','commandCount','log','name','projectConfig','18JFWESl','✓\x20current','version','\x20(accessKey)','call','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20set)','✗\x20Invalid','status','serviceCode','length','ClientAk','\x20config\x20delete\x20inherit','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20─','green','\x20config\x20delete\x20routing\x20--global','\x20config\x20delete\x20routing','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth'];a32_0x53ef=function(){return _0x30dd5a;};return a32_0x53ef();}async function execute(_0x30265d){const _0x3c4996=a32_0x3225,_0x22d062=getCliVersion(),_0x514a66=buildConfigFromFlags({});let _0x3959ec,_0x84df37;try{_0x3959ec=normalizeLovrabetRegion(_0x514a66[_0x3c4996(0x1dc)][_0x3c4996(0x1ea)]);}catch(_0x351a8a){_0x84df37=_0x351a8a instanceof Error?_0x351a8a:new Error(String(_0x351a8a));}let _0x16ebe3;if(!_0x84df37)try{await initGlobalEnvironment(_0x514a66);}catch(_0x222781){_0x16ebe3=_0x222781 instanceof Error?_0x222781:new Error(String(_0x222781));}console['log'](),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x246)](CLI_BIN_NAME+_0x3c4996(0x1f7))),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x1db)]('─'['repeat'](0x32))),console[_0x3c4996(0x21c)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x22d062),console['log'](_0x3c4996(0x209)+process[_0x3c4996(0x221)]),console[_0x3c4996(0x21c)](_0x3c4996(0x1d0)+process[_0x3c4996(0x1da)]+'\x20'+process[_0x3c4996(0x20b)]);const _0x46d8bc=inspectBuiltinSkill();console[_0x3c4996(0x21c)](),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x246)](_0x3c4996(0x1e7))),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x22f)[_0x3c4996(0x1fa)](0x1e))),console[_0x3c4996(0x21c)](_0x3c4996(0x218)+(_0x46d8bc[_0x3c4996(0x207)]===_0x3c4996(0x1d2)?a32_0x1c4e40[_0x3c4996(0x230)](_0x3c4996(0x220)):a32_0x1c4e40['red']('✗\x20'+_0x46d8bc['state']))),console['log']('\x20\x20Package\x20Version:\x20'+_0x46d8bc[_0x3c4996(0x1df)]),console['log'](_0x3c4996(0x1de)+(_0x46d8bc[_0x3c4996(0x1f1)]||a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x1cf)))),console[_0x3c4996(0x21c)](_0x3c4996(0x1d5)+(_0x46d8bc[_0x3c4996(0x1f9)]||a32_0x1c4e40[_0x3c4996(0x1db)]('(not\x20found)')));_0x46d8bc[_0x3c4996(0x207)]!==_0x3c4996(0x1d2)&&console[_0x3c4996(0x21c)]('\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46d8bc[_0x3c4996(0x1d8)]);_0x46d8bc['reason']&&console[_0x3c4996(0x21c)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x46d8bc[_0x3c4996(0x206)]);console[_0x3c4996(0x21c)](),console['log'](a32_0x1c4e40[_0x3c4996(0x246)]('\x20\x20Config\x20Files')),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x22f)[_0x3c4996(0x1fa)](0x1e)));const _0x58013f=getGlobalConfigPath(),_0x5da3d6=getProjectConfigPath();console[_0x3c4996(0x21c)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x58013f||a32_0x1c4e40['gray'](_0x3c4996(0x23b)))),console[_0x3c4996(0x21c)](_0x3c4996(0x233)+(_0x5da3d6||a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x23b)))),console[_0x3c4996(0x21c)](),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x246)](_0x3c4996(0x213))),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x22f)['repeat'](0x1e)));const _0xaa19be=(_0x2b04f8,_0x3f9b44)=>{const _0x5e3e6d=_0x3c4996;if(!_0x3f9b44){console['log']('\x20\x20'+_0x2b04f8[_0x5e3e6d(0x21a)](0x11)+'\x20'+a32_0x1c4e40[_0x5e3e6d(0x1db)]('(no\x20file)'));return;}const _0x5e1b2b=inspectCliConfigJsonFile(_0x3f9b44);if(_0x5e1b2b[_0x5e3e6d(0x228)]==='ok')console[_0x5e3e6d(0x21c)]('\x20\x20'+_0x2b04f8['padEnd'](0x11)+'\x20'+a32_0x1c4e40[_0x5e3e6d(0x230)](_0x5e3e6d(0x1d4)));else{if(_0x5e1b2b['status']===_0x5e3e6d(0x235))console[_0x5e3e6d(0x21c)]('\x20\x20'+_0x2b04f8[_0x5e3e6d(0x21a)](0x11)+'\x20'+a32_0x1c4e40[_0x5e3e6d(0x203)](_0x5e3e6d(0x225)));else _0x5e1b2b[_0x5e3e6d(0x228)]==='missing'?console[_0x5e3e6d(0x21c)]('\x20\x20'+_0x2b04f8['padEnd'](0x11)+'\x20'+a32_0x1c4e40[_0x5e3e6d(0x1db)](_0x5e3e6d(0x1cf))):(console[_0x5e3e6d(0x21c)]('\x20\x20'+_0x2b04f8[_0x5e3e6d(0x21a)](0x11)+'\x20'+a32_0x1c4e40[_0x5e3e6d(0x1d3)](_0x5e3e6d(0x1ec))),console[_0x5e3e6d(0x21c)]('\x20\x20'+''[_0x5e3e6d(0x21a)](0x11)+'\x20'+a32_0x1c4e40[_0x5e3e6d(0x1d3)](_0x5e1b2b[_0x5e3e6d(0x1fb)])));}};_0xaa19be('Global',_0x58013f),_0xaa19be(_0x3c4996(0x1f5),_0x5da3d6);const _0x19cf8e=loadRawConfigLayers(),_0x44f679=[Object[_0x3c4996(0x1d7)][_0x3c4996(0x1e3)][_0x3c4996(0x223)](_0x19cf8e[_0x3c4996(0x219)],_0x3c4996(0x204))?_0x3c4996(0x23d):null,Object[_0x3c4996(0x1d7)][_0x3c4996(0x1e3)]['call'](_0x19cf8e[_0x3c4996(0x21e)],_0x3c4996(0x204))?_0x3c4996(0x20e):null][_0x3c4996(0x20c)](Boolean);_0x44f679[_0x3c4996(0x22a)]>0x0&&(console[_0x3c4996(0x21c)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a32_0x1c4e40[_0x3c4996(0x203)]('ignored\x20in\x20'+_0x44f679['join'](_0x3c4996(0x236))+_0x3c4996(0x1d6))),_0x44f679[_0x3c4996(0x211)](_0x3c4996(0x20e))&&console[_0x3c4996(0x21c)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x3c4996(0x22c)),_0x44f679[_0x3c4996(0x211)](_0x3c4996(0x23d))&&console[_0x3c4996(0x21c)](_0x3c4996(0x22e)+CLI_BIN_NAME+_0x3c4996(0x1e9)));_0x16ebe3&&(console['log'](),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x246)]('\x20\x20Routing\x20Configuration')),console['log'](a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x22f)[_0x3c4996(0x1fa)](0x1e))),console[_0x3c4996(0x21c)](_0x3c4996(0x1d9)+a32_0x1c4e40[_0x3c4996(0x1d3)](_0x3c4996(0x227))),console[_0x3c4996(0x21c)](_0x3c4996(0x249)+_0x16ebe3[_0x3c4996(0x1fb)]),Object[_0x3c4996(0x1d7)]['hasOwnProperty'][_0x3c4996(0x223)](_0x19cf8e[_0x3c4996(0x21e)],_0x3c4996(0x1dd))&&console[_0x3c4996(0x21c)](_0x3c4996(0x1e4)+CLI_BIN_NAME+_0x3c4996(0x232)),Object[_0x3c4996(0x1d7)][_0x3c4996(0x1e3)][_0x3c4996(0x223)](_0x19cf8e['globalConfig'],'routing')&&console[_0x3c4996(0x21c)](_0x3c4996(0x1f6)+CLI_BIN_NAME+_0x3c4996(0x231)));_0x84df37&&(console[_0x3c4996(0x21c)](),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x246)](_0x3c4996(0x24a))),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x22f)[_0x3c4996(0x1fa)](0x1e))),console['log'](_0x3c4996(0x1d9)+a32_0x1c4e40[_0x3c4996(0x1d3)](_0x3c4996(0x227))),console[_0x3c4996(0x21c)](_0x3c4996(0x249)+_0x84df37[_0x3c4996(0x1fb)]),Object[_0x3c4996(0x1d7)][_0x3c4996(0x1e3)][_0x3c4996(0x223)](_0x19cf8e['projectConfig'],'region')&&console['log']('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x3c4996(0x202)),Object[_0x3c4996(0x1d7)][_0x3c4996(0x1e3)][_0x3c4996(0x223)](_0x19cf8e[_0x3c4996(0x219)],_0x3c4996(0x1ea))&&console[_0x3c4996(0x21c)](_0x3c4996(0x1f6)+CLI_BIN_NAME+_0x3c4996(0x1e1)));console[_0x3c4996(0x21c)](),console[_0x3c4996(0x21c)](a32_0x1c4e40['bold'](_0x3c4996(0x1e0))),console['log'](a32_0x1c4e40['gray'](_0x3c4996(0x22f)[_0x3c4996(0x1fa)](0x1e))),console[_0x3c4996(0x21c)](_0x3c4996(0x23a)+(_0x514a66[_0x3c4996(0x1d1)]||a32_0x1c4e40[_0x3c4996(0x1d3)](_0x3c4996(0x226)))),console[_0x3c4996(0x21c)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3959ec??a32_0x1c4e40[_0x3c4996(0x1d3)](_0x3c4996(0x238)))),console[_0x3c4996(0x21c)](_0x3c4996(0x24b)+_0x514a66['locale']),console[_0x3c4996(0x21c)](_0x3c4996(0x1ee)+(_0x514a66[_0x3c4996(0x1ff)]||a32_0x1c4e40[_0x3c4996(0x1db)]('(none)'))),console[_0x3c4996(0x21c)](_0x3c4996(0x1e2)+(_0x514a66['currentApp']||a32_0x1c4e40[_0x3c4996(0x1db)]('(none)'))),console[_0x3c4996(0x21c)](_0x3c4996(0x1fe)+(_0x514a66[_0x3c4996(0x237)]||a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x1e6)+DEFAULT_CONFIG_VALUES[_0x3c4996(0x237)]+')'))),console[_0x3c4996(0x21c)](_0x3c4996(0x1fd)+(_0x514a66[_0x3c4996(0x247)]??a32_0x1c4e40[_0x3c4996(0x1db)]('(default)'))),console[_0x3c4996(0x21c)](_0x3c4996(0x1f3)+_0x514a66[_0x3c4996(0x1e5)]),console[_0x3c4996(0x21c)](_0x3c4996(0x216)+_0x514a66['verbose']),console[_0x3c4996(0x21c)](_0x3c4996(0x245)+AUTH_MODE['ClientAk']),console['log'](_0x3c4996(0x243)+(_0x514a66[_0x3c4996(0x1f0)]?a32_0x1c4e40['green'](_0x3c4996(0x244)+_0x514a66['accessKey'][_0x3c4996(0x22a)]+')'):a32_0x1c4e40['gray'](_0x3c4996(0x20a)))),console[_0x3c4996(0x21c)](),console['log'](a32_0x1c4e40[_0x3c4996(0x246)]('\x20\x20API\x20Endpoints')),console[_0x3c4996(0x21c)](a32_0x1c4e40['gray']('\x20\x20─'[_0x3c4996(0x1fa)](0x1e)));_0x16ebe3||_0x84df37?console[_0x3c4996(0x21c)](_0x3c4996(0x1d9)+a32_0x1c4e40['red'](_0x3c4996(0x1fc))):(console[_0x3c4996(0x21c)](_0x3c4996(0x242)+getApiDomain()),console['log'](_0x3c4996(0x23c)+getUserDomain()),console[_0x3c4996(0x21c)](_0x3c4996(0x22d)+getRuntimeDomain()),console['log']('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x3c4996(0x21c)]('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0x3c4996(0x201))));console['log'](),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x246)](_0x3c4996(0x215))),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x22f)[_0x3c4996(0x1fa)](0x1e)));const _0x1de0a2=inspectServiceRegistry();console[_0x3c4996(0x21c)](_0x3c4996(0x224)+_0x1de0a2[_0x3c4996(0x1e8)]),console[_0x3c4996(0x21c)](_0x3c4996(0x1d9)+formatServiceRegistryStatus(_0x1de0a2)),console['log'](_0x3c4996(0x210)+_0x1de0a2[_0x3c4996(0x212)]),console[_0x3c4996(0x21c)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1de0a2[_0x3c4996(0x21b)]);for(const _0x12da76 of _0x1de0a2[_0x3c4996(0x208)]){console[_0x3c4996(0x21c)]('\x20\x20'+(_0x12da76[_0x3c4996(0x229)]+':')['padEnd'](0x11)+'\x20'+(_0x12da76[_0x3c4996(0x21d)]||a32_0x1c4e40['gray']('(unnamed)'))+'\x20('+_0x12da76['commandCount']+_0x3c4996(0x1ef)),console[_0x3c4996(0x21c)]('\x20\x20'+''[_0x3c4996(0x21a)](0x11)+'\x20Imported\x20from:\x20'+_0x12da76['source']['path']);}return console[_0x3c4996(0x21c)](),console['log'](a32_0x1c4e40[_0x3c4996(0x246)](_0x3c4996(0x234))),console[_0x3c4996(0x21c)](a32_0x1c4e40[_0x3c4996(0x1db)](_0x3c4996(0x22f)['repeat'](0x1e))),console[_0x3c4996(0x21c)](_0x3c4996(0x23e)+a32_0x1c4e40[_0x3c4996(0x230)](AUTH_MODE[_0x3c4996(0x22b)]+_0x3c4996(0x222))),console[_0x3c4996(0x21c)](_0x3c4996(0x239)+a32_0x1c4e40['gray']('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0x3c4996(0x21c)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3402f2){const _0x575cef=a32_0x3225;if(_0x3402f2['status']==='ok')return a32_0x1c4e40[_0x575cef(0x230)](_0x575cef(0x1f2));if(_0x3402f2[_0x575cef(0x228)]===_0x575cef(0x217))return a32_0x1c4e40[_0x575cef(0x1db)]('(not\x20found)');if(_0x3402f2['status']===_0x575cef(0x235))return a32_0x1c4e40[_0x575cef(0x203)](_0x575cef(0x214));return a32_0x1c4e40[_0x575cef(0x1d3)](_0x575cef(0x227)+(_0x3402f2[_0x575cef(0x1fb)]?':\x20'+_0x3402f2['message']:''));}export const doctorDefinition={'service':'doctor','command':'check','description':a32_0xf3aefd(0x1eb),'risk':a32_0xf3aefd(0x248),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a32_0x589b08=a32_0x2eb6;(function(_0x5101ab,_0x2c0f38){const _0x446e02=a32_0x2eb6,_0x4e30f3=_0x5101ab();while(!![]){try{const _0x15fe8a=-parseInt(_0x446e02(0x16d))/0x1+-parseInt(_0x446e02(0x1a9))/0x2*(parseInt(_0x446e02(0x189))/0x3)+-parseInt(_0x446e02(0x192))/0x4*(parseInt(_0x446e02(0x183))/0x5)+parseInt(_0x446e02(0x146))/0x6+-parseInt(_0x446e02(0x1bf))/0x7+parseInt(_0x446e02(0x187))/0x8+parseInt(_0x446e02(0x195))/0x9*(parseInt(_0x446e02(0x17e))/0xa);if(_0x15fe8a===_0x2c0f38)break;else _0x4e30f3['push'](_0x4e30f3['shift']());}catch(_0x29c1e0){_0x4e30f3['push'](_0x4e30f3['shift']());}}}(a32_0x25c5,0x31b32));import a32_0x41b36e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';import{normalizeLovrabetRegion}from'../constant/region.js';function a32_0x2eb6(_0x49fd75,_0x168fc7){_0x49fd75=_0x49fd75-0x146;const _0x25c524=a32_0x25c5();let _0x2eb685=_0x25c524[_0x49fd75];return _0x2eb685;}import{buildConfigFromFlags,initGlobalEnvironment,getProjectConfigPath,getGlobalConfigPath,inspectCliConfigJsonFile,loadRawConfigLayers}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{inspectServiceRegistry}from'../commands/service/registry.js';function a32_0x25c5(){const _0x487aef=['\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','inherit','status','\x20\x20Config\x20Files','accessKey','Project','log','verbose','✗\x20Invalid','red','doctor','(no\x20file)','97866XblqFZ','format','filter','ClientAk','current','serviceCode','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','reason','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','\x20config\x20delete\x20inherit\x20--global','\x20\x20Repair\x20global:\x20\x20\x20','global','(invalid)','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','10YJyIwI','installedPath','\x20\x20Service\x20Tree','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','350JcVaVp','currentApp','(not\x20set)','region','2391312TuRGAF','(set,\x20length=','1059DPSXIm','Global','⚠\x20Empty','\x20\x20auth\x20(effective):\x20','\x20config\x20init','Diagnose\x20CLI\x20configuration\x20and\x20environment','arch','routing','project','21292RjAoJP','\x20config\x20delete\x20inherit','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','2412639dSaHsR','state','bold','(not\x20found)','registryPath','repeat','repairCommand','✓\x20current','\x20\x20Country/Region\x20Configuration','\x20config','(default:\x20','appCode','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(removed\x20—\x20cookie\x20auth\x20disabled)','defaultApp','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20Legacy\x20inherit:\x20\x20\x20','\x20\x20kbServiceDomain:\x20','34LOgmqP','hasOwnProperty','globalConfig','\x20\x20API\x20Endpoints','\x20\x20Merged\x20Config','call','skillVersion','\x20+\x20','commandCount','(unnamed)','read','message','\x20\x20Built-in\x20Skill','\x20Imported\x20from:\x20','not\x20configured','\x20commands)','green','✓\x20Loaded','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Installed\x20Path:\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','gray','435890FPCDeu','\x20config\x20delete\x20region','\x20\x20runtimeDomain:\x20\x20\x20','(default)','1051992kRsUob','length','\x20(accessKey)','join','pageSize','path','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','prototype','packageVersion','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','projectConfig','empty','name','✓\x20Valid\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','\x20config\x20delete\x20routing\x20--global','✗\x20Invalid\x20JSON','\x20\x20Auth','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Repair\x20project:\x20\x20','yellow'];a32_0x25c5=function(){return _0x487aef;};return a32_0x25c5();}import{inspectBuiltinSkill}from'../skills/builtin-skill.js';async function execute(_0x104cb7){const _0x3e6953=a32_0x2eb6,_0xee9779=getCliVersion(),_0x5b1baf=buildConfigFromFlags({});let _0x4fac56,_0x48b5fb;try{_0x4fac56=normalizeLovrabetRegion(_0x5b1baf['raw'][_0x3e6953(0x186)]);}catch(_0x27ee05){_0x48b5fb=_0x27ee05 instanceof Error?_0x27ee05:new Error(String(_0x27ee05));}let _0x48ed77;if(!_0x48b5fb)try{await initGlobalEnvironment(_0x5b1baf);}catch(_0xd67e69){_0x48ed77=_0xd67e69 instanceof Error?_0xd67e69:new Error(String(_0xd67e69));}console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x197)](CLI_BIN_NAME+'\x20doctor')),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x1be)]('─'[_0x3e6953(0x19a)](0x32))),console['log'](_0x3e6953(0x15d)+_0xee9779),console[_0x3e6953(0x167)](_0x3e6953(0x174)+process['version']),console[_0x3e6953(0x167)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x3e6953(0x159)]+'\x20'+process[_0x3e6953(0x18f)]);const _0x3e6a1c=inspectBuiltinSkill();console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e['bold'](_0x3e6953(0x1b5))),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x1be)](_0x3e6953(0x1a6)[_0x3e6953(0x19a)](0x1e))),console['log']('\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e6a1c[_0x3e6953(0x196)]===_0x3e6953(0x171)?a32_0x41b36e[_0x3e6953(0x1b9)](_0x3e6953(0x19c)):a32_0x41b36e[_0x3e6953(0x16a)]('✗\x20'+_0x3e6a1c['state']))),console['log']('\x20\x20Package\x20Version:\x20'+_0x3e6a1c[_0x3e6953(0x150)]),console[_0x3e6953(0x167)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x3e6a1c[_0x3e6953(0x1af)]||a32_0x41b36e['gray']('(missing)'))),console[_0x3e6953(0x167)](_0x3e6953(0x1bc)+(_0x3e6a1c[_0x3e6953(0x17f)]||a32_0x41b36e['gray'](_0x3e6953(0x198))));_0x3e6a1c[_0x3e6953(0x196)]!=='current'&&console[_0x3e6953(0x167)](_0x3e6953(0x14c)+_0x3e6a1c[_0x3e6953(0x19b)]);_0x3e6a1c[_0x3e6953(0x175)]&&console['log'](_0x3e6953(0x151)+_0x3e6a1c['reason']);console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e['bold'](_0x3e6953(0x164))),console['log'](a32_0x41b36e['gray'](_0x3e6953(0x1a6)['repeat'](0x1e)));const _0x30f20d=getGlobalConfigPath(),_0x5070d5=getProjectConfigPath();console[_0x3e6953(0x167)](_0x3e6953(0x158)+(_0x30f20d||a32_0x41b36e[_0x3e6953(0x1be)](_0x3e6953(0x198)))),console[_0x3e6953(0x167)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5070d5||a32_0x41b36e[_0x3e6953(0x1be)]('(not\x20found)'))),console['log'](),console[_0x3e6953(0x167)](a32_0x41b36e['bold']('\x20\x20Config\x20JSON')),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x1be)]('\x20\x20─'['repeat'](0x1e)));const _0x461ddc=(_0x3cb839,_0x2b4834)=>{const _0x321211=_0x3e6953;if(!_0x2b4834){console[_0x321211(0x167)]('\x20\x20'+_0x3cb839['padEnd'](0x11)+'\x20'+a32_0x41b36e[_0x321211(0x1be)](_0x321211(0x16c)));return;}const _0x5429a2=inspectCliConfigJsonFile(_0x2b4834);if(_0x5429a2[_0x321211(0x163)]==='ok')console[_0x321211(0x167)]('\x20\x20'+_0x3cb839['padEnd'](0x11)+'\x20'+a32_0x41b36e[_0x321211(0x1b9)](_0x321211(0x157)));else{if(_0x5429a2['status']===_0x321211(0x155))console['log']('\x20\x20'+_0x3cb839[_0x321211(0x153)](0x11)+'\x20'+a32_0x41b36e['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x5429a2[_0x321211(0x163)]==='missing'?console[_0x321211(0x167)]('\x20\x20'+_0x3cb839[_0x321211(0x153)](0x11)+'\x20'+a32_0x41b36e[_0x321211(0x1be)]('(missing)')):(console[_0x321211(0x167)]('\x20\x20'+_0x3cb839[_0x321211(0x153)](0x11)+'\x20'+a32_0x41b36e['red'](_0x321211(0x15b))),console[_0x321211(0x167)]('\x20\x20'+''[_0x321211(0x153)](0x11)+'\x20'+a32_0x41b36e[_0x321211(0x16a)](_0x5429a2['message'])));}};_0x461ddc(_0x3e6953(0x18a),_0x30f20d),_0x461ddc(_0x3e6953(0x166),_0x5070d5);const _0xe83026=loadRawConfigLayers(),_0x3e5768=[Object[_0x3e6953(0x14f)][_0x3e6953(0x1aa)][_0x3e6953(0x1ae)](_0xe83026[_0x3e6953(0x1ab)],_0x3e6953(0x162))?_0x3e6953(0x17a):null,Object[_0x3e6953(0x14f)][_0x3e6953(0x1aa)][_0x3e6953(0x1ae)](_0xe83026['projectConfig'],_0x3e6953(0x162))?'project':null][_0x3e6953(0x16f)](Boolean);_0x3e5768[_0x3e6953(0x147)]>0x0&&(console[_0x3e6953(0x167)](_0x3e6953(0x1a7)+a32_0x41b36e[_0x3e6953(0x15f)]('ignored\x20in\x20'+_0x3e5768[_0x3e6953(0x149)](_0x3e6953(0x1b0))+_0x3e6953(0x19e))),_0x3e5768['includes'](_0x3e6953(0x191))&&console[_0x3e6953(0x167)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x3e6953(0x193)),_0x3e5768['includes']('global')&&console[_0x3e6953(0x167)](_0x3e6953(0x1bb)+CLI_BIN_NAME+_0x3e6953(0x178)));_0x48ed77&&(console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e['bold']('\x20\x20Routing\x20Configuration')),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x1be)]('\x20\x20─'[_0x3e6953(0x19a)](0x1e))),console[_0x3e6953(0x167)](_0x3e6953(0x1a4)+a32_0x41b36e['red']('✗\x20Invalid')),console[_0x3e6953(0x167)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x48ed77['message']),Object['prototype']['hasOwnProperty'][_0x3e6953(0x1ae)](_0xe83026['projectConfig'],'routing')&&console[_0x3e6953(0x167)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x3e6953(0x177)),Object[_0x3e6953(0x14f)][_0x3e6953(0x1aa)]['call'](_0xe83026[_0x3e6953(0x1ab)],_0x3e6953(0x190))&&console[_0x3e6953(0x167)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x3e6953(0x15a)));_0x48b5fb&&(console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e['bold'](_0x3e6953(0x19d))),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x1be)](_0x3e6953(0x1a6)[_0x3e6953(0x19a)](0x1e))),console['log'](_0x3e6953(0x1a4)+a32_0x41b36e[_0x3e6953(0x16a)](_0x3e6953(0x169))),console[_0x3e6953(0x167)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x48b5fb[_0x3e6953(0x1b4)]),Object['prototype']['hasOwnProperty'][_0x3e6953(0x1ae)](_0xe83026[_0x3e6953(0x154)],_0x3e6953(0x186))&&console[_0x3e6953(0x167)](_0x3e6953(0x15e)+CLI_BIN_NAME+_0x3e6953(0x1c0)),Object[_0x3e6953(0x14f)][_0x3e6953(0x1aa)][_0x3e6953(0x1ae)](_0xe83026[_0x3e6953(0x1ab)],'region')&&console[_0x3e6953(0x167)](_0x3e6953(0x179)+CLI_BIN_NAME+_0x3e6953(0x18d)));console['log'](),console[_0x3e6953(0x167)](a32_0x41b36e['bold'](_0x3e6953(0x1ad))),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x1be)](_0x3e6953(0x1a6)[_0x3e6953(0x19a)](0x1e))),console[_0x3e6953(0x167)](_0x3e6953(0x14d)+(_0x5b1baf[_0x3e6953(0x1a0)]||a32_0x41b36e[_0x3e6953(0x16a)](_0x3e6953(0x185)))),console[_0x3e6953(0x167)](_0x3e6953(0x152)+(_0x4fac56??a32_0x41b36e[_0x3e6953(0x16a)](_0x3e6953(0x17b)))),console[_0x3e6953(0x167)](_0x3e6953(0x176)+_0x5b1baf['locale']),console[_0x3e6953(0x167)](_0x3e6953(0x194)+(_0x5b1baf[_0x3e6953(0x1a3)]||a32_0x41b36e[_0x3e6953(0x1be)]('(none)'))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5b1baf[_0x3e6953(0x184)]||a32_0x41b36e[_0x3e6953(0x1be)](_0x3e6953(0x161)))),console[_0x3e6953(0x167)](_0x3e6953(0x1a5)+(_0x5b1baf[_0x3e6953(0x16e)]||a32_0x41b36e[_0x3e6953(0x1be)](_0x3e6953(0x19f)+DEFAULT_CONFIG_VALUES[_0x3e6953(0x16e)]+')'))),console[_0x3e6953(0x167)](_0x3e6953(0x160)+(_0x5b1baf[_0x3e6953(0x14a)]??a32_0x41b36e[_0x3e6953(0x1be)](_0x3e6953(0x1c2)))),console[_0x3e6953(0x167)](_0x3e6953(0x1bd)+_0x5b1baf[_0x3e6953(0x182)]),console[_0x3e6953(0x167)](_0x3e6953(0x14e)+_0x5b1baf[_0x3e6953(0x168)]),console[_0x3e6953(0x167)](_0x3e6953(0x18c)+AUTH_MODE[_0x3e6953(0x170)]),console[_0x3e6953(0x167)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x5b1baf[_0x3e6953(0x165)]?a32_0x41b36e['green'](_0x3e6953(0x188)+_0x5b1baf[_0x3e6953(0x165)][_0x3e6953(0x147)]+')'):a32_0x41b36e[_0x3e6953(0x1be)]('(none)'))),console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x197)](_0x3e6953(0x1ac))),console['log'](a32_0x41b36e[_0x3e6953(0x1be)]('\x20\x20─'[_0x3e6953(0x19a)](0x1e)));_0x48ed77||_0x48b5fb?console['log'](_0x3e6953(0x1a4)+a32_0x41b36e['red'](_0x3e6953(0x173))):(console[_0x3e6953(0x167)](_0x3e6953(0x1a1)+getApiDomain()),console[_0x3e6953(0x167)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x3e6953(0x167)](_0x3e6953(0x1c1)+getRuntimeDomain()),console[_0x3e6953(0x167)]('\x20\x20skillDomain:\x20\x20\x20\x20\x20'+getSkillDomain()),console[_0x3e6953(0x167)](_0x3e6953(0x1a8)+(getKbServiceDomain()??_0x3e6953(0x1b7))));console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x197)](_0x3e6953(0x180))),console['log'](a32_0x41b36e[_0x3e6953(0x1be)]('\x20\x20─'[_0x3e6953(0x19a)](0x1e)));const _0x3085dc=inspectServiceRegistry();console[_0x3e6953(0x167)](_0x3e6953(0x181)+_0x3085dc[_0x3e6953(0x199)]),console[_0x3e6953(0x167)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x3085dc)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3085dc['serviceCount']),console[_0x3e6953(0x167)](_0x3e6953(0x17d)+_0x3085dc[_0x3e6953(0x1b1)]);for(const _0x28ce4d of _0x3085dc['services']){console[_0x3e6953(0x167)]('\x20\x20'+(_0x28ce4d[_0x3e6953(0x172)]+':')[_0x3e6953(0x153)](0x11)+'\x20'+(_0x28ce4d[_0x3e6953(0x156)]||a32_0x41b36e['gray'](_0x3e6953(0x1b2)))+'\x20('+_0x28ce4d[_0x3e6953(0x1b1)]+_0x3e6953(0x1b8)),console[_0x3e6953(0x167)]('\x20\x20'+''[_0x3e6953(0x153)](0x11)+_0x3e6953(0x1b6)+_0x28ce4d['source'][_0x3e6953(0x14b)]);}return console[_0x3e6953(0x167)](),console[_0x3e6953(0x167)](a32_0x41b36e[_0x3e6953(0x197)](_0x3e6953(0x15c))),console[_0x3e6953(0x167)](a32_0x41b36e['gray']('\x20\x20─'[_0x3e6953(0x19a)](0x1e))),console[_0x3e6953(0x167)](_0x3e6953(0x17c)+a32_0x41b36e[_0x3e6953(0x1b9)](AUTH_MODE[_0x3e6953(0x170)]+_0x3e6953(0x148))),console['log']('\x20\x20Session\x20check:\x20\x20\x20'+a32_0x41b36e['gray'](_0x3e6953(0x1a2))),console[_0x3e6953(0x167)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3e9215){const _0x377347=a32_0x2eb6;if(_0x3e9215[_0x377347(0x163)]==='ok')return a32_0x41b36e[_0x377347(0x1b9)](_0x377347(0x1ba));if(_0x3e9215['status']==='missing')return a32_0x41b36e[_0x377347(0x1be)](_0x377347(0x198));if(_0x3e9215['status']==='empty')return a32_0x41b36e['yellow'](_0x377347(0x18b));return a32_0x41b36e[_0x377347(0x16a)](_0x377347(0x169)+(_0x3e9215[_0x377347(0x1b4)]?':\x20'+_0x3e9215[_0x377347(0x1b4)]:''));}export const doctorDefinition={'service':a32_0x589b08(0x16b),'command':'check','description':a32_0x589b08(0x18e),'risk':a32_0x589b08(0x1b3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x318119=a33_0x109f;(function(_0x2849f6,_0x232acc){const _0x59487a=a33_0x109f,_0x5c5168=_0x2849f6();while(!![]){try{const _0x13f279=-parseInt(_0x59487a(0xc1))/0x1*(-parseInt(_0x59487a(0xd6))/0x2)+-parseInt(_0x59487a(0xd2))/0x3+parseInt(_0x59487a(0xb9))/0x4*(-parseInt(_0x59487a(0xc2))/0x5)+-parseInt(_0x59487a(0xb7))/0x6+parseInt(_0x59487a(0xca))/0x7*(parseInt(_0x59487a(0xbd))/0x8)+-parseInt(_0x59487a(0xcf))/0x9+parseInt(_0x59487a(0xcd))/0xa;if(_0x13f279===_0x232acc)break;else _0x5c5168['push'](_0x5c5168['shift']());}catch(_0x2e788e){_0x5c5168['push'](_0x5c5168['shift']());}}}(a33_0x42a7,0x55f9b));function a33_0x109f(_0x19b155,_0xcb5df1){_0x19b155=_0x19b155-0xb5;const _0x42a789=a33_0x42a7();let _0x109fb8=_0x42a789[_0x19b155];return _0x109fb8;}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x318119(0xc9),'type':'string','required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':a33_0x318119(0xda),'type':a33_0x318119(0xbc),'required':!![],'description':a33_0x318119(0xbf)},DOWNLOAD_FLAG={'name':a33_0x318119(0xc4),'type':a33_0x318119(0xb8),'description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a33_0x318119(0xbb),'type':a33_0x318119(0xb8),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x3ae14a){const _0x2fb91a=a33_0x318119,_0x5047b3=_0x3ae14a[_0x2fb91a(0xcc)]();if(!_0x5047b3)throw CliErrors[_0x2fb91a(0xc8)](_0x2fb91a(0xc6));return _0x5047b3;}const fileUpload={'service':a33_0x318119(0xc9),'command':a33_0x318119(0xcb),'description':a33_0x318119(0xd1),'risk':a33_0x318119(0xc0),'flags':[FILE_FLAG],async 'dryRun'(_0x20796f){const _0x441671=a33_0x318119,_0x369bd9=requireRuntimeUploadFile(_0x20796f[_0x441671(0xb5)](_0x441671(0xc9)),'File');return dryRun(_0x441671(0xdb),_0x441671(0xd9))[_0x441671(0xd7)]({'appCode':_0x20796f['appCode'],'multipart':{'file':_0x369bd9}})[_0x441671(0xd3)](_0x441671(0xc3)+_0x369bd9[_0x441671(0xb6)]+'\x20to\x20runtime\x20app\x20'+_0x20796f[_0x441671(0xd8)])[_0x441671(0xce)]();},async 'execute'(_0x3ae6bc){const _0x4fe699=a33_0x318119,_0xd9a50f=requireRuntimeUploadFile(_0x3ae6bc['str'](_0x4fe699(0xc9)),_0x4fe699(0xd5)),_0x58dd45=await uploadRuntimeFile(_0x3ae6bc['appCode'],_0xd9a50f[_0x4fe699(0xb6)]);return{'ok':!![],'data':_0x58dd45,'message':_0x58dd45['filePath']?_0x4fe699(0xbe)+_0x58dd45[_0x4fe699(0xc5)]+_0x4fe699(0xba):_0x4fe699(0xd0)};}},fileQueryUrl={'service':a33_0x318119(0xc9),'command':a33_0x318119(0xc7),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0x318119(0xc0),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4c7cde){const _0x5ecd72=a33_0x318119,_0x486f5f=requireFilePath(_0x4c7cde['str'](_0x5ecd72(0xda))),_0x39d5e7=await queryRuntimeFileUrl(_0x486f5f,{'download':_0x4c7cde[_0x5ecd72(0xd4)]('download'),'longTerm':_0x4c7cde[_0x5ecd72(0xd4)](_0x5ecd72(0xbb))});return{'ok':!![],'data':_0x39d5e7};}};function a33_0x42a7(){const _0x381dbe=['long-term','string','4552iuMxzr','Uploaded\x20file:\x20','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','read','46603JyZtrg','2528385JFiQMe','Preview:\x20upload\x20','download','filePath','filePath\x20is\x20required.','query-url','validation','file','1883VDEFaM','upload','trim','13106530PRukOm','build','1377513pzwQcj','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','1086204wpilaO','description','bool','File','2kdgKJB','body','appCode','/client/uploadFile','filepath','POST','str','path','824160lCErAY','boolean','4FukcBk','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'];a33_0x42a7=function(){return _0x381dbe;};return a33_0x42a7();}export const fileDefinitions=[fileUpload,fileQueryUrl];
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x7ae8ce=a34_0xd8c1;(function(_0x39522d,_0x29fbde){const _0x135fef=a34_0xd8c1,_0x5bfcc2=_0x39522d();while(!![]){try{const _0x8305b=parseInt(_0x135fef(0xb5))/0x1*(parseInt(_0x135fef(0xb0))/0x2)+parseInt(_0x135fef(0xbe))/0x3*(parseInt(_0x135fef(0xb3))/0x4)+parseInt(_0x135fef(0xd6))/0x5*(-parseInt(_0x135fef(0xb6))/0x6)+parseInt(_0x135fef(0xc7))/0x7+parseInt(_0x135fef(0xcc))/0x8*(-parseInt(_0x135fef(0xd5))/0x9)+-parseInt(_0x135fef(0xc9))/0xa+parseInt(_0x135fef(0xba))/0xb;if(_0x8305b===_0x29fbde)break;else _0x5bfcc2['push'](_0x5bfcc2['shift']());}catch(_0x49f9c0){_0x5bfcc2['push'](_0x5bfcc2['shift']());}}}(a34_0x2616,0xe3d69));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';function a34_0x2616(){const _0x535049=['4930990xyCUsX','object','cwd','296PaTTcb','\x20\x20default:\x20','Imported\x20from\x20','\x20\x20config:\x20\x20','global','utf8','app','defaultApp','env','191556jyNPqK','25LnIlKY','Skip\x20confirmation\x20when\x20overwriting','file','join','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.',')\x20instead\x20of\x20project','yes','appcode','Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','2AYXTlU','Override\x20imported\x20default\x20appcode','Provide\x20--appcode\x20<code>\x20or\x20use\x20an\x20upgraded\x20.rabetbase.json\x20with\x20top-level\x20appcode.\x20Legacy\x20files\x20must\x20be\x20upgraded\x20first\x20with\x20`rabetbase\x20project\x20upgrade`.','350584oWxNWz','string','200038kGFZhl','769866xVlYPd','entries','project','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','5429831QXWKwN','Failed\x20to\x20parse\x20source\x20file:\x20','includes','Write\x20to\x20global\x20(~/','36YSlQYc','boolean','\x22.\x20Allowed:\x20','validation','parse','apps','log','Override\x20imported\x20default\x20env','riskLevel','7769832jvWOct','\x20\x20appcode:\x20'];a34_0x2616=function(){return _0x535049;};return a34_0x2616();}function a34_0xd8c1(_0x59444e,_0x347c88){_0x59444e=_0x59444e-0xac;const _0x26162a=a34_0x2616();let _0xd8c1bc=_0x26162a[_0x59444e];return _0xd8c1bc;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RUNTIME_ENV_VALUES}from'../constant/env.js';import{IMPORTABLE_RUNTIME_CONFIG_KEYS}from'../config/schema.js';import{resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../context.js';import{PRODUCT_CONFIG}from'../constant/product.js';export const appImportFlagDefs=[{'name':a34_0x7ae8ce(0xd8),'type':a34_0x7ae8ce(0xb4),'description':'Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','required':!![]},{'name':'appcode','type':'string','description':a34_0x7ae8ce(0xb1)},{'name':a34_0x7ae8ce(0xd4),'type':'string','description':a34_0x7ae8ce(0xc5),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x7ae8ce(0xd0),'type':'boolean','description':a34_0x7ae8ce(0xbd)+PRODUCT_CONFIG['newConfigFileName']+a34_0x7ae8ce(0xac),'default':![]},{'name':a34_0x7ae8ce(0xad),'type':a34_0x7ae8ce(0xbf),'description':a34_0x7ae8ce(0xd7),'default':![]}];export async function runAppImport(_0x2c2f20){const _0x485923=a34_0x7ae8ce,_0x507f88=_0x2c2f20[_0x485923(0xd0)]?'global':_0x485923(0xb8),_0x10f13d=resolveWriteConfigPath(_0x507f88);await runFromImport(_0x2c2f20,_0x10f13d);}async function runFromImport(_0x3c5bc9,_0xd67b9c){const _0x32d7a6=a34_0x7ae8ce,_0x54a40b=resolveFilePath(_0x3c5bc9[_0x32d7a6(0xd8)]);if(!existsSync(_0x54a40b))throw CliErrors[_0x32d7a6(0xc1)]('Source\x20file\x20not\x20found:\x20'+_0x54a40b);const _0x459055=readSourceFile(_0x54a40b),_0x5d04c4=convertToRuntimeConfig(_0x459055);_0x3c5bc9[_0x32d7a6(0xae)]&&(_0x5d04c4['appcode']=String(_0x3c5bc9[_0x32d7a6(0xae)]));_0x3c5bc9[_0x32d7a6(0xd4)]&&(_0x5d04c4[_0x32d7a6(0xd4)]=resolveImportEnv(_0x3c5bc9));if(!_0x5d04c4[_0x32d7a6(0xae)])throw CliErrors[_0x32d7a6(0xc1)](_0x32d7a6(0xb9),_0x32d7a6(0xb2));await writeImportConfig(_0xd67b9c,_0x5d04c4,_0x3c5bc9),console[_0x32d7a6(0xc4)](_0x32d7a6(0xce)+_0x54a40b),console['log'](_0x32d7a6(0xcf)+_0xd67b9c),console[_0x32d7a6(0xc4)](_0x32d7a6(0xc8)+_0x5d04c4[_0x32d7a6(0xae)]);if(_0x5d04c4[_0x32d7a6(0xd3)])console[_0x32d7a6(0xc4)](_0x32d7a6(0xcd)+_0x5d04c4['defaultApp']);}function convertToRuntimeConfig(_0x4b4f5a){const _0x225c25=a34_0x7ae8ce;if(_0x4b4f5a[_0x225c25(0xc3)]&&typeof _0x4b4f5a[_0x225c25(0xc3)]===_0x225c25(0xca))throw CliErrors[_0x225c25(0xc1)](_0x225c25(0xaf),_0x225c25(0xda));const _0x599522={};for(const _0x32ba15 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x4b4f5a[_0x32ba15]!==undefined&&(_0x599522[_0x32ba15]=_0x4b4f5a[_0x32ba15]);}return!_0x599522[_0x225c25(0xc6)]&&(_0x599522[_0x225c25(0xc6)]=DEFAULT_CONFIG_VALUES[_0x225c25(0xc6)]),_0x599522;}async function writeImportConfig(_0x514c26,_0x5d5d0d,_0x2df329){const _0x271ee3=a34_0x7ae8ce;let _0x4ef594={};existsSync(_0x514c26)&&!_0x2df329['yes']&&(_0x4ef594=readConfigFile(_0x514c26));for(const [_0x58a6d4,_0x10db95]of Object[_0x271ee3(0xb7)](_0x5d5d0d)){_0x10db95!==undefined&&(_0x4ef594[_0x58a6d4]=_0x10db95);}if(_0x4ef594[_0x271ee3(0xd2)])delete _0x4ef594[_0x271ee3(0xd2)];writeConfigFile(_0x514c26,_0x4ef594);}function resolveFilePath(_0x3fa4df){const _0x2fd76d=a34_0x7ae8ce;return isAbsolute(_0x3fa4df)?_0x3fa4df:resolve(process[_0x2fd76d(0xcb)](),_0x3fa4df);}function readSourceFile(_0x242380){const _0x4cba9e=a34_0x7ae8ce;try{const _0x19fd3f=readFileSync(_0x242380,{'encoding':_0x4cba9e(0xd1)});return JSON[_0x4cba9e(0xc2)](_0x19fd3f);}catch(_0x11ac9b){throw CliErrors[_0x4cba9e(0xc1)](_0x4cba9e(0xbb)+_0x11ac9b['message']);}}function resolveImportEnv(_0x15c4c8){const _0x49cb59=a34_0x7ae8ce,_0x4d3b04=_0x15c4c8['env'];if(_0x4d3b04===undefined||_0x4d3b04==='')return DEFAULT_CONFIG_VALUES[_0x49cb59(0xd4)];if(!RUNTIME_ENV_VALUES[_0x49cb59(0xbc)](_0x4d3b04))throw CliErrors[_0x49cb59(0xc1)]('Invalid\x20env\x20\x22'+_0x4d3b04+_0x49cb59(0xc0)+RUNTIME_ENV_VALUES[_0x49cb59(0xd9)](',\x20'));return _0x4d3b04;}
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a35_0x3d5c(){const _0xbfb4bc=['path','ragErrorMessage','ragStatus','22315010aWxEAh','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','verbose','3410955xYdIEG','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','3151956dkTyTO','string','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','accessKey','search','Personal\x20knowledge-base\x20entry\x20ID','detail','/client/knowledge-base/personal','9SuKXGz','map','number','description','isFile','kb-service-url','isSafeInteger','title','str','updateTime','body','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','write','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','appCode','trim','length','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','scope','Updated\x20KB\x20entry\x20','create','File\x20not\x20found:\x20','file','num','list','5512VtrlQS','Personal\x20knowledge-base\x20entry\x20title','4TJRqxC','4687530WdbKcD','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','838953zSZDql','POST','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','1362942BZHUuS','read','Search\x20query\x20is\x20required.','version','userId','dryRun','content','build','update','signal','validation','Override\x20the\x20existing\x20entry\x20title','1722EPLPXJ','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','topk','query','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'];a35_0x3d5c=function(){return _0xbfb4bc;};return a35_0x3d5c();}const a35_0x4a91ac=a35_0x20d7;function a35_0x20d7(_0x340853,_0x48b901){_0x340853=_0x340853-0x95;const _0x3d5c2b=a35_0x3d5c();let _0x20d7b1=_0x3d5c2b[_0x340853];return _0x20d7b1;}(function(_0x4bedf3,_0x3445e4){const _0x1e1489=a35_0x20d7,_0x4d3913=_0x4bedf3();while(!![]){try{const _0x1f8aec=-parseInt(_0x1e1489(0xbd))/0x1+parseInt(_0x1e1489(0xc0))/0x2+-parseInt(_0x1e1489(0xd7))/0x3+-parseInt(_0x1e1489(0xba))/0x4*(parseInt(_0x1e1489(0xbb))/0x5)+parseInt(_0x1e1489(0x97))/0x6+parseInt(_0x1e1489(0xcc))/0x7*(parseInt(_0x1e1489(0xb8))/0x8)+parseInt(_0x1e1489(0x9f))/0x9*(parseInt(_0x1e1489(0xd4))/0xa);if(_0x1f8aec===_0x3445e4)break;else _0x4d3913['push'](_0x4d3913['shift']());}catch(_0x3ae8d3){_0x4d3913['push'](_0x4d3913['shift']());}}}(a35_0x3d5c,0xa984c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':'title','type':a35_0x4a91ac(0x98),'required':!![],'description':a35_0x4a91ac(0xb9)},FILE_FLAG={'name':a35_0x4a91ac(0xb5),'type':'string','required':!![],'description':a35_0x4a91ac(0xd5)},QUERY_FLAG={'name':a35_0x4a91ac(0xcf),'type':a35_0x4a91ac(0x98),'required':!![],'description':a35_0x4a91ac(0x96)},TOPK_FLAG={'name':a35_0x4a91ac(0xce),'type':a35_0x4a91ac(0xa1),'description':a35_0x4a91ac(0xaa)};function readKnowledgeFile(_0x20cef2){const _0x1ced98=a35_0x4a91ac;if(!_0x20cef2)throw CliErrors[_0x1ced98(0xca)]('File\x20path\x20is\x20required.');if(!existsSync(_0x20cef2))throw CliErrors[_0x1ced98(0xca)](_0x1ced98(0xb4)+_0x20cef2);if(!statSync(_0x20cef2)[_0x1ced98(0xa3)]())throw CliErrors[_0x1ced98(0xca)]('File\x20is\x20not\x20a\x20regular\x20file:\x20'+_0x20cef2);return readFileSync(_0x20cef2,'utf8');}function summarizePersonalItem(_0x376ce8){const _0x2d4fc9=a35_0x4a91ac;return{'id':_0x376ce8['id'],'title':_0x376ce8['title'],'version':_0x376ce8[_0x2d4fc9(0xc3)],'ragStatus':_0x376ce8['ragStatus'],'ragErrorMessage':_0x376ce8[_0x2d4fc9(0xd2)],'updateTime':_0x376ce8[_0x2d4fc9(0xa8)]};}function detailPersonalItem(_0x3078e9){const _0x383506=a35_0x4a91ac;return{'id':_0x3078e9['id'],'appCode':_0x3078e9['appCode'],'scope':_0x3078e9[_0x383506(0xb1)],'userId':_0x3078e9[_0x383506(0xc4)],'title':_0x3078e9[_0x383506(0xa6)],'content':_0x3078e9[_0x383506(0xc6)],'version':_0x3078e9[_0x383506(0xc3)],'ragStatus':_0x3078e9[_0x383506(0xd3)],'ragErrorMessage':_0x3078e9[_0x383506(0xd2)],'createTime':_0x3078e9['createTime'],'updateTime':_0x3078e9[_0x383506(0xa8)]};}function readTopK(_0x2a95ff){const _0x4a1390=a35_0x4a91ac,_0x18247e=_0x2a95ff['flag'](_0x4a1390(0xce));if(_0x18247e===undefined||_0x18247e===null||_0x18247e==='')return undefined;const _0x2d780b=_0x2a95ff[_0x4a1390(0xb6)]('topk');if(!Number[_0x4a1390(0xa5)](_0x2d780b)||_0x2d780b<0x1||_0x2d780b>0x32)throw CliErrors[_0x4a1390(0xca)]('--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.');return _0x2d780b;}const kbList={'service':'kb','command':a35_0x4a91ac(0xb7),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a35_0x4a91ac(0xc1),'flags':[VERBOSE_FLAG],async 'execute'(_0xcf5bcb){const _0x2212a5=a35_0x4a91ac,_0x29b589=await listPersonalKnowledgeBaseItems(_0xcf5bcb[_0x2212a5(0xad)],_0xcf5bcb[_0x2212a5(0xc9)]);if(_0xcf5bcb['bool'](_0x2212a5(0xd6)))return{'ok':!![],'data':{'total':_0x29b589[_0x2212a5(0xaf)],'items':_0x29b589}};return{'ok':!![],'data':{'total':_0x29b589[_0x2212a5(0xaf)],'items':_0x29b589[_0x2212a5(0xa0)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x4a91ac(0x9d),'description':a35_0x4a91ac(0xbc),'risk':a35_0x4a91ac(0xc1),'flags':[{...ID_FLAG,'description':a35_0x4a91ac(0x9c)}],async 'execute'(_0x1dc997){const _0x239f4c=a35_0x4a91ac,_0xee0efa=await getPersonalKnowledgeBaseItem(_0x1dc997[_0x239f4c(0xb6)]('id'),_0x1dc997[_0x239f4c(0xad)],_0x1dc997[_0x239f4c(0xc9)]);return{'ok':!![],'data':detailPersonalItem(_0xee0efa)};}},kbCreate={'service':'kb','command':a35_0x4a91ac(0xb3),'description':a35_0x4a91ac(0xcd),'risk':a35_0x4a91ac(0xab),'confirmationDescription':a35_0x4a91ac(0xbf),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x34ad09){const _0x365adf=a35_0x4a91ac,_0x1020fa=_0x34ad09[_0x365adf(0xa7)](_0x365adf(0xa6)),_0x2771db=readKnowledgeFile(_0x34ad09[_0x365adf(0xa7)](_0x365adf(0xb5))),_0x521b7c=await createPersonalKnowledgeBaseItem(_0x34ad09[_0x365adf(0xad)],{'title':_0x1020fa,'content':_0x2771db},_0x34ad09[_0x365adf(0xc9)]);return{'ok':!![],'data':summarizePersonalItem(_0x521b7c),'message':'Created\x20KB\x20entry\x20'+_0x521b7c['id']+'\x20('+_0x521b7c[_0x365adf(0xa6)]+')'};},async 'dryRun'(_0x22401e){const _0x551c2c=a35_0x4a91ac,_0x30e8cb=_0x22401e['str'](_0x551c2c(0xa6)),_0x95e064=readKnowledgeFile(_0x22401e[_0x551c2c(0xa7)](_0x551c2c(0xb5))),_0x3f060a=planPersonalKnowledgeWrite(_0x22401e[_0x551c2c(0xad)],{'title':_0x30e8cb,'content':_0x95e064});return dryRun(_0x551c2c(0xbe),_0x551c2c(0x9e)+_0x3f060a[_0x551c2c(0xd1)])[_0x551c2c(0xa9)]({'appCode':_0x22401e['appCode'],'title':_0x30e8cb,'content':_0x95e064})[_0x551c2c(0xa2)](_0x551c2c(0xb0)+_0x30e8cb+'\x22')[_0x551c2c(0xc7)]();}},kbUpdate={'service':'kb','command':a35_0x4a91ac(0xc8),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a35_0x4a91ac(0xab),'confirmationDescription':a35_0x4a91ac(0xac),'flags':[{...ID_FLAG,'description':a35_0x4a91ac(0x9c)},{...TITLE_FLAG,'required':![],'description':a35_0x4a91ac(0xcb)},FILE_FLAG],async 'execute'(_0x31e9bb){const _0x16abac=a35_0x4a91ac,_0x4f93db=_0x31e9bb[_0x16abac(0xb6)]('id'),_0x5bfb73=readKnowledgeFile(_0x31e9bb[_0x16abac(0xa7)]('file')),_0xcfb47b=_0x31e9bb[_0x16abac(0xa7)](_0x16abac(0xa6))||(await getPersonalKnowledgeBaseItem(_0x4f93db,_0x31e9bb[_0x16abac(0xad)],_0x31e9bb[_0x16abac(0xc9)]))[_0x16abac(0xa6)],_0x441b8b=await updatePersonalKnowledgeBaseItem(_0x4f93db,_0x31e9bb[_0x16abac(0xad)],{'title':_0xcfb47b,'content':_0x5bfb73},_0x31e9bb[_0x16abac(0xc9)]);return{'ok':!![],'data':summarizePersonalItem(_0x441b8b),'message':_0x16abac(0xb2)+_0x441b8b['id']+'\x20('+_0x441b8b['title']+')'};},async 'dryRun'(_0x41e2e3){const _0x34bc37=a35_0x4a91ac,_0x51bde0=_0x41e2e3[_0x34bc37(0xb6)]('id'),_0x3aae7c=readKnowledgeFile(_0x41e2e3[_0x34bc37(0xa7)]('file')),_0x4bbf75=_0x41e2e3[_0x34bc37(0xa7)](_0x34bc37(0xa6))||(await getPersonalKnowledgeBaseItem(_0x51bde0,_0x41e2e3['appCode'],_0x41e2e3[_0x34bc37(0xc9)]))[_0x34bc37(0xa6)],_0x2f4d69=planPersonalKnowledgeWrite(_0x41e2e3['appCode'],{'title':_0x4bbf75,'content':_0x3aae7c},_0x51bde0);return dryRun(_0x34bc37(0xbe),_0x34bc37(0x9e)+_0x2f4d69[_0x34bc37(0xd1)])[_0x34bc37(0xa9)]({'appCode':_0x41e2e3[_0x34bc37(0xad)],'title':_0x4bbf75,'content':_0x3aae7c})[_0x34bc37(0xa2)](_0x34bc37(0x95)+_0x51bde0)[_0x34bc37(0xc7)]();}};function readSearchServiceUrl(_0x4b2b5a){const _0x20b645=a35_0x4a91ac;if(_0x4b2b5a['flag'](_0x20b645(0xa4))!==undefined)return normalizeKbServiceOrigin(_0x4b2b5a[_0x20b645(0xa7)](_0x20b645(0xa4)));const _0x4a6ef0=getKbServiceDomain();if(!_0x4a6ef0)throw CliErrors['validation']('KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.');return normalizeKbServiceOrigin(_0x4a6ef0);}const kbSearch={'service':'kb','command':a35_0x4a91ac(0x9b),'description':a35_0x4a91ac(0xd0),'risk':a35_0x4a91ac(0xc1),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x4a91ac(0xa4),'type':a35_0x4a91ac(0x98),'required':![],'description':a35_0x4a91ac(0x99)}],async 'validate'(_0x43b7a9){const _0x175351=a35_0x4a91ac;if(!_0x43b7a9[_0x175351(0xa7)]('query')[_0x175351(0xae)]())throw CliErrors['validation'](_0x175351(0xc2));readTopK(_0x43b7a9),readSearchServiceUrl(_0x43b7a9);},async 'execute'(_0xe3f32e){const _0x584ee4=a35_0x4a91ac,_0x29bdfd=_0xe3f32e[_0x584ee4(0xa7)]('query')[_0x584ee4(0xae)](),_0x1ad126=readTopK(_0xe3f32e),_0x3dfde8=readSearchServiceUrl(_0xe3f32e),_0x4e0764={'appCode':_0xe3f32e[_0x584ee4(0xad)],'accessKey':_0xe3f32e[_0x584ee4(0x9a)]??'','query':_0x29bdfd,..._0x1ad126!==undefined?{'topK':_0x1ad126}:{},'signal':_0xe3f32e[_0x584ee4(0xc9)]},_0x516cff=await searchDirectKnowledge({..._0x4e0764,'serviceUrl':_0x3dfde8});return{'ok':!![],'data':_0x516cff};}};function managementCommand(_0x236fa2){const _0x3491df=a35_0x4a91ac;return{..._0x236fa2,'execute':_0x5d72dd=>withKbManagementOrigin(()=>_0x236fa2['execute'](_0x5d72dd)),..._0x236fa2[_0x3491df(0xc5)]?{'dryRun':_0x5ea598=>withKbManagementOrigin(()=>_0x236fa2[_0x3491df(0xc5)](_0x5ea598))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a35_0x4a91ac(0xa0)](managementCommand),kbSearch];
|
|
1
|
+
const a35_0x511339=a35_0x5554;(function(_0x2b2c8e,_0x448d4d){const _0x504467=a35_0x5554,_0x11db6b=_0x2b2c8e();while(!![]){try{const _0x446ba=parseInt(_0x504467(0xfa))/0x1*(-parseInt(_0x504467(0xd2))/0x2)+-parseInt(_0x504467(0xdd))/0x3*(parseInt(_0x504467(0xcc))/0x4)+-parseInt(_0x504467(0xd7))/0x5+parseInt(_0x504467(0xdf))/0x6+parseInt(_0x504467(0xc6))/0x7*(parseInt(_0x504467(0xeb))/0x8)+-parseInt(_0x504467(0xc8))/0x9*(-parseInt(_0x504467(0xdc))/0xa)+parseInt(_0x504467(0xef))/0xb;if(_0x446ba===_0x448d4d)break;else _0x11db6b['push'](_0x11db6b['shift']());}catch(_0x934cee){_0x11db6b['push'](_0x11db6b['shift']());}}}(a35_0x4d9e,0xec07c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';function a35_0x5554(_0x2e9863,_0xee718){_0x2e9863=_0x2e9863-0xbb;const _0x4d9e8e=a35_0x4d9e();let _0x555470=_0x4d9e8e[_0x2e9863];return _0x555470;}import{searchDirectKnowledge,normalizeKbServiceOrigin}from'../../core/kb-search-client.js';import{planPersonalKnowledgeWrite,withKbManagementOrigin}from'../../core/kb-management-client.js';import{ID_FLAG,VERBOSE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a35_0x511339(0xd4),'type':a35_0x511339(0xe9),'required':!![],'description':a35_0x511339(0xed)},FILE_FLAG={'name':a35_0x511339(0xe7),'type':a35_0x511339(0xe9),'required':!![],'description':a35_0x511339(0xf9)},QUERY_FLAG={'name':a35_0x511339(0xfb),'type':'string','required':!![],'description':a35_0x511339(0xbe)},TOPK_FLAG={'name':a35_0x511339(0xe8),'type':a35_0x511339(0xbd),'description':'Maximum\x20number\x20of\x20search\x20hits\x20to\x20return'};function a35_0x4d9e(){const _0x57ecdb=['Updated\x20KB\x20entry\x20','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','1791241cqEGhK','query','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','str','body','dryRun','scope','accessKey','create','number','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','File\x20is\x20not\x20a\x20regular\x20file:\x20','Override\x20the\x20existing\x20entry\x20title','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','execute','description','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','21gsUFhV','map','18666cpJtRF','isFile','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','num','24WjaQWH','ragStatus','/client/knowledge-base/personal','POST','read','build','2lsWHwg','ragErrorMessage','title','validation','version','1301285RsdOef','Personal\x20knowledge-base\x20entry\x20ID','length','kb-service-url','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','2900kFAPuW','892236wTiAph','isSafeInteger','127140NRCbOd','write','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','userId','detail','Created\x20KB\x20entry\x20','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','file','topk','string','utf8','4865264DzIXhx','updateTime','Personal\x20knowledge-base\x20entry\x20title','signal','25911886MImQtv','content','flag','list','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','path','createTime','appCode','trim'];a35_0x4d9e=function(){return _0x57ecdb;};return a35_0x4d9e();}function readKnowledgeFile(_0x48cdd6){const _0x35798b=a35_0x511339;if(!_0x48cdd6)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x48cdd6))throw CliErrors[_0x35798b(0xd5)]('File\x20not\x20found:\x20'+_0x48cdd6);if(!statSync(_0x48cdd6)[_0x35798b(0xc9)]())throw CliErrors[_0x35798b(0xd5)](_0x35798b(0xbf)+_0x48cdd6);return readFileSync(_0x48cdd6,_0x35798b(0xea));}function summarizePersonalItem(_0x222740){const _0x3fc5cf=a35_0x511339;return{'id':_0x222740['id'],'title':_0x222740['title'],'version':_0x222740[_0x3fc5cf(0xd6)],'ragStatus':_0x222740['ragStatus'],'ragErrorMessage':_0x222740[_0x3fc5cf(0xd3)],'updateTime':_0x222740[_0x3fc5cf(0xec)]};}function detailPersonalItem(_0x59ac27){const _0x28d8cc=a35_0x511339;return{'id':_0x59ac27['id'],'appCode':_0x59ac27[_0x28d8cc(0xf6)],'scope':_0x59ac27[_0x28d8cc(0x100)],'userId':_0x59ac27[_0x28d8cc(0xe2)],'title':_0x59ac27[_0x28d8cc(0xd4)],'content':_0x59ac27[_0x28d8cc(0xf0)],'version':_0x59ac27['version'],'ragStatus':_0x59ac27[_0x28d8cc(0xcd)],'ragErrorMessage':_0x59ac27[_0x28d8cc(0xd3)],'createTime':_0x59ac27[_0x28d8cc(0xf5)],'updateTime':_0x59ac27['updateTime']};}function readTopK(_0x41fdd2){const _0x564f02=a35_0x511339,_0x52b503=_0x41fdd2['flag']('topk');if(_0x52b503===undefined||_0x52b503===null||_0x52b503==='')return undefined;const _0x2b2cfa=_0x41fdd2[_0x564f02(0xcb)](_0x564f02(0xe8));if(!Number[_0x564f02(0xde)](_0x2b2cfa)||_0x2b2cfa<0x1||_0x2b2cfa>0x32)throw CliErrors[_0x564f02(0xd5)](_0x564f02(0xc1));return _0x2b2cfa;}const kbList={'service':'kb','command':a35_0x511339(0xf2),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a35_0x511339(0xd0),'flags':[VERBOSE_FLAG],async 'execute'(_0x445b62){const _0x4cf5d3=a35_0x511339,_0x18a5af=await listPersonalKnowledgeBaseItems(_0x445b62[_0x4cf5d3(0xf6)],_0x445b62[_0x4cf5d3(0xee)]);if(_0x445b62['bool']('verbose'))return{'ok':!![],'data':{'total':_0x18a5af['length'],'items':_0x18a5af}};return{'ok':!![],'data':{'total':_0x18a5af[_0x4cf5d3(0xd9)],'items':_0x18a5af[_0x4cf5d3(0xc7)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a35_0x511339(0xe3),'description':a35_0x511339(0xe6),'risk':a35_0x511339(0xd0),'flags':[{...ID_FLAG,'description':a35_0x511339(0xd8)}],async 'execute'(_0x5af017){const _0x40630f=a35_0x511339,_0x46e131=await getPersonalKnowledgeBaseItem(_0x5af017[_0x40630f(0xcb)]('id'),_0x5af017[_0x40630f(0xf6)],_0x5af017[_0x40630f(0xee)]);return{'ok':!![],'data':detailPersonalItem(_0x46e131)};}},kbCreate={'service':'kb','command':a35_0x511339(0xbc),'description':a35_0x511339(0xca),'risk':a35_0x511339(0xe0),'confirmationDescription':a35_0x511339(0xc5),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x184f83){const _0x371e41=a35_0x511339,_0x4094d1=_0x184f83[_0x371e41(0xfd)](_0x371e41(0xd4)),_0x1ffe11=readKnowledgeFile(_0x184f83['str'](_0x371e41(0xe7))),_0x451dce=await createPersonalKnowledgeBaseItem(_0x184f83[_0x371e41(0xf6)],{'title':_0x4094d1,'content':_0x1ffe11},_0x184f83[_0x371e41(0xee)]);return{'ok':!![],'data':summarizePersonalItem(_0x451dce),'message':_0x371e41(0xe4)+_0x451dce['id']+'\x20('+_0x451dce[_0x371e41(0xd4)]+')'};},async 'dryRun'(_0x36d6e3){const _0xafce7f=a35_0x511339,_0xfa5447=_0x36d6e3[_0xafce7f(0xfd)](_0xafce7f(0xd4)),_0x2cd2fe=readKnowledgeFile(_0x36d6e3[_0xafce7f(0xfd)](_0xafce7f(0xe7))),_0x5bfc49=planPersonalKnowledgeWrite(_0x36d6e3['appCode'],{'title':_0xfa5447,'content':_0x2cd2fe});return dryRun('POST',_0xafce7f(0xce)+_0x5bfc49['path'])['body']({'appCode':_0x36d6e3['appCode'],'title':_0xfa5447,'content':_0x2cd2fe})['description'](_0xafce7f(0xc4)+_0xfa5447+'\x22')['build']();}},kbUpdate={'service':'kb','command':'update','description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':'write','confirmationDescription':a35_0x511339(0xe1),'flags':[{...ID_FLAG,'description':'Personal\x20knowledge-base\x20entry\x20ID'},{...TITLE_FLAG,'required':![],'description':a35_0x511339(0xc0)},FILE_FLAG],async 'execute'(_0x367852){const _0x3cf1d1=a35_0x511339,_0x3e709e=_0x367852[_0x3cf1d1(0xcb)]('id'),_0x33e964=readKnowledgeFile(_0x367852[_0x3cf1d1(0xfd)]('file')),_0x41e539=_0x367852[_0x3cf1d1(0xfd)](_0x3cf1d1(0xd4))||(await getPersonalKnowledgeBaseItem(_0x3e709e,_0x367852[_0x3cf1d1(0xf6)],_0x367852['signal']))[_0x3cf1d1(0xd4)],_0x167131=await updatePersonalKnowledgeBaseItem(_0x3e709e,_0x367852['appCode'],{'title':_0x41e539,'content':_0x33e964},_0x367852[_0x3cf1d1(0xee)]);return{'ok':!![],'data':summarizePersonalItem(_0x167131),'message':_0x3cf1d1(0xf8)+_0x167131['id']+'\x20('+_0x167131['title']+')'};},async 'dryRun'(_0xc797fb){const _0x46f9b4=a35_0x511339,_0x287031=_0xc797fb[_0x46f9b4(0xcb)]('id'),_0x318c3c=readKnowledgeFile(_0xc797fb[_0x46f9b4(0xfd)](_0x46f9b4(0xe7))),_0x15c788=_0xc797fb[_0x46f9b4(0xfd)]('title')||(await getPersonalKnowledgeBaseItem(_0x287031,_0xc797fb[_0x46f9b4(0xf6)],_0xc797fb[_0x46f9b4(0xee)]))[_0x46f9b4(0xd4)],_0x3ac554=planPersonalKnowledgeWrite(_0xc797fb[_0x46f9b4(0xf6)],{'title':_0x15c788,'content':_0x318c3c},_0x287031);return dryRun(_0x46f9b4(0xcf),_0x46f9b4(0xce)+_0x3ac554[_0x46f9b4(0xf4)])[_0x46f9b4(0xfe)]({'appCode':_0xc797fb[_0x46f9b4(0xf6)],'title':_0x15c788,'content':_0x318c3c})[_0x46f9b4(0xc3)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x287031)[_0x46f9b4(0xd1)]();}};function readSearchServiceUrl(_0x3dc9a5){const _0x274a40=a35_0x511339;if(_0x3dc9a5[_0x274a40(0xf1)](_0x274a40(0xda))!==undefined)return normalizeKbServiceOrigin(_0x3dc9a5[_0x274a40(0xfd)]('kb-service-url'));const _0x5a2f5d=getKbServiceDomain();if(!_0x5a2f5d)throw CliErrors[_0x274a40(0xd5)](_0x274a40(0xfc),_0x274a40(0xdb));return normalizeKbServiceOrigin(_0x5a2f5d);}const kbSearch={'service':'kb','command':'search','description':a35_0x511339(0xf3),'risk':a35_0x511339(0xd0),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':a35_0x511339(0xda),'type':a35_0x511339(0xe9),'required':![],'description':a35_0x511339(0xe5)}],async 'validate'(_0x3da291){const _0x687015=a35_0x511339;if(!_0x3da291[_0x687015(0xfd)](_0x687015(0xfb))[_0x687015(0xf7)]())throw CliErrors[_0x687015(0xd5)]('Search\x20query\x20is\x20required.');readTopK(_0x3da291),readSearchServiceUrl(_0x3da291);},async 'execute'(_0x376970){const _0x1f5765=a35_0x511339,_0x35b49b=_0x376970[_0x1f5765(0xfd)](_0x1f5765(0xfb))[_0x1f5765(0xf7)](),_0x47e5f5=readTopK(_0x376970),_0x485461=readSearchServiceUrl(_0x376970),_0xc10bed={'appCode':_0x376970[_0x1f5765(0xf6)],'accessKey':_0x376970[_0x1f5765(0xbb)]??'','query':_0x35b49b,..._0x47e5f5!==undefined?{'topK':_0x47e5f5}:{},'signal':_0x376970['signal']},_0x76fa99=await searchDirectKnowledge({..._0xc10bed,'serviceUrl':_0x485461});return{'ok':!![],'data':_0x76fa99};}};function managementCommand(_0x4ee6ee){const _0x8770cf=a35_0x511339;return{..._0x4ee6ee,'execute':_0x59d95e=>withKbManagementOrigin(()=>_0x4ee6ee[_0x8770cf(0xc2)](_0x59d95e)),..._0x4ee6ee[_0x8770cf(0xff)]?{'dryRun':_0x50f031=>withKbManagementOrigin(()=>_0x4ee6ee[_0x8770cf(0xff)](_0x50f031))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate]['map'](managementCommand),kbSearch];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36_0x4c79cf=a36_0x25fb;(function(_0x21ccf4,_0x36c791){const _0x46de01=a36_0x25fb,_0x3a4dee=_0x21ccf4();while(!![]){try{const _0x1fe38d=-parseInt(_0x46de01(0x205))/0x1+-parseInt(_0x46de01(0x202))/0x2*(parseInt(_0x46de01(0x1fb))/0x3)+parseInt(_0x46de01(0x204))/0x4+-parseInt(_0x46de01(0x1ee))/0x5*(parseInt(_0x46de01(0x1f6))/0x6)+-parseInt(_0x46de01(0x1fc))/0x7*(parseInt(_0x46de01(0x1f2))/0x8)+-parseInt(_0x46de01(0x1ef))/0x9+parseInt(_0x46de01(0x1ed))/0xa*(parseInt(_0x46de01(0x1f0))/0xb);if(_0x1fe38d===_0x36c791)break;else _0x3a4dee['push'](_0x3a4dee['shift']());}catch(_0x8da6c){_0x3a4dee['push'](_0x3a4dee['shift']());}}}(a36_0x23e0,0xe81df));import{logger}from'../../utils/logger.js';import{CLI_DISPLAY_NAME}from'../../constant/cli.js';function a36_0x25fb(_0x1b8962,_0x3d0fee){_0x1b8962=_0x1b8962-0x1e8;const _0x23e0f2=a36_0x23e0();let _0x25fb23=_0x23e0f2[_0x1b8962];return _0x25fb23;}function printLogs(_0xaf9728){const _0x203e01=a36_0x25fb;if(_0xaf9728[_0x203e01(0x1ea)]===0x0){console[_0x203e01(0x1ec)](_0x203e01(0x1f4));return;}console['log']('*\x20'+CLI_DISPLAY_NAME+_0x203e01(0x1fa)),_0xaf9728[_0x203e01(0x1f3)]((_0x1eac49,_0x1b600a)=>{const _0x42e471=_0x203e01,_0x371416=new Date(_0x1eac49[_0x42e471(0x1f9)])[_0x42e471(0x1f5)](_0x42e471(0x1f8)),_0x125a95=_0x1eac49[_0x42e471(0x1f1)]==='success'?'√':_0x1eac49[_0x42e471(0x1f1)]===_0x42e471(0x1eb)?'×':_0x1eac49[_0x42e471(0x1f1)]===_0x42e471(0x1e8)?'!':'i';console['log'](_0x1b600a+0x1+'.\x20'+_0x125a95+'\x20['+_0x1eac49[_0x42e471(0x1fe)]+']\x20'+_0x1eac49['message']),console[_0x42e471(0x1ec)](_0x42e471(0x1f7)+_0x371416),_0x1eac49[_0x42e471(0x203)]&&console[_0x42e471(0x1ec)](_0x42e471(0x201)+_0x1eac49[_0x42e471(0x203)]+'ms'),_0x1eac49['details']&&Object[_0x42e471(0x1e9)](_0x1eac49['details'])[_0x42e471(0x1ea)]>0x0&&console[_0x42e471(0x1ec)]('\x20\x20\x20Details:\x20'+JSON[_0x42e471(0x1ff)](_0x1eac49['details'],null,0x2)),console[_0x42e471(0x1ec)]('');});}export const logsDefinitions=[{'service':'logs','command':'show','description':a36_0x4c79cf(0x1fd),'risk':a36_0x4c79cf(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2cca72){return printLogs(logger['readLogs']()),{'ok':!![]};}}];function a36_0x23e0(){const _0x94b33=['\x20\x20\x20Time:\x20','en-US','timestamp','\x20logs:\x0a','759JsAneY','553YWKzuU','View\x20command\x20history\x20logs','command','stringify','read','\x20\x20\x20Duration:\x20','12574AjjoZn','duration','4668844WEJhwS','296368LIPyLt','warn','keys','length','error','log','210MnURSJ','8918375kWmsgk','8406540LjkniQ','2306513gdzuDb','level','1528pgydew','forEach','*\x20No\x20logs\x20found','toLocaleString','6wriQAv'];a36_0x23e0=function(){return _0x94b33;};return a36_0x23e0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a37_0x1cfe(){const _0x358edd=['List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','string','4sbSLzv','188644hkWLaG','281096pKkhZd','read','2585061eijKMS','EMAIL','config-list','length','328415hQGHbr','map','1874257dFKyhN','20VMkvcO','appCode','3nXmhBk','312954upuWHs','4036392dpjlhZ'];a37_0x1cfe=function(){return _0x358edd;};return a37_0x1cfe();}const a37_0x46dbad=a37_0x2b5b;(function(_0x53d565,_0x4ce87e){const _0x27d908=a37_0x2b5b,_0x25ee5e=_0x53d565();while(!![]){try{const _0x23fa2c=-parseInt(_0x27d908(0x1db))/0x1*(-parseInt(_0x27d908(0x1dd))/0x2)+parseInt(_0x27d908(0x1d6))/0x3*(-parseInt(_0x27d908(0x1dc))/0x4)+-parseInt(_0x27d908(0x1e3))/0x5+parseInt(_0x27d908(0x1d7))/0x6+-parseInt(_0x27d908(0x1d3))/0x7+-parseInt(_0x27d908(0x1d8))/0x8+parseInt(_0x27d908(0x1df))/0x9*(parseInt(_0x27d908(0x1d4))/0xa);if(_0x23fa2c===_0x4ce87e)break;else _0x25ee5e['push'](_0x25ee5e['shift']());}catch(_0x71fa10){_0x25ee5e['push'](_0x25ee5e['shift']());}}}(a37_0x1cfe,0x4a231));import{listNotificationChannelConfigs}from'../../core/api-client.js';function a37_0x2b5b(_0x788d51,_0x58e5da){_0x788d51=_0x788d51-0x1d2;const _0x1cfeca=a37_0x1cfe();let _0x2b5b06=_0x1cfeca[_0x788d51];return _0x2b5b06;}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':'notification','command':a37_0x46dbad(0x1e1),'description':a37_0x46dbad(0x1d9),'risk':a37_0x46dbad(0x1de),'flags':[{'name':'type','type':a37_0x46dbad(0x1da),'description':'Notification\x20channel\x20type','enum':NOTIFICATION_CHANNEL_TYPES,'default':a37_0x46dbad(0x1e0)}],async 'validate'(_0x492aef){readNotificationChannelType(_0x492aef);},async 'execute'(_0x3561fe){const _0x101062=a37_0x46dbad,_0x3caff7=readNotificationChannelType(_0x3561fe),_0x5dfeb4=await listNotificationChannelConfigs(_0x3561fe[_0x101062(0x1d5)],_0x3caff7),_0x3266dc=_0x5dfeb4[_0x101062(0x1d2)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x3561fe[_0x101062(0x1d5)],'channelType':_0x3caff7,'count':_0x3266dc[_0x101062(0x1e2)],'configs':_0x3266dc},'message':'Found\x20'+_0x3266dc[_0x101062(0x1e2)]+'\x20'+_0x3caff7+'\x20notification\x20config(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a38_0x18f3(){const _0xb18adb=['2856920sDfQOa','5418063wWYzYf','46VivhCr','7IGvNjZ','2561421xLmDGo','4WDzzFt','866688byZlZP','11341ZBkuFU','9290rDLPJC','7438568ZvjunP','2325WWHSUE'];a38_0x18f3=function(){return _0xb18adb;};return a38_0x18f3();}function a38_0x45e6(_0x1e87c4,_0x477afa){_0x1e87c4=_0x1e87c4-0x71;const _0x18f330=a38_0x18f3();let _0x45e6c1=_0x18f330[_0x1e87c4];return _0x45e6c1;}(function(_0x243d0d,_0xb7421e){const _0x29b650=a38_0x45e6,_0x310c65=_0x243d0d();while(!![]){try{const _0x5762b5=-parseInt(_0x29b650(0x75))/0x1*(-parseInt(_0x29b650(0x78))/0x2)+-parseInt(_0x29b650(0x7a))/0x3*(parseInt(_0x29b650(0x7b))/0x4)+parseInt(_0x29b650(0x76))/0x5+parseInt(_0x29b650(0x71))/0x6+-parseInt(_0x29b650(0x79))/0x7*(-parseInt(_0x29b650(0x74))/0x8)+parseInt(_0x29b650(0x77))/0x9+-parseInt(_0x29b650(0x73))/0xa*(parseInt(_0x29b650(0x72))/0xb);if(_0x5762b5===_0xb7421e)break;else _0x310c65['push'](_0x310c65['shift']());}catch(_0x287450){_0x310c65['push'](_0x310c65['shift']());}}}(a38_0x18f3,0x77839));import{notificationConfigList}from'../../commands/notification/config-list.js';export const notificationDefinitions=[notificationConfigList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x37ec23=a39_0x3883;function a39_0x3883(_0x5142f9,_0x382636){_0x5142f9=_0x5142f9-0x1c9;const _0x3da28c=a39_0x3da2();let _0x3883fa=_0x3da28c[_0x5142f9];return _0x3883fa;}function a39_0x3da2(){const _0x2b5be7=['configName','15gZqiFy','validation','615732HJlcjc','channelType','apiError','Allowed\x20values:\x20','WEBHOOK','20Arylvo','5XLeBbn','19264cCVADI','17836884HUnLkR','WECOM','Item\x20','object','configCode','isArray','Invalid\x20notification\x20config\x20response.','7275033BBYbtd','includes','160ypZcUf','str','description','join','DINGTALK','6354252EGwzmx','\x20must\x20be\x20an\x20object.','2399928oiHbWM','1448148npwqUP','14ecVQnc','11AoqKvX','trim','\x20is\x20missing\x20required\x20field\x20\x22'];a39_0x3da2=function(){return _0x2b5be7;};return a39_0x3da2();}(function(_0x44dc7c,_0x248b5e){const _0x262f8d=a39_0x3883,_0x308592=_0x44dc7c();while(!![]){try{const _0x418c62=parseInt(_0x262f8d(0x1e7))/0x1*(parseInt(_0x262f8d(0x1d0))/0x2)+-parseInt(_0x262f8d(0x1de))/0x3*(-parseInt(_0x262f8d(0x1e0))/0x4)+-parseInt(_0x262f8d(0x1e6))/0x5*(-parseInt(_0x262f8d(0x1d5))/0x6)+parseInt(_0x262f8d(0x1d9))/0x7*(parseInt(_0x262f8d(0x1d7))/0x8)+-parseInt(_0x262f8d(0x1ce))/0x9*(parseInt(_0x262f8d(0x1e5))/0xa)+-parseInt(_0x262f8d(0x1da))/0xb*(parseInt(_0x262f8d(0x1d8))/0xc)+-parseInt(_0x262f8d(0x1e8))/0xd;if(_0x418c62===_0x248b5e)break;else _0x308592['push'](_0x308592['shift']());}catch(_0x34ad7b){_0x308592['push'](_0x308592['shift']());}}}(a39_0x3da2,0xd20e4));import{CliErrors}from'../../errors.js';export const NOTIFICATION_CHANNEL_TYPES=['EMAIL','FEISHU',a39_0x37ec23(0x1d4),a39_0x37ec23(0x1e9),a39_0x37ec23(0x1e4)];export function readNotificationChannelType(_0x181a74){const _0x43ae40=a39_0x37ec23,_0x1aec9c=_0x181a74[_0x43ae40(0x1d1)]('type')[_0x43ae40(0x1db)]()||'EMAIL';if(!NOTIFICATION_CHANNEL_TYPES[_0x43ae40(0x1cf)](_0x1aec9c))throw CliErrors[_0x43ae40(0x1df)]('Invalid\x20--type:\x20'+_0x1aec9c,_0x43ae40(0x1e3)+NOTIFICATION_CHANNEL_TYPES[_0x43ae40(0x1d3)](',\x20')+'.');return _0x1aec9c;}export function projectNotificationListConfig(_0x559e78,_0x3b8c06){const _0x4f2e13=a39_0x37ec23,_0xa1886d=requireResponseObject(_0x559e78,_0x3b8c06);return{'configCode':requireResponseString(_0xa1886d['configCode'],_0x4f2e13(0x1cb),_0x3b8c06),'configName':requireResponseString(_0xa1886d[_0x4f2e13(0x1dd)],_0x4f2e13(0x1dd),_0x3b8c06),'channelType':requireResponseString(_0xa1886d[_0x4f2e13(0x1e1)],_0x4f2e13(0x1e1),_0x3b8c06),'description':normalizeNullableString(_0xa1886d[_0x4f2e13(0x1d2)])};}function requireResponseObject(_0x39ae9d,_0x42aca3){const _0x48f848=a39_0x37ec23;if(typeof _0x39ae9d!==_0x48f848(0x1ca)||_0x39ae9d===null||Array[_0x48f848(0x1cc)](_0x39ae9d))throw CliErrors[_0x48f848(0x1e2)](_0x48f848(0x1cd),'Item\x20'+(_0x42aca3+0x1)+_0x48f848(0x1d6));return _0x39ae9d;}function requireResponseString(_0xdd9ab1,_0x5237e0,_0x5b2a23){const _0x679fe2=a39_0x37ec23;if(typeof _0xdd9ab1!=='string'||!_0xdd9ab1[_0x679fe2(0x1db)]())throw CliErrors['apiError'](_0x679fe2(0x1cd),_0x679fe2(0x1c9)+(_0x5b2a23+0x1)+_0x679fe2(0x1dc)+_0x5237e0+'\x22.');return _0xdd9ab1[_0x679fe2(0x1db)]();}function normalizeNullableString(_0x3a6138){const _0x4f852a=a39_0x37ec23;return typeof _0x3a6138==='string'&&_0x3a6138[_0x4f852a(0x1db)]()?_0x3a6138[_0x4f852a(0x1db)]():null;}
|