@lovrabet/rabetbase-cli 2.5.0-beta.6 → 2.5.0
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/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/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.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a291_0x55400f=a291_0x4959;(function(_0x5d838f,_0xa9c78c){const _0x20b13f=a291_0x4959,_0x290944=_0x5d838f();while(!![]){try{const _0x110ba2=-parseInt(_0x20b13f(0x16c))/0x1+-parseInt(_0x20b13f(0x173))/0x2+parseInt(_0x20b13f(0x14b))/0x3*(parseInt(_0x20b13f(0x14f))/0x4)+-parseInt(_0x20b13f(0x135))/0x5+-parseInt(_0x20b13f(0x13b))/0x6*(parseInt(_0x20b13f(0x165))/0x7)+-parseInt(_0x20b13f(0x152))/0x8+parseInt(_0x20b13f(0x150))/0x9;if(_0x110ba2===_0xa9c78c)break;else _0x290944['push'](_0x290944['shift']());}catch(_0x594d92){_0x290944['push'](_0x290944['shift']());}}}(a291_0xfbe5,0xa06f2));import a291_0x445534 from'node:fs';import a291_0x5e5971 from'node:path';import{logger}from'../utils/logger.js';function a291_0xfbe5(){const _0x253268=['getFullYear','2933ekxWpX','mkdir','map','padStart','replaceApiContent','template','datasetCode:\x20\x22','997379pvrKNp','info','readdir','now','join','utf8','pop','324118TiOioC','message','isFile','YourModel','getDate','toLowerCase','Template\x20content\x20replacement\x20failed','4883775PwisUG','writeFile','charAt','Template\x20content\x20replacement\x20completed','.ts','split','366nMpQHa','getHours','error','promises','.tpl','.json','slice','push','datasetCode','name:\x20\x22','.md','.js','replaceContent','isDirectory','endsWith','LOVRABET','2649AMGdub','processFile','tableName','includes','5592TmteEh','25844355ZGXQrE','formatLocalTimestamp','10297112wBKirm','name','alias:\x20\x22','.jsx','toDisplayTitle','toUpperCase','alias','toComponentName','processDirectory','extname','processTemplate','success','.css','default','replace','api','pad','toISOString'];a291_0xfbe5=function(){return _0x253268;};return a291_0xfbe5();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a291_0x4959(_0x260a49,_0x16aafa){_0x260a49=_0x260a49-0x131;const _0xfbe59d=a291_0xfbe5();let _0x4959ad=_0xfbe59d[_0x260a49];return _0x4959ad;}export class TemplateReplacer{static[a291_0x55400f(0x162)](_0x1ee965){const _0x27a083=a291_0x55400f;return String(_0x1ee965)[_0x27a083(0x168)](0x2,'0');}static[a291_0x55400f(0x151)](_0x38062d){const _0x174402=a291_0x55400f,_0x4ae494=_0x38062d[_0x174402(0x164)](),_0x3aaae0=this[_0x174402(0x162)](_0x38062d['getMonth']()+0x1),_0x52dd13=this[_0x174402(0x162)](_0x38062d[_0x174402(0x132)]()),_0x296bc8=this[_0x174402(0x162)](_0x38062d[_0x174402(0x13c)]()),_0x1ae71f=this['pad'](_0x38062d['getMinutes']()),_0x37bdf9=this[_0x174402(0x162)](_0x38062d['getSeconds']());return{'createdAt':_0x4ae494+'-'+_0x3aaae0+'-'+_0x52dd13+'\x20'+_0x296bc8+':'+_0x1ae71f+':'+_0x37bdf9,'createdDate':_0x4ae494+'-'+_0x3aaae0+'-'+_0x52dd13,'createdTime':_0x296bc8+':'+_0x1ae71f+':'+_0x37bdf9};}static[a291_0x55400f(0x159)](_0x364953){const _0x5cfc4e=a291_0x55400f,_0x548f28=_0x364953[_0x5cfc4e(0x13a)]('/')[_0x5cfc4e(0x172)]()||_0x364953;return _0x548f28['split']('-')[_0x5cfc4e(0x167)](_0x2dc94c=>_0x2dc94c[_0x5cfc4e(0x137)](0x0)[_0x5cfc4e(0x157)]()+_0x2dc94c['slice'](0x1)[_0x5cfc4e(0x133)]())['join']('');}static[a291_0x55400f(0x156)](_0x5836fc){const _0x45ca1b=a291_0x55400f,_0x31bf99=_0x5836fc['split']('/')[_0x45ca1b(0x172)]()||_0x5836fc;return _0x31bf99[_0x45ca1b(0x13a)]('-')['map'](_0x4cada1=>_0x4cada1[_0x45ca1b(0x137)](0x0)[_0x45ca1b(0x157)]()+_0x4cada1[_0x45ca1b(0x141)](0x1)[_0x45ca1b(0x133)]())['join']('\x20');}static[a291_0x55400f(0x147)](_0x5881b4,_0x2cbca7,_0xd1606d){const _0x3c3742=a291_0x55400f,_0x49d270=this[_0x3c3742(0x159)](_0x2cbca7),_0x1f0e31=this[_0x3c3742(0x156)](_0x2cbca7),{createdAt:_0x8b99bb,createdDate:_0xc9dcfc,createdTime:_0x1910b7}=this[_0x3c3742(0x151)](new Date());let _0x23399a=_0x5881b4[_0x3c3742(0x160)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x49d270)[_0x3c3742(0x160)](/\{DisplayTitle\}/g,_0x1f0e31)['replace'](/\{PageName\}/g,_0x2cbca7)[_0x3c3742(0x160)](/\{TemplateName\}/g,_0xd1606d)[_0x3c3742(0x160)](/\{CreatedAt\}/g,_0x8b99bb)[_0x3c3742(0x160)](/\{CreatedDate\}/g,_0xc9dcfc)[_0x3c3742(0x160)](/\{CreatedTime\}/g,_0x1910b7);return _0x23399a;}static[a291_0x55400f(0x169)](_0x187861,_0x43e3a7,_0x23fc44,_0x304a31,_0x541402,_0x56fe3f,_0x5a3663,_0xd42287){const _0x559d78=a291_0x55400f,_0x59790a=new Date(),_0x22a5b1=_0x59790a[_0x559d78(0x163)](),_0x2e3aea=_0x23fc44[_0x559d78(0x167)](_0x477678=>{const _0x1570f0=_0x559d78,_0x6fd3f4=[_0x1570f0(0x16b)+_0x477678[_0x1570f0(0x143)]+'\x22','tableName:\x20\x22'+_0x477678[_0x1570f0(0x14d)]+'\x22',_0x1570f0(0x144)+_0x477678[_0x1570f0(0x153)]+'\x22'];return _0x477678[_0x1570f0(0x158)]&&_0x6fd3f4[_0x1570f0(0x142)](_0x1570f0(0x154)+_0x477678[_0x1570f0(0x158)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x6fd3f4[_0x1570f0(0x170)](',\x20')+'\x20},';})[_0x559d78(0x170)](''),_0x547ee3=_0x304a31||_0x23fc44[0x0]?.[_0x559d78(0x158)]||_0x559d78(0x131);let _0x1d6914=_0x187861[_0x559d78(0x160)](/\{AppCode\}/g,_0x43e3a7)[_0x559d78(0x160)](/\{ModelConfigs\}/g,_0x2e3aea)[_0x559d78(0x160)](/\{ExampleModelName\}/g,_0x547ee3)['replace'](/\{ApiFileName\}/g,_0x541402||_0x559d78(0x161))[_0x559d78(0x160)](/\{ConfigName\}/g,_0x56fe3f||_0x559d78(0x15f))[_0x559d78(0x160)](/\{ClientConfigParam\}/g,_0x5a3663||'')[_0x559d78(0x160)](/\{VarPrefix\}/g,_0xd42287||_0x559d78(0x14a))[_0x559d78(0x160)](/\{CreatedAt\}/g,_0x22a5b1);return _0x1d6914;}static async[a291_0x55400f(0x15c)](_0x292db8,_0xc9934,_0x27ea85,_0x41a614,_0x1cafb8=!![]){const _0x143d08=a291_0x55400f,_0x456ffe=Date[_0x143d08(0x16f)]();try{_0x1cafb8&&logger[_0x143d08(0x16d)](_0x143d08(0x16a),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x292db8,'targetPath':_0xc9934,'pageName':_0x27ea85,'templateName':_0x41a614});await a291_0x445534[_0x143d08(0x13e)][_0x143d08(0x166)](_0xc9934,{'recursive':!![]}),await this[_0x143d08(0x15a)](_0x292db8,_0xc9934,_0x27ea85,_0x41a614);if(_0x1cafb8){const _0x463eb1=Date[_0x143d08(0x16f)]()-_0x456ffe;logger[_0x143d08(0x15d)](_0x143d08(0x16a),_0x143d08(0x138),_0x463eb1,{'pageName':_0x27ea85,'templateName':_0x41a614});}}catch(_0x201310){if(_0x1cafb8){const _0x31c899=Date[_0x143d08(0x16f)]()-_0x456ffe;logger[_0x143d08(0x13d)](_0x143d08(0x16a),_0x143d08(0x134),{'templatePath':_0x292db8,'targetPath':_0xc9934,'pageName':_0x27ea85,'templateName':_0x41a614,'error':_0x201310 instanceof Error?_0x201310[_0x143d08(0x174)]:String(_0x201310),'duration':_0x31c899});}throw _0x201310;}}static async[a291_0x55400f(0x15a)](_0x31c464,_0x2d6996,_0x443620,_0x3630c1){const _0x4b7b5f=a291_0x55400f,_0x5505c9=await a291_0x445534['promises'][_0x4b7b5f(0x16e)](_0x31c464,{'withFileTypes':!![]});for(const _0x33f7f3 of _0x5505c9){const _0x44e47d=a291_0x5e5971[_0x4b7b5f(0x170)](_0x31c464,_0x33f7f3[_0x4b7b5f(0x153)]);let _0x505c35=a291_0x5e5971[_0x4b7b5f(0x170)](_0x2d6996,_0x33f7f3[_0x4b7b5f(0x153)]);_0x33f7f3['name'][_0x4b7b5f(0x149)](_0x4b7b5f(0x13f))&&(_0x505c35=a291_0x5e5971[_0x4b7b5f(0x170)](_0x2d6996,_0x33f7f3['name'][_0x4b7b5f(0x160)](/\.tpl$/,'')));if(_0x33f7f3[_0x4b7b5f(0x148)]())await a291_0x445534['promises'][_0x4b7b5f(0x166)](_0x505c35,{'recursive':!![]}),await this[_0x4b7b5f(0x15a)](_0x44e47d,_0x505c35,_0x443620,_0x3630c1);else _0x33f7f3[_0x4b7b5f(0x175)]()&&await this[_0x4b7b5f(0x14c)](_0x44e47d,_0x505c35,_0x443620,_0x3630c1);}}static async['processFile'](_0x1cd668,_0x29282c,_0x54efc0,_0x554107){const _0x4ac4cd=a291_0x55400f,_0x488043=a291_0x5e5971[_0x4ac4cd(0x15b)](_0x1cd668)[_0x4ac4cd(0x133)]();_0x1cd668[_0x4ac4cd(0x149)](_0x4ac4cd(0x13f))&&(_0x29282c=_0x29282c['replace'](/\.tpl$/,''));const _0x54938a=['.tsx',_0x4ac4cd(0x139),_0x4ac4cd(0x155),_0x4ac4cd(0x146),_0x4ac4cd(0x140),_0x4ac4cd(0x145),_0x4ac4cd(0x15e),'.scss','.tpl'];if(_0x54938a[_0x4ac4cd(0x14e)](_0x488043)||_0x1cd668['endsWith']('.tpl')){const _0x31eff2=await a291_0x445534[_0x4ac4cd(0x13e)]['readFile'](_0x1cd668,_0x4ac4cd(0x171)),_0x3994dc=this[_0x4ac4cd(0x147)](_0x31eff2,_0x54efc0,_0x554107);await a291_0x445534[_0x4ac4cd(0x13e)][_0x4ac4cd(0x136)](_0x29282c,_0x3994dc,'utf8');}else await a291_0x445534[_0x4ac4cd(0x13e)]['copyFile'](_0x1cd668,_0x29282c);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a292_0x4810(_0xd278e,_0x5e0182){_0xd278e=_0xd278e-0x1e7;const _0x350c4f=a292_0x350c();let _0x481010=_0x350c4f[_0xd278e];return _0x481010;}(function(_0x218a07,_0x449547){const _0xb85576=a292_0x4810,_0x5e0d2f=_0x218a07();while(!![]){try{const _0x63281=-parseInt(_0xb85576(0x1f2))/0x1+parseInt(_0xb85576(0x203))/0x2*(-parseInt(_0xb85576(0x1fa))/0x3)+-parseInt(_0xb85576(0x1e8))/0x4*(-parseInt(_0xb85576(0x201))/0x5)+parseInt(_0xb85576(0x1f8))/0x6*(parseInt(_0xb85576(0x1fe))/0x7)+-parseInt(_0xb85576(0x200))/0x8+-parseInt(_0xb85576(0x1fb))/0x9+parseInt(_0xb85576(0x1f5))/0xa*(parseInt(_0xb85576(0x1ef))/0xb);if(_0x63281===_0x449547)break;else _0x5e0d2f['push'](_0x5e0d2f['shift']());}catch(_0xfafb86){_0x5e0d2f['push'](_0x5e0d2f['shift']());}}}(a292_0x350c,0xe0e4a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a292_0x58661a 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 _0x1aa10c=a292_0x4810,_0x2fad3c=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x1aa10c(0x1ed)]()['toLowerCase']();return _0x2fad3c==='1'||_0x2fad3c===_0x1aa10c(0x1fc)||_0x2fad3c==='yes';}function cacheRoot(){const _0xf8b3cf=a292_0x4810;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0xf8b3cf(0x1f4));}export function getUpdateNoticeCachePath(){const _0x27822f=a292_0x4810;return join(cacheRoot(),_0x27822f(0x1f9),_0x27822f(0x1f6));}async function readUpdateNoticeCache(){const _0x5b0683=a292_0x4810;try{const _0x4e5b21=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x4c023f=JSON[_0x5b0683(0x1ea)](_0x4e5b21);if(!_0x4c023f||typeof _0x4c023f!==_0x5b0683(0x1f7))return{};return _0x4c023f;}catch{return{};}}async function writeUpdateNoticeCache(_0x440723){const _0x185da1=a292_0x4810;try{const _0x51f0d4=getUpdateNoticeCachePath();await mkdir(dirname(_0x51f0d4),{'recursive':!![]}),await writeFile(_0x51f0d4,JSON['stringify'](_0x440723,null,0x2)+'\x0a',_0x185da1(0x1eb));}catch{}}function a292_0x350c(){const _0x534524=['stableVersion','14589751RgHABx','now','lastNotifiedVersion','1033897xeQeUs',',\x20run:\x20','.cache','20xXNyqj','update-check.json','object','24QvbJuO','rabetbase-cli','3IkjLHO','2351223kgmseJ','true','lastNotifiedAt','1252916OMSzdn','\x20update','10741112OaToZm','2922095GYEHbR','latest','1957054ErmcQw','https://www.npmjs.com/package/','number','/v/','checkedAt','8mVoQwK','valid','parse','utf8','\x20available,\x20current\x20','trim'];a292_0x350c=function(){return _0x534524;};return a292_0x350c();}function isFreshCheck(_0x93a2a8,_0x5a0e24){const _0x2a97a1=a292_0x4810;return typeof _0x93a2a8['checkedAt']===_0x2a97a1(0x205)&&_0x5a0e24-_0x93a2a8[_0x2a97a1(0x1e7)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3ac5a2,_0x88ca1f,_0xd2a621){const _0x13d3e1=a292_0x4810;return _0x3ac5a2[_0x13d3e1(0x1f1)]===_0x88ca1f&&typeof _0x3ac5a2[_0x13d3e1(0x1fd)]==='number'&&_0xd2a621-_0x3ac5a2['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x259aaf){const _0x220a55=a292_0x4810;return _0x220a55(0x204)+NPM_PACKAGE_NAME+_0x220a55(0x206)+_0x259aaf;}export async function resolveLatestUpdateNotice(){const _0x22cc71=a292_0x4810;if(isUpdateNoticeDisabled())return null;try{const _0x6b5344=Date[_0x22cc71(0x1f0)](),_0x2907d0=getCliVersion(),_0xbba93b=await readUpdateNoticeCache();let _0x14d8a8=isFreshCheck(_0xbba93b,_0x6b5344)?_0xbba93b[_0x22cc71(0x202)]?.[_0x22cc71(0x1ed)]():undefined;if(!_0x14d8a8&&!isFreshCheck(_0xbba93b,_0x6b5344)){const _0x15c6e0=await getCliVersionPolicy();_0x14d8a8=_0x15c6e0?.[_0x22cc71(0x1ee)]?.[_0x22cc71(0x1ed)]()||undefined,await writeUpdateNoticeCache({..._0xbba93b,'checkedAt':_0x6b5344,'latest':_0x14d8a8,'failed':!_0x14d8a8});}if(!_0x14d8a8||!a292_0x58661a['valid'](_0x2907d0)||!a292_0x58661a[_0x22cc71(0x1e9)](_0x14d8a8))return null;if(a292_0x58661a['gte'](_0x2907d0,_0x14d8a8))return null;if(isRecentlyNotified(_0xbba93b,_0x14d8a8,_0x6b5344))return null;const _0x20a0e3=CLI_BIN_NAME+_0x22cc71(0x1ff);return await writeUpdateNoticeCache({..._0xbba93b,'checkedAt':isFreshCheck(_0xbba93b,_0x6b5344)?_0xbba93b['checkedAt']:_0x6b5344,'latest':_0x14d8a8,'failed':![],'lastNotifiedVersion':_0x14d8a8,'lastNotifiedAt':_0x6b5344}),{'command':_0x20a0e3,'current':_0x2907d0,'latest':_0x14d8a8,'url':buildNpmVersionUrl(_0x14d8a8),'message':CLI_BIN_NAME+'\x20'+_0x14d8a8+_0x22cc71(0x1ec)+_0x2907d0+_0x22cc71(0x1f3)+_0x20a0e3};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42bb02,_0x44ebc4){var _0x238dcd=a293_0x1ace,_0x270b15=_0x42bb02();while(!![]){try{var _0x4e70a3=parseInt(_0x238dcd(0x68))/0x1+parseInt(_0x238dcd(0x6c))/0x2+-parseInt(_0x238dcd(0x66))/0x3*(-parseInt(_0x238dcd(0x65))/0x4)+-parseInt(_0x238dcd(0x67))/0x5+parseInt(_0x238dcd(0x69))/0x6+parseInt(_0x238dcd(0x6b))/0x7*(-parseInt(_0x238dcd(0x6d))/0x8)+-parseInt(_0x238dcd(0x6a))/0x9;if(_0x4e70a3===_0x44ebc4)break;else _0x270b15['push'](_0x270b15['shift']());}catch(_0x2bb7bb){_0x270b15['push'](_0x270b15['shift']());}}}(a293_0x43b8,0x881a2));function a293_0x43b8(){var _0x2ba1f5=['5061519eXmNQR','7wJLnmW','359260heniwM','7233688CByLmF','284264jhUmZQ','12rbFrjq','182180gGEZQO','810010YYohHZ','4719648xnsRWU'];a293_0x43b8=function(){return _0x2ba1f5;};return a293_0x43b8();}import{VERSION}from'../generated/build-info.js';function a293_0x1ace(_0x2adb34,_0x54b0f7){_0x2adb34=_0x2adb34-0x65;var _0x43b8c4=a293_0x43b8();var _0x1ace15=_0x43b8c4[_0x2adb34];return _0x1ace15;}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a294_0x35f4(){var _0x2b5c44=['6860920AYCZbb','503556asmQvk','62460hfOfnD','736850bwWWEF','114qQnRaD','428005YcdcTT','8841889unYpPG','3272103vNdpFQ','303oGILBb'];a294_0x35f4=function(){return _0x2b5c44;};return a294_0x35f4();}(function(_0x245cc1,_0x203cbc){var _0x466e06=a294_0x4a08,_0x41ab4e=_0x245cc1();while(!![]){try{var _0xf3a117=parseInt(_0x466e06(0x11f))/0x1+parseInt(_0x466e06(0x11d))/0x2+-parseInt(_0x466e06(0x124))/0x3*(-parseInt(_0x466e06(0x11e))/0x4)+-parseInt(_0x466e06(0x121))/0x5*(parseInt(_0x466e06(0x120))/0x6)+-parseInt(_0x466e06(0x122))/0x7+parseInt(_0x466e06(0x125))/0x8+parseInt(_0x466e06(0x123))/0x9;if(_0xf3a117===_0x203cbc)break;else _0x41ab4e['push'](_0x41ab4e['shift']());}catch(_0x2ad90a){_0x41ab4e['push'](_0x41ab4e['shift']());}}}(a294_0x35f4,0xdb163));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a294_0x4a08(_0x257199,_0x1b08c7){_0x257199=_0x257199-0x11d;var _0x35f4d1=a294_0x35f4();var _0x4a088e=_0x35f4d1[_0x257199];return _0x4a088e;}export async function withActiveCookie(_0x3eecd9,_0x564d48){setActiveCookie(_0x3eecd9);try{return await _0x564d48();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12c9c8,_0x490437){var _0x25c34b=a295_0x57d4,_0x51a524=_0x12c9c8();while(!![]){try{var _0x2dc9a4=-parseInt(_0x25c34b(0xfe))/0x1*(-parseInt(_0x25c34b(0x103))/0x2)+-parseInt(_0x25c34b(0x10b))/0x3*(parseInt(_0x25c34b(0x102))/0x4)+-parseInt(_0x25c34b(0xff))/0x5*(-parseInt(_0x25c34b(0x105))/0x6)+-parseInt(_0x25c34b(0x100))/0x7+-parseInt(_0x25c34b(0x108))/0x8*(-parseInt(_0x25c34b(0x109))/0x9)+parseInt(_0x25c34b(0x107))/0xa*(parseInt(_0x25c34b(0x106))/0xb)+-parseInt(_0x25c34b(0x10a))/0xc*(parseInt(_0x25c34b(0x101))/0xd);if(_0x2dc9a4===_0x490437)break;else _0x51a524['push'](_0x51a524['shift']());}catch(_0x49e542){_0x51a524['push'](_0x51a524['shift']());}}}(a295_0xf87a,0x92bb3));function a295_0x57d4(_0x347494,_0x3f73c0){_0x347494=_0x347494-0xfe;var _0xf87a73=a295_0xf87a();var _0x57d4b8=_0xf87a73[_0x347494];return _0x57d4b8;}export function writeCliSideChannelLine(_0x4d6a2b){var _0x44c375=a295_0x57d4;process[_0x44c375(0x104)]['write'](_0x4d6a2b+'\x0a');}function a295_0xf87a(){var _0x54e53d=['8802iUpPHE','stderr','1197606dQpsfC','66ZenEIY','1555530SvqWgs','9704KFKBjz','1395JIwMXY','36wpnZuG','269697VNoVsU','251xUEcWa','25GDUeRe','2011296KOWGhp','8952463FdAHdo','12jcZJZh'];a295_0xf87a=function(){return _0x54e53d;};return a295_0xf87a();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.0
|
|
3
|
+
"version": "2.5.0",
|
|
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
|
|
3
|
+
version: 2.5.0
|
|
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-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:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.0
|
|
6
|
-
"skillVersion": "2.5.0
|
|
5
|
+
"packageVersion": "2.5.0",
|
|
6
|
+
"skillVersion": "2.5.0",
|
|
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": "dca9ab8c944c37266a62b08c870f666f5a3646bcc01098f2750f9b318456a477"
|
|
136
136
|
}
|