@lovrabet/lovrabet-cli 2.3.8-beta.5 → 2.3.8-beta.7
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 +3 -3
- package/skills/lovrabet/SKILL.md +10 -2
- package/skills/lovrabet/guides/development-intent-handoff.md +58 -0
- package/skills/lovrabet.manifest.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a27_0x4efb44=a27_0x2f75;(function(_0x30a401,_0x8eec59){const _0x50e84c=a27_0x2f75,_0x526c75=_0x30a401();while(!![]){try{const _0xb85f78=-parseInt(_0x50e84c(0x1a1))/0x1*(parseInt(_0x50e84c(0x17b))/0x2)+-parseInt(_0x50e84c(0x179))/0x3*(-parseInt(_0x50e84c(0x163))/0x4)+-parseInt(_0x50e84c(0x194))/0x5*(-parseInt(_0x50e84c(0x183))/0x6)+-parseInt(_0x50e84c(0x189))/0x7*(-parseInt(_0x50e84c(0x1bb))/0x8)+-parseInt(_0x50e84c(0x17c))/0x9+parseInt(_0x50e84c(0x195))/0xa*(parseInt(_0x50e84c(0x1b4))/0xb)+parseInt(_0x50e84c(0x15c))/0xc*(-parseInt(_0x50e84c(0x1c0))/0xd);if(_0xb85f78===_0x8eec59)break;else _0x526c75['push'](_0x526c75['shift']());}catch(_0x5266a4){_0x526c75['push'](_0x526c75['shift']());}}}(a27_0x2e43,0xb743f));import{dataImportExcel}from'./import-excel.js';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_0x4efb44(0x15f),'operation':a27_0x4efb44(0x15f),'risk':a27_0x4efb44(0x15a),'paramsRequired':![],'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsHint':a27_0x4efb44(0x1a9)+a27_0x4efb44(0x19d),'helpExtra':[a27_0x4efb44(0x1be),a27_0x4efb44(0x167),a27_0x4efb44(0x1a4),a27_0x4efb44(0x17d),a27_0x4efb44(0x1b9),a27_0x4efb44(0x15d),a27_0x4efb44(0x190),a27_0x4efb44(0x174),'\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}}',a27_0x4efb44(0x1a0),'',a27_0x4efb44(0x162),'\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}}]}','\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}}]}','',a27_0x4efb44(0x1b7),a27_0x4efb44(0x187),'\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a27_0x4efb44(0x1b0),a27_0x4efb44(0x1a5),'',a27_0x4efb44(0x1b5),a27_0x4efb44(0x18a),a27_0x4efb44(0x1a2),'\x20\x20\x20\x20Page\x20numbers\x20start\x20at\x201.\x20To\x20fetch\x20the\x20next\x20page,\x20keep\x20where/select/orderBy/pageSize\x20unchanged',a27_0x4efb44(0x18e),a27_0x4efb44(0x186),'\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\x20Verify\x20the\x20response\x20paging.currentPage/pageSize\x20and\x20that\x20tableData\x20satisfies\x20where\x20before\x20drawing\x20conclusions.'][a27_0x4efb44(0x16e)]('\x0a')},{'command':a27_0x4efb44(0x164),'operation':a27_0x4efb44(0x164),'risk':a27_0x4efb44(0x15a),'paramsRequired':!![],'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsHint':a27_0x4efb44(0x1a8)},{'command':a27_0x4efb44(0x172),'operation':a27_0x4efb44(0x172),'risk':a27_0x4efb44(0x1a6),'paramsRequired':!![],'description':a27_0x4efb44(0x1ba),'confirmationDescription':a27_0x4efb44(0x153),'paramsHint':a27_0x4efb44(0x19e)},{'command':a27_0x4efb44(0x196),'operation':'batchCreate','risk':'write','paramsRequired':!![],'description':'Create\x20multiple\x20records\x20in\x20the\x20dataset\x20in\x20one\x20request','helpExtra':[a27_0x4efb44(0x1b3),a27_0x4efb44(0x156),a27_0x4efb44(0x178),a27_0x4efb44(0x1ad),a27_0x4efb44(0x173),a27_0x4efb44(0x158),a27_0x4efb44(0x182),a27_0x4efb44(0x19f),a27_0x4efb44(0x18f),'\x20\x20\x20\x20Built-in\x20Skill\x20guide:\x20references/lovrabet-db-table-excel-import.md',a27_0x4efb44(0x1bd)][a27_0x4efb44(0x16e)]('\x0a'),'confirmationDescription':'Writes\x20multiple\x20new\x20business\x20records\x20to\x20the\x20current\x20app\x20dataset.\x20They\x20are\x20saved\x20immediately\x20after\x20confirmation.','paramsHint':a27_0x4efb44(0x165)},{'command':a27_0x4efb44(0x1ae),'operation':a27_0x4efb44(0x1ae),'risk':a27_0x4efb44(0x1a6),'paramsRequired':!![],'description':a27_0x4efb44(0x1ab),'confirmationDescription':a27_0x4efb44(0x16c),'paramsHint':a27_0x4efb44(0x171)+a27_0x4efb44(0x155)},{'command':a27_0x4efb44(0x188),'operation':a27_0x4efb44(0x188),'risk':a27_0x4efb44(0x154),'paramsRequired':!![],'description':a27_0x4efb44(0x1bf),'confirmationDescription':a27_0x4efb44(0x181),'paramsHint':a27_0x4efb44(0x1a8)},{'command':'aggregate','operation':a27_0x4efb44(0x16b),'risk':a27_0x4efb44(0x15a),'paramsRequired':![],'description':'Aggregate\x20dataset\x20records\x20(group\x20by,\x20sum,\x20count,\x20avg,\x20etc.)','paramsHint':'JSON\x20body\x20for\x20aggregate\x20API.\x20Fields:\x20select,\x20aggregate,\x20where,\x20groupBy,\x20having,\x20orderBy.\x20'+a27_0x4efb44(0x17e),'helpExtra':['\x20\x20AGGREGATE\x20TYPES',a27_0x4efb44(0x1aa),a27_0x4efb44(0x19c),a27_0x4efb44(0x185),'\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}',a27_0x4efb44(0x192),'\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\x20MIN\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Minimum\x20value\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{\x22column\x22:\x22price\x22,\x22type\x22:\x22MIN\x22,\x22alias\x22:\x22min_price\x22}','',a27_0x4efb44(0x175),'\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_0x4efb44(0x1b8),a27_0x4efb44(0x1ac),'\x20\x20\x20\x20groupBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Grouping\x20fields,\x20e.g.\x20[\x22status\x22,\x22region\x22]',a27_0x4efb44(0x180),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order;\x20may\x20reference\x20aggregate\x20output\x20aliases,\x20e.g.\x20[{\x22total\x22:\x22desc\x22}]','',a27_0x4efb44(0x198),a27_0x4efb44(0x19b),a27_0x4efb44(0x169),a27_0x4efb44(0x159),'',a27_0x4efb44(0x1a7),a27_0x4efb44(0x18c),a27_0x4efb44(0x160),'\x20\x20\x20\x20JOIN\x20and\x20cross-table\x20aggregation\x20require\x20an\x20existing\x20trusted\x20Custom\x20SQL','\x20\x20\x20\x20choose\x20the\x20capability\x20before\x20execution;\x20never\x20fall\x20back\x20at\x20runtime','',a27_0x4efb44(0x1b6),a27_0x4efb44(0x168),a27_0x4efb44(0x170),'',a27_0x4efb44(0x1bc),a27_0x4efb44(0x193),'',a27_0x4efb44(0x176)]['join']('\x0a')}];function makeDataCommand(_0x57d9ba){const _0x3a83c4=a27_0x4efb44,_0x268c84='data\x20'+_0x57d9ba[_0x3a83c4(0x184)],_0x5bde13={'service':_0x3a83c4(0x199),'command':_0x57d9ba[_0x3a83c4(0x184)],'description':_0x57d9ba[_0x3a83c4(0x15e)],'risk':_0x57d9ba[_0x3a83c4(0x15b)],..._0x57d9ba[_0x3a83c4(0x166)]?{'confirmationDescription':_0x57d9ba[_0x3a83c4(0x166)]}:{},'helpExtra':_0x57d9ba[_0x3a83c4(0x197)],'flags':[CODE_FLAG,{...PARAMS_FLAG,'description':_0x57d9ba['paramsHint']}],'validate':async _0x4c4404=>{const _0x21ecb3=_0x3a83c4;_0x57d9ba[_0x21ecb3(0x19a)]&&requireAnyOf(_0x4c4404,[_0x21ecb3(0x17f)],_0x268c84),_0x57d9ba[_0x21ecb3(0x157)]===_0x21ecb3(0x196)&&parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x4c4404[_0x21ecb3(0x16d)](_0x21ecb3(0x17f)))),_0x57d9ba[_0x21ecb3(0x157)]===_0x21ecb3(0x1ae)&&parseUpdateIdsFromParams(parseJsonParams(_0x4c4404[_0x21ecb3(0x16d)](_0x21ecb3(0x17f)))??{});},async 'execute'(_0x10630d){const _0x16b607=_0x3a83c4,_0xf373a1=_0x10630d[_0x16b607(0x16d)](_0x16b607(0x18b)),_0x43d239=_0x57d9ba[_0x16b607(0x157)]==='batchCreate'?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x10630d['str'](_0x16b607(0x17f)))):parseJsonParams(_0x10630d[_0x16b607(0x16d)]('params'))??{},_0x12d473=_0x57d9ba[_0x16b607(0x157)]===_0x16b607(0x1ae)?parseUpdateIdsFromParams(_0x43d239):undefined,_0x3b842d=_0x12d473?normalizeUpdateParamsForRuntime(_0x43d239,_0x12d473):_0x43d239,_0x2a288a=Date['now'](),_0x47d35f=await executeData(_0xf373a1,_0x57d9ba[_0x16b607(0x157)],_0x3b842d),_0x4f1b5d=Date[_0x16b607(0x17a)]()-_0x2a288a,_0x4b9049=_0x12d473&&_0x12d473['length']>0x1?buildBatchUpdateResult(_0x12d473,_0x47d35f):_0x47d35f;return{'ok':!![],'data':{'result':_0x4b9049,'elapsed':_0x4f1b5d},'message':'data\x20'+_0x57d9ba[_0x16b607(0x184)]+_0x16b607(0x191)+_0x4f1b5d+'ms'};}};return _0x57d9ba[_0x3a83c4(0x15b)]!==_0x3a83c4(0x15a)&&(_0x5bde13[_0x3a83c4(0x18d)]=async _0x383150=>{const _0x4b31ac=_0x3a83c4,_0x2c1f11=_0x383150['str'](_0x4b31ac(0x18b)),_0x32110b=_0x57d9ba['operation']===_0x4b31ac(0x196)?parseBatchCreateItemsFromParams(parseJsonParamsValue(_0x383150['str'](_0x4b31ac(0x17f)))):parseJsonParams(_0x383150[_0x4b31ac(0x16d)]('params'))??{};let _0x3b80d3=_0x32110b;if(_0x57d9ba['operation']===_0x4b31ac(0x1ae)){const _0x58ae0e=parseUpdateIdsFromParams(_0x32110b);_0x3b80d3=normalizeUpdateParamsForRuntime(_0x32110b,_0x58ae0e);}return dryRun(_0x4b31ac(0x1af),_0x4b31ac(0x1a3)+_0x2c1f11+'/'+_0x57d9ba[_0x4b31ac(0x157)])[_0x4b31ac(0x16a)](_0x3b80d3)[_0x4b31ac(0x15e)](_0x4b31ac(0x177)+_0x57d9ba[_0x4b31ac(0x184)]+_0x4b31ac(0x1b1)+_0x2c1f11)[_0x4b31ac(0x161)]();}),_0x5bde13;}export const dataDefinitions=[...specs[a27_0x4efb44(0x16f)](makeDataCommand),dataImportExcel];function a27_0x2f75(_0x2b688b,_0x1be883){_0x2b688b=_0x2b688b-0x153;const _0x2e43e6=a27_0x2e43();let _0x2f75f9=_0x2e43e6[_0x2b688b];return _0x2f75f9;}function buildBatchUpdateResult(_0x3b1fc1,_0xde8a2f){const _0x5150c1=a27_0x4efb44;return{'operation':_0x5150c1(0x1ae),'mode':_0x5150c1(0x1b2),'ids':_0x3b1fc1,'total':_0x3b1fc1['length'],'result':_0xde8a2f};}function a27_0x2e43(){const _0x3fa880=['\x20\x20\x20\x20--dry-run\x20previews\x20the\x20request\x20only;\x20it\x20does\x20not\x20validate\x20server\x20constraints\x20or\x20write\x20permissions.','\x20\x20\x20\x20orderBy\x20may\x20reference\x20aggregate\x20output\x20aliases','read','risk','113640DYStyu','\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}}','description','filter','\x20\x20\x20\x20METADATA\x20datasets\x20do\x20not\x20support\x20aggregate\x20or\x20Custom\x20SQL','build','\x20\x20LOGICAL\x20COMBINATORS','24bHejwn','getOne','JSON\x20array\x20of\x20record\x20objects,\x20or\x20{\x22items\x22:[...]}.\x20Example:\x20\x27[{\x22name\x22:\x22a\x22},{\x22name\x22:\x22b\x22}]\x27','confirmationDescription','\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#\x20Sum\x20amount\x20grouped\x20by\x20status','\x20\x20\x20\x20select/where/having/groupBy\x20must\x20use\x20real\x20dataset\x20fields','body','aggregate','Changes\x20an\x20existing\x20business\x20record\x20in\x20the\x20current\x20app\x20dataset.\x20The\x20new\x20values\x20are\x20saved\x20immediately\x20after\x20confirmation.','str','join','map','\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','JSON\x20with\x20id\x20+\x20fields\x20to\x20update.\x20id\x20may\x20be\x20a\x20single\x20value\x20or\x20array.\x20','create','\x20\x20\x20\x20This\x20command\x20sends\x20one\x20prepared\x20batch;\x20it\x20does\x20not\x20read\x20XLSX\x20or\x20split\x20batches.','\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\x20PARAMS\x20STRUCTURE','\x20\x20\x20\x20#\x20`field`\x20is\x20accepted\x20as\x20a\x20deprecated\x20alias\x20for\x20`column`;\x20new\x20calls\x20should\x20use\x20`column`.','Preview:\x20data\x20','\x20\x20\x20\x20DB_TABLE:\x20inspect\x20dataset\x20detail,\x20validate\x20the\x20full\x20file\x20and\x20confirmed\x20unique\x20business\x20keys,','313413nSDbhH','now','14qpULJX','8642529bykfer','\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}}','Example:\x20\x27{\x22aggregate\x22:[{\x22column\x22:\x20\x22amount\x22,\x22type\x22:\x22SUM\x22,\x22alias\x22:\x22total\x22}],\x22groupBy\x22:[\x22status\x22]}\x27','params','\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}}','Deletes\x20business\x20records\x20from\x20the\x20current\x20app\x20dataset.\x20This\x20may\x20not\x20be\x20recoverable.','\x20\x20\x20\x20Record\x20each\x20batch\x20and\x20verify\x20its\x20IDs\x20or\x20unique\x20business\x20keys\x20before\x20continuing.','2315712AEHIEA','command','\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\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions\x20(see\x20operators\x20above)','delete','14zxthiG','\x20\x20\x20\x20Filtering\x20and\x20pagination\x20are\x20controlled\x20only\x20via\x20one\x20JSON\x20object\x20in\x20--params.','code','\x20\x20\x20\x20aggregate\x20supports\x20a\x20single\x20DB_TABLE\x20dataset\x20only','dryRun','\x20\x20\x20\x20and\x20increment\x20only\x20currentPage.\x20Use\x20a\x20stable\x20unique\x20orderBy\x20field\x20to\x20avoid\x20duplicates\x20or\x20gaps.','\x20\x20\x20\x20No\x20import\x20checkpoint,\x20--resume,\x20automatic\x20upsert,\x20or\x20atomic\x20rollback\x20guarantee.','\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}}','\x20completed\x20in\x20','\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}','\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','5HjaxeK','9878570RVtaze','batchCreate','helpExtra','\x20\x20AGGREGATE\x20ALIAS\x20BOUNDARY','data','paramsRequired','\x20\x20\x20\x20aggregate[].alias\x20defines\x20the\x20output\x20field\x20name\x20only','\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}','Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','JSON\x20with\x20field\x20values.\x20Example:\x20\x27{\x22name\x22:\x22test\x22,\x22amount\x22:100}\x27','\x20\x20\x20\x20Stop\x20on\x20unknown\x20outcomes\x20or\x20conflicts;\x20reconcile\x20before\x20retrying,\x20never\x20blindly\x20resend\x20a\x20batch.','\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}}','56185ArKYep','\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.','/api/{appCode}/','\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\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page\x20(default:\x2020)','write','\x20\x20DATASET\x20BOUNDARY','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\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}','Update\x20an\x20existing\x20data\x20record','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Pre-aggregation\x20filter\x20(same\x20operators\x20as\x20data\x20filter)','\x20\x20\x20\x20then\x20convert\x20rows\x20to\x20JSON\x20and\x20split\x20within\x20the\x20target\x20API\x20row/byte\x20and\x20local\x20argument\x20limits.','update','POST','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20on\x20dataset\x20','batch','\x20\x20EXCEL\x20ROUTES','11ZVHpHi','\x20\x20PAGINATION','\x20\x20EXAMPLES','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20aggregate\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Aggregation\x20definitions\x20(see\x20AGGREGATE\x20TYPES\x20above)','\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}}','Create\x20one\x20record\x20in\x20the\x20dataset','528024sfoEDr','\x20\x20\x20\x20#\x20Count\x20orders\x20per\x20region\x20with\x20filter','\x20\x20\x20\x20Non-Excel\x20batchCreate\x20remains\x20available\x20for\x20METADATA\x20and\x20DB_TABLE.','\x20\x20WHERE\x20OPERATORS','Delete\x20data\x20records\x20(non-interactive\x20mode\x20requires\x20--yes)','39TtgmIO','Writes\x20one\x20new\x20business\x20record\x20to\x20the\x20current\x20app\x20dataset.\x20It\x20is\x20saved\x20immediately\x20after\x20confirmation.','high-risk-write','Examples:\x20\x27{\x22id\x22:123,\x22status\x22:\x22completed\x22}\x27,\x20\x27{\x22id\x22:[1,2,3],\x22status\x22:\x22completed\x22}\x27','\x20\x20\x20\x20METADATA:\x20use\x20lovrabet\x20data\x20import-excel\x20with\x20checkpoint\x20recovery.','operation'];a27_0x2e43=function(){return _0x3fa880;};return a27_0x2e43();}
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a28_0x311a11=a28_0x12e3;(function(_0x10d725,_0x3025fe){const _0x163f65=a28_0x12e3,_0x246ac5=_0x10d725();while(!![]){try{const _0x52100d=-parseInt(_0x163f65(0x1a8))/0x1+-parseInt(_0x163f65(0x197))/0x2+-parseInt(_0x163f65(0x1aa))/0x3*(-parseInt(_0x163f65(0x1a5))/0x4)+-parseInt(_0x163f65(0x1a7))/0x5+parseInt(_0x163f65(0x183))/0x6+parseInt(_0x163f65(0x19e))/0x7+parseInt(_0x163f65(0x192))/0x8;if(_0x52100d===_0x3025fe)break;else _0x246ac5['push'](_0x246ac5['shift']());}catch(_0xd1652e){_0x246ac5['push'](_0x246ac5['shift']());}}}(a28_0x2c34,0x2e447));import{getDatasetDetail,listDatasets}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a28_0x12e3(_0x5805fe,_0x568e1b){_0x5805fe=_0x5805fe-0x17d;const _0x2c34f4=a28_0x2c34();let _0x12e336=_0x2c34f4[_0x5805fe];return _0x12e336;}import{CliErrors}from'../../errors.js';function isRecord(_0x1c6d00){const _0x19f8c0=a28_0x12e3;return _0x1c6d00!==null&&typeof _0x1c6d00==='object'&&!Array[_0x19f8c0(0x1be)](_0x1c6d00);}function normalizeField(_0x1a5f31){const _0x2681ad=a28_0x12e3;if(_0x1a5f31['deleted'])return null;const _0x49c3ee=Boolean(_0x1a5f31[_0x2681ad(0x1ab)]!==undefined||_0x1a5f31[_0x2681ad(0x18a)]!==undefined);let _0x101e04={};if(!_0x49c3ee&&typeof _0x1a5f31[_0x2681ad(0x1b9)]===_0x2681ad(0x187))try{_0x101e04=JSON[_0x2681ad(0x1af)](_0x1a5f31[_0x2681ad(0x1b9)]);}catch{}const _0x5f5a70=_0x49c3ee?_0x1a5f31[_0x2681ad(0x1c4)]:_0x1a5f31['code'],_0x22bd72=_0x49c3ee?_0x1a5f31[_0x2681ad(0x1ab)]:_0x1a5f31[_0x2681ad(0x1c4)],_0x5418b4=_0x49c3ee?_0x1a5f31[_0x2681ad(0x18a)]:_0x1a5f31['type']||_0x1a5f31[_0x2681ad(0x1ba)],_0x488bed=_0x49c3ee?_0x1a5f31[_0x2681ad(0x18e)]===!![]:_0x101e04['pkField']===!![],_0x462f70=_0x49c3ee?_0x1a5f31[_0x2681ad(0x193)]===!![]:_0x101e04[_0x2681ad(0x193)]===!![],_0x265177=_0x49c3ee?_0x1a5f31['options']??null:_0x101e04['options']??null,_0x48962e={'name':_0x5f5a70,'displayName':_0x22bd72||_0x5f5a70,'type':_0x5418b4,'dbType':_0x1a5f31[_0x2681ad(0x181)],'pk':_0x488bed,'required':_0x462f70,'description':_0x1a5f31[_0x2681ad(0x195)]||undefined};return Array[_0x2681ad(0x1be)](_0x265177)&&_0x265177[_0x2681ad(0x1a0)]>0x0&&(_0x48962e['options']=_0x265177),_0x48962e;}function parseJsonMaybe(_0x1993ea){const _0x291aa5=a28_0x12e3;if(typeof _0x1993ea!==_0x291aa5(0x187))return _0x1993ea;try{return JSON['parse'](_0x1993ea);}catch{return _0x1993ea;}}function normalizeOperationEntry(_0x57aeae,_0x406c95){const _0x4551be=a28_0x12e3;if(!_0x406c95||typeof _0x406c95!==_0x4551be(0x189))return null;if(!_0x406c95[_0x4551be(0x1c5)]||!_0x406c95[_0x4551be(0x19f)])return null;const _0x5c8d80={'name':_0x57aeae,'method':_0x406c95[_0x4551be(0x1c5)],'path':_0x406c95['path']};if(_0x406c95[_0x4551be(0x1a9)])_0x5c8d80['host']=_0x406c95[_0x4551be(0x1a9)];if(_0x406c95[_0x4551be(0x1bb)]!=null)_0x5c8d80[_0x4551be(0x1bb)]=parseJsonMaybe(_0x406c95[_0x4551be(0x1bb)]);if(_0x406c95[_0x4551be(0x1bf)]!=null)_0x5c8d80['responseBody']=parseJsonMaybe(_0x406c95[_0x4551be(0x1bf)]);if(_0x406c95['beforeScriptId']!=null)_0x5c8d80[_0x4551be(0x1c7)]=_0x406c95[_0x4551be(0x1c7)];if(_0x406c95['afterScriptId']!=null)_0x5c8d80[_0x4551be(0x17d)]=_0x406c95[_0x4551be(0x17d)];if(Array[_0x4551be(0x1be)](_0x406c95[_0x4551be(0x1c6)]))_0x5c8d80[_0x4551be(0x1c6)]=_0x406c95[_0x4551be(0x1c6)];if(Array[_0x4551be(0x1be)](_0x406c95[_0x4551be(0x188)]))_0x5c8d80['responseFields']=_0x406c95['responseFields'];return _0x5c8d80;}function summarizeDbtable(_0x4c31b9){const _0x5e759c=a28_0x12e3,_0x16273c={},_0x56aa71=[_0x5e759c(0x1b0),_0x5e759c(0x182),_0x5e759c(0x18f),_0x5e759c(0x1b6),_0x5e759c(0x18e),'allFields','logicField',_0x5e759c(0x1b3),_0x5e759c(0x1b1),_0x5e759c(0x17e),_0x5e759c(0x1ac),_0x5e759c(0x17f),_0x5e759c(0x191),_0x5e759c(0x184),_0x5e759c(0x1c0)];for(const _0x2ce90a of _0x56aa71){if(_0x4c31b9[_0x2ce90a]!==undefined)_0x16273c[_0x2ce90a]=_0x4c31b9[_0x2ce90a];}return typeof _0x16273c[_0x5e759c(0x1bd)]===_0x5e759c(0x187)&&_0x16273c['allFields'][_0x5e759c(0x1a0)]>0x0&&(_0x16273c[_0x5e759c(0x1c2)]=_0x16273c[_0x5e759c(0x1bd)][_0x5e759c(0x180)](',')[_0x5e759c(0x18d)](_0x894d5=>_0x894d5[_0x5e759c(0x1c3)]())[_0x5e759c(0x1a2)](Boolean)),_0x16273c;}function a28_0x2c34(){const _0x1fc965=['1110774BjWYwN','labelField','formatRules','doVersion','string','responseFields','object','doType','operations','dataset','map','pkField','tableName','source','modifierNameField','3263376oJsxbV','required','dbtableConfig','description','modelCode','494932PTdSrr','relatedPageInfoList','title','columnCodeListWithDeleted','validateRules','tableComment','push','486206fxsRnn','path','length','Dataset\x20detail\x20must\x20be\x20an\x20object.','filter','modelId','indexes','240868JbZuje','deleted','1178445CDoGlr','110277qBTDNV','host','6dzbWhQ','displayName','creatorNameField','entries','code','parse','dbId','updateTimeField','relations','createTimeField','appCode','fields','datasetKey','sourceType','properties','extend','dataType','requestBody','str','allFields','isArray','responseBody','dblinkInfoDTO','read','allFieldNames','trim','name','method','requestFields','beforeScriptId','afterScriptId','creatorIdField','modifierIdField','split','dbType','dbName'];a28_0x2c34=function(){return _0x1fc965;};return a28_0x2c34();}function normalizeRelatedPages(_0x116ad5){const _0x22e901=a28_0x12e3;if(!Array[_0x22e901(0x1be)](_0x116ad5))return[];return _0x116ad5[_0x22e901(0x1a2)](_0x3e4526=>_0x3e4526&&typeof _0x3e4526===_0x22e901(0x189))['map'](_0x214af1=>({'id':_0x214af1['id'],'type':_0x214af1['type'],'code':_0x214af1['code'],'title':_0x214af1[_0x22e901(0x199)],'deleted':_0x214af1[_0x22e901(0x1a6)]===!![]}));}function normalizeFallbackFieldName(_0x4e474b,_0x39dd85){const _0x16a8e3=a28_0x12e3,_0x323c72=_0x4e474b[_0x16a8e3(0x1c3)]();if(!_0x323c72)return null;return{'name':_0x323c72,'displayName':_0x323c72,'type':undefined,'dbType':undefined,'pk':_0x323c72===_0x39dd85,'required':![],'description':undefined};}async function loadListFieldFallback(_0xf0893,_0x224bf0){const _0x2e1fcb=a28_0x12e3;if(!_0xf0893||!_0x224bf0)return[];try{const _0x476672=await listDatasets(_0xf0893,{'code':_0x224bf0}),_0x12a9d0=_0x476672['find'](_0x1db789=>_0x1db789[_0x2e1fcb(0x1ae)]===_0x224bf0)??_0x476672[0x0],_0x1812df=_0x12a9d0?.[_0x2e1fcb(0x194)]??{},_0x4698e0=typeof _0x1812df['allFields']==='string'?_0x1812df[_0x2e1fcb(0x1bd)][_0x2e1fcb(0x180)](','):[];return _0x4698e0[_0x2e1fcb(0x18d)](_0x144cc0=>normalizeFallbackFieldName(_0x144cc0,_0x1812df['pkField']))[_0x2e1fcb(0x1a2)](_0x12ddba=>_0x12ddba!==null);}catch{return[];}}export const datasetDetail={'service':a28_0x311a11(0x18c),'command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields,\x20relations,\x20and\x20operations','risk':a28_0x311a11(0x1c1),'flags':[CODE_FLAG],async 'execute'(_0x408fe2){const _0x294715=a28_0x311a11,_0x2749ce=await getDatasetDetail(_0x408fe2[_0x294715(0x1bc)](_0x294715(0x1ae)));if(!isRecord(_0x2749ce))throw CliErrors['apiError'](_0x294715(0x1a1));const _0x37c5bc=Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x1b5)])?_0x2749ce['fields']:Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x1b8)])?_0x2749ce[_0x294715(0x1b8)]:[];let _0x4e5eef=_0x37c5bc['map'](_0x228d4a=>normalizeField(_0x228d4a))[_0x294715(0x1a2)](_0x3a52b9=>_0x3a52b9!==null);_0x4e5eef['length']===0x0&&(_0x4e5eef=await loadListFieldFallback(_0x408fe2[_0x294715(0x1b4)],_0x408fe2[_0x294715(0x1bc)](_0x294715(0x1ae))));const _0x84929e=_0x2749ce[_0x294715(0x18b)]??{},_0x21afa6=[];for(const [_0x5cb422,_0x4a4037]of Object[_0x294715(0x1ad)](_0x84929e)){const _0x19aa78=normalizeOperationEntry(_0x5cb422,_0x4a4037);if(_0x19aa78)_0x21afa6[_0x294715(0x19d)](_0x19aa78);}const _0x39a80a=isRecord(_0x2749ce[_0x294715(0x194)])?_0x2749ce[_0x294715(0x194)]:{},_0x2a8111=isRecord(_0x2749ce[_0x294715(0x18c)])?_0x2749ce[_0x294715(0x18c)]:{},_0x5868b5=_0x39a80a['dbId']!=null?{'id':_0x39a80a[_0x294715(0x1b0)],'name':_0x39a80a[_0x294715(0x182)]??null}:undefined;let _0x70d567;return typeof _0x2749ce[_0x294715(0x1b9)]===_0x294715(0x187)&&(_0x70d567=parseJsonMaybe(_0x2749ce[_0x294715(0x1b9)])),{'ok':!![],'data':{'id':_0x2749ce[_0x294715(0x1a3)]??_0x2749ce['id'],'name':_0x2749ce['name'],'code':_0x2749ce[_0x294715(0x196)]||_0x2749ce[_0x294715(0x1ae)],'doVersion':_0x2749ce[_0x294715(0x186)],'description':_0x2749ce[_0x294715(0x195)]||_0x2a8111[_0x294715(0x19c)]||undefined,'source':_0x2749ce[_0x294715(0x190)]||_0x2a8111[_0x294715(0x1b7)],'table':_0x39a80a[_0x294715(0x18f)]||_0x2a8111[_0x294715(0x18f)],'datasetKey':_0x39a80a[_0x294715(0x1b6)],'pk':_0x39a80a[_0x294715(0x18e)],'db':_0x5868b5,'dbtable':summarizeDbtable(_0x39a80a),'fields':_0x4e5eef,'operations':_0x21afa6,'indexes':Array[_0x294715(0x1be)](_0x2a8111[_0x294715(0x1a4)])?_0x2a8111[_0x294715(0x1a4)]:[],'relations':_0x2749ce[_0x294715(0x1b2)]??null,'relatedPages':normalizeRelatedPages(_0x2749ce[_0x294715(0x198)]),...Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x19a)])?{'columnCodeListWithDeleted':_0x2749ce[_0x294715(0x19a)]}:{},'formatRules':Array[_0x294715(0x1be)](_0x2749ce[_0x294715(0x185)])?_0x2749ce[_0x294715(0x185)]:[],'validateRules':Array[_0x294715(0x1be)](_0x2749ce['validateRules'])?_0x2749ce[_0x294715(0x19b)]:[],..._0x70d567!==undefined?{'extend':_0x70d567}:{},'stats':{'fieldCount':_0x4e5eef[_0x294715(0x1a0)],'operationCount':_0x21afa6[_0x294715(0x1a0)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x29ba70,_0x39f7f8){const _0x556847=a29_0x9038,_0x1d1777=_0x29ba70();while(!![]){try{const _0x31b6a7=parseInt(_0x556847(0x13b))/0x1+parseInt(_0x556847(0x140))/0x2*(-parseInt(_0x556847(0x138))/0x3)+-parseInt(_0x556847(0x13f))/0x4+-parseInt(_0x556847(0x13c))/0x5*(-parseInt(_0x556847(0x139))/0x6)+parseInt(_0x556847(0x141))/0x7*(-parseInt(_0x556847(0x143))/0x8)+-parseInt(_0x556847(0x142))/0x9*(-parseInt(_0x556847(0x13d))/0xa)+parseInt(_0x556847(0x13e))/0xb*(parseInt(_0x556847(0x13a))/0xc);if(_0x31b6a7===_0x39f7f8)break;else _0x1d1777['push'](_0x1d1777['shift']());}catch(_0x258149){_0x1d1777['push'](_0x1d1777['shift']());}}}(a29_0x3e5e,0x26821));function a29_0x3e5e(){const _0x1ca8f7=['28326Ubuuqk','21JZGnAT','2241onIXkP','307576HxDGDn','27NIpjuP','25812GXypyP','12ZqkxjQ','110619pSxoas','175gPXEeO','2350aZHZgi','3765421aVxapB','1045912ofDmKI'];a29_0x3e5e=function(){return _0x1ca8f7;};return a29_0x3e5e();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetSdkDoc}from'../../commands/dataset/sdk-doc.js';function a29_0x9038(_0x40e0d9,_0x1d9234){_0x40e0d9=_0x40e0d9-0x138;const _0x3e5ee8=a29_0x3e5e();let _0x9038c5=_0x3e5ee8[_0x40e0d9];return _0x9038c5;}export const datasetDefinitions=[datasetList,datasetDetail,datasetSdkDoc];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a30_0x524806=a30_0x46e4;(function(_0x106619,_0x2629e4){const _0x4e17e2=a30_0x46e4,_0x58e166=_0x106619();while(!![]){try{const _0xdc7b7d=-parseInt(_0x4e17e2(0x175))/0x1*(-parseInt(_0x4e17e2(0x172))/0x2)+parseInt(_0x4e17e2(0x185))/0x3+parseInt(_0x4e17e2(0x17b))/0x4*(-parseInt(_0x4e17e2(0x16d))/0x5)+-parseInt(_0x4e17e2(0x17f))/0x6+parseInt(_0x4e17e2(0x183))/0x7*(parseInt(_0x4e17e2(0x170))/0x8)+parseInt(_0x4e17e2(0x174))/0x9+parseInt(_0x4e17e2(0x182))/0xa;if(_0xdc7b7d===_0x2629e4)break;else _0x58e166['push'](_0x58e166['shift']());}catch(_0x2da7f0){_0x58e166['push'](_0x58e166['shift']());}}}(a30_0x568a,0x8a183));import{listDatasets}from'../../core/api-client.js';function a30_0x46e4(_0x506c39,_0x2c7bce){_0x506c39=_0x506c39-0x16a;const _0x568ad2=a30_0x568a();let _0x46e4f7=_0x568ad2[_0x506c39];return _0x46e4f7;}import{CODE_FLAG}from'../../commands/common/flags.js';export const datasetList={'service':a30_0x524806(0x176),'command':a30_0x524806(0x173),'description':a30_0x524806(0x17a),'risk':'read','flags':[{'name':a30_0x524806(0x16c),'type':a30_0x524806(0x177),'description':'Filter\x20by\x20dataset\x20name\x20(server-side\x20fuzzy\x20match)'},{'name':a30_0x524806(0x178),'type':'string','description':'Filter\x20by\x20physical\x20table\x20name\x20(server-side\x20prefix\x20match;\x20SQL\x20LIKE\x20wildcards\x20%\x20and\x20_\x20apply)'},{...CODE_FLAG,'required':![],'description':a30_0x524806(0x16b)}],async 'execute'(_0x21ef7e){const _0x560930=a30_0x524806,_0x22a141=_0x21ef7e['str'](_0x560930(0x16c)),_0x31656a=_0x21ef7e[_0x560930(0x184)](_0x560930(0x16e)),_0x19eecb=_0x21ef7e[_0x560930(0x184)](_0x560930(0x178)),_0x37026c=await listDatasets(_0x21ef7e['appCode'],{..._0x22a141&&{'name':_0x22a141},..._0x31656a&&{'code':_0x31656a},..._0x19eecb&&{'tableName':_0x19eecb}});return{'ok':!![],'data':{'total':_0x37026c[_0x560930(0x179)],'datasets':_0x37026c[_0x560930(0x16f)](_0x3a6f9b=>{const _0x44dbae=_0x560930,_0x5bdeba=_0x3a6f9b[_0x44dbae(0x17e)]??{};return{'id':_0x3a6f9b['id'],'code':_0x3a6f9b[_0x44dbae(0x16e)],'name':_0x3a6f9b[_0x44dbae(0x16c)],'source':_0x3a6f9b['source'],'description':_0x3a6f9b[_0x44dbae(0x17c)],'table':_0x5bdeba[_0x44dbae(0x181)],'datasetKey':_0x5bdeba[_0x44dbae(0x180)],'pk':_0x5bdeba['pkField'],'fields':_0x5bdeba[_0x44dbae(0x171)]?_0x5bdeba['allFields'][_0x44dbae(0x16a)](',')[_0x44dbae(0x16f)](_0xb1585d=>_0xb1585d[_0x44dbae(0x17d)]()):[]};})}};}};function a30_0x568a(){const _0x3b94a8=['table-name','length','List\x20datasets\x20in\x20the\x20app\x20(server-side\x20name/code/table-name\x20filters\x20combine\x20with\x20AND)','217928XgwpoW','description','trim','dbtableConfig','5325330UNFirr','datasetKey','tableName','44950TAHIBb','1673aYqPAJ','str','117468yUArZs','split','Filter\x20by\x20dataset\x20code\x20(server-side\x20exact\x20match)','name','25cHMHaZ','code','map','31368zKkFiC','allFields','438370NXdyKd','list','2758140LdDhWj','2ZDkZdH','dataset','string'];a30_0x568a=function(){return _0x3b94a8;};return a30_0x568a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a31_0x6aca71=a31_0x1f2d;(function(_0x2a5ecc,_0x3e2cbf){const _0x17a1b0=a31_0x1f2d,_0x21ecf4=_0x2a5ecc();while(!![]){try{const _0x2954e6=-parseInt(_0x17a1b0(0x1f1))/0x1+-parseInt(_0x17a1b0(0x1fd))/0x2*(-parseInt(_0x17a1b0(0x1fe))/0x3)+-parseInt(_0x17a1b0(0x202))/0x4+-parseInt(_0x17a1b0(0x1fc))/0x5+parseInt(_0x17a1b0(0x1f2))/0x6*(-parseInt(_0x17a1b0(0x1f3))/0x7)+-parseInt(_0x17a1b0(0x1fb))/0x8*(parseInt(_0x17a1b0(0x1f9))/0x9)+parseInt(_0x17a1b0(0x200))/0xa;if(_0x2954e6===_0x3e2cbf)break;else _0x21ecf4['push'](_0x21ecf4['shift']());}catch(_0x109816){_0x21ecf4['push'](_0x21ecf4['shift']());}}}(a31_0x47d7,0x6519d));import{getDatasetSdkUsageDoc}from'../../core/api-client.js';import{CODE_FLAG}from'../../commands/common/flags.js';function a31_0x1f2d(_0x350c9,_0x5c3a4d){_0x350c9=_0x350c9-0x1f0;const _0x47d7d8=a31_0x47d7();let _0x1f2d9f=_0x47d7d8[_0x350c9];return _0x1f2d9f;}const DEFAULT_MARKDOWN=a31_0x6aca71(0x1f0);function a31_0x47d7(){const _0x24ac76=['18543cpKHla','str','Dataset\x20code\x20(32\x20characters).\x20Numeric\x20dataset\x20IDs\x20are\x20not\x20accepted.','sdk-doc','appCode','string','879813KWkyEa','trim','48URsGGA','787830esJDDg','326234IkPTcX','15QOTKny','code','18629500tiqKvG','Get\x20SDK\x20usage\x20markdown\x20for\x20a\x20dataset\x20code','2680916qgpIJV','#\x20Dataset\x20SDK\x20Usage\x20Documentation\x0a\x0aNo\x20SDK\x20usage\x20documentation\x20is\x20available.','344130kLxmQS','1146jyVNTJ'];a31_0x47d7=function(){return _0x24ac76;};return a31_0x47d7();}export function formatDatasetSdkMarkdown(_0x1371e6){const _0x277695=a31_0x6aca71,_0x113222=typeof _0x1371e6===_0x277695(0x1f8)?_0x1371e6[_0x277695(0x1fa)]():'';return _0x113222||DEFAULT_MARKDOWN;}export const datasetSdkDoc={'service':'dataset','command':a31_0x6aca71(0x1f6),'description':a31_0x6aca71(0x201),'risk':'read','flags':[{...CODE_FLAG,'description':a31_0x6aca71(0x1f5)}],async 'execute'(_0x46c739){const _0x3a796d=a31_0x6aca71,_0x4a03fd=_0x46c739[_0x3a796d(0x1f4)](_0x3a796d(0x1ff)),_0x1ab86c=await getDatasetSdkUsageDoc(_0x4a03fd,_0x46c739['appCode']);return{'ok':!![],'data':{'code':_0x4a03fd,'appCode':_0x46c739[_0x3a796d(0x1f7)],'markdown':formatDatasetSdkMarkdown(_0x1ab86c)}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a32_0x19c423=a32_0x5b1f;(function(_0x3dbeef,_0x354110){const _0x5c56ab=a32_0x5b1f,_0x43cf6b=_0x3dbeef();while(!![]){try{const _0x5bf93a=-parseInt(_0x5c56ab(0x21a))/0x1*(-parseInt(_0x5c56ab(0x21b))/0x2)+-parseInt(_0x5c56ab(0x1c2))/0x3+-parseInt(_0x5c56ab(0x1f0))/0x4*(-parseInt(_0x5c56ab(0x1ce))/0x5)+parseInt(_0x5c56ab(0x215))/0x6+parseInt(_0x5c56ab(0x218))/0x7*(parseInt(_0x5c56ab(0x1ba))/0x8)+parseInt(_0x5c56ab(0x1e4))/0x9+-parseInt(_0x5c56ab(0x21d))/0xa;if(_0x5bf93a===_0x354110)break;else _0x43cf6b['push'](_0x43cf6b['shift']());}catch(_0x3b8b45){_0x43cf6b['push'](_0x43cf6b['shift']());}}}(a32_0x2fc2,0x8f250));import a32_0x288962 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';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(_0x454042){const _0x38ea20=a32_0x5b1f,_0xac16ad=getCliVersion(),_0x47c900=buildConfigFromFlags({});let _0x146398,_0x491357;try{_0x146398=normalizeLovrabetRegion(_0x47c900[_0x38ea20(0x21f)][_0x38ea20(0x220)]);}catch(_0x235d5d){_0x491357=_0x235d5d instanceof Error?_0x235d5d:new Error(String(_0x235d5d));}let _0x942b8a;if(!_0x491357)try{await initGlobalEnvironment(_0x47c900);}catch(_0x1e7f00){_0x942b8a=_0x1e7f00 instanceof Error?_0x1e7f00:new Error(String(_0x1e7f00));}console[_0x38ea20(0x1c4)](),console['log'](a32_0x288962[_0x38ea20(0x1d4)](CLI_BIN_NAME+_0x38ea20(0x1dd))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)]('─'[_0x38ea20(0x1ca)](0x32))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1f2)+_0xac16ad),console[_0x38ea20(0x1c4)](_0x38ea20(0x1a5)+process['version']),console[_0x38ea20(0x1c4)](_0x38ea20(0x1bf)+process['platform']+'\x20'+process['arch']);const _0x379945=inspectBuiltinSkill();console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)]('\x20\x20Built-in\x20Skill')),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1e6)+(_0x379945['state']==='current'?a32_0x288962[_0x38ea20(0x1b8)]('✓\x20current'):a32_0x288962[_0x38ea20(0x1fa)]('✗\x20'+_0x379945[_0x38ea20(0x1bb)]))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1f3)+_0x379945[_0x38ea20(0x1e9)]),console['log']('\x20\x20Skill\x20Version:\x20\x20\x20'+(_0x379945[_0x38ea20(0x1d7)]||a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1d9)))),console['log'](_0x38ea20(0x1d6)+(_0x379945['installedPath']||a32_0x288962[_0x38ea20(0x1e8)]('(not\x20found)')));_0x379945[_0x38ea20(0x1bb)]!==_0x38ea20(0x200)&&console['log'](_0x38ea20(0x1da)+_0x379945[_0x38ea20(0x1a8)]);_0x379945[_0x38ea20(0x1f9)]&&console['log']('\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x379945[_0x38ea20(0x1f9)]);console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x1bd))),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e)));const _0xda9048=getGlobalConfigPath(),_0x409462=getProjectConfigPath();console['log'](_0x38ea20(0x1e3)+(_0xda9048||a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1cd)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1ed)+(_0x409462||a32_0x288962[_0x38ea20(0x1e8)]('(not\x20found)'))),console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x211))),console[_0x38ea20(0x1c4)](a32_0x288962['gray']('\x20\x20─'[_0x38ea20(0x1ca)](0x1e)));const _0x7ca13f=(_0x309fcc,_0x1f7082)=>{const _0x26ca3b=_0x38ea20;if(!_0x1f7082){console[_0x26ca3b(0x1c4)]('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1e8)](_0x26ca3b(0x1d1)));return;}const _0x1c64ab=inspectCliConfigJsonFile(_0x1f7082);if(_0x1c64ab[_0x26ca3b(0x1f6)]==='ok')console['log']('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1b8)]('✓\x20Valid\x20JSON'));else{if(_0x1c64ab[_0x26ca3b(0x1f6)]===_0x26ca3b(0x1c8))console[_0x26ca3b(0x1c4)]('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1fd)](_0x26ca3b(0x1ef)));else _0x1c64ab['status']===_0x26ca3b(0x217)?console[_0x26ca3b(0x1c4)]('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1e8)](_0x26ca3b(0x1d9))):(console['log']('\x20\x20'+_0x309fcc[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1fa)](_0x26ca3b(0x221))),console['log']('\x20\x20'+''[_0x26ca3b(0x20a)](0x11)+'\x20'+a32_0x288962[_0x26ca3b(0x1fa)](_0x1c64ab[_0x26ca3b(0x1af)])));}};_0x7ca13f(_0x38ea20(0x1eb),_0xda9048),_0x7ca13f(_0x38ea20(0x1ac),_0x409462);const _0xbf9f10=loadRawConfigLayers(),_0x1a5498=[Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)][_0x38ea20(0x20e)](_0xbf9f10['globalConfig'],_0x38ea20(0x1b7))?_0x38ea20(0x1ae):null,Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)][_0x38ea20(0x20e)](_0xbf9f10[_0x38ea20(0x1c6)],_0x38ea20(0x1b7))?_0x38ea20(0x212):null]['filter'](Boolean);_0x1a5498[_0x38ea20(0x1e0)]>0x0&&(console[_0x38ea20(0x1c4)]('\x20\x20Legacy\x20inherit:\x20\x20\x20'+a32_0x288962[_0x38ea20(0x1fd)]('ignored\x20in\x20'+_0x1a5498[_0x38ea20(0x1b5)]('\x20+\x20')+_0x38ea20(0x1cb))),_0x1a5498[_0x38ea20(0x1d5)](_0x38ea20(0x212))&&console[_0x38ea20(0x1c4)](_0x38ea20(0x207)+CLI_BIN_NAME+_0x38ea20(0x1ad)),_0x1a5498[_0x38ea20(0x1d5)](_0x38ea20(0x1ae))&&console['log'](_0x38ea20(0x1c5)+CLI_BIN_NAME+_0x38ea20(0x1b9)));_0x942b8a&&(console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x206))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)['repeat'](0x1e))),console[_0x38ea20(0x1c4)](_0x38ea20(0x21c)+a32_0x288962[_0x38ea20(0x1fa)](_0x38ea20(0x1d2))),console['log'](_0x38ea20(0x1e1)+_0x942b8a[_0x38ea20(0x1af)]),Object[_0x38ea20(0x1b4)]['hasOwnProperty']['call'](_0xbf9f10[_0x38ea20(0x1c6)],_0x38ea20(0x214))&&console[_0x38ea20(0x1c4)](_0x38ea20(0x219)+CLI_BIN_NAME+_0x38ea20(0x1e7)),Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)]['call'](_0xbf9f10['globalConfig'],'routing')&&console[_0x38ea20(0x1c4)](_0x38ea20(0x1ea)+CLI_BIN_NAME+_0x38ea20(0x1cf)));_0x491357&&(console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold']('\x20\x20Country/Region\x20Configuration')),console[_0x38ea20(0x1c4)](a32_0x288962['gray'](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console['log'](_0x38ea20(0x21c)+a32_0x288962['red'](_0x38ea20(0x1d2))),console[_0x38ea20(0x1c4)](_0x38ea20(0x1e1)+_0x491357['message']),Object['prototype']['hasOwnProperty'][_0x38ea20(0x20e)](_0xbf9f10[_0x38ea20(0x1c6)],'region')&&console[_0x38ea20(0x1c4)](_0x38ea20(0x219)+CLI_BIN_NAME+_0x38ea20(0x1cc)),Object[_0x38ea20(0x1b4)][_0x38ea20(0x1a9)]['call'](_0xbf9f10[_0x38ea20(0x1b0)],'region')&&console['log'](_0x38ea20(0x1ea)+CLI_BIN_NAME+_0x38ea20(0x213)));console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold'](_0x38ea20(0x1f7))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console['log'](_0x38ea20(0x203)+(_0x47c900[_0x38ea20(0x1b3)]||a32_0x288962[_0x38ea20(0x1fa)](_0x38ea20(0x205)))),console[_0x38ea20(0x1c4)]('\x20\x20region:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x146398??a32_0x288962['red'](_0x38ea20(0x1c7)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x210)+_0x47c900[_0x38ea20(0x20d)]),console[_0x38ea20(0x1c4)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x47c900[_0x38ea20(0x1f5)]||a32_0x288962[_0x38ea20(0x1e8)]('(none)'))),console['log'](_0x38ea20(0x1fe)+(_0x47c900[_0x38ea20(0x1b6)]||a32_0x288962['gray'](_0x38ea20(0x209)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x202)+(_0x47c900[_0x38ea20(0x1df)]||a32_0x288962['gray'](_0x38ea20(0x1bc)+DEFAULT_CONFIG_VALUES[_0x38ea20(0x1df)]+')'))),console[_0x38ea20(0x1c4)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x47c900[_0x38ea20(0x20c)]??a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1ee)))),console[_0x38ea20(0x1c4)](_0x38ea20(0x208)+_0x47c900[_0x38ea20(0x1c9)]),console[_0x38ea20(0x1c4)](_0x38ea20(0x1a6)+_0x47c900[_0x38ea20(0x1ff)]),console[_0x38ea20(0x1c4)]('\x20\x20auth\x20(effective):\x20'+AUTH_MODE[_0x38ea20(0x1de)]),console[_0x38ea20(0x1c4)](_0x38ea20(0x1c3)+(_0x47c900[_0x38ea20(0x1b2)]?a32_0x288962['green'](_0x38ea20(0x1c1)+_0x47c900[_0x38ea20(0x1b2)][_0x38ea20(0x1e0)]+')'):a32_0x288962[_0x38ea20(0x1e8)]('(none)'))),console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold'](_0x38ea20(0x1ec))),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)['repeat'](0x1e)));_0x942b8a||_0x491357?console[_0x38ea20(0x1c4)](_0x38ea20(0x21c)+a32_0x288962[_0x38ea20(0x1fa)](_0x38ea20(0x1a7))):(console[_0x38ea20(0x1c4)](_0x38ea20(0x1f4)+getApiDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x201)+getUserDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x1be)+getRuntimeDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x1c0)+getSkillDomain()),console[_0x38ea20(0x1c4)](_0x38ea20(0x1fc)+(getKbServiceDomain()??'not\x20configured')));console[_0x38ea20(0x1c4)](),console[_0x38ea20(0x1c4)](a32_0x288962['bold'](_0x38ea20(0x1b1))),console[_0x38ea20(0x1c4)](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e)));const _0x16239e=inspectServiceRegistry();console['log'](_0x38ea20(0x1d3)+_0x16239e['registryPath']),console[_0x38ea20(0x1c4)](_0x38ea20(0x21c)+formatServiceRegistryStatus(_0x16239e)),console['log']('\x20\x20Services:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16239e['serviceCount']),console['log']('\x20\x20Commands:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16239e[_0x38ea20(0x1d0)]);for(const _0x50c1fc of _0x16239e[_0x38ea20(0x1fb)]){console[_0x38ea20(0x1c4)]('\x20\x20'+(_0x50c1fc['serviceCode']+':')[_0x38ea20(0x20a)](0x11)+'\x20'+(_0x50c1fc['name']||a32_0x288962['gray'](_0x38ea20(0x204)))+'\x20('+_0x50c1fc[_0x38ea20(0x1d0)]+_0x38ea20(0x1e5)),console['log']('\x20\x20'+''[_0x38ea20(0x20a)](0x11)+'\x20Imported\x20from:\x20'+_0x50c1fc['source'][_0x38ea20(0x20b)]);}return console[_0x38ea20(0x1c4)](),console['log'](a32_0x288962[_0x38ea20(0x1d4)](_0x38ea20(0x1ab))),console['log'](a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x1f1)[_0x38ea20(0x1ca)](0x1e))),console[_0x38ea20(0x1c4)](_0x38ea20(0x216)+a32_0x288962[_0x38ea20(0x1b8)](AUTH_MODE[_0x38ea20(0x1de)]+'\x20(accessKey)')),console[_0x38ea20(0x1c4)](_0x38ea20(0x1e2)+a32_0x288962[_0x38ea20(0x1e8)](_0x38ea20(0x20f))),console[_0x38ea20(0x1c4)](),{'ok':!![]};}function formatServiceRegistryStatus(_0x3d2937){const _0x49e59c=a32_0x5b1f;if(_0x3d2937['status']==='ok')return a32_0x288962[_0x49e59c(0x1b8)](_0x49e59c(0x1db));if(_0x3d2937[_0x49e59c(0x1f6)]===_0x49e59c(0x217))return a32_0x288962[_0x49e59c(0x1e8)](_0x49e59c(0x1cd));if(_0x3d2937[_0x49e59c(0x1f6)]===_0x49e59c(0x1c8))return a32_0x288962[_0x49e59c(0x1fd)](_0x49e59c(0x1dc));return a32_0x288962['red'](_0x49e59c(0x1d2)+(_0x3d2937[_0x49e59c(0x1af)]?':\x20'+_0x3d2937[_0x49e59c(0x1af)]:''));}function a32_0x5b1f(_0x51ce39,_0x202b72){_0x51ce39=_0x51ce39-0x1a5;const _0x2fc29e=a32_0x2fc2();let _0x5b1f3f=_0x2fc29e[_0x51ce39];return _0x5b1f3f;}export const doctorDefinition={'service':a32_0x19c423(0x21e),'command':a32_0x19c423(0x1d8),'description':a32_0x19c423(0x1aa),'risk':a32_0x19c423(0x1f8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a32_0x2fc2(){const _0x322ab1=['\x20\x20Service\x20Tree','accessKey','appCode','prototype','join','currentApp','inherit','green','\x20config\x20delete\x20inherit\x20--global','167408nrMxEp','state','(default:\x20','\x20\x20Config\x20Files','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20skillDomain:\x20\x20\x20\x20\x20','(set,\x20length=','1824480ajMjbE','\x20\x20accessKey:\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Repair\x20global:\x20\x20\x20\x20','projectConfig','(invalid)','empty','riskLevel','repeat','\x20config','\x20config\x20delete\x20region','(not\x20found)','1325IlDzrI','\x20config\x20delete\x20routing\x20--global','commandCount','(no\x20file)','✗\x20Invalid','\x20\x20Registry:\x20\x20\x20\x20\x20\x20\x20\x20','bold','includes','\x20\x20Installed\x20Path:\x20\x20','skillVersion','check','(missing)','\x20\x20Repair:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Loaded','⚠\x20Empty','\x20doctor','ClientAk','format','length','\x20\x20Reason:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Session\x20check:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8284131uSQILj','\x20commands)','\x20\x20State:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20config\x20delete\x20routing','gray','packageVersion','\x20\x20Repair\x20global:\x20\x20\x20','Global','\x20\x20API\x20Endpoints','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','⚠\x20Empty\x20(treated\x20as\x20{})','12732beQYAM','\x20\x20─','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Package\x20Version:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','defaultApp','status','\x20\x20Merged\x20Config','read','reason','red','services','\x20\x20kbServiceDomain:\x20','yellow','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','verbose','current','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(unnamed)','(not\x20set)','\x20\x20Routing\x20Configuration','\x20\x20Repair\x20project:\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(none)','padEnd','path','pageSize','locale','call','(removed\x20—\x20cookie\x20auth\x20disabled)','\x20\x20app\x20locale:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','project','\x20config\x20init','routing','6737076xzFABA','\x20\x20Mode:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','missing','294YPqRXN','\x20\x20Repair\x20project:\x20\x20','1753BUerfz','788guiRbs','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','32618940XRwwFf','doctor','raw','region','✗\x20Invalid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unavailable\x20until\x20routing\x20configuration\x20is\x20repaired','repairCommand','hasOwnProperty','Diagnose\x20CLI\x20configuration\x20and\x20environment','\x20\x20Auth','Project','\x20config\x20delete\x20inherit','global','message','globalConfig'];a32_0x2fc2=function(){return _0x322ab1;};return a32_0x2fc2();}
|
|
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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x3c72f2=a33_0x4a32;(function(_0x5a497c,_0x365686){const _0x10fc95=a33_0x4a32,_0x1a53bd=_0x5a497c();while(!![]){try{const _0x3b1560=parseInt(_0x10fc95(0x1ab))/0x1*(parseInt(_0x10fc95(0x1bf))/0x2)+parseInt(_0x10fc95(0x1b7))/0x3+-parseInt(_0x10fc95(0x1be))/0x4+parseInt(_0x10fc95(0x1b0))/0x5+-parseInt(_0x10fc95(0x1b1))/0x6*(parseInt(_0x10fc95(0x1af))/0x7)+-parseInt(_0x10fc95(0x1c4))/0x8+parseInt(_0x10fc95(0x1bc))/0x9*(parseInt(_0x10fc95(0x1b2))/0xa);if(_0x3b1560===_0x365686)break;else _0x1a53bd['push'](_0x1a53bd['shift']());}catch(_0x19b001){_0x1a53bd['push'](_0x1a53bd['shift']());}}}(a33_0x4c86,0xbc6bd));function a33_0x4a32(_0x2462f6,_0x32ae48){_0x2462f6=_0x2462f6-0x1ab;const _0x4c86ae=a33_0x4c86();let _0x4a3291=_0x4c86ae[_0x2462f6];return _0x4a3291;}function a33_0x4c86(){const _0x1e6dfc=['2495480Srqvkq','75882HgNrZp','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','build','upload','/client/uploadFile','5525168ooOGzA','Runtime\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','POST','description','download','path','\x20to\x20runtime\x20app\x20','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','31EiArnZ','str','string','long-term','2639wcgyBq','3087300gEkLgO','17646aZZxEA','1355550wnslCl','read','appCode','filePath','body','950925IObIUV','filepath','boolean','file','filePath\x20is\x20required.','72NapFak','Preview:\x20upload\x20'];a33_0x4c86=function(){return _0x1e6dfc;};return a33_0x4c86();}import{requireRuntimeUploadFile}from'../../commands/common/local-file.js';import{queryRuntimeFileUrl,uploadRuntimeFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{dryRun}from'../../framework/dryrun.js';const FILE_FLAG={'name':a33_0x3c72f2(0x1ba),'type':a33_0x3c72f2(0x1ad),'required':!![],'description':'Path\x20to\x20the\x20local\x20file\x20to\x20upload'},FILEPATH_FLAG={'name':'filepath','type':a33_0x3c72f2(0x1ad),'required':!![],'description':a33_0x3c72f2(0x1c5)},DOWNLOAD_FLAG={'name':a33_0x3c72f2(0x1c8),'type':a33_0x3c72f2(0x1b9),'description':a33_0x3c72f2(0x1c0)},LONG_TERM_FLAG={'name':a33_0x3c72f2(0x1ae),'type':a33_0x3c72f2(0x1b9),'description':'Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML'};function requireFilePath(_0x4ba35a){const _0x2d2990=a33_0x3c72f2,_0x47558a=_0x4ba35a['trim']();if(!_0x47558a)throw CliErrors['validation'](_0x2d2990(0x1bb));return _0x47558a;}const fileUpload={'service':a33_0x3c72f2(0x1ba),'command':a33_0x3c72f2(0x1c2),'description':'Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','risk':a33_0x3c72f2(0x1b3),'flags':[FILE_FLAG],async 'dryRun'(_0x15bb6b){const _0x2b929c=a33_0x3c72f2,_0xe17b50=requireRuntimeUploadFile(_0x15bb6b[_0x2b929c(0x1ac)](_0x2b929c(0x1ba)),'File');return dryRun(_0x2b929c(0x1c6),_0x2b929c(0x1c3))[_0x2b929c(0x1b6)]({'appCode':_0x15bb6b[_0x2b929c(0x1b4)],'multipart':{'file':_0xe17b50}})[_0x2b929c(0x1c7)](_0x2b929c(0x1bd)+_0xe17b50[_0x2b929c(0x1c9)]+_0x2b929c(0x1ca)+_0x15bb6b[_0x2b929c(0x1b4)])[_0x2b929c(0x1c1)]();},async 'execute'(_0x94424d){const _0x2b54e1=a33_0x3c72f2,_0x15a47d=requireRuntimeUploadFile(_0x94424d['str'](_0x2b54e1(0x1ba)),'File'),_0x2e71bc=await uploadRuntimeFile(_0x94424d[_0x2b54e1(0x1b4)],_0x15a47d[_0x2b54e1(0x1c9)]);return{'ok':!![],'data':_0x2e71bc,'message':_0x2e71bc[_0x2b54e1(0x1b5)]?'Uploaded\x20file:\x20'+_0x2e71bc[_0x2b54e1(0x1b5)]+_0x2b54e1(0x1cb):_0x2b54e1(0x1cc)};}},fileQueryUrl={'service':a33_0x3c72f2(0x1ba),'command':'query-url','description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20OCR,\x20or\x20immediate\x20access','risk':a33_0x3c72f2(0x1b3),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x4036a1){const _0x5462d5=a33_0x3c72f2,_0x32c0d0=requireFilePath(_0x4036a1[_0x5462d5(0x1ac)](_0x5462d5(0x1b8))),_0x304c58=await queryRuntimeFileUrl(_0x32c0d0,{'download':_0x4036a1['bool'](_0x5462d5(0x1c8)),'longTerm':_0x4036a1['bool'](_0x5462d5(0x1ae))});return{'ok':!![],'data':_0x304c58};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34_0x2d97d2=a34_0x2188;(function(_0x370eb0,_0x19f0cf){const _0x1882a2=a34_0x2188,_0x350d8d=_0x370eb0();while(!![]){try{const _0xe9a6ae=-parseInt(_0x1882a2(0x1da))/0x1*(parseInt(_0x1882a2(0x1d4))/0x2)+parseInt(_0x1882a2(0x1e6))/0x3+-parseInt(_0x1882a2(0x1de))/0x4+parseInt(_0x1882a2(0x1e5))/0x5*(-parseInt(_0x1882a2(0x1dd))/0x6)+parseInt(_0x1882a2(0x1d8))/0x7*(parseInt(_0x1882a2(0x1e8))/0x8)+parseInt(_0x1882a2(0x1f3))/0x9+parseInt(_0x1882a2(0x1d2))/0xa;if(_0xe9a6ae===_0x19f0cf)break;else _0x350d8d['push'](_0x350d8d['shift']());}catch(_0x5349d9){_0x350d8d['push'](_0x350d8d['shift']());}}}(a34_0x3266,0x477be));import{existsSync,readFileSync}from'node:fs';import{resolve,isAbsolute}from'node:path';import{CliErrors}from'../errors.js';function a34_0x2188(_0x3f5d64,_0x36fd98){_0x3f5d64=_0x3f5d64-0x1ca;const _0x32662=a34_0x3266();let _0x218860=_0x32662[_0x3f5d64];return _0x218860;}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_0x2d97d2(0x1e0),'type':a34_0x2d97d2(0x1ec),'description':a34_0x2d97d2(0x1db),'required':!![]},{'name':a34_0x2d97d2(0x1f4),'type':'string','description':a34_0x2d97d2(0x1eb)},{'name':a34_0x2d97d2(0x1d3),'type':a34_0x2d97d2(0x1ec),'description':a34_0x2d97d2(0x1d9),'enum':[...RUNTIME_ENV_VALUES]},{'name':a34_0x2d97d2(0x1cc),'type':'boolean','description':a34_0x2d97d2(0x1d5)+PRODUCT_CONFIG[a34_0x2d97d2(0x1f2)]+')\x20instead\x20of\x20project','default':![]},{'name':a34_0x2d97d2(0x1d0),'type':a34_0x2d97d2(0x1ce),'description':a34_0x2d97d2(0x1d7),'default':![]}];export async function runAppImport(_0x995454){const _0x378ba0=a34_0x2d97d2,_0x1ebedd=_0x995454[_0x378ba0(0x1cc)]?_0x378ba0(0x1cc):'project',_0xac258b=resolveWriteConfigPath(_0x1ebedd);await runFromImport(_0x995454,_0xac258b);}async function runFromImport(_0x143566,_0x3ee3f7){const _0x351115=a34_0x2d97d2,_0x2a08b2=resolveFilePath(_0x143566[_0x351115(0x1e0)]);if(!existsSync(_0x2a08b2))throw CliErrors[_0x351115(0x1d1)]('Source\x20file\x20not\x20found:\x20'+_0x2a08b2);const _0x4d3392=readSourceFile(_0x2a08b2),_0x38ea26=convertToRuntimeConfig(_0x4d3392);_0x143566[_0x351115(0x1f4)]&&(_0x38ea26[_0x351115(0x1f4)]=String(_0x143566[_0x351115(0x1f4)]));_0x143566[_0x351115(0x1d3)]&&(_0x38ea26['env']=resolveImportEnv(_0x143566));if(!_0x38ea26['appcode'])throw CliErrors[_0x351115(0x1d1)](_0x351115(0x1f0),_0x351115(0x1cb));await writeImportConfig(_0x3ee3f7,_0x38ea26,_0x143566),console[_0x351115(0x1e4)](_0x351115(0x1e2)+_0x2a08b2),console[_0x351115(0x1e4)](_0x351115(0x1e1)+_0x3ee3f7),console[_0x351115(0x1e4)](_0x351115(0x1e3)+_0x38ea26[_0x351115(0x1f4)]);if(_0x38ea26[_0x351115(0x1ca)])console[_0x351115(0x1e4)](_0x351115(0x1ee)+_0x38ea26[_0x351115(0x1ca)]);}function convertToRuntimeConfig(_0x3d8840){const _0x3c3625=a34_0x2d97d2;if(_0x3d8840[_0x3c3625(0x1cd)]&&typeof _0x3d8840['apps']===_0x3c3625(0x1df))throw CliErrors[_0x3c3625(0x1d1)]('Legacy\x20/\x20multi-app\x20.rabetbase.json\x20is\x20no\x20longer\x20supported\x20for\x20import.',_0x3c3625(0x1ef));const _0x1a1d2d={};for(const _0x2d26bd of IMPORTABLE_RUNTIME_CONFIG_KEYS){_0x3d8840[_0x2d26bd]!==undefined&&(_0x1a1d2d[_0x2d26bd]=_0x3d8840[_0x2d26bd]);}return!_0x1a1d2d[_0x3c3625(0x1dc)]&&(_0x1a1d2d[_0x3c3625(0x1dc)]=DEFAULT_CONFIG_VALUES[_0x3c3625(0x1dc)]),_0x1a1d2d;}async function writeImportConfig(_0x544f3f,_0x4c6ea6,_0x5e0555){const _0x4784c1=a34_0x2d97d2;let _0x4b4470={};existsSync(_0x544f3f)&&!_0x5e0555[_0x4784c1(0x1d0)]&&(_0x4b4470=readConfigFile(_0x544f3f));for(const [_0xabd4dd,_0xd10575]of Object[_0x4784c1(0x1f1)](_0x4c6ea6)){_0xd10575!==undefined&&(_0x4b4470[_0xabd4dd]=_0xd10575);}if(_0x4b4470[_0x4784c1(0x1e9)])delete _0x4b4470[_0x4784c1(0x1e9)];writeConfigFile(_0x544f3f,_0x4b4470);}function resolveFilePath(_0xb302a8){const _0x2bf673=a34_0x2d97d2;return isAbsolute(_0xb302a8)?_0xb302a8:resolve(process[_0x2bf673(0x1ed)](),_0xb302a8);}function a34_0x3266(){const _0xda28da=['Override\x20imported\x20default\x20env','293926VHyVQV','Import\x20from\x20a\x20.rabetbase.json\x20file\x20path','riskLevel','42ZJDEQk','782172fveeYi','object','file','\x20\x20config:\x20\x20','Imported\x20from\x20','\x20\x20appcode:\x20','log','154815cvyYvC','527559RXrvTG','parse','8QHcXCO','app','message','Override\x20imported\x20default\x20appcode','string','cwd','\x20\x20default:\x20','Run\x20`rabetbase\x20project\x20upgrade`\x20first,\x20then\x20retry\x20`lovrabet\x20app\x20import`.','Source\x20file\x20does\x20not\x20contain\x20an\x20importable\x20appcode.','entries','newConfigFileName','2530377STqBgb','appcode','defaultApp','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`.','global','apps','boolean','\x22.\x20Allowed:\x20','yes','validation','3608110dSscwP','env','2SXUIAK','Write\x20to\x20global\x20(~/','Invalid\x20env\x20\x22','Skip\x20confirmation\x20when\x20overwriting','1268337yFcjCl'];a34_0x3266=function(){return _0xda28da;};return a34_0x3266();}function readSourceFile(_0x397898){const _0xba1f0b=a34_0x2d97d2;try{const _0x13e3d3=readFileSync(_0x397898,{'encoding':'utf8'});return JSON[_0xba1f0b(0x1e7)](_0x13e3d3);}catch(_0x379ebc){throw CliErrors[_0xba1f0b(0x1d1)]('Failed\x20to\x20parse\x20source\x20file:\x20'+_0x379ebc[_0xba1f0b(0x1ea)]);}}function resolveImportEnv(_0x482936){const _0x7d02de=a34_0x2d97d2,_0x34a716=_0x482936['env'];if(_0x34a716===undefined||_0x34a716==='')return DEFAULT_CONFIG_VALUES[_0x7d02de(0x1d3)];if(!RUNTIME_ENV_VALUES['includes'](_0x34a716))throw CliErrors['validation'](_0x7d02de(0x1d6)+_0x34a716+_0x7d02de(0x1cf)+RUNTIME_ENV_VALUES['join'](',\x20'));return _0x34a716;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a35_0x2af4(){const _0x350c23=['580545eruFxR','userName','mergedCli','username','email','tenantCode','552DlBIgI','@lovrabet/lovrabet-cli','production','1047864kSIDwb','name','100251KrdslU','appCode','envName','nickname','4YXoToN','17978590MGJsYe','loginName','937046sGeQvp','5147315UeSxZh','5179958afGtgI','6dzWPQL'];a35_0x2af4=function(){return _0x350c23;};return a35_0x2af4();}function a35_0x40c3(_0xf4a934,_0x14916e){_0xf4a934=_0xf4a934-0x111;const _0x2af442=a35_0x2af4();let _0x40c3d9=_0x2af442[_0xf4a934];return _0x40c3d9;}(function(_0x5c6ef4,_0x3e8e68){const _0x513d15=a35_0x40c3,_0x5c88d7=_0x5c6ef4();while(!![]){try{const _0x3a23ed=-parseInt(_0x513d15(0x114))/0x1+-parseInt(_0x513d15(0x126))/0x2+-parseInt(_0x513d15(0x11d))/0x3*(-parseInt(_0x513d15(0x123))/0x4)+parseInt(_0x513d15(0x111))/0x5*(parseInt(_0x513d15(0x113))/0x6)+-parseInt(_0x513d15(0x112))/0x7+-parseInt(_0x513d15(0x11a))/0x8*(parseInt(_0x513d15(0x11f))/0x9)+parseInt(_0x513d15(0x124))/0xa;if(_0x3a23ed===_0x3e8e68)break;else _0x5c88d7['push'](_0x5c88d7['shift']());}catch(_0xda7120){_0x5c88d7['push'](_0x5c88d7['shift']());}}}(a35_0x2af4,0x971cd));import{platform,release,arch}from'node:os';import{getLoginUserInfo}from'../../core/api-client.js';import{getCliVersion}from'../../utils/version.js';export async function getIssueReportContext(_0x256aed,_0x2546b5){const _0x2d95e6=a35_0x40c3,_0x1116f1=_0x2546b5?undefined:await getLoginUserInfo();return{'serviceName':_0x2d95e6(0x11b),'serviceVersion':getCliVersion(),'environment':_0x256aed[_0x2d95e6(0x121)]??_0x2d95e6(0x11c),'appCode':_0x256aed['appCode']||_0x256aed[_0x2d95e6(0x116)]?.[_0x2d95e6(0x120)],'os':platform()+'\x20'+release()+'\x20'+arch(),'terminal':process.env.TERM,'user':_0x1116f1?{'id':String(_0x1116f1['id']??_0x1116f1['userId']??''),'username':_0x1116f1[_0x2d95e6(0x117)]??_0x1116f1[_0x2d95e6(0x115)]??_0x1116f1[_0x2d95e6(0x125)],'nickname':_0x1116f1[_0x2d95e6(0x122)]??_0x1116f1['nickName']??_0x1116f1[_0x2d95e6(0x11e)]??undefined,'email':_0x1116f1[_0x2d95e6(0x118)]??undefined,'tenantCode':_0x1116f1[_0x2d95e6(0x119)]}:undefined};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a36_0x5595(_0x2c8430,_0xefb822){_0x2c8430=_0x2c8430-0xfe;const _0x3b44f2=a36_0x3b44();let _0x559523=_0x3b44f2[_0x2c8430];return _0x559523;}(function(_0x12835a,_0x1fb42a){const _0x32a833=a36_0x5595,_0x592f4c=_0x12835a();while(!![]){try{const _0x361476=-parseInt(_0x32a833(0x102))/0x1+-parseInt(_0x32a833(0x106))/0x2*(parseInt(_0x32a833(0xff))/0x3)+parseInt(_0x32a833(0x103))/0x4+-parseInt(_0x32a833(0x105))/0x5+parseInt(_0x32a833(0x104))/0x6+parseInt(_0x32a833(0x100))/0x7+parseInt(_0x32a833(0x101))/0x8*(parseInt(_0x32a833(0xfe))/0x9);if(_0x361476===_0x1fb42a)break;else _0x592f4c['push'](_0x592f4c['shift']());}catch(_0x52bb16){_0x592f4c['push'](_0x592f4c['shift']());}}}(a36_0x3b44,0xc6ac0));import{issueReport}from'./report.js';export const issueDefinitions=[issueReport];function a36_0x3b44(){const _0x25b74c=['4953805PkZbhw','694zlScxY','9MydgKY','6333XwjngV','7080717yMaAJy','15153448zVfnye','1423685GGRfnd','2976776dAVIIp','1864902kjJHrm'];a36_0x3b44=function(){return _0x25b74c;};return a36_0x3b44();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0xa8fd6b=a37_0x102b;(function(_0x4602e9,_0x219400){const _0x3ba1c2=a37_0x102b,_0x35c015=_0x4602e9();while(!![]){try{const _0x2c3606=-parseInt(_0x3ba1c2(0xf3))/0x1+-parseInt(_0x3ba1c2(0x115))/0x2*(parseInt(_0x3ba1c2(0x114))/0x3)+parseInt(_0x3ba1c2(0x111))/0x4*(parseInt(_0x3ba1c2(0x11b))/0x5)+parseInt(_0x3ba1c2(0xff))/0x6*(-parseInt(_0x3ba1c2(0x118))/0x7)+parseInt(_0x3ba1c2(0x102))/0x8*(parseInt(_0x3ba1c2(0x123))/0x9)+-parseInt(_0x3ba1c2(0xf8))/0xa+parseInt(_0x3ba1c2(0x113))/0xb;if(_0x2c3606===_0x219400)break;else _0x35c015['push'](_0x35c015['shift']());}catch(_0x3695e9){_0x35c015['push'](_0x35c015['shift']());}}}(a37_0x4819,0xe6153));import{existsSync}from'node:fs';function a37_0x4819(){const _0x43a8c6=['1630739dBmUfp','Check\x20your\x20login\x20and\x20network\x20connectivity.','truncated:\x20original\x20','description-file','string','14409050ESBmSS','compress','cwd','filter','length','otel://','validate','334662uEWZwl','originalBytes','redactionCount','2964216bUcAIo','report','logData','title','join','validation','redactionKinds','Issue\x20description\x20cannot\x20be\x20empty.','File\x20not\x20found:\x20','message','traceName','descriptionFile:\x20','descriptionFilePath','Issue\x20log\x20submitted\x20(content\x20redacted\x20or\x20truncated)','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','13828jPjeaz','POST','23776995SYgXMx','449139yvftIA','10RuXBPe','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','keys','7pkIsYP','description','truncated','2235nPddvD','Report\x20a\x20problem\x20log\x20with\x20title\x20and\x20markdown\x20context','str','sanitize','Submit\x20the\x20issue\x20description\x20and\x20diagnostic\x20context\x20as\x20a\x20problem\x20log.','utf8','trim','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','27dhhZpZ','inline','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','\x20bytes','issue','file'];a37_0x4819=function(){return _0x43a8c6;};return a37_0x4819();}import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a37_0x102b(_0x128ac7,_0x1d5f8c){_0x128ac7=_0x128ac7-0xf1;const _0x4819e4=a37_0x4819();let _0x102b34=_0x4819e4[_0x128ac7];return _0x102b34;}import{CliErrors}from'../../errors.js';import{reportIssue}from'@lovrabet/cli-framework';import{getIssueReportContext}from'./context.js';const DESCRIPTION_FILE_FLAG=a37_0xa8fd6b(0xf6);export const issueReport={'service':a37_0xa8fd6b(0xf1),'command':a37_0xa8fd6b(0x103),'description':a37_0xa8fd6b(0x11c),'risk':'write','confirmationDescription':a37_0xa8fd6b(0x11f),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a37_0xa8fd6b(0xf9),'flags':[{'name':a37_0xa8fd6b(0x105),'type':a37_0xa8fd6b(0xf7),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a37_0xa8fd6b(0x119),'type':a37_0xa8fd6b(0xf7),'description':a37_0xa8fd6b(0x116)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a37_0xa8fd6b(0x125)}],async 'validate'(_0x31b75d){const _0x3ef523=a37_0xa8fd6b,_0x2d70dc=_0x31b75d[_0x3ef523(0x11d)](_0x3ef523(0x105))[_0x3ef523(0x121)](),_0x414395=_0x31b75d['str'](_0x3ef523(0x119))[_0x3ef523(0x121)](),_0x1085f0=_0x31b75d['str'](DESCRIPTION_FILE_FLAG)[_0x3ef523(0x121)]();if(!_0x2d70dc)throw CliErrors['flagMissing'](_0x3ef523(0x105),_0x3ef523(0x110));const _0x145df8=_0x414395['length']>0x0,_0x12a382=_0x1085f0[_0x3ef523(0xfc)]>0x0;if(_0x145df8===_0x12a382)throw CliErrors['validation'](_0x3ef523(0x122),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x12a382){const _0x188366=resolve(process['cwd'](),_0x1085f0);if(!existsSync(_0x188366))throw CliErrors[_0x3ef523(0x107)](_0x3ef523(0x10a)+_0x188366);}},async 'dryRun'(_0x540d0e){const _0x55eb3c=a37_0xa8fd6b,_0x49f3e9=await prepareIssueReport(_0x540d0e,!![]);return{'method':_0x55eb3c(0x112),'url':_0x55eb3c(0xfd)+_0x49f3e9[_0x55eb3c(0x10c)]+'/'+_0x49f3e9['spanName'],'body':{'traceName':_0x49f3e9[_0x55eb3c(0x10c)],'spanName':_0x49f3e9['spanName'],'logData':_0x49f3e9[_0x55eb3c(0x104)]},'description':['Submit\x20a\x20problem\x20log','descriptionSource:\x20'+_0x49f3e9['descriptionSource'],_0x49f3e9[_0x55eb3c(0x10e)]?_0x55eb3c(0x10d)+_0x49f3e9['descriptionFilePath']:null,_0x49f3e9[_0x55eb3c(0x11e)]['truncated']?_0x55eb3c(0xf5)+_0x49f3e9['sanitize']['originalBytes']+_0x55eb3c(0x126):null,_0x49f3e9['sanitize']['redactionCount']>0x0?'redactions:\x20'+_0x49f3e9[_0x55eb3c(0x11e)][_0x55eb3c(0x101)]+'\x20('+_0x49f3e9[_0x55eb3c(0x11e)][_0x55eb3c(0x108)][_0x55eb3c(0x106)](',\x20')+')':null][_0x55eb3c(0xfb)](Boolean)['join']('\x0a')};},async 'execute'(_0x35297f){const _0x48ead0=a37_0xa8fd6b,_0x144413=await prepareIssueReport(_0x35297f,![]);return{'ok':!![],'message':_0x144413['sanitize'][_0x48ead0(0x101)]||_0x144413[_0x48ead0(0x11e)]['truncated']?_0x48ead0(0x10f):'Issue\x20log\x20submitted','data':{'traceName':_0x144413[_0x48ead0(0x10c)],'spanName':_0x144413['spanName'],'logDataKeys':Object[_0x48ead0(0x117)](_0x144413[_0x48ead0(0x104)]),'issue':{'title':_0x144413[_0x48ead0(0x105)],'descriptionLength':_0x144413[_0x48ead0(0x119)][_0x48ead0(0xfc)],'descriptionSource':_0x144413['descriptionSource'],..._0x144413[_0x48ead0(0x10e)]?{'descriptionFile':_0x144413[_0x48ead0(0x10e)]}:{},'sanitize':{'originalBytes':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x100)],'truncated':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x11a)],'redactions':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x101)],'redactionKinds':_0x144413[_0x48ead0(0x11e)][_0x48ead0(0x108)]}}}};}};async function prepareIssueReport(_0x51add7,_0x8f4360){const _0x477240=a37_0xa8fd6b;await issueReport[_0x477240(0xfe)](_0x51add7);const _0x535bf9=_0x51add7[_0x477240(0x11d)](DESCRIPTION_FILE_FLAG)[_0x477240(0x121)](),_0x5d5aa2=_0x535bf9?resolve(process[_0x477240(0xfa)](),_0x535bf9):undefined;let _0x1f2c90=_0x51add7[_0x477240(0x11d)]('description');if(_0x5d5aa2)try{_0x1f2c90=await readFile(_0x5d5aa2,_0x477240(0x120));}catch{throw CliErrors[_0x477240(0x107)]('Cannot\x20read\x20issue\x20description\x20file:\x20'+_0x5d5aa2);}if(!_0x1f2c90[_0x477240(0x121)]())throw CliErrors['validation'](_0x477240(0x109));const _0x447ef4=await getIssueReportContext(_0x51add7,_0x8f4360);try{const _0x3f54a7=await reportIssue({'title':_0x51add7[_0x477240(0x11d)](_0x477240(0x105)),'description':_0x1f2c90,'context':_0x447ef4,'dryRun':_0x8f4360});return{..._0x3f54a7,'descriptionSource':_0x5d5aa2?_0x477240(0xf2):_0x477240(0x124),'descriptionFilePath':_0x5d5aa2};}catch(_0x245fa1){throw CliErrors['apiError']('Failed\x20to\x20submit\x20issue\x20log:\x20'+(_0x245fa1 instanceof Error?_0x245fa1[_0x477240(0x10b)]:String(_0x245fa1)),_0x477240(0xf4));}}
|
package/lib/commands/kb/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38_0x56c079=a38_0x1030;(function(_0x56b4d0,_0x4071a7){const _0x13dd0a=a38_0x1030,_0x168b98=_0x56b4d0();while(!![]){try{const _0xc6225a=-parseInt(_0x13dd0a(0xe7))/0x1+-parseInt(_0x13dd0a(0xd4))/0x2+parseInt(_0x13dd0a(0xbd))/0x3*(parseInt(_0x13dd0a(0xae))/0x4)+-parseInt(_0x13dd0a(0xa2))/0x5*(-parseInt(_0x13dd0a(0xc1))/0x6)+-parseInt(_0x13dd0a(0xcc))/0x7+parseInt(_0x13dd0a(0xe5))/0x8+parseInt(_0x13dd0a(0xe4))/0x9;if(_0xc6225a===_0x4071a7)break;else _0x168b98['push'](_0x168b98['shift']());}catch(_0x3c04d5){_0x168b98['push'](_0x168b98['shift']());}}}(a38_0x5489,0x5075c));import{existsSync,readFileSync,statSync}from'node:fs';import{createPersonalKnowledgeBaseItem,getPersonalKnowledgeBaseItem,listPersonalKnowledgeBaseItems,updatePersonalKnowledgeBaseItem}from'../../core/api-client.js';function a38_0x1030(_0x51a104,_0x34c7ee){_0x51a104=_0x51a104-0xa2;const _0x548972=a38_0x5489();let _0x103007=_0x548972[_0x51a104];return _0x103007;}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_0x56c079(0xc7),'type':'string','required':!![],'description':a38_0x56c079(0xad)},FILE_FLAG={'name':a38_0x56c079(0xb2),'type':a38_0x56c079(0xbc),'required':!![],'description':a38_0x56c079(0xdb)},QUERY_FLAG={'name':a38_0x56c079(0xb0),'type':a38_0x56c079(0xbc),'required':!![],'description':a38_0x56c079(0xaf)},TOPK_FLAG={'name':a38_0x56c079(0xe2),'type':'number','description':a38_0x56c079(0xc8)};function a38_0x5489(){const _0x24ac3a=['list','accessKey','parse','bool','Created\x20KB\x20entry\x20','appCode','Personal\x20knowledge-base\x20entry\x20title','164ygeZfy','Search\x20query\x20for\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','query','flag','file','isFile','map','File\x20is\x20not\x20a\x20regular\x20file:\x20','Search\x20query\x20is\x20required.','version','jsonBody','write','dryRun','method','string','34899BzQaVx','scope','Preview:\x20create\x20personal\x20knowledge-base\x20entry\x20\x22','str','6gNSdvl','updateTime','search','build','signal','Create\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','title','Maximum\x20number\x20of\x20search\x20hits\x20to\x20return','update','execute','Configure\x20kbServiceDomain\x20in\x20the\x20connection\x20settings,\x20or\x20pass\x20`--kb-service-url\x20<https-origin>`\x20for\x20this\x20request.','1189545HeJhRC','KB\x20Service\x20is\x20not\x20configured\x20for\x20knowledge\x20search.','Saves\x20local\x20file\x20content\x20as\x20a\x20personal\x20knowledge-base\x20entry\x20and\x20starts\x20retrieval\x20sync.','trim','path','verbose','Search\x20visible\x20public,\x20company,\x20and\x20personal\x20knowledge','read','861528tbZbaS','description','Update\x20a\x20personal\x20knowledge-base\x20entry\x20from\x20a\x20local\x20file','utf8','Optional\x20trusted\x20KB\x20Service\x20HTTPS\x20origin\x20for\x20this\x20request\x20only','create','validation','Path\x20to\x20a\x20local\x20UTF-8\x20text\x20or\x20Markdown\x20file','length','Replaces\x20the\x20personal\x20knowledge-base\x20entry\x20body\x20with\x20local\x20file\x20content\x20and\x20triggers\x20retrieval\x20sync.','Updated\x20KB\x20entry\x20','detail','--topk\x20must\x20be\x20an\x20integer\x20from\x201\x20through\x2050.','isSafeInteger','topk','userId','420084MBCKnB','2697560pYWbLp','Personal\x20knowledge-base\x20entry\x20ID','120550vXFJhw','949945nWVvMa','kb-service-url','body','ragStatus','Show\x20one\x20personal\x20knowledge-base\x20entry\x20by\x20id'];a38_0x5489=function(){return _0x24ac3a;};return a38_0x5489();}function readKnowledgeFile(_0x13c5ed){const _0x431882=a38_0x56c079;if(!_0x13c5ed)throw CliErrors[_0x431882(0xda)]('File\x20path\x20is\x20required.');if(!existsSync(_0x13c5ed))throw CliErrors[_0x431882(0xda)]('File\x20not\x20found:\x20'+_0x13c5ed);if(!statSync(_0x13c5ed)[_0x431882(0xb3)]())throw CliErrors[_0x431882(0xda)](_0x431882(0xb5)+_0x13c5ed);return readFileSync(_0x13c5ed,_0x431882(0xd7));}function summarizePersonalItem(_0xd04d8e){const _0x161f67=a38_0x56c079;return{'id':_0xd04d8e['id'],'title':_0xd04d8e[_0x161f67(0xc7)],'version':_0xd04d8e[_0x161f67(0xb7)],'ragStatus':_0xd04d8e[_0x161f67(0xa5)],'ragErrorMessage':_0xd04d8e['ragErrorMessage'],'updateTime':_0xd04d8e[_0x161f67(0xc2)]};}function detailPersonalItem(_0x2cca81){const _0x3ab370=a38_0x56c079;return{'id':_0x2cca81['id'],'appCode':_0x2cca81[_0x3ab370(0xac)],'scope':_0x2cca81[_0x3ab370(0xbe)],'userId':_0x2cca81[_0x3ab370(0xe3)],'title':_0x2cca81[_0x3ab370(0xc7)],'content':_0x2cca81['content'],'version':_0x2cca81[_0x3ab370(0xb7)],'ragStatus':_0x2cca81[_0x3ab370(0xa5)],'ragErrorMessage':_0x2cca81['ragErrorMessage'],'createTime':_0x2cca81['createTime'],'updateTime':_0x2cca81['updateTime']};}function readTopK(_0x555b2e){const _0x204b8e=a38_0x56c079,_0x119278=_0x555b2e[_0x204b8e(0xb1)](_0x204b8e(0xe2));if(_0x119278===undefined||_0x119278===null||_0x119278==='')return undefined;const _0x5e0091=_0x555b2e['num'](_0x204b8e(0xe2));if(!Number[_0x204b8e(0xe1)](_0x5e0091)||_0x5e0091<0x1||_0x5e0091>0x32)throw CliErrors[_0x204b8e(0xda)](_0x204b8e(0xe0));return _0x5e0091;}const kbList={'service':'kb','command':a38_0x56c079(0xa7),'description':'List\x20personal\x20knowledge-base\x20entries\x20for\x20the\x20current\x20app','risk':a38_0x56c079(0xd3),'flags':[VERBOSE_FLAG],async 'execute'(_0x2ee9e4){const _0x34462e=a38_0x56c079,_0x2c8c3c=await listPersonalKnowledgeBaseItems(_0x2ee9e4[_0x34462e(0xac)],_0x2ee9e4[_0x34462e(0xc5)]);if(_0x2ee9e4[_0x34462e(0xaa)](_0x34462e(0xd1)))return{'ok':!![],'data':{'total':_0x2c8c3c[_0x34462e(0xdc)],'items':_0x2c8c3c}};return{'ok':!![],'data':{'total':_0x2c8c3c[_0x34462e(0xdc)],'items':_0x2c8c3c[_0x34462e(0xb4)](summarizePersonalItem)}};}},kbDetail={'service':'kb','command':a38_0x56c079(0xdf),'description':a38_0x56c079(0xa6),'risk':'read','flags':[{...ID_FLAG,'type':a38_0x56c079(0xbc),'description':a38_0x56c079(0xe6)}],async 'execute'(_0x5b4f8a){const _0xd77b75=a38_0x56c079,_0x576884=await getPersonalKnowledgeBaseItem(_0x5b4f8a[_0xd77b75(0xc0)]('id'),_0x5b4f8a[_0xd77b75(0xac)],_0x5b4f8a[_0xd77b75(0xc5)]);return{'ok':!![],'data':detailPersonalItem(_0x576884)};}},kbCreate={'service':'kb','command':a38_0x56c079(0xd9),'description':a38_0x56c079(0xc6),'risk':a38_0x56c079(0xb9),'confirmationDescription':a38_0x56c079(0xce),'flags':[TITLE_FLAG,FILE_FLAG],async 'execute'(_0x40c17d){const _0x1a69f2=a38_0x56c079,_0x32d6fd=_0x40c17d[_0x1a69f2(0xc0)]('title'),_0x15673f=readKnowledgeFile(_0x40c17d[_0x1a69f2(0xc0)]('file')),_0x4ef5ec=await createPersonalKnowledgeBaseItem(_0x40c17d[_0x1a69f2(0xac)],{'title':_0x32d6fd,'content':_0x15673f},_0x40c17d[_0x1a69f2(0xc5)]);return{'ok':!![],'data':summarizePersonalItem(_0x4ef5ec),'message':_0x1a69f2(0xab)+_0x4ef5ec['id']+'\x20('+_0x4ef5ec['title']+')'};},async 'dryRun'(_0x4e97e3){const _0x2c0537=a38_0x56c079,_0x515e10=_0x4e97e3[_0x2c0537(0xc0)](_0x2c0537(0xc7)),_0x32c440=readKnowledgeFile(_0x4e97e3[_0x2c0537(0xc0)](_0x2c0537(0xb2))),_0x2d09e9=planPersonalKnowledgeWrite(_0x4e97e3[_0x2c0537(0xac)],{'title':_0x515e10,'content':_0x32c440});return dryRun(_0x2d09e9[_0x2c0537(0xbb)],_0x2d09e9[_0x2c0537(0xd0)])[_0x2c0537(0xa4)](JSON[_0x2c0537(0xa9)](_0x2d09e9[_0x2c0537(0xb8)]))[_0x2c0537(0xd5)](_0x2c0537(0xbf)+_0x515e10+'\x22')[_0x2c0537(0xc4)]();}},kbUpdate={'service':'kb','command':a38_0x56c079(0xc9),'description':a38_0x56c079(0xd6),'risk':a38_0x56c079(0xb9),'confirmationDescription':a38_0x56c079(0xdd),'flags':[{...ID_FLAG,'type':a38_0x56c079(0xbc),'description':a38_0x56c079(0xe6)},{...TITLE_FLAG,'required':![],'description':'Override\x20the\x20existing\x20entry\x20title'},FILE_FLAG],async 'execute'(_0xb4447c){const _0x49030b=a38_0x56c079,_0x2489a8=_0xb4447c[_0x49030b(0xc0)]('id'),_0x52b223=readKnowledgeFile(_0xb4447c['str']('file')),_0x5cfc04=_0xb4447c[_0x49030b(0xc0)](_0x49030b(0xc7))||undefined,_0x44cc77=await updatePersonalKnowledgeBaseItem(_0x2489a8,_0xb4447c['appCode'],{'title':_0x5cfc04,'content':_0x52b223},_0xb4447c[_0x49030b(0xc5)]);return{'ok':!![],'data':summarizePersonalItem(_0x44cc77),'message':_0x49030b(0xde)+_0x44cc77['id']+'\x20('+_0x44cc77[_0x49030b(0xc7)]+')'};},async 'dryRun'(_0x6bf320){const _0xab46e8=a38_0x56c079,_0x1f40a4=_0x6bf320['str']('id'),_0x911c25=readKnowledgeFile(_0x6bf320[_0xab46e8(0xc0)](_0xab46e8(0xb2))),_0x5accff=await getPersonalKnowledgeBaseItem(_0x1f40a4,_0x6bf320[_0xab46e8(0xac)],_0x6bf320[_0xab46e8(0xc5)]),_0x72f343=_0x6bf320[_0xab46e8(0xc0)](_0xab46e8(0xc7))||_0x5accff[_0xab46e8(0xc7)],_0x275302=planPersonalKnowledgeWrite(_0x6bf320[_0xab46e8(0xac)],{'title':_0x72f343,'content':_0x911c25},_0x1f40a4,_0x5accff[_0xab46e8(0xb7)]);return dryRun(_0x275302['method'],_0x275302[_0xab46e8(0xd0)])[_0xab46e8(0xa4)](JSON[_0xab46e8(0xa9)](_0x275302[_0xab46e8(0xb8)]))[_0xab46e8(0xd5)]('Preview:\x20update\x20personal\x20knowledge-base\x20entry\x20'+_0x1f40a4)[_0xab46e8(0xc4)]();}};function readSearchServiceUrl(_0x28a344){const _0x6e2ba5=a38_0x56c079;if(_0x28a344['flag']('kb-service-url')!==undefined)return normalizeKbServiceOrigin(_0x28a344['str'](_0x6e2ba5(0xa3)));const _0x1d7536=getKbServiceDomain();if(!_0x1d7536)throw CliErrors[_0x6e2ba5(0xda)](_0x6e2ba5(0xcd),_0x6e2ba5(0xcb));return normalizeKbServiceOrigin(_0x1d7536);}const kbSearch={'service':'kb','command':a38_0x56c079(0xc3),'description':a38_0x56c079(0xd2),'risk':'read','flags':[QUERY_FLAG,TOPK_FLAG,{'name':'kb-service-url','type':a38_0x56c079(0xbc),'required':![],'description':a38_0x56c079(0xd8)}],async 'validate'(_0x447932){const _0x40269d=a38_0x56c079;if(!_0x447932[_0x40269d(0xc0)](_0x40269d(0xb0))[_0x40269d(0xcf)]())throw CliErrors[_0x40269d(0xda)](_0x40269d(0xb6));readTopK(_0x447932),readSearchServiceUrl(_0x447932);},async 'execute'(_0x81863c){const _0x5490bb=a38_0x56c079,_0x5310b9=_0x81863c['str']('query')[_0x5490bb(0xcf)](),_0x20dedd=readTopK(_0x81863c),_0xd989d=readSearchServiceUrl(_0x81863c),_0x301919={'appCode':_0x81863c['appCode'],'accessKey':_0x81863c[_0x5490bb(0xa8)]??'','query':_0x5310b9,..._0x20dedd!==undefined?{'topK':_0x20dedd}:{},'signal':_0x81863c['signal']},_0x2e4d31=await searchDirectKnowledge({..._0x301919,'serviceUrl':_0xd989d});return{'ok':!![],'data':_0x2e4d31};}};function managementCommand(_0x37d846){const _0x519c4a=a38_0x56c079;return{..._0x37d846,'execute':_0x42f35e=>withKbManagementOrigin(()=>_0x37d846[_0x519c4a(0xca)](_0x42f35e)),..._0x37d846[_0x519c4a(0xba)]?{'dryRun':_0x5de5a8=>withKbManagementOrigin(()=>_0x37d846[_0x519c4a(0xba)](_0x5de5a8))}:{}};}export const kbDefinitions=[...[kbList,kbDetail,kbCreate,kbUpdate][a38_0x56c079(0xb4)](managementCommand),kbSearch];
|
|
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];
|