@lovrabet/rabetbase-cli 2.5.4-beta.2 → 2.5.4-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/api-group.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/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.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/logs.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/batch-design.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/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.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/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/api-architecture-upgrade.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/domain-routing-sync.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/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.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/feishu-bind.d.ts +2 -0
- package/lib/commands/user-account/feishu-bind.js +1 -0
- 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/project-domain-routing.js +1 -1
- package/lib/config/region-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/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +2 -0
- 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/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.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/supported-flags.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/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.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 +3 -2
- package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xf5bd23,_0x2287fd){const _0x3f098c=a338_0xd504,_0x8b86e2=_0xf5bd23();while(!![]){try{const _0x25d2d2=parseInt(_0x3f098c(0x158))/0x1+parseInt(_0x3f098c(0x150))/0x2*(parseInt(_0x3f098c(0x13d))/0x3)+parseInt(_0x3f098c(0x164))/0x4+-parseInt(_0x3f098c(0x168))/0x5*(-parseInt(_0x3f098c(0x155))/0x6)+-parseInt(_0x3f098c(0x157))/0x7*(-parseInt(_0x3f098c(0x159))/0x8)+parseInt(_0x3f098c(0x13f))/0x9*(parseInt(_0x3f098c(0x152))/0xa)+-parseInt(_0x3f098c(0x14f))/0xb;if(_0x25d2d2===_0x2287fd)break;else _0x8b86e2['push'](_0x8b86e2['shift']());}catch(_0x229d94){_0x8b86e2['push'](_0x8b86e2['shift']());}}}(a338_0x95e4,0x5e084));function a338_0xd504(_0x47a741,_0x1bc02b){_0x47a741=_0x47a741-0x13d;const _0x95e445=a338_0x95e4();let _0xd50418=_0x95e445[_0x47a741];return _0xd50418;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a338_0x95e4(){const _0x276120=['\x1b[0m','↪\x20New\x20version\x20available','belowMinimum','coerce','needsUpgrade','22781022xCFKBt','1361634uxkbeS','package.json','165150eDmJhJ','join','↪\x20Critical\x20CLI\x20upgrade\x20required','12DmConb','\x1b[31m','112uSVyZG','553850NfeRKg','160136QejsYy','\x1b[1m','\x20\x20\x20','utf-8','Minimum\x20supported:\x20','1.0.0','../..','npm\x20install\x20-g\x20','parse','validation','\x20\x20\x20Minimum\x20supported:\x20','798320irAVDh','Current\x20version:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersionMessage','474185wiOKcd','upgradeMessage','3GJzIYL','log','279XPGaxz','\x20\x20\x20Recommended\x20stable:\x20','minimumVersion','\x20\x20\x20Stable\x20version:\x20','stableVersion','currentVersion','filter','latest','\x20\x20\x20Upgrade\x20command:\x20','version','Upgrade\x20command:\x20'];a338_0x95e4=function(){return _0x276120;};return a338_0x95e4();}import{fileURLToPath}from'node:url';import a338_0x2983a5 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xdebc33){const _0x377faa=a338_0xd504,_0x5653fb=_0xdebc33[_0x377faa(0x143)]||_0x377faa(0x146);return _0x377faa(0x160)+NPM_PACKAGE_NAME+'@'+_0x5653fb;}function getCurrentCliVersion(){const _0x2e243b=a338_0xd504;try{const _0x21505c=fileURLToPath(import.meta.url),_0x3228ba=resolve(dirname(_0x21505c),_0x2e243b(0x15f)),_0x2ea6e5=resolve(_0x3228ba,_0x2e243b(0x151)),_0x3a7607=JSON[_0x2e243b(0x161)](readFileSync(_0x2ea6e5,_0x2e243b(0x15c)));return _0x3a7607[_0x2e243b(0x148)]||_0x2e243b(0x15e);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x5788dc=a338_0xd504,_0x48904c=getCurrentCliVersion(),_0x5edd87=await getCliVersionPolicy(),_0x191e57=_0x5edd87?.[_0x5788dc(0x143)]||null,_0x40b61a=_0x5edd87?.[_0x5788dc(0x141)]||null;let _0x16c19e=![],_0x5afffb=![];const _0x424c0c=a338_0x2983a5['coerce'](_0x48904c);if(_0x424c0c&&_0x191e57)try{const _0x47895f=a338_0x2983a5[_0x5788dc(0x14d)](_0x191e57);if(_0x47895f)_0x16c19e=a338_0x2983a5['lt'](_0x424c0c,_0x47895f);}catch{}if(_0x424c0c&&_0x40b61a)try{const _0x164676=a338_0x2983a5[_0x5788dc(0x14d)](_0x40b61a);if(_0x164676)_0x5afffb=a338_0x2983a5['lt'](_0x424c0c,_0x164676);}catch{}return _0x5afffb&&(_0x16c19e=!![]),{'currentVersion':_0x48904c,'stableVersion':_0x191e57,'minimumVersion':_0x40b61a,'needsUpgrade':_0x16c19e,'belowMinimum':_0x5afffb,'isPreRelease':![],'upgradeMessage':_0x5edd87?.[_0x5788dc(0x169)],'minimumVersionMessage':_0x5edd87?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x3a862a){const _0x2c39a7=a338_0xd504;if(!_0x3a862a[_0x2c39a7(0x14e)]&&!_0x3a862a[_0x2c39a7(0x14c)])return;const _0x44527e=_0x2c39a7(0x156),_0x366387='\x1b[33m',_0x27ca88=_0x2c39a7(0x14a),_0x48dda7=_0x2c39a7(0x15a),_0x3cccb3=getCliUpgradeCommand(_0x3a862a);console['log'](),_0x3a862a['belowMinimum']?(console[_0x2c39a7(0x13e)](''+_0x44527e+_0x48dda7+_0x2c39a7(0x154)+_0x27ca88),console[_0x2c39a7(0x13e)](_0x44527e+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3a862a[_0x2c39a7(0x144)]+_0x27ca88),_0x3a862a[_0x2c39a7(0x141)]&&console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x163)+_0x3a862a[_0x2c39a7(0x141)]+_0x27ca88),_0x3a862a[_0x2c39a7(0x143)]&&_0x3a862a[_0x2c39a7(0x143)]!==_0x3a862a[_0x2c39a7(0x141)]&&console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x140)+_0x3a862a[_0x2c39a7(0x143)]+_0x27ca88),_0x3a862a[_0x2c39a7(0x167)]&&console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x15b)+_0x3a862a[_0x2c39a7(0x167)]+_0x27ca88),console[_0x2c39a7(0x13e)](_0x44527e+_0x2c39a7(0x147)+_0x3cccb3+_0x27ca88)):(console[_0x2c39a7(0x13e)](''+_0x366387+_0x48dda7+_0x2c39a7(0x14b)+_0x27ca88),console[_0x2c39a7(0x13e)](_0x366387+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3a862a['currentVersion']+_0x27ca88),console[_0x2c39a7(0x13e)](_0x366387+_0x2c39a7(0x142)+_0x3a862a['stableVersion']+_0x27ca88),_0x3a862a['upgradeMessage']&&console['log'](_0x366387+_0x2c39a7(0x15b)+_0x3a862a[_0x2c39a7(0x169)]+_0x27ca88),console[_0x2c39a7(0x13e)](_0x366387+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3cccb3+_0x27ca88)),console[_0x2c39a7(0x13e)]();}export function assertCliVersionSupported(_0x584bc2){const _0x10661f=a338_0xd504;if(!_0x584bc2['belowMinimum'])return;const _0x4e3eea=[_0x584bc2['minimumVersionMessage'],_0x10661f(0x165)+_0x584bc2['currentVersion'],_0x584bc2[_0x10661f(0x141)]?_0x10661f(0x15d)+_0x584bc2[_0x10661f(0x141)]:null,_0x10661f(0x149)+getCliUpgradeCommand(_0x584bc2)][_0x10661f(0x145)](Boolean)[_0x10661f(0x153)]('\x0a');throw CliErrors[_0x10661f(0x162)](_0x10661f(0x166),_0x4e3eea);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33ad95,_0x1d6bc2){const _0x5d3615=a339_0x48c2,_0x387d3e=_0x33ad95();while(!![]){try{const _0x3d69e8=parseInt(_0x5d3615(0x1dd))/0x1*(-parseInt(_0x5d3615(0x1da))/0x2)+-parseInt(_0x5d3615(0x1df))/0x3*(parseInt(_0x5d3615(0x1d4))/0x4)+parseInt(_0x5d3615(0x1cb))/0x5*(-parseInt(_0x5d3615(0x1c9))/0x6)+parseInt(_0x5d3615(0x1e0))/0x7+parseInt(_0x5d3615(0x1cf))/0x8+parseInt(_0x5d3615(0x1ce))/0x9*(parseInt(_0x5d3615(0x1d2))/0xa)+-parseInt(_0x5d3615(0x1d1))/0xb;if(_0x3d69e8===_0x1d6bc2)break;else _0x387d3e['push'](_0x387d3e['shift']());}catch(_0x304ab0){_0x387d3e['push'](_0x387d3e['shift']());}}}(a339_0x4d1a,0xe3f92));function a339_0x4d1a(){const _0x2e4320=['signal','length','2rpByTZ','now','projectTemplate','1542137IkSHXW','stableVersion','6lPCYNl','9872044ogVqMC','trim','minimumVersionMessage','application/json','minimumVersion','84KcyHwY','string','116015heQMgO','beta','recommendedVersion','80874mHEcpw','6356984hudtiu','object','1938816hsVTxv','1390BoesVB','json','953912KIPwnj','valid','cli','abort'];a339_0x4d1a=function(){return _0x2e4320;};return a339_0x4d1a();}import{getCliVersionPolicyUrl,getProjectTemplateAssetBaseUrl,getProjectTemplateLegacyAssetBaseUrl}from'../constant/cdn.js';import a339_0x4acc18 from'semver';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;export function isBetaCliVersion(_0x5299da){const _0x4a50dc=a339_0x48c2,_0x57ab98=a339_0x4acc18[_0x4a50dc(0x1d5)](_0x5299da);return _0x57ab98?a339_0x4acc18['prerelease'](_0x57ab98)?.[0x0]===_0x4a50dc(0x1cc):![];}export function resolveProjectTemplateDescriptor(_0x563b67,_0x39535d){const _0x16b922=a339_0x48c2;if(isBetaCliVersion(_0x39535d))return _0x563b67['beta']?.[_0x16b922(0x1dc)]??_0x563b67['projectTemplate'];return _0x563b67[_0x16b922(0x1dc)];}function pickString(_0x1dfb31){const _0x4b4c80=a339_0x48c2;return typeof _0x1dfb31===_0x4b4c80(0x1ca)&&_0x1dfb31['trim']()[_0x4b4c80(0x1d9)]>0x0?_0x1dfb31[_0x4b4c80(0x1e1)]():null;}function a339_0x48c2(_0x21d564,_0x363191){_0x21d564=_0x21d564-0x1c8;const _0x4d1a49=a339_0x4d1a();let _0x48c2d2=_0x4d1a49[_0x21d564];return _0x48c2d2;}function normalizeCliVersionPolicy(_0x51189f){const _0x4aee05=a339_0x48c2;if(!_0x51189f||typeof _0x51189f!==_0x4aee05(0x1d0))return null;const _0x2e6c8b=_0x51189f,_0x3b9916=_0x2e6c8b[_0x4aee05(0x1d6)]&&typeof _0x2e6c8b[_0x4aee05(0x1d6)]===_0x4aee05(0x1d0)?_0x2e6c8b[_0x4aee05(0x1d6)]:_0x2e6c8b,_0x5aec40=pickString(_0x3b9916[_0x4aee05(0x1de)])||pickString(_0x3b9916['latestVersion'])||pickString(_0x3b9916[_0x4aee05(0x1cd)]),_0x378328=pickString(_0x3b9916[_0x4aee05(0x1c8)])||pickString(_0x3b9916['minVersion']);if(!_0x5aec40&&!_0x378328)return null;return{'stableVersion':_0x5aec40,'minimumVersion':_0x378328,'upgradeMessage':pickString(_0x3b9916['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x3b9916[_0x4aee05(0x1e2)])||undefined};}async function fetchRabetbaseCdnConfigAt(_0x3a44d5){const _0x519027=a339_0x48c2,_0x4a17df=new AbortController(),_0x1681f8=setTimeout(()=>_0x4a17df[_0x519027(0x1d7)](),FETCH_TIMEOUT_MS);try{const _0x340653=await fetch(_0x3a44d5,{'headers':{'Accept':_0x519027(0x1e3)},'signal':_0x4a17df[_0x519027(0x1d8)]});if(!_0x340653['ok'])return null;const _0x48c334=await _0x340653[_0x519027(0x1d3)]();return _0x48c334&&typeof _0x48c334===_0x519027(0x1d0)?_0x48c334:null;}catch{return null;}finally{clearTimeout(_0x1681f8);}}export async function fetchRabetbaseCdnConfig(){return fetchRabetbaseCdnConfigAt(getCliVersionPolicyUrl());}export async function fetchProjectTemplateCdnConfig(){const _0x48c494=await getRabetbaseCdnConfig();return _0x48c494?{'config':_0x48c494,'assetBaseUrl':getProjectTemplateAssetBaseUrl(),'legacyAssetBaseUrl':getProjectTemplateLegacyAssetBaseUrl()}:null;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x32a071=a339_0x48c2,_0x5120a0=Date[_0x32a071(0x1db)]();if(hasCachedConfig){const _0x2d8758=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5120a0-cacheTime<_0x2d8758)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x5120a0,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
|
package/lib/utils/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a340_0xf73662=a340_0x57ed;(function(_0x186ab2,_0x5095ef){const _0x23962d=a340_0x57ed,_0x3440d1=_0x186ab2();while(!![]){try{const _0x672044=parseInt(_0x23962d(0x1f1))/0x1+parseInt(_0x23962d(0x1f4))/0x2+-parseInt(_0x23962d(0x1f2))/0x3*(-parseInt(_0x23962d(0x1f3))/0x4)+parseInt(_0x23962d(0x1ee))/0x5*(parseInt(_0x23962d(0x1e9))/0x6)+-parseInt(_0x23962d(0x1f0))/0x7+parseInt(_0x23962d(0x1ef))/0x8+-parseInt(_0x23962d(0x1ed))/0x9*(parseInt(_0x23962d(0x1ea))/0xa);if(_0x672044===_0x5095ef)break;else _0x3440d1['push'](_0x3440d1['shift']());}catch(_0x5e2aa4){_0x3440d1['push'](_0x3440d1['shift']());}}}(a340_0x26f7,0x69baf));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a340_0x247576,getMultiAppConfigs as a340_0x57948d,getTemplateBaseUrl as a340_0x575826}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a340_0x26f7(){const _0x4211e2=['9376407teDpPS','3358535ekaXDy','3344240JYKTkG','3640728kEQqbg','620147pSwEPa','1548714Gxgfng','4BRlBwt','1621398DIWBNS','project','6pFSnZa','20orqOJL','string','env'];a340_0x26f7=function(){return _0x4211e2;};return a340_0x26f7();}export function readConfig(_0xc72744){const _0x3ea97a=a340_0x57ed,_0x4563e8=readRawConfig(_0xc72744);return _0x4563e8['env']&&typeof _0x4563e8['env']===_0x3ea97a(0x1eb)&&initEnv(_0x4563e8[_0x3ea97a(0x1ec)]),_0x4563e8;}function a340_0x57ed(_0xd7e01c,_0x309313){_0xd7e01c=_0xd7e01c-0x1e8;const _0x26f786=a340_0x26f7();let _0x57ed62=_0x26f786[_0xd7e01c];return _0x57ed62;}export function getConfigAppCode(){return a340_0x247576();}export function getMultiAppConfigs(_0x30b164=a340_0xf73662(0x1e8)){return a340_0x57948d(_0x30b164);}export function getTemplateBaseUrl(){return a340_0x575826();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a341_0x2762(){const _0x629c36=['isFinite','7004690ATqlVR','5pzmuzw','10lJAEzd','8vbCTgb','3251184XUDzZL','3387RmxwXJ','39FcOsVV','3CosEPG','string','trim','1910587BjhpST','7205283FAFPpk','2724504vkmDZh','380ZjrKIc','2980492Kqxgos','number'];a341_0x2762=function(){return _0x629c36;};return a341_0x2762();}function a341_0x1b17(_0x10ee2d,_0x1398df){_0x10ee2d=_0x10ee2d-0x100;const _0x2762a9=a341_0x2762();let _0x1b179c=_0x2762a9[_0x10ee2d];return _0x1b179c;}(function(_0x4f8154,_0x7fd013){const _0x2cf07a=a341_0x1b17,_0x3dae7a=_0x4f8154();while(!![]){try{const _0x1a5474=-parseInt(_0x2cf07a(0x106))/0x1*(parseInt(_0x2cf07a(0x10e))/0x2)+parseInt(_0x2cf07a(0x108))/0x3*(-parseInt(_0x2cf07a(0x10f))/0x4)+-parseInt(_0x2cf07a(0x102))/0x5*(parseInt(_0x2cf07a(0x105))/0x6)+-parseInt(_0x2cf07a(0x10b))/0x7*(-parseInt(_0x2cf07a(0x104))/0x8)+-parseInt(_0x2cf07a(0x10c))/0x9*(-parseInt(_0x2cf07a(0x103))/0xa)+parseInt(_0x2cf07a(0x101))/0xb+parseInt(_0x2cf07a(0x10d))/0xc*(parseInt(_0x2cf07a(0x107))/0xd);if(_0x1a5474===_0x7fd013)break;else _0x3dae7a['push'](_0x3dae7a['shift']());}catch(_0x4ecc7c){_0x3dae7a['push'](_0x3dae7a['shift']());}}}(a341_0x2762,0x7087f));function toFiniteNumber(_0x3bd93e){const _0x45abff=a341_0x1b17;if(typeof _0x3bd93e===_0x45abff(0x110)&&Number[_0x45abff(0x100)](_0x3bd93e))return _0x3bd93e;if(typeof _0x3bd93e===_0x45abff(0x109)){const _0x21ae4d=_0x3bd93e[_0x45abff(0x10a)]();if(!_0x21ae4d)return undefined;const _0xa0c7b1=Number(_0x21ae4d);if(Number[_0x45abff(0x100)](_0xa0c7b1))return _0xa0c7b1;}return undefined;}export function normalizeEntityWithIdResponse(_0x503708){const _0x1fba68=toFiniteNumber(_0x503708);if(_0x1fba68!==undefined)return{'id':_0x1fba68,'entity':{'id':_0x1fba68}};if(!_0x503708||typeof _0x503708!=='object')return{'id':undefined,'entity':{}};const _0x4b1f24={..._0x503708},_0x5deae6=toFiniteNumber(_0x4b1f24['id']);return _0x5deae6!==undefined&&(_0x4b1f24['id']=_0x5deae6),{'id':_0x5deae6,'entity':_0x4b1f24};}
|
package/lib/utils/file-utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a342_0x39ee(_0x50e552,_0x1a98bc){_0x50e552=_0x50e552-0x85;const _0x2fa749=a342_0x2fa7();let _0x39ee83=_0x2fa749[_0x50e552];return _0x39ee83;}function a342_0x2fa7(){const _0x153226=['15RfXmUZ','6625071ICtRmU','2543436OaaMuL','1156823MMhXqb','27526BTRjId','8596072myJtIa','87MghWjS','1064042YorHAs','2942340JXmjnH'];a342_0x2fa7=function(){return _0x153226;};return a342_0x2fa7();}(function(_0x3527a4,_0x441737){const _0x319de8=a342_0x39ee,_0x2731cb=_0x3527a4();while(!![]){try{const _0x31892f=-parseInt(_0x319de8(0x88))/0x1+parseInt(_0x319de8(0x89))/0x2*(-parseInt(_0x319de8(0x8b))/0x3)+parseInt(_0x319de8(0x8d))/0x4+-parseInt(_0x319de8(0x85))/0x5*(-parseInt(_0x319de8(0x87))/0x6)+-parseInt(_0x319de8(0x8c))/0x7+parseInt(_0x319de8(0x8a))/0x8+-parseInt(_0x319de8(0x86))/0x9;if(_0x31892f===_0x441737)break;else _0x2731cb['push'](_0x2731cb['shift']());}catch(_0x4a3913){_0x2731cb['push'](_0x2731cb['shift']());}}}(a342_0x2fa7,0x9bb29));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x130ee7,_0x417b9f){const _0x17f1da=statSync(_0x130ee7);if(_0x17f1da['isDirectory']()){!existsSync(_0x417b9f)&&mkdirSync(_0x417b9f,{'recursive':!![]});const _0x9e3c7=readdirSync(_0x130ee7);for(const _0x2b685c of _0x9e3c7){await copyDir(join(_0x130ee7,_0x2b685c),join(_0x417b9f,_0x2b685c));}}else copyFileSync(_0x130ee7,_0x417b9f);}export function ensureDir(_0x25a1d1){!existsSync(_0x25a1d1)&&mkdirSync(_0x25a1d1,{'recursive':!![]});}export function pathExists(_0x88f7d){return existsSync(_0x88f7d);}
|
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a343_0x1468c7=a343_0x3818;(function(_0x415626,_0x4beec2){const _0x2c0544=a343_0x3818,_0x277fb4=_0x415626();while(!![]){try{const _0x517db6=parseInt(_0x2c0544(0xb9))/0x1+parseInt(_0x2c0544(0xc3))/0x2*(parseInt(_0x2c0544(0xc2))/0x3)+parseInt(_0x2c0544(0xc8))/0x4+-parseInt(_0x2c0544(0xb8))/0x5+parseInt(_0x2c0544(0xb3))/0x6+parseInt(_0x2c0544(0xcf))/0x7+parseInt(_0x2c0544(0xcd))/0x8*(-parseInt(_0x2c0544(0xbf))/0x9);if(_0x517db6===_0x4beec2)break;else _0x277fb4['push'](_0x277fb4['shift']());}catch(_0x1732d6){_0x277fb4['push'](_0x277fb4['shift']());}}}(a343_0x2748,0xa00a9));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x14ff8f=a343_0x3818,_0x367027=getTemplateBaseUrl();return _0x367027+_0x14ff8f(0xc9);}const CACHE_DIR=join(homedir(),'.lovrabet',a343_0x1468c7(0xbe));function a343_0x3818(_0x1e4742,_0x2a9620){_0x1e4742=_0x1e4742-0xb0;const _0x274823=a343_0x2748();let _0x3818b0=_0x274823[_0x1e4742];return _0x3818b0;}export async function fetchGuidesFromCDN(){const _0x23703a=a343_0x1468c7,_0x55f0af=getGuidesCdnUrl(),_0x49f195=await fetch(_0x55f0af,{'headers':{'Accept':'application/json'}});if(!_0x49f195['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x49f195[_0x23703a(0xd0)]+'\x20'+_0x49f195[_0x23703a(0xc1)]);const _0x5d8458=await _0x49f195[_0x23703a(0xb5)]();if(!_0x5d8458[_0x23703a(0xc5)]||typeof _0x5d8458[_0x23703a(0xc5)]!==_0x23703a(0xce))throw new Error(_0x23703a(0xd2));return _0x5d8458;}export function writeGuidesToProject(_0x16f6ac,_0x4fdabf,_0x5aad0d=a343_0x1468c7(0xcb),_0x4da3de){const _0x23d66e=a343_0x1468c7,_0x7a02f4=join(_0x4fdabf,_0x5aad0d);mkdirSync(_0x7a02f4,{'recursive':!![]});for(const [_0x57295f,_0x4d4cd8]of Object[_0x23d66e(0xb0)](_0x16f6ac[_0x23d66e(0xc5)])){let _0x1bbea7=_0x4d4cd8[_0x23d66e(0xc7)];_0x4d4cd8[_0x23d66e(0xbb)]&&(_0x1bbea7=appendUpdateTime(_0x1bbea7,_0x4d4cd8[_0x23d66e(0xbb)])),writeFileSync(join(_0x7a02f4,_0x57295f+_0x23d66e(0xba)),_0x1bbea7,_0x23d66e(0xb7));}}export function appendUpdateTime(_0xd8e94e,_0x3a4611){const _0x3718da=a343_0x1468c7;return _0xd8e94e=_0xd8e94e[_0x3718da(0xca)](/\n*>更新时间:.*$/m,''),_0xd8e94e['trimEnd']()+(_0x3718da(0xb2)+_0x3a4611);}export function getSkillTemplate(_0x11c08){const _0x26f12c=a343_0x1468c7;return _0x11c08['skillTemplate']?.[_0x26f12c(0xc7)]||'';}export function appendExtendContents(_0x58b5b1,_0x5503e8,_0x33d2c9){const _0xea75a2=a343_0x1468c7,_0x4c817b=[];for(const [,_0x5b8205]of Object[_0xea75a2(0xb0)](_0x5503e8['guides'])){_0x5b8205[_0xea75a2(0xcc)]&&_0x4c817b[_0xea75a2(0xb1)](_0x5b8205[_0xea75a2(0xcc)][_0xea75a2(0xbd)]());}if(_0x4c817b['length']===0x0)return _0x58b5b1;return _0x58b5b1[_0xea75a2(0xbd)]()+'\x0a\x0a'+_0x4c817b[_0xea75a2(0xc0)]('\x0a\x0a')+'\x0a';}function a343_0x2748(){const _0xb1b733=['join','statusText','30FyzKsd','94390ITkpKh','CDN\x20data\x20is\x20missing\x20skillTemplate','guides','skillTemplate','content','2375736sYtBpq','/skills/guides.json','replace','.lovrabet/skill/guides','extendContent','72ZPLMEX','object','2358832OKgcLK','status','map','CDN\x20returned\x20invalid\x20data','entries','push','\x0a\x0a>更新时间:','2635128ObPfaG','title','json','length','utf-8','2033785ElwKMs','1043179rmZBjH','.md','lastUpdated','path','trimEnd','cache','1822941pXeVZG'];a343_0x2748=function(){return _0xb1b733;};return a343_0x2748();}export function writeSkillFile(_0x3a203d,_0x13de7f,_0x49f3d0){const _0x5c5d1c=a343_0x1468c7,_0x4cd868=getSkillTemplate(_0x3a203d);if(!_0x4cd868)throw new Error(_0x5c5d1c(0xc4));const _0x5d3be4=dirname(_0x13de7f);mkdirSync(_0x5d3be4,{'recursive':!![]});let _0x2371b4=_0x4cd868[_0x5c5d1c(0xca)](/\{\{IDE_NAME\}\}/g,_0x49f3d0);_0x2371b4=appendExtendContents(_0x2371b4,_0x3a203d),_0x3a203d[_0x5c5d1c(0xc6)]['lastUpdated']&&(_0x2371b4=appendUpdateTime(_0x2371b4,_0x3a203d[_0x5c5d1c(0xc6)][_0x5c5d1c(0xbb)])),writeFileSync(_0x13de7f,_0x2371b4,_0x5c5d1c(0xb7));}export async function installGuides(_0x538ba1){const _0x158041=a343_0x1468c7,_0x142905=await fetchGuidesFromCDN();return writeGuidesToProject(_0x142905,_0x538ba1),Object['keys'](_0x142905['guides'])[_0x158041(0xb6)];}export function getGuidesSummary(_0x57911f){const _0x140304=a343_0x1468c7;return Object[_0x140304(0xb0)](_0x57911f[_0x140304(0xc5)])[_0x140304(0xd1)](([_0x244e74,_0x5961b3])=>({'key':_0x244e74,'title':_0x5961b3[_0x140304(0xb4)],'path':_0x5961b3[_0x140304(0xbc)]}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1bd17c,_0x1172ce){const _0x32203e=a344_0x2d0b,_0x4e03be=_0x1bd17c();while(!![]){try{const _0x2a75c3=-parseInt(_0x32203e(0x1df))/0x1*(parseInt(_0x32203e(0x1ec))/0x2)+parseInt(_0x32203e(0x1f0))/0x3*(parseInt(_0x32203e(0x1e4))/0x4)+-parseInt(_0x32203e(0x1ea))/0x5+-parseInt(_0x32203e(0x1e9))/0x6*(parseInt(_0x32203e(0x1f4))/0x7)+-parseInt(_0x32203e(0x1f2))/0x8+parseInt(_0x32203e(0x1de))/0x9+parseInt(_0x32203e(0x1d9))/0xa;if(_0x2a75c3===_0x1172ce)break;else _0x4e03be['push'](_0x4e03be['shift']());}catch(_0x31dce0){_0x4e03be['push'](_0x4e03be['shift']());}}}(a344_0xc5be,0xd8e81));function a344_0x2d0b(_0x5d9b25,_0x5df9d5){_0x5d9b25=_0x5d9b25-0x1d9;const _0xc5bec2=a344_0xc5be();let _0x2d0b36=_0xc5bec2[_0x5d9b25];return _0x2d0b36;}export async function httpRequest(_0x3adbd6,_0x443603={}){const _0x17cff1=a344_0x2d0b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x443603;let _0x7f5e2b=null;for(let _0x5325a3=0x0;_0x5325a3<=retries;_0x5325a3++){try{const _0x1c274c=new AbortController(),_0x26c706=setTimeout(()=>_0x1c274c['abort'](),timeout),_0x1da82f=await fetch(_0x3adbd6,{'headers':headers,'signal':_0x1c274c[_0x17cff1(0x1dc)]});clearTimeout(_0x26c706);let _0x1548dd;const _0x358d8e=_0x1da82f[_0x17cff1(0x1e8)][_0x17cff1(0x1e1)]('content-type');return _0x358d8e?.[_0x17cff1(0x1dd)](_0x17cff1(0x1db))?_0x1548dd=await _0x1da82f[_0x17cff1(0x1f1)]():_0x1548dd=await _0x1da82f[_0x17cff1(0x1e2)](),{'ok':_0x1da82f['ok'],'status':_0x1da82f['status'],'statusText':_0x1da82f[_0x17cff1(0x1ee)],'data':_0x1548dd,'headers':_0x1da82f[_0x17cff1(0x1e8)],'url':_0x1da82f[_0x17cff1(0x1e0)],'text':()=>_0x1da82f[_0x17cff1(0x1e2)]()};}catch(_0x34eb28){_0x7f5e2b=_0x34eb28 instanceof Error?_0x34eb28:new Error(String(_0x34eb28));if(_0x5325a3===retries)break;if(shouldRetry(_0x34eb28)){console[_0x17cff1(0x1e5)](_0x17cff1(0x1eb)+(_0x5325a3+0x1)+'\x20in\x20'+retryDelay+_0x17cff1(0x1e3)),await sleep(retryDelay);continue;}else break;}}throw _0x7f5e2b||new Error('Request\x20failed');}function shouldRetry(_0x16737a){const _0x1e9d78=a344_0x2d0b;if(_0x16737a instanceof Error){if(_0x16737a['name']===_0x1e9d78(0x1ef))return![];if(_0x16737a[_0x1e9d78(0x1e6)]===_0x1e9d78(0x1da)&&_0x16737a['message'][_0x1e9d78(0x1dd)](_0x1e9d78(0x1ed)))return!![];if(_0x16737a[_0x1e9d78(0x1e7)]['includes']('ECONNRESET'))return!![];if(_0x16737a[_0x1e9d78(0x1e7)][_0x1e9d78(0x1dd)](_0x1e9d78(0x1f3)))return![];}return![];}function sleep(_0x49f636){return new Promise(_0x48e108=>setTimeout(_0x48e108,_0x49f636));}export function validateUrl(_0x471185){try{return new URL(_0x471185),!![];}catch{return![];}}function a344_0xc5be(){const _0x4c1652=['name','message','headers','1116516xYSrAg','7200320rKXWYU','*\x20Request\x20failed;\x20retry\x20','2669266kVSCSq','fetch','statusText','AbortError','351fUHRdB','json','12984880TlanQG','ENOTFOUND','35VXdCas','53461800LRNyNC','TypeError','application/json','signal','includes','1165905CgErJh','1JSKpBs','url','get','text','ms...','25332IalsSz','log'];a344_0xc5be=function(){return _0x4c1652;};return a344_0xc5be();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a345_0x52ef(_0x3ba6c0,_0x254fac){_0x3ba6c0=_0x3ba6c0-0x17f;const _0x3d99b8=a345_0x3d99();let _0x52efce=_0x3d99b8[_0x3ba6c0];return _0x52efce;}(function(_0x464d13,_0x3e72fe){const _0x65029a=a345_0x52ef,_0x13910a=_0x464d13();while(!![]){try{const _0x36855e=parseInt(_0x65029a(0x187))/0x1+parseInt(_0x65029a(0x186))/0x2*(parseInt(_0x65029a(0x18f))/0x3)+parseInt(_0x65029a(0x18c))/0x4+-parseInt(_0x65029a(0x183))/0x5*(-parseInt(_0x65029a(0x180))/0x6)+-parseInt(_0x65029a(0x18b))/0x7+parseInt(_0x65029a(0x185))/0x8*(-parseInt(_0x65029a(0x181))/0x9)+parseInt(_0x65029a(0x189))/0xa*(-parseInt(_0x65029a(0x18a))/0xb);if(_0x36855e===_0x3e72fe)break;else _0x13910a['push'](_0x13910a['shift']());}catch(_0x51345c){_0x13910a['push'](_0x13910a['shift']());}}}(a345_0x3d99,0xa3c18));function env(_0x2969fe){return process.env[`RABETBASE_${_0x2969fe}`]||process.env[`LOVRABET_${_0x2969fe}`]||undefined;}export function isNonInteractive(_0x1f10e3){const _0x129aa2=a345_0x52ef;return!!(_0x1f10e3[_0x129aa2(0x182)]||_0x1f10e3['ci']||env('CI')==='true'||process.env.CI===_0x129aa2(0x188)||!process[_0x129aa2(0x17f)][_0x129aa2(0x18d)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2316f7=a345_0x52ef;if(!process[_0x2316f7(0x18e)][_0x2316f7(0x18d)])return![];try{const _0x93da32=process['stdin']['isRaw'];return process[_0x2316f7(0x18e)][_0x2316f7(0x184)](!![]),process[_0x2316f7(0x18e)]['setRawMode'](_0x93da32??![]),!![];}catch{return![];}}function a345_0x3d99(){const _0x36138e=['stdout','7256346WOYdKm','9FlBBDR','nonInteractive','5pxVGvI','setRawMode','581824migGMA','67534UDmkTH','1249454JXzCyO','true','10JGQYyr','32827289KFEDLb','1757721bwpeTk','1893008alWiLM','isTTY','stdin','93jpCPTM'];a345_0x3d99=function(){return _0x36138e;};return a345_0x3d99();}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a346_0x296e7a=a346_0x5206;function a346_0x3f33(){const _0x5dd011=['9gAZctY','transports','blue','6664080zutSQe','stringify','info','parse','17809120sSeMIt','Starting:\x20','existsSync','message','red','error','logTask','combine','winstonLogger','createLogger','addColors','yellow','toISOString','1146756DPnJSs','command','join','success','log','mkdirSync','clearLogs','logFilePath','split','getWinstonInstance','Failed:\x20','readLogs','timestamp','1854YnBzwh','green','Failed\x20to\x20read\x20logs:','File','5VcaNUB','now','readFileSync','setLogPath','1821QngvQx','Failed\x20to\x20clear\x20logs:','dirname','format','duration','clear','rawCommand','currentRawCommand','7356630WywKcg','warn','.lovrabet.log','6788747GiaUOi','6913552xRSbYg','map','setRawCommand','utf8','filter'];a346_0x3f33=function(){return _0x5dd011;};return a346_0x3f33();}(function(_0x41f0af,_0x5f55b3){const _0x5adef2=a346_0x5206,_0x2a4fe3=_0x41f0af();while(!![]){try{const _0x438d9f=parseInt(_0x5adef2(0x162))/0x1*(parseInt(_0x5adef2(0x15a))/0x2)+-parseInt(_0x5adef2(0x14d))/0x3+-parseInt(_0x5adef2(0x176))/0x4+-parseInt(_0x5adef2(0x15e))/0x5*(-parseInt(_0x5adef2(0x16a))/0x6)+parseInt(_0x5adef2(0x16d))/0x7+parseInt(_0x5adef2(0x16e))/0x8*(parseInt(_0x5adef2(0x173))/0x9)+-parseInt(_0x5adef2(0x17a))/0xa;if(_0x438d9f===_0x5f55b3)break;else _0x2a4fe3['push'](_0x2a4fe3['shift']());}catch(_0x1136a3){_0x2a4fe3['push'](_0x2a4fe3['shift']());}}}(a346_0x3f33,0xe05db));import a346_0x4a294d from'winston';import a346_0x215b0b from'node:fs';import a346_0x5c3378 from'node:path';class Logger{[a346_0x296e7a(0x182)];[a346_0x296e7a(0x154)];[a346_0x296e7a(0x169)]='';constructor(){this['logFilePath']='';}[a346_0x296e7a(0x170)](_0x192b36){const _0x279d4a=a346_0x296e7a;this[_0x279d4a(0x169)]=_0x192b36;}['initWinstonLogger'](){const _0x2d54ce=a346_0x296e7a,_0x81d4c0=a346_0x5c3378[_0x2d54ce(0x164)](this[_0x2d54ce(0x154)]);!a346_0x215b0b[_0x2d54ce(0x17c)](_0x81d4c0)&&a346_0x215b0b[_0x2d54ce(0x152)](_0x81d4c0,{'recursive':!![]});const _0x2f2dc5=a346_0x4a294d['format'][_0x2d54ce(0x181)](a346_0x4a294d[_0x2d54ce(0x165)][_0x2d54ce(0x159)](),a346_0x4a294d['format']['errors']({'stack':!![]}),a346_0x4a294d['format']['printf'](_0x55d91e=>{const _0x46f17f=_0x2d54ce,_0x244b38={'timestamp':_0x55d91e[_0x46f17f(0x159)]||new Date()[_0x46f17f(0x14c)](),'level':_0x55d91e['level']||_0x46f17f(0x178),'command':_0x55d91e[_0x46f17f(0x14e)]||'unknown','rawCommand':_0x55d91e[_0x46f17f(0x168)]||this[_0x46f17f(0x169)]||undefined,'message':_0x55d91e[_0x46f17f(0x17d)]||'','duration':_0x55d91e[_0x46f17f(0x166)]||undefined,'details':_0x55d91e['details']||undefined};return JSON[_0x46f17f(0x177)](_0x244b38);}));this[_0x2d54ce(0x182)]=a346_0x4a294d[_0x2d54ce(0x183)]({'level':_0x2d54ce(0x178),'format':_0x2f2dc5,'transports':[new a346_0x4a294d[(_0x2d54ce(0x174))][(_0x2d54ce(0x15d))]({'filename':this[_0x2d54ce(0x154)],'level':'info'})],'silent':![]}),a346_0x4a294d[_0x2d54ce(0x184)]({'success':_0x2d54ce(0x15b),'error':_0x2d54ce(0x17e),'warn':_0x2d54ce(0x14b),'info':_0x2d54ce(0x175)});}[a346_0x296e7a(0x161)](_0x528dbf){const _0x370e41=a346_0x296e7a;this['logFilePath']=a346_0x5c3378[_0x370e41(0x14f)](_0x528dbf,_0x370e41(0x16c)),this[_0x370e41(0x182)]&&this[_0x370e41(0x182)][_0x370e41(0x167)](),this['initWinstonLogger']();}[a346_0x296e7a(0x178)](_0x5702a8,_0x3842c4,_0x3b1a61){const _0x4b2e0f=a346_0x296e7a;if(!this['logFilePath']||!this[_0x4b2e0f(0x182)])return;this['winstonLogger']['info'](_0x3842c4,{'command':_0x5702a8,'details':_0x3b1a61});}[a346_0x296e7a(0x150)](_0x3ddaf8,_0x23ce87,_0x19a5fd,_0x3eb071){const _0x447abc=a346_0x296e7a;if(!this[_0x447abc(0x154)]||!this[_0x447abc(0x182)])return;this['winstonLogger'][_0x447abc(0x151)](_0x447abc(0x178),_0x23ce87,{'level':_0x447abc(0x150),'command':_0x3ddaf8,'duration':_0x19a5fd,'details':_0x3eb071});}[a346_0x296e7a(0x17f)](_0x31986e,_0x3b442b,_0x407a96){const _0xe5571c=a346_0x296e7a;if(!this[_0xe5571c(0x154)]||!this[_0xe5571c(0x182)])return;this['winstonLogger'][_0xe5571c(0x17f)](_0x3b442b,{'command':_0x31986e,'details':_0x407a96});}[a346_0x296e7a(0x16b)](_0x58092a,_0x22a4c2,_0x2497c7){const _0x3d0cca=a346_0x296e7a;if(!this[_0x3d0cca(0x154)]||!this[_0x3d0cca(0x182)])return;this['winstonLogger'][_0x3d0cca(0x16b)](_0x22a4c2,{'command':_0x58092a,'details':_0x2497c7});}async[a346_0x296e7a(0x180)](_0x345637,_0x5f29a1,_0x3e4445){const _0x4fa88d=a346_0x296e7a,_0x2927d5=Date[_0x4fa88d(0x15f)]();this[_0x4fa88d(0x178)](_0x345637,_0x4fa88d(0x17b)+_0x5f29a1);try{const _0x532b4d=await _0x3e4445(),_0x473054=Date['now']()-_0x2927d5;return this[_0x4fa88d(0x150)](_0x345637,'Completed:\x20'+_0x5f29a1,_0x473054),_0x532b4d;}catch(_0x54c80c){const _0x31547a=Date['now']()-_0x2927d5;this[_0x4fa88d(0x17f)](_0x345637,_0x4fa88d(0x157)+_0x5f29a1,{'error':_0x54c80c instanceof Error?_0x54c80c[_0x4fa88d(0x17d)]:String(_0x54c80c),'duration':_0x31547a});throw _0x54c80c;}}[a346_0x296e7a(0x158)](){const _0x4a3d2d=a346_0x296e7a;try{if(!a346_0x215b0b[_0x4a3d2d(0x17c)](this[_0x4a3d2d(0x154)]))return[];const _0x396828=a346_0x215b0b[_0x4a3d2d(0x160)](this[_0x4a3d2d(0x154)],_0x4a3d2d(0x171));return _0x396828[_0x4a3d2d(0x155)]('\x0a')[_0x4a3d2d(0x172)](_0x28d867=>_0x28d867['trim']())[_0x4a3d2d(0x16f)](_0x1d741e=>JSON[_0x4a3d2d(0x179)](_0x1d741e));}catch(_0xaecbfd){return console[_0x4a3d2d(0x16b)](_0x4a3d2d(0x15c),_0xaecbfd),[];}}[a346_0x296e7a(0x153)](){const _0x163478=a346_0x296e7a;try{a346_0x215b0b[_0x163478(0x17c)](this['logFilePath'])&&a346_0x215b0b['writeFileSync'](this['logFilePath'],'',_0x163478(0x171));}catch(_0xfd1fbc){console[_0x163478(0x16b)](_0x163478(0x163),_0xfd1fbc);}}[a346_0x296e7a(0x156)](){const _0x480df7=a346_0x296e7a;return this[_0x480df7(0x182)];}}function a346_0x5206(_0x2d324b,_0x4b9c52){_0x2d324b=_0x2d324b-0x14b;const _0x3f3336=a346_0x3f33();let _0x5206a4=_0x3f3336[_0x2d324b];return _0x5206a4;}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a347_0x477c(_0x3dd43e,_0x498bf3){_0x3dd43e=_0x3dd43e-0xd1;const _0x47bf84=a347_0x47bf();let _0x477ca4=_0x47bf84[_0x3dd43e];return _0x477ca4;}(function(_0x4d9921,_0x558463){const _0x2146b0=a347_0x477c,_0x17fda4=_0x4d9921();while(!![]){try{const _0x2b9ec5=parseInt(_0x2146b0(0xdd))/0x1+parseInt(_0x2146b0(0xde))/0x2*(-parseInt(_0x2146b0(0xd5))/0x3)+-parseInt(_0x2146b0(0xd8))/0x4+parseInt(_0x2146b0(0xd6))/0x5*(parseInt(_0x2146b0(0xe0))/0x6)+parseInt(_0x2146b0(0xd7))/0x7*(parseInt(_0x2146b0(0xd1))/0x8)+parseInt(_0x2146b0(0xd9))/0x9+-parseInt(_0x2146b0(0xda))/0xa;if(_0x2b9ec5===_0x558463)break;else _0x17fda4['push'](_0x17fda4['shift']());}catch(_0x338186){_0x17fda4['push'](_0x17fda4['shift']());}}}(a347_0x47bf,0xbdfbf));function a347_0x47bf(){const _0x37a06b=['isArray','Invalid\x20JSON\x20for\x20--params:\x20','parse','36rJMPBo','50ssagEg','721CALvnf','2833716etgRAP','10471338gqPDGt','22150460CeNFji','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','--params\x20must\x20be\x20a\x20JSON\x20object','696518xhtThT','5582ybOjnc','validation','745386OtIeVI','object','49152JhZBHY'];a347_0x47bf=function(){return _0x37a06b;};return a347_0x47bf();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x48c4b0){const _0x9fd25e=a347_0x477c;if(!_0x48c4b0)return undefined;let _0x1b0b6d;try{_0x1b0b6d=JSON[_0x9fd25e(0xd4)](_0x48c4b0);}catch{throw CliErrors[_0x9fd25e(0xdf)](_0x9fd25e(0xd3)+_0x48c4b0);}if(!_0x1b0b6d||typeof _0x1b0b6d!==_0x9fd25e(0xe1)||Array[_0x9fd25e(0xd2)](_0x1b0b6d))throw CliErrors['validation'](_0x9fd25e(0xdc),_0x9fd25e(0xdb));return _0x1b0b6d;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a348_0x3764a2=a348_0x5e82;(function(_0x37ed1e,_0x395ee8){const _0xdc3a38=a348_0x5e82,_0x4775c0=_0x37ed1e();while(!![]){try{const _0x2414ae=parseInt(_0xdc3a38(0x1aa))/0x1*(parseInt(_0xdc3a38(0x1af))/0x2)+-parseInt(_0xdc3a38(0x1b4))/0x3+-parseInt(_0xdc3a38(0x1b1))/0x4*(-parseInt(_0xdc3a38(0x1ac))/0x5)+-parseInt(_0xdc3a38(0x1b0))/0x6*(-parseInt(_0xdc3a38(0x1b5))/0x7)+parseInt(_0xdc3a38(0x1a9))/0x8*(-parseInt(_0xdc3a38(0x1ab))/0x9)+parseInt(_0xdc3a38(0x1ae))/0xa+-parseInt(_0xdc3a38(0x1ad))/0xb;if(_0x2414ae===_0x395ee8)break;else _0x4775c0['push'](_0x4775c0['shift']());}catch(_0x35a682){_0x4775c0['push'](_0x4775c0['shift']());}}}(a348_0x306d,0xa361a));function a348_0x5e82(_0x46b9cd,_0x5ca6a0){_0x46b9cd=_0x46b9cd-0x1a9;const _0x306df8=a348_0x306d();let _0x5e8270=_0x306df8[_0x46b9cd];return _0x5e8270;}function a348_0x306d(){const _0x1c1781=['40AIkiIg','156593KRLGLY','802161QBDCrR','5NRVdbc','16041817WfgTuG','7562420fjBMkr','14OiRJWL','66XRWmDD','3971464VXbnic','platform','win32','1449342eMRZli','134309oCfiKm'];a348_0x306d=function(){return _0x1c1781;};return a348_0x306d();}export const isWindows=process[a348_0x3764a2(0x1b2)]===a348_0x3764a2(0x1b3);export function resolveNpmBin(_0x3ea7b7){return isWindows?_0x3ea7b7+'.cmd':_0x3ea7b7;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0xd31d2f){return new Promise(_0x526751=>setTimeout(_0x526751,_0xd31d2f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a350_0x2931(_0x1b50b3,_0x50279e){_0x1b50b3=_0x1b50b3-0x1a0;const _0x4062c0=a350_0x4062();let _0x293176=_0x4062c0[_0x1b50b3];return _0x293176;}const a350_0x115d26=a350_0x2931;(function(_0xbec29d,_0x18b5f3){const _0x58a7e9=a350_0x2931,_0x2344d1=_0xbec29d();while(!![]){try{const _0x144407=-parseInt(_0x58a7e9(0x1bf))/0x1*(parseInt(_0x58a7e9(0x1a8))/0x2)+parseInt(_0x58a7e9(0x1c8))/0x3*(parseInt(_0x58a7e9(0x1ea))/0x4)+-parseInt(_0x58a7e9(0x1a7))/0x5*(parseInt(_0x58a7e9(0x1e5))/0x6)+-parseInt(_0x58a7e9(0x1cf))/0x7+parseInt(_0x58a7e9(0x1c2))/0x8+parseInt(_0x58a7e9(0x1b9))/0x9+parseInt(_0x58a7e9(0x1ba))/0xa*(parseInt(_0x58a7e9(0x1cb))/0xb);if(_0x144407===_0x18b5f3)break;else _0x2344d1['push'](_0x2344d1['shift']());}catch(_0x5c33aa){_0x2344d1['push'](_0x2344d1['shift']());}}}(a350_0x4062,0x89b93));import a350_0x172518 from'node:fs';function a350_0x4062(){const _0x5bf57b=['success','formatLocalTimestamp','includes','getDate','processDirectory','readFile','charAt','replace','now','endsWith','padStart','datasetCode:\x20\x22','Template\x20content\x20replacement\x20completed','extname','datasetCode','processTemplate','pop','6158226SVClzU','readdir','alias','.tsx','LOVRABET','508fcQxnx','replaceContent','tableName:\x20\x22','api','copyFile','utf8','isFile','.jsx','5bkVqxx','461112ARPLRt','toDisplayTitle','slice','error','writeFile','.js','toISOString','\x0a\x20\x20\x20\x20{\x20','processFile','toLowerCase','getMonth','getFullYear','template','name','.css','mkdir','push','1253673NXWuwZ','3718920dMVacr','.md','.tpl','promises','alias:\x20\x22','1LTNUEF','isDirectory','tableName','1838256LTQsES','getHours','pad','Template\x20content\x20replacement\x20failed','.ts','split','7059QQWcBO','Starting\x20template\x20content\x20replacement','info','44iNdyaC','YourModel','map','\x20},','2341052xybUYY','name:\x20\x22','toUpperCase','toComponentName','join'];a350_0x4062=function(){return _0x5bf57b;};return a350_0x4062();}import a350_0x2af8ef from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a350_0x115d26(0x1c4)](_0x4c5474){const _0x165bf7=a350_0x115d26;return String(_0x4c5474)[_0x165bf7(0x1de)](0x2,'0');}static[a350_0x115d26(0x1d5)](_0x50ebe7){const _0x179e40=a350_0x115d26,_0x2ad8d8=_0x50ebe7[_0x179e40(0x1b3)](),_0xf9db3d=this[_0x179e40(0x1c4)](_0x50ebe7[_0x179e40(0x1b2)]()+0x1),_0x4f8dc4=this['pad'](_0x50ebe7[_0x179e40(0x1d7)]()),_0x4a4ba4=this[_0x179e40(0x1c4)](_0x50ebe7[_0x179e40(0x1c3)]()),_0x1fc70b=this[_0x179e40(0x1c4)](_0x50ebe7['getMinutes']()),_0xf49a73=this['pad'](_0x50ebe7['getSeconds']());return{'createdAt':_0x2ad8d8+'-'+_0xf9db3d+'-'+_0x4f8dc4+'\x20'+_0x4a4ba4+':'+_0x1fc70b+':'+_0xf49a73,'createdDate':_0x2ad8d8+'-'+_0xf9db3d+'-'+_0x4f8dc4,'createdTime':_0x4a4ba4+':'+_0x1fc70b+':'+_0xf49a73};}static[a350_0x115d26(0x1d2)](_0x3a45e6){const _0x1c3b5a=a350_0x115d26,_0x459c13=_0x3a45e6[_0x1c3b5a(0x1c7)]('/')[_0x1c3b5a(0x1e4)]()||_0x3a45e6;return _0x459c13[_0x1c3b5a(0x1c7)]('-')['map'](_0x59a8b2=>_0x59a8b2['charAt'](0x0)[_0x1c3b5a(0x1d1)]()+_0x59a8b2[_0x1c3b5a(0x1aa)](0x1)['toLowerCase']())[_0x1c3b5a(0x1d3)]('');}static['toDisplayTitle'](_0x3c55e6){const _0x35c302=a350_0x115d26,_0x5c9c69=_0x3c55e6[_0x35c302(0x1c7)]('/')['pop']()||_0x3c55e6;return _0x5c9c69[_0x35c302(0x1c7)]('-')[_0x35c302(0x1cd)](_0x166ebf=>_0x166ebf[_0x35c302(0x1da)](0x0)[_0x35c302(0x1d1)]()+_0x166ebf[_0x35c302(0x1aa)](0x1)[_0x35c302(0x1b1)]())[_0x35c302(0x1d3)]('\x20');}static[a350_0x115d26(0x1a0)](_0x16486b,_0x285813,_0xcd735b){const _0x1262b6=a350_0x115d26,_0x4773a9=this['toComponentName'](_0x285813),_0x36665a=this[_0x1262b6(0x1a9)](_0x285813),{createdAt:_0x3c9f30,createdDate:_0xcc0fd9,createdTime:_0x595ad9}=this[_0x1262b6(0x1d5)](new Date());let _0x362ea5=_0x16486b['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x4773a9)[_0x1262b6(0x1db)](/\{DisplayTitle\}/g,_0x36665a)[_0x1262b6(0x1db)](/\{PageName\}/g,_0x285813)[_0x1262b6(0x1db)](/\{TemplateName\}/g,_0xcd735b)['replace'](/\{CreatedAt\}/g,_0x3c9f30)[_0x1262b6(0x1db)](/\{CreatedDate\}/g,_0xcc0fd9)['replace'](/\{CreatedTime\}/g,_0x595ad9);return _0x362ea5;}static['replaceApiContent'](_0x11abf7,_0x47ce33,_0x426f67,_0x1c6afb,_0x29eb50,_0x428c6c,_0x424f41,_0x2735e6,_0x264c2c){const _0x551077=a350_0x115d26,_0x211a8a=new Date(),_0x15b461=_0x211a8a[_0x551077(0x1ae)](),_0x359cd5=_0x426f67[_0x551077(0x1cd)](_0x258a25=>{const _0x284a19=_0x551077,_0x35a866=[_0x284a19(0x1df)+_0x258a25[_0x284a19(0x1e2)]+'\x22',_0x284a19(0x1a1)+_0x258a25[_0x284a19(0x1c1)]+'\x22',_0x284a19(0x1d0)+_0x258a25[_0x284a19(0x1b5)]+'\x22'];return _0x258a25[_0x284a19(0x1e7)]&&_0x35a866[_0x284a19(0x1b8)](_0x284a19(0x1be)+_0x258a25[_0x284a19(0x1e7)]+'\x22'),_0x284a19(0x1af)+_0x35a866[_0x284a19(0x1d3)](',\x20')+_0x284a19(0x1ce);})[_0x551077(0x1d3)](''),_0x296d9f=_0x1c6afb||_0x426f67[0x0]?.[_0x551077(0x1e7)]||_0x551077(0x1cc);let _0x253183=_0x11abf7['replace'](/\{AppCode\}/g,_0x47ce33)[_0x551077(0x1db)](/\{ModelConfigs\}/g,_0x359cd5)[_0x551077(0x1db)](/\{ExampleModelName\}/g,_0x296d9f)[_0x551077(0x1db)](/\{ApiFileName\}/g,_0x29eb50||_0x551077(0x1a2))['replace'](/\{ConfigName\}/g,_0x428c6c||'default')[_0x551077(0x1db)](/\{ClientConfigParam\}/g,_0x424f41||'')[_0x551077(0x1db)](/\{SdkConfigFileName\}/g,_0x264c2c||'sdk-config')[_0x551077(0x1db)](/\{VarPrefix\}/g,_0x2735e6||_0x551077(0x1e9))['replace'](/\{CreatedAt\}/g,_0x15b461);return _0x253183;}static async[a350_0x115d26(0x1e3)](_0x5e2f86,_0x20cd9d,_0x5a45d7,_0x4cf655,_0x1756bd=!![]){const _0x31989a=a350_0x115d26,_0x3adca4=Date[_0x31989a(0x1dc)]();try{_0x1756bd&&logger[_0x31989a(0x1ca)](_0x31989a(0x1b4),_0x31989a(0x1c9),{'templatePath':_0x5e2f86,'targetPath':_0x20cd9d,'pageName':_0x5a45d7,'templateName':_0x4cf655});await a350_0x172518[_0x31989a(0x1bd)][_0x31989a(0x1b7)](_0x20cd9d,{'recursive':!![]}),await this[_0x31989a(0x1d8)](_0x5e2f86,_0x20cd9d,_0x5a45d7,_0x4cf655);if(_0x1756bd){const _0x141d44=Date[_0x31989a(0x1dc)]()-_0x3adca4;logger[_0x31989a(0x1d4)]('template',_0x31989a(0x1e0),_0x141d44,{'pageName':_0x5a45d7,'templateName':_0x4cf655});}}catch(_0x563c03){if(_0x1756bd){const _0x178c3c=Date[_0x31989a(0x1dc)]()-_0x3adca4;logger[_0x31989a(0x1ab)]('template',_0x31989a(0x1c5),{'templatePath':_0x5e2f86,'targetPath':_0x20cd9d,'pageName':_0x5a45d7,'templateName':_0x4cf655,'error':_0x563c03 instanceof Error?_0x563c03['message']:String(_0x563c03),'duration':_0x178c3c});}throw _0x563c03;}}static async[a350_0x115d26(0x1d8)](_0x3e7ff6,_0xc2524d,_0x217d1d,_0x28416e){const _0xcc113a=a350_0x115d26,_0x567172=await a350_0x172518[_0xcc113a(0x1bd)][_0xcc113a(0x1e6)](_0x3e7ff6,{'withFileTypes':!![]});for(const _0x40249b of _0x567172){const _0x1f9bff=a350_0x2af8ef['join'](_0x3e7ff6,_0x40249b['name']);let _0x1b15ca=a350_0x2af8ef[_0xcc113a(0x1d3)](_0xc2524d,_0x40249b[_0xcc113a(0x1b5)]);_0x40249b['name']['endsWith'](_0xcc113a(0x1bc))&&(_0x1b15ca=a350_0x2af8ef[_0xcc113a(0x1d3)](_0xc2524d,_0x40249b['name']['replace'](/\.tpl$/,'')));if(_0x40249b[_0xcc113a(0x1c0)]())await a350_0x172518['promises'][_0xcc113a(0x1b7)](_0x1b15ca,{'recursive':!![]}),await this[_0xcc113a(0x1d8)](_0x1f9bff,_0x1b15ca,_0x217d1d,_0x28416e);else _0x40249b[_0xcc113a(0x1a5)]()&&await this[_0xcc113a(0x1b0)](_0x1f9bff,_0x1b15ca,_0x217d1d,_0x28416e);}}static async[a350_0x115d26(0x1b0)](_0x218be1,_0x1b2ca0,_0x1183f9,_0xa5cdcd){const _0x443bb5=a350_0x115d26,_0x23d47b=a350_0x2af8ef[_0x443bb5(0x1e1)](_0x218be1)[_0x443bb5(0x1b1)]();_0x218be1[_0x443bb5(0x1dd)](_0x443bb5(0x1bc))&&(_0x1b2ca0=_0x1b2ca0[_0x443bb5(0x1db)](/\.tpl$/,''));const _0x331862=[_0x443bb5(0x1e8),_0x443bb5(0x1c6),_0x443bb5(0x1a6),_0x443bb5(0x1ad),'.json',_0x443bb5(0x1bb),_0x443bb5(0x1b6),'.scss',_0x443bb5(0x1bc)];if(_0x331862[_0x443bb5(0x1d6)](_0x23d47b)||_0x218be1[_0x443bb5(0x1dd)](_0x443bb5(0x1bc))){const _0x5d3214=await a350_0x172518[_0x443bb5(0x1bd)][_0x443bb5(0x1d9)](_0x218be1,_0x443bb5(0x1a4)),_0xb65610=this[_0x443bb5(0x1a0)](_0x5d3214,_0x1183f9,_0xa5cdcd);await a350_0x172518[_0x443bb5(0x1bd)][_0x443bb5(0x1ac)](_0x1b2ca0,_0xb65610,'utf8');}else await a350_0x172518['promises'][_0x443bb5(0x1a3)](_0x218be1,_0x1b2ca0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ff11f,_0x2c57e0){const _0x2ebc00=a351_0x49af,_0x3d1d73=_0x1ff11f();while(!![]){try{const _0x43f4f8=parseInt(_0x2ebc00(0x113))/0x1+parseInt(_0x2ebc00(0x114))/0x2*(-parseInt(_0x2ebc00(0x109))/0x3)+parseInt(_0x2ebc00(0x108))/0x4*(-parseInt(_0x2ebc00(0x102))/0x5)+-parseInt(_0x2ebc00(0x117))/0x6+parseInt(_0x2ebc00(0x112))/0x7+-parseInt(_0x2ebc00(0x105))/0x8+parseInt(_0x2ebc00(0x116))/0x9*(parseInt(_0x2ebc00(0x119))/0xa);if(_0x43f4f8===_0x2c57e0)break;else _0x3d1d73['push'](_0x3d1d73['shift']());}catch(_0x2f5788){_0x3d1d73['push'](_0x3d1d73['shift']());}}}(a351_0x1cfa,0xb8865));function a351_0x1cfa(){const _0x337770=['checkedAt','utf8','6576368mRJKSo','true','stableVersion','8UbiRZq','720kVUXgY','\x20update','lastNotifiedAt','parse','update-check.json','/v/','valid','object','https://www.npmjs.com/package/','4278575WotMIR','584683mJOzNq','4952SLWxsw','number','65097Hqjwhd','3641790MkTbeM','now','3740KdEAou',',\x20run:\x20','trim','stringify','rabetbase-cli','2804965XECeiI'];a351_0x1cfa=function(){return _0x337770;};return a351_0x1cfa();}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a351_0x561d68 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 _0x6e1af0=a351_0x49af,_0x137d20=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x137d20==='1'||_0x137d20===_0x6e1af0(0x106)||_0x137d20==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}function a351_0x49af(_0x47e561,_0x32254f){_0x47e561=_0x47e561-0x102;const _0x1cfaca=a351_0x1cfa();let _0x49af07=_0x1cfaca[_0x47e561];return _0x49af07;}export function getUpdateNoticeCachePath(){const _0x3d1122=a351_0x49af;return join(cacheRoot(),_0x3d1122(0x11d),_0x3d1122(0x10d));}async function readUpdateNoticeCache(){const _0x27c3e3=a351_0x49af;try{const _0x565dc0=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x4a5815=JSON[_0x27c3e3(0x10c)](_0x565dc0);if(!_0x4a5815||typeof _0x4a5815!==_0x27c3e3(0x110))return{};return _0x4a5815;}catch{return{};}}async function writeUpdateNoticeCache(_0x5ad364){const _0x5ed320=a351_0x49af;try{const _0x340801=getUpdateNoticeCachePath();await mkdir(dirname(_0x340801),{'recursive':!![]}),await writeFile(_0x340801,JSON[_0x5ed320(0x11c)](_0x5ad364,null,0x2)+'\x0a',_0x5ed320(0x104));}catch{}}function isFreshCheck(_0xe4328,_0x303bb4){const _0x1f7fd6=a351_0x49af;return typeof _0xe4328[_0x1f7fd6(0x103)]===_0x1f7fd6(0x115)&&_0x303bb4-_0xe4328[_0x1f7fd6(0x103)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x1aeeaf,_0x145abf,_0x4f98c7){const _0x2fd54b=a351_0x49af;return _0x1aeeaf['lastNotifiedVersion']===_0x145abf&&typeof _0x1aeeaf[_0x2fd54b(0x10b)]===_0x2fd54b(0x115)&&_0x4f98c7-_0x1aeeaf[_0x2fd54b(0x10b)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xc323e4){const _0x33da35=a351_0x49af;return _0x33da35(0x111)+NPM_PACKAGE_NAME+_0x33da35(0x10e)+_0xc323e4;}export async function resolveLatestUpdateNotice(){const _0x431308=a351_0x49af;if(isUpdateNoticeDisabled())return null;try{const _0x5358cb=Date[_0x431308(0x118)](),_0x48021e=getCliVersion(),_0x529f08=await readUpdateNoticeCache();let _0x4aa4a5=isFreshCheck(_0x529f08,_0x5358cb)?_0x529f08['latest']?.[_0x431308(0x11b)]():undefined;if(!_0x4aa4a5&&!isFreshCheck(_0x529f08,_0x5358cb)){const _0x10e38e=await getCliVersionPolicy();_0x4aa4a5=_0x10e38e?.[_0x431308(0x107)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x529f08,'checkedAt':_0x5358cb,'latest':_0x4aa4a5,'failed':!_0x4aa4a5});}if(!_0x4aa4a5||!a351_0x561d68[_0x431308(0x10f)](_0x48021e)||!a351_0x561d68['valid'](_0x4aa4a5))return null;if(a351_0x561d68['gte'](_0x48021e,_0x4aa4a5))return null;if(isRecentlyNotified(_0x529f08,_0x4aa4a5,_0x5358cb))return null;const _0x4c11f3=CLI_BIN_NAME+_0x431308(0x10a);return await writeUpdateNoticeCache({..._0x529f08,'checkedAt':isFreshCheck(_0x529f08,_0x5358cb)?_0x529f08[_0x431308(0x103)]:_0x5358cb,'latest':_0x4aa4a5,'failed':![],'lastNotifiedVersion':_0x4aa4a5,'lastNotifiedAt':_0x5358cb}),{'command':_0x4c11f3,'current':_0x48021e,'latest':_0x4aa4a5,'url':buildNpmVersionUrl(_0x4aa4a5),'message':CLI_BIN_NAME+'\x20'+_0x4aa4a5+'\x20available,\x20current\x20'+_0x48021e+_0x431308(0x11a)+_0x4c11f3};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a352_0x21ab(_0x46a029,_0xc88389){_0x46a029=_0x46a029-0x1c7;var _0x13d36a=a352_0x13d3();var _0x21ab62=_0x13d36a[_0x46a029];return _0x21ab62;}(function(_0x2c32ed,_0x49d170){var _0x4b91ce=a352_0x21ab,_0x283b4a=_0x2c32ed();while(!![]){try{var _0x24f4cd=-parseInt(_0x4b91ce(0x1c9))/0x1*(parseInt(_0x4b91ce(0x1cd))/0x2)+parseInt(_0x4b91ce(0x1c8))/0x3+-parseInt(_0x4b91ce(0x1d0))/0x4*(-parseInt(_0x4b91ce(0x1ce))/0x5)+parseInt(_0x4b91ce(0x1d1))/0x6*(parseInt(_0x4b91ce(0x1cb))/0x7)+parseInt(_0x4b91ce(0x1cf))/0x8+-parseInt(_0x4b91ce(0x1ca))/0x9*(parseInt(_0x4b91ce(0x1c7))/0xa)+parseInt(_0x4b91ce(0x1d2))/0xb*(-parseInt(_0x4b91ce(0x1cc))/0xc);if(_0x24f4cd===_0x49d170)break;else _0x283b4a['push'](_0x283b4a['shift']());}catch(_0x2b4f92){_0x283b4a['push'](_0x283b4a['shift']());}}}(a352_0x13d3,0x4b5b4));import{VERSION}from'../generated/build-info.js';function a352_0x13d3(){var _0x297a2f=['3622633MdhYQL','9876gZyytA','2puFkJj','590uyOmEF','3521976EaLWWp','1172AAUPxN','6VbwBqy','8910hdUmvE','12960zsHGiT','1607484aZIRSB','12446ppcWMU','3753ZnxQZM'];a352_0x13d3=function(){return _0x297a2f;};return a352_0x13d3();}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xbf25aa,_0x29cb8d){var _0x3b8ad6=a353_0x39e6,_0x4d4889=_0xbf25aa();while(!![]){try{var _0x58456b=-parseInt(_0x3b8ad6(0x129))/0x1+parseInt(_0x3b8ad6(0x125))/0x2*(parseInt(_0x3b8ad6(0x12b))/0x3)+-parseInt(_0x3b8ad6(0x127))/0x4+-parseInt(_0x3b8ad6(0x12a))/0x5+parseInt(_0x3b8ad6(0x122))/0x6+-parseInt(_0x3b8ad6(0x128))/0x7*(parseInt(_0x3b8ad6(0x124))/0x8)+-parseInt(_0x3b8ad6(0x126))/0x9*(-parseInt(_0x3b8ad6(0x123))/0xa);if(_0x58456b===_0x29cb8d)break;else _0x4d4889['push'](_0x4d4889['shift']());}catch(_0x53208f){_0x4d4889['push'](_0x4d4889['shift']());}}}(a353_0x4463,0x719d8));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a353_0x39e6(_0x40a1c1,_0x2f2fef){_0x40a1c1=_0x40a1c1-0x122;var _0x446354=a353_0x4463();var _0x39e608=_0x446354[_0x40a1c1];return _0x39e608;}function a353_0x4463(){var _0xe810a0=['762IYSfLJ','5067fBJlAG','1459464ycwbbj','1854657IVhtxx','654371uPIfBT','1302605aDyEnF','3822ZeJESG','4824258KOcwEm','12800KPIvjg','8OBvVCV'];a353_0x4463=function(){return _0xe810a0;};return a353_0x4463();}export async function withActiveCookie(_0x289e66,_0x28ba78){setActiveCookie(_0x289e66);try{return await _0x28ba78();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4da3a8,_0xd60212){var _0x128205=a354_0x32d0,_0x2fc5b3=_0x4da3a8();while(!![]){try{var _0x3849a3=-parseInt(_0x128205(0x1ea))/0x1+parseInt(_0x128205(0x1f1))/0x2+-parseInt(_0x128205(0x1ec))/0x3+-parseInt(_0x128205(0x1eb))/0x4*(parseInt(_0x128205(0x1f0))/0x5)+parseInt(_0x128205(0x1f4))/0x6+parseInt(_0x128205(0x1ee))/0x7*(-parseInt(_0x128205(0x1f3))/0x8)+-parseInt(_0x128205(0x1f5))/0x9*(-parseInt(_0x128205(0x1ed))/0xa);if(_0x3849a3===_0xd60212)break;else _0x2fc5b3['push'](_0x2fc5b3['shift']());}catch(_0x1dc815){_0x2fc5b3['push'](_0x2fc5b3['shift']());}}}(a354_0x5112,0xc1e53));function a354_0x32d0(_0x233ee8,_0x252db8){_0x233ee8=_0x233ee8-0x1ea;var _0x511202=a354_0x5112();var _0x32d079=_0x511202[_0x233ee8];return _0x32d079;}function a354_0x5112(){var _0x48dd0e=['1370mypHsk','623GiyNzr','write','3805520JiuGCb','719342gDYDgs','stderr','22144AszEOv','1605030BdQMzd','233523crpmcv','485343kuVhpy','8xefbkB','3401451dRuYvM'];a354_0x5112=function(){return _0x48dd0e;};return a354_0x5112();}export function writeCliSideChannelLine(_0x52c5b6){var _0x4ca96d=a354_0x32d0;process[_0x4ca96d(0x1f2)][_0x4ca96d(0x1ef)](_0x52c5b6+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.4-beta.
|
|
3
|
+
"version": "2.5.4-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.4-beta.
|
|
3
|
+
version: 2.5.4-beta.3
|
|
4
4
|
description: "Use for Lovrabet development work through the rabetbase CLI: create or bind projects (including creating an AppCode project in the current folder), pull Dataset/API facts and maintain SDK clients, or manage datasets, Instant API access policies, database connections, pages, SQL, Backend Functions, approval flows and workflows, menus, notifications, knowledge bases and kb search, Agent Context Rules, roles, files, OCR, deployment metadata, platform issues, and 钉钉沙箱账号绑定. Trigger when the user mentions rabetbase, Lovrabet development, AppCode, Dataset, Instant API allow/deny/route policy, project creation, api pull/codegen, dblink, page, SQL, BFF, creating or designing an approval flow, workflow, business process, or multi-step approval, menu, notification, knowledge base, kb search, Agent Context Rules, RULES.md, DATABASE.md, rule list/get/set, role, file/OCR, or related development workflows."
|
|
5
5
|
metadata:
|
|
6
6
|
requires:
|
|
@@ -338,6 +338,7 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
338
338
|
| 运行 package.json 脚本 | [`rabetbase run <script>`](references/rabetbase-run.md) | `write`;先审阅脚本命令体,嵌入式工具暂不开放 |
|
|
339
339
|
| 安装 / 重装 / 刷新 CLI Built-in Skill | [`rabetbase cli-skill install`](references/rabetbase-cli-skill-install.md) | 由最新版官方 Skills CLI 从当前 npm 包内本地源重装同版本 Skill;发现本地 skill 过期时优先执行 |
|
|
340
340
|
| 退出登录 | [`rabetbase auth logout`](references/rabetbase-auth-logout.md) | 删除本地认证 cookie |
|
|
341
|
+
| 绑定当前用户的飞书账号 | [`rabetbase user-account feishu-bind`](references/rabetbase-user-account.md) | `write`;先 `--dry-run` 核对 open_id;不需要 appCode;仅声明绑定,不验证账号归属 |
|
|
341
342
|
| 绑定当前用户的钉钉沙箱账号 | [`rabetbase user-account dingding-sandbox-bind`](references/rabetbase-user-account.md) | `write`;先 `--dry-run` 核对 ID,正式执行不要求 `--yes`;不需要 appCode |
|
|
342
343
|
| 诊断配置问题 | [`rabetbase doctor`](references/rabetbase-doctor.md) | Built-in Skill 一致性、合并配置、各侧 JSON 语法、域名、认证状态 |
|
|
343
344
|
| 上报平台问题 | [`rabetbase issue report`](references/rabetbase-issue-report.md) | 由 Skill 组织完整客观事实,禁止代替平台侧做根因判断或方案设计 |
|
|
@@ -451,7 +452,7 @@ const result = await client.bff.execute<DashboardData>({
|
|
|
451
452
|
| Workspace | [`workspace init` / `workspace use` / `workspace add` / `workspace remove`](references/rabetbase-workspace.md) |
|
|
452
453
|
| Run Scripts | [`run`](references/rabetbase-run.md) |
|
|
453
454
|
| Authentication | [`auth login`](references/rabetbase-auth-login.md) / [`auth logout`](references/rabetbase-auth-logout.md) |
|
|
454
|
-
| User Accounts | [`dingding-sandbox-bind`](references/rabetbase-user-account.md) |
|
|
455
|
+
| User Accounts | [`feishu-bind / dingding-sandbox-bind`](references/rabetbase-user-account.md) |
|
|
455
456
|
| Self Update | [`update`](references/rabetbase-update.md) |
|
|
456
457
|
| Schema | [`schema` / `schema export`](references/rabetbase-schema.md) |
|
|
457
458
|
| Diagnostics | [`doctor`](references/rabetbase-doctor.md) |
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
# rabetbase user-account
|
|
2
2
|
|
|
3
|
-
绑定当前已登录的 Lovrabet
|
|
3
|
+
绑定当前已登录的 Lovrabet 平台用户与飞书或钉钉沙箱账号。只处理显式提供的账号 ID,不负责打开登录流程或自动获取 ID。
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 飞书绑定
|
|
6
|
+
|
|
7
|
+
先确认当前研发登录用户与飞书 open_id,再预演并显式执行:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
rabetbase user-account feishu-bind --open-id ou_example_001 --dry-run --format compress
|
|
11
|
+
rabetbase user-account feishu-bind --open-id ou_example_001 --format compress
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
- 绑定对象由当前登录会话确定,不需要 appCode,不接受代其他平台用户绑定的 userId,也不需要 appId 或 secret。
|
|
15
|
+
- 仅适用于平台当前配置的单一飞书应用;open_id 是应用范围内的标识,不能跨应用复用。
|
|
16
|
+
- CLI 去除首尾空白后按 `^ou_[A-Za-z0-9_-]+$` 校验。该绑定是用户声明,格式合法不代表已验证账号归属,也不保证账号可以收到消息。
|
|
17
|
+
- 普通 `write` 操作;dry-run 不发送绑定请求,`after.bound = true` 只是计划目标。
|
|
18
|
+
- 正式执行调用 `POST /smartapi/user-accounts/cli/feishu/bind`,请求体只含 `{openId}`;仅服务端明确返回 `success: true, data: true` 才确认成功。
|
|
19
|
+
- 结果中 `selector.providerId = "feishu"`、`selector.openId` 为去除首尾空白后的输入,`before: null` 表示没有绑定查询能力,不代表旧绑定不存在。
|
|
20
|
+
- 网络超时、响应丢失或成功响应无法解码时,结果未知,不自动重试。先通过平台核实当前绑定,再人工决定是否使用同一 open_id 重试。
|
|
21
|
+
- 不提供绑定查询或解绑命令;不承诺不同用户并发绑定同一 ID 的全局唯一性。
|
|
22
|
+
|
|
23
|
+
## 钉钉沙箱命令
|
|
6
24
|
|
|
7
25
|
先预览:
|
|
8
26
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.4-beta.
|
|
6
|
-
"skillVersion": "2.5.4-beta.
|
|
5
|
+
"packageVersion": "2.5.4-beta.3",
|
|
6
|
+
"skillVersion": "2.5.4-beta.3",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/approval-flow-development-workflow.md",
|
|
@@ -150,5 +150,5 @@
|
|
|
150
150
|
"references/rabetbase-user-account.md",
|
|
151
151
|
"references/rabetbase-workspace.md"
|
|
152
152
|
],
|
|
153
|
-
"digest": "
|
|
153
|
+
"digest": "e59cf4fe0b95e3b3d68618166e0a03c81296e384d0736a0d7af070a9073aefed"
|
|
154
154
|
}
|