@lovrabet/rabetbase-cli 2.5.1-beta.3 → 2.5.1-beta.4
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.d.ts +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-restore.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/dataset/user-deleted-field-list.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/table-diff-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/deployment/auto-sync.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync.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/deployment-sync.js +1 -1
- package/lib/config/domain-config.d.ts +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-routing.js +1 -1
- package/lib/config/schema.d.ts +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.d.ts +0 -2
- 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/constant/routing-profile.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/kb-search-client.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 +2 -5
- package/skills/rabetbase/references/rabetbase-doctor.md +1 -1
- package/skills/rabetbase/references/rabetbase-init.md +0 -2
- package/skills/rabetbase/references/rabetbase-kb.md +3 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a300_0x534cf0=a300_0x4770;(function(_0xd29b64,_0x26a499){const _0x2d5f85=a300_0x4770,_0x1b1d1a=_0xd29b64();while(!![]){try{const _0x145a06=-parseInt(_0x2d5f85(0x9a))/0x1*(parseInt(_0x2d5f85(0xa7))/0x2)+-parseInt(_0x2d5f85(0xac))/0x3+-parseInt(_0x2d5f85(0x8a))/0x4*(parseInt(_0x2d5f85(0x77))/0x5)+-parseInt(_0x2d5f85(0xa8))/0x6*(parseInt(_0x2d5f85(0x93))/0x7)+-parseInt(_0x2d5f85(0xad))/0x8*(parseInt(_0x2d5f85(0x75))/0x9)+parseInt(_0x2d5f85(0xaf))/0xa+parseInt(_0x2d5f85(0x8b))/0xb;if(_0x145a06===_0x26a499)break;else _0x1b1d1a['push'](_0x1b1d1a['shift']());}catch(_0x71f326){_0x1b1d1a['push'](_0x1b1d1a['shift']());}}}(a300_0x52ff,0x66f43));import a300_0x18c55a from'node:fs';import a300_0x473e4b from'node:path';function a300_0x52ff(){const _0x4db39c=['info','endsWith','toDisplayTitle','name','toLowerCase','51055YTpKhN','push','map','promises','mkdir','tableName','utf8','.tpl','processFile','readFile','.tsx','tableName:\x20\x22','getHours','2zHMVVI','2368602oZqkxs','writeFile','charAt','padStart','1404645JOJrju','4504QodRXY','getDate','6460260qjeHqc','datasetCode:\x20\x22','processDirectory','name:\x20\x22','datasetCode','alias','Template\x20content\x20replacement\x20failed','now','alias:\x20\x22','api','.scss','copyFile','toComponentName','replace','6795VDNEWq','.js','376990cJgvnj','split','YourModel','isFile','toUpperCase','getMinutes','success','\x20},','.css','includes','\x0a\x20\x20\x20\x20{\x20','join','replaceContent','isDirectory','error','.jsx','replaceApiContent','extname','Template\x20content\x20replacement\x20completed','16iltrsn','15580037laduWJ','pad','template','getFullYear','.md','readdir','getSeconds','.ts','7kkqAQK','pop'];a300_0x52ff=function(){return _0x4db39c;};return a300_0x52ff();}function a300_0x4770(_0x4f81bb,_0x211edb){_0x4f81bb=_0x4f81bb-0x69;const _0x52ff43=a300_0x52ff();let _0x477084=_0x52ff43[_0x4f81bb];return _0x477084;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a300_0x534cf0(0x8c)](_0xc0445d){const _0x23bffd=a300_0x534cf0;return String(_0xc0445d)[_0x23bffd(0xab)](0x2,'0');}static['formatLocalTimestamp'](_0x3bf8fc){const _0x159497=a300_0x534cf0,_0x32d81f=_0x3bf8fc[_0x159497(0x8e)](),_0x2fa638=this[_0x159497(0x8c)](_0x3bf8fc['getMonth']()+0x1),_0x1df42e=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0xae)]()),_0x2e0b91=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0xa6)]()),_0x743b7b=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0x7c)]()),_0x474a02=this[_0x159497(0x8c)](_0x3bf8fc[_0x159497(0x91)]());return{'createdAt':_0x32d81f+'-'+_0x2fa638+'-'+_0x1df42e+'\x20'+_0x2e0b91+':'+_0x743b7b+':'+_0x474a02,'createdDate':_0x32d81f+'-'+_0x2fa638+'-'+_0x1df42e,'createdTime':_0x2e0b91+':'+_0x743b7b+':'+_0x474a02};}static[a300_0x534cf0(0x73)](_0x322a37){const _0x3fc74a=a300_0x534cf0,_0x45338a=_0x322a37[_0x3fc74a(0x78)]('/')[_0x3fc74a(0x94)]()||_0x322a37;return _0x45338a[_0x3fc74a(0x78)]('-')[_0x3fc74a(0x9c)](_0x47f099=>_0x47f099[_0x3fc74a(0xaa)](0x0)['toUpperCase']()+_0x47f099['slice'](0x1)[_0x3fc74a(0x99)]())[_0x3fc74a(0x82)]('');}static[a300_0x534cf0(0x97)](_0x57eafd){const _0x5af2d2=a300_0x534cf0,_0x49449b=_0x57eafd[_0x5af2d2(0x78)]('/')[_0x5af2d2(0x94)]()||_0x57eafd;return _0x49449b[_0x5af2d2(0x78)]('-')[_0x5af2d2(0x9c)](_0x55395d=>_0x55395d[_0x5af2d2(0xaa)](0x0)[_0x5af2d2(0x7b)]()+_0x55395d['slice'](0x1)['toLowerCase']())[_0x5af2d2(0x82)]('\x20');}static[a300_0x534cf0(0x83)](_0x292a8a,_0x4ee478,_0x47ff4b){const _0x566ff6=a300_0x534cf0,_0x297390=this[_0x566ff6(0x73)](_0x4ee478),_0x13364b=this['toDisplayTitle'](_0x4ee478),{createdAt:_0x260785,createdDate:_0x3b80cc,createdTime:_0x4353d0}=this['formatLocalTimestamp'](new Date());let _0x3ba184=_0x292a8a[_0x566ff6(0x74)](/\{CliVersion\}/g,CLI_VERSION)[_0x566ff6(0x74)](/\{ComponentName\}/g,_0x297390)[_0x566ff6(0x74)](/\{DisplayTitle\}/g,_0x13364b)[_0x566ff6(0x74)](/\{PageName\}/g,_0x4ee478)['replace'](/\{TemplateName\}/g,_0x47ff4b)['replace'](/\{CreatedAt\}/g,_0x260785)[_0x566ff6(0x74)](/\{CreatedDate\}/g,_0x3b80cc)['replace'](/\{CreatedTime\}/g,_0x4353d0);return _0x3ba184;}static[a300_0x534cf0(0x87)](_0x81f965,_0x44b5b6,_0x2456ed,_0x3862f1,_0x27dbc1,_0x484afe,_0x1bff4f,_0xa63b9a){const _0x387d48=a300_0x534cf0,_0x2e8ab7=new Date(),_0x575315=_0x2e8ab7['toISOString'](),_0x25fb56=_0x2456ed[_0x387d48(0x9c)](_0xdfd7d0=>{const _0xb093a9=_0x387d48,_0x335ae0=[_0xb093a9(0xb0)+_0xdfd7d0[_0xb093a9(0x6b)]+'\x22',_0xb093a9(0xa5)+_0xdfd7d0[_0xb093a9(0x9f)]+'\x22',_0xb093a9(0x6a)+_0xdfd7d0[_0xb093a9(0x98)]+'\x22'];return _0xdfd7d0[_0xb093a9(0x6c)]&&_0x335ae0[_0xb093a9(0x9b)](_0xb093a9(0x6f)+_0xdfd7d0[_0xb093a9(0x6c)]+'\x22'),_0xb093a9(0x81)+_0x335ae0['join'](',\x20')+_0xb093a9(0x7e);})[_0x387d48(0x82)](''),_0x173c47=_0x3862f1||_0x2456ed[0x0]?.[_0x387d48(0x6c)]||_0x387d48(0x79);let _0x243d09=_0x81f965[_0x387d48(0x74)](/\{AppCode\}/g,_0x44b5b6)['replace'](/\{ModelConfigs\}/g,_0x25fb56)[_0x387d48(0x74)](/\{ExampleModelName\}/g,_0x173c47)['replace'](/\{ApiFileName\}/g,_0x27dbc1||_0x387d48(0x70))['replace'](/\{ConfigName\}/g,_0x484afe||'default')[_0x387d48(0x74)](/\{ClientConfigParam\}/g,_0x1bff4f||'')[_0x387d48(0x74)](/\{VarPrefix\}/g,_0xa63b9a||'LOVRABET')[_0x387d48(0x74)](/\{CreatedAt\}/g,_0x575315);return _0x243d09;}static async['processTemplate'](_0xf15f98,_0xbcc686,_0x4c5747,_0x3ba082,_0x4d1497=!![]){const _0x1371fb=a300_0x534cf0,_0x4bfa84=Date[_0x1371fb(0x6e)]();try{_0x4d1497&&logger[_0x1371fb(0x95)](_0x1371fb(0x8d),'Starting\x20template\x20content\x20replacement',{'templatePath':_0xf15f98,'targetPath':_0xbcc686,'pageName':_0x4c5747,'templateName':_0x3ba082});await a300_0x18c55a['promises'][_0x1371fb(0x9e)](_0xbcc686,{'recursive':!![]}),await this[_0x1371fb(0x69)](_0xf15f98,_0xbcc686,_0x4c5747,_0x3ba082);if(_0x4d1497){const _0x1ded52=Date[_0x1371fb(0x6e)]()-_0x4bfa84;logger[_0x1371fb(0x7d)](_0x1371fb(0x8d),_0x1371fb(0x89),_0x1ded52,{'pageName':_0x4c5747,'templateName':_0x3ba082});}}catch(_0x4e20d1){if(_0x4d1497){const _0x17ac5c=Date[_0x1371fb(0x6e)]()-_0x4bfa84;logger[_0x1371fb(0x85)](_0x1371fb(0x8d),_0x1371fb(0x6d),{'templatePath':_0xf15f98,'targetPath':_0xbcc686,'pageName':_0x4c5747,'templateName':_0x3ba082,'error':_0x4e20d1 instanceof Error?_0x4e20d1['message']:String(_0x4e20d1),'duration':_0x17ac5c});}throw _0x4e20d1;}}static async[a300_0x534cf0(0x69)](_0x2b9c73,_0x139951,_0x8df1ee,_0x5e104a){const _0x2fe104=a300_0x534cf0,_0x4baed5=await a300_0x18c55a['promises'][_0x2fe104(0x90)](_0x2b9c73,{'withFileTypes':!![]});for(const _0x14917f of _0x4baed5){const _0x46de53=a300_0x473e4b['join'](_0x2b9c73,_0x14917f[_0x2fe104(0x98)]);let _0xdfab07=a300_0x473e4b[_0x2fe104(0x82)](_0x139951,_0x14917f[_0x2fe104(0x98)]);_0x14917f[_0x2fe104(0x98)][_0x2fe104(0x96)](_0x2fe104(0xa1))&&(_0xdfab07=a300_0x473e4b[_0x2fe104(0x82)](_0x139951,_0x14917f[_0x2fe104(0x98)]['replace'](/\.tpl$/,'')));if(_0x14917f[_0x2fe104(0x84)]())await a300_0x18c55a[_0x2fe104(0x9d)]['mkdir'](_0xdfab07,{'recursive':!![]}),await this[_0x2fe104(0x69)](_0x46de53,_0xdfab07,_0x8df1ee,_0x5e104a);else _0x14917f[_0x2fe104(0x7a)]()&&await this['processFile'](_0x46de53,_0xdfab07,_0x8df1ee,_0x5e104a);}}static async[a300_0x534cf0(0xa2)](_0x5c8648,_0x6ac623,_0x1a905d,_0x5f5dfa){const _0x152f75=a300_0x534cf0,_0x2cea93=a300_0x473e4b[_0x152f75(0x88)](_0x5c8648)[_0x152f75(0x99)]();_0x5c8648[_0x152f75(0x96)](_0x152f75(0xa1))&&(_0x6ac623=_0x6ac623[_0x152f75(0x74)](/\.tpl$/,''));const _0x1c5d75=[_0x152f75(0xa4),_0x152f75(0x92),_0x152f75(0x86),_0x152f75(0x76),'.json',_0x152f75(0x8f),_0x152f75(0x7f),_0x152f75(0x71),_0x152f75(0xa1)];if(_0x1c5d75[_0x152f75(0x80)](_0x2cea93)||_0x5c8648[_0x152f75(0x96)](_0x152f75(0xa1))){const _0x4365c2=await a300_0x18c55a['promises'][_0x152f75(0xa3)](_0x5c8648,'utf8'),_0x1f4f93=this['replaceContent'](_0x4365c2,_0x1a905d,_0x5f5dfa);await a300_0x18c55a[_0x152f75(0x9d)][_0x152f75(0xa9)](_0x6ac623,_0x1f4f93,_0x152f75(0xa0));}else await a300_0x18c55a[_0x152f75(0x9d)][_0x152f75(0x72)](_0x5c8648,_0x6ac623);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34a142,_0x30e5a4){const _0x44737f=a301_0x4ad3,_0x5ba575=_0x34a142();while(!![]){try{const _0x1fe8dc=-parseInt(_0x44737f(0x108))/0x1*(-parseInt(_0x44737f(0x102))/0x2)+parseInt(_0x44737f(0x106))/0x3+-parseInt(_0x44737f(0xf8))/0x4+parseInt(_0x44737f(0x104))/0x5*(parseInt(_0x44737f(0xff))/0x6)+parseInt(_0x44737f(0xf7))/0x7*(-parseInt(_0x44737f(0x103))/0x8)+parseInt(_0x44737f(0x107))/0x9*(-parseInt(_0x44737f(0x10e))/0xa)+parseInt(_0x44737f(0x10a))/0xb;if(_0x1fe8dc===_0x30e5a4)break;else _0x5ba575['push'](_0x5ba575['shift']());}catch(_0x387e1c){_0x5ba575['push'](_0x5ba575['shift']());}}}(a301_0x3769,0xc26cd));function a301_0x3769(){const _0x55b0b2=['55088VfjdqQ','2944872xenZWB','88285ZvywyH','yes','4226607cSHMNr','4515471EBgtbH','12rVtmfr','stableVersion','6286995kBXlQG','valid','lastNotifiedVersion','now','20nOxdUd','https://www.npmjs.com/package/','number','toLowerCase','\x20update','stringify','\x20available,\x20current\x20','true','checkedAt','/v/','object','rabetbase-cli','7kFGXjS','4739172RxXdIC','.cache','parse','gte',',\x20run:\x20','latest','lastNotifiedAt','354FFTrjL','trim','utf8'];a301_0x3769=function(){return _0x55b0b2;};return a301_0x3769();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a301_0x16fe6b 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 _0x409c47=a301_0x4ad3,_0x287777=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x409c47(0x100)]()[_0x409c47(0x111)]();return _0x287777==='1'||_0x287777===_0x409c47(0x115)||_0x287777===_0x409c47(0x105);}function cacheRoot(){const _0x5007a9=a301_0x4ad3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5007a9(0xf9));}export function getUpdateNoticeCachePath(){const _0x143b19=a301_0x4ad3;return join(cacheRoot(),_0x143b19(0xf6),'update-check.json');}async function readUpdateNoticeCache(){const _0x4e1403=a301_0x4ad3;try{const _0x5272b1=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2a5dfc=JSON[_0x4e1403(0xfa)](_0x5272b1);if(!_0x2a5dfc||typeof _0x2a5dfc!==_0x4e1403(0xf5))return{};return _0x2a5dfc;}catch{return{};}}async function writeUpdateNoticeCache(_0x19a05b){const _0x4c58d8=a301_0x4ad3;try{const _0x2d0c9c=getUpdateNoticeCachePath();await mkdir(dirname(_0x2d0c9c),{'recursive':!![]}),await writeFile(_0x2d0c9c,JSON[_0x4c58d8(0x113)](_0x19a05b,null,0x2)+'\x0a',_0x4c58d8(0x101));}catch{}}function a301_0x4ad3(_0x976b9f,_0x376d56){_0x976b9f=_0x976b9f-0xf4;const _0x37699f=a301_0x3769();let _0x4ad3ef=_0x37699f[_0x976b9f];return _0x4ad3ef;}function isFreshCheck(_0x1403a1,_0x2fbb2e){const _0x281428=a301_0x4ad3;return typeof _0x1403a1[_0x281428(0x116)]==='number'&&_0x2fbb2e-_0x1403a1['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4b2dff,_0x55e293,_0x339853){const _0x2ef592=a301_0x4ad3;return _0x4b2dff[_0x2ef592(0x10c)]===_0x55e293&&typeof _0x4b2dff[_0x2ef592(0xfe)]===_0x2ef592(0x110)&&_0x339853-_0x4b2dff[_0x2ef592(0xfe)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4225da){const _0xe8758e=a301_0x4ad3;return _0xe8758e(0x10f)+NPM_PACKAGE_NAME+_0xe8758e(0xf4)+_0x4225da;}export async function resolveLatestUpdateNotice(){const _0x4e733f=a301_0x4ad3;if(isUpdateNoticeDisabled())return null;try{const _0xff8c4e=Date[_0x4e733f(0x10d)](),_0x41bc75=getCliVersion(),_0x19e520=await readUpdateNoticeCache();let _0x3ec436=isFreshCheck(_0x19e520,_0xff8c4e)?_0x19e520[_0x4e733f(0xfd)]?.['trim']():undefined;if(!_0x3ec436&&!isFreshCheck(_0x19e520,_0xff8c4e)){const _0x4bd55c=await getCliVersionPolicy();_0x3ec436=_0x4bd55c?.[_0x4e733f(0x109)]?.[_0x4e733f(0x100)]()||undefined,await writeUpdateNoticeCache({..._0x19e520,'checkedAt':_0xff8c4e,'latest':_0x3ec436,'failed':!_0x3ec436});}if(!_0x3ec436||!a301_0x16fe6b[_0x4e733f(0x10b)](_0x41bc75)||!a301_0x16fe6b['valid'](_0x3ec436))return null;if(a301_0x16fe6b[_0x4e733f(0xfb)](_0x41bc75,_0x3ec436))return null;if(isRecentlyNotified(_0x19e520,_0x3ec436,_0xff8c4e))return null;const _0x5ac8d3=CLI_BIN_NAME+_0x4e733f(0x112);return await writeUpdateNoticeCache({..._0x19e520,'checkedAt':isFreshCheck(_0x19e520,_0xff8c4e)?_0x19e520[_0x4e733f(0x116)]:_0xff8c4e,'latest':_0x3ec436,'failed':![],'lastNotifiedVersion':_0x3ec436,'lastNotifiedAt':_0xff8c4e}),{'command':_0x5ac8d3,'current':_0x41bc75,'latest':_0x3ec436,'url':buildNpmVersionUrl(_0x3ec436),'message':CLI_BIN_NAME+'\x20'+_0x3ec436+_0x4e733f(0x114)+_0x41bc75+_0x4e733f(0xfc)+_0x5ac8d3};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a302_0x4715(){var _0x147db0=['1737xtGeUx','60scRIRu','243012ayLCke','1737660REISJC','66DRvYbC','19211Iegkod','6800HdnbCy','682000iLRPdF','11124660xJPzTY','1608296NrwDXK'];a302_0x4715=function(){return _0x147db0;};return a302_0x4715();}(function(_0x2a266b,_0x314ff3){var _0x58fea6=a302_0x2c54,_0x3174f2=_0x2a266b();while(!![]){try{var _0x50cee4=parseInt(_0x58fea6(0x1db))/0x1*(parseInt(_0x58fea6(0x1e4))/0x2)+parseInt(_0x58fea6(0x1e3))/0x3+-parseInt(_0x58fea6(0x1df))/0x4+parseInt(_0x58fea6(0x1dd))/0x5+parseInt(_0x58fea6(0x1e1))/0x6*(parseInt(_0x58fea6(0x1e2))/0x7)+parseInt(_0x58fea6(0x1dc))/0x8*(parseInt(_0x58fea6(0x1e0))/0x9)+-parseInt(_0x58fea6(0x1de))/0xa;if(_0x50cee4===_0x314ff3)break;else _0x3174f2['push'](_0x3174f2['shift']());}catch(_0x1c5311){_0x3174f2['push'](_0x3174f2['shift']());}}}(a302_0x4715,0x5488d));import{VERSION}from'../generated/build-info.js';function a302_0x2c54(_0x487d3f,_0x3f2650){_0x487d3f=_0x487d3f-0x1db;var _0x4715d9=a302_0x4715();var _0x2c54d5=_0x4715d9[_0x487d3f];return _0x2c54d5;}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ce576,_0x559649){var _0x3e7069=a303_0x3f95,_0x100e6b=_0x4ce576();while(!![]){try{var _0x9d4d3f=parseInt(_0x3e7069(0xfc))/0x1*(parseInt(_0x3e7069(0x100))/0x2)+-parseInt(_0x3e7069(0xff))/0x3*(parseInt(_0x3e7069(0xf7))/0x4)+parseInt(_0x3e7069(0xf9))/0x5+-parseInt(_0x3e7069(0xf6))/0x6+-parseInt(_0x3e7069(0xfd))/0x7+-parseInt(_0x3e7069(0xfe))/0x8*(-parseInt(_0x3e7069(0xfb))/0x9)+-parseInt(_0x3e7069(0xfa))/0xa*(-parseInt(_0x3e7069(0xf8))/0xb);if(_0x9d4d3f===_0x559649)break;else _0x100e6b['push'](_0x100e6b['shift']());}catch(_0x2cce40){_0x100e6b['push'](_0x100e6b['shift']());}}}(a303_0x1335,0x3e8bb));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a303_0x3f95(_0x4cbfd9,_0x3ed294){_0x4cbfd9=_0x4cbfd9-0xf6;var _0x13357a=a303_0x1335();var _0x3f955f=_0x13357a[_0x4cbfd9];return _0x3f955f;}export async function withActiveCookie(_0x1eb428,_0x2453bc){setActiveCookie(_0x1eb428);try{return await _0x2453bc();}finally{clearActiveCookie();}}function a303_0x1335(){var _0x5be8ec=['88TqlZxl','589071BLeSnW','2VEGqUZ','2810250rohELS','4JpAqai','51425faPdkT','634150mKiiZe','700CeZmzU','334611jkZDaU','200172NaEjft','996114PFKlco'];a303_0x1335=function(){return _0x5be8ec;};return a303_0x1335();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a304_0x2c45(){var _0x415809=['1559460lopVYE','write','28547037smPKYQ','3jPPvUN','3659250JeJTzQ','1329518vvSoeZ','2789058DzDiYK','30njAKyu','10qwWcPu','1763076IhHamH','11983488CQQOtk'];a304_0x2c45=function(){return _0x415809;};return a304_0x2c45();}function a304_0x5cf1(_0x89a5cf,_0x3668f9){_0x89a5cf=_0x89a5cf-0x154;var _0x2c457f=a304_0x2c45();var _0x5cf185=_0x2c457f[_0x89a5cf];return _0x5cf185;}(function(_0x105c99,_0x4e769e){var _0x3a0f65=a304_0x5cf1,_0x54d72c=_0x105c99();while(!![]){try{var _0x2ef6ee=parseInt(_0x3a0f65(0x15e))/0x1+-parseInt(_0x3a0f65(0x154))/0x2*(-parseInt(_0x3a0f65(0x15c))/0x3)+-parseInt(_0x3a0f65(0x157))/0x4+-parseInt(_0x3a0f65(0x15d))/0x5+parseInt(_0x3a0f65(0x155))/0x6*(parseInt(_0x3a0f65(0x159))/0x7)+parseInt(_0x3a0f65(0x158))/0x8+-parseInt(_0x3a0f65(0x15b))/0x9*(parseInt(_0x3a0f65(0x156))/0xa);if(_0x2ef6ee===_0x4e769e)break;else _0x54d72c['push'](_0x54d72c['shift']());}catch(_0x33f8ab){_0x54d72c['push'](_0x54d72c['shift']());}}}(a304_0x2c45,0xf208b));export function writeCliSideChannelLine(_0x4012f4){var _0x529933=a304_0x5cf1;process['stderr'][_0x529933(0x15a)](_0x4012f4+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.1-beta.
|
|
3
|
+
"version": "2.5.1-beta.4",
|
|
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.1-beta.
|
|
3
|
+
version: 2.5.1-beta.4
|
|
4
4
|
description: "Lovrabet 开发工作流 CLI — 通过 rabetbase 命令管理数据集、数据库连接(dblink)、局部部署研发元数据同步、数据列表页(Data List Page)、自定义页面(Custom Page)、SQL 查询、Backend Function 脚本、通知配置、企业知识库、菜单事实读取与同步、开发角色与协作者、应用文件、面向票证类业务材料文字与结构化字段提取的 OCR、代码生成,以及平台问题上报。触发词:数据集、数据表、dataset relation-audit、dataset delete、dataset restore、dataset user-deleted-field-list、dataset field-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-refresh-start、db diff-refresh-status、db analyze-batch-plan、db analyze-start、analyze-cancel、analyze-status、traceId、deployment sync、局部部署、研发元数据同步、target-env、direct、自定义 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:
|
|
@@ -73,7 +73,6 @@ CLI 对旧版顶层 `appcode` 仍兼容读取,但它已经不是推荐主模
|
|
|
73
73
|
"runtimeDomain": "https://custom-runtime.example.com",
|
|
74
74
|
"skillDomain": "https://custom-skills.example.com",
|
|
75
75
|
"kbDomain": "https://custom-kb.example.com",
|
|
76
|
-
"kbSearchDomain": "https://custom-kb-search.example.com",
|
|
77
76
|
"appDomain": "https://custom-app.example.com",
|
|
78
77
|
"localDomain": "https://custom-local.example.com",
|
|
79
78
|
"certificateDomain": "https://custom-cert.example.com"
|
|
@@ -137,8 +136,7 @@ rabetbase workspace remove product --yes
|
|
|
137
136
|
| `userDomain` | string | 平台默认 | 自定义用户域名 |
|
|
138
137
|
| `runtimeDomain` | string | 平台默认 | 自定义运行时域名 |
|
|
139
138
|
| `skillDomain` | string | 节点默认 | SkillHub HTTPS origin 覆盖 |
|
|
140
|
-
| `kbDomain` | string | 跟随 `apiDomain` / 节点 API 默认值 |
|
|
141
|
-
| `kbSearchDomain` | string | CN 已登记 KB Service;其他区域无默认值 | `kb search` 专用 HTTPS origin;与 KB 管理域独立,未登记区域不回退 |
|
|
139
|
+
| `kbDomain` | string | 跟随 `apiDomain` / 节点 API 默认值 | 企业知识库管理与 `kb search` 的 SmartCode Java HTTPS origin;KB Service 下游地址由 Java 配置 |
|
|
142
140
|
| `appDomain` | string | 节点默认 | 工作台、页面编辑器和发布页面域名 |
|
|
143
141
|
| `localDomain` | string | 独立部署默认 `http://localhost` | 自定义 HTTPS 本地回调 origin;与 `certificateDomain` 同时配置 |
|
|
144
142
|
| `certificateDomain` | string | 节点默认;独立部署无 | 本地 HTTPS 证书服务 origin;与 `localDomain` 同时配置 |
|
|
@@ -329,7 +327,7 @@ rabetbase config set --key region --value id --global
|
|
|
329
327
|
rabetbase config init --domain-config ./lovrabet-domains.json
|
|
330
328
|
```
|
|
331
329
|
|
|
332
|
-
|
|
330
|
+
该文件接收六个服务 Domain,以及可选的 `localDomain`、`certificateDomain`;值必须是无 path/query/fragment 的 HTTPS origin。自定义 HTTPS 本地回调必须同时提供 `localDomain` 与 `certificateDomain`。完整行为与命令行 flags 见 [`rabetbase config init`](rabetbase-init.md)。
|
|
333
331
|
|
|
334
332
|
也可以逐项覆盖:
|
|
335
333
|
|
|
@@ -340,7 +338,6 @@ rabetbase config set --key userDomain --value https://your-user.example.com --gl
|
|
|
340
338
|
rabetbase config set --key runtimeDomain --value https://your-runtime.example.com --global
|
|
341
339
|
rabetbase config set --key skillDomain --value https://your-skills.example.com --global
|
|
342
340
|
rabetbase config set --key kbDomain --value https://your-kb.example.com --global
|
|
343
|
-
rabetbase config set --key kbSearchDomain --value https://your-kb-search.example.com --global
|
|
344
341
|
rabetbase config set --key appDomain --value https://your-app.example.com --global
|
|
345
342
|
```
|
|
346
343
|
|
|
@@ -24,7 +24,7 @@ rabetbase doctor check
|
|
|
24
24
|
| Config JSON | 分别检测全局/项目配置文件是否为**合法 JSON**;非法时标红并给出解析错误(常见于尾随逗号、注释等,会导致该侧配置在合并时被忽略) |
|
|
25
25
|
| Merged Config | 合并后的所有配置项(appCode / env / cookie / apiDir 等) |
|
|
26
26
|
| Apps | 多应用模式下的应用列表及各自配置 |
|
|
27
|
-
| API Endpoints | 最终生效的 region 与域名(user / api / runtime / skill / kb
|
|
27
|
+
| API Endpoints | 最终生效的 region 与域名(user / api / runtime / skill / kb / app);KB 管理与 search 共用 SmartCode Java origin |
|
|
28
28
|
| Auth | 登录状态及 cookie 有效性 |
|
|
29
29
|
|
|
30
30
|
## 典型场景
|
|
@@ -19,7 +19,6 @@ rabetbase config init \
|
|
|
19
19
|
--runtime-domain https://runtime.customer.example.com \
|
|
20
20
|
--skill-domain https://skills.customer.example.com \
|
|
21
21
|
--kb-domain https://kb.customer.example.com \
|
|
22
|
-
--kb-search-domain https://kb-search.customer.example.com \
|
|
23
22
|
--app-domain https://app.customer.example.com \
|
|
24
23
|
--local-domain https://local.customer.example.com \
|
|
25
24
|
--certificate-domain https://cert.customer.example.com
|
|
@@ -52,7 +51,6 @@ rabetbase config init \
|
|
|
52
51
|
"runtimeDomain": "https://runtime.customer.example.com",
|
|
53
52
|
"skillDomain": "https://skills.customer.example.com",
|
|
54
53
|
"kbDomain": "https://kb.customer.example.com",
|
|
55
|
-
"kbSearchDomain": "https://kb-search.customer.example.com",
|
|
56
54
|
"appDomain": "https://app.customer.example.com",
|
|
57
55
|
"localDomain": "https://local.customer.example.com",
|
|
58
56
|
"certificateDomain": "https://cert.customer.example.com"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
管理开发者侧当前解析应用下的 `company` 知识库,并检索当前应用可访问的公司与公共知识。所有命令都通过标准工作区、`--app <name>` 或 `--appcode <code>` 解析目标应用。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
企业知识库管理与 `kb search` 都使用 `kbDomain`;未显式配置时跟随当前 region/env 的 `apiDomain`,`runtimeDomain` 不参与。`kb search` Cookie-only 调用 SmartCode Java,KB Service 下游域名由 Java 配置,CLI 不再持有或直连该地址。
|
|
6
6
|
|
|
7
7
|
> 边界:`lovrabet kb` 使用运行态 AK/当前应用/当前用户,面向个人知识库和可见知识搜索;`rabetbase kb` 使用开发者登录态,面向公司知识库管理以及公司/公共知识检索。不要用其中一个替代另一个。
|
|
8
8
|
|
|
@@ -37,7 +37,8 @@ rabetbase kb delete --id 60 --yes
|
|
|
37
37
|
|
|
38
38
|
## search
|
|
39
39
|
|
|
40
|
-
- Cookie-only 调用 `POST /
|
|
40
|
+
- Cookie-only 调用 SmartCode Java `POST /smartapi/knowledge/company-public/search`,请求体包含 `appCode`、`query` 和可选 `topK`;不发送 AK、`userId`、profile 或 scope。
|
|
41
|
+
- SmartCode Java 是统一鉴权、调用量记录与后续计费入口,并按自身配置转发 KB Service 固定 Development 接口;响应保持完整 V2 证据且带 `Cache-Control: no-store`。
|
|
41
42
|
- Development profile 在检索前固定限制为 `public/company`;任何 `personal` 命中都按协议错误失败关闭。
|
|
42
43
|
- `--query` 必填且不能是纯空白;`--topk` 可选,必须为 1–50 的整数。不传时沿用服务端缺省规则。
|
|
43
44
|
- 结构化输出固定为 `data: { schemaVersion:2, profile:"development", total, strategyFingerprint, timingsMs, hits }`。`total` 等于命中数;每个命中完整保留 `documentId/revision/chunkId/scope/title/text/tags/rank/rawScore/finalScore/scoreKind` 的服务端顺序和值,无 legacy 别名。
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.1-beta.
|
|
6
|
-
"skillVersion": "2.5.1-beta.
|
|
5
|
+
"packageVersion": "2.5.1-beta.4",
|
|
6
|
+
"skillVersion": "2.5.1-beta.4",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/backend-function.md",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"references/rabetbase-user-account.md",
|
|
136
136
|
"references/rabetbase-workspace.md"
|
|
137
137
|
],
|
|
138
|
-
"digest": "
|
|
138
|
+
"digest": "1b2765e7ebd7a0c0d9b7be2aa14c53e1ba78951425f298cbd2685cf3b6aac8bf"
|
|
139
139
|
}
|