@lovrabet/rabetbase-cli 2.5.4-beta.5 → 2.5.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/detail.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/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.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/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.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.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 +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a351_0x411139=a351_0x4009;function a351_0x34ce(){const _0xe073e0=['yellow','clearLogs','1616SSWwkF','readLogs','126007zKGxHL','getWinstonInstance','toISOString','split','addColors','currentRawCommand','log','setRawCommand','info','1046225HCsFMy','17028gaQiJH','message','mkdirSync','initWinstonLogger','winstonLogger','200051MUhvsC','createLogger','existsSync','now','green','Failed\x20to\x20read\x20logs:','File','stringify','unknown','details','clear','Completed:\x20','148032PXYIQd','923052nOPvsL','combine','parse','transports','logFilePath','red','setLogPath','warn','filter','dirname','error','success','command','12xDXfzF','Starting:\x20','duration','rawCommand','level','utf8','errors','Failed:\x20','logTask','join','timestamp','format','115898FIGeSy'];a351_0x34ce=function(){return _0xe073e0;};return a351_0x34ce();}(function(_0x15aa64,_0x2018b0){const _0x136257=a351_0x4009,_0x30a2b5=_0x15aa64();while(!![]){try{const _0x119532=parseInt(_0x136257(0xbd))/0x1+parseInt(_0x136257(0xa9))/0x2+-parseInt(_0x136257(0x9d))/0x3*(parseInt(_0x136257(0x8f))/0x4)+-parseInt(_0x136257(0xb7))/0x5+-parseInt(_0x136257(0x90))/0x6+parseInt(_0x136257(0xae))/0x7+-parseInt(_0x136257(0xac))/0x8*(-parseInt(_0x136257(0xb8))/0x9);if(_0x119532===_0x2018b0)break;else _0x30a2b5['push'](_0x30a2b5['shift']());}catch(_0x3603ec){_0x30a2b5['push'](_0x30a2b5['shift']());}}}(a351_0x34ce,0x23e7a));import a351_0x338f57 from'winston';import a351_0x33af6e from'node:fs';function a351_0x4009(_0x4b0f73,_0x308699){_0x4b0f73=_0x4b0f73-0x8b;const _0x34ce36=a351_0x34ce();let _0x40094d=_0x34ce36[_0x4b0f73];return _0x40094d;}import a351_0x4fe288 from'node:path';class Logger{[a351_0x411139(0xbc)];['logFilePath'];[a351_0x411139(0xb3)]='';constructor(){const _0x980ba=a351_0x411139;this[_0x980ba(0x94)]='';}[a351_0x411139(0xb5)](_0x1c02bf){const _0x4f563a=a351_0x411139;this[_0x4f563a(0xb3)]=_0x1c02bf;}['initWinstonLogger'](){const _0x403b4b=a351_0x411139,_0x27cf1c=a351_0x4fe288[_0x403b4b(0x99)](this['logFilePath']);!a351_0x33af6e[_0x403b4b(0xbf)](_0x27cf1c)&&a351_0x33af6e[_0x403b4b(0xba)](_0x27cf1c,{'recursive':!![]});const _0x4c9eef=a351_0x338f57[_0x403b4b(0xa8)][_0x403b4b(0x91)](a351_0x338f57['format']['timestamp'](),a351_0x338f57[_0x403b4b(0xa8)][_0x403b4b(0xa3)]({'stack':!![]}),a351_0x338f57[_0x403b4b(0xa8)]['printf'](_0x178fd8=>{const _0x3d0774=_0x403b4b,_0xbf02d0={'timestamp':_0x178fd8[_0x3d0774(0xa7)]||new Date()[_0x3d0774(0xb0)](),'level':_0x178fd8[_0x3d0774(0xa1)]||'info','command':_0x178fd8[_0x3d0774(0x9c)]||_0x3d0774(0x8b),'rawCommand':_0x178fd8[_0x3d0774(0xa0)]||this[_0x3d0774(0xb3)]||undefined,'message':_0x178fd8[_0x3d0774(0xb9)]||'','duration':_0x178fd8[_0x3d0774(0x9f)]||undefined,'details':_0x178fd8[_0x3d0774(0x8c)]||undefined};return JSON[_0x3d0774(0xc4)](_0xbf02d0);}));this[_0x403b4b(0xbc)]=a351_0x338f57[_0x403b4b(0xbe)]({'level':_0x403b4b(0xb6),'format':_0x4c9eef,'transports':[new a351_0x338f57[(_0x403b4b(0x93))][(_0x403b4b(0xc3))]({'filename':this[_0x403b4b(0x94)],'level':_0x403b4b(0xb6)})],'silent':![]}),a351_0x338f57[_0x403b4b(0xb2)]({'success':_0x403b4b(0xc1),'error':_0x403b4b(0x95),'warn':_0x403b4b(0xaa),'info':'blue'});}[a351_0x411139(0x96)](_0x55264c){const _0x14b9a9=a351_0x411139;this[_0x14b9a9(0x94)]=a351_0x4fe288[_0x14b9a9(0xa6)](_0x55264c,'.lovrabet.log'),this['winstonLogger']&&this['winstonLogger'][_0x14b9a9(0x8d)](),this[_0x14b9a9(0xbb)]();}[a351_0x411139(0xb6)](_0x2653ad,_0x4d4dca,_0x18b201){const _0x25d694=a351_0x411139;if(!this[_0x25d694(0x94)]||!this[_0x25d694(0xbc)])return;this[_0x25d694(0xbc)][_0x25d694(0xb6)](_0x4d4dca,{'command':_0x2653ad,'details':_0x18b201});}[a351_0x411139(0x9b)](_0x275b9c,_0x2e3922,_0x49b2e6,_0x2060fa){const _0x439f3e=a351_0x411139;if(!this[_0x439f3e(0x94)]||!this[_0x439f3e(0xbc)])return;this['winstonLogger'][_0x439f3e(0xb4)]('info',_0x2e3922,{'level':_0x439f3e(0x9b),'command':_0x275b9c,'duration':_0x49b2e6,'details':_0x2060fa});}[a351_0x411139(0x9a)](_0x41e0ab,_0x13cfa1,_0x146100){const _0x192adc=a351_0x411139;if(!this[_0x192adc(0x94)]||!this[_0x192adc(0xbc)])return;this['winstonLogger'][_0x192adc(0x9a)](_0x13cfa1,{'command':_0x41e0ab,'details':_0x146100});}[a351_0x411139(0x97)](_0xac5118,_0x2bbf40,_0x4fbf7e){const _0x3d39ee=a351_0x411139;if(!this[_0x3d39ee(0x94)]||!this[_0x3d39ee(0xbc)])return;this['winstonLogger'][_0x3d39ee(0x97)](_0x2bbf40,{'command':_0xac5118,'details':_0x4fbf7e});}async[a351_0x411139(0xa5)](_0x414fbd,_0x312497,_0x17a647){const _0x2c2230=a351_0x411139,_0x2e0150=Date[_0x2c2230(0xc0)]();this[_0x2c2230(0xb6)](_0x414fbd,_0x2c2230(0x9e)+_0x312497);try{const _0x5c9097=await _0x17a647(),_0x16c0ef=Date[_0x2c2230(0xc0)]()-_0x2e0150;return this[_0x2c2230(0x9b)](_0x414fbd,_0x2c2230(0x8e)+_0x312497,_0x16c0ef),_0x5c9097;}catch(_0x25e9a0){const _0x54ac9f=Date['now']()-_0x2e0150;this['error'](_0x414fbd,_0x2c2230(0xa4)+_0x312497,{'error':_0x25e9a0 instanceof Error?_0x25e9a0[_0x2c2230(0xb9)]:String(_0x25e9a0),'duration':_0x54ac9f});throw _0x25e9a0;}}[a351_0x411139(0xad)](){const _0x2082ed=a351_0x411139;try{if(!a351_0x33af6e[_0x2082ed(0xbf)](this[_0x2082ed(0x94)]))return[];const _0x54f0e2=a351_0x33af6e['readFileSync'](this[_0x2082ed(0x94)],_0x2082ed(0xa2));return _0x54f0e2[_0x2082ed(0xb1)]('\x0a')[_0x2082ed(0x98)](_0x3684b4=>_0x3684b4['trim']())['map'](_0x17c0f7=>JSON[_0x2082ed(0x92)](_0x17c0f7));}catch(_0xf50325){return console[_0x2082ed(0x97)](_0x2082ed(0xc2),_0xf50325),[];}}[a351_0x411139(0xab)](){const _0x5194e9=a351_0x411139;try{a351_0x33af6e[_0x5194e9(0xbf)](this['logFilePath'])&&a351_0x33af6e['writeFileSync'](this[_0x5194e9(0x94)],'','utf8');}catch(_0x4711db){console['warn']('Failed\x20to\x20clear\x20logs:',_0x4711db);}}[a351_0x411139(0xaf)](){return this['winstonLogger'];}}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a352_0x33b8(){const _0x1a4af2=['validation','6XPkrhF','130duiPVh','14ClLqjF','2079900KgKfSH','349709zakFmb','Invalid\x20JSON\x20for\x20--params:\x20','47105RkbLUH','--params\x20must\x20be\x20a\x20JSON\x20object','904204PHSSKb','parse','object','1716472BJyRNe','2194QZdHxe','657ydmhXh','20317uzWzfA'];a352_0x33b8=function(){return _0x1a4af2;};return a352_0x33b8();}(function(_0x1ef215,_0x5b0210){const _0x7d1967=a352_0x1906,_0x2c5b14=_0x1ef215();while(!![]){try{const _0x363bbe=-parseInt(_0x7d1967(0x1ce))/0x1+parseInt(_0x7d1967(0x1d6))/0x2*(parseInt(_0x7d1967(0x1d7))/0x3)+-parseInt(_0x7d1967(0x1d2))/0x4+-parseInt(_0x7d1967(0x1d0))/0x5*(parseInt(_0x7d1967(0x1da))/0x6)+-parseInt(_0x7d1967(0x1cc))/0x7*(-parseInt(_0x7d1967(0x1d5))/0x8)+parseInt(_0x7d1967(0x1cd))/0x9+parseInt(_0x7d1967(0x1db))/0xa*(-parseInt(_0x7d1967(0x1d8))/0xb);if(_0x363bbe===_0x5b0210)break;else _0x2c5b14['push'](_0x2c5b14['shift']());}catch(_0x408bb9){_0x2c5b14['push'](_0x2c5b14['shift']());}}}(a352_0x33b8,0x471c5));function a352_0x1906(_0xc4f973,_0x452082){_0xc4f973=_0xc4f973-0x1cc;const _0x33b81c=a352_0x33b8();let _0x190654=_0x33b81c[_0xc4f973];return _0x190654;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x158cb0){const _0x12ed92=a352_0x1906;if(!_0x158cb0)return undefined;let _0x46447e;try{_0x46447e=JSON[_0x12ed92(0x1d3)](_0x158cb0);}catch{throw CliErrors[_0x12ed92(0x1d9)](_0x12ed92(0x1cf)+_0x158cb0);}if(!_0x46447e||typeof _0x46447e!==_0x12ed92(0x1d4)||Array['isArray'](_0x46447e))throw CliErrors['validation'](_0x12ed92(0x1d1),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x46447e;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a353_0x4da725=a353_0x8312;(function(_0x44fbb6,_0x49bb46){const _0x9fd873=a353_0x8312,_0x2f8636=_0x44fbb6();while(!![]){try{const _0x5e808d=parseInt(_0x9fd873(0x19d))/0x1+-parseInt(_0x9fd873(0x19e))/0x2+-parseInt(_0x9fd873(0x19f))/0x3+-parseInt(_0x9fd873(0x1a1))/0x4*(parseInt(_0x9fd873(0x1a3))/0x5)+-parseInt(_0x9fd873(0x1a0))/0x6+-parseInt(_0x9fd873(0x1a2))/0x7+parseInt(_0x9fd873(0x19c))/0x8;if(_0x5e808d===_0x49bb46)break;else _0x2f8636['push'](_0x2f8636['shift']());}catch(_0x1aac06){_0x2f8636['push'](_0x2f8636['shift']());}}}(a353_0x827a,0x21f55));function a353_0x8312(_0x2ec538,_0x30daca){_0x2ec538=_0x2ec538-0x19c;const _0x827a47=a353_0x827a();let _0x8312c1=_0x827a47[_0x2ec538];return _0x8312c1;}export const isWindows=process[a353_0x4da725(0x1a6)]===a353_0x4da725(0x1a5);function a353_0x827a(){const _0x34fe62=['4Aryzfj','1086022hhEOGa','462635gcXJRB','.cmd','win32','platform','5315928qaOoIK','129350MlGCoI','376750ZkduaG','585060DzWEkx','142080ooEcMQ'];a353_0x827a=function(){return _0x34fe62;};return a353_0x827a();}export function resolveNpmBin(_0x316b72){const _0x55dbbf=a353_0x4da725;return isWindows?_0x316b72+_0x55dbbf(0x1a4):_0x316b72;}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x378844){return new Promise(_0x5921a5=>setTimeout(_0x5921a5,_0x378844));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a355_0x1800(){const _0x1dc038=['getDate','default','now','includes','slice','datasetCode:\x20\x22','2115972EgsADK','replaceContent','copyFile','Starting\x20template\x20content\x20replacement','.js','.tpl','charAt','split','sdk-config','11424501rYAOaI','name:\x20\x22','YourModel','isDirectory','push','padStart','replace','getMonth','tableName:\x20\x22','toComponentName','toUpperCase','.css','2913085mWOUkq','.jsx','utf8','780320ZPTbyt','8313730gRfIxe','.md','readFile','getHours','1298iIvqQv','processDirectory','pop','readdir','endsWith','\x20},','121221CJwnID','mkdir','getSeconds','map','.scss','getMinutes','promises','info','pad','8TMnRHF','toDisplayTitle','datasetCode','24OyEOyF','replaceApiContent','writeFile','alias','name','extname','\x0a\x20\x20\x20\x20{\x20','processFile','tableName','success','Template\x20content\x20replacement\x20failed','isFile','toLowerCase','formatLocalTimestamp','join','Template\x20content\x20replacement\x20completed','template','processTemplate','6srJBjU','alias:\x20\x22','LOVRABET','24DNyBHo'];a355_0x1800=function(){return _0x1dc038;};return a355_0x1800();}const a355_0x4ffcd8=a355_0x563c;(function(_0x33cede,_0x44d536){const _0x4a7905=a355_0x563c,_0x4e3d89=_0x33cede();while(!![]){try{const _0x53776f=-parseInt(_0x4a7905(0x1d7))/0x1*(parseInt(_0x4a7905(0x19e))/0x2)+parseInt(_0x4a7905(0x1ba))/0x3+-parseInt(_0x4a7905(0x19b))/0x4*(-parseInt(_0x4a7905(0x1d2))/0x5)+-parseInt(_0x4a7905(0x1b0))/0x6*(parseInt(_0x4a7905(0x1cf))/0x7)+-parseInt(_0x4a7905(0x1b3))/0x8*(-parseInt(_0x4a7905(0x192))/0x9)+parseInt(_0x4a7905(0x1d3))/0xa+-parseInt(_0x4a7905(0x1c3))/0xb;if(_0x53776f===_0x44d536)break;else _0x4e3d89['push'](_0x4e3d89['shift']());}catch(_0x1680b2){_0x4e3d89['push'](_0x4e3d89['shift']());}}}(a355_0x1800,0x6645e));function a355_0x563c(_0x1aa893,_0x3e0a03){_0x1aa893=_0x1aa893-0x18e;const _0x18005a=a355_0x1800();let _0x563c2d=_0x18005a[_0x1aa893];return _0x563c2d;}import a355_0x323068 from'node:fs';import a355_0x25ea03 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a355_0x4ffcd8(0x19a)](_0x37dc82){const _0x40a241=a355_0x4ffcd8;return String(_0x37dc82)[_0x40a241(0x1c8)](0x2,'0');}static[a355_0x4ffcd8(0x1ab)](_0x9ec65){const _0x461aa3=a355_0x4ffcd8,_0xe0bb15=_0x9ec65['getFullYear'](),_0x1519ad=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x1ca)]()+0x1),_0x1e92c5=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x1b4)]()),_0x20a471=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x1d6)]()),_0x1f5e23=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x197)]()),_0x412902=this[_0x461aa3(0x19a)](_0x9ec65[_0x461aa3(0x194)]());return{'createdAt':_0xe0bb15+'-'+_0x1519ad+'-'+_0x1e92c5+'\x20'+_0x20a471+':'+_0x1f5e23+':'+_0x412902,'createdDate':_0xe0bb15+'-'+_0x1519ad+'-'+_0x1e92c5,'createdTime':_0x20a471+':'+_0x1f5e23+':'+_0x412902};}static[a355_0x4ffcd8(0x1cc)](_0xfd27ce){const _0x1269ae=a355_0x4ffcd8,_0xa67238=_0xfd27ce[_0x1269ae(0x1c1)]('/')['pop']()||_0xfd27ce;return _0xa67238[_0x1269ae(0x1c1)]('-')[_0x1269ae(0x195)](_0x39cdd6=>_0x39cdd6[_0x1269ae(0x1c0)](0x0)[_0x1269ae(0x1cd)]()+_0x39cdd6['slice'](0x1)[_0x1269ae(0x1aa)]())[_0x1269ae(0x1ac)]('');}static[a355_0x4ffcd8(0x19c)](_0x5392b4){const _0x7cbe1f=a355_0x4ffcd8,_0xae2dde=_0x5392b4[_0x7cbe1f(0x1c1)]('/')[_0x7cbe1f(0x18e)]()||_0x5392b4;return _0xae2dde[_0x7cbe1f(0x1c1)]('-')[_0x7cbe1f(0x195)](_0x319288=>_0x319288[_0x7cbe1f(0x1c0)](0x0)['toUpperCase']()+_0x319288[_0x7cbe1f(0x1b8)](0x1)[_0x7cbe1f(0x1aa)]())[_0x7cbe1f(0x1ac)]('\x20');}static['replaceContent'](_0x66a882,_0x4d540a,_0x1b22d1){const _0x28c0b8=a355_0x4ffcd8,_0x57884f=this[_0x28c0b8(0x1cc)](_0x4d540a),_0x56ab70=this[_0x28c0b8(0x19c)](_0x4d540a),{createdAt:_0x45a1c2,createdDate:_0x4e7a81,createdTime:_0x5e3a82}=this['formatLocalTimestamp'](new Date());let _0x7740ac=_0x66a882[_0x28c0b8(0x1c9)](/\{CliVersion\}/g,CLI_VERSION)[_0x28c0b8(0x1c9)](/\{ComponentName\}/g,_0x57884f)[_0x28c0b8(0x1c9)](/\{DisplayTitle\}/g,_0x56ab70)[_0x28c0b8(0x1c9)](/\{PageName\}/g,_0x4d540a)[_0x28c0b8(0x1c9)](/\{TemplateName\}/g,_0x1b22d1)[_0x28c0b8(0x1c9)](/\{CreatedAt\}/g,_0x45a1c2)['replace'](/\{CreatedDate\}/g,_0x4e7a81)['replace'](/\{CreatedTime\}/g,_0x5e3a82);return _0x7740ac;}static[a355_0x4ffcd8(0x19f)](_0x4454b0,_0x48a671,_0x4076aa,_0x47870f,_0x47664c,_0x2d2633,_0x5aea4f,_0x592ffa,_0x2452eb){const _0x58c48d=a355_0x4ffcd8,_0x8d64f=new Date(),_0x26aab6=_0x8d64f['toISOString'](),_0x4208d5=_0x4076aa['map'](_0x5ca3f7=>{const _0x1f0142=a355_0x563c,_0x5664e3=[_0x1f0142(0x1b9)+_0x5ca3f7[_0x1f0142(0x19d)]+'\x22',_0x1f0142(0x1cb)+_0x5ca3f7[_0x1f0142(0x1a6)]+'\x22',_0x1f0142(0x1c4)+_0x5ca3f7[_0x1f0142(0x1a2)]+'\x22'];return _0x5ca3f7[_0x1f0142(0x1a1)]&&_0x5664e3[_0x1f0142(0x1c7)](_0x1f0142(0x1b1)+_0x5ca3f7[_0x1f0142(0x1a1)]+'\x22'),_0x1f0142(0x1a4)+_0x5664e3[_0x1f0142(0x1ac)](',\x20')+_0x1f0142(0x191);})[_0x58c48d(0x1ac)](''),_0x3d0f5c=_0x47870f||_0x4076aa[0x0]?.['alias']||_0x58c48d(0x1c5);let _0x3a83c0=_0x4454b0[_0x58c48d(0x1c9)](/\{AppCode\}/g,_0x48a671)[_0x58c48d(0x1c9)](/\{ModelConfigs\}/g,_0x4208d5)['replace'](/\{ExampleModelName\}/g,_0x3d0f5c)[_0x58c48d(0x1c9)](/\{ApiFileName\}/g,_0x47664c||'api')[_0x58c48d(0x1c9)](/\{ConfigName\}/g,_0x2d2633||_0x58c48d(0x1b5))[_0x58c48d(0x1c9)](/\{ClientConfigParam\}/g,_0x5aea4f||'')[_0x58c48d(0x1c9)](/\{SdkConfigFileName\}/g,_0x2452eb||_0x58c48d(0x1c2))['replace'](/\{VarPrefix\}/g,_0x592ffa||_0x58c48d(0x1b2))['replace'](/\{CreatedAt\}/g,_0x26aab6);return _0x3a83c0;}static async[a355_0x4ffcd8(0x1af)](_0x24fbcb,_0xe2bcb8,_0x28a035,_0x2767b9,_0x426506=!![]){const _0x3414e1=a355_0x4ffcd8,_0x5e4e80=Date[_0x3414e1(0x1b6)]();try{_0x426506&&logger[_0x3414e1(0x199)](_0x3414e1(0x1ae),_0x3414e1(0x1bd),{'templatePath':_0x24fbcb,'targetPath':_0xe2bcb8,'pageName':_0x28a035,'templateName':_0x2767b9});await a355_0x323068['promises'][_0x3414e1(0x193)](_0xe2bcb8,{'recursive':!![]}),await this[_0x3414e1(0x1d8)](_0x24fbcb,_0xe2bcb8,_0x28a035,_0x2767b9);if(_0x426506){const _0x46e6f3=Date['now']()-_0x5e4e80;logger[_0x3414e1(0x1a7)](_0x3414e1(0x1ae),_0x3414e1(0x1ad),_0x46e6f3,{'pageName':_0x28a035,'templateName':_0x2767b9});}}catch(_0x4028c4){if(_0x426506){const _0x4c0ed6=Date[_0x3414e1(0x1b6)]()-_0x5e4e80;logger['error'](_0x3414e1(0x1ae),_0x3414e1(0x1a8),{'templatePath':_0x24fbcb,'targetPath':_0xe2bcb8,'pageName':_0x28a035,'templateName':_0x2767b9,'error':_0x4028c4 instanceof Error?_0x4028c4['message']:String(_0x4028c4),'duration':_0x4c0ed6});}throw _0x4028c4;}}static async[a355_0x4ffcd8(0x1d8)](_0x48f81d,_0x15453c,_0xefde13,_0x4fbffb){const _0x3ca4a4=a355_0x4ffcd8,_0xd2b291=await a355_0x323068[_0x3ca4a4(0x198)][_0x3ca4a4(0x18f)](_0x48f81d,{'withFileTypes':!![]});for(const _0x5db80e of _0xd2b291){const _0x2b7602=a355_0x25ea03[_0x3ca4a4(0x1ac)](_0x48f81d,_0x5db80e[_0x3ca4a4(0x1a2)]);let _0xbdae43=a355_0x25ea03[_0x3ca4a4(0x1ac)](_0x15453c,_0x5db80e[_0x3ca4a4(0x1a2)]);_0x5db80e['name'][_0x3ca4a4(0x190)](_0x3ca4a4(0x1bf))&&(_0xbdae43=a355_0x25ea03['join'](_0x15453c,_0x5db80e[_0x3ca4a4(0x1a2)]['replace'](/\.tpl$/,'')));if(_0x5db80e[_0x3ca4a4(0x1c6)]())await a355_0x323068['promises']['mkdir'](_0xbdae43,{'recursive':!![]}),await this['processDirectory'](_0x2b7602,_0xbdae43,_0xefde13,_0x4fbffb);else _0x5db80e[_0x3ca4a4(0x1a9)]()&&await this[_0x3ca4a4(0x1a5)](_0x2b7602,_0xbdae43,_0xefde13,_0x4fbffb);}}static async[a355_0x4ffcd8(0x1a5)](_0x30e478,_0x5ed020,_0xdb91be,_0x502d4d){const _0x3a0d36=a355_0x4ffcd8,_0x5b0712=a355_0x25ea03[_0x3a0d36(0x1a3)](_0x30e478)['toLowerCase']();_0x30e478[_0x3a0d36(0x190)](_0x3a0d36(0x1bf))&&(_0x5ed020=_0x5ed020[_0x3a0d36(0x1c9)](/\.tpl$/,''));const _0x5630b9=['.tsx','.ts',_0x3a0d36(0x1d0),_0x3a0d36(0x1be),'.json',_0x3a0d36(0x1d4),_0x3a0d36(0x1ce),_0x3a0d36(0x196),_0x3a0d36(0x1bf)];if(_0x5630b9[_0x3a0d36(0x1b7)](_0x5b0712)||_0x30e478[_0x3a0d36(0x190)](_0x3a0d36(0x1bf))){const _0x3a7646=await a355_0x323068[_0x3a0d36(0x198)][_0x3a0d36(0x1d5)](_0x30e478,_0x3a0d36(0x1d1)),_0x4a9bd3=this[_0x3a0d36(0x1bb)](_0x3a7646,_0xdb91be,_0x502d4d);await a355_0x323068[_0x3a0d36(0x198)][_0x3a0d36(0x1a0)](_0x5ed020,_0x4a9bd3,'utf8');}else await a355_0x323068[_0x3a0d36(0x198)][_0x3a0d36(0x1bc)](_0x30e478,_0x5ed020);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e68e2,_0x208a90){const _0x32a635=a356_0xdc52,_0x275deb=_0x3e68e2();while(!![]){try{const _0x123aeb=-parseInt(_0x32a635(0x105))/0x1+parseInt(_0x32a635(0x106))/0x2*(parseInt(_0x32a635(0x101))/0x3)+-parseInt(_0x32a635(0x100))/0x4+parseInt(_0x32a635(0x118))/0x5+-parseInt(_0x32a635(0x10c))/0x6*(-parseInt(_0x32a635(0x103))/0x7)+-parseInt(_0x32a635(0xfe))/0x8+-parseInt(_0x32a635(0x107))/0x9;if(_0x123aeb===_0x208a90)break;else _0x275deb['push'](_0x275deb['shift']());}catch(_0x3cf38b){_0x275deb['push'](_0x275deb['shift']());}}}(a356_0x12b2,0xad336));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a356_0x6eb954 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';function a356_0xdc52(_0x38f009,_0x43f71d){_0x38f009=_0x38f009-0xfe;const _0x12b279=a356_0x12b2();let _0xdc526b=_0x12b279[_0x38f009];return _0xdc526b;}const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5c151d=a356_0xdc52,_0x420097=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x5c151d(0x111)]();return _0x420097==='1'||_0x420097===_0x5c151d(0x102)||_0x420097===_0x5c151d(0x113);}function cacheRoot(){const _0x169b3a=a356_0xdc52;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x169b3a(0x10d));}export function getUpdateNoticeCachePath(){const _0xefc11e=a356_0xdc52;return join(cacheRoot(),'rabetbase-cli',_0xefc11e(0x104));}async function readUpdateNoticeCache(){const _0x4555f1=a356_0xdc52;try{const _0x80fea7=await readFile(getUpdateNoticeCachePath(),_0x4555f1(0x109)),_0x71fd86=JSON[_0x4555f1(0x10f)](_0x80fea7);if(!_0x71fd86||typeof _0x71fd86!=='object')return{};return _0x71fd86;}catch{return{};}}async function writeUpdateNoticeCache(_0xad6274){const _0x57e246=a356_0xdc52;try{const _0x2b9206=getUpdateNoticeCachePath();await mkdir(dirname(_0x2b9206),{'recursive':!![]}),await writeFile(_0x2b9206,JSON['stringify'](_0xad6274,null,0x2)+'\x0a',_0x57e246(0x109));}catch{}}function isFreshCheck(_0x16ad15,_0x52370e){const _0x467a31=a356_0xdc52;return typeof _0x16ad15['checkedAt']===_0x467a31(0x114)&&_0x52370e-_0x16ad15[_0x467a31(0x108)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x386793,_0x5be163,_0x3c6e80){const _0x4ac392=a356_0xdc52;return _0x386793[_0x4ac392(0x10a)]===_0x5be163&&typeof _0x386793['lastNotifiedAt']===_0x4ac392(0x114)&&_0x3c6e80-_0x386793[_0x4ac392(0x116)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x53c057){const _0x361d4b=a356_0xdc52;return _0x361d4b(0x110)+NPM_PACKAGE_NAME+'/v/'+_0x53c057;}export async function resolveLatestUpdateNotice(){const _0x5ab96c=a356_0xdc52;if(isUpdateNoticeDisabled())return null;try{const _0x1f16a8=Date[_0x5ab96c(0x10b)](),_0x497b1a=getCliVersion(),_0x1a0df9=await readUpdateNoticeCache();let _0x2c8e52=isFreshCheck(_0x1a0df9,_0x1f16a8)?_0x1a0df9[_0x5ab96c(0x115)]?.[_0x5ab96c(0x117)]():undefined;if(!_0x2c8e52&&!isFreshCheck(_0x1a0df9,_0x1f16a8)){const _0x39fa09=await getCliVersionPolicy();_0x2c8e52=_0x39fa09?.['stableVersion']?.[_0x5ab96c(0x117)]()||undefined,await writeUpdateNoticeCache({..._0x1a0df9,'checkedAt':_0x1f16a8,'latest':_0x2c8e52,'failed':!_0x2c8e52});}if(!_0x2c8e52||!a356_0x6eb954[_0x5ab96c(0xff)](_0x497b1a)||!a356_0x6eb954[_0x5ab96c(0xff)](_0x2c8e52))return null;if(a356_0x6eb954[_0x5ab96c(0x112)](_0x497b1a,_0x2c8e52))return null;if(isRecentlyNotified(_0x1a0df9,_0x2c8e52,_0x1f16a8))return null;const _0x3ee85e=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x1a0df9,'checkedAt':isFreshCheck(_0x1a0df9,_0x1f16a8)?_0x1a0df9[_0x5ab96c(0x108)]:_0x1f16a8,'latest':_0x2c8e52,'failed':![],'lastNotifiedVersion':_0x2c8e52,'lastNotifiedAt':_0x1f16a8}),{'command':_0x3ee85e,'current':_0x497b1a,'latest':_0x2c8e52,'url':buildNpmVersionUrl(_0x2c8e52),'message':CLI_BIN_NAME+'\x20'+_0x2c8e52+_0x5ab96c(0x10e)+_0x497b1a+',\x20run:\x20'+_0x3ee85e};}catch{return null;}}function a356_0x12b2(){const _0x13775f=['now','6mtRbTn','.cache','\x20available,\x20current\x20','parse','https://www.npmjs.com/package/','toLowerCase','gte','yes','number','latest','lastNotifiedAt','trim','5701345GjtAbi','1175264qYLNvF','valid','782372kcrDoY','3030738YFTJin','true','4990097XaxuOR','update-check.json','119595wOUWAE','2uCCHyF','15226740WLWvcA','checkedAt','utf8','lastNotifiedVersion'];a356_0x12b2=function(){return _0x13775f;};return a356_0x12b2();}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2425fa,_0x604bdc){var _0x3e309f=a357_0x2516,_0x274bdd=_0x2425fa();while(!![]){try{var _0x34235d=-parseInt(_0x3e309f(0x1b6))/0x1+-parseInt(_0x3e309f(0x1b4))/0x2+parseInt(_0x3e309f(0x1b8))/0x3*(parseInt(_0x3e309f(0x1ba))/0x4)+parseInt(_0x3e309f(0x1be))/0x5+-parseInt(_0x3e309f(0x1b5))/0x6*(parseInt(_0x3e309f(0x1bc))/0x7)+parseInt(_0x3e309f(0x1b7))/0x8*(parseInt(_0x3e309f(0x1bb))/0x9)+-parseInt(_0x3e309f(0x1b9))/0xa*(-parseInt(_0x3e309f(0x1bd))/0xb);if(_0x34235d===_0x604bdc)break;else _0x274bdd['push'](_0x274bdd['shift']());}catch(_0x1e9683){_0x274bdd['push'](_0x274bdd['shift']());}}}(a357_0x2aef,0x98e80));import{VERSION}from'../generated/build-info.js';function a357_0x2516(_0x4551e1,_0x1beee1){_0x4551e1=_0x4551e1-0x1b4;var _0x2aeff0=a357_0x2aef();var _0x25168c=_0x2aeff0[_0x4551e1];return _0x25168c;}function a357_0x2aef(){var _0x426762=['10323FugcHu','2725513nXOZLi','3340513gwMgqD','1718240KVLHug','2345524kptWcH','12RQjLvL','108401UbclEX','5032TMqtqV','760281mODpQU','20hpQBKr','16LwgFQX'];a357_0x2aef=function(){return _0x426762;};return a357_0x2aef();}export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a358_0x4372(_0x2b70e0,_0x4faf4b){_0x2b70e0=_0x2b70e0-0xac;var _0x39e6ae=a358_0x39e6();var _0x437250=_0x39e6ae[_0x2b70e0];return _0x437250;}function a358_0x39e6(){var _0x392f97=['3273656XTtQCk','8jRzGaz','55370SJblBw','10VzleFp','1583988pjPlMt','270714HdpiBB','5468729gAEDGb','2574YBbLqF','711518JrNfnM','272956WMlEZe'];a358_0x39e6=function(){return _0x392f97;};return a358_0x39e6();}(function(_0x29d6fe,_0x58fdce){var _0x3628ee=a358_0x4372,_0x320f57=_0x29d6fe();while(!![]){try{var _0x325e96=parseInt(_0x3628ee(0xb5))/0x1+parseInt(_0x3628ee(0xac))/0x2+-parseInt(_0x3628ee(0xb1))/0x3+parseInt(_0x3628ee(0xad))/0x4+parseInt(_0x3628ee(0xb0))/0x5*(parseInt(_0x3628ee(0xb2))/0x6)+parseInt(_0x3628ee(0xb3))/0x7*(parseInt(_0x3628ee(0xae))/0x8)+-parseInt(_0x3628ee(0xb4))/0x9*(parseInt(_0x3628ee(0xaf))/0xa);if(_0x325e96===_0x58fdce)break;else _0x320f57['push'](_0x320f57['shift']());}catch(_0x104866){_0x320f57['push'](_0x320f57['shift']());}}}(a358_0x39e6,0x6814d));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4ea956,_0x357270){setActiveCookie(_0x4ea956);try{return await _0x357270();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a359_0x3294(){var _0x58e8a3=['1261830JJExSI','4261165JQWDPU','1836seKrvu','40bgkFSP','551973WcqlVQ','63dSFUeW','55RJcasr','84waFrII','8442759uHtYZk','2995520bmjEEC','4ZqmpUR','stderr','write','1375587EfEVfX','118NGrXgW'];a359_0x3294=function(){return _0x58e8a3;};return a359_0x3294();}(function(_0x377be0,_0x163959){var _0x382863=a359_0x264f,_0x215446=_0x377be0();while(!![]){try{var _0x3b44eb=-parseInt(_0x382863(0x13d))/0x1*(parseInt(_0x382863(0x13a))/0x2)+-parseInt(_0x382863(0x13f))/0x3+parseInt(_0x382863(0x136))/0x4*(parseInt(_0x382863(0x13c))/0x5)+parseInt(_0x382863(0x13b))/0x6*(-parseInt(_0x382863(0x140))/0x7)+-parseInt(_0x382863(0x13e))/0x8*(parseInt(_0x382863(0x139))/0x9)+parseInt(_0x382863(0x135))/0xa*(-parseInt(_0x382863(0x141))/0xb)+-parseInt(_0x382863(0x142))/0xc*(-parseInt(_0x382863(0x134))/0xd);if(_0x3b44eb===_0x163959)break;else _0x215446['push'](_0x215446['shift']());}catch(_0x4f2902){_0x215446['push'](_0x215446['shift']());}}}(a359_0x3294,0xe8403));function a359_0x264f(_0x25d5ce,_0x5490e4){_0x25d5ce=_0x25d5ce-0x134;var _0x329400=a359_0x3294();var _0x264f3c=_0x329400[_0x25d5ce];return _0x264f3c;}export function writeCliSideChannelLine(_0x3dc6a5){var _0x4c0460=a359_0x264f;process[_0x4c0460(0x137)][_0x4c0460(0x138)](_0x3dc6a5+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.5.4
|
|
3
|
+
"version": "2.5.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
|
|
3
|
+
version: 2.5.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, host frontend integration, frontend subapp resources, 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, host frontend integration, subapp resource versions, 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:
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "rabetbase",
|
|
4
4
|
"packageName": "@lovrabet/rabetbase-cli",
|
|
5
|
-
"packageVersion": "2.5.4
|
|
6
|
-
"skillVersion": "2.5.4
|
|
5
|
+
"packageVersion": "2.5.4",
|
|
6
|
+
"skillVersion": "2.5.4",
|
|
7
7
|
"files": [
|
|
8
8
|
"SKILL.md",
|
|
9
9
|
"guides/approval-flow-development-workflow.md",
|
|
@@ -155,5 +155,5 @@
|
|
|
155
155
|
"references/rabetbase-user-account.md",
|
|
156
156
|
"references/rabetbase-workspace.md"
|
|
157
157
|
],
|
|
158
|
-
"digest": "
|
|
158
|
+
"digest": "74a9c0d783a16c3b0881f4bfcbae651c32b3c540d5c9d1cbe24ecf80f0bda0b4"
|
|
159
159
|
}
|