@lovrabet/rabetbase-cli 2.4.6-beta.2 → 2.4.6
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/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/get.js +1 -1
- package/lib/commands/config/index.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/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/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/init/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/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/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/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/rules-cdn.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 +3 -3
- package/skills/rabetbase/references/rabetbase-ocr.md +17 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5225aa,_0x5d73b6){const _0x51bd45=a291_0x10ed,_0x447e8f=_0x5225aa();while(!![]){try{const _0x2daaa2=-parseInt(_0x51bd45(0x95))/0x1+-parseInt(_0x51bd45(0x9f))/0x2+-parseInt(_0x51bd45(0x97))/0x3*(parseInt(_0x51bd45(0x93))/0x4)+parseInt(_0x51bd45(0x8e))/0x5+parseInt(_0x51bd45(0xab))/0x6*(-parseInt(_0x51bd45(0x96))/0x7)+parseInt(_0x51bd45(0xa2))/0x8+-parseInt(_0x51bd45(0xa4))/0x9*(-parseInt(_0x51bd45(0x92))/0xa);if(_0x2daaa2===_0x5d73b6)break;else _0x447e8f['push'](_0x447e8f['shift']());}catch(_0x1870ef){_0x447e8f['push'](_0x447e8f['shift']());}}}(a291_0x21e3,0x861e0));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a291_0x442dca from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a291_0x21e3(){const _0x3bc5a4=['valid','toLowerCase','gte','629528SpvhPh','checkedAt','number','2754264eaVfac','utf8','14562657vUegdl','lastNotifiedAt','stableVersion','lastNotifiedVersion','latest',',\x20run:\x20','rabetbase-cli','108OeMSRp','now','3916550CSuyCK','\x20update','stringify','trim','10fdnwqx','204152MrAzqm','parse','340086erVqbj','182651JUKnJO','63GATjIP','https://www.npmjs.com/package/','/v/','object','true'];a291_0x21e3=function(){return _0x3bc5a4;};return a291_0x21e3();}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 _0x34b296=a291_0x10ed,_0x24349b=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x34b296(0x9d)]();return _0x24349b==='1'||_0x24349b===_0x34b296(0x9b)||_0x24349b==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x5d6177=a291_0x10ed;return join(cacheRoot(),_0x5d6177(0xaa),'update-check.json');}async function readUpdateNoticeCache(){const _0x37e369=a291_0x10ed;try{const _0x468c90=await readFile(getUpdateNoticeCachePath(),_0x37e369(0xa3)),_0xb96373=JSON[_0x37e369(0x94)](_0x468c90);if(!_0xb96373||typeof _0xb96373!==_0x37e369(0x9a))return{};return _0xb96373;}catch{return{};}}function a291_0x10ed(_0x20babb,_0x1ae76e){_0x20babb=_0x20babb-0x8d;const _0x21e3d9=a291_0x21e3();let _0x10ed53=_0x21e3d9[_0x20babb];return _0x10ed53;}async function writeUpdateNoticeCache(_0x2205a8){const _0x1c3625=a291_0x10ed;try{const _0x2ae727=getUpdateNoticeCachePath();await mkdir(dirname(_0x2ae727),{'recursive':!![]}),await writeFile(_0x2ae727,JSON[_0x1c3625(0x90)](_0x2205a8,null,0x2)+'\x0a',_0x1c3625(0xa3));}catch{}}function isFreshCheck(_0x2f4afb,_0x5a0c6a){const _0x1ea384=a291_0x10ed;return typeof _0x2f4afb['checkedAt']==='number'&&_0x5a0c6a-_0x2f4afb[_0x1ea384(0xa0)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x3c28de,_0xd3a436,_0x59a5f0){const _0x57255b=a291_0x10ed;return _0x3c28de[_0x57255b(0xa7)]===_0xd3a436&&typeof _0x3c28de[_0x57255b(0xa5)]===_0x57255b(0xa1)&&_0x59a5f0-_0x3c28de[_0x57255b(0xa5)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x955f72){const _0x13db83=a291_0x10ed;return _0x13db83(0x98)+NPM_PACKAGE_NAME+_0x13db83(0x99)+_0x955f72;}export async function resolveLatestUpdateNotice(){const _0x51a9c0=a291_0x10ed;if(isUpdateNoticeDisabled())return null;try{const _0x46aca9=Date[_0x51a9c0(0x8d)](),_0x399072=getCliVersion(),_0x546122=await readUpdateNoticeCache();let _0x2160f4=isFreshCheck(_0x546122,_0x46aca9)?_0x546122[_0x51a9c0(0xa8)]?.[_0x51a9c0(0x91)]():undefined;if(!_0x2160f4&&!isFreshCheck(_0x546122,_0x46aca9)){const _0x4af82b=await getCliVersionPolicy();_0x2160f4=_0x4af82b?.[_0x51a9c0(0xa6)]?.[_0x51a9c0(0x91)]()||undefined,await writeUpdateNoticeCache({..._0x546122,'checkedAt':_0x46aca9,'latest':_0x2160f4,'failed':!_0x2160f4});}if(!_0x2160f4||!a291_0x442dca[_0x51a9c0(0x9c)](_0x399072)||!a291_0x442dca[_0x51a9c0(0x9c)](_0x2160f4))return null;if(a291_0x442dca[_0x51a9c0(0x9e)](_0x399072,_0x2160f4))return null;if(isRecentlyNotified(_0x546122,_0x2160f4,_0x46aca9))return null;const _0x437ea9=CLI_BIN_NAME+_0x51a9c0(0x8f);return await writeUpdateNoticeCache({..._0x546122,'checkedAt':isFreshCheck(_0x546122,_0x46aca9)?_0x546122[_0x51a9c0(0xa0)]:_0x46aca9,'latest':_0x2160f4,'failed':![],'lastNotifiedVersion':_0x2160f4,'lastNotifiedAt':_0x46aca9}),{'command':_0x437ea9,'current':_0x399072,'latest':_0x2160f4,'url':buildNpmVersionUrl(_0x2160f4),'message':CLI_BIN_NAME+'\x20'+_0x2160f4+'\x20available,\x20current\x20'+_0x399072+_0x51a9c0(0xa9)+_0x437ea9};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x120b65,_0x57bb95){var _0x17c86e=a292_0x1e63,_0x5ac14f=_0x120b65();while(!![]){try{var _0x3a4cc1=parseInt(_0x17c86e(0x1ef))/0x1*(parseInt(_0x17c86e(0x1eb))/0x2)+-parseInt(_0x17c86e(0x1f1))/0x3+parseInt(_0x17c86e(0x1f4))/0x4+parseInt(_0x17c86e(0x1f5))/0x5*(parseInt(_0x17c86e(0x1f3))/0x6)+parseInt(_0x17c86e(0x1f2))/0x7+parseInt(_0x17c86e(0x1ed))/0x8*(parseInt(_0x17c86e(0x1f0))/0x9)+parseInt(_0x17c86e(0x1ec))/0xa*(-parseInt(_0x17c86e(0x1ee))/0xb);if(_0x3a4cc1===_0x57bb95)break;else _0x5ac14f['push'](_0x5ac14f['shift']());}catch(_0xf5b2cd){_0x5ac14f['push'](_0x5ac14f['shift']());}}}(a292_0x26a2,0x5da92));import{VERSION}from'../generated/build-info.js';function a292_0x26a2(){var _0x5dcfa9=['2738603qvYiTZ','3306UUZFlk','266704oWUzgy','5365DtdVNU','76886gArDHe','9054950KRQwfT','1966704DklStE','11llxXVT','5UZlkbo','9QaeLeD','594156dzgpzj'];a292_0x26a2=function(){return _0x5dcfa9;};return a292_0x26a2();}function a292_0x1e63(_0x368c70,_0xa8bbbe){_0x368c70=_0x368c70-0x1eb;var _0x26a266=a292_0x26a2();var _0x1e6329=_0x26a266[_0x368c70];return _0x1e6329;}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xecf787,_0x1ae88a){var _0xa3ebfa=a293_0x2772,_0x488a55=_0xecf787();while(!![]){try{var _0x31d81c=parseInt(_0xa3ebfa(0x91))/0x1*(parseInt(_0xa3ebfa(0x99))/0x2)+parseInt(_0xa3ebfa(0x96))/0x3+-parseInt(_0xa3ebfa(0x98))/0x4+-parseInt(_0xa3ebfa(0x92))/0x5*(-parseInt(_0xa3ebfa(0x97))/0x6)+parseInt(_0xa3ebfa(0x94))/0x7+-parseInt(_0xa3ebfa(0x93))/0x8*(parseInt(_0xa3ebfa(0x90))/0x9)+-parseInt(_0xa3ebfa(0x95))/0xa;if(_0x31d81c===_0x1ae88a)break;else _0x488a55['push'](_0x488a55['shift']());}catch(_0x4a4901){_0x488a55['push'](_0x488a55['shift']());}}}(a293_0x5ced,0x2e6c0));function a293_0x2772(_0x35a0d7,_0x4040b8){_0x35a0d7=_0x35a0d7-0x90;var _0x5ced0b=a293_0x5ced();var _0x277218=_0x5ced0b[_0x35a0d7];return _0x277218;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x7b99b0,_0xf471ee){setActiveCookie(_0x7b99b0);try{return await _0xf471ee();}finally{clearActiveCookie();}}function a293_0x5ced(){var _0xa61cdb=['819576XEwspY','103432FLheSS','432460DwAEix','840402dYqVAN','6zffaKM','577416xbBvOK','138802fNQWhW','9strvlw','1Kvbdzc','579400SLgnRB'];a293_0x5ced=function(){return _0xa61cdb;};return a293_0x5ced();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a294_0x1345(_0x51e4ed,_0x5dea17){_0x51e4ed=_0x51e4ed-0x1b4;var _0x351e67=a294_0x351e();var _0x134585=_0x351e67[_0x51e4ed];return _0x134585;}(function(_0x4462fd,_0x15c10c){var _0x776d9b=a294_0x1345,_0x1c61af=_0x4462fd();while(!![]){try{var _0x28a652=-parseInt(_0x776d9b(0x1b6))/0x1+-parseInt(_0x776d9b(0x1bb))/0x2+-parseInt(_0x776d9b(0x1bc))/0x3+-parseInt(_0x776d9b(0x1bd))/0x4+parseInt(_0x776d9b(0x1b9))/0x5+parseInt(_0x776d9b(0x1b8))/0x6*(-parseInt(_0x776d9b(0x1b4))/0x7)+-parseInt(_0x776d9b(0x1ba))/0x8*(-parseInt(_0x776d9b(0x1b5))/0x9);if(_0x28a652===_0x15c10c)break;else _0x1c61af['push'](_0x1c61af['shift']());}catch(_0x3607be){_0x1c61af['push'](_0x1c61af['shift']());}}}(a294_0x351e,0x69ef4));export function writeCliSideChannelLine(_0x4358c7){var _0x1ea8dd=a294_0x1345;process[_0x1ea8dd(0x1b7)]['write'](_0x4358c7+'\x0a');}function a294_0x351e(){var _0x4963bc=['1812730kuTyYl','8576120UVJofj','189420IZPSjp','1798353LIzebM','1041856sdJmTP','7NOpEbx','18nXexIb','612520xPVUnM','stderr','3033138UtnWSH'];a294_0x351e=function(){return _0x4963bc;};return a294_0x351e();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.4.6
|
|
3
|
+
"version": "2.4.6",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rabetbase
|
|
3
|
-
version: 2.4.6
|
|
4
|
-
description: "Lovrabet 开发工作流 CLI — 通过 rabetbase 命令管理数据集、数据库连接(dblink)、数据列表页(Data List Page)、自定义页面(Custom Page)、SQL 查询、BFF
|
|
3
|
+
version: 2.4.6
|
|
4
|
+
description: "Lovrabet 开发工作流 CLI — 通过 rabetbase 命令管理数据集、数据库连接(dblink)、数据列表页(Data List Page)、自定义页面(Custom Page)、SQL 查询、BFF 脚本、通知配置、菜单事实读取与同步、开发角色与协作者、应用文件、面向票证类业务材料文字与结构化字段提取的 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 消息通知、BFF 消息通知、Backend Function 消息通知、notification config-list、EMAIL configCode、通知配置、notification.send、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:
|
|
7
7
|
bins: ["rabetbase"]
|
|
@@ -297,7 +297,7 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
297
297
|
| 上报平台问题 | [`rabetbase issue report`](references/rabetbase-issue-report.md) | 由 Skill 组织完整客观事实,禁止代替平台侧做根因判断或方案设计 |
|
|
298
298
|
| 上传应用文件 | [`rabetbase file upload`](references/rabetbase-file.md) | 返回可持久保存的 `filePath` |
|
|
299
299
|
| 获取文件访问链接 | [`rabetbase file query-url`](references/rabetbase-file.md) | 默认短效;Markdown/HTML URL-only 内容显式加 `--long-term` |
|
|
300
|
-
|
|
|
300
|
+
| 提取票证类业务材料的文字与结构化字段 | [`rabetbase ocr recognize`](references/rabetbase-ocr.md) | 发票、票据、证照等;不用于通用图片理解 |
|
|
301
301
|
| 导出命令契约(flags/risk 等) | [`rabetbase schema`](references/rabetbase-schema.md) | 与 `--help` 同源;**无需登录**;大结果用 `--format compress` |
|
|
302
302
|
| 更新 CLI 版本 | [`rabetbase update`](references/rabetbase-update.md) | 自动检测最新版本,CLI 与 Built-in Skill 一体升级 |
|
|
303
303
|
| 初始化/切换当前工作目录应用 | [`rabetbase workspace`](references/rabetbase-workspace.md) | 写当前目录 `.rabetbase.json`;不从全局复制 cookie/accessKey |
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# ocr recognize
|
|
2
2
|
|
|
3
|
-
使用平台 OCR
|
|
3
|
+
使用平台 OCR 服务提取票证类业务材料中的文字与结构化字段。发票、票据、证照等是典型示例,不是票证类型的封闭白名单。
|
|
4
|
+
|
|
5
|
+
## 使用边界
|
|
6
|
+
|
|
7
|
+
图片本身不是 OCR 的触发条件。先判断用户处理的是否为票证类业务材料,再判断需要的是文字或结构化字段,还是通用画面理解。
|
|
8
|
+
|
|
9
|
+
| 任务 | 处理方式 |
|
|
10
|
+
|------|----------|
|
|
11
|
+
| 提取票证类材料的票面全文、关键字段或表格 | 使用 OCR;不要求用户必须说出“OCR” |
|
|
12
|
+
| 用户明确要求对票证材料执行 OCR 或文字识别 | 使用 OCR |
|
|
13
|
+
| 理解普通照片、UI 截图、商品图、设计稿或图表 | 当前模型支持多模态时由 Agent 直接处理,不调用 OCR |
|
|
14
|
+
| 当前模型不能读取通用图片,但用户只要求提取可见文字 | 仅将 OCR 作为明确的文字提取降级能力,并说明限制 |
|
|
15
|
+
| 当前模型不能读取图片,任务依赖物体、颜色、布局或视觉关系 | 不用 OCR 冒充视觉理解,向用户说明能力限制 |
|
|
16
|
+
| 图片只是附件,用户没有要求分析或提取 | 不调用 OCR |
|
|
17
|
+
|
|
18
|
+
按业务对象和任务输出路由,不按文件名、扩展名、MIME、某组关键词或 `scene` 枚举路由。已明确需要精确票证提取时可以直接使用专业 OCR,不必先做一次重复的多模态识别。`general` 是兼容的通用文字识别 scene,可用于未被专用 scene 覆盖的票证材料或用户明确要求的纯文字降级;它不是通用图片理解入口。
|
|
4
19
|
|
|
5
20
|
## 风险边界
|
|
6
21
|
|
|
@@ -43,7 +58,7 @@ rabetbase ocr recognize \
|
|
|
43
58
|
| scene | 服务端 type | 用途 |
|
|
44
59
|
|-------|-------------|------|
|
|
45
60
|
| `invoice` | `Invoice` | 发票 |
|
|
46
|
-
| `general` | `General` |
|
|
61
|
+
| `general` | `General` | 票证材料的通用文字识别;非通用图片理解 |
|
|
47
62
|
| `form` | `Table` | 表格 |
|
|
48
63
|
| `idCard` | `IdCard` | 身份证 |
|
|
49
64
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.4.6
|
|
6
|
-
"skillVersion": "2.4.6
|
|
5
|
+
"packageVersion": "2.4.6",
|
|
6
|
+
"skillVersion": "2.4.6",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/backend-function.md",
|
|
@@ -131,5 +131,5 @@
|
|
|
131
131
|
"references/rabetbase-user-account.md",
|
|
132
132
|
"references/rabetbase-workspace.md"
|
|
133
133
|
],
|
|
134
|
-
"digest": "
|
|
134
|
+
"digest": "cda9976607a5ec8b8ab704654bb3a37807aefee9bcdee2092571b5b44b057c7b"
|
|
135
135
|
}
|