@lovrabet/rabetbase-cli 2.5.0-beta.1 → 2.5.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.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/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase/references/rabetbase-config.md +1 -1
- package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +17 -6
- package/skills/rabetbase/references/rabetbase-kb.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a290_0x379beb=a290_0x3549;(function(_0x57440f,_0x4844c7){const _0x2a73b1=a290_0x3549,_0x4cc44a=_0x57440f();while(!![]){try{const _0x14fff0=-parseInt(_0x2a73b1(0x164))/0x1+parseInt(_0x2a73b1(0x170))/0x2+-parseInt(_0x2a73b1(0x188))/0x3+parseInt(_0x2a73b1(0x169))/0x4*(parseInt(_0x2a73b1(0x161))/0x5)+parseInt(_0x2a73b1(0x156))/0x6+parseInt(_0x2a73b1(0x15f))/0x7+-parseInt(_0x2a73b1(0x177))/0x8*(parseInt(_0x2a73b1(0x181))/0x9);if(_0x14fff0===_0x4844c7)break;else _0x4cc44a['push'](_0x4cc44a['shift']());}catch(_0x2f3bb2){_0x4cc44a['push'](_0x4cc44a['shift']());}}}(a290_0x4ad1,0xa642d));import a290_0x5b77c9 from'node:fs';import a290_0x30b013 from'node:path';function a290_0x3549(_0x33ad00,_0x39d0c1){_0x33ad00=_0x33ad00-0x156;const _0x4ad140=a290_0x4ad1();let _0x35499a=_0x4ad140[_0x33ad00];return _0x35499a;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a290_0x4ad1(){const _0x25b4b6=['split','toISOString','datasetCode:\x20\x22','toLowerCase','readFile','tableName','error','includes','replaceContent','getDate','2840490bjSQeP','\x20},','writeFile','getFullYear','replace','pad','alias','formatLocalTimestamp','isFile','3386404DiHojs','replaceApiContent','774255tywlXA','default','getHours','71773kGkuaR','utf8','name:\x20\x22','pop','mkdir','32lXCxzo','map','processFile','Template\x20content\x20replacement\x20completed','now','promises','charAt','567550UXVcfY','.jsx','isDirectory','tableName:\x20\x22','success','padStart','.json','2919352DwVcFP','toUpperCase','YourModel','join','.css','processTemplate','.scss','alias:\x20\x22','endsWith','info','27ilZUAN','Starting\x20template\x20content\x20replacement','LOVRABET','.tsx','Template\x20content\x20replacement\x20failed','name','getMonth','1896705RDhSNv','.tpl','getMinutes','template','processDirectory','toDisplayTitle','copyFile','slice','push'];a290_0x4ad1=function(){return _0x25b4b6;};return a290_0x4ad1();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a290_0x379beb(0x15b)](_0x4d7e09){const _0xe3786b=a290_0x379beb;return String(_0x4d7e09)[_0xe3786b(0x175)](0x2,'0');}static[a290_0x379beb(0x15d)](_0x937b8f){const _0x2a5d9f=a290_0x379beb,_0x1a37f0=_0x937b8f[_0x2a5d9f(0x159)](),_0x31d37a=this[_0x2a5d9f(0x15b)](_0x937b8f[_0x2a5d9f(0x187)]()+0x1),_0x57e303=this[_0x2a5d9f(0x15b)](_0x937b8f[_0x2a5d9f(0x19a)]()),_0x2a9a44=this['pad'](_0x937b8f[_0x2a5d9f(0x163)]()),_0x3694f4=this[_0x2a5d9f(0x15b)](_0x937b8f[_0x2a5d9f(0x18a)]()),_0x8f60bc=this['pad'](_0x937b8f['getSeconds']());return{'createdAt':_0x1a37f0+'-'+_0x31d37a+'-'+_0x57e303+'\x20'+_0x2a9a44+':'+_0x3694f4+':'+_0x8f60bc,'createdDate':_0x1a37f0+'-'+_0x31d37a+'-'+_0x57e303,'createdTime':_0x2a9a44+':'+_0x3694f4+':'+_0x8f60bc};}static['toComponentName'](_0x476bad){const _0x632410=a290_0x379beb,_0x5e5c2c=_0x476bad[_0x632410(0x191)]('/')[_0x632410(0x167)]()||_0x476bad;return _0x5e5c2c[_0x632410(0x191)]('-')['map'](_0x3db934=>_0x3db934[_0x632410(0x16f)](0x0)[_0x632410(0x178)]()+_0x3db934[_0x632410(0x18f)](0x1)['toLowerCase']())[_0x632410(0x17a)]('');}static[a290_0x379beb(0x18d)](_0x1fceb1){const _0x50ae13=a290_0x379beb,_0x941bf7=_0x1fceb1[_0x50ae13(0x191)]('/')[_0x50ae13(0x167)]()||_0x1fceb1;return _0x941bf7[_0x50ae13(0x191)]('-')[_0x50ae13(0x16a)](_0x2c76e9=>_0x2c76e9[_0x50ae13(0x16f)](0x0)[_0x50ae13(0x178)]()+_0x2c76e9[_0x50ae13(0x18f)](0x1)[_0x50ae13(0x194)]())[_0x50ae13(0x17a)]('\x20');}static['replaceContent'](_0x4c2724,_0xc7b50a,_0x3349d6){const _0x13eb9e=a290_0x379beb,_0x18fcf6=this['toComponentName'](_0xc7b50a),_0xeefce6=this[_0x13eb9e(0x18d)](_0xc7b50a),{createdAt:_0x56af26,createdDate:_0x1829fb,createdTime:_0x241130}=this[_0x13eb9e(0x15d)](new Date());let _0x4a3cf0=_0x4c2724[_0x13eb9e(0x15a)](/\{CliVersion\}/g,CLI_VERSION)[_0x13eb9e(0x15a)](/\{ComponentName\}/g,_0x18fcf6)[_0x13eb9e(0x15a)](/\{DisplayTitle\}/g,_0xeefce6)[_0x13eb9e(0x15a)](/\{PageName\}/g,_0xc7b50a)['replace'](/\{TemplateName\}/g,_0x3349d6)[_0x13eb9e(0x15a)](/\{CreatedAt\}/g,_0x56af26)[_0x13eb9e(0x15a)](/\{CreatedDate\}/g,_0x1829fb)[_0x13eb9e(0x15a)](/\{CreatedTime\}/g,_0x241130);return _0x4a3cf0;}static[a290_0x379beb(0x160)](_0x340f2e,_0x5d16bd,_0x232cdd,_0x56303a,_0x5cc71a,_0xf07541,_0x3703da,_0x176d35){const _0x271916=a290_0x379beb,_0x17c351=new Date(),_0x3c7473=_0x17c351[_0x271916(0x192)](),_0x17579a=_0x232cdd['map'](_0x4c01fb=>{const _0x10a5a0=_0x271916,_0x2533a1=[_0x10a5a0(0x193)+_0x4c01fb['datasetCode']+'\x22',_0x10a5a0(0x173)+_0x4c01fb[_0x10a5a0(0x196)]+'\x22',_0x10a5a0(0x166)+_0x4c01fb[_0x10a5a0(0x186)]+'\x22'];return _0x4c01fb[_0x10a5a0(0x15c)]&&_0x2533a1[_0x10a5a0(0x190)](_0x10a5a0(0x17e)+_0x4c01fb[_0x10a5a0(0x15c)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x2533a1[_0x10a5a0(0x17a)](',\x20')+_0x10a5a0(0x157);})[_0x271916(0x17a)](''),_0x1b6093=_0x56303a||_0x232cdd[0x0]?.[_0x271916(0x15c)]||_0x271916(0x179);let _0x322064=_0x340f2e[_0x271916(0x15a)](/\{AppCode\}/g,_0x5d16bd)['replace'](/\{ModelConfigs\}/g,_0x17579a)[_0x271916(0x15a)](/\{ExampleModelName\}/g,_0x1b6093)['replace'](/\{ApiFileName\}/g,_0x5cc71a||'api')['replace'](/\{ConfigName\}/g,_0xf07541||_0x271916(0x162))['replace'](/\{ClientConfigParam\}/g,_0x3703da||'')[_0x271916(0x15a)](/\{VarPrefix\}/g,_0x176d35||_0x271916(0x183))[_0x271916(0x15a)](/\{CreatedAt\}/g,_0x3c7473);return _0x322064;}static async[a290_0x379beb(0x17c)](_0x8f5dc5,_0x284b2c,_0x43fef7,_0x3ada1f,_0x5730a4=!![]){const _0xa650fa=a290_0x379beb,_0x293192=Date[_0xa650fa(0x16d)]();try{_0x5730a4&&logger[_0xa650fa(0x180)](_0xa650fa(0x18b),_0xa650fa(0x182),{'templatePath':_0x8f5dc5,'targetPath':_0x284b2c,'pageName':_0x43fef7,'templateName':_0x3ada1f});await a290_0x5b77c9[_0xa650fa(0x16e)][_0xa650fa(0x168)](_0x284b2c,{'recursive':!![]}),await this['processDirectory'](_0x8f5dc5,_0x284b2c,_0x43fef7,_0x3ada1f);if(_0x5730a4){const _0xbadfdd=Date['now']()-_0x293192;logger[_0xa650fa(0x174)](_0xa650fa(0x18b),_0xa650fa(0x16c),_0xbadfdd,{'pageName':_0x43fef7,'templateName':_0x3ada1f});}}catch(_0xc11bca){if(_0x5730a4){const _0x54d32a=Date[_0xa650fa(0x16d)]()-_0x293192;logger[_0xa650fa(0x197)]('template',_0xa650fa(0x185),{'templatePath':_0x8f5dc5,'targetPath':_0x284b2c,'pageName':_0x43fef7,'templateName':_0x3ada1f,'error':_0xc11bca instanceof Error?_0xc11bca['message']:String(_0xc11bca),'duration':_0x54d32a});}throw _0xc11bca;}}static async['processDirectory'](_0x548f11,_0xaa182d,_0x5bb958,_0x3d3dee){const _0x1011f8=a290_0x379beb,_0x78602f=await a290_0x5b77c9[_0x1011f8(0x16e)]['readdir'](_0x548f11,{'withFileTypes':!![]});for(const _0x4bb1c2 of _0x78602f){const _0xe10e46=a290_0x30b013[_0x1011f8(0x17a)](_0x548f11,_0x4bb1c2['name']);let _0x579bb3=a290_0x30b013[_0x1011f8(0x17a)](_0xaa182d,_0x4bb1c2[_0x1011f8(0x186)]);_0x4bb1c2['name']['endsWith']('.tpl')&&(_0x579bb3=a290_0x30b013[_0x1011f8(0x17a)](_0xaa182d,_0x4bb1c2[_0x1011f8(0x186)][_0x1011f8(0x15a)](/\.tpl$/,'')));if(_0x4bb1c2[_0x1011f8(0x172)]())await a290_0x5b77c9[_0x1011f8(0x16e)][_0x1011f8(0x168)](_0x579bb3,{'recursive':!![]}),await this[_0x1011f8(0x18c)](_0xe10e46,_0x579bb3,_0x5bb958,_0x3d3dee);else _0x4bb1c2[_0x1011f8(0x15e)]()&&await this['processFile'](_0xe10e46,_0x579bb3,_0x5bb958,_0x3d3dee);}}static async[a290_0x379beb(0x16b)](_0x1b28d3,_0x4775c7,_0x2f7024,_0x585bbb){const _0xc2b0ce=a290_0x379beb,_0x50f833=a290_0x30b013['extname'](_0x1b28d3)[_0xc2b0ce(0x194)]();_0x1b28d3['endsWith'](_0xc2b0ce(0x189))&&(_0x4775c7=_0x4775c7['replace'](/\.tpl$/,''));const _0xb90a39=[_0xc2b0ce(0x184),'.ts',_0xc2b0ce(0x171),'.js',_0xc2b0ce(0x176),'.md',_0xc2b0ce(0x17b),_0xc2b0ce(0x17d),_0xc2b0ce(0x189)];if(_0xb90a39[_0xc2b0ce(0x198)](_0x50f833)||_0x1b28d3[_0xc2b0ce(0x17f)](_0xc2b0ce(0x189))){const _0xff4ab4=await a290_0x5b77c9[_0xc2b0ce(0x16e)][_0xc2b0ce(0x195)](_0x1b28d3,_0xc2b0ce(0x165)),_0x42d94c=this[_0xc2b0ce(0x199)](_0xff4ab4,_0x2f7024,_0x585bbb);await a290_0x5b77c9[_0xc2b0ce(0x16e)][_0xc2b0ce(0x158)](_0x4775c7,_0x42d94c,_0xc2b0ce(0x165));}else await a290_0x5b77c9[_0xc2b0ce(0x16e)][_0xc2b0ce(0x18e)](_0x1b28d3,_0x4775c7);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x137671,_0x203371){const _0x410548=a291_0xed11,_0x219e7e=_0x137671();while(!![]){try{const _0x50b5e7=-parseInt(_0x410548(0x15f))/0x1+parseInt(_0x410548(0x175))/0x2*(parseInt(_0x410548(0x16c))/0x3)+-parseInt(_0x410548(0x167))/0x4+parseInt(_0x410548(0x168))/0x5*(-parseInt(_0x410548(0x160))/0x6)+-parseInt(_0x410548(0x16d))/0x7*(-parseInt(_0x410548(0x172))/0x8)+-parseInt(_0x410548(0x158))/0x9*(parseInt(_0x410548(0x16b))/0xa)+parseInt(_0x410548(0x157))/0xb;if(_0x50b5e7===_0x203371)break;else _0x219e7e['push'](_0x219e7e['shift']());}catch(_0x2ebf55){_0x219e7e['push'](_0x219e7e['shift']());}}}(a291_0x17a8,0x9469b));function a291_0xed11(_0x156163,_0x8bf335){_0x156163=_0x156163-0x157;const _0x17a888=a291_0x17a8();let _0xed11ed=_0x17a888[_0x156163];return _0xed11ed;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a291_0x2d8251 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x4a204d=a291_0xed11,_0x4b81af=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x4a204d(0x159)]()[_0x4a204d(0x173)]();return _0x4b81af==='1'||_0x4b81af===_0x4a204d(0x163)||_0x4b81af===_0x4a204d(0x15c);}function cacheRoot(){const _0x15fbf7=a291_0xed11;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x15fbf7(0x174));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'rabetbase-cli','update-check.json');}async function readUpdateNoticeCache(){const _0xd4e63b=a291_0xed11;try{const _0x38ac33=await readFile(getUpdateNoticeCachePath(),_0xd4e63b(0x16e)),_0x5c72bf=JSON[_0xd4e63b(0x15e)](_0x38ac33);if(!_0x5c72bf||typeof _0x5c72bf!==_0xd4e63b(0x162))return{};return _0x5c72bf;}catch{return{};}}async function writeUpdateNoticeCache(_0x435f25){const _0x14507e=a291_0xed11;try{const _0xb48be3=getUpdateNoticeCachePath();await mkdir(dirname(_0xb48be3),{'recursive':!![]}),await writeFile(_0xb48be3,JSON[_0x14507e(0x176)](_0x435f25,null,0x2)+'\x0a',_0x14507e(0x16e));}catch{}}function isFreshCheck(_0x5c967e,_0x47cfbc){const _0x192312=a291_0xed11;return typeof _0x5c967e[_0x192312(0x166)]===_0x192312(0x16f)&&_0x47cfbc-_0x5c967e[_0x192312(0x166)]<UPDATE_CHECK_TTL_MS;}function a291_0x17a8(){const _0x4d8d21=['valid','\x20available,\x20current\x20','yes','stableVersion','parse','207440Ijuxvz','5220hffQYY',',\x20run:\x20','object','true','\x20update','/v/','checkedAt','1207940YqsXHJ','4930rcBDPq','gte','https://www.npmjs.com/package/','11134810HqjJtg','2040216URvway','21yNDaUO','utf8','number','latest','lastNotifiedAt','1873896oLKXuQ','toLowerCase','.cache','2sMqFFJ','stringify','18764262GHyLdN','9eDlXpH','trim'];a291_0x17a8=function(){return _0x4d8d21;};return a291_0x17a8();}function isRecentlyNotified(_0x27888e,_0xd1212f,_0x255271){const _0x752807=a291_0xed11;return _0x27888e['lastNotifiedVersion']===_0xd1212f&&typeof _0x27888e['lastNotifiedAt']===_0x752807(0x16f)&&_0x255271-_0x27888e[_0x752807(0x171)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x172caa){const _0x4637a1=a291_0xed11;return _0x4637a1(0x16a)+NPM_PACKAGE_NAME+_0x4637a1(0x165)+_0x172caa;}export async function resolveLatestUpdateNotice(){const _0x42c46d=a291_0xed11;if(isUpdateNoticeDisabled())return null;try{const _0xafee2a=Date['now'](),_0x2e44fb=getCliVersion(),_0x1c8c6b=await readUpdateNoticeCache();let _0xe50eb8=isFreshCheck(_0x1c8c6b,_0xafee2a)?_0x1c8c6b[_0x42c46d(0x170)]?.[_0x42c46d(0x159)]():undefined;if(!_0xe50eb8&&!isFreshCheck(_0x1c8c6b,_0xafee2a)){const _0x448aed=await getCliVersionPolicy();_0xe50eb8=_0x448aed?.[_0x42c46d(0x15d)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x1c8c6b,'checkedAt':_0xafee2a,'latest':_0xe50eb8,'failed':!_0xe50eb8});}if(!_0xe50eb8||!a291_0x2d8251[_0x42c46d(0x15a)](_0x2e44fb)||!a291_0x2d8251[_0x42c46d(0x15a)](_0xe50eb8))return null;if(a291_0x2d8251[_0x42c46d(0x169)](_0x2e44fb,_0xe50eb8))return null;if(isRecentlyNotified(_0x1c8c6b,_0xe50eb8,_0xafee2a))return null;const _0x3ef7e9=CLI_BIN_NAME+_0x42c46d(0x164);return await writeUpdateNoticeCache({..._0x1c8c6b,'checkedAt':isFreshCheck(_0x1c8c6b,_0xafee2a)?_0x1c8c6b[_0x42c46d(0x166)]:_0xafee2a,'latest':_0xe50eb8,'failed':![],'lastNotifiedVersion':_0xe50eb8,'lastNotifiedAt':_0xafee2a}),{'command':_0x3ef7e9,'current':_0x2e44fb,'latest':_0xe50eb8,'url':buildNpmVersionUrl(_0xe50eb8),'message':CLI_BIN_NAME+'\x20'+_0xe50eb8+_0x42c46d(0x15b)+_0x2e44fb+_0x42c46d(0x161)+_0x3ef7e9};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x594097,_0x4d89c3){var _0x4a2cc9=a292_0x4655,_0x47c703=_0x594097();while(!![]){try{var _0xf83b22=-parseInt(_0x4a2cc9(0xab))/0x1*(-parseInt(_0x4a2cc9(0xa9))/0x2)+-parseInt(_0x4a2cc9(0xaa))/0x3+-parseInt(_0x4a2cc9(0xa8))/0x4*(-parseInt(_0x4a2cc9(0xae))/0x5)+parseInt(_0x4a2cc9(0xa7))/0x6+-parseInt(_0x4a2cc9(0xb0))/0x7*(-parseInt(_0x4a2cc9(0xad))/0x8)+-parseInt(_0x4a2cc9(0xaf))/0x9+parseInt(_0x4a2cc9(0xac))/0xa*(-parseInt(_0x4a2cc9(0xb1))/0xb);if(_0xf83b22===_0x4d89c3)break;else _0x47c703['push'](_0x47c703['shift']());}catch(_0x32c7cc){_0x47c703['push'](_0x47c703['shift']());}}}(a292_0x4bc1,0x9d295));function a292_0x4bc1(){var _0x9cff65=['6ShDVaO','559341VMNIkH','342807rEchlK','40sGaTlv','10091240SdSoUi','3920WGTmDR','7707474ppeGzp','7QVwFxk','5025614EApYey','3789192akiUVa','3024JHQNJC'];a292_0x4bc1=function(){return _0x9cff65;};return a292_0x4bc1();}function a292_0x4655(_0xc817a9,_0x4137fe){_0xc817a9=_0xc817a9-0xa7;var _0x4bc1b0=a292_0x4bc1();var _0x465560=_0x4bc1b0[_0xc817a9];return _0x465560;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27b718,_0x32563a){var _0xa9f0e7=a293_0x57fb,_0x50e77a=_0x27b718();while(!![]){try{var _0x2c39ec=parseInt(_0xa9f0e7(0x194))/0x1*(parseInt(_0xa9f0e7(0x18c))/0x2)+parseInt(_0xa9f0e7(0x18d))/0x3+-parseInt(_0xa9f0e7(0x191))/0x4*(parseInt(_0xa9f0e7(0x192))/0x5)+parseInt(_0xa9f0e7(0x18e))/0x6*(parseInt(_0xa9f0e7(0x18f))/0x7)+parseInt(_0xa9f0e7(0x190))/0x8+-parseInt(_0xa9f0e7(0x195))/0x9+parseInt(_0xa9f0e7(0x193))/0xa;if(_0x2c39ec===_0x32563a)break;else _0x50e77a['push'](_0x50e77a['shift']());}catch(_0x50e6a4){_0x50e77a['push'](_0x50e77a['shift']());}}}(a293_0x2fd4,0x2d974));function a293_0x57fb(_0xe435cc,_0x138405){_0xe435cc=_0xe435cc-0x18c;var _0x2fd458=a293_0x2fd4();var _0x57fb28=_0x2fd458[_0xe435cc];return _0x57fb28;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a293_0x2fd4(){var _0x2c2846=['188jsjUTO','323184Gojxeq','6siljVm','595777sLqaih','82776HzhNcc','1186924jlPjaP','5uCjYYN','933570EWLxRD','3013oEsOaH','866646aieQRK'];a293_0x2fd4=function(){return _0x2c2846;};return a293_0x2fd4();}export async function withActiveCookie(_0x4e509d,_0x1082b6){setActiveCookie(_0x4e509d);try{return await _0x1082b6();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a294_0x27ca(_0x6fec0e,_0x5ccef4){_0x6fec0e=_0x6fec0e-0x15e;var _0x3efb79=a294_0x3efb();var _0x27ca74=_0x3efb79[_0x6fec0e];return _0x27ca74;}function a294_0x3efb(){var _0x1a8f98=['4uskQOI','606TNZOXs','86499eIbnRb','4379967uEUsIV','1514127qMuZWD','55870kkTcQV','28202779ugwZpD','7525150WjMBCy','1753558aqNkht','1XhjRTg','16ovTlEv'];a294_0x3efb=function(){return _0x1a8f98;};return a294_0x3efb();}(function(_0x529efd,_0x29047b){var _0x5c4f19=a294_0x27ca,_0x1daf12=_0x529efd();while(!![]){try{var _0x2793b2=-parseInt(_0x5c4f19(0x15e))/0x1*(-parseInt(_0x5c4f19(0x168))/0x2)+-parseInt(_0x5c4f19(0x164))/0x3*(parseInt(_0x5c4f19(0x160))/0x4)+-parseInt(_0x5c4f19(0x165))/0x5*(parseInt(_0x5c4f19(0x161))/0x6)+-parseInt(_0x5c4f19(0x162))/0x7*(-parseInt(_0x5c4f19(0x15f))/0x8)+-parseInt(_0x5c4f19(0x163))/0x9+-parseInt(_0x5c4f19(0x167))/0xa+parseInt(_0x5c4f19(0x166))/0xb;if(_0x2793b2===_0x29047b)break;else _0x1daf12['push'](_0x1daf12['shift']());}catch(_0x45c42b){_0x1daf12['push'](_0x1daf12['shift']());}}}(a294_0x3efb,0x90c19));export function writeCliSideChannelLine(_0x588a21){process['stderr']['write'](_0x588a21+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.0-beta.
|
|
3
|
+
"version": "2.5.0-beta.2",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rabetbase
|
|
3
|
-
version: 2.5.0-beta.
|
|
3
|
+
version: 2.5.0-beta.2
|
|
4
4
|
description: "Lovrabet 开发工作流 CLI — 通过 rabetbase 命令管理数据集、数据库连接(dblink)、数据列表页(Data List Page)、自定义页面(Custom Page)、SQL 查询、Backend Function 脚本、通知配置、企业知识库、菜单事实读取与同步、开发角色与协作者、应用文件、面向票证类业务材料文字与结构化字段提取的 OCR、代码生成,以及平台问题上报。触发词:数据集、数据表、dataset relation-audit、dataset delete、dataset restore、废弃数据集、恢复数据集、dataset rename、dataset field-update、dataset extend-update、dataset business-groups、dataset business-group-update、businessGroup、字段对象更新、doType、options、数据列表页、Data List Page、自定义页面、Custom Page、page create、page custom-list、page custom-detail、page custom-update、page custom-publish、page generate-start、page generate-status、page relation-audit、page sync、page pull、page push、page restore、恢复已删除页面、dblink、数据库连接、schema 分析、db list、db detail、db create、db update、db delete、db test、db tables、db diff、db diff --view all、db diff-refresh-start、db diff-refresh-status、db analyze-batch-plan、db analyze-start、analyze-cancel、analyze-status、traceId、自定义 SQL、sql.execute、bff.execute、BF 消息通知、Backend Function 消息通知、notification config-list、EMAIL configCode、通知配置、notification.send、企业知识库、公司知识、公共知识、kb search、get_dataset_detail、validate_sql_content、save_or_update_custom_sql、@lovrabet/sdk、lovrabet 开发、rabetbase、filter、codegen、init、appcode、app list、app members-list、tenant members-list、应用人员列表、租户人员列表、workspace、workspace init、workspace use、workspace add、workspace remove、多应用、默认应用、menu list、menu visibility-update、菜单显示、菜单隐藏、visible、menu external-link-create、menu external-link-update、menu rename、菜单改名、外链菜单创建、外链 URL 更新、菜单异常审计、菜单手动删除清单、menu sync、menu asset-update、菜单资源更新、menu move、菜单移动、开发角色、开发协作者、role、role list、role user-add、role user-remove、user-resolve、加入开发者、ADMIN、DEV、OWNER、CUSTOM、project create、project upgrade、schema、jq、compress、file upload、file query-url、ocr recognize、文件上传、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、长期链接、issue report、平台问题、platform issue、问题上报、user-account dingding-sandbox-bind、钉钉沙箱账号绑定。"
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
@@ -134,7 +134,7 @@ rabetbase workspace remove product --yes
|
|
|
134
134
|
| `userDomain` | string | 平台默认 | 自定义用户域名 |
|
|
135
135
|
| `runtimeDomain` | string | 平台默认 | 自定义运行时域名 |
|
|
136
136
|
| `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
|
|
137
|
-
| `kbDomain` | string |
|
|
137
|
+
| `kbDomain` | string | 跟随 `apiDomain` / 节点 API 默认值 | 企业知识库 HTTPS origin 覆盖;显式配置时优先,`runtimeDomain` 不参与回退 |
|
|
138
138
|
| `appDomain` | string | 节点默认 | 工作台、页面编辑器和发布页面域名 |
|
|
139
139
|
|
|
140
140
|
### AppProfile 字段(`apps.*` 内的每个应用)
|
|
@@ -18,14 +18,25 @@ rabetbase dataset business-group-update \
|
|
|
18
18
|
|
|
19
19
|
确认 dry-run 结果无误后再去掉 `--dry-run` 执行。
|
|
20
20
|
|
|
21
|
+
清空当前业务场景分组:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
rabetbase dataset business-group-update \
|
|
25
|
+
--code 1a90dbff5f094a9a89936fa99b10984c \
|
|
26
|
+
--business-group ungrouped \
|
|
27
|
+
--expect-business-group "旧分组" \
|
|
28
|
+
--dry-run \
|
|
29
|
+
--format compress
|
|
30
|
+
```
|
|
31
|
+
|
|
21
32
|
## 参数
|
|
22
33
|
|
|
23
34
|
| Flag | 必填 | 说明 |
|
|
24
35
|
| --- | --- | --- |
|
|
25
36
|
| `--appcode <code>` | 否 | 目标应用编码;未配置默认 app 时必填 |
|
|
26
37
|
| `--code <code>` | 是 | Dataset code,32 位 hex UUID |
|
|
27
|
-
| `--business-group <name>` | 是 |
|
|
28
|
-
| `--expect-business-group <name>` | 否 |
|
|
38
|
+
| `--business-group <name>` | 是 | 目标业务场景分组;保留值 `ungrouped` 表示清空 |
|
|
39
|
+
| `--expect-business-group <name>` | 否 | 当前业务场景分组保护;使用 `ungrouped` 表示期望当前未分组;不匹配即中止且不写入 |
|
|
29
40
|
| `--dry-run` | 否 | 只返回 before/after 预览,不执行写入 |
|
|
30
41
|
| `--format <fmt>` | 否 | 输出格式,AI Agent 优先用 `compress` |
|
|
31
42
|
|
|
@@ -33,9 +44,9 @@ rabetbase dataset business-group-update \
|
|
|
33
44
|
|
|
34
45
|
- 命令用 `--code` 定位 Dataset。
|
|
35
46
|
- 当前值和写后校验都按 Dataset code 读取业务场景分组;不需要 `dblinkId`、`tableName` 或 `sourceType`。
|
|
36
|
-
- `--business-group`
|
|
37
|
-
-
|
|
38
|
-
- `--expect-business-group`
|
|
47
|
+
- `--business-group ungrouped` 表示清空业务场景分组;`ungrouped` 是保留值,不能作为分组名称使用。
|
|
48
|
+
- 平台原始详情可能以空字符串返回 `businessGroup`,也可能省略 `extend.businessGroup`;CLI 会将这两种形态统一归一化为空字符串,表示未分组。
|
|
49
|
+
- `--expect-business-group` 用于保护当前值;当前未分组时传 `ungrouped`,不匹配时中止且不写入。
|
|
39
50
|
- `--dry-run` 只预览 before/after,不执行写入。
|
|
40
51
|
- 正式写入后会校验目标值已生效。
|
|
41
52
|
- 当目标值和当前值一致时,命令返回 `changed=false`,不会执行写入。
|
|
@@ -70,7 +81,7 @@ rabetbase dataset business-group-update \
|
|
|
70
81
|
## 提示
|
|
71
82
|
|
|
72
83
|
- 写入前必须先运行 `--dry-run`。
|
|
73
|
-
- `businessGroup` 用于按业务场景组织 Dataset,而不是按数据库、表类型或服务名等技术结构分组。优先按业务场景命名并复用当前应用已有分组;需要跨领域消歧或沿用既有两级分组体系时,可使用 `<业务领域>---<业务场景>`,否则使用
|
|
84
|
+
- `businessGroup` 用于按业务场景组织 Dataset,而不是按数据库、表类型或服务名等技术结构分组。优先按业务场景命名并复用当前应用已有分组;需要跨领域消歧或沿用既有两级分组体系时,可使用 `<业务领域>---<业务场景>`,否则使用 `<业务场景>`。表数量不决定是否拆分层级。建议最多两级,层级不得为空或带首尾空白;使用保留值 `ungrouped` 清空。CLI 仅描述推荐格式并保持兼容,不额外拒绝历史非标准值。
|
|
74
85
|
- 推荐用 `--expect-business-group` 保护当前值。
|
|
75
86
|
- 不确定 Dataset code 时,先用 `rabetbase dataset list --name <name> --format compress` 定位。
|
|
76
87
|
- 业务场景分组只能使用本命令更新,不要通过 `dataset extend-update` 或 `/smartapi/dataset/update-driven-data` 修改。
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
管理开发者侧当前解析应用下的 `company` 知识库,并检索当前应用可访问的公司与公共知识。所有命令都通过标准工作区、`--app <name>` 或 `--appcode <code>` 解析目标应用。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
企业知识库请求使用独立的 `kbDomain`。当前官方节点的 KB 仍由平台 API 服务承载,因此未显式配置 `kbDomain` 时跟随 `apiDomain`;KB 服务拆分或企业独立部署时可单独覆盖 `kbDomain`。`runtimeDomain` 不参与 rabetbase 企业 KB 路由。当前 rabetbase-cli 没有调用 SkillHub 业务 API,未来新增时必须使用独立的 `skillDomain`。
|
|
6
6
|
|
|
7
7
|
> 边界:`lovrabet kb` 使用运行态 AK/当前应用/当前用户,面向个人知识库和可见知识搜索;`rabetbase kb` 使用开发者登录态,面向公司知识库管理以及公司/公共知识检索。不要用其中一个替代另一个。
|
|
8
8
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.0-beta.
|
|
6
|
-
"skillVersion": "2.5.0-beta.
|
|
5
|
+
"packageVersion": "2.5.0-beta.2",
|
|
6
|
+
"skillVersion": "2.5.0-beta.2",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/backend-function.md",
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
"references/rabetbase-user-account.md",
|
|
133
133
|
"references/rabetbase-workspace.md"
|
|
134
134
|
],
|
|
135
|
-
"digest": "
|
|
135
|
+
"digest": "a617fe33ba67f284c9ce0b59ede606a8c6f8536f54b3708a4b123c446745cc25"
|
|
136
136
|
}
|