@lovrabet/rabetbase-cli 2.5.0-beta.2 → 2.5.0-beta.3
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/guides/custom-page-workflow.md +1 -1
- package/skills/rabetbase/references/rabetbase-page-custom-list.md +5 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a290_0x273bd9=a290_0x2039;function a290_0x4baf(){const _0x4bc3a4=['map','template','replaceContent','.js','4854LHwZQw','.json','toUpperCase','2816128aRKoGg','tableName','error','mkdir','readdir','api','slice','processDirectory','\x20},','getFullYear','message','now','promises','name:\x20\x22','1047wZRhYa','pad','.tsx','.tpl','Template\x20content\x20replacement\x20failed','5bUPqxq','273548UueMuI','1620186paeCJi','toDisplayTitle','.jsx','Starting\x20template\x20content\x20replacement','getMonth','821484LihCTg','Template\x20content\x20replacement\x20completed','padStart','36ADwUfJ','formatLocalTimestamp','.css','datasetCode:\x20\x22','utf8','endsWith','YourModel','push','success','getHours','getSeconds','copyFile','includes','getDate','toLowerCase','\x0a\x20\x20\x20\x20{\x20','readFile','isFile','replace','processTemplate','toComponentName','toISOString','split','.scss','replaceApiContent','1086968CIkvuP','alias','LOVRABET','isDirectory','name','.ts','join','pop','alias:\x20\x22','tableName:\x20\x22','8008YSrYZz','17720YdUdmC','processFile','info','writeFile','charAt'];a290_0x4baf=function(){return _0x4bc3a4;};return a290_0x4baf();}(function(_0x1c9f58,_0x5e50cf){const _0xe552c2=a290_0x2039,_0x2264ef=_0x1c9f58();while(!![]){try{const _0x325389=-parseInt(_0xe552c2(0x154))/0x1+-parseInt(_0xe552c2(0x18a))/0x2*(-parseInt(_0xe552c2(0x14e))/0x3)+-parseInt(_0xe552c2(0x15a))/0x4+parseInt(_0xe552c2(0x153))/0x5*(-parseInt(_0xe552c2(0x155))/0x6)+-parseInt(_0xe552c2(0x18d))/0x7+parseInt(_0xe552c2(0x176))/0x8*(-parseInt(_0xe552c2(0x15d))/0x9)+-parseInt(_0xe552c2(0x181))/0xa*(-parseInt(_0xe552c2(0x180))/0xb);if(_0x325389===_0x5e50cf)break;else _0x2264ef['push'](_0x2264ef['shift']());}catch(_0x275a67){_0x2264ef['push'](_0x2264ef['shift']());}}}(a290_0x4baf,0x6bfbd));function a290_0x2039(_0x5776b7,_0x806325){_0x5776b7=_0x5776b7-0x148;const _0x4baf6f=a290_0x4baf();let _0x203942=_0x4baf6f[_0x5776b7];return _0x203942;}import a290_0x4163c4 from'node:fs';import a290_0x39c877 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a290_0x273bd9(0x14f)](_0x3d4c9d){const _0x3d5b7a=a290_0x273bd9;return String(_0x3d4c9d)[_0x3d5b7a(0x15c)](0x2,'0');}static[a290_0x273bd9(0x15e)](_0x4af8f8){const _0x311587=a290_0x273bd9,_0x129898=_0x4af8f8[_0x311587(0x149)](),_0x2ee920=this[_0x311587(0x14f)](_0x4af8f8[_0x311587(0x159)]()+0x1),_0x4fa7b9=this['pad'](_0x4af8f8[_0x311587(0x16a)]()),_0x42e33b=this[_0x311587(0x14f)](_0x4af8f8[_0x311587(0x166)]()),_0x5c8708=this[_0x311587(0x14f)](_0x4af8f8['getMinutes']()),_0x55c6d3=this[_0x311587(0x14f)](_0x4af8f8[_0x311587(0x167)]());return{'createdAt':_0x129898+'-'+_0x2ee920+'-'+_0x4fa7b9+'\x20'+_0x42e33b+':'+_0x5c8708+':'+_0x55c6d3,'createdDate':_0x129898+'-'+_0x2ee920+'-'+_0x4fa7b9,'createdTime':_0x42e33b+':'+_0x5c8708+':'+_0x55c6d3};}static[a290_0x273bd9(0x171)](_0x562000){const _0x1522cc=a290_0x273bd9,_0x47a2eb=_0x562000['split']('/')[_0x1522cc(0x17d)]()||_0x562000;return _0x47a2eb[_0x1522cc(0x173)]('-')[_0x1522cc(0x186)](_0x603747=>_0x603747[_0x1522cc(0x185)](0x0)[_0x1522cc(0x18c)]()+_0x603747[_0x1522cc(0x193)](0x1)[_0x1522cc(0x16b)]())[_0x1522cc(0x17c)]('');}static['toDisplayTitle'](_0x2e038b){const _0x17173f=a290_0x273bd9,_0x13c4e7=_0x2e038b['split']('/')['pop']()||_0x2e038b;return _0x13c4e7[_0x17173f(0x173)]('-')[_0x17173f(0x186)](_0x4a7ffe=>_0x4a7ffe['charAt'](0x0)['toUpperCase']()+_0x4a7ffe['slice'](0x1)['toLowerCase']())[_0x17173f(0x17c)]('\x20');}static[a290_0x273bd9(0x188)](_0x40efa5,_0x43d8eb,_0x1d966c){const _0x2ce228=a290_0x273bd9,_0x8d2633=this[_0x2ce228(0x171)](_0x43d8eb),_0x375ced=this[_0x2ce228(0x156)](_0x43d8eb),{createdAt:_0x99141a,createdDate:_0x43deeb,createdTime:_0x3c6f7e}=this[_0x2ce228(0x15e)](new Date());let _0x1bfa2e=_0x40efa5['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x8d2633)[_0x2ce228(0x16f)](/\{DisplayTitle\}/g,_0x375ced)[_0x2ce228(0x16f)](/\{PageName\}/g,_0x43d8eb)[_0x2ce228(0x16f)](/\{TemplateName\}/g,_0x1d966c)['replace'](/\{CreatedAt\}/g,_0x99141a)[_0x2ce228(0x16f)](/\{CreatedDate\}/g,_0x43deeb)[_0x2ce228(0x16f)](/\{CreatedTime\}/g,_0x3c6f7e);return _0x1bfa2e;}static[a290_0x273bd9(0x175)](_0xd213e8,_0x45cab7,_0x5744e3,_0x3816e5,_0x47a48c,_0xa91cca,_0x58c0ec,_0x212dc3){const _0x1c1e96=a290_0x273bd9,_0x59ae71=new Date(),_0x309c5b=_0x59ae71[_0x1c1e96(0x172)](),_0x126135=_0x5744e3[_0x1c1e96(0x186)](_0x538e00=>{const _0x3bd693=_0x1c1e96,_0x48ae07=[_0x3bd693(0x160)+_0x538e00['datasetCode']+'\x22',_0x3bd693(0x17f)+_0x538e00[_0x3bd693(0x18e)]+'\x22',_0x3bd693(0x14d)+_0x538e00[_0x3bd693(0x17a)]+'\x22'];return _0x538e00[_0x3bd693(0x177)]&&_0x48ae07[_0x3bd693(0x164)](_0x3bd693(0x17e)+_0x538e00[_0x3bd693(0x177)]+'\x22'),_0x3bd693(0x16c)+_0x48ae07[_0x3bd693(0x17c)](',\x20')+_0x3bd693(0x148);})['join'](''),_0x163754=_0x3816e5||_0x5744e3[0x0]?.[_0x1c1e96(0x177)]||_0x1c1e96(0x163);let _0x507bd7=_0xd213e8['replace'](/\{AppCode\}/g,_0x45cab7)[_0x1c1e96(0x16f)](/\{ModelConfigs\}/g,_0x126135)[_0x1c1e96(0x16f)](/\{ExampleModelName\}/g,_0x163754)[_0x1c1e96(0x16f)](/\{ApiFileName\}/g,_0x47a48c||_0x1c1e96(0x192))[_0x1c1e96(0x16f)](/\{ConfigName\}/g,_0xa91cca||'default')[_0x1c1e96(0x16f)](/\{ClientConfigParam\}/g,_0x58c0ec||'')[_0x1c1e96(0x16f)](/\{VarPrefix\}/g,_0x212dc3||_0x1c1e96(0x178))[_0x1c1e96(0x16f)](/\{CreatedAt\}/g,_0x309c5b);return _0x507bd7;}static async[a290_0x273bd9(0x170)](_0x34074d,_0x217bad,_0x40250f,_0x3f7029,_0x4d378e=!![]){const _0x4f2859=a290_0x273bd9,_0x534d6b=Date[_0x4f2859(0x14b)]();try{_0x4d378e&&logger[_0x4f2859(0x183)]('template',_0x4f2859(0x158),{'templatePath':_0x34074d,'targetPath':_0x217bad,'pageName':_0x40250f,'templateName':_0x3f7029});await a290_0x4163c4[_0x4f2859(0x14c)][_0x4f2859(0x190)](_0x217bad,{'recursive':!![]}),await this[_0x4f2859(0x194)](_0x34074d,_0x217bad,_0x40250f,_0x3f7029);if(_0x4d378e){const _0x182183=Date[_0x4f2859(0x14b)]()-_0x534d6b;logger[_0x4f2859(0x165)](_0x4f2859(0x187),_0x4f2859(0x15b),_0x182183,{'pageName':_0x40250f,'templateName':_0x3f7029});}}catch(_0x47d5f6){if(_0x4d378e){const _0x2f9b89=Date[_0x4f2859(0x14b)]()-_0x534d6b;logger[_0x4f2859(0x18f)](_0x4f2859(0x187),_0x4f2859(0x152),{'templatePath':_0x34074d,'targetPath':_0x217bad,'pageName':_0x40250f,'templateName':_0x3f7029,'error':_0x47d5f6 instanceof Error?_0x47d5f6[_0x4f2859(0x14a)]:String(_0x47d5f6),'duration':_0x2f9b89});}throw _0x47d5f6;}}static async[a290_0x273bd9(0x194)](_0x1411f3,_0xd088fb,_0x10564e,_0x4c9901){const _0x54baaf=a290_0x273bd9,_0x3da138=await a290_0x4163c4[_0x54baaf(0x14c)][_0x54baaf(0x191)](_0x1411f3,{'withFileTypes':!![]});for(const _0x3884b7 of _0x3da138){const _0x2ac0d1=a290_0x39c877[_0x54baaf(0x17c)](_0x1411f3,_0x3884b7[_0x54baaf(0x17a)]);let _0x38130f=a290_0x39c877[_0x54baaf(0x17c)](_0xd088fb,_0x3884b7[_0x54baaf(0x17a)]);_0x3884b7['name'][_0x54baaf(0x162)](_0x54baaf(0x151))&&(_0x38130f=a290_0x39c877['join'](_0xd088fb,_0x3884b7[_0x54baaf(0x17a)][_0x54baaf(0x16f)](/\.tpl$/,'')));if(_0x3884b7[_0x54baaf(0x179)]())await a290_0x4163c4[_0x54baaf(0x14c)][_0x54baaf(0x190)](_0x38130f,{'recursive':!![]}),await this[_0x54baaf(0x194)](_0x2ac0d1,_0x38130f,_0x10564e,_0x4c9901);else _0x3884b7[_0x54baaf(0x16e)]()&&await this[_0x54baaf(0x182)](_0x2ac0d1,_0x38130f,_0x10564e,_0x4c9901);}}static async[a290_0x273bd9(0x182)](_0x40e491,_0x430739,_0x5cdc9a,_0x356ec1){const _0x3257ea=a290_0x273bd9,_0x3a49fe=a290_0x39c877['extname'](_0x40e491)[_0x3257ea(0x16b)]();_0x40e491['endsWith'](_0x3257ea(0x151))&&(_0x430739=_0x430739['replace'](/\.tpl$/,''));const _0x275a6f=[_0x3257ea(0x150),_0x3257ea(0x17b),_0x3257ea(0x157),_0x3257ea(0x189),_0x3257ea(0x18b),'.md',_0x3257ea(0x15f),_0x3257ea(0x174),_0x3257ea(0x151)];if(_0x275a6f[_0x3257ea(0x169)](_0x3a49fe)||_0x40e491[_0x3257ea(0x162)](_0x3257ea(0x151))){const _0x3699c0=await a290_0x4163c4[_0x3257ea(0x14c)][_0x3257ea(0x16d)](_0x40e491,_0x3257ea(0x161)),_0x3a4819=this[_0x3257ea(0x188)](_0x3699c0,_0x5cdc9a,_0x356ec1);await a290_0x4163c4['promises'][_0x3257ea(0x184)](_0x430739,_0x3a4819,_0x3257ea(0x161));}else await a290_0x4163c4[_0x3257ea(0x14c)][_0x3257ea(0x168)](_0x40e491,_0x430739);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b7760,_0x2013d7){const _0x3ceae0=a291_0x5779,_0x323cd4=_0x2b7760();while(!![]){try{const _0xb31762=parseInt(_0x3ceae0(0x208))/0x1*(parseInt(_0x3ceae0(0x204))/0x2)+-parseInt(_0x3ceae0(0x1f4))/0x3+-parseInt(_0x3ceae0(0x1f3))/0x4*(-parseInt(_0x3ceae0(0x1f1))/0x5)+parseInt(_0x3ceae0(0x1f2))/0x6*(parseInt(_0x3ceae0(0x1ed))/0x7)+parseInt(_0x3ceae0(0x1f5))/0x8+-parseInt(_0x3ceae0(0x1fd))/0x9*(-parseInt(_0x3ceae0(0x1f9))/0xa)+-parseInt(_0x3ceae0(0x1ff))/0xb*(parseInt(_0x3ceae0(0x1f8))/0xc);if(_0xb31762===_0x2013d7)break;else _0x323cd4['push'](_0x323cd4['shift']());}catch(_0x441293){_0x323cd4['push'](_0x323cd4['shift']());}}}(a291_0x809b,0xeb3ad));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a291_0x1aa315 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 _0x24d752=a291_0x5779,_0x36e535=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x24d752(0x1eb)]()[_0x24d752(0x1f7)]();return _0x36e535==='1'||_0x36e535===_0x24d752(0x1fa)||_0x36e535===_0x24d752(0x205);}function cacheRoot(){const _0x59a9e6=a291_0x5779;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x59a9e6(0x1ef));}function a291_0x5779(_0x21d8b8,_0x5e67dd){_0x21d8b8=_0x21d8b8-0x1e8;const _0x809b30=a291_0x809b();let _0x5779c3=_0x809b30[_0x21d8b8];return _0x5779c3;}export function getUpdateNoticeCachePath(){const _0x572809=a291_0x5779;return join(cacheRoot(),_0x572809(0x1fe),_0x572809(0x200));}async function readUpdateNoticeCache(){const _0x47b44f=a291_0x5779;try{const _0x1fa7b5=await readFile(getUpdateNoticeCachePath(),_0x47b44f(0x1e8)),_0x27b5ad=JSON['parse'](_0x1fa7b5);if(!_0x27b5ad||typeof _0x27b5ad!==_0x47b44f(0x202))return{};return _0x27b5ad;}catch{return{};}}async function writeUpdateNoticeCache(_0xb517d8){const _0x55b5a0=a291_0x5779;try{const _0x15e643=getUpdateNoticeCachePath();await mkdir(dirname(_0x15e643),{'recursive':!![]}),await writeFile(_0x15e643,JSON['stringify'](_0xb517d8,null,0x2)+'\x0a',_0x55b5a0(0x1e8));}catch{}}function isFreshCheck(_0x36a221,_0x3d3a71){const _0x1a0a75=a291_0x5779;return typeof _0x36a221[_0x1a0a75(0x1fc)]===_0x1a0a75(0x1f0)&&_0x3d3a71-_0x36a221[_0x1a0a75(0x1fc)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x518528,_0x46a449,_0x599815){const _0x5c0a06=a291_0x5779;return _0x518528['lastNotifiedVersion']===_0x46a449&&typeof _0x518528['lastNotifiedAt']===_0x5c0a06(0x1f0)&&_0x599815-_0x518528[_0x5c0a06(0x1fb)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x3422ba){const _0x7735ab=a291_0x5779;return _0x7735ab(0x207)+NPM_PACKAGE_NAME+_0x7735ab(0x1f6)+_0x3422ba;}function a291_0x809b(){const _0x4885b8=['yes','gte','https://www.npmjs.com/package/','2432JrtedX','utf8','latest','stableVersion','trim','valid','7xcLoyf','\x20available,\x20current\x20','.cache','number','2949055rWGyPl','5803254dJjwRL','8CSeHyH','632457vwCYOO','1990288oPpSFs','/v/','toLowerCase','8116248fAvtPX','30nfmWme','true','lastNotifiedAt','checkedAt','3584907aigirO','rabetbase-cli','55OCtpoq','update-check.json','now','object',',\x20run:\x20','794dSVWeL'];a291_0x809b=function(){return _0x4885b8;};return a291_0x809b();}export async function resolveLatestUpdateNotice(){const _0x4a1a74=a291_0x5779;if(isUpdateNoticeDisabled())return null;try{const _0x6090a1=Date[_0x4a1a74(0x201)](),_0x2ba5f1=getCliVersion(),_0xc12088=await readUpdateNoticeCache();let _0x49b82f=isFreshCheck(_0xc12088,_0x6090a1)?_0xc12088[_0x4a1a74(0x1e9)]?.[_0x4a1a74(0x1eb)]():undefined;if(!_0x49b82f&&!isFreshCheck(_0xc12088,_0x6090a1)){const _0x20f299=await getCliVersionPolicy();_0x49b82f=_0x20f299?.[_0x4a1a74(0x1ea)]?.[_0x4a1a74(0x1eb)]()||undefined,await writeUpdateNoticeCache({..._0xc12088,'checkedAt':_0x6090a1,'latest':_0x49b82f,'failed':!_0x49b82f});}if(!_0x49b82f||!a291_0x1aa315[_0x4a1a74(0x1ec)](_0x2ba5f1)||!a291_0x1aa315[_0x4a1a74(0x1ec)](_0x49b82f))return null;if(a291_0x1aa315[_0x4a1a74(0x206)](_0x2ba5f1,_0x49b82f))return null;if(isRecentlyNotified(_0xc12088,_0x49b82f,_0x6090a1))return null;const _0x2d65ec=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0xc12088,'checkedAt':isFreshCheck(_0xc12088,_0x6090a1)?_0xc12088[_0x4a1a74(0x1fc)]:_0x6090a1,'latest':_0x49b82f,'failed':![],'lastNotifiedVersion':_0x49b82f,'lastNotifiedAt':_0x6090a1}),{'command':_0x2d65ec,'current':_0x2ba5f1,'latest':_0x49b82f,'url':buildNpmVersionUrl(_0x49b82f),'message':CLI_BIN_NAME+'\x20'+_0x49b82f+_0x4a1a74(0x1ee)+_0x2ba5f1+_0x4a1a74(0x203)+_0x2d65ec};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a292_0x40ca(_0x5a47a0,_0x358ac9){_0x5a47a0=_0x5a47a0-0xe1;var _0xdc786a=a292_0xdc78();var _0x40ca88=_0xdc786a[_0x5a47a0];return _0x40ca88;}(function(_0x302f0b,_0x9ff8b1){var _0x3a1e94=a292_0x40ca,_0x4fe820=_0x302f0b();while(!![]){try{var _0x380f75=-parseInt(_0x3a1e94(0xe7))/0x1+parseInt(_0x3a1e94(0xe1))/0x2*(parseInt(_0x3a1e94(0xe9))/0x3)+-parseInt(_0x3a1e94(0xea))/0x4*(parseInt(_0x3a1e94(0xe5))/0x5)+parseInt(_0x3a1e94(0xe6))/0x6+-parseInt(_0x3a1e94(0xe4))/0x7*(-parseInt(_0x3a1e94(0xeb))/0x8)+-parseInt(_0x3a1e94(0xe3))/0x9*(parseInt(_0x3a1e94(0xe2))/0xa)+-parseInt(_0x3a1e94(0xe8))/0xb;if(_0x380f75===_0x9ff8b1)break;else _0x4fe820['push'](_0x4fe820['shift']());}catch(_0x4e8e6d){_0x4fe820['push'](_0x4fe820['shift']());}}}(a292_0xdc78,0x59522));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a292_0xdc78(){var _0x362066=['563330wSDMQU','9IMxfjD','483XyTUoX','5GOYIUp','4388430CCiBIt','491523mWgJDZ','8010134TWJPAc','3dBZdSV','147220TixOGA','62312lCArSu','819734dSKsqm'];a292_0xdc78=function(){return _0x362066;};return a292_0xdc78();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x507f0e,_0xfd37e6){var _0x3549e8=a293_0x1ca6,_0x27c89=_0x507f0e();while(!![]){try{var _0x48ebbd=parseInt(_0x3549e8(0xb8))/0x1+parseInt(_0x3549e8(0xb9))/0x2+parseInt(_0x3549e8(0xb6))/0x3*(parseInt(_0x3549e8(0xbf))/0x4)+-parseInt(_0x3549e8(0xbc))/0x5+-parseInt(_0x3549e8(0xba))/0x6*(parseInt(_0x3549e8(0xb7))/0x7)+-parseInt(_0x3549e8(0xbb))/0x8+-parseInt(_0x3549e8(0xbd))/0x9*(parseInt(_0x3549e8(0xbe))/0xa);if(_0x48ebbd===_0xfd37e6)break;else _0x27c89['push'](_0x27c89['shift']());}catch(_0x346ea3){_0x27c89['push'](_0x27c89['shift']());}}}(a293_0xab8f,0x765b6));function a293_0x1ca6(_0x20da7c,_0x2bc06f){_0x20da7c=_0x20da7c-0xb6;var _0xab8fd4=a293_0xab8f();var _0x1ca63b=_0xab8fd4[_0x20da7c];return _0x1ca63b;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x504de0,_0xd7c065){setActiveCookie(_0x504de0);try{return await _0xd7c065();}finally{clearActiveCookie();}}function a293_0xab8f(){var _0x211331=['12WEWiRY','1373267WpuVLM','638753ljoijk','641700IKILpz','12dQpkrk','1325328eCjwAR','165240vmeIat','45CQNrUp','671210dxTPcc','451868SvIpeZ'];a293_0xab8f=function(){return _0x211331;};return a293_0xab8f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x59bfdb,_0x5d50c5){var _0x2f57a8=a294_0x4bfd,_0xc62c7f=_0x59bfdb();while(!![]){try{var _0x5f3aff=parseInt(_0x2f57a8(0x1b2))/0x1+-parseInt(_0x2f57a8(0x1b5))/0x2+-parseInt(_0x2f57a8(0x1b6))/0x3+-parseInt(_0x2f57a8(0x1b1))/0x4*(-parseInt(_0x2f57a8(0x1ad))/0x5)+parseInt(_0x2f57a8(0x1b4))/0x6+-parseInt(_0x2f57a8(0x1af))/0x7*(-parseInt(_0x2f57a8(0x1ae))/0x8)+parseInt(_0x2f57a8(0x1ab))/0x9*(-parseInt(_0x2f57a8(0x1b3))/0xa);if(_0x5f3aff===_0x5d50c5)break;else _0xc62c7f['push'](_0xc62c7f['shift']());}catch(_0x425faa){_0xc62c7f['push'](_0xc62c7f['shift']());}}}(a294_0x5d06,0xc4e92));function a294_0x5d06(){var _0x35b943=['9ttKxXk','write','25GcDPej','976QEvwed','61971blglgB','stderr','1039628tuQCgk','1425777WEiPEW','17791310WDLJZP','3312120tbQtzr','2683916lMQrel','1289289Gnldqq'];a294_0x5d06=function(){return _0x35b943;};return a294_0x5d06();}function a294_0x4bfd(_0x34aae2,_0x3c2981){_0x34aae2=_0x34aae2-0x1ab;var _0x5d061c=a294_0x5d06();var _0x4bfd14=_0x5d061c[_0x34aae2];return _0x4bfd14;}export function writeCliSideChannelLine(_0x2b74a2){var _0x3bd9b8=a294_0x4bfd;process[_0x3bd9b8(0x1b0)][_0x3bd9b8(0x1ac)](_0x2b74a2+'\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.3",
|
|
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.3
|
|
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:
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
### 查找或修改已有页面
|
|
31
31
|
|
|
32
|
-
1. 未知页面 ID 时,先阅读 [`rabetbase-page-custom-list.md`](../references/rabetbase-page-custom-list.md),执行 `page custom-list
|
|
32
|
+
1. 未知页面 ID 时,先阅读 [`rabetbase-page-custom-list.md`](../references/rabetbase-page-custom-list.md),执行 `page custom-list`;仅在跨应用或覆盖工作区默认应用时传 `--appcode <appCode>`
|
|
33
33
|
2. 根据 `data.pages[].pageId` 与 `label` 与用户确认目标页面;`data.pages[].pageUrl` 用于查看最新保存内容,`data.pages[].editPageUrl` 用于打开页面编辑器
|
|
34
34
|
3. 阅读 [`rabetbase-page-custom-detail.md`](../references/rabetbase-page-custom-detail.md),执行 `page custom-detail --id <pageId>`
|
|
35
35
|
4. 只在返回的最新 `data.codeContent` 基础上编辑,不得根据旧缓存或猜测覆盖文件
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
## 命令
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
rabetbase page custom-list --
|
|
6
|
+
rabetbase page custom-list --format compress
|
|
7
|
+
rabetbase page custom-list --appcode <appCode> --format compress
|
|
7
8
|
```
|
|
8
9
|
|
|
9
10
|
## 适用场景
|
|
@@ -12,7 +13,9 @@ rabetbase page custom-list --appcode <appCode> --format json
|
|
|
12
13
|
|
|
13
14
|
## 参数
|
|
14
15
|
|
|
15
|
-
- `--appcode <appCode
|
|
16
|
+
- `--appcode <appCode>`:可选;不传时从当前工作区 `defaultApp` 或唯一应用自动决议,传入时覆盖工作区选择
|
|
17
|
+
|
|
18
|
+
工作区无可决议应用且未传 `--appcode` 时,命令返回结构化的应用配置缺失错误,不会请求菜单接口。
|
|
16
19
|
|
|
17
20
|
## 输出
|
|
18
21
|
|
|
@@ -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.3",
|
|
6
|
+
"skillVersion": "2.5.0-beta.3",
|
|
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": "d4362adbb43274c9bd91aff62f2838f936835f38d2832f03c2e459ada27df78f"
|
|
136
136
|
}
|