@lovrabet/rabetbase-cli 2.5.4-beta.3 → 2.5.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/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.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/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 +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/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 +2 -2
- package/skills/rabetbase/references/rabetbase-user-account.md +8 -8
- package/skills/rabetbase.manifest.json +3 -3
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a346_0x2edcdd=a346_0x59d0;function a346_0x59d0(_0x507e30,_0x450937){_0x507e30=_0x507e30-0x1e7;const _0x2cb58c=a346_0x2cb5();let _0x59d0b8=_0x2cb58c[_0x507e30];return _0x59d0b8;}(function(_0x49611e,_0x30f0df){const _0x10b8b2=a346_0x59d0,_0x36210c=_0x49611e();while(!![]){try{const _0x6be596=-parseInt(_0x10b8b2(0x1fb))/0x1+parseInt(_0x10b8b2(0x208))/0x2*(-parseInt(_0x10b8b2(0x204))/0x3)+-parseInt(_0x10b8b2(0x21c))/0x4*(-parseInt(_0x10b8b2(0x20c))/0x5)+-parseInt(_0x10b8b2(0x1f5))/0x6+-parseInt(_0x10b8b2(0x1f2))/0x7*(parseInt(_0x10b8b2(0x202))/0x8)+parseInt(_0x10b8b2(0x1ec))/0x9+-parseInt(_0x10b8b2(0x218))/0xa*(-parseInt(_0x10b8b2(0x1ef))/0xb);if(_0x6be596===_0x30f0df)break;else _0x36210c['push'](_0x36210c['shift']());}catch(_0x4b8c91){_0x36210c['push'](_0x36210c['shift']());}}}(a346_0x2cb5,0x4e989));import a346_0x5ce9ba from'winston';import a346_0x4e9bed from'node:fs';import a346_0x2af00a from'node:path';function a346_0x2cb5(){const _0x44de63=['utf8','unknown','combine','4527324uuNTqk','createLogger','duration','1199mxhMBu','setRawCommand','warn','585319zbUIWU','clearLogs','now','2565192eFZYKh','info','currentRawCommand','Failed\x20to\x20read\x20logs:','clear','command','53049tLcifj','rawCommand','Failed:\x20','logFilePath','printf','details','yellow','56LgluAj','blue','26613FQOndH','existsSync','Starting:\x20','transports','26rcxzSU','File','message','join','1133805xMMyJT','success','errors','green','red','log','map','error','addColors','readFileSync','winstonLogger','trim','70950vxOGNE','format','filter','mkdirSync','4bORiiM','initWinstonLogger','getWinstonInstance','timestamp'];a346_0x2cb5=function(){return _0x44de63;};return a346_0x2cb5();}class Logger{['winstonLogger'];['logFilePath'];[a346_0x2edcdd(0x1f7)]='';constructor(){const _0x1ead51=a346_0x2edcdd;this[_0x1ead51(0x1fe)]='';}[a346_0x2edcdd(0x1f0)](_0x3e274e){this['currentRawCommand']=_0x3e274e;}[a346_0x2edcdd(0x21d)](){const _0x172f7b=a346_0x2edcdd,_0x1b5676=a346_0x2af00a['dirname'](this[_0x172f7b(0x1fe)]);!a346_0x4e9bed[_0x172f7b(0x205)](_0x1b5676)&&a346_0x4e9bed[_0x172f7b(0x21b)](_0x1b5676,{'recursive':!![]});const _0x122425=a346_0x5ce9ba[_0x172f7b(0x219)][_0x172f7b(0x1eb)](a346_0x5ce9ba[_0x172f7b(0x219)][_0x172f7b(0x1e8)](),a346_0x5ce9ba['format'][_0x172f7b(0x20e)]({'stack':!![]}),a346_0x5ce9ba['format'][_0x172f7b(0x1ff)](_0x24479a=>{const _0x2ab393=_0x172f7b,_0x197e23={'timestamp':_0x24479a['timestamp']||new Date()['toISOString'](),'level':_0x24479a['level']||'info','command':_0x24479a[_0x2ab393(0x1fa)]||_0x2ab393(0x1ea),'rawCommand':_0x24479a[_0x2ab393(0x1fc)]||this[_0x2ab393(0x1f7)]||undefined,'message':_0x24479a[_0x2ab393(0x20a)]||'','duration':_0x24479a[_0x2ab393(0x1ee)]||undefined,'details':_0x24479a[_0x2ab393(0x200)]||undefined};return JSON['stringify'](_0x197e23);}));this[_0x172f7b(0x216)]=a346_0x5ce9ba[_0x172f7b(0x1ed)]({'level':'info','format':_0x122425,'transports':[new a346_0x5ce9ba[(_0x172f7b(0x207))][(_0x172f7b(0x209))]({'filename':this[_0x172f7b(0x1fe)],'level':_0x172f7b(0x1f6)})],'silent':![]}),a346_0x5ce9ba[_0x172f7b(0x214)]({'success':_0x172f7b(0x20f),'error':_0x172f7b(0x210),'warn':_0x172f7b(0x201),'info':_0x172f7b(0x203)});}['setLogPath'](_0x44d5d7){const _0x2c91b4=a346_0x2edcdd;this[_0x2c91b4(0x1fe)]=a346_0x2af00a[_0x2c91b4(0x20b)](_0x44d5d7,'.lovrabet.log'),this[_0x2c91b4(0x216)]&&this[_0x2c91b4(0x216)][_0x2c91b4(0x1f9)](),this[_0x2c91b4(0x21d)]();}[a346_0x2edcdd(0x1f6)](_0x32b92a,_0x95a651,_0x472a33){const _0x2ad31b=a346_0x2edcdd;if(!this[_0x2ad31b(0x1fe)]||!this[_0x2ad31b(0x216)])return;this['winstonLogger']['info'](_0x95a651,{'command':_0x32b92a,'details':_0x472a33});}[a346_0x2edcdd(0x20d)](_0x56d7b3,_0x5ec091,_0x5c5d39,_0x1281a5){const _0x40b988=a346_0x2edcdd;if(!this[_0x40b988(0x1fe)]||!this[_0x40b988(0x216)])return;this[_0x40b988(0x216)][_0x40b988(0x211)](_0x40b988(0x1f6),_0x5ec091,{'level':_0x40b988(0x20d),'command':_0x56d7b3,'duration':_0x5c5d39,'details':_0x1281a5});}[a346_0x2edcdd(0x213)](_0x569076,_0x39a49a,_0x4d8db8){const _0x3a899f=a346_0x2edcdd;if(!this[_0x3a899f(0x1fe)]||!this[_0x3a899f(0x216)])return;this[_0x3a899f(0x216)][_0x3a899f(0x213)](_0x39a49a,{'command':_0x569076,'details':_0x4d8db8});}[a346_0x2edcdd(0x1f1)](_0x1cd975,_0x1f9c1b,_0x57a4ed){const _0x56c074=a346_0x2edcdd;if(!this[_0x56c074(0x1fe)]||!this['winstonLogger'])return;this[_0x56c074(0x216)]['warn'](_0x1f9c1b,{'command':_0x1cd975,'details':_0x57a4ed});}async['logTask'](_0x2e5646,_0x3387e7,_0x1504a7){const _0x4b20a2=a346_0x2edcdd,_0x248f82=Date['now']();this['info'](_0x2e5646,_0x4b20a2(0x206)+_0x3387e7);try{const _0x43a63b=await _0x1504a7(),_0xe45ba9=Date['now']()-_0x248f82;return this[_0x4b20a2(0x20d)](_0x2e5646,'Completed:\x20'+_0x3387e7,_0xe45ba9),_0x43a63b;}catch(_0x442e46){const _0x5fc24c=Date[_0x4b20a2(0x1f4)]()-_0x248f82;this['error'](_0x2e5646,_0x4b20a2(0x1fd)+_0x3387e7,{'error':_0x442e46 instanceof Error?_0x442e46['message']:String(_0x442e46),'duration':_0x5fc24c});throw _0x442e46;}}['readLogs'](){const _0x4979c4=a346_0x2edcdd;try{if(!a346_0x4e9bed[_0x4979c4(0x205)](this[_0x4979c4(0x1fe)]))return[];const _0x339fec=a346_0x4e9bed[_0x4979c4(0x215)](this['logFilePath'],_0x4979c4(0x1e9));return _0x339fec['split']('\x0a')[_0x4979c4(0x21a)](_0x5ba301=>_0x5ba301[_0x4979c4(0x217)]())[_0x4979c4(0x212)](_0x34d7a2=>JSON['parse'](_0x34d7a2));}catch(_0x85eab6){return console[_0x4979c4(0x1f1)](_0x4979c4(0x1f8),_0x85eab6),[];}}[a346_0x2edcdd(0x1f3)](){const _0x3555d2=a346_0x2edcdd;try{a346_0x4e9bed[_0x3555d2(0x205)](this[_0x3555d2(0x1fe)])&&a346_0x4e9bed['writeFileSync'](this[_0x3555d2(0x1fe)],'',_0x3555d2(0x1e9));}catch(_0x59774d){console[_0x3555d2(0x1f1)]('Failed\x20to\x20clear\x20logs:',_0x59774d);}}[a346_0x2edcdd(0x1e7)](){return this['winstonLogger'];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e84df,_0x3d4bed){const _0x20492b=a347_0x13f7,_0x284134=_0x3e84df();while(!![]){try{const _0x34448d=-parseInt(_0x20492b(0x6b))/0x1*(-parseInt(_0x20492b(0x70))/0x2)+-parseInt(_0x20492b(0x75))/0x3+-parseInt(_0x20492b(0x6f))/0x4+parseInt(_0x20492b(0x73))/0x5+parseInt(_0x20492b(0x6e))/0x6+parseInt(_0x20492b(0x72))/0x7+parseInt(_0x20492b(0x6a))/0x8;if(_0x34448d===_0x3d4bed)break;else _0x284134['push'](_0x284134['shift']());}catch(_0x569d59){_0x284134['push'](_0x284134['shift']());}}}(a347_0x4e7b,0x8f93f));import{CliErrors}from'../errors.js';function a347_0x4e7b(){const _0x2e5230=['3360363BMRDkj','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','17720ufgUPy','257bSFkuD','isArray','parse','7045074IizUxC','4132752Trnolu','3718KTvctJ','--params\x20must\x20be\x20a\x20JSON\x20object','774816gMXgoL','4882795gMiTqq','validation'];a347_0x4e7b=function(){return _0x2e5230;};return a347_0x4e7b();}function a347_0x13f7(_0x598464,_0x341847){_0x598464=_0x598464-0x6a;const _0x4e7bef=a347_0x4e7b();let _0x13f7e0=_0x4e7bef[_0x598464];return _0x13f7e0;}export function parseJsonParams(_0x485551){const _0x3c12d1=a347_0x13f7;if(!_0x485551)return undefined;let _0x289a18;try{_0x289a18=JSON[_0x3c12d1(0x6d)](_0x485551);}catch{throw CliErrors[_0x3c12d1(0x74)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x485551);}if(!_0x289a18||typeof _0x289a18!==_0x3c12d1(0x77)||Array[_0x3c12d1(0x6c)](_0x289a18))throw CliErrors[_0x3c12d1(0x74)](_0x3c12d1(0x71),_0x3c12d1(0x76));return _0x289a18;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a348_0x32bc(){const _0x10632e=['32070Xemjie','2541771ZnyINf','5734090dIPfRe','6nqbhDQ','12CsMtDa','platform','1GctxqX','766624IBlkCe','7kUoOyM','18849446hjwzsa','39388cfWzOV','2133965lpWTvD'];a348_0x32bc=function(){return _0x10632e;};return a348_0x32bc();}const a348_0x545fa4=a348_0x3ed2;(function(_0x2ac1e4,_0x35e764){const _0x45986b=a348_0x3ed2,_0x591392=_0x2ac1e4();while(!![]){try{const _0xe67a25=-parseInt(_0x45986b(0xee))/0x1*(-parseInt(_0x45986b(0xe6))/0x2)+parseInt(_0x45986b(0xe8))/0x3*(-parseInt(_0x45986b(0xec))/0x4)+-parseInt(_0x45986b(0xe7))/0x5*(parseInt(_0x45986b(0xeb))/0x6)+parseInt(_0x45986b(0xe4))/0x7*(-parseInt(_0x45986b(0xef))/0x8)+-parseInt(_0x45986b(0xe9))/0x9+-parseInt(_0x45986b(0xea))/0xa+parseInt(_0x45986b(0xe5))/0xb;if(_0xe67a25===_0x35e764)break;else _0x591392['push'](_0x591392['shift']());}catch(_0x1f08c6){_0x591392['push'](_0x591392['shift']());}}}(a348_0x32bc,0x4ecc9));export const isWindows=process[a348_0x545fa4(0xed)]==='win32';function a348_0x3ed2(_0x52b57d,_0x4ab40f){_0x52b57d=_0x52b57d-0xe4;const _0x32bce5=a348_0x32bc();let _0x3ed23d=_0x32bce5[_0x52b57d];return _0x3ed23d;}export function resolveNpmBin(_0x2eac3c){return isWindows?_0x2eac3c+'.cmd':_0x2eac3c;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x1c95d7){return new Promise(_0xf73b56=>setTimeout(_0xf73b56,_0x1c95d7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a350_0x19e6(_0x45c1cf,_0x597fbd){_0x45c1cf=_0x45c1cf-0x143;const _0x4fa1ae=a350_0x4fa1();let _0x19e6d4=_0x4fa1ae[_0x45c1cf];return _0x19e6d4;}const a350_0x207cc3=a350_0x19e6;(function(_0x433d1f,_0x41debb){const _0x4f3ada=a350_0x19e6,_0x58b9c3=_0x433d1f();while(!![]){try{const _0x26315a=-parseInt(_0x4f3ada(0x17e))/0x1+-parseInt(_0x4f3ada(0x14e))/0x2*(-parseInt(_0x4f3ada(0x17c))/0x3)+parseInt(_0x4f3ada(0x185))/0x4*(parseInt(_0x4f3ada(0x17f))/0x5)+parseInt(_0x4f3ada(0x15b))/0x6*(parseInt(_0x4f3ada(0x165))/0x7)+-parseInt(_0x4f3ada(0x162))/0x8+parseInt(_0x4f3ada(0x15e))/0x9+parseInt(_0x4f3ada(0x169))/0xa*(-parseInt(_0x4f3ada(0x177))/0xb);if(_0x26315a===_0x41debb)break;else _0x58b9c3['push'](_0x58b9c3['shift']());}catch(_0x280921){_0x58b9c3['push'](_0x58b9c3['shift']());}}}(a350_0x4fa1,0xb816d));import a350_0x5f17f3 from'node:fs';import a350_0x32d7fc from'node:path';function a350_0x4fa1(){const _0x3c82ac=['4633290fVkcIJ','datasetCode','replaceContent','toComponentName','LOVRABET','includes','padStart','getHours','processTemplate','utf8','copyFile','.jsx','name','formatLocalTimestamp','33gbvZlA','slice','default','Template\x20content\x20replacement\x20failed','replace','16311bEFHVD','datasetCode:\x20\x22','1376747oKCQEO','41425sliZgw','.tpl','mkdir','toISOString','message','processDirectory','604GjnSob','writeFile','\x20},','template','isDirectory','.md','toUpperCase','.css','promises','alias:\x20\x22','getSeconds','getMinutes','info','toDisplayTitle','endsWith','pop','538vBTHVq','getMonth','alias','now','toLowerCase','\x0a\x20\x20\x20\x20{\x20','api','getFullYear','success','processFile','.js','readFile','map','18JYzcVh','join','Starting\x20template\x20content\x20replacement','4744440meIsqD','tableName:\x20\x22','error','.scss','4456456UdGcFg','pad','sdk-config','1953168Kfyqdk','charAt','split','readdir'];a350_0x4fa1=function(){return _0x3c82ac;};return a350_0x4fa1();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x28afda){const _0x2e371b=a350_0x19e6;return String(_0x28afda)[_0x2e371b(0x16f)](0x2,'0');}static[a350_0x207cc3(0x176)](_0xfb1da2){const _0x8605c1=a350_0x207cc3,_0xabae53=_0xfb1da2[_0x8605c1(0x155)](),_0x418393=this[_0x8605c1(0x163)](_0xfb1da2[_0x8605c1(0x14f)]()+0x1),_0x32c623=this['pad'](_0xfb1da2['getDate']()),_0x24ad76=this[_0x8605c1(0x163)](_0xfb1da2[_0x8605c1(0x170)]()),_0x5291f3=this[_0x8605c1(0x163)](_0xfb1da2[_0x8605c1(0x149)]()),_0x81f59f=this[_0x8605c1(0x163)](_0xfb1da2[_0x8605c1(0x148)]());return{'createdAt':_0xabae53+'-'+_0x418393+'-'+_0x32c623+'\x20'+_0x24ad76+':'+_0x5291f3+':'+_0x81f59f,'createdDate':_0xabae53+'-'+_0x418393+'-'+_0x32c623,'createdTime':_0x24ad76+':'+_0x5291f3+':'+_0x81f59f};}static[a350_0x207cc3(0x16c)](_0x2cfe9f){const _0x3ab03b=a350_0x207cc3,_0x2615e6=_0x2cfe9f[_0x3ab03b(0x167)]('/')['pop']()||_0x2cfe9f;return _0x2615e6[_0x3ab03b(0x167)]('-')[_0x3ab03b(0x15a)](_0x2ed18e=>_0x2ed18e[_0x3ab03b(0x166)](0x0)[_0x3ab03b(0x144)]()+_0x2ed18e[_0x3ab03b(0x178)](0x1)['toLowerCase']())[_0x3ab03b(0x15c)]('');}static[a350_0x207cc3(0x14b)](_0x1682d5){const _0x4397d2=a350_0x207cc3,_0x4441b4=_0x1682d5[_0x4397d2(0x167)]('/')[_0x4397d2(0x14d)]()||_0x1682d5;return _0x4441b4[_0x4397d2(0x167)]('-')[_0x4397d2(0x15a)](_0x8a502b=>_0x8a502b[_0x4397d2(0x166)](0x0)[_0x4397d2(0x144)]()+_0x8a502b[_0x4397d2(0x178)](0x1)['toLowerCase']())[_0x4397d2(0x15c)]('\x20');}static[a350_0x207cc3(0x16b)](_0x3b3d23,_0x22bf29,_0x52d3e4){const _0x5b148c=a350_0x207cc3,_0xe90136=this[_0x5b148c(0x16c)](_0x22bf29),_0x46d66c=this['toDisplayTitle'](_0x22bf29),{createdAt:_0x5edc75,createdDate:_0x44795e,createdTime:_0x551f8f}=this[_0x5b148c(0x176)](new Date());let _0x409000=_0x3b3d23[_0x5b148c(0x17b)](/\{CliVersion\}/g,CLI_VERSION)[_0x5b148c(0x17b)](/\{ComponentName\}/g,_0xe90136)[_0x5b148c(0x17b)](/\{DisplayTitle\}/g,_0x46d66c)[_0x5b148c(0x17b)](/\{PageName\}/g,_0x22bf29)[_0x5b148c(0x17b)](/\{TemplateName\}/g,_0x52d3e4)[_0x5b148c(0x17b)](/\{CreatedAt\}/g,_0x5edc75)[_0x5b148c(0x17b)](/\{CreatedDate\}/g,_0x44795e)[_0x5b148c(0x17b)](/\{CreatedTime\}/g,_0x551f8f);return _0x409000;}static['replaceApiContent'](_0x200226,_0x307c9d,_0x4000ec,_0xffb4e5,_0x15fc1b,_0x450ce2,_0x39cb03,_0xaf0a9e,_0x421554){const _0x5f5bdf=a350_0x207cc3,_0x346bb9=new Date(),_0x4192b0=_0x346bb9[_0x5f5bdf(0x182)](),_0x45682e=_0x4000ec[_0x5f5bdf(0x15a)](_0x4c0f8f=>{const _0x39ef6f=_0x5f5bdf,_0x5c611b=[_0x39ef6f(0x17d)+_0x4c0f8f[_0x39ef6f(0x16a)]+'\x22',_0x39ef6f(0x15f)+_0x4c0f8f['tableName']+'\x22','name:\x20\x22'+_0x4c0f8f[_0x39ef6f(0x175)]+'\x22'];return _0x4c0f8f[_0x39ef6f(0x150)]&&_0x5c611b['push'](_0x39ef6f(0x147)+_0x4c0f8f[_0x39ef6f(0x150)]+'\x22'),_0x39ef6f(0x153)+_0x5c611b[_0x39ef6f(0x15c)](',\x20')+_0x39ef6f(0x187);})[_0x5f5bdf(0x15c)](''),_0x4c1dfc=_0xffb4e5||_0x4000ec[0x0]?.['alias']||'YourModel';let _0xc900d6=_0x200226[_0x5f5bdf(0x17b)](/\{AppCode\}/g,_0x307c9d)['replace'](/\{ModelConfigs\}/g,_0x45682e)['replace'](/\{ExampleModelName\}/g,_0x4c1dfc)[_0x5f5bdf(0x17b)](/\{ApiFileName\}/g,_0x15fc1b||_0x5f5bdf(0x154))[_0x5f5bdf(0x17b)](/\{ConfigName\}/g,_0x450ce2||_0x5f5bdf(0x179))[_0x5f5bdf(0x17b)](/\{ClientConfigParam\}/g,_0x39cb03||'')[_0x5f5bdf(0x17b)](/\{SdkConfigFileName\}/g,_0x421554||_0x5f5bdf(0x164))[_0x5f5bdf(0x17b)](/\{VarPrefix\}/g,_0xaf0a9e||_0x5f5bdf(0x16d))[_0x5f5bdf(0x17b)](/\{CreatedAt\}/g,_0x4192b0);return _0xc900d6;}static async[a350_0x207cc3(0x171)](_0x210dd6,_0x19650e,_0x5e92f3,_0x26788e,_0x333668=!![]){const _0x235189=a350_0x207cc3,_0x4ae238=Date[_0x235189(0x151)]();try{_0x333668&&logger[_0x235189(0x14a)](_0x235189(0x188),_0x235189(0x15d),{'templatePath':_0x210dd6,'targetPath':_0x19650e,'pageName':_0x5e92f3,'templateName':_0x26788e});await a350_0x5f17f3['promises'][_0x235189(0x181)](_0x19650e,{'recursive':!![]}),await this['processDirectory'](_0x210dd6,_0x19650e,_0x5e92f3,_0x26788e);if(_0x333668){const _0xa88b22=Date[_0x235189(0x151)]()-_0x4ae238;logger[_0x235189(0x156)](_0x235189(0x188),'Template\x20content\x20replacement\x20completed',_0xa88b22,{'pageName':_0x5e92f3,'templateName':_0x26788e});}}catch(_0x2068c1){if(_0x333668){const _0x3220aa=Date['now']()-_0x4ae238;logger[_0x235189(0x160)]('template',_0x235189(0x17a),{'templatePath':_0x210dd6,'targetPath':_0x19650e,'pageName':_0x5e92f3,'templateName':_0x26788e,'error':_0x2068c1 instanceof Error?_0x2068c1[_0x235189(0x183)]:String(_0x2068c1),'duration':_0x3220aa});}throw _0x2068c1;}}static async[a350_0x207cc3(0x184)](_0x30458a,_0x2085dc,_0x8d714b,_0x3f507c){const _0x13bfaf=a350_0x207cc3,_0x34d1d6=await a350_0x5f17f3[_0x13bfaf(0x146)][_0x13bfaf(0x168)](_0x30458a,{'withFileTypes':!![]});for(const _0x54cf43 of _0x34d1d6){const _0xf6e9ea=a350_0x32d7fc[_0x13bfaf(0x15c)](_0x30458a,_0x54cf43[_0x13bfaf(0x175)]);let _0x462173=a350_0x32d7fc[_0x13bfaf(0x15c)](_0x2085dc,_0x54cf43[_0x13bfaf(0x175)]);_0x54cf43[_0x13bfaf(0x175)]['endsWith'](_0x13bfaf(0x180))&&(_0x462173=a350_0x32d7fc[_0x13bfaf(0x15c)](_0x2085dc,_0x54cf43[_0x13bfaf(0x175)]['replace'](/\.tpl$/,'')));if(_0x54cf43[_0x13bfaf(0x189)]())await a350_0x5f17f3[_0x13bfaf(0x146)]['mkdir'](_0x462173,{'recursive':!![]}),await this[_0x13bfaf(0x184)](_0xf6e9ea,_0x462173,_0x8d714b,_0x3f507c);else _0x54cf43['isFile']()&&await this['processFile'](_0xf6e9ea,_0x462173,_0x8d714b,_0x3f507c);}}static async[a350_0x207cc3(0x157)](_0x281e9b,_0x347eed,_0x3d048b,_0x5915d5){const _0x498816=a350_0x207cc3,_0x2cf240=a350_0x32d7fc['extname'](_0x281e9b)[_0x498816(0x152)]();_0x281e9b[_0x498816(0x14c)]('.tpl')&&(_0x347eed=_0x347eed[_0x498816(0x17b)](/\.tpl$/,''));const _0x2f1a43=['.tsx','.ts',_0x498816(0x174),_0x498816(0x158),'.json',_0x498816(0x143),_0x498816(0x145),_0x498816(0x161),_0x498816(0x180)];if(_0x2f1a43[_0x498816(0x16e)](_0x2cf240)||_0x281e9b[_0x498816(0x14c)](_0x498816(0x180))){const _0x13d9bf=await a350_0x5f17f3['promises'][_0x498816(0x159)](_0x281e9b,_0x498816(0x172)),_0x1d7375=this[_0x498816(0x16b)](_0x13d9bf,_0x3d048b,_0x5915d5);await a350_0x5f17f3[_0x498816(0x146)][_0x498816(0x186)](_0x347eed,_0x1d7375,'utf8');}else await a350_0x5f17f3[_0x498816(0x146)][_0x498816(0x173)](_0x281e9b,_0x347eed);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1db30d,_0x5d617a){const _0xcfa396=a351_0x2cce,_0x3c39e5=_0x1db30d();while(!![]){try{const _0x48a7f8=parseInt(_0xcfa396(0x131))/0x1*(-parseInt(_0xcfa396(0x147))/0x2)+-parseInt(_0xcfa396(0x129))/0x3+-parseInt(_0xcfa396(0x12c))/0x4*(-parseInt(_0xcfa396(0x13f))/0x5)+-parseInt(_0xcfa396(0x13c))/0x6*(-parseInt(_0xcfa396(0x132))/0x7)+-parseInt(_0xcfa396(0x143))/0x8*(parseInt(_0xcfa396(0x128))/0x9)+-parseInt(_0xcfa396(0x139))/0xa*(-parseInt(_0xcfa396(0x135))/0xb)+-parseInt(_0xcfa396(0x136))/0xc*(parseInt(_0xcfa396(0x138))/0xd);if(_0x48a7f8===_0x5d617a)break;else _0x3c39e5['push'](_0x3c39e5['shift']());}catch(_0x10de9c){_0x3c39e5['push'](_0x3c39e5['shift']());}}}(a351_0x4ca2,0x3c9d0));import{mkdir,readFile,writeFile}from'node:fs/promises';function a351_0x2cce(_0x1e438b,_0x5a96d0){_0x1e438b=_0x1e438b-0x127;const _0x4ca2f3=a351_0x4ca2();let _0x2ccefd=_0x4ca2f3[_0x1e438b];return _0x2ccefd;}import{homedir}from'node:os';import{dirname,join}from'node:path';import a351_0xaefb0e from'semver';function a351_0x4ca2(){const _0x297dd0=['24299kiJAVL','468276SaOILt','checkedAt','52LdthJa','2110LEaImS','lastNotifiedAt','rabetbase-cli','6Yrfazx','/v/','.cache','5kFbRpD','trim','stableVersion','object','5336BIAcbT','\x20available,\x20current\x20','utf8','stringify','2054ubYFMn','number','387feFgpQ','454572ZajhdJ','lastNotifiedVersion','gte','183784WfsuGY','valid',',\x20run:\x20','update-check.json','yes','181jXAseU','1808877nJAuNq','\x20update','https://www.npmjs.com/package/'];a351_0x4ca2=function(){return _0x297dd0;};return a351_0x4ca2();}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 _0x441c27=a351_0x2cce,_0x2ef6cc=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x441c27(0x140)]()['toLowerCase']();return _0x2ef6cc==='1'||_0x2ef6cc==='true'||_0x2ef6cc===_0x441c27(0x130);}function cacheRoot(){const _0x1b705e=a351_0x2cce;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1b705e(0x13e));}export function getUpdateNoticeCachePath(){const _0x387fad=a351_0x2cce;return join(cacheRoot(),_0x387fad(0x13b),_0x387fad(0x12f));}async function readUpdateNoticeCache(){const _0x4ebaed=a351_0x2cce;try{const _0x16cd3a=await readFile(getUpdateNoticeCachePath(),_0x4ebaed(0x145)),_0x473039=JSON['parse'](_0x16cd3a);if(!_0x473039||typeof _0x473039!==_0x4ebaed(0x142))return{};return _0x473039;}catch{return{};}}async function writeUpdateNoticeCache(_0xa6b9f3){const _0x13c628=a351_0x2cce;try{const _0x21417e=getUpdateNoticeCachePath();await mkdir(dirname(_0x21417e),{'recursive':!![]}),await writeFile(_0x21417e,JSON[_0x13c628(0x146)](_0xa6b9f3,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x1fa795,_0x282e5c){const _0x518532=a351_0x2cce;return typeof _0x1fa795[_0x518532(0x137)]==='number'&&_0x282e5c-_0x1fa795[_0x518532(0x137)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4d0207,_0xdebcb6,_0x12cd88){const _0x4dc0c0=a351_0x2cce;return _0x4d0207[_0x4dc0c0(0x12a)]===_0xdebcb6&&typeof _0x4d0207['lastNotifiedAt']===_0x4dc0c0(0x127)&&_0x12cd88-_0x4d0207[_0x4dc0c0(0x13a)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4075d6){const _0x369c95=a351_0x2cce;return _0x369c95(0x134)+NPM_PACKAGE_NAME+_0x369c95(0x13d)+_0x4075d6;}export async function resolveLatestUpdateNotice(){const _0x2a8e56=a351_0x2cce;if(isUpdateNoticeDisabled())return null;try{const _0x2dacfe=Date['now'](),_0xe91b6e=getCliVersion(),_0x2bcb1b=await readUpdateNoticeCache();let _0x43ad85=isFreshCheck(_0x2bcb1b,_0x2dacfe)?_0x2bcb1b['latest']?.[_0x2a8e56(0x140)]():undefined;if(!_0x43ad85&&!isFreshCheck(_0x2bcb1b,_0x2dacfe)){const _0x45c9d6=await getCliVersionPolicy();_0x43ad85=_0x45c9d6?.[_0x2a8e56(0x141)]?.[_0x2a8e56(0x140)]()||undefined,await writeUpdateNoticeCache({..._0x2bcb1b,'checkedAt':_0x2dacfe,'latest':_0x43ad85,'failed':!_0x43ad85});}if(!_0x43ad85||!a351_0xaefb0e[_0x2a8e56(0x12d)](_0xe91b6e)||!a351_0xaefb0e['valid'](_0x43ad85))return null;if(a351_0xaefb0e[_0x2a8e56(0x12b)](_0xe91b6e,_0x43ad85))return null;if(isRecentlyNotified(_0x2bcb1b,_0x43ad85,_0x2dacfe))return null;const _0xcbf0ef=CLI_BIN_NAME+_0x2a8e56(0x133);return await writeUpdateNoticeCache({..._0x2bcb1b,'checkedAt':isFreshCheck(_0x2bcb1b,_0x2dacfe)?_0x2bcb1b[_0x2a8e56(0x137)]:_0x2dacfe,'latest':_0x43ad85,'failed':![],'lastNotifiedVersion':_0x43ad85,'lastNotifiedAt':_0x2dacfe}),{'command':_0xcbf0ef,'current':_0xe91b6e,'latest':_0x43ad85,'url':buildNpmVersionUrl(_0x43ad85),'message':CLI_BIN_NAME+'\x20'+_0x43ad85+_0x2a8e56(0x144)+_0xe91b6e+_0x2a8e56(0x12e)+_0xcbf0ef};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x441d6d,_0x1a526a){var _0x5a5741=a352_0x42fe,_0x5c503d=_0x441d6d();while(!![]){try{var _0xbda845=parseInt(_0x5a5741(0x1e7))/0x1*(-parseInt(_0x5a5741(0x1e2))/0x2)+-parseInt(_0x5a5741(0x1e6))/0x3*(parseInt(_0x5a5741(0x1e9))/0x4)+-parseInt(_0x5a5741(0x1ed))/0x5+parseInt(_0x5a5741(0x1e5))/0x6*(parseInt(_0x5a5741(0x1ec))/0x7)+parseInt(_0x5a5741(0x1e4))/0x8*(-parseInt(_0x5a5741(0x1ea))/0x9)+parseInt(_0x5a5741(0x1e8))/0xa+parseInt(_0x5a5741(0x1e3))/0xb*(parseInt(_0x5a5741(0x1eb))/0xc);if(_0xbda845===_0x1a526a)break;else _0x5c503d['push'](_0x5c503d['shift']());}catch(_0x238b6a){_0x5c503d['push'](_0x5c503d['shift']());}}}(a352_0x5a80,0xbdd3e));function a352_0x5a80(){var _0x3320d8=['434060AZrsML','8271aoHstk','7339824uywwFP','21woTALX','6795390giVsSA','1711066UUGWvM','44fSUlGT','8824IBlaZI','2757012yMNgjZ','15CoSHAc','1SdJONZ','7232630qWOSBI'];a352_0x5a80=function(){return _0x3320d8;};return a352_0x5a80();}function a352_0x42fe(_0x30ed70,_0x2d54f9){_0x30ed70=_0x30ed70-0x1e2;var _0x5a8050=a352_0x5a80();var _0x42fe6a=_0x5a8050[_0x30ed70];return _0x42fe6a;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b7e89,_0x385e25){var _0xefd02e=a353_0x4dff,_0x1d1594=_0x1b7e89();while(!![]){try{var _0x4deb50=parseInt(_0xefd02e(0x1ca))/0x1*(-parseInt(_0xefd02e(0x1cd))/0x2)+parseInt(_0xefd02e(0x1cb))/0x3+-parseInt(_0xefd02e(0x1c6))/0x4*(-parseInt(_0xefd02e(0x1c8))/0x5)+parseInt(_0xefd02e(0x1cc))/0x6+-parseInt(_0xefd02e(0x1c3))/0x7+-parseInt(_0xefd02e(0x1c4))/0x8*(parseInt(_0xefd02e(0x1c7))/0x9)+-parseInt(_0xefd02e(0x1c5))/0xa*(-parseInt(_0xefd02e(0x1c9))/0xb);if(_0x4deb50===_0x385e25)break;else _0x1d1594['push'](_0x1d1594['shift']());}catch(_0x14cbb0){_0x1d1594['push'](_0x1d1594['shift']());}}}(a353_0x5df9,0x40769));function a353_0x5df9(){var _0x1b83ff=['10noRyrz','1628FjwgKS','912393ISZMhR','2410AjfSBR','4227861nyjAEm','9CssVDu','356646gKMmCm','60036gMgHxb','25574waxGfM','1602384CJccrt','8hzNkop'];a353_0x5df9=function(){return _0x1b83ff;};return a353_0x5df9();}function a353_0x4dff(_0x430b96,_0x2c48e5){_0x430b96=_0x430b96-0x1c3;var _0x5df934=a353_0x5df9();var _0x4dffd4=_0x5df934[_0x430b96];return _0x4dffd4;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x122c97,_0x1ddcb6){setActiveCookie(_0x122c97);try{return await _0x1ddcb6();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a354_0x2f65(_0x9db18b,_0x50f7d9){_0x9db18b=_0x9db18b-0x163;var _0x57137b=a354_0x5713();var _0x2f6503=_0x57137b[_0x9db18b];return _0x2f6503;}(function(_0x535993,_0x8a5c73){var _0x5dc40b=a354_0x2f65,_0x1f99c1=_0x535993();while(!![]){try{var _0x2ccb9d=parseInt(_0x5dc40b(0x16b))/0x1*(-parseInt(_0x5dc40b(0x164))/0x2)+-parseInt(_0x5dc40b(0x16d))/0x3+-parseInt(_0x5dc40b(0x168))/0x4+parseInt(_0x5dc40b(0x16c))/0x5*(-parseInt(_0x5dc40b(0x167))/0x6)+-parseInt(_0x5dc40b(0x166))/0x7+-parseInt(_0x5dc40b(0x16a))/0x8*(-parseInt(_0x5dc40b(0x16e))/0x9)+parseInt(_0x5dc40b(0x163))/0xa*(parseInt(_0x5dc40b(0x169))/0xb);if(_0x2ccb9d===_0x8a5c73)break;else _0x1f99c1['push'](_0x1f99c1['shift']());}catch(_0x97a9f8){_0x1f99c1['push'](_0x1f99c1['shift']());}}}(a354_0x5713,0x251b7));export function writeCliSideChannelLine(_0x80417c){var _0x35b84a=a354_0x2f65;process['stderr'][_0x35b84a(0x165)](_0x80417c+'\x0a');}function a354_0x5713(){var _0x52edf1=['787812fVRygp','33fDcJgB','2156536dyNDou','1PxAFWK','1110jwWrOa','167130Czcdgj','9tpnsbP','2286150HBtuEH','383986udGQXr','write','2073127XcBlJu','1692eDkIUP'];a354_0x5713=function(){return _0x52edf1;};return a354_0x5713();}
|
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.4",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, Backend Function, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rabetbase
|
|
3
|
-
version: 2.5.4-beta.
|
|
3
|
+
version: 2.5.4-beta.4
|
|
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,7 +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` 核对
|
|
341
|
+
| 绑定当前用户的飞书账号 | [`rabetbase user-account feishu-bind`](references/rabetbase-user-account.md) | `write`;先 `--dry-run` 核对 union_id;不需要 appCode;仅声明绑定,不验证账号归属 |
|
|
342
342
|
| 绑定当前用户的钉钉沙箱账号 | [`rabetbase user-account dingding-sandbox-bind`](references/rabetbase-user-account.md) | `write`;先 `--dry-run` 核对 ID,正式执行不要求 `--yes`;不需要 appCode |
|
|
343
343
|
| 诊断配置问题 | [`rabetbase doctor`](references/rabetbase-doctor.md) | Built-in Skill 一致性、合并配置、各侧 JSON 语法、域名、认证状态 |
|
|
344
344
|
| 上报平台问题 | [`rabetbase issue report`](references/rabetbase-issue-report.md) | 由 Skill 组织完整客观事实,禁止代替平台侧做根因判断或方案设计 |
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
## 飞书绑定
|
|
6
6
|
|
|
7
|
-
先确认当前研发登录用户与飞书
|
|
7
|
+
先确认当前研发登录用户与飞书 union_id,再预演并显式执行:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
rabetbase user-account feishu-bind --
|
|
11
|
-
rabetbase user-account feishu-bind --
|
|
10
|
+
rabetbase user-account feishu-bind --union-id on_example_001 --dry-run --format compress
|
|
11
|
+
rabetbase user-account feishu-bind --union-id on_example_001 --format compress
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
- 绑定对象由当前登录会话确定,不需要 appCode,不接受代其他平台用户绑定的 userId,也不需要 appId 或 secret。
|
|
15
|
-
-
|
|
16
|
-
- CLI 去除首尾空白后按 `^
|
|
15
|
+
- 使用与平台飞书应用相同开发者范围内的 union_id;不要传入 open_id 或 user_id。
|
|
16
|
+
- CLI 去除首尾空白后按 `^on_[A-Za-z0-9_-]+$` 校验。该绑定是用户声明,格式合法不代表已验证账号归属,也不保证账号可以收到消息。
|
|
17
17
|
- 普通 `write` 操作;dry-run 不发送绑定请求,`after.bound = true` 只是计划目标。
|
|
18
|
-
- 正式执行调用 `POST /smartapi/user-accounts/cli/feishu/bind`,请求体只含 `{
|
|
19
|
-
- 结果中 `selector.providerId = "feishu"`、`selector.
|
|
20
|
-
- 网络超时、响应丢失或成功响应无法解码时,结果未知,不自动重试。先通过平台核实当前绑定,再人工决定是否使用同一
|
|
18
|
+
- 正式执行调用 `POST /smartapi/user-accounts/cli/feishu/bind`,请求体只含 `{unionId}`;仅服务端明确返回 `success: true, data: true` 才确认成功。
|
|
19
|
+
- 结果中 `selector.providerId = "feishu"`、`selector.unionId` 为去除首尾空白后的输入,`before: null` 表示没有绑定查询能力,不代表旧绑定不存在。
|
|
20
|
+
- 网络超时、响应丢失或成功响应无法解码时,结果未知,不自动重试。先通过平台核实当前绑定,再人工决定是否使用同一 union_id 重试。
|
|
21
21
|
- 不提供绑定查询或解绑命令;不承诺不同用户并发绑定同一 ID 的全局唯一性。
|
|
22
22
|
|
|
23
23
|
## 钉钉沙箱命令
|
|
@@ -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.4",
|
|
6
|
+
"skillVersion": "2.5.4-beta.4",
|
|
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": "e1381f35f9285560710dd0866fe6a155b9c0fed7ed937c8da8f723eafd12eaa1"
|
|
154
154
|
}
|