@lovrabet/lovrabet-cli 2.3.8-beta.7 → 2.3.9-beta.1
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/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.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-sdk-errors.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/runtime-user-id.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
|
-
const a27_0x594597=a27_0xea81;(function(_0x588347,_0x5996c8){const _0x4b5730=a27_0xea81,_0x1cba04=_0x588347();while(!![]){try{const _0x458089=-parseInt(_0x4b5730(0xfe))/0x1*(-parseInt(_0x4b5730(0x123))/0x2)+parseInt(_0x4b5730(0x147))/0x3+parseInt(_0x4b5730(0x155))/0x4+-parseInt(_0x4b5730(0x108))/0x5*(parseInt(_0x4b5730(0xf6))/0x6)+-parseInt(_0x4b5730(0x15f))/0x7*(parseInt(_0x4b5730(0x161))/0x8)+-parseInt(_0x4b5730(0x102))/0x9*(-parseInt(_0x4b5730(0x15b))/0xa)+parseInt(_0x4b5730(0x10c))/0xb*(-parseInt(_0x4b5730(0x10e))/0xc);if(_0x458089===_0x5996c8)break;else _0x1cba04['push'](_0x1cba04['shift']());}catch(_0x3b9831){_0x1cba04['push'](_0x1cba04['shift']());}}}(a27_0x4536,0xa9800));import{dataImportExcel}from'./import-excel.js';import{executeData}from'../../core/sdk-client.js';function a27_0xea81(_0x57ee89,_0x386afe){_0x57ee89=_0x57ee89-0xf4;const _0x45361a=a27_0x4536();let _0xea81fc=_0x45361a[_0x57ee89];return _0xea81fc;}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_0x594597(0x120),'operation':'filter','risk':a27_0x594597(0x12f),'paramsRequired':![],'description':a27_0x594597(0x103),'paramsHint':a27_0x594597(0x14c)+a27_0x594597(0x136),'helpExtra':['\x20\x20WHERE\x20OPERATORS',a27_0x594597(0x122),'\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_0x594597(0x114),a27_0x594597(0x14d),a27_0x594597(0x149),a27_0x594597(0x139),a27_0x594597(0x156),a27_0x594597(0x13a),a27_0x594597(0x13b),a27_0x594597(0x115),'',a27_0x594597(0x13c),a27_0x594597(0x13f),a27_0x594597(0xf4),'',a27_0x594597(0x124),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\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]',a27_0x594597(0x12e),a27_0x594597(0x154),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','',a27_0x594597(0x160),a27_0x594597(0x14e),a27_0x594597(0x10a),a27_0x594597(0x138),a27_0x594597(0x104),a27_0x594597(0x126),a27_0x594597(0x142),'\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x594597(0x162)]('\x0a')},{'command':a27_0x594597(0x116),'operation':'getOne','risk':a27_0x594597(0x12f),'paramsRequired':!![],'description':a27_0x594597(0x100),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x594597(0x148),'operation':'create','risk':a27_0x594597(0x12c),'paramsRequired':!![],'description':a27_0x594597(0x146),'confirmationDescription':a27_0x594597(0x113),'paramsHint':a27_0x594597(0x144)},{'command':a27_0x594597(0x10f),'operation':a27_0x594597(0x10f),'risk':a27_0x594597(0x12c),'paramsRequired':!![],'description':a27_0x594597(0x158),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x594597(0x159),a27_0x594597(0x13e),a27_0x594597(0xfc),a27_0x594597(0x14a),a27_0x594597(0x13d),a27_0x594597(0x14f),a27_0x594597(0x125),a27_0x594597(0x15c),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md',a27_0x594597(0x109)][a27_0x594597(0x162)]('\x0a'),'confirmationDescription':a27_0x594597(0xf7),'paramsHint':a27_0x594597(0x105)},{'command':a27_0x594597(0x11b),'operation':a27_0x594597(0x11b),'risk':a27_0x594597(0x12c),'paramsRequired':!![],'description':a27_0x594597(0x145),'confirmationDescription':a27_0x594597(0x118),'paramsHint':a27_0x594597(0x129)+'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_0x594597(0xfd),'risk':a27_0x594597(0x143),'paramsRequired':!![],'description':a27_0x594597(0x15d),'confirmationDescription':a27_0x594597(0x157),'paramsHint':a27_0x594597(0x14b)},{'command':a27_0x594597(0x11d),'operation':a27_0x594597(0x11d),'risk':a27_0x594597(0x12f),'paramsRequired':![],'description':a27_0x594597(0xf9),'paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+'Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','helpExtra':[a27_0x594597(0x111),'\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_0x594597(0x151),a27_0x594597(0x163),a27_0x594597(0xfa),a27_0x594597(0xff),a27_0x594597(0x12d),a27_0x594597(0xfb),'','\x20\x20PARAMS\x20STRUCTURE','\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]',a27_0x594597(0x107),a27_0x594597(0x15e),a27_0x594597(0x11c),'\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\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\x20AGGREGATE\x20ALIAS\x20BOUNDARY','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a27_0x594597(0x150),a27_0x594597(0x112),'','\x20\x20DATASET\x20BOUNDARY',a27_0x594597(0x137),a27_0x594597(0x106),a27_0x594597(0x119),a27_0x594597(0x117),'',a27_0x594597(0x101),a27_0x594597(0x130),a27_0x594597(0x153),'',a27_0x594597(0x131),a27_0x594597(0xf5),'',a27_0x594597(0x10b)][a27_0x594597(0x162)]('\x0a')}];function a27_0x4536(){const _0x388cab=['\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\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\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','\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}}]}','helpExtra','/api/{appCode}/','\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','high-risk-write','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','Update\x20an\x20existing\x20data\x20record','Create\x20one\x20record\x20in\x20the\x20dataset','3075153bfuvVg','create','\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\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\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\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\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}','build','\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','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','4168452mzDKzQ','\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]}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\x20completed\x20in\x20','20drxkVP','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','293384idypZn','\x20\x20PAGINATION','40yXQCBG','join','\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\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--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','42tcALtq','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','params','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','\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\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}','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','delete','125117vamGLu','\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}','Get\x20a\x20single\x20record\x20by\x20ID','\x20\x20EXAMPLES','4709916ptTvNL','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','286485cQRUWi','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\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\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','13222dSpgnP','command','19308ODbdNa','batchCreate','data\x20','\x20\x20AGGREGATE\x20TYPES','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\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}}','\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}}','getOne','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','length','update','\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]','aggregate','str','paramsHint','filter','now','\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}}','2VArufU','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\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','operation','dryRun','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','batch','risk','write','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','read','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','description','confirmationDescription','code','data','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged','\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}}'];a27_0x4536=function(){return _0x388cab;};return a27_0x4536();}function makeDataCommand(_0x581b29){const _0x2c6c40=a27_0x594597,_0x5c1e72=_0x2c6c40(0x110)+_0x581b29[_0x2c6c40(0x10d)],_0x5e8f76={'service':_0x2c6c40(0x135),'command':_0x581b29[_0x2c6c40(0x10d)],'description':_0x581b29[_0x2c6c40(0x132)],'risk':_0x581b29[_0x2c6c40(0x12b)],..._0x581b29[_0x2c6c40(0x133)]?{'confirmationDescription':_0x581b29[_0x2c6c40(0x133)]}:{},'helpExtra':_0x581b29[_0x2c6c40(0x140)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x581b29[_0x2c6c40(0x11f)]}],'validate':async _0x26b81c=>{const _0x8feca9=_0x2c6c40;_0x581b29['paramsRequired']&&requireAnyOf(_0x26b81c,[_0x8feca9(0xf8)],_0x5c1e72),_0x581b29[_0x8feca9(0x127)]===_0x8feca9(0x10f)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x26b81c['str'](_0x8feca9(0xf8)))),_0x581b29[_0x8feca9(0x127)]===_0x8feca9(0x11b)&&parseUpdateIdsFromParams(parseJsonParams(_0x26b81c[_0x8feca9(0x11e)](_0x8feca9(0xf8)))??{});},async 'execute'(_0x22c497){const _0x3f2f23=_0x2c6c40,_0x2bf9e8=_0x22c497['str'](_0x3f2f23(0x134)),_0xf1ee1e=_0x581b29[_0x3f2f23(0x127)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x22c497[_0x3f2f23(0x11e)](_0x3f2f23(0xf8)))):parseJsonParams(_0x22c497['str'](_0x3f2f23(0xf8)))??{},_0x2bab9d=_0x581b29[_0x3f2f23(0x127)]==='update'?parseUpdateIdsFromParams(_0xf1ee1e):undefined,_0x244051=_0x2bab9d?normalizeUpdateParamsForRuntime(_0xf1ee1e,_0x2bab9d):_0xf1ee1e,_0x574c02=Date['now'](),_0x433d77=await executeData(_0x2bf9e8,_0x581b29['operation'],_0x244051),_0x2dff53=Date[_0x3f2f23(0x121)]()-_0x574c02,_0x1c586e=_0x2bab9d&&_0x2bab9d['length']>0x1?buildBatchUpdateResult(_0x2bab9d,_0x433d77):_0x433d77;return{'ok':!![],'data':{'result':_0x1c586e,'elapsed':_0x2dff53},'message':_0x3f2f23(0x110)+_0x581b29[_0x3f2f23(0x10d)]+_0x3f2f23(0x15a)+_0x2dff53+'ms'};}};return _0x581b29[_0x2c6c40(0x12b)]!==_0x2c6c40(0x12f)&&(_0x5e8f76[_0x2c6c40(0x128)]=async _0x3eb5bb=>{const _0xfc7144=_0x2c6c40,_0x5ce503=_0x3eb5bb[_0xfc7144(0x11e)](_0xfc7144(0x134)),_0x53c6f5=_0x581b29[_0xfc7144(0x127)]===_0xfc7144(0x10f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x3eb5bb['str']('params'))):parseJsonParams(_0x3eb5bb[_0xfc7144(0x11e)](_0xfc7144(0xf8)))??{};let _0xc60b8b=_0x53c6f5;if(_0x581b29[_0xfc7144(0x127)]==='update'){const _0x3a9ab5=parseUpdateIdsFromParams(_0x53c6f5);_0xc60b8b=normalizeUpdateParamsForRuntime(_0x53c6f5,_0x3a9ab5);}return dryRun('POST',_0xfc7144(0x141)+_0x5ce503+'/'+_0x581b29[_0xfc7144(0x127)])['body'](_0xc60b8b)[_0xfc7144(0x132)]('Preview:\x20data\x20'+_0x581b29[_0xfc7144(0x10d)]+'\x20on\x20dataset\x20'+_0x5ce503)[_0xfc7144(0x152)]();}),_0x5e8f76;}export const dataDefinitions=[...specs['map'](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0x268945,_0x1dae85){const _0x27b10d=a27_0x594597;return{'operation':_0x27b10d(0x11b),'mode':_0x27b10d(0x12a),'ids':_0x268945,'total':_0x268945[_0x27b10d(0x11a)],'result':_0x1dae85};}
|
|
1
|
+
const a27_0x45366a=a27_0x4d9c;(function(_0x286560,_0x5a5fd3){const _0x1be367=a27_0x4d9c,_0x32e754=_0x286560();while(!![]){try{const _0x43a230=parseInt(_0x1be367(0x10e))/0x1*(-parseInt(_0x1be367(0x142))/0x2)+-parseInt(_0x1be367(0x127))/0x3*(-parseInt(_0x1be367(0x10d))/0x4)+parseInt(_0x1be367(0x15c))/0x5+-parseInt(_0x1be367(0x10c))/0x6*(-parseInt(_0x1be367(0x102))/0x7)+-parseInt(_0x1be367(0x14d))/0x8*(parseInt(_0x1be367(0x148))/0x9)+parseInt(_0x1be367(0x108))/0xa+-parseInt(_0x1be367(0x117))/0xb*(parseInt(_0x1be367(0x12a))/0xc);if(_0x43a230===_0x5a5fd3)break;else _0x32e754['push'](_0x32e754['shift']());}catch(_0x29e8f4){_0x32e754['push'](_0x32e754['shift']());}}}(a27_0x14b0,0xa99d1));function a27_0x4d9c(_0x1c1e93,_0x446930){_0x1c1e93=_0x1c1e93-0x102;const _0x14b0f6=a27_0x14b0();let _0x4d9cde=_0x14b0f6[_0x1c1e93];return _0x4d9cde;}import{dataImportExcel}from'./import-excel.js';function a27_0x14b0(){const _0x504d06=['\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\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20PAGINATION','11jthyxu','length','\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\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','code','\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\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return\x20alongside\x20aggregates,\x20e.g.\x20[\x22status\x22,\x22region\x22]','params','high-risk-write','update','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','now','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','\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--params\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','3VkEhdC','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\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}]','8617764wJqPAe','risk','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','\x20\x20WHERE\x20OPERATORS','\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}}]}','batchCreate','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','\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}}','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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}','command','\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\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','/api/{appCode}/','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20LOGICAL\x20COMBINATORS','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','build','data\x20','filter','16SjNoSN','Get\x20a\x20single\x20record\x20by\x20ID','paramsHint','\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','Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','confirmationDescription','10599597kNFEtB','\x20completed\x20in\x20','str','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','\x20\x20\x20\x20#\x20Sum\x20amount\x20grouped\x20by\x20status','8JDnMvP','\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\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','\x20\x20\x20\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.','Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','create','body','\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}}','paramsRequired','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','\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}}]}','delete','map','6547985TfXmmz','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','join','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','data','\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}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','getOne','JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20','write','\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}','dryRun','aggregate','operation','description','Preview:\x20data\x20','\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}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','10787pCsHcB','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','read','7384830nWwjRJ','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','\x20\x20AGGREGATE\x20TYPES','\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}}','4962WFcqpJ','2301032qjUrbn','163391xxsRZt','\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\x20EXAMPLES','batch','\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged'];a27_0x14b0=function(){return _0x504d06;};return a27_0x14b0();}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_0x45366a(0x141),'operation':'filter','risk':a27_0x45366a(0x107),'paramsRequired':![],'description':a27_0x45366a(0x135),'paramsHint':a27_0x45366a(0x103)+'Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a27_0x45366a(0x12d),a27_0x45366a(0x125),'\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}}','\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_0x45366a(0x10f),a27_0x45366a(0x163),a27_0x45366a(0x10b),a27_0x45366a(0x113),a27_0x45366a(0x155),'\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_0x45366a(0x132),'',a27_0x45366a(0x13d),a27_0x45366a(0x159),a27_0x45366a(0x12e),'',a27_0x45366a(0x166),a27_0x45366a(0x150),a27_0x45366a(0x11d),a27_0x45366a(0x129),a27_0x45366a(0x15d),a27_0x45366a(0x131),'',a27_0x45366a(0x116),a27_0x45366a(0x13e),'\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.',a27_0x45366a(0x112),a27_0x45366a(0x11a),a27_0x45366a(0x119),a27_0x45366a(0x11c),a27_0x45366a(0x151)]['join']('\x0a')},{'command':a27_0x45366a(0x167),'operation':a27_0x45366a(0x167),'risk':a27_0x45366a(0x107),'paramsRequired':!![],'description':a27_0x45366a(0x143),'paramsHint':a27_0x45366a(0x15e)},{'command':a27_0x45366a(0x153),'operation':a27_0x45366a(0x153),'risk':a27_0x45366a(0x169),'paramsRequired':!![],'description':'Create\x20one\x20record\x20in\x20the\x20dataset','confirmationDescription':a27_0x45366a(0x157),'paramsHint':a27_0x45366a(0x128)},{'command':a27_0x45366a(0x12f),'operation':a27_0x45366a(0x12f),'risk':a27_0x45366a(0x169),'paramsRequired':!![],'description':a27_0x45366a(0x152),'helpExtra':['\x20\x20EXCEL\x20ROUTES',a27_0x45366a(0x105),'\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,',a27_0x45366a(0x104),a27_0x45366a(0x14b),a27_0x45366a(0x158),a27_0x45366a(0x139),a27_0x45366a(0x114),a27_0x45366a(0x15f),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md',a27_0x45366a(0x130)][a27_0x45366a(0x160)]('\x0a'),'confirmationDescription':a27_0x45366a(0x13c),'paramsHint':a27_0x45366a(0x109)},{'command':'update','operation':a27_0x45366a(0x121),'risk':'write','paramsRequired':!![],'description':'Update\x20an\x20existing\x20data\x20record','confirmationDescription':a27_0x45366a(0x165),'paramsHint':a27_0x45366a(0x124)+a27_0x45366a(0x161)},{'command':'delete','operation':a27_0x45366a(0x15a),'risk':a27_0x45366a(0x120),'paramsRequired':!![],'description':'Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','confirmationDescription':a27_0x45366a(0x164),'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'},{'command':a27_0x45366a(0x16c),'operation':a27_0x45366a(0x16c),'risk':'read','paramsRequired':![],'description':a27_0x45366a(0x146),'paramsHint':a27_0x45366a(0x168)+a27_0x45366a(0x171),'helpExtra':[a27_0x45366a(0x10a),a27_0x45366a(0x136),'\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}','\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}',a27_0x45366a(0x14f),'\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_0x45366a(0x16a),a27_0x45366a(0x170),'','\x20\x20PARAMS\x20STRUCTURE',a27_0x45366a(0x11e),a27_0x45366a(0x133),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)',a27_0x45366a(0x14e),'\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}}',a27_0x45366a(0x138),'',a27_0x45366a(0x13b),'\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only',a27_0x45366a(0x12c),a27_0x45366a(0x106),'','\x20\x20DATASET\x20BOUNDARY',a27_0x45366a(0x122),'\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL',a27_0x45366a(0x115),'\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a27_0x45366a(0x110),a27_0x45366a(0x14c),a27_0x45366a(0x126),'',a27_0x45366a(0x134),a27_0x45366a(0x145),'','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.'][a27_0x45366a(0x160)]('\x0a')}];function makeDataCommand(_0x49d274){const _0xee3d8b=a27_0x45366a,_0x4d7881=_0xee3d8b(0x140)+_0x49d274[_0xee3d8b(0x137)],_0xe44029={'service':_0xee3d8b(0x162),'command':_0x49d274[_0xee3d8b(0x137)],'description':_0x49d274[_0xee3d8b(0x16e)],'risk':_0x49d274[_0xee3d8b(0x12b)],..._0x49d274[_0xee3d8b(0x147)]?{'confirmationDescription':_0x49d274['confirmationDescription']}:{},'helpExtra':_0x49d274['helpExtra'],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x49d274[_0xee3d8b(0x144)]}],'validate':async _0x6fb326=>{const _0x4e96ef=_0xee3d8b;_0x49d274[_0x4e96ef(0x156)]&&requireAnyOf(_0x6fb326,[_0x4e96ef(0x11f)],_0x4d7881),_0x49d274[_0x4e96ef(0x16d)]===_0x4e96ef(0x12f)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x6fb326[_0x4e96ef(0x14a)]('params'))),_0x49d274[_0x4e96ef(0x16d)]===_0x4e96ef(0x121)&&parseUpdateIdsFromParams(parseJsonParams(_0x6fb326[_0x4e96ef(0x14a)]('params'))??{});},async 'execute'(_0x28b3e8){const _0x221918=_0xee3d8b,_0x57d473=_0x28b3e8[_0x221918(0x14a)](_0x221918(0x11b)),_0x4dc182=_0x49d274['operation']===_0x221918(0x12f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x28b3e8[_0x221918(0x14a)](_0x221918(0x11f)))):parseJsonParams(_0x28b3e8[_0x221918(0x14a)]('params'))??{},_0x106a02=_0x49d274[_0x221918(0x16d)]===_0x221918(0x121)?parseUpdateIdsFromParams(_0x4dc182):undefined,_0x4b7639=_0x106a02?normalizeUpdateParamsForRuntime(_0x4dc182,_0x106a02):_0x4dc182,_0x3e11f3=Date[_0x221918(0x123)](),_0x519e94=await executeData(_0x57d473,_0x49d274['operation'],_0x4b7639),_0x4b450f=Date[_0x221918(0x123)]()-_0x3e11f3,_0xa12c61=_0x106a02&&_0x106a02['length']>0x1?buildBatchUpdateResult(_0x106a02,_0x519e94):_0x519e94;return{'ok':!![],'data':{'result':_0xa12c61,'elapsed':_0x4b450f},'message':_0x221918(0x140)+_0x49d274[_0x221918(0x137)]+_0x221918(0x149)+_0x4b450f+'ms'};}};return _0x49d274[_0xee3d8b(0x12b)]!==_0xee3d8b(0x107)&&(_0xe44029[_0xee3d8b(0x16b)]=async _0x4f6849=>{const _0x347d97=_0xee3d8b,_0x3d3ca5=_0x4f6849[_0x347d97(0x14a)](_0x347d97(0x11b)),_0x547344=_0x49d274[_0x347d97(0x16d)]===_0x347d97(0x12f)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4f6849['str']('params'))):parseJsonParams(_0x4f6849[_0x347d97(0x14a)](_0x347d97(0x11f)))??{};let _0x1dee71=_0x547344;if(_0x49d274[_0x347d97(0x16d)]==='update'){const _0x3788be=parseUpdateIdsFromParams(_0x547344);_0x1dee71=normalizeUpdateParamsForRuntime(_0x547344,_0x3788be);}return dryRun('POST',_0x347d97(0x13a)+_0x3d3ca5+'/'+_0x49d274[_0x347d97(0x16d)])[_0x347d97(0x154)](_0x1dee71)[_0x347d97(0x16e)](_0x347d97(0x16f)+_0x49d274[_0x347d97(0x137)]+'\x20on\x20dataset\x20'+_0x3d3ca5)[_0x347d97(0x13f)]();}),_0xe44029;}export const dataDefinitions=[...specs[a27_0x45366a(0x15b)](makeDataCommand),dataImportExcel];function buildBatchUpdateResult(_0xb2c7b9,_0x3667fe){const _0x37fbb3=a27_0x45366a;return{'operation':_0x37fbb3(0x121),'mode':_0x37fbb3(0x111),'ids':_0xb2c7b9,'total':_0xb2c7b9[_0x37fbb3(0x118)],'result':_0x3667fe};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x273d80=a28_0x41f0;(function(_0x332386,_0x4bd407){const _0x3dff6f=a28_0x41f0,_0x40a934=_0x332386();while(!![]){try{const _0x238054=-parseInt(_0x3dff6f(0x214))/0x1+parseInt(_0x3dff6f(0x1e7))/0x2*(-parseInt(_0x3dff6f(0x209))/0x3)+parseInt(_0x3dff6f(0x1ff))/0x4*(parseInt(_0x3dff6f(0x207))/0x5)+parseInt(_0x3dff6f(0x205))/0x6+parseInt(_0x3dff6f(0x206))/0x7+-parseInt(_0x3dff6f(0x213))/0x8+-parseInt(_0x3dff6f(0x1dc))/0x9*(parseInt(_0x3dff6f(0x1e9))/0xa);if(_0x238054===_0x4bd407)break;else _0x40a934['push'](_0x40a934['shift']());}catch(_0x1c8727){_0x40a934['push'](_0x40a934['shift']());}}}(a28_0x49b3,0xa4a0f));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function isRecord(_0x1b6963){const _0x541a04=a28_0x41f0;return _0x1b6963!==null&&typeof _0x1b6963==='object'&&!Array[_0x541a04(0x1fe)](_0x1b6963);}function normalizeField(_0x1a6255){const _0x2ad361=a28_0x41f0;if(_0x1a6255[_0x2ad361(0x1fc)])return null;const _0x16fe60=Boolean(_0x1a6255[_0x2ad361(0x20d)]!==undefined||_0x1a6255['doType']!==undefined);let _0x3f87f8={};if(!_0x16fe60&&typeof _0x1a6255[_0x2ad361(0x1de)]===_0x2ad361(0x1e8))try{_0x3f87f8=JSON[_0x2ad361(0x1f8)](_0x1a6255[_0x2ad361(0x1de)]);}catch{}const _0xa7f364=_0x16fe60?_0x1a6255[_0x2ad361(0x200)]:_0x1a6255[_0x2ad361(0x1ea)],_0x4d38f7=_0x16fe60?_0x1a6255['displayName']:_0x1a6255['name'],_0x40c881=_0x16fe60?_0x1a6255['doType']:_0x1a6255[_0x2ad361(0x1dd)]||_0x1a6255['dataType'],_0x2184ef=_0x16fe60?_0x1a6255['pkField']===!![]:_0x3f87f8[_0x2ad361(0x20f)]===!![],_0x5577ff=_0x16fe60?_0x1a6255[_0x2ad361(0x1fa)]===!![]:_0x3f87f8[_0x2ad361(0x1fa)]===!![],_0x8e9714=_0x16fe60?_0x1a6255[_0x2ad361(0x217)]??null:_0x3f87f8[_0x2ad361(0x217)]??null,_0xf39b83={'name':_0xa7f364,'displayName':_0x4d38f7||_0xa7f364,'type':_0x40c881,'dbType':_0x1a6255[_0x2ad361(0x1f7)],'pk':_0x2184ef,'required':_0x5577ff,'description':_0x1a6255[_0x2ad361(0x201)]||undefined};return Array[_0x2ad361(0x1fe)](_0x8e9714)&&_0x8e9714[_0x2ad361(0x1d8)]>0x0&&(_0xf39b83[_0x2ad361(0x217)]=_0x8e9714),_0xf39b83;}function a28_0x41f0(_0x15e2b3,_0x51e4e9){_0x15e2b3=_0x15e2b3-0x1d8;const _0x49b34b=a28_0x49b3();let _0x41f02d=_0x49b34b[_0x15e2b3];return _0x41f02d;}function parseJsonMaybe(_0x2a5173){const _0x53ad0c=a28_0x41f0;if(typeof _0x2a5173!==_0x53ad0c(0x1e8))return _0x2a5173;try{return JSON[_0x53ad0c(0x1f8)](_0x2a5173);}catch{return _0x2a5173;}}function normalizeOperationEntry(_0x43d942,_0x53f858){const _0x5d3b3c=a28_0x41f0;if(!_0x53f858||typeof _0x53f858!=='object')return null;if(!_0x53f858[_0x5d3b3c(0x1f3)]||!_0x53f858[_0x5d3b3c(0x204)])return null;const _0xc4a233={'name':_0x43d942,'method':_0x53f858[_0x5d3b3c(0x1f3)],'path':_0x53f858['path']};if(_0x53f858[_0x5d3b3c(0x1f5)])_0xc4a233[_0x5d3b3c(0x1f5)]=_0x53f858[_0x5d3b3c(0x1f5)];if(_0x53f858['requestBody']!=null)_0xc4a233[_0x5d3b3c(0x215)]=parseJsonMaybe(_0x53f858[_0x5d3b3c(0x215)]);if(_0x53f858[_0x5d3b3c(0x1da)]!=null)_0xc4a233[_0x5d3b3c(0x1da)]=parseJsonMaybe(_0x53f858[_0x5d3b3c(0x1da)]);if(_0x53f858[_0x5d3b3c(0x1eb)]!=null)_0xc4a233[_0x5d3b3c(0x1eb)]=_0x53f858['beforeScriptId'];if(_0x53f858[_0x5d3b3c(0x1e6)]!=null)_0xc4a233[_0x5d3b3c(0x1e6)]=_0x53f858[_0x5d3b3c(0x1e6)];if(Array[_0x5d3b3c(0x1fe)](_0x53f858[_0x5d3b3c(0x1ed)]))_0xc4a233[_0x5d3b3c(0x1ed)]=_0x53f858[_0x5d3b3c(0x1ed)];if(Array[_0x5d3b3c(0x1fe)](_0x53f858[_0x5d3b3c(0x21e)]))_0xc4a233[_0x5d3b3c(0x21e)]=_0x53f858[_0x5d3b3c(0x21e)];return _0xc4a233;}function summarizeDbtable(_0x3c42d0){const _0x10ffb5=a28_0x41f0,_0x1cf789={},_0x1b2f73=[_0x10ffb5(0x202),_0x10ffb5(0x1ee),_0x10ffb5(0x1db),_0x10ffb5(0x203),_0x10ffb5(0x20f),_0x10ffb5(0x1e0),_0x10ffb5(0x20a),'createTimeField',_0x10ffb5(0x1f1),_0x10ffb5(0x1f2),_0x10ffb5(0x1df),_0x10ffb5(0x20e),_0x10ffb5(0x1fb),_0x10ffb5(0x1f4),_0x10ffb5(0x1d9)];for(const _0x2f6eef of _0x1b2f73){if(_0x3c42d0[_0x2f6eef]!==undefined)_0x1cf789[_0x2f6eef]=_0x3c42d0[_0x2f6eef];}return typeof _0x1cf789[_0x10ffb5(0x1e0)]==='string'&&_0x1cf789['allFields'][_0x10ffb5(0x1d8)]>0x0&&(_0x1cf789['allFieldNames']=_0x1cf789['allFields']['split'](',')[_0x10ffb5(0x1e2)](_0xd9712=>_0xd9712[_0x10ffb5(0x216)]())[_0x10ffb5(0x21b)](Boolean)),_0x1cf789;}function normalizeRelatedPages(_0x39bee6){const _0x96ed86=a28_0x41f0;if(!Array['isArray'](_0x39bee6))return[];return _0x39bee6['filter'](_0x56b7a6=>_0x56b7a6&&typeof _0x56b7a6==='object')[_0x96ed86(0x1e2)](_0x308de6=>({'id':_0x308de6['id'],'type':_0x308de6[_0x96ed86(0x1dd)],'code':_0x308de6[_0x96ed86(0x1ea)],'title':_0x308de6[_0x96ed86(0x1f6)],'deleted':_0x308de6[_0x96ed86(0x1fc)]===!![]}));}function normalizeFallbackFieldName(_0x2e330d,_0x3666b6){const _0x5ad316=a28_0x41f0,_0x26c137=_0x2e330d[_0x5ad316(0x216)]();if(!_0x26c137)return null;return{'name':_0x26c137,'displayName':_0x26c137,'type':undefined,'dbType':undefined,'pk':_0x26c137===_0x3666b6,'required':![],'description':undefined};}async function loadListFieldFallback(_0x2e6d1c,_0x4e3801){const _0x237565=a28_0x41f0;if(!_0x2e6d1c||!_0x4e3801)return[];try{const _0x34e2ca=await listDatasets(_0x2e6d1c,{'code':_0x4e3801}),_0x422c2b=_0x34e2ca['find'](_0x2068e9=>_0x2068e9['code']===_0x4e3801)??_0x34e2ca[0x0],_0x2adb28=_0x422c2b?.[_0x237565(0x218)]??{},_0xc35795=typeof _0x2adb28[_0x237565(0x1e0)]==='string'?_0x2adb28[_0x237565(0x1e0)]['split'](','):[];return _0xc35795[_0x237565(0x1e2)](_0x59052f=>normalizeFallbackFieldName(_0x59052f,_0x2adb28[_0x237565(0x20f)]))[_0x237565(0x21b)](_0x24b895=>_0x24b895!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x273d80(0x208),'command':a28_0x273d80(0x21c),'description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':'read','flags':[CODE_FLAG],async 'execute'(_0x2b4fc5){const _0x2eddb4=a28_0x273d80,_0x52ecec=await getDatasetDetail(_0x2b4fc5['str']('code'));if(!isRecord(_0x52ecec))throw CliErrors[_0x2eddb4(0x210)]('Dataset\x20detail\x20must\x20be\x20an\x20object.');const _0xd1169f=Array['isArray'](_0x52ecec[_0x2eddb4(0x1f9)])?_0x52ecec[_0x2eddb4(0x1f9)]:Array['isArray'](_0x52ecec[_0x2eddb4(0x1ef)])?_0x52ecec[_0x2eddb4(0x1ef)]:[];let _0x388b43=_0xd1169f[_0x2eddb4(0x1e2)](_0x2dff4a=>normalizeField(_0x2dff4a))[_0x2eddb4(0x21b)](_0x1ea7b8=>_0x1ea7b8!==null);_0x388b43[_0x2eddb4(0x1d8)]===0x0&&(_0x388b43=await loadListFieldFallback(_0x2b4fc5[_0x2eddb4(0x1f0)],_0x2b4fc5['str'](_0x2eddb4(0x1ea))));const _0x846a35=_0x52ecec['operations']??{},_0x602df9=[];for(const [_0x376f51,_0x247f46]of Object[_0x2eddb4(0x1e4)](_0x846a35)){const _0x196013=normalizeOperationEntry(_0x376f51,_0x247f46);if(_0x196013)_0x602df9[_0x2eddb4(0x1fd)](_0x196013);}const _0x58c417=isRecord(_0x52ecec['dbtableConfig'])?_0x52ecec[_0x2eddb4(0x218)]:{},_0x24e5d6=isRecord(_0x52ecec['dataset'])?_0x52ecec['dataset']:{},_0x343224=_0x58c417[_0x2eddb4(0x202)]!=null?{'id':_0x58c417[_0x2eddb4(0x202)],'name':_0x58c417[_0x2eddb4(0x1ee)]??null}:undefined;let _0x103178;return typeof _0x52ecec[_0x2eddb4(0x1de)]===_0x2eddb4(0x1e8)&&(_0x103178=parseJsonMaybe(_0x52ecec[_0x2eddb4(0x1de)])),{'ok':!![],'data':{'id':_0x52ecec[_0x2eddb4(0x20c)]??_0x52ecec['id'],'name':_0x52ecec['name'],'code':_0x52ecec[_0x2eddb4(0x20b)]||_0x52ecec['code'],'doVersion':_0x52ecec[_0x2eddb4(0x212)],'description':_0x52ecec['description']||_0x24e5d6[_0x2eddb4(0x21d)]||undefined,'source':_0x52ecec[_0x2eddb4(0x1e5)]||_0x24e5d6[_0x2eddb4(0x1e3)],'table':_0x58c417[_0x2eddb4(0x1db)]||_0x24e5d6[_0x2eddb4(0x1db)],'datasetKey':_0x58c417[_0x2eddb4(0x203)],'pk':_0x58c417[_0x2eddb4(0x20f)],'db':_0x343224,'dbtable':summarizeDbtable(_0x58c417),'fields':_0x388b43,'operations':_0x602df9,'indexes':Array[_0x2eddb4(0x1fe)](_0x24e5d6[_0x2eddb4(0x1e1)])?_0x24e5d6['indexes']:[],'relations':_0x52ecec[_0x2eddb4(0x219)]??null,'relatedPages':normalizeRelatedPages(_0x52ecec['relatedPageInfoList']),...Array[_0x2eddb4(0x1fe)](_0x52ecec[_0x2eddb4(0x1ec)])?{'columnCodeListWithDeleted':_0x52ecec[_0x2eddb4(0x1ec)]}:{},'formatRules':Array[_0x2eddb4(0x1fe)](_0x52ecec['formatRules'])?_0x52ecec[_0x2eddb4(0x21a)]:[],'validateRules':Array[_0x2eddb4(0x1fe)](_0x52ecec[_0x2eddb4(0x211)])?_0x52ecec[_0x2eddb4(0x211)]:[],..._0x103178!==undefined?{'extend':_0x103178}:{},'stats':{'fieldCount':_0x388b43[_0x2eddb4(0x1d8)],'operationCount':_0x602df9['length']}}};}};function a28_0x49b3(){const _0x16545c=['dbtableConfig','relations','formatRules','filter','detail','tableComment','responseFields','length','dblinkInfoDTO','responseBody','tableName','3028257QZRRve','type','extend','creatorNameField','allFields','indexes','map','sourceType','entries','source','afterScriptId','2QZGyFK','string','10SucTDI','code','beforeScriptId','columnCodeListWithDeleted','requestFields','dbName','properties','appCode','updateTimeField','creatorIdField','method','labelField','host','title','dbType','parse','fields','required','modifierNameField','deleted','push','isArray','2505044iLJnyp','name','description','dbId','datasetKey','path','2331096nQHGhX','6706042OJwEIk','10jracbu','dataset','3591672wZJRtI','logicField','modelCode','modelId','displayName','modifierIdField','pkField','apiError','validateRules','doVersion','2758536zVCxbA','46211MzXGlJ','requestBody','trim','options'];a28_0x49b3=function(){return _0x16545c;};return a28_0x49b3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a29_0x5979(){const _0x1425b9=['92ruriwO','108312EtTkVB','3569657bEQjFJ','9786dKdMFe','1615790Dqmqdq','4305438hgRsIV','731677JqRaMI','4470392dASAhx','3010RMpNsT'];a29_0x5979=function(){return _0x1425b9;};return a29_0x5979();}function a29_0xbb8e(_0x3b83fe,_0x183056){_0x3b83fe=_0x3b83fe-0x148;const _0x5979f4=a29_0x5979();let _0xbb8e76=_0x5979f4[_0x3b83fe];return _0xbb8e76;}(function(_0xce8029,_0x568a0e){const _0x3390e0=a29_0xbb8e,_0x43cefb=_0xce8029();while(!![]){try{const _0x5b447b=parseInt(_0x3390e0(0x14f))/0x1+-parseInt(_0x3390e0(0x14d))/0x2+parseInt(_0x3390e0(0x14a))/0x3*(-parseInt(_0x3390e0(0x149))/0x4)+-parseInt(_0x3390e0(0x148))/0x5*(-parseInt(_0x3390e0(0x14c))/0x6)+parseInt(_0x3390e0(0x14b))/0x7+-parseInt(_0x3390e0(0x150))/0x8+parseInt(_0x3390e0(0x14e))/0x9;if(_0x5b447b===_0x568a0e)break;else _0x43cefb['push'](_0x43cefb['shift']());}catch(_0xc143e){_0x43cefb['push'](_0x43cefb['shift']());}}}(a29_0x5979,0x7b3d2));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x4cd026=a30_0x2162;(function(_0x2910e7,_0x290e30){const _0x3f8a95=a30_0x2162,_0x208ab7=_0x2910e7();while(!![]){try{const _0x1c263d=parseInt(_0x3f8a95(0xca))/0x1*(-parseInt(_0x3f8a95(0xd4))/0x2)+parseInt(_0x3f8a95(0xc4))/0x3+parseInt(_0x3f8a95(0xcd))/0x4+-parseInt(_0x3f8a95(0xd0))/0x5+-parseInt(_0x3f8a95(0xc8))/0x6+-parseInt(_0x3f8a95(0xc6))/0x7*(-parseInt(_0x3f8a95(0xd3))/0x8)+parseInt(_0x3f8a95(0xc7))/0x9;if(_0x1c263d===_0x290e30)break;else _0x208ab7['push'](_0x208ab7['shift']());}catch(_0x3b161a){_0x208ab7['push'](_0x208ab7['shift']());}}}(a30_0x4456,0x8d7b4));import{listDatasets}from'../../core/api-client.js';function a30_0x2162(_0x13b46b,_0x41ef9e){_0x13b46b=_0x13b46b-0xc4;const _0x44569a=a30_0x4456();let _0x2162ca=_0x44569a[_0x13b46b];return _0x2162ca;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x4cd026(0xdf),'command':a30_0x4cd026(0xcf),'description':'List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','risk':a30_0x4cd026(0xe0),'flags':[{'name':a30_0x4cd026(0xdb),'type':'string','description':a30_0x4cd026(0xd9)},{'name':a30_0x4cd026(0xda),'type':'string','description':a30_0x4cd026(0xd7)},{...CODE_FLAG,'required':![],'description':a30_0x4cd026(0xcb)}],async 'execute'(_0x8ff9b1){const _0x21c85e=a30_0x4cd026,_0x20eac9=_0x8ff9b1['str'](_0x21c85e(0xdb)),_0x40af5b=_0x8ff9b1[_0x21c85e(0xd2)](_0x21c85e(0xcc)),_0x41e070=_0x8ff9b1[_0x21c85e(0xd2)]('table-name'),_0x443b66=await listDatasets(_0x8ff9b1[_0x21c85e(0xd8)],{..._0x20eac9&&{'name':_0x20eac9},..._0x40af5b&&{'code':_0x40af5b},..._0x41e070&&{'tableName':_0x41e070}});return{'ok':!![],'data':{'total':_0x443b66['length'],'datasets':_0x443b66['map'](_0x1696aa=>{const _0x403125=_0x21c85e,_0x22baa7=_0x1696aa[_0x403125(0xdc)]??{};return{'id':_0x1696aa['id'],'code':_0x1696aa[_0x403125(0xcc)],'name':_0x1696aa[_0x403125(0xdb)],'source':_0x1696aa[_0x403125(0xc9)],'description':_0x1696aa[_0x403125(0xd6)],'table':_0x22baa7[_0x403125(0xdd)],'datasetKey':_0x22baa7[_0x403125(0xd1)],'pk':_0x22baa7[_0x403125(0xc5)],'fields':_0x22baa7['allFields']?_0x22baa7[_0x403125(0xce)]['split'](',')[_0x403125(0xd5)](_0x1d5d64=>_0x1d5d64[_0x403125(0xde)]()):[]};})}};}};function a30_0x4456(){const _0x3c6729=['table-name','name','dbtableConfig','tableName','trim','dataset','read','2238894JpOGgz','pkField','642418mwuUim','151263ctogZA','3090780EOEfHZ','source','1cQGmVk','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','code','3825804BnXUXh','allFields','list','4145005xQvDZt','datasetKey','str','48JWjqEB','693122iFkyWD','map','description','Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)','appCode','Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'];a30_0x4456=function(){return _0x3c6729;};return a30_0x4456();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x21fbcd=a31_0x5a13;(function(_0x1f5478,_0x4beb34){const _0x5c7033=a31_0x5a13,_0x5529bf=_0x1f5478();while(!![]){try{const _0x368261=-parseInt(_0x5c7033(0x10c))/0x1*(-parseInt(_0x5c7033(0x10a))/0x2)+-parseInt(_0x5c7033(0x10e))/0x3*(-parseInt(_0x5c7033(0xfe))/0x4)+parseInt(_0x5c7033(0x103))/0x5*(-parseInt(_0x5c7033(0x10d))/0x6)+parseInt(_0x5c7033(0x101))/0x7*(-parseInt(_0x5c7033(0x10b))/0x8)+-parseInt(_0x5c7033(0x106))/0x9+-parseInt(_0x5c7033(0xfb))/0xa+parseInt(_0x5c7033(0x107))/0xb;if(_0x368261===_0x4beb34)break;else _0x5529bf['push'](_0x5529bf['shift']());}catch(_0x180d2d){_0x5529bf['push'](_0x5529bf['shift']());}}}(a31_0x2a3f,0x40d16));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a31_0x5a13(_0x5d6c0a,_0x4f947d){_0x5d6c0a=_0x5d6c0a-0xfb;const _0x2a3f85=a31_0x2a3f();let _0x5a1308=_0x2a3f85[_0x5d6c0a];return _0x5a1308;}const DEFAULT_MARKDOWN=a31_0x21fbcd(0x109);function a31_0x2a3f(){const _0x2c404e=['102zUsrnY','1019163ywZwEC','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','339820zBUUBW','code','read','4MBRzoD','dataset','trim','2928212xwynWM','appCode','143060QnCdqM','string','str','3891177EBxoFm','13853950leWzZI','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','37378AMtvfj','8NCyupf','2bmrdJT'];a31_0x2a3f=function(){return _0x2c404e;};return a31_0x2a3f();}export function formatDatasetSdkMarkdown(_0xe02f72){const _0x48e215=a31_0x21fbcd,_0x3f6198=typeof _0xe02f72===_0x48e215(0x104)?_0xe02f72[_0x48e215(0x100)]():'';return _0x3f6198||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':a31_0x21fbcd(0xff),'command':'sdk-doc','description':a31_0x21fbcd(0x108),'risk':a31_0x21fbcd(0xfd),'flags':[{...CODE_FLAG,'description':a31_0x21fbcd(0x10f)}],async 'execute'(_0x641251){const _0x39e8db=a31_0x21fbcd,_0xda8220=_0x641251[_0x39e8db(0x105)](_0x39e8db(0xfc)),_0x1ff851=await getDatasetSdkUsageDoc(_0xda8220,_0x641251[_0x39e8db(0x102)]);return{'ok':!![],'data':{'code':_0xda8220,'appCode':_0x641251['appCode'],'markdown':formatDatasetSdkMarkdown(_0x1ff851)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x29f9c3=a32_0x32a7;(function(_0x20829f,_0x33d3f2){const _0x449c81=a32_0x32a7,_0x18a563=_0x20829f();while(!![]){try{const _0x1017a7=parseInt(_0x449c81(0x197))/0x1*(parseInt(_0x449c81(0x1ae))/0x2)+parseInt(_0x449c81(0x1c6))/0x3+-parseInt(_0x449c81(0x19a))/0x4*(parseInt(_0x449c81(0x17b))/0x5)+-parseInt(_0x449c81(0x1ec))/0x6*(-parseInt(_0x449c81(0x1b9))/0x7)+-parseInt(_0x449c81(0x1de))/0x8+parseInt(_0x449c81(0x1ad))/0x9*(parseInt(_0x449c81(0x1f0))/0xa)+-parseInt(_0x449c81(0x1a6))/0xb*(-parseInt(_0x449c81(0x193))/0xc);if(_0x1017a7===_0x33d3f2)break;else _0x18a563['push'](_0x18a563['shift']());}catch(_0x338303){_0x18a563['push'](_0x18a563['shift']());}}}(a32_0x18bf,0x329c4));function a32_0x32a7(_0x4e77d8,_0x442929){_0x4e77d8=_0x4e77d8-0x17a;const _0x18bfda=a32_0x18bf();let _0x32a721=_0x18bfda[_0x4e77d8];return _0x32a721;}import a32_0x996257 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_0x18bf(){const _0x1e6d68=['4oCawvk','format','red','currentApp','\x20\x20kbServiceDomain:\x20','\x20config\x20delete\x20routing','\x20+\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','serviceCount','\x20\x20Routing\x20Configuration','check','1359545MvIaCk','globalConfig','\x20\x20Installed\x20Path:\x20\x20','\x20\x20Legacy\x20inherit:\x20\x20\x20','missing','\x20\x20runtimeDomain:\x20\x20\x20','\x20config\x20delete\x20inherit\x20--global','9gWiWPo','3606UdjGZi','hasOwnProperty','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','✗\x20Invalid\x20JSON','\x20doctor','join','\x20\x20Service\x20Tree','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','yellow','gray','63560jyKCuG','\x20\x20Package\x20Version:\x20','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20region','\x20\x20API\x20Endpoints','\x20\x20Country/Region\x20Configuration','services','filter','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20current','\x20\x20─','118506hueOWj','locale','\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20init','inherit','⚠\x20Empty','appCode','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','projectConfig','reason','state','ignored\x20in\x20','repeat','raw','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','(unnamed)','prototype','length','verbose','green','\x20config','1709784RghIhN','path','padEnd','(removed\x20—\x20cookie\x20auth\x20disabled)','current','\x20\x20Repair\x20project:\x20\x20','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','(set,\x20length=','\x20config\x20delete\x20inherit','\x20\x20Repair\x20global:\x20\x20\x20','accessKey','\x20\x20Merged\x20Config','bold','168hwIhNR','call','includes','(missing)','3073240HePccb','status','\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid','\x20\x20skillDomain:\x20\x20\x20\x20\x20','serviceCode','region','\x20\x20Built-in\x20Skill','doctor','\x20\x20Config\x20JSON','\x20\x20Repair\x20global:\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20auth\x20(effective):\x20','\x20\x20Skill\x20Version:\x20\x20\x20','2050075gztdlI','not\x20configured','packageVersion','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','project','\x20\x20Auth','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','Project','riskLevel','repairCommand','\x20Imported\x20from:\x20','routing','registryPath','name','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','global','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','platform','log','\x20config\x20delete\x20routing\x20--global','12aqSDyd','skillVersion','commandCount','ClientAk','59RZMUYF','(default)','\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'];a32_0x18bf=function(){return _0x1e6d68;};return a32_0x18bf();}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';async function execute(_0x2e0e7e){const _0x34dbf6=a32_0x32a7,_0xaf3f69=getCliVersion(),_0x238766=buildConfigFromFlags({});let _0x56bda1,_0x28a847;try{_0x56bda1=normalizeLovrabetRegion(_0x238766[_0x34dbf6(0x1d5)][_0x34dbf6(0x1f6)]);}catch(_0x2c6747){_0x28a847=_0x2c6747 instanceof Error?_0x2c6747:new Error(String(_0x2c6747));}let _0xbe7d5;if(!_0x28a847)try{await initGlobalEnvironment(_0x238766);}catch(_0x27392a){_0xbe7d5=_0x27392a instanceof Error?_0x27392a:new Error(String(_0x27392a));}console[_0x34dbf6(0x191)](),console['log'](a32_0x996257[_0x34dbf6(0x1eb)](CLI_BIN_NAME+_0x34dbf6(0x1b3))),console[_0x34dbf6(0x191)](a32_0x996257['gray']('─'[_0x34dbf6(0x1d4)](0x32))),console[_0x34dbf6(0x191)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0xaf3f69),console[_0x34dbf6(0x191)](_0x34dbf6(0x1d6)+process['version']),console[_0x34dbf6(0x191)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x34dbf6(0x190)]+'\x20'+process['arch']);const _0x3e7daa=inspectBuiltinSkill();console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1f7))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1b0)+(_0x3e7daa[_0x34dbf6(0x1d2)]==='current'?a32_0x996257[_0x34dbf6(0x1dc)](_0x34dbf6(0x1c4)):a32_0x996257['red']('✗\x20'+_0x3e7daa[_0x34dbf6(0x1d2)]))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1ba)+_0x3e7daa[_0x34dbf6(0x17d)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x17a)+(_0x3e7daa[_0x34dbf6(0x194)]||a32_0x996257[_0x34dbf6(0x1b8)]('(missing)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1a8)+(_0x3e7daa['installedPath']||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x18c))));_0x3e7daa[_0x34dbf6(0x1d2)]!==_0x34dbf6(0x1e2)&&console['log'](_0x34dbf6(0x1e4)+_0x3e7daa[_0x34dbf6(0x185)]);_0x3e7daa[_0x34dbf6(0x1d1)]&&console[_0x34dbf6(0x191)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e7daa[_0x34dbf6(0x1d1)]);console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257['bold'](_0x34dbf6(0x1bc))),console['log'](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e)));const _0x3348a9=getGlobalConfigPath(),_0x30a47d=getProjectConfigPath();console[_0x34dbf6(0x191)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3348a9||a32_0x996257[_0x34dbf6(0x1b8)]('(not\x20found)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x181)+(_0x30a47d||a32_0x996257['gray']('(not\x20found)'))),console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1f9))),console['log'](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e)));const _0x21c361=(_0x14dfe7,_0x356257)=>{const _0x3e39c5=_0x34dbf6;if(!_0x356257){console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x1b8)](_0x3e39c5(0x1e5)));return;}const _0x1d1dc9=inspectCliConfigJsonFile(_0x356257);if(_0x1d1dc9['status']==='ok')console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x1dc)](_0x3e39c5(0x1c9)));else{if(_0x1d1dc9[_0x3e39c5(0x1f1)]===_0x3e39c5(0x18f))console['log']('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x1b7)](_0x3e39c5(0x18a)));else _0x1d1dc9[_0x3e39c5(0x1f1)]===_0x3e39c5(0x1aa)?console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257['gray'](_0x3e39c5(0x1ef))):(console[_0x3e39c5(0x191)]('\x20\x20'+_0x14dfe7[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257[_0x3e39c5(0x19c)](_0x3e39c5(0x1b2))),console[_0x3e39c5(0x191)]('\x20\x20'+''[_0x3e39c5(0x1e0)](0x11)+'\x20'+a32_0x996257['red'](_0x1d1dc9[_0x3e39c5(0x1b1)])));}};_0x21c361('Global',_0x3348a9),_0x21c361(_0x34dbf6(0x183),_0x30a47d);const _0x593634=loadRawConfigLayers(),_0xb36061=[Object['prototype'][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1a7)],_0x34dbf6(0x1cc))?'global':null,Object['prototype'][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1d0)],_0x34dbf6(0x1cc))?_0x34dbf6(0x17f):null][_0x34dbf6(0x1c2)](Boolean);_0xb36061[_0x34dbf6(0x1da)]>0x0&&(console[_0x34dbf6(0x191)](_0x34dbf6(0x1a9)+a32_0x996257[_0x34dbf6(0x1b7)](_0x34dbf6(0x1d3)+_0xb36061[_0x34dbf6(0x1b4)](_0x34dbf6(0x1a0))+_0x34dbf6(0x1dd))),_0xb36061[_0x34dbf6(0x1ee)](_0x34dbf6(0x17f))&&console[_0x34dbf6(0x191)]('\x20\x20Repair\x20project:\x20\x20\x20'+CLI_BIN_NAME+_0x34dbf6(0x1e7)),_0xb36061['includes'](_0x34dbf6(0x18d))&&console['log'](_0x34dbf6(0x1fa)+CLI_BIN_NAME+_0x34dbf6(0x1ac)));_0xbe7d5&&(console[_0x34dbf6(0x191)](),console['log'](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1a4))),console[_0x34dbf6(0x191)](a32_0x996257['gray'](_0x34dbf6(0x1c5)['repeat'](0x1e))),console[_0x34dbf6(0x191)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x996257[_0x34dbf6(0x19c)]('✗\x20Invalid')),console[_0x34dbf6(0x191)](_0x34dbf6(0x18b)+_0xbe7d5['message']),Object[_0x34dbf6(0x1d9)][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1d0)],_0x34dbf6(0x187))&&console[_0x34dbf6(0x191)](_0x34dbf6(0x1e3)+CLI_BIN_NAME+_0x34dbf6(0x19f)),Object[_0x34dbf6(0x1d9)][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1a7)],_0x34dbf6(0x187))&&console['log'](_0x34dbf6(0x1e8)+CLI_BIN_NAME+_0x34dbf6(0x192)));_0x28a847&&(console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1c0))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)['repeat'](0x1e))),console['log'](_0x34dbf6(0x1c3)+a32_0x996257[_0x34dbf6(0x19c)](_0x34dbf6(0x1f3))),console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x28a847['message']),Object['prototype'][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1d0)],_0x34dbf6(0x1f6))&&console[_0x34dbf6(0x191)]('\x20\x20Repair\x20project:\x20\x20'+CLI_BIN_NAME+_0x34dbf6(0x1be)),Object[_0x34dbf6(0x1d9)][_0x34dbf6(0x1af)][_0x34dbf6(0x1ed)](_0x593634[_0x34dbf6(0x1a7)],_0x34dbf6(0x1f6))&&console[_0x34dbf6(0x191)]('\x20\x20Repair\x20global:\x20\x20\x20'+CLI_BIN_NAME+_0x34dbf6(0x1cb)));console['log'](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1ea))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)]('\x20\x20─'[_0x34dbf6(0x1d4)](0x1e))),console['log'](_0x34dbf6(0x1ca)+(_0x238766[_0x34dbf6(0x1ce)]||a32_0x996257[_0x34dbf6(0x19c)]('(not\x20set)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1c8)+(_0x56bda1??a32_0x996257['red']('(invalid)'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1b6)+_0x238766[_0x34dbf6(0x1c7)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x238766['defaultApp']||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x182)))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1bd)+(_0x238766[_0x34dbf6(0x19d)]||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x182)))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1fd)+(_0x238766[_0x34dbf6(0x19b)]||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1d7)+DEFAULT_CONFIG_VALUES[_0x34dbf6(0x19b)]+')'))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1a1)+(_0x238766[_0x34dbf6(0x1a2)]??a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x198)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x238766[_0x34dbf6(0x184)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x18e)+_0x238766[_0x34dbf6(0x1db)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x1fe)+AUTH_MODE[_0x34dbf6(0x196)]),console[_0x34dbf6(0x191)]('\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20'+(_0x238766['accessKey']?a32_0x996257[_0x34dbf6(0x1dc)](_0x34dbf6(0x1e6)+_0x238766[_0x34dbf6(0x1e9)]['length']+')'):a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x182)))),console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1bf))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)]('\x20\x20─'['repeat'](0x1e)));_0xbe7d5||_0x28a847?console[_0x34dbf6(0x191)](_0x34dbf6(0x1c3)+a32_0x996257[_0x34dbf6(0x19c)](_0x34dbf6(0x17e))):(console[_0x34dbf6(0x191)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log'](_0x34dbf6(0x1cf)+getUserDomain()),console[_0x34dbf6(0x191)](_0x34dbf6(0x1ab)+getRuntimeDomain()),console[_0x34dbf6(0x191)](_0x34dbf6(0x1f4)+getSkillDomain()),console[_0x34dbf6(0x191)](_0x34dbf6(0x19e)+(getKbServiceDomain()??_0x34dbf6(0x17c))));console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x1b5))),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1c5)[_0x34dbf6(0x1d4)](0x1e)));const _0x172bf8=inspectServiceRegistry();console[_0x34dbf6(0x191)]('\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x172bf8[_0x34dbf6(0x188)]),console[_0x34dbf6(0x191)](_0x34dbf6(0x1c3)+formatServiceRegistryStatus(_0x172bf8)),console[_0x34dbf6(0x191)](_0x34dbf6(0x199)+_0x172bf8[_0x34dbf6(0x1a3)]),console['log'](_0x34dbf6(0x1f2)+_0x172bf8[_0x34dbf6(0x195)]);for(const _0x13eb30 of _0x172bf8[_0x34dbf6(0x1c1)]){console['log']('\x20\x20'+(_0x13eb30[_0x34dbf6(0x1f5)]+':')[_0x34dbf6(0x1e0)](0x11)+'\x20'+(_0x13eb30[_0x34dbf6(0x189)]||a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1d8)))+'\x20('+_0x13eb30['commandCount']+'\x20commands)'),console['log']('\x20\x20'+''[_0x34dbf6(0x1e0)](0x11)+_0x34dbf6(0x186)+_0x13eb30['source'][_0x34dbf6(0x1df)]);}return console[_0x34dbf6(0x191)](),console[_0x34dbf6(0x191)](a32_0x996257[_0x34dbf6(0x1eb)](_0x34dbf6(0x180))),console[_0x34dbf6(0x191)](a32_0x996257['gray'](_0x34dbf6(0x1c5)['repeat'](0x1e))),console[_0x34dbf6(0x191)](_0x34dbf6(0x1bb)+a32_0x996257[_0x34dbf6(0x1dc)](AUTH_MODE[_0x34dbf6(0x196)]+'\x20(accessKey)')),console['log'](_0x34dbf6(0x1fb)+a32_0x996257[_0x34dbf6(0x1b8)](_0x34dbf6(0x1e1))),console['log'](),{'ok':!![]};}function formatServiceRegistryStatus(_0x54ecdc){const _0x16b560=a32_0x32a7;if(_0x54ecdc['status']==='ok')return a32_0x996257['green']('✓\x20Loaded');if(_0x54ecdc[_0x16b560(0x1f1)]==='missing')return a32_0x996257[_0x16b560(0x1b8)](_0x16b560(0x18c));if(_0x54ecdc[_0x16b560(0x1f1)]==='empty')return a32_0x996257['yellow'](_0x16b560(0x1cd));return a32_0x996257[_0x16b560(0x19c)](_0x16b560(0x1f3)+(_0x54ecdc[_0x16b560(0x1b1)]?':\x20'+_0x54ecdc[_0x16b560(0x1b1)]:''));}export const doctorDefinition={'service':a32_0x29f9c3(0x1f8),'command':a32_0x29f9c3(0x1a5),'description':a32_0x29f9c3(0x1fc),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a32_0x493fe9=a32_0x2817;(function(_0x557e2e,_0x1e4a3b){const _0x5642ff=a32_0x2817,_0x5d460b=_0x557e2e();while(!![]){try{const _0x31c212=-parseInt(_0x5642ff(0x141))/0x1*(-parseInt(_0x5642ff(0x172))/0x2)+parseInt(_0x5642ff(0x143))/0x3*(parseInt(_0x5642ff(0x174))/0x4)+parseInt(_0x5642ff(0x16b))/0x5*(-parseInt(_0x5642ff(0x193))/0x6)+-parseInt(_0x5642ff(0x13a))/0x7+-parseInt(_0x5642ff(0x170))/0x8+parseInt(_0x5642ff(0x19c))/0x9+parseInt(_0x5642ff(0x147))/0xa*(parseInt(_0x5642ff(0x13c))/0xb);if(_0x31c212===_0x1e4a3b)break;else _0x5d460b['push'](_0x5d460b['shift']());}catch(_0x3a98a4){_0x5d460b['push'](_0x5d460b['shift']());}}}(a32_0xa609,0x1dc71));import a32_0x49fd5a from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a32_0xa609(){const _0x23dea1=['\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','routing','empty','reason','⚠\x20Empty\x20(treated\x20as\x20{})','(invalid)','commandCount','inherit','red','repairCommand','\x20\x20Repair\x20project:\x20\x20\x20','current','yellow','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','hasOwnProperty','log','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20config\x20delete\x20region','not\x20configured','projectConfig','\x20config','raw','\x20\x20─','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','serviceCode','\x20\x20Built-in\x20Skill','platform','6sVXWhF','\x20\x20Routing\x20Configuration','state','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','ClientAk','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1808973huwXlt','\x20config\x20delete\x20inherit','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Repair\x20global:\x20\x20\x20','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20Installed\x20Path:\x20\x20','✓\x20Loaded','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','call','(set,\x20length=','✗\x20Invalid','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','region','\x20\x20auth\x20(effective):\x20','\x20\x20Merged\x20Config','(not\x20set)','\x20config\x20delete\x20routing\x20--global','services','missing','499541hsCYeQ','source','8899XfIDhr','prototype','(unnamed)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','read','5tGFjJx','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','128187rggntl','serviceCount','\x20Imported\x20from:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','1130BoCZzA','\x20config\x20delete\x20routing','accessKey','name','⚠\x20Empty','\x20\x20Repair\x20project:\x20\x20','locale','\x20\x20Country/Region\x20Configuration','✗\x20Invalid\x20JSON','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','check','\x20config\x20init','message','\x20\x20runtimeDomain:\x20\x20\x20','join','green','includes','global','\x20\x20Auth','format','\x20(accessKey)','appCode','\x20\x20Session\x20check:\x20\x20\x20','(none)','pageSize','repeat','Project','\x20commands)','\x20\x20skillDomain:\x20\x20\x20\x20\x20','(missing)','skillVersion','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','globalConfig','gray','\x20\x20Package\x20Version:\x20','637375BYYGhc','(not\x20found)','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','registryPath','\x20\x20Config\x20Files','1767472JKaKfB','(default:\x20','48456eqpUmO','project','12amrfcK','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a32_0xa609=function(){return _0x23dea1;};return a32_0xa609();}import{getCliVersion}from'../utils/version.js';import{getApiDomain,getKbServiceDomain,getRuntimeDomain,getSkillDomain,getUserDomain}from'../constant/domain.js';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_0x2817(_0x4b05dd,_0x58d617){_0x4b05dd=_0x4b05dd-0x133;const _0xa60961=a32_0xa609();let _0x281782=_0xa60961[_0x4b05dd];return _0x281782;}async function execute(_0x3e76ad){const _0xd75eb3=a32_0x2817,_0x30d78a=getCliVersion(),_0xc3088e=buildConfigFromFlags({});let _0x3a367e,_0xb70a3a;try{_0x3a367e=normalizeLovrabetRegion(_0xc3088e[_0xd75eb3(0x18c)]['region']);}catch(_0x2bd887){_0xb70a3a=_0x2bd887 instanceof Error?_0x2bd887:new Error(String(_0x2bd887));}let _0x5a4916;if(!_0xb70a3a)try{await initGlobalEnvironment(_0xc3088e);}catch(_0x15794d){_0x5a4916=_0x15794d instanceof Error?_0x15794d:new Error(String(_0x15794d));}console[_0xd75eb3(0x185)](),console[_0xd75eb3(0x185)](a32_0x49fd5a['bold'](CLI_BIN_NAME+_0xd75eb3(0x1a2))),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)]('─'[_0xd75eb3(0x160)](0x32))),console[_0xd75eb3(0x185)](_0xd75eb3(0x19f)+_0x30d78a),console[_0xd75eb3(0x185)](_0xd75eb3(0x142)+process['version']),console['log'](_0xd75eb3(0x13f)+process[_0xd75eb3(0x192)]+'\x20'+process[_0xd75eb3(0x1a6)]);const _0x46b2b9=inspectBuiltinSkill();console[_0xd75eb3(0x185)](),console['log'](a32_0x49fd5a[_0xd75eb3(0x187)](_0xd75eb3(0x191))),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x18d)[_0xd75eb3(0x160)](0x1e))),console[_0xd75eb3(0x185)](_0xd75eb3(0x1a1)+(_0x46b2b9[_0xd75eb3(0x195)]==='current'?a32_0x49fd5a[_0xd75eb3(0x156)]('✓\x20current'):a32_0x49fd5a[_0xd75eb3(0x17e)]('✗\x20'+_0x46b2b9[_0xd75eb3(0x195)]))),console['log'](_0xd75eb3(0x16a)+_0x46b2b9['packageVersion']),console[_0xd75eb3(0x185)]('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x46b2b9[_0xd75eb3(0x165)]||a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x164)))),console[_0xd75eb3(0x185)](_0xd75eb3(0x1a3)+(_0x46b2b9['installedPath']||a32_0x49fd5a[_0xd75eb3(0x169)]('(not\x20found)')));_0x46b2b9['state']!==_0xd75eb3(0x181)&&console['log'](_0xd75eb3(0x1ab)+_0x46b2b9[_0xd75eb3(0x17f)]);_0x46b2b9[_0xd75eb3(0x179)]&&console[_0xd75eb3(0x185)](_0xd75eb3(0x18f)+_0x46b2b9['reason']);console[_0xd75eb3(0x185)](),console['log'](a32_0x49fd5a[_0xd75eb3(0x187)](_0xd75eb3(0x16f))),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x18d)[_0xd75eb3(0x160)](0x1e)));const _0x384caf=getGlobalConfigPath(),_0x222fd7=getProjectConfigPath();console[_0xd75eb3(0x185)](_0xd75eb3(0x175)+(_0x384caf||a32_0x49fd5a[_0xd75eb3(0x169)]('(not\x20found)'))),console[_0xd75eb3(0x185)](_0xd75eb3(0x183)+(_0x222fd7||a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x16c)))),console[_0xd75eb3(0x185)](),console['log'](a32_0x49fd5a[_0xd75eb3(0x187)]('\x20\x20Config\x20JSON')),console[_0xd75eb3(0x185)](a32_0x49fd5a['gray']('\x20\x20─'[_0xd75eb3(0x160)](0x1e)));const _0x8e58aa=(_0x1d3057,_0x103be1)=>{const _0x2fda7c=_0xd75eb3;if(!_0x103be1){console[_0x2fda7c(0x185)]('\x20\x20'+_0x1d3057[_0x2fda7c(0x167)](0x11)+'\x20'+a32_0x49fd5a[_0x2fda7c(0x169)]('(no\x20file)'));return;}const _0x4e7ac3=inspectCliConfigJsonFile(_0x103be1);if(_0x4e7ac3['status']==='ok')console['log']('\x20\x20'+_0x1d3057['padEnd'](0x11)+'\x20'+a32_0x49fd5a[_0x2fda7c(0x156)]('✓\x20Valid\x20JSON'));else{if(_0x4e7ac3['status']===_0x2fda7c(0x178))console['log']('\x20\x20'+_0x1d3057[_0x2fda7c(0x167)](0x11)+'\x20'+a32_0x49fd5a[_0x2fda7c(0x182)](_0x2fda7c(0x17a)));else _0x4e7ac3[_0x2fda7c(0x19a)]===_0x2fda7c(0x139)?console[_0x2fda7c(0x185)]('\x20\x20'+_0x1d3057[_0x2fda7c(0x167)](0x11)+'\x20'+a32_0x49fd5a['gray'](_0x2fda7c(0x164))):(console[_0x2fda7c(0x185)]('\x20\x20'+_0x1d3057[_0x2fda7c(0x167)](0x11)+'\x20'+a32_0x49fd5a['red'](_0x2fda7c(0x14f))),console[_0x2fda7c(0x185)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a32_0x49fd5a[_0x2fda7c(0x17e)](_0x4e7ac3[_0x2fda7c(0x153)])));}};_0x8e58aa('Global',_0x384caf),_0x8e58aa(_0xd75eb3(0x161),_0x222fd7);const _0x50e7ae=loadRawConfigLayers(),_0x584abd=[Object[_0xd75eb3(0x13d)][_0xd75eb3(0x184)][_0xd75eb3(0x1a8)](_0x50e7ae['globalConfig'],_0xd75eb3(0x17d))?_0xd75eb3(0x158):null,Object['prototype'][_0xd75eb3(0x184)]['call'](_0x50e7ae[_0xd75eb3(0x18a)],_0xd75eb3(0x17d))?'project':null]['filter'](Boolean);_0x584abd['length']>0x0&&(console['log']('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a32_0x49fd5a['yellow']('ignored\x20in\x20'+_0x584abd[_0xd75eb3(0x155)]('\x20+\x20')+_0xd75eb3(0x18b))),_0x584abd[_0xd75eb3(0x157)](_0xd75eb3(0x173))&&console[_0xd75eb3(0x185)](_0xd75eb3(0x180)+CLI_BIN_NAME+_0xd75eb3(0x19d)),_0x584abd['includes'](_0xd75eb3(0x158))&&console[_0xd75eb3(0x185)]('\x20\x20Repair\x20global:\x20\x20\x20\x20'+CLI_BIN_NAME+'\x20config\x20delete\x20inherit\x20--global'));_0x5a4916&&(console[_0xd75eb3(0x185)](),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x187)](_0xd75eb3(0x194))),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x18d)[_0xd75eb3(0x160)](0x1e))),console[_0xd75eb3(0x185)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a32_0x49fd5a[_0xd75eb3(0x17e)](_0xd75eb3(0x1aa))),console[_0xd75eb3(0x185)](_0xd75eb3(0x18f)+_0x5a4916[_0xd75eb3(0x153)]),Object[_0xd75eb3(0x13d)]['hasOwnProperty'][_0xd75eb3(0x1a8)](_0x50e7ae['projectConfig'],_0xd75eb3(0x177))&&console[_0xd75eb3(0x185)](_0xd75eb3(0x14c)+CLI_BIN_NAME+_0xd75eb3(0x148)),Object['prototype'][_0xd75eb3(0x184)][_0xd75eb3(0x1a8)](_0x50e7ae[_0xd75eb3(0x168)],_0xd75eb3(0x177))&&console[_0xd75eb3(0x185)](_0xd75eb3(0x1a0)+CLI_BIN_NAME+_0xd75eb3(0x137)));_0xb70a3a&&(console[_0xd75eb3(0x185)](),console['log'](a32_0x49fd5a['bold'](_0xd75eb3(0x14e))),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x18d)[_0xd75eb3(0x160)](0x1e))),console['log'](_0xd75eb3(0x1a5)+a32_0x49fd5a[_0xd75eb3(0x17e)](_0xd75eb3(0x1aa))),console[_0xd75eb3(0x185)]('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xb70a3a[_0xd75eb3(0x153)]),Object[_0xd75eb3(0x13d)][_0xd75eb3(0x184)]['call'](_0x50e7ae[_0xd75eb3(0x18a)],_0xd75eb3(0x133))&&console[_0xd75eb3(0x185)](_0xd75eb3(0x14c)+CLI_BIN_NAME+_0xd75eb3(0x188)),Object[_0xd75eb3(0x13d)]['hasOwnProperty'][_0xd75eb3(0x1a8)](_0x50e7ae['globalConfig'],_0xd75eb3(0x133))&&console[_0xd75eb3(0x185)](_0xd75eb3(0x1a0)+CLI_BIN_NAME+_0xd75eb3(0x152)));console[_0xd75eb3(0x185)](),console['log'](a32_0x49fd5a['bold'](_0xd75eb3(0x135))),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x18d)[_0xd75eb3(0x160)](0x1e))),console['log'](_0xd75eb3(0x19b)+(_0xc3088e[_0xd75eb3(0x15c)]||a32_0x49fd5a[_0xd75eb3(0x17e)](_0xd75eb3(0x136)))),console[_0xd75eb3(0x185)](_0xd75eb3(0x176)+(_0x3a367e??a32_0x49fd5a[_0xd75eb3(0x17e)](_0xd75eb3(0x17b)))),console[_0xd75eb3(0x185)]('\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20'+_0xc3088e[_0xd75eb3(0x14d)]),console[_0xd75eb3(0x185)](_0xd75eb3(0x18e)+(_0xc3088e['defaultApp']||a32_0x49fd5a[_0xd75eb3(0x169)]('(none)'))),console[_0xd75eb3(0x185)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0xc3088e['currentApp']||a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x15e)))),console[_0xd75eb3(0x185)](_0xd75eb3(0x198)+(_0xc3088e[_0xd75eb3(0x15a)]||a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x171)+DEFAULT_CONFIG_VALUES[_0xd75eb3(0x15a)]+')'))),console['log'](_0xd75eb3(0x186)+(_0xc3088e[_0xd75eb3(0x15f)]??a32_0x49fd5a[_0xd75eb3(0x169)]('(default)'))),console['log'](_0xd75eb3(0x150)+_0xc3088e['riskLevel']),console[_0xd75eb3(0x185)](_0xd75eb3(0x19e)+_0xc3088e['verbose']),console[_0xd75eb3(0x185)](_0xd75eb3(0x134)+AUTH_MODE[_0xd75eb3(0x197)]),console['log'](_0xd75eb3(0x196)+(_0xc3088e[_0xd75eb3(0x149)]?a32_0x49fd5a['green'](_0xd75eb3(0x1a9)+_0xc3088e[_0xd75eb3(0x149)]['length']+')'):a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x15e)))),console[_0xd75eb3(0x185)](),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x187)]('\x20\x20API\x20Endpoints')),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)]('\x20\x20─'[_0xd75eb3(0x160)](0x1e)));_0x5a4916||_0xb70a3a?console['log'](_0xd75eb3(0x1a5)+a32_0x49fd5a[_0xd75eb3(0x17e)](_0xd75eb3(0x16d))):(console['log'](_0xd75eb3(0x146)+getApiDomain()),console[_0xd75eb3(0x185)](_0xd75eb3(0x1a7)+getUserDomain()),console[_0xd75eb3(0x185)](_0xd75eb3(0x154)+getRuntimeDomain()),console[_0xd75eb3(0x185)](_0xd75eb3(0x163)+getSkillDomain()),console['log']('\x20\x20kbServiceDomain:\x20'+(getKbServiceDomain()??_0xd75eb3(0x189))));console[_0xd75eb3(0x185)](),console[_0xd75eb3(0x185)](a32_0x49fd5a['bold']('\x20\x20Service\x20Tree')),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)]('\x20\x20─'[_0xd75eb3(0x160)](0x1e)));const _0x5d1423=inspectServiceRegistry();console[_0xd75eb3(0x185)](_0xd75eb3(0x199)+_0x5d1423[_0xd75eb3(0x16e)]),console[_0xd75eb3(0x185)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+formatServiceRegistryStatus(_0x5d1423)),console[_0xd75eb3(0x185)]('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d1423[_0xd75eb3(0x144)]),console[_0xd75eb3(0x185)]('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5d1423[_0xd75eb3(0x17c)]);for(const _0x2fcf92 of _0x5d1423[_0xd75eb3(0x138)]){console['log']('\x20\x20'+(_0x2fcf92[_0xd75eb3(0x190)]+':')[_0xd75eb3(0x167)](0x11)+'\x20'+(_0x2fcf92[_0xd75eb3(0x14a)]||a32_0x49fd5a['gray'](_0xd75eb3(0x13e)))+'\x20('+_0x2fcf92[_0xd75eb3(0x17c)]+_0xd75eb3(0x162)),console[_0xd75eb3(0x185)]('\x20\x20'+''[_0xd75eb3(0x167)](0x11)+_0xd75eb3(0x145)+_0x2fcf92[_0xd75eb3(0x13b)]['path']);}return console[_0xd75eb3(0x185)](),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x187)](_0xd75eb3(0x159))),console[_0xd75eb3(0x185)](a32_0x49fd5a[_0xd75eb3(0x169)](_0xd75eb3(0x18d)[_0xd75eb3(0x160)](0x1e))),console[_0xd75eb3(0x185)](_0xd75eb3(0x166)+a32_0x49fd5a[_0xd75eb3(0x156)](AUTH_MODE[_0xd75eb3(0x197)]+_0xd75eb3(0x15b))),console[_0xd75eb3(0x185)](_0xd75eb3(0x15d)+a32_0x49fd5a[_0xd75eb3(0x169)]('(removed\x20—\x20cookie\x20auth\x20disabled)')),console[_0xd75eb3(0x185)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x87132b){const _0x3e587b=a32_0x2817;if(_0x87132b[_0x3e587b(0x19a)]==='ok')return a32_0x49fd5a['green'](_0x3e587b(0x1a4));if(_0x87132b[_0x3e587b(0x19a)]===_0x3e587b(0x139))return a32_0x49fd5a[_0x3e587b(0x169)](_0x3e587b(0x16c));if(_0x87132b[_0x3e587b(0x19a)]===_0x3e587b(0x178))return a32_0x49fd5a[_0x3e587b(0x182)](_0x3e587b(0x14b));return a32_0x49fd5a['red'](_0x3e587b(0x1aa)+(_0x87132b['message']?':\x20'+_0x87132b[_0x3e587b(0x153)]:''));}export const doctorDefinition={'service':'doctor','command':a32_0x493fe9(0x151),'description':'Diagnose\x20CLI\x20configuration\x20and\x20environment','risk':a32_0x493fe9(0x140),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x278547=a33_0x4977;(function(_0x53b651,_0x3d402c){const _0x10853f=a33_0x4977,_0x111af5=_0x53b651();while(!![]){try{const _0x144248=-parseInt(_0x10853f(0xf1))/0x1*(parseInt(_0x10853f(0xee))/0x2)+parseInt(_0x10853f(0xdf))/0x3+parseInt(_0x10853f(0xe2))/0x4+parseInt(_0x10853f(0xe1))/0x5+-parseInt(_0x10853f(0xe6))/0x6+-parseInt(_0x10853f(0xec))/0x7+-parseInt(_0x10853f(0xf0))/0x8*(-parseInt(_0x10853f(0xf5))/0x9);if(_0x144248===_0x3d402c)break;else _0x111af5['push'](_0x111af5['shift']());}catch(_0x1a2585){_0x111af5['push'](_0x111af5['shift']());}}}(a33_0x3b00,0xbc930));import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a33_0x4977(_0x26e7fd,_0x59886b){_0x26e7fd=_0x26e7fd-0xde;const _0x3b00a2=a33_0x3b00();let _0x49773f=_0x3b00a2[_0x26e7fd];return _0x49773f;}import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x278547(0xe0),'type':'string','required':!![],'description':a33_0x278547(0xf9)},FILEPATH_FLAG={'name':a33_0x278547(0xf2),'type':'string','required':!![],'description':'Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a33_0x278547(0xe8),'type':'boolean','description':'Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL'},LONG_TERM_FLAG={'name':a33_0x278547(0xeb),'type':'boolean','description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x4e0794){const _0xb74cf4=a33_0x278547,_0x400501=_0x4e0794[_0xb74cf4(0xf8)]();if(!_0x400501)throw CliErrors['validation'](_0xb74cf4(0xed));return _0x400501;}const fileUpload={'service':'file','command':a33_0x278547(0xfb),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x278547(0xf3),'flags':[FILE_FLAG],async 'dryRun'(_0x558cd3){const _0x48285a=a33_0x278547,_0x1ed6a4=requireRuntimeUploadFile(_0x558cd3[_0x48285a(0xea)](_0x48285a(0xe0)),_0x48285a(0xe3));return dryRun('POST',_0x48285a(0xf4))['body']({'appCode':_0x558cd3[_0x48285a(0xfc)],'multipart':{'file':_0x1ed6a4}})['description'](_0x48285a(0xef)+_0x1ed6a4[_0x48285a(0xf6)]+_0x48285a(0xde)+_0x558cd3[_0x48285a(0xfc)])[_0x48285a(0xe4)]();},async 'execute'(_0x36d361){const _0x7509fd=a33_0x278547,_0x58765d=requireRuntimeUploadFile(_0x36d361[_0x7509fd(0xea)](_0x7509fd(0xe0)),_0x7509fd(0xe3)),_0x429e82=await uploadRuntimeFile(_0x36d361['appCode'],_0x58765d[_0x7509fd(0xf6)]);return{'ok':!![],'data':_0x429e82,'message':_0x429e82['filePath']?_0x7509fd(0xe5)+_0x429e82[_0x7509fd(0xe7)]+_0x7509fd(0xe9):_0x7509fd(0xfa)};}},fileQueryUrl={'service':a33_0x278547(0xe0),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0x278547(0xf3),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4af02a){const _0x5c1041=a33_0x278547,_0x32fd43=requireFilePath(_0x4af02a[_0x5c1041(0xea)](_0x5c1041(0xf2))),_0x2b3c92=await queryRuntimeFileUrl(_0x32fd43,{'download':_0x4af02a[_0x5c1041(0xf7)](_0x5c1041(0xe8)),'longTerm':_0x4af02a[_0x5c1041(0xf7)](_0x5c1041(0xeb))});return{'ok':!![],'data':_0x2b3c92};}};export const fileDefinitions=[fileUpload,fileQueryUrl];function a33_0x3b00(){const _0x356dc9=['long-term','241206ufhgTx','filePath\x20is\x20required.','2158664EJDzdf','Preview:\x20upload\x20','2725784impjlZ','1pmlLvj','filepath','read','/client/uploadFile','9UetFka','path','bool','trim','Path\x20to\x20the\x20local\x20file\x20to\x20upload','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','upload','appCode','\x20to\x20runtime\x20app\x20','4475634KdOapV','file','3779360wrQqiv','320164sxGMwh','File','build','Uploaded\x20file:\x20','4693944QSwsOP','filePath','download','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','str'];a33_0x3b00=function(){return _0x356dc9;};return a33_0x3b00();}
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x5b5020=a34_0x3850;(function(_0x463207,_0x585b59){const _0x5350ac=a34_0x3850,_0x12cda6=_0x463207();while(!![]){try{const _0x23cc2e=-parseInt(_0x5350ac(0x113))/0x1+-parseInt(_0x5350ac(0x110))/0x2*(-parseInt(_0x5350ac(0x112))/0x3)+-parseInt(_0x5350ac(0x11e))/0x4*(-parseInt(_0x5350ac(0x106))/0x5)+-parseInt(_0x5350ac(0x111))/0x6*(-parseInt(_0x5350ac(0x10b))/0x7)+-parseInt(_0x5350ac(0x122))/0x8*(-parseInt(_0x5350ac(0x116))/0x9)+-parseInt(_0x5350ac(0x117))/0xa+-parseInt(_0x5350ac(0x10e))/0xb;if(_0x23cc2e===_0x585b59)break;else _0x12cda6['push'](_0x12cda6['shift']());}catch(_0x1e2946){_0x12cda6['push'](_0x12cda6['shift']());}}}(a34_0x92cd,0x2de2c));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';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_0x5b5020(0x11f),'type':a34_0x5b5020(0x10c),'description':a34_0x5b5020(0x105),'required':!![]},{'name':'appcode','type':a34_0x5b5020(0x10c),'description':'Override\x20imported\x20default\x20appcode'},{'name':a34_0x5b5020(0x11c),'type':a34_0x5b5020(0x10c),'description':a34_0x5b5020(0x118),'enum':[...RUNTIME_ENV_VALUES]},{'name':'global','type':a34_0x5b5020(0x11d),'description':a34_0x5b5020(0x121)+PRODUCT_CONFIG[a34_0x5b5020(0x114)]+a34_0x5b5020(0x129),'default':![]},{'name':a34_0x5b5020(0x124),'type':a34_0x5b5020(0x11d),'description':a34_0x5b5020(0x100),'default':![]}];export async function runAppImport(_0x375afe){const _0x363f2a=a34_0x5b5020,_0x515e68=_0x375afe[_0x363f2a(0x103)]?_0x363f2a(0x103):'project',_0x17dfbe=resolveWriteConfigPath(_0x515e68);await runFromImport(_0x375afe,_0x17dfbe);}async function runFromImport(_0x3ca780,_0x44b5ae){const _0x317886=a34_0x5b5020,_0x1d64a2=resolveFilePath(_0x3ca780['file']);if(!existsSync(_0x1d64a2))throw CliErrors[_0x317886(0x10d)]('Source\x20file\x20not\x20found:\x20'+_0x1d64a2);const _0xf16c76=readSourceFile(_0x1d64a2),_0x1dab30=convertToRuntimeConfig(_0xf16c76);_0x3ca780['appcode']&&(_0x1dab30['appcode']=String(_0x3ca780[_0x317886(0x10a)]));_0x3ca780['env']&&(_0x1dab30[_0x317886(0x11c)]=resolveImportEnv(_0x3ca780));if(!_0x1dab30[_0x317886(0x10a)])throw CliErrors['validation'](_0x317886(0x104),'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`.');await writeImportConfig(_0x44b5ae,_0x1dab30,_0x3ca780),console[_0x317886(0x108)](_0x317886(0x11b)+_0x1d64a2),console[_0x317886(0x108)](_0x317886(0x119)+_0x44b5ae),console[_0x317886(0x108)](_0x317886(0x107)+_0x1dab30[_0x317886(0x10a)]);if(_0x1dab30[_0x317886(0x10f)])console[_0x317886(0x108)](_0x317886(0x126)+_0x1dab30[_0x317886(0x10f)]);}function convertToRuntimeConfig(_0x59467f){const _0x4d8ee7=a34_0x5b5020;if(_0x59467f[_0x4d8ee7(0x11a)]&&typeof _0x59467f[_0x4d8ee7(0x11a)]==='object')throw CliErrors['validation'](_0x4d8ee7(0x123),'Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.');const _0xd43674={};for(const _0x126f56 of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x59467f[_0x126f56]!==undefined&&(_0xd43674[_0x126f56]=_0x59467f[_0x126f56]);}return!_0xd43674[_0x4d8ee7(0x109)]&&(_0xd43674[_0x4d8ee7(0x109)]=DEFAULT_CONFIG_VALUES[_0x4d8ee7(0x109)]),_0xd43674;}function a34_0x92cd(){const _0x5121fc=['Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.','yes','entries','\x20\x20default:\x20','cwd','parse',')\x20instead\x20of\x20project','includes','Skip\x20confirmation\x20when\x20overwriting','message','join','global','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','475EllMLM','\x20\x20appcode:\x20','log','riskLevel','appcode','7pWtRAM','string','validation','2021822PgMpqt','defaultApp','41982iJyowM','1550316gqGcLf','15zgsVUO','299303yavyCX','newConfigFileName','utf8','3222711QyQSoR','1473620HTqihp','Override\x20imported\x20default\x20env','\x20\x20config:\x20\x20','apps','Imported\x20from\x20','env','boolean','4084NhgRyI','file','app','Write\x20to\x20global\x20(~/','8ZsoKND'];a34_0x92cd=function(){return _0x5121fc;};return a34_0x92cd();}async function writeImportConfig(_0xf0cf6d,_0xdce23b,_0x423749){const _0x1b77c9=a34_0x5b5020;let _0x26f8dd={};existsSync(_0xf0cf6d)&&!_0x423749[_0x1b77c9(0x124)]&&(_0x26f8dd=readConfigFile(_0xf0cf6d));for(const [_0x55c2f0,_0x54ef6c]of Object[_0x1b77c9(0x125)](_0xdce23b)){_0x54ef6c!==undefined&&(_0x26f8dd[_0x55c2f0]=_0x54ef6c);}if(_0x26f8dd[_0x1b77c9(0x120)])delete _0x26f8dd['app'];writeConfigFile(_0xf0cf6d,_0x26f8dd);}function resolveFilePath(_0x56fa05){const _0x2ea8ce=a34_0x5b5020;return isAbsolute(_0x56fa05)?_0x56fa05:resolve(process[_0x2ea8ce(0x127)](),_0x56fa05);}function a34_0x3850(_0x4c551a,_0x201b61){_0x4c551a=_0x4c551a-0x100;const _0x92cd43=a34_0x92cd();let _0x385046=_0x92cd43[_0x4c551a];return _0x385046;}function readSourceFile(_0x38c68d){const _0x41b0e3=a34_0x5b5020;try{const _0x223f4d=readFileSync(_0x38c68d,{'encoding':_0x41b0e3(0x115)});return JSON[_0x41b0e3(0x128)](_0x223f4d);}catch(_0x21c320){throw CliErrors[_0x41b0e3(0x10d)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x21c320[_0x41b0e3(0x101)]);}}function resolveImportEnv(_0x497f23){const _0x1b4079=a34_0x5b5020,_0x2ebb8d=_0x497f23[_0x1b4079(0x11c)];if(_0x2ebb8d===undefined||_0x2ebb8d==='')return DEFAULT_CONFIG_VALUES[_0x1b4079(0x11c)];if(!RUNTIME_ENV_VALUES[_0x1b4079(0x12a)](_0x2ebb8d))throw CliErrors['validation']('Invalid\x20env\x20\x22'+_0x2ebb8d+'\x22.\x20Allowed:\x20'+RUNTIME_ENV_VALUES[_0x1b4079(0x102)](',\x20'));return _0x2ebb8d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x14816d,_0x83649){const _0x14a880=a35_0x3656,_0x1de50b=_0x14816d();while(!![]){try{const _0x17b3c5=parseInt(_0x14a880(0x1d8))/0x1*(parseInt(_0x14a880(0x1d9))/0x2)+parseInt(_0x14a880(0x1d5))/0x3+-parseInt(_0x14a880(0x1d7))/0x4*(-parseInt(_0x14a880(0x1d2))/0x5)+-parseInt(_0x14a880(0x1da))/0x6+-parseInt(_0x14a880(0x1d6))/0x7*(-parseInt(_0x14a880(0x1ce))/0x8)+parseInt(_0x14a880(0x1c9))/0x9*(-parseInt(_0x14a880(0x1d1))/0xa)+-parseInt(_0x14a880(0x1cc))/0xb*(parseInt(_0x14a880(0x1cb))/0xc);if(_0x17b3c5===_0x83649)break;else _0x1de50b['push'](_0x1de50b['shift']());}catch(_0x7efbc6){_0x1de50b['push'](_0x1de50b['shift']());}}}(a35_0x1f30,0x4d228));import{platform,release,arch}from'node:os';function a35_0x3656(_0x18d919,_0xf89d2){_0x18d919=_0x18d919-0x1c6;const _0x1f301a=a35_0x1f30();let _0x3656dc=_0x1f301a[_0x18d919];return _0x3656dc;}import{getLoginUserInfo}from'../../core/api-client.js';function a35_0x1f30(){const _0x1432b0=['username','1424967wSQEEG','96383pjyPXZ','252PufGqC','212ahDWwA','3166EywvBw','2038590mkFOTb','userName','nickname','envName','appCode','email','9fEatHX','nickName','84jcbHlv','383647KZIRdb','name','344rQpFmN','@lovrabet/lovrabet-cli','loginName','5911300GtDGJC','7010exhain','production'];a35_0x1f30=function(){return _0x1432b0;};return a35_0x1f30();}import{getCliVersion}from'../../utils/version.js';export async function getIssueReportContext(_0x384944,_0x43275d){const _0x3c23d4=a35_0x3656,_0x2b42cc=_0x43275d?undefined:await getLoginUserInfo();return{'serviceName':_0x3c23d4(0x1cf),'serviceVersion':getCliVersion(),'environment':_0x384944[_0x3c23d4(0x1c6)]??_0x3c23d4(0x1d3),'appCode':_0x384944[_0x3c23d4(0x1c7)]||_0x384944['mergedCli']?.[_0x3c23d4(0x1c7)],'os':platform()+'\x20'+release()+'\x20'+arch(),'terminal':process.env.TERM,'user':_0x2b42cc?{'id':String(_0x2b42cc['id']??_0x2b42cc['userId']??''),'username':_0x2b42cc[_0x3c23d4(0x1d4)]??_0x2b42cc[_0x3c23d4(0x1db)]??_0x2b42cc[_0x3c23d4(0x1d0)],'nickname':_0x2b42cc[_0x3c23d4(0x1dc)]??_0x2b42cc[_0x3c23d4(0x1ca)]??_0x2b42cc[_0x3c23d4(0x1cd)]??undefined,'email':_0x2b42cc[_0x3c23d4(0x1c8)]??undefined,'tenantCode':_0x2b42cc['tenantCode']}:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f0821,_0x44b98c){const _0x21775c=a36_0x10c1,_0x1fca92=_0x1f0821();while(!![]){try{const _0x4e47fe=-parseInt(_0x21775c(0x1d2))/0x1*(parseInt(_0x21775c(0x1d5))/0x2)+parseInt(_0x21775c(0x1cd))/0x3+-parseInt(_0x21775c(0x1d3))/0x4*(-parseInt(_0x21775c(0x1cf))/0x5)+-parseInt(_0x21775c(0x1d0))/0x6*(parseInt(_0x21775c(0x1cc))/0x7)+parseInt(_0x21775c(0x1cb))/0x8+-parseInt(_0x21775c(0x1d1))/0x9*(-parseInt(_0x21775c(0x1d4))/0xa)+-parseInt(_0x21775c(0x1ce))/0xb;if(_0x4e47fe===_0x44b98c)break;else _0x1fca92['push'](_0x1fca92['shift']());}catch(_0x52c1bd){_0x1fca92['push'](_0x1fca92['shift']());}}}(a36_0x4d11,0x2814f));import{issueReport}from'./report.js';function a36_0x4d11(){const _0x3337d7=['448458uQdmbO','590526JVBpWe','1maOnyi','2984dChdjR','20lDFazW','184944jhcLqI','550592kVcImy','21agAObF','485172cAfcfZ','1635854JIiong','1795ZjbEOB'];a36_0x4d11=function(){return _0x3337d7;};return a36_0x4d11();}function a36_0x10c1(_0xba4bfa,_0x15b47e){_0xba4bfa=_0xba4bfa-0x1cb;const _0x4d1105=a36_0x4d11();let _0x10c1af=_0x4d1105[_0xba4bfa];return _0x10c1af;}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x36002f=a37_0x19dc;(function(_0x9ed7a7,_0x1aeb8e){const _0x578b8f=a37_0x19dc,_0x1035bf=_0x9ed7a7();while(!![]){try{const _0x114241=-parseInt(_0x578b8f(0x121))/0x1+parseInt(_0x578b8f(0x11d))/0x2*(parseInt(_0x578b8f(0x11e))/0x3)+-parseInt(_0x578b8f(0xea))/0x4+parseInt(_0x578b8f(0x100))/0x5*(parseInt(_0x578b8f(0xf5))/0x6)+-parseInt(_0x578b8f(0x107))/0x7+parseInt(_0x578b8f(0x103))/0x8*(parseInt(_0x578b8f(0xf4))/0x9)+-parseInt(_0x578b8f(0xf1))/0xa*(-parseInt(_0x578b8f(0x105))/0xb);if(_0x114241===_0x1aeb8e)break;else _0x1035bf['push'](_0x1035bf['shift']());}catch(_0x2e0b1d){_0x1035bf['push'](_0x1035bf['shift']());}}}(a37_0x33e1,0x7ff02));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a37_0x19dc(_0x458174,_0x435aee){_0x458174=_0x458174-0xe9;const _0x33e1ff=a37_0x33e1();let _0x19dcaa=_0x33e1ff[_0x458174];return _0x19dcaa;}import{reportIssue}from'@lovrabet/cli-framework';import{getIssueReportContext}from'./context.js';const DESCRIPTION_FILE_FLAG=a37_0x36002f(0xe9);function a37_0x33e1(){const _0x6af10c=['traceName','utf8','validation','message','keys','issue','originalBytes','join','redactions:\x20','compress','file','redactionKinds','105838tuGYNo','12BXPTdT','flagMissing','spanName','871837AVcLtj','description','descriptionFilePath','File\x20not\x20found:\x20','description-file','2198356upiPhu','Issue\x20log\x20submitted\x20(content\x20redacted\x20or\x20truncated)','trim','logData','filter','\x20bytes','descriptionSource','23770lSuOSC','redactionCount','Submit\x20a\x20problem\x20log','88731BjXeqS','3246LFdUIH','string','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','POST','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Submit\x20the\x20issue\x20description\x20and\x20diagnostic\x20context\x20as\x20a\x20problem\x20log.','Report\x20a\x20problem\x20log\x20with\x20title\x20and\x20markdown\x20context','sanitize','Cannot\x20read\x20issue\x20description\x20file:\x20','Issue\x20log\x20submitted','read','5345dflTeT','Check\x20your\x20login\x20and\x20network\x20connectivity.','validate','632cqtwRp','report','4862XipKVO','Failed\x20to\x20submit\x20issue\x20log:\x20','4718280txQHyH','apiError','descriptionSource:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','truncated:\x20original\x20','title','inline','cwd','truncated','str'];a37_0x33e1=function(){return _0x6af10c;};return a37_0x33e1();}export const issueReport={'service':a37_0x36002f(0x116),'command':a37_0x36002f(0x104),'description':a37_0x36002f(0xfb),'risk':a37_0x36002f(0xff),'confirmationDescription':a37_0x36002f(0xfa),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a37_0x36002f(0x11a),'flags':[{'name':a37_0x36002f(0x10c),'type':'string','required':!![],'description':'One-line\x20issue\x20summary'},{'name':a37_0x36002f(0x122),'type':'string','description':a37_0x36002f(0xf9)},{'name':DESCRIPTION_FILE_FLAG,'type':a37_0x36002f(0xf6),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x521a88){const _0x57af88=a37_0x36002f,_0x3c8388=_0x521a88['str'](_0x57af88(0x10c))['trim'](),_0x3a4745=_0x521a88[_0x57af88(0x110)](_0x57af88(0x122))[_0x57af88(0xec)](),_0x1c774a=_0x521a88[_0x57af88(0x110)](DESCRIPTION_FILE_FLAG)[_0x57af88(0xec)]();if(!_0x3c8388)throw CliErrors[_0x57af88(0x11f)](_0x57af88(0x10c),_0x57af88(0x10a));const _0x5efeac=_0x3a4745['length']>0x0,_0x16e53e=_0x1c774a['length']>0x0;if(_0x5efeac===_0x16e53e)throw CliErrors[_0x57af88(0x113)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x57af88(0xf7));if(_0x16e53e){const _0x46c6d6=resolve(process['cwd'](),_0x1c774a);if(!existsSync(_0x46c6d6))throw CliErrors['validation'](_0x57af88(0x124)+_0x46c6d6);}},async 'dryRun'(_0x516cb4){const _0x122563=a37_0x36002f,_0x4b01a7=await prepareIssueReport(_0x516cb4,!![]);return{'method':_0x122563(0xf8),'url':'otel://'+_0x4b01a7[_0x122563(0x111)]+'/'+_0x4b01a7['spanName'],'body':{'traceName':_0x4b01a7[_0x122563(0x111)],'spanName':_0x4b01a7['spanName'],'logData':_0x4b01a7[_0x122563(0xed)]},'description':[_0x122563(0xf3),_0x122563(0x109)+_0x4b01a7[_0x122563(0xf0)],_0x4b01a7[_0x122563(0x123)]?'descriptionFile:\x20'+_0x4b01a7[_0x122563(0x123)]:null,_0x4b01a7[_0x122563(0xfc)][_0x122563(0x10f)]?_0x122563(0x10b)+_0x4b01a7[_0x122563(0xfc)][_0x122563(0x117)]+_0x122563(0xef):null,_0x4b01a7[_0x122563(0xfc)][_0x122563(0xf2)]>0x0?_0x122563(0x119)+_0x4b01a7[_0x122563(0xfc)][_0x122563(0xf2)]+'\x20('+_0x4b01a7['sanitize'][_0x122563(0x11c)][_0x122563(0x118)](',\x20')+')':null][_0x122563(0xee)](Boolean)[_0x122563(0x118)]('\x0a')};},async 'execute'(_0x24c870){const _0x19748f=a37_0x36002f,_0x3749cf=await prepareIssueReport(_0x24c870,![]);return{'ok':!![],'message':_0x3749cf[_0x19748f(0xfc)]['redactionCount']||_0x3749cf[_0x19748f(0xfc)][_0x19748f(0x10f)]?_0x19748f(0xeb):_0x19748f(0xfe),'data':{'traceName':_0x3749cf['traceName'],'spanName':_0x3749cf[_0x19748f(0x120)],'logDataKeys':Object[_0x19748f(0x115)](_0x3749cf[_0x19748f(0xed)]),'issue':{'title':_0x3749cf[_0x19748f(0x10c)],'descriptionLength':_0x3749cf[_0x19748f(0x122)]['length'],'descriptionSource':_0x3749cf[_0x19748f(0xf0)],..._0x3749cf['descriptionFilePath']?{'descriptionFile':_0x3749cf[_0x19748f(0x123)]}:{},'sanitize':{'originalBytes':_0x3749cf['sanitize'][_0x19748f(0x117)],'truncated':_0x3749cf[_0x19748f(0xfc)][_0x19748f(0x10f)],'redactions':_0x3749cf['sanitize'][_0x19748f(0xf2)],'redactionKinds':_0x3749cf[_0x19748f(0xfc)][_0x19748f(0x11c)]}}}};}};async function prepareIssueReport(_0x13cbc7,_0x1e65bf){const _0xe701ce=a37_0x36002f;await issueReport[_0xe701ce(0x102)](_0x13cbc7);const _0x548ce7=_0x13cbc7[_0xe701ce(0x110)](DESCRIPTION_FILE_FLAG)[_0xe701ce(0xec)](),_0x3f97f1=_0x548ce7?resolve(process[_0xe701ce(0x10e)](),_0x548ce7):undefined;let _0x52cafe=_0x13cbc7[_0xe701ce(0x110)](_0xe701ce(0x122));if(_0x3f97f1)try{_0x52cafe=await readFile(_0x3f97f1,_0xe701ce(0x112));}catch{throw CliErrors['validation'](_0xe701ce(0xfd)+_0x3f97f1);}if(!_0x52cafe[_0xe701ce(0xec)]())throw CliErrors[_0xe701ce(0x113)]('Issue\x20description\x20cannot\x20be\x20empty.');const _0x89ab89=await getIssueReportContext(_0x13cbc7,_0x1e65bf);try{const _0xa7356d=await reportIssue({'title':_0x13cbc7[_0xe701ce(0x110)](_0xe701ce(0x10c)),'description':_0x52cafe,'context':_0x89ab89,'dryRun':_0x1e65bf});return{..._0xa7356d,'descriptionSource':_0x3f97f1?_0xe701ce(0x11b):_0xe701ce(0x10d),'descriptionFilePath':_0x3f97f1};}catch(_0x2db730){throw CliErrors[_0xe701ce(0x108)](_0xe701ce(0x106)+(_0x2db730 instanceof Error?_0x2db730[_0xe701ce(0x114)]:String(_0x2db730)),_0xe701ce(0x101));}}
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x30efe0=a38_0x54ad;(function(_0x4e0bf1,_0x17512a){const _0x101f99=a38_0x54ad,_0x604e52=_0x4e0bf1();while(!![]){try{const _0x96b5d3=-parseInt(_0x101f99(0x218))/0x1*(parseInt(_0x101f99(0x22a))/0x2)+-parseInt(_0x101f99(0x21f))/0x3+-parseInt(_0x101f99(0x21c))/0x4*(-parseInt(_0x101f99(0x20e))/0x5)+parseInt(_0x101f99(0x220))/0x6*(parseInt(_0x101f99(0x209))/0x7)+parseInt(_0x101f99(0x21b))/0x8+parseInt(_0x101f99(0x200))/0x9*(parseInt(_0x101f99(0x1f3))/0xa)+-parseInt(_0x101f99(0x1f2))/0xb*(parseInt(_0x101f99(0x20a))/0xc);if(_0x96b5d3===_0x17512a)break;else _0x604e52['push'](_0x604e52['shift']());}catch(_0x1ca6ee){_0x604e52['push'](_0x604e52['shift']());}}}(a38_0x49c6,0x1a154));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':a38_0x30efe0(0x1fa),'type':a38_0x30efe0(0x204),'required':!![],'description':a38_0x30efe0(0x1f7)},FILE_FLAG={'name':a38_0x30efe0(0x216),'type':'string','required':!![],'description':a38_0x30efe0(0x1ff)},QUERY_FLAG={'name':a38_0x30efe0(0x212),'type':a38_0x30efe0(0x204),'required':!![],'description':a38_0x30efe0(0x20b)},TOPK_FLAG={'name':a38_0x30efe0(0x201),'type':'number','description':a38_0x30efe0(0x202)};function readKnowledgeFile(_0x4c00c6){const _0x5213c3=a38_0x30efe0;if(!_0x4c00c6)throw CliErrors[_0x5213c3(0x22c)](_0x5213c3(0x229));if(!existsSync(_0x4c00c6))throw CliErrors[_0x5213c3(0x22c)](_0x5213c3(0x210)+_0x4c00c6);if(!statSync(_0x4c00c6)[_0x5213c3(0x22b)]())throw CliErrors[_0x5213c3(0x22c)](_0x5213c3(0x226)+_0x4c00c6);return readFileSync(_0x4c00c6,_0x5213c3(0x231));}function summarizePersonalItem(_0x3035a9){const _0x15c0f6=a38_0x30efe0;return{'id':_0x3035a9['id'],'title':_0x3035a9[_0x15c0f6(0x1fa)],'version':_0x3035a9[_0x15c0f6(0x21a)],'ragStatus':_0x3035a9[_0x15c0f6(0x20f)],'ragErrorMessage':_0x3035a9[_0x15c0f6(0x214)],'updateTime':_0x3035a9[_0x15c0f6(0x224)]};}function detailPersonalItem(_0x434be0){const _0x5e8b56=a38_0x30efe0;return{'id':_0x434be0['id'],'appCode':_0x434be0['appCode'],'scope':_0x434be0['scope'],'userId':_0x434be0[_0x5e8b56(0x219)],'title':_0x434be0[_0x5e8b56(0x1fa)],'content':_0x434be0[_0x5e8b56(0x232)],'version':_0x434be0[_0x5e8b56(0x21a)],'ragStatus':_0x434be0[_0x5e8b56(0x20f)],'ragErrorMessage':_0x434be0[_0x5e8b56(0x214)],'createTime':_0x434be0[_0x5e8b56(0x1ed)],'updateTime':_0x434be0[_0x5e8b56(0x224)]};}function readTopK(_0x3b1533){const _0x25307d=a38_0x30efe0,_0x1065c7=_0x3b1533['flag']('topk');if(_0x1065c7===undefined||_0x1065c7===null||_0x1065c7==='')return undefined;const _0x23b608=_0x3b1533[_0x25307d(0x230)](_0x25307d(0x201));if(!Number[_0x25307d(0x217)](_0x23b608)||_0x23b608<0x1||_0x23b608>0x32)throw CliErrors[_0x25307d(0x22c)](_0x25307d(0x225));return _0x23b608;}const kbList={'service':'kb','command':a38_0x30efe0(0x1fb),'description':a38_0x30efe0(0x223),'risk':a38_0x30efe0(0x207),'flags':[VERBOSE_FLAG],async 'execute'(_0xf5650){const _0x62116f=a38_0x30efe0,_0x4d1b9a=await listPersonalKnowledgeBaseItems(_0xf5650[_0x62116f(0x21e)],_0xf5650[_0x62116f(0x203)]);if(_0xf5650[_0x62116f(0x228)](_0x62116f(0x1f9)))return{'ok':!![],'data':{'total':_0x4d1b9a['length'],'items':_0x4d1b9a}};return{'ok':!![],'data':{'total':_0x4d1b9a['length'],'items':_0x4d1b9a[_0x62116f(0x21d)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a38_0x30efe0(0x213),'description':a38_0x30efe0(0x1f5),'risk':a38_0x30efe0(0x207),'flags':[{...ID_FLAG,'type':a38_0x30efe0(0x204),'description':a38_0x30efe0(0x211)}],async 'execute'(_0x420032){const _0x41cefb=a38_0x30efe0,_0x5755fd=await getPersonalKnowledgeBaseItem(_0x420032[_0x41cefb(0x1f0)]('id'),_0x420032[_0x41cefb(0x21e)],_0x420032[_0x41cefb(0x203)]);return{'ok':!![],'data':detailPersonalItem(_0x5755fd)};}},kbCreate={'service':'kb','command':a38_0x30efe0(0x1f1),'description':a38_0x30efe0(0x1f6),'risk':a38_0x30efe0(0x205),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x23dbbe){const _0x3fa412=a38_0x30efe0,_0x2518f1=_0x23dbbe['str']('title'),_0x3518e4=readKnowledgeFile(_0x23dbbe[_0x3fa412(0x1f0)](_0x3fa412(0x216))),_0x51392c=await createPersonalKnowledgeBaseItem(_0x23dbbe['appCode'],{'title':_0x2518f1,'content':_0x3518e4},_0x23dbbe[_0x3fa412(0x203)]);return{'ok':!![],'data':summarizePersonalItem(_0x51392c),'message':'Created\x20KB\x20entry\x20'+_0x51392c['id']+'\x20('+_0x51392c['title']+')'};},async 'dryRun'(_0x38fdf6){const _0x5e4ee9=a38_0x30efe0,_0x62d0e3=_0x38fdf6[_0x5e4ee9(0x1f0)](_0x5e4ee9(0x1fa)),_0x43bc5d=readKnowledgeFile(_0x38fdf6[_0x5e4ee9(0x1f0)](_0x5e4ee9(0x216))),_0x32887e=planPersonalKnowledgeWrite(_0x38fdf6['appCode'],{'title':_0x62d0e3,'content':_0x43bc5d});return dryRun(_0x32887e['method'],_0x32887e[_0x5e4ee9(0x221)])[_0x5e4ee9(0x20c)](JSON['parse'](_0x32887e['jsonBody']))[_0x5e4ee9(0x1ee)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x62d0e3+'\x22')[_0x5e4ee9(0x1f8)]();}},kbUpdate={'service':'kb','command':'update','description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a38_0x30efe0(0x205),'confirmationDescription':a38_0x30efe0(0x22f),'flags':[{...ID_FLAG,'type':'string','description':a38_0x30efe0(0x211)},{...TITLE_FLAG,'required':![],'description':a38_0x30efe0(0x208)},FILE_FLAG],async 'execute'(_0x1e35f6){const _0x283db6=a38_0x30efe0,_0x583740=_0x1e35f6['str']('id'),_0x3483eb=readKnowledgeFile(_0x1e35f6[_0x283db6(0x1f0)](_0x283db6(0x216))),_0x999910=_0x1e35f6['str']('title')||undefined,_0x5baceb=await updatePersonalKnowledgeBaseItem(_0x583740,_0x1e35f6['appCode'],{'title':_0x999910,'content':_0x3483eb},_0x1e35f6['signal']);return{'ok':!![],'data':summarizePersonalItem(_0x5baceb),'message':_0x283db6(0x22d)+_0x5baceb['id']+'\x20('+_0x5baceb[_0x283db6(0x1fa)]+')'};},async 'dryRun'(_0x18e63c){const _0x2b6da1=a38_0x30efe0,_0x45ced6=_0x18e63c['str']('id'),_0x556eb5=readKnowledgeFile(_0x18e63c['str'](_0x2b6da1(0x216))),_0x43da8b=await getPersonalKnowledgeBaseItem(_0x45ced6,_0x18e63c[_0x2b6da1(0x21e)],_0x18e63c['signal']),_0x210397=_0x18e63c[_0x2b6da1(0x1f0)](_0x2b6da1(0x1fa))||_0x43da8b[_0x2b6da1(0x1fa)],_0x4b7a47=planPersonalKnowledgeWrite(_0x18e63c[_0x2b6da1(0x21e)],{'title':_0x210397,'content':_0x556eb5},_0x45ced6,_0x43da8b[_0x2b6da1(0x21a)]);return dryRun(_0x4b7a47[_0x2b6da1(0x222)],_0x4b7a47[_0x2b6da1(0x221)])[_0x2b6da1(0x20c)](JSON[_0x2b6da1(0x1fc)](_0x4b7a47['jsonBody']))[_0x2b6da1(0x1ee)](_0x2b6da1(0x1fe)+_0x45ced6)[_0x2b6da1(0x1f8)]();}};function readSearchServiceUrl(_0x4c33e5){const _0x5028d9=a38_0x30efe0;if(_0x4c33e5['flag'](_0x5028d9(0x1f4))!==undefined)return normalizeKbServiceOrigin(_0x4c33e5[_0x5028d9(0x1f0)](_0x5028d9(0x1f4)));const _0x2d6741=getKbServiceDomain();if(!_0x2d6741)throw CliErrors[_0x5028d9(0x22c)](_0x5028d9(0x215),_0x5028d9(0x20d));return normalizeKbServiceOrigin(_0x2d6741);}const kbSearch={'service':'kb','command':a38_0x30efe0(0x1fd),'description':'Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','risk':'read','flags':[QUERY_FLAG,TOPK_FLAG,{'name':a38_0x30efe0(0x1f4),'type':a38_0x30efe0(0x204),'required':![],'description':a38_0x30efe0(0x22e)}],async 'validate'(_0x1baae4){const _0x571c65=a38_0x30efe0;if(!_0x1baae4[_0x571c65(0x1f0)](_0x571c65(0x212))['trim']())throw CliErrors[_0x571c65(0x22c)]('Search\x20query\x20is\x20required.');readTopK(_0x1baae4),readSearchServiceUrl(_0x1baae4);},async 'execute'(_0x455095){const _0x309a9c=a38_0x30efe0,_0x4f2963=_0x455095[_0x309a9c(0x1f0)](_0x309a9c(0x212))['trim'](),_0x290f91=readTopK(_0x455095),_0x2e9f8d=readSearchServiceUrl(_0x455095),_0x37694d={'appCode':_0x455095[_0x309a9c(0x21e)],'accessKey':_0x455095[_0x309a9c(0x1ef)]??'','query':_0x4f2963,..._0x290f91!==undefined?{'topK':_0x290f91}:{},'signal':_0x455095[_0x309a9c(0x203)]},_0x1e50c8=await searchDirectKnowledge({..._0x37694d,'serviceUrl':_0x2e9f8d});return{'ok':!![],'data':_0x1e50c8};}};function managementCommand(_0x32c781){const _0x10d815=a38_0x30efe0;return{..._0x32c781,'execute':_0x5992be=>withKbManagementOrigin(()=>_0x32c781[_0x10d815(0x206)](_0x5992be)),..._0x32c781[_0x10d815(0x227)]?{'dryRun':_0x113235=>withKbManagementOrigin(()=>_0x32c781['dryRun'](_0x113235))}:{}};}function a38_0x49c6(){const _0x594ca5=['createTime','description','accessKey','str','create','935AnZPue','364440TcsPus','kb-service-url','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','Personal\x20knowledge-base\x20entry\x20title','build','verbose','title','list','parse','search','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','27DioRhd','topk','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','signal','string','write','execute','read','Override\x20the\x20existing\x20entry\x20title','7EGKcar','8388dekLDG','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','body','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','291370YqOXwQ','ragStatus','File\x20not\x20found:\x20','Personal\x20knowledge-base\x20entry\x20ID','query','detail','ragErrorMessage','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','file','isSafeInteger','1907gpsNBL','userId','version','325920vQCOQQ','4AYRmmv','map','appCode','308655Nytosc','444834spARMj','path','method','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','updateTime','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','File\x20is\x20not\x20a\x20regular\x20file:\x20','dryRun','bool','File\x20path\x20is\x20required.','14JvWbbi','isFile','validation','Updated\x20KB\x20entry\x20','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','num','utf8','content'];a38_0x49c6=function(){return _0x594ca5;};return a38_0x49c6();}function a38_0x54ad(_0x182d3f,_0x56e08b){_0x182d3f=_0x182d3f-0x1ed;const _0x49c6b1=a38_0x49c6();let _0x54adc3=_0x49c6b1[_0x182d3f];return _0x54adc3;}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x30efe0(0x21d)](managementCommand),kbSearch];
|
|
1
|
+
const a38_0x1029f2=a38_0xf2b6;(function(_0x370167,_0x1c5aec){const _0x33d65e=a38_0xf2b6,_0xb9873b=_0x370167();while(!![]){try{const _0x303ed8=-parseInt(_0x33d65e(0xdd))/0x1*(parseInt(_0x33d65e(0xf7))/0x2)+-parseInt(_0x33d65e(0xf0))/0x3*(-parseInt(_0x33d65e(0xc9))/0x4)+-parseInt(_0x33d65e(0xec))/0x5+parseInt(_0x33d65e(0xd3))/0x6*(-parseInt(_0x33d65e(0xcf))/0x7)+-parseInt(_0x33d65e(0xc2))/0x8+parseInt(_0x33d65e(0xf6))/0x9+parseInt(_0x33d65e(0xef))/0xa*(parseInt(_0x33d65e(0xf4))/0xb);if(_0x303ed8===_0x1c5aec)break;else _0xb9873b['push'](_0xb9873b['shift']());}catch(_0x39fc1d){_0xb9873b['push'](_0xb9873b['shift']());}}}(a38_0x1d57,0xb7153));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';function a38_0xf2b6(_0xa95912,_0x399cd0){_0xa95912=_0xa95912-0xb8;const _0x1d5773=a38_0x1d57();let _0xf2b60d=_0x1d5773[_0xa95912];return _0xf2b60d;}function a38_0x1d57(){const _0x1356d1=['74154OEKcqZ','utf8','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','validation','description','file','Personal\x20knowledge-base\x20entry\x20ID','appCode','title','parse','859VYbqZU','method','accessKey','list','topk','query','path','isSafeInteger','Personal\x20knowledge-base\x20entry\x20title','read','map','body','length','Override\x20the\x20existing\x20entry\x20title','detail','4046200BSjSju','trim','ragErrorMessage','4430cZsobN','4269GRSxvY','ragStatus','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','File\x20is\x20not\x20a\x20regular\x20file:\x20','28347TfPsPY','kb-service-url','11975148QuKmfe','2326zhRgHl','flag','dryRun','string','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','jsonBody','write','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','update','List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','str','createTime','build','bool','2586528xAhKkd','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','version','updateTime','content','scope','Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20','1220jMeiWA','isFile','verbose','create','signal','Search\x20query\x20is\x20required.','14OmEUSd','num','search','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.'];a38_0x1d57=function(){return _0x1356d1;};return a38_0x1d57();}import{CliErrors}from'../../errors.js';import{getKbServiceDomain}from'../../constant/domain.js';import{dryRun}from'../../framework/dryrun.js';const TITLE_FLAG={'name':a38_0x1029f2(0xdb),'type':a38_0x1029f2(0xfa),'required':!![],'description':a38_0x1029f2(0xe5)},FILE_FLAG={'name':a38_0x1029f2(0xd8),'type':a38_0x1029f2(0xfa),'required':!![],'description':a38_0x1029f2(0xf2)},QUERY_FLAG={'name':a38_0x1029f2(0xe2),'type':'string','required':!![],'description':'Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge'},TOPK_FLAG={'name':'topk','type':'number','description':a38_0x1029f2(0xba)};function readKnowledgeFile(_0x1ecc35){const _0x1a4eb7=a38_0x1029f2;if(!_0x1ecc35)throw CliErrors['validation']('File\x20path\x20is\x20required.');if(!existsSync(_0x1ecc35))throw CliErrors['validation']('File\x20not\x20found:\x20'+_0x1ecc35);if(!statSync(_0x1ecc35)[_0x1a4eb7(0xca)]())throw CliErrors['validation'](_0x1a4eb7(0xf3)+_0x1ecc35);return readFileSync(_0x1ecc35,_0x1a4eb7(0xd4));}function summarizePersonalItem(_0x2b7120){const _0x5cf77d=a38_0x1029f2;return{'id':_0x2b7120['id'],'title':_0x2b7120[_0x5cf77d(0xdb)],'version':_0x2b7120[_0x5cf77d(0xc4)],'ragStatus':_0x2b7120[_0x5cf77d(0xf1)],'ragErrorMessage':_0x2b7120['ragErrorMessage'],'updateTime':_0x2b7120[_0x5cf77d(0xc5)]};}function detailPersonalItem(_0x45d0f7){const _0x19c218=a38_0x1029f2;return{'id':_0x45d0f7['id'],'appCode':_0x45d0f7[_0x19c218(0xda)],'scope':_0x45d0f7[_0x19c218(0xc7)],'userId':_0x45d0f7['userId'],'title':_0x45d0f7['title'],'content':_0x45d0f7[_0x19c218(0xc6)],'version':_0x45d0f7[_0x19c218(0xc4)],'ragStatus':_0x45d0f7['ragStatus'],'ragErrorMessage':_0x45d0f7[_0x19c218(0xee)],'createTime':_0x45d0f7[_0x19c218(0xbf)],'updateTime':_0x45d0f7[_0x19c218(0xc5)]};}function readTopK(_0x22dbbb){const _0x59720e=a38_0x1029f2,_0x224d61=_0x22dbbb['flag'](_0x59720e(0xe1));if(_0x224d61===undefined||_0x224d61===null||_0x224d61==='')return undefined;const _0x3ed8df=_0x22dbbb[_0x59720e(0xd0)](_0x59720e(0xe1));if(!Number[_0x59720e(0xe4)](_0x3ed8df)||_0x3ed8df<0x1||_0x3ed8df>0x32)throw CliErrors[_0x59720e(0xd6)](_0x59720e(0xbd));return _0x3ed8df;}const kbList={'service':'kb','command':a38_0x1029f2(0xe0),'description':a38_0x1029f2(0xbc),'risk':a38_0x1029f2(0xe6),'flags':[VERBOSE_FLAG],async 'execute'(_0x21836a){const _0x19d473=a38_0x1029f2,_0x4cadf7=await listPersonalKnowledgeBaseItems(_0x21836a[_0x19d473(0xda)],_0x21836a[_0x19d473(0xcd)]);if(_0x21836a[_0x19d473(0xc1)](_0x19d473(0xcb)))return{'ok':!![],'data':{'total':_0x4cadf7[_0x19d473(0xe9)],'items':_0x4cadf7}};return{'ok':!![],'data':{'total':_0x4cadf7['length'],'items':_0x4cadf7[_0x19d473(0xe7)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a38_0x1029f2(0xeb),'description':'Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id','risk':a38_0x1029f2(0xe6),'flags':[{...ID_FLAG,'type':a38_0x1029f2(0xfa),'description':a38_0x1029f2(0xd9)}],async 'execute'(_0x2fc9c9){const _0xf36cbf=a38_0x1029f2,_0x34f31f=await getPersonalKnowledgeBaseItem(_0x2fc9c9[_0xf36cbf(0xbe)]('id'),_0x2fc9c9['appCode'],_0x2fc9c9[_0xf36cbf(0xcd)]);return{'ok':!![],'data':detailPersonalItem(_0x34f31f)};}},kbCreate={'service':'kb','command':a38_0x1029f2(0xcc),'description':'Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a38_0x1029f2(0xb8),'confirmationDescription':'Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x453705){const _0x2e336b=a38_0x1029f2,_0x5e24d4=_0x453705['str'](_0x2e336b(0xdb)),_0x1ed99f=readKnowledgeFile(_0x453705['str'](_0x2e336b(0xd8))),_0x2fef26=await createPersonalKnowledgeBaseItem(_0x453705[_0x2e336b(0xda)],{'title':_0x5e24d4,'content':_0x1ed99f},_0x453705['signal']);return{'ok':!![],'data':summarizePersonalItem(_0x2fef26),'message':'Created\x20KB\x20entry\x20'+_0x2fef26['id']+'\x20('+_0x2fef26[_0x2e336b(0xdb)]+')'};},async 'dryRun'(_0x31be4e){const _0x351832=a38_0x1029f2,_0x4d0770=_0x31be4e['str']('title'),_0x1522fb=readKnowledgeFile(_0x31be4e[_0x351832(0xbe)]('file')),_0xe1e6d1=planPersonalKnowledgeWrite(_0x31be4e[_0x351832(0xda)],{'title':_0x4d0770,'content':_0x1522fb});return dryRun(_0xe1e6d1['method'],_0xe1e6d1[_0x351832(0xe3)])[_0x351832(0xe8)](JSON['parse'](_0xe1e6d1['jsonBody']))[_0x351832(0xd7)]('Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22'+_0x4d0770+'\x22')[_0x351832(0xc0)]();}},kbUpdate={'service':'kb','command':a38_0x1029f2(0xbb),'description':'Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','risk':a38_0x1029f2(0xb8),'confirmationDescription':a38_0x1029f2(0xd2),'flags':[{...ID_FLAG,'type':a38_0x1029f2(0xfa),'description':a38_0x1029f2(0xd9)},{...TITLE_FLAG,'required':![],'description':a38_0x1029f2(0xea)},FILE_FLAG],async 'execute'(_0x450e1a){const _0x12f04e=a38_0x1029f2,_0x334b94=_0x450e1a[_0x12f04e(0xbe)]('id'),_0x52dc89=readKnowledgeFile(_0x450e1a[_0x12f04e(0xbe)](_0x12f04e(0xd8))),_0x2bdcd0=_0x450e1a[_0x12f04e(0xbe)](_0x12f04e(0xdb))||undefined,_0x3c7794=await updatePersonalKnowledgeBaseItem(_0x334b94,_0x450e1a[_0x12f04e(0xda)],{'title':_0x2bdcd0,'content':_0x52dc89},_0x450e1a[_0x12f04e(0xcd)]);return{'ok':!![],'data':summarizePersonalItem(_0x3c7794),'message':'Updated\x20KB\x20entry\x20'+_0x3c7794['id']+'\x20('+_0x3c7794['title']+')'};},async 'dryRun'(_0x502593){const _0xd9b159=a38_0x1029f2,_0x5538ae=_0x502593['str']('id'),_0x49eb10=readKnowledgeFile(_0x502593[_0xd9b159(0xbe)](_0xd9b159(0xd8))),_0x48cc13=await getPersonalKnowledgeBaseItem(_0x5538ae,_0x502593['appCode'],_0x502593[_0xd9b159(0xcd)]),_0x247ecf=_0x502593['str'](_0xd9b159(0xdb))||_0x48cc13['title'],_0xa94a25=planPersonalKnowledgeWrite(_0x502593[_0xd9b159(0xda)],{'title':_0x247ecf,'content':_0x49eb10},_0x5538ae,_0x48cc13[_0xd9b159(0xc4)]);return dryRun(_0xa94a25[_0xd9b159(0xde)],_0xa94a25[_0xd9b159(0xe3)])['body'](JSON[_0xd9b159(0xdc)](_0xa94a25[_0xd9b159(0xfc)]))['description'](_0xd9b159(0xc8)+_0x5538ae)[_0xd9b159(0xc0)]();}};function readSearchServiceUrl(_0x11a583){const _0x14e28e=a38_0x1029f2;if(_0x11a583[_0x14e28e(0xf8)](_0x14e28e(0xf5))!==undefined)return normalizeKbServiceOrigin(_0x11a583[_0x14e28e(0xbe)](_0x14e28e(0xf5)));const _0x1814bb=getKbServiceDomain();if(!_0x1814bb)throw CliErrors[_0x14e28e(0xd6)](_0x14e28e(0xfb),_0x14e28e(0xc3));return normalizeKbServiceOrigin(_0x1814bb);}const kbSearch={'service':'kb','command':a38_0x1029f2(0xd1),'description':a38_0x1029f2(0xd5),'risk':a38_0x1029f2(0xe6),'flags':[QUERY_FLAG,TOPK_FLAG,{'name':'kb-service-url','type':a38_0x1029f2(0xfa),'required':![],'description':a38_0x1029f2(0xb9)}],async 'validate'(_0x25bda2){const _0x489440=a38_0x1029f2;if(!_0x25bda2[_0x489440(0xbe)](_0x489440(0xe2))[_0x489440(0xed)]())throw CliErrors[_0x489440(0xd6)](_0x489440(0xce));readTopK(_0x25bda2),readSearchServiceUrl(_0x25bda2);},async 'execute'(_0x2ffaca){const _0x1b19b2=a38_0x1029f2,_0x3fdede=_0x2ffaca[_0x1b19b2(0xbe)]('query')[_0x1b19b2(0xed)](),_0x459abe=readTopK(_0x2ffaca),_0x1f4b1a=readSearchServiceUrl(_0x2ffaca),_0x386505={'appCode':_0x2ffaca['appCode'],'accessKey':_0x2ffaca[_0x1b19b2(0xdf)]??'','query':_0x3fdede,..._0x459abe!==undefined?{'topK':_0x459abe}:{},'signal':_0x2ffaca[_0x1b19b2(0xcd)]},_0x1bc501=await searchDirectKnowledge({..._0x386505,'serviceUrl':_0x1f4b1a});return{'ok':!![],'data':_0x1bc501};}};function managementCommand(_0x800da){const _0x3ab666=a38_0x1029f2;return{..._0x800da,'execute':_0x3d81e9=>withKbManagementOrigin(()=>_0x800da['execute'](_0x3d81e9)),..._0x800da[_0x3ab666(0xf9)]?{'dryRun':_0x5f525f=>withKbManagementOrigin(()=>_0x800da[_0x3ab666(0xf9)](_0x5f525f))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x1029f2(0xe7)](managementCommand),kbSearch];
|