@lovrabet/rabetbase-cli 2.3.15 → 2.3.16-beta.2
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/README.md +8 -3
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -0
- package/lib/commands/kb/delete.js +1 -0
- package/lib/commands/kb/detail.js +1 -0
- package/lib/commands/kb/index.js +1 -0
- package/lib/commands/kb/list.js +1 -0
- package/lib/commands/kb/shared.js +1 -0
- package/lib/commands/kb/update.js +1 -0
- 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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.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/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.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 -0
- package/lib/commands/tenant/members-list.js +1 -0
- package/lib/commands/tenant/shared.js +1 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.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 -0
- 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/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/lib/commands/app/add.js +0 -1
- package/lib/commands/app/remove.js +0 -1
package/lib/utils/guides-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a265_0x63602a=a265_0x5a8a;(function(_0x8b3c8a,_0x40bb73){const _0x3cfc94=a265_0x5a8a,_0x249ffa=_0x8b3c8a();while(!![]){try{const _0x367ee2=parseInt(_0x3cfc94(0x118))/0x1+parseInt(_0x3cfc94(0x11d))/0x2*(-parseInt(_0x3cfc94(0x11c))/0x3)+parseInt(_0x3cfc94(0x115))/0x4+parseInt(_0x3cfc94(0x116))/0x5+-parseInt(_0x3cfc94(0x119))/0x6+-parseInt(_0x3cfc94(0xfd))/0x7+parseInt(_0x3cfc94(0x10c))/0x8;if(_0x367ee2===_0x40bb73)break;else _0x249ffa['push'](_0x249ffa['shift']());}catch(_0x1a57a7){_0x249ffa['push'](_0x249ffa['shift']());}}}(a265_0xe192,0x861a6));function a265_0x5a8a(_0x56c189,_0xff89ac){_0x56c189=_0x56c189-0xfd;const _0xe192e5=a265_0xe192();let _0x5a8aca=_0xe192e5[_0x56c189];return _0x5a8aca;}import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0xe1bc94=a265_0x5a8a,_0xe41bcd=getTemplateBaseUrl();return _0xe41bcd+_0xe1bc94(0x103);}const CACHE_DIR=join(homedir(),a265_0x63602a(0x109),a265_0x63602a(0x112));export async function fetchGuidesFromCDN(){const _0x59160f=a265_0x63602a,_0xabfcce=getGuidesCdnUrl(),_0x3f2cf7=await fetch(_0xabfcce,{'headers':{'Accept':_0x59160f(0x10a)}});if(!_0x3f2cf7['ok'])throw new Error(_0x59160f(0x104)+_0x3f2cf7[_0x59160f(0x100)]+'\x20'+_0x3f2cf7[_0x59160f(0x10f)]);const _0x444952=await _0x3f2cf7['json']();if(!_0x444952[_0x59160f(0xff)]||typeof _0x444952[_0x59160f(0xff)]!==_0x59160f(0x114))throw new Error('CDN\x20返回数据格式错误');return _0x444952;}export function writeGuidesToProject(_0x185a93,_0x1261f8,_0x4771c3=a265_0x63602a(0x108),_0x4d665d){const _0x5abd06=a265_0x63602a,_0x5012ee=join(_0x1261f8,_0x4771c3);mkdirSync(_0x5012ee,{'recursive':!![]});for(const [_0xf9de26,_0x3d9988]of Object[_0x5abd06(0x111)](_0x185a93[_0x5abd06(0xff)])){let _0x48acc3=_0x3d9988[_0x5abd06(0x105)];_0x3d9988[_0x5abd06(0x107)]&&(_0x48acc3=appendUpdateTime(_0x48acc3,_0x3d9988['lastUpdated'])),writeFileSync(join(_0x5012ee,_0xf9de26+_0x5abd06(0x113)),_0x48acc3,'utf-8');}}export function appendUpdateTime(_0x3f1b27,_0x467cef){const _0x32b18c=a265_0x63602a;return _0x3f1b27=_0x3f1b27[_0x32b18c(0x11b)](/\n*>更新时间:.*$/m,''),_0x3f1b27[_0x32b18c(0x101)]()+('\x0a\x0a>更新时间:'+_0x467cef);}export function getSkillTemplate(_0x31fcb3){const _0x3891f3=a265_0x63602a;return _0x31fcb3[_0x3891f3(0x117)]?.['content']||'';}function a265_0xe192(){const _0x3e1889=['2196054TqUYvn','join','guides','status','trimEnd','utf-8','/skills/guides.json','CDN\x20请求失败:\x20','content','push','lastUpdated','.lovrabet/skill/guides','.lovrabet','application/json','length','16656920ExBVQN','keys','CDN\x20数据中缺少\x20skillTemplate','statusText','map','entries','cache','.md','object','42636PGoEps','376890FOZNJD','skillTemplate','187565oldltv','2698968wBCfhN','extendContent','replace','148983xiIlfK','42Flhavx'];a265_0xe192=function(){return _0x3e1889;};return a265_0xe192();}export function appendExtendContents(_0x3bb24a,_0x3a7adc,_0x5c1894){const _0x4e9b09=a265_0x63602a,_0x2a020f=[];for(const [,_0x4498f4]of Object[_0x4e9b09(0x111)](_0x3a7adc[_0x4e9b09(0xff)])){_0x4498f4[_0x4e9b09(0x11a)]&&_0x2a020f[_0x4e9b09(0x106)](_0x4498f4['extendContent'][_0x4e9b09(0x101)]());}if(_0x2a020f[_0x4e9b09(0x10b)]===0x0)return _0x3bb24a;return _0x3bb24a[_0x4e9b09(0x101)]()+'\x0a\x0a'+_0x2a020f[_0x4e9b09(0xfe)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x347fff,_0xcf1a7f,_0x2306ed){const _0x50167f=a265_0x63602a,_0xa1ce59=getSkillTemplate(_0x347fff);if(!_0xa1ce59)throw new Error(_0x50167f(0x10e));const _0x1e5938=dirname(_0xcf1a7f);mkdirSync(_0x1e5938,{'recursive':!![]});let _0x44106e=_0xa1ce59[_0x50167f(0x11b)](/\{\{IDE_NAME\}\}/g,_0x2306ed);_0x44106e=appendExtendContents(_0x44106e,_0x347fff),_0x347fff[_0x50167f(0x117)][_0x50167f(0x107)]&&(_0x44106e=appendUpdateTime(_0x44106e,_0x347fff[_0x50167f(0x117)][_0x50167f(0x107)])),writeFileSync(_0xcf1a7f,_0x44106e,_0x50167f(0x102));}export async function installGuides(_0x57c21c){const _0x3fe18f=a265_0x63602a,_0x5dc42a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5dc42a,_0x57c21c),Object[_0x3fe18f(0x10d)](_0x5dc42a[_0x3fe18f(0xff)])[_0x3fe18f(0x10b)];}export function getGuidesSummary(_0x20745e){const _0x115b99=a265_0x63602a;return Object['entries'](_0x20745e[_0x115b99(0xff)])[_0x115b99(0x110)](([_0x27996b,_0x6a3e34])=>({'key':_0x27996b,'title':_0x6a3e34['title'],'path':_0x6a3e34['path']}));}
|
package/lib/utils/http-client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a266_0x2800(_0x22552c,_0x1a037d){_0x22552c=_0x22552c-0x1b5;const _0x5a3ba7=a266_0x5a3b();let _0x2800b8=_0x5a3ba7[_0x22552c];return _0x2800b8;}(function(_0x115798,_0x4be149){const _0x5991d0=a266_0x2800,_0x35c0e9=_0x115798();while(!![]){try{const _0x2f7b92=-parseInt(_0x5991d0(0x1c8))/0x1*(parseInt(_0x5991d0(0x1bd))/0x2)+parseInt(_0x5991d0(0x1cf))/0x3*(parseInt(_0x5991d0(0x1cb))/0x4)+parseInt(_0x5991d0(0x1b7))/0x5+parseInt(_0x5991d0(0x1c2))/0x6+-parseInt(_0x5991d0(0x1bf))/0x7*(parseInt(_0x5991d0(0x1ba))/0x8)+parseInt(_0x5991d0(0x1c3))/0x9*(-parseInt(_0x5991d0(0x1c6))/0xa)+parseInt(_0x5991d0(0x1bc))/0xb;if(_0x2f7b92===_0x4be149)break;else _0x35c0e9['push'](_0x35c0e9['shift']());}catch(_0x419dcf){_0x35c0e9['push'](_0x35c0e9['shift']());}}}(a266_0x5a3b,0xab964));export async function httpRequest(_0x3124ac,_0x539e60={}){const _0x5bd4f9=a266_0x2800,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x539e60;let _0x1b35f9=null;for(let _0xc25e01=0x0;_0xc25e01<=retries;_0xc25e01++){try{const _0x4d28bf=new AbortController(),_0x287e45=setTimeout(()=>_0x4d28bf[_0x5bd4f9(0x1c5)](),timeout),_0x559acc=await fetch(_0x3124ac,{'headers':headers,'signal':_0x4d28bf['signal']});clearTimeout(_0x287e45);let _0x184895;const _0x455d12=_0x559acc['headers'][_0x5bd4f9(0x1b9)]('content-type');return _0x455d12?.[_0x5bd4f9(0x1cc)](_0x5bd4f9(0x1bb))?_0x184895=await _0x559acc['json']():_0x184895=await _0x559acc[_0x5bd4f9(0x1cd)](),{'ok':_0x559acc['ok'],'status':_0x559acc[_0x5bd4f9(0x1b6)],'statusText':_0x559acc[_0x5bd4f9(0x1c0)],'data':_0x184895,'headers':_0x559acc['headers'],'url':_0x559acc[_0x5bd4f9(0x1c4)],'text':()=>_0x559acc[_0x5bd4f9(0x1cd)]()};}catch(_0x282a5b){_0x1b35f9=_0x282a5b instanceof Error?_0x282a5b:new Error(String(_0x282a5b));if(_0xc25e01===retries)break;if(shouldRetry(_0x282a5b)){console[_0x5bd4f9(0x1c7)](_0x5bd4f9(0x1ce)+retryDelay+'ms\x20后进行第\x20'+(_0xc25e01+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1b35f9||new Error(_0x5bd4f9(0x1be));}function shouldRetry(_0x2a0548){const _0x365878=a266_0x2800;if(_0x2a0548 instanceof Error){if(_0x2a0548[_0x365878(0x1c9)]==='AbortError')return![];if(_0x2a0548[_0x365878(0x1c9)]===_0x365878(0x1ca)&&_0x2a0548[_0x365878(0x1b5)][_0x365878(0x1cc)](_0x365878(0x1b8)))return!![];if(_0x2a0548[_0x365878(0x1b5)][_0x365878(0x1cc)](_0x365878(0x1c1)))return!![];if(_0x2a0548['message'][_0x365878(0x1cc)]('ENOTFOUND'))return![];}return![];}function a266_0x5a3b(){const _0x31d107=['ECONNRESET','187452PbWMMd','1683esMMVQ','url','abort','7340efrIjT','log','23QPnMhM','name','TypeError','32sOIZSV','includes','text','*\x20请求失败,','510054sQUsTe','message','status','1125930OEdrgw','fetch','get','6872HUFTKq','application/json','11276672FMleCK','104602vcjmSc','Request\x20failed','4879EhIoLN','statusText'];a266_0x5a3b=function(){return _0x31d107;};return a266_0x5a3b();}function sleep(_0x4e0318){return new Promise(_0x316813=>setTimeout(_0x316813,_0x4e0318));}export function validateUrl(_0x1711c8){try{return new URL(_0x1711c8),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a267_0x417f(_0x14bd8e,_0x1222fe){_0x14bd8e=_0x14bd8e-0xee;const _0x197f2d=a267_0x197f();let _0x417fe0=_0x197f2d[_0x14bd8e];return _0x417fe0;}(function(_0x272144,_0x15b509){const _0x7eddca=a267_0x417f,_0x521add=_0x272144();while(!![]){try{const _0x2e6099=parseInt(_0x7eddca(0xfc))/0x1+-parseInt(_0x7eddca(0xee))/0x2*(parseInt(_0x7eddca(0xf2))/0x3)+-parseInt(_0x7eddca(0xf6))/0x4*(parseInt(_0x7eddca(0xf3))/0x5)+-parseInt(_0x7eddca(0xef))/0x6*(-parseInt(_0x7eddca(0xf8))/0x7)+-parseInt(_0x7eddca(0xf9))/0x8+-parseInt(_0x7eddca(0xf7))/0x9+parseInt(_0x7eddca(0xf4))/0xa;if(_0x2e6099===_0x15b509)break;else _0x521add['push'](_0x521add['shift']());}catch(_0x1a3eec){_0x521add['push'](_0x521add['shift']());}}}(a267_0x197f,0xc5005));function a267_0x197f(){const _0x359eb0=['7692IywjJC','true','isTTY','3VCnFfl','3300485LFzHXa','26998240juGuZB','nonInteractive','4cVhAoD','12485898dbjccS','6377RUgMGm','8162528bWxdEF','setRawMode','stdin','155439FjjNVz','297026VFYzSh'];a267_0x197f=function(){return _0x359eb0;};return a267_0x197f();}function env(_0x3f93e1){return process.env[`RABETBASE_${_0x3f93e1}`]||process.env[`LOVRABET_${_0x3f93e1}`]||undefined;}export function isNonInteractive(_0x593a37){const _0x36a55e=a267_0x417f;return!!(_0x593a37[_0x36a55e(0xf5)]||_0x593a37['ci']||env('CI')===_0x36a55e(0xf0)||process.env.CI===_0x36a55e(0xf0)||!process['stdout'][_0x36a55e(0xf1)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2123af=a267_0x417f;if(!process[_0x2123af(0xfb)][_0x2123af(0xf1)])return![];try{const _0x247453=process['stdin']['isRaw'];return process[_0x2123af(0xfb)][_0x2123af(0xfa)](!![]),process[_0x2123af(0xfb)]['setRawMode'](_0x247453??![]),!![];}catch{return![];}}
|
package/lib/utils/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a268_0x430b55=a268_0x4e51;(function(_0x5b24b4,_0x2303db){const _0x1d3bee=a268_0x4e51,_0x7d665f=_0x5b24b4();while(!![]){try{const _0x538371=parseInt(_0x1d3bee(0xe5))/0x1+parseInt(_0x1d3bee(0xff))/0x2*(-parseInt(_0x1d3bee(0x105))/0x3)+parseInt(_0x1d3bee(0xdc))/0x4*(-parseInt(_0x1d3bee(0xef))/0x5)+-parseInt(_0x1d3bee(0xda))/0x6*(parseInt(_0x1d3bee(0xea))/0x7)+parseInt(_0x1d3bee(0x106))/0x8+parseInt(_0x1d3bee(0x10b))/0x9+parseInt(_0x1d3bee(0x109))/0xa;if(_0x538371===_0x2303db)break;else _0x7d665f['push'](_0x7d665f['shift']());}catch(_0x456fa3){_0x7d665f['push'](_0x7d665f['shift']());}}}(a268_0x1abd,0x27102));import a268_0x326eb5 from'winston';function a268_0x1abd(){const _0x44269c=['setLogPath','clearLogs','3XpwXuk','1433736ctzjuz','mkdirSync','now','3121850JAvZWQ','unknown','1361232TFfUJE','parse','失败:\x20','611706JVPFju','split','113144GiKDGP','details','utf8','printf','filter','initWinstonLogger','timestamp','addColors','.lovrabet.log','27971grfKZC','format','完成:\x20','readFileSync','toISOString','7uExQvM','command','winstonLogger','开始执行:\x20','clear','20ZGSXrG','existsSync','dirname','red','info','message','success','blue','yellow','combine','currentRawCommand','map','trim','error','logFilePath','Failed\x20to\x20clear\x20logs:','591048ZlMCWw','duration','join','warn'];a268_0x1abd=function(){return _0x44269c;};return a268_0x1abd();}import a268_0x3b8b05 from'node:fs';import a268_0x56feae from'node:path';class Logger{[a268_0x430b55(0xec)];['logFilePath'];['currentRawCommand']='';constructor(){const _0x4408b4=a268_0x430b55;this[_0x4408b4(0xfd)]='';}['setRawCommand'](_0xc05095){const _0x278647=a268_0x430b55;this[_0x278647(0xf9)]=_0xc05095;}[a268_0x430b55(0xe1)](){const _0x23296e=a268_0x430b55,_0xe28d24=a268_0x56feae[_0x23296e(0xf1)](this[_0x23296e(0xfd)]);!a268_0x3b8b05[_0x23296e(0xf0)](_0xe28d24)&&a268_0x3b8b05[_0x23296e(0x107)](_0xe28d24,{'recursive':!![]});const _0x2bd2c3=a268_0x326eb5[_0x23296e(0xe6)][_0x23296e(0xf8)](a268_0x326eb5[_0x23296e(0xe6)][_0x23296e(0xe2)](),a268_0x326eb5[_0x23296e(0xe6)]['errors']({'stack':!![]}),a268_0x326eb5['format'][_0x23296e(0xdf)](_0x42687d=>{const _0x2a3cbe=_0x23296e,_0x32cf0b={'timestamp':_0x42687d[_0x2a3cbe(0xe2)]||new Date()[_0x2a3cbe(0xe9)](),'level':_0x42687d['level']||'info','command':_0x42687d[_0x2a3cbe(0xeb)]||_0x2a3cbe(0x10a),'rawCommand':_0x42687d['rawCommand']||this[_0x2a3cbe(0xf9)]||undefined,'message':_0x42687d[_0x2a3cbe(0xf4)]||'','duration':_0x42687d[_0x2a3cbe(0x100)]||undefined,'details':_0x42687d[_0x2a3cbe(0xdd)]||undefined};return JSON['stringify'](_0x32cf0b);}));this['winstonLogger']=a268_0x326eb5['createLogger']({'level':_0x23296e(0xf3),'format':_0x2bd2c3,'transports':[new a268_0x326eb5['transports']['File']({'filename':this['logFilePath'],'level':_0x23296e(0xf3)})],'silent':![]}),a268_0x326eb5[_0x23296e(0xe3)]({'success':'green','error':_0x23296e(0xf2),'warn':_0x23296e(0xf7),'info':_0x23296e(0xf6)});}[a268_0x430b55(0x103)](_0x4e34dc){const _0x3a9f0b=a268_0x430b55;this[_0x3a9f0b(0xfd)]=a268_0x56feae[_0x3a9f0b(0x101)](_0x4e34dc,_0x3a9f0b(0xe4)),this[_0x3a9f0b(0xec)]&&this[_0x3a9f0b(0xec)][_0x3a9f0b(0xee)](),this['initWinstonLogger']();}['info'](_0x2cb34c,_0x431738,_0x3ff243){const _0x2e1f70=a268_0x430b55;if(!this[_0x2e1f70(0xfd)]||!this[_0x2e1f70(0xec)])return;this['winstonLogger']['info'](_0x431738,{'command':_0x2cb34c,'details':_0x3ff243});}['success'](_0x5dc0b9,_0x2c3b3c,_0x2451ad,_0x5f3f0b){const _0x4718cd=a268_0x430b55;if(!this[_0x4718cd(0xfd)]||!this['winstonLogger'])return;this[_0x4718cd(0xec)]['log'](_0x4718cd(0xf3),_0x2c3b3c,{'level':_0x4718cd(0xf5),'command':_0x5dc0b9,'duration':_0x2451ad,'details':_0x5f3f0b});}[a268_0x430b55(0xfc)](_0x2afcae,_0x4e8ab9,_0x4c19d5){const _0x55ac82=a268_0x430b55;if(!this[_0x55ac82(0xfd)]||!this[_0x55ac82(0xec)])return;this['winstonLogger'][_0x55ac82(0xfc)](_0x4e8ab9,{'command':_0x2afcae,'details':_0x4c19d5});}[a268_0x430b55(0x102)](_0x56f3ac,_0x406e9b,_0x5d4f0c){const _0x4fca5c=a268_0x430b55;if(!this[_0x4fca5c(0xfd)]||!this[_0x4fca5c(0xec)])return;this[_0x4fca5c(0xec)][_0x4fca5c(0x102)](_0x406e9b,{'command':_0x56f3ac,'details':_0x5d4f0c});}async['logTask'](_0xf6ede1,_0x36de11,_0x5f26d0){const _0x20e0dc=a268_0x430b55,_0x1c635f=Date[_0x20e0dc(0x108)]();this[_0x20e0dc(0xf3)](_0xf6ede1,_0x20e0dc(0xed)+_0x36de11);try{const _0x57c28e=await _0x5f26d0(),_0x3de672=Date[_0x20e0dc(0x108)]()-_0x1c635f;return this['success'](_0xf6ede1,_0x20e0dc(0xe7)+_0x36de11,_0x3de672),_0x57c28e;}catch(_0x2a776b){const _0xf98804=Date[_0x20e0dc(0x108)]()-_0x1c635f;this['error'](_0xf6ede1,_0x20e0dc(0xd9)+_0x36de11,{'error':_0x2a776b instanceof Error?_0x2a776b['message']:String(_0x2a776b),'duration':_0xf98804});throw _0x2a776b;}}['readLogs'](){const _0x581810=a268_0x430b55;try{if(!a268_0x3b8b05[_0x581810(0xf0)](this[_0x581810(0xfd)]))return[];const _0x58dac7=a268_0x3b8b05[_0x581810(0xe8)](this[_0x581810(0xfd)],_0x581810(0xde));return _0x58dac7[_0x581810(0xdb)]('\x0a')[_0x581810(0xe0)](_0x22e959=>_0x22e959[_0x581810(0xfb)]())[_0x581810(0xfa)](_0x2af293=>JSON[_0x581810(0xd8)](_0x2af293));}catch(_0xf0b23e){return console[_0x581810(0x102)]('Failed\x20to\x20read\x20logs:',_0xf0b23e),[];}}[a268_0x430b55(0x104)](){const _0x159d82=a268_0x430b55;try{a268_0x3b8b05[_0x159d82(0xf0)](this['logFilePath'])&&a268_0x3b8b05['writeFileSync'](this[_0x159d82(0xfd)],'',_0x159d82(0xde));}catch(_0x73a249){console['warn'](_0x159d82(0xfe),_0x73a249);}}['getWinstonInstance'](){const _0x842f50=a268_0x430b55;return this[_0x842f50(0xec)];}}function a268_0x4e51(_0x22e3f3,_0x25400f){_0x22e3f3=_0x22e3f3-0xd8;const _0x1abdbb=a268_0x1abd();let _0x4e5162=_0x1abdbb[_0x22e3f3];return _0x4e5162;}export const logger=new Logger();
|
package/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a269_0x534f(_0x51821b,_0x424899){_0x51821b=_0x51821b-0x77;const _0x1e0675=a269_0x1e06();let _0x534fdb=_0x1e0675[_0x51821b];return _0x534fdb;}function a269_0x1e06(){const _0x362db5=['47397fYtygA','Invalid\x20JSON\x20for\x20--params:\x20','validation','6132800HNVYWT','10SjbswO','object','3702fpSFjW','4038488euuEIA','--params\x20must\x20be\x20a\x20JSON\x20object','11795EWlkBW','19470951qRiGes','8820910RkZHQJ','1063581qzvvsE','parse','62CRQQwz','isArray'];a269_0x1e06=function(){return _0x362db5;};return a269_0x1e06();}(function(_0x213f98,_0x4060aa){const _0x3f511c=a269_0x534f,_0x2468d0=_0x213f98();while(!![]){try{const _0xf19a96=parseInt(_0x3f511c(0x7b))/0x1+-parseInt(_0x3f511c(0x7d))/0x2*(parseInt(_0x3f511c(0x7f))/0x3)+-parseInt(_0x3f511c(0x86))/0x4+parseInt(_0x3f511c(0x7a))/0x5+parseInt(_0x3f511c(0x85))/0x6*(parseInt(_0x3f511c(0x78))/0x7)+parseInt(_0x3f511c(0x82))/0x8+-parseInt(_0x3f511c(0x79))/0x9*(parseInt(_0x3f511c(0x83))/0xa);if(_0xf19a96===_0x4060aa)break;else _0x2468d0['push'](_0x2468d0['shift']());}catch(_0x2620c5){_0x2468d0['push'](_0x2468d0['shift']());}}}(a269_0x1e06,0xed1aa));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x5054f1){const _0x3f004f=a269_0x534f;if(!_0x5054f1)return undefined;let _0x39c7fe;try{_0x39c7fe=JSON[_0x3f004f(0x7c)](_0x5054f1);}catch{throw CliErrors[_0x3f004f(0x81)](_0x3f004f(0x80)+_0x5054f1);}if(!_0x39c7fe||typeof _0x39c7fe!==_0x3f004f(0x84)||Array[_0x3f004f(0x7e)](_0x39c7fe))throw CliErrors['validation'](_0x3f004f(0x77),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x39c7fe;}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a270_0x2437(_0x301f15,_0x58516c){_0x301f15=_0x301f15-0x190;const _0x552710=a270_0x5527();let _0x2437f7=_0x552710[_0x301f15];return _0x2437f7;}const a270_0x3846d6=a270_0x2437;(function(_0x2b375c,_0x4c8d7b){const _0x2e5feb=a270_0x2437,_0x330d06=_0x2b375c();while(!![]){try{const _0x1eba6b=-parseInt(_0x2e5feb(0x19a))/0x1*(-parseInt(_0x2e5feb(0x190))/0x2)+parseInt(_0x2e5feb(0x191))/0x3+-parseInt(_0x2e5feb(0x198))/0x4*(parseInt(_0x2e5feb(0x19b))/0x5)+parseInt(_0x2e5feb(0x192))/0x6+-parseInt(_0x2e5feb(0x197))/0x7*(parseInt(_0x2e5feb(0x194))/0x8)+parseInt(_0x2e5feb(0x196))/0x9+-parseInt(_0x2e5feb(0x195))/0xa;if(_0x1eba6b===_0x4c8d7b)break;else _0x330d06['push'](_0x330d06['shift']());}catch(_0x4b57ad){_0x330d06['push'](_0x330d06['shift']());}}}(a270_0x5527,0xe91aa));export const isWindows=process[a270_0x3846d6(0x193)]===a270_0x3846d6(0x199);function a270_0x5527(){const _0x693f1e=['9877224QEcqTt','platform','2661944jbjsSa','31525510bHevGQ','10688985EaTmbT','7oQpCNe','290236hkVQyk','win32','1ccGyTc','65TrLOKq','2503598LCQpey','3893061eUhcfh'];a270_0x5527=function(){return _0x693f1e;};return a270_0x5527();}export function resolveNpmBin(_0x539f1d){return isWindows?_0x539f1d+'.cmd':_0x539f1d;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a271_0x6f3b(){const _0x2c38c8=['.cursor/rules','lastUpdated','27guTbCO','5343EuGWBS','8RUJkIm','981687rPGGEW','string','50677ZCQPMD','2768314gYenKl','json','CDN\x20返回数据格式错误','application/json','157962AHNMhp','status','4eoPXjY','1hOIrkz','本地模板文件不存在:\x20','6vihuxw','2304CwrtaQ','4336185GbPZJm','lovrabet_rules.mdc','utf-8','catch','content','2732261PGERuT','4915970UawwGk','../../templates/rules/lovrabet_rules.mdc.tpl','statusText','agents.md'];a271_0x6f3b=function(){return _0x2c38c8;};return a271_0x6f3b();}const a271_0x3c57b8=a271_0x5de4;(function(_0xc29961,_0x28e62b){const _0x527413=a271_0x5de4,_0x1bf280=_0xc29961();while(!![]){try{const _0x20ebcb=parseInt(_0x527413(0xe1))/0x1*(-parseInt(_0x527413(0xda))/0x2)+parseInt(_0x527413(0xd7))/0x3*(parseInt(_0x527413(0xe0))/0x4)+-parseInt(_0x527413(0xe5))/0x5*(parseInt(_0x527413(0xe3))/0x6)+-parseInt(_0x527413(0xcd))/0x7*(-parseInt(_0x527413(0xd6))/0x8)+-parseInt(_0x527413(0xd4))/0x9*(parseInt(_0x527413(0xce))/0xa)+parseInt(_0x527413(0xd9))/0xb*(-parseInt(_0x527413(0xe4))/0xc)+parseInt(_0x527413(0xd5))/0xd*(parseInt(_0x527413(0xde))/0xe);if(_0x20ebcb===_0x28e62b)break;else _0x1bf280['push'](_0x1bf280['shift']());}catch(_0x275ee0){_0x1bf280['push'](_0x1bf280['shift']());}}}(a271_0x6f3b,0xb5ac8));function a271_0x5de4(_0x2d074b,_0x4cf38a){_0x2d074b=_0x2d074b-0xcd;const _0x6f3b4e=a271_0x6f3b();let _0x5de4fa=_0x6f3b4e[_0x2d074b];return _0x5de4fa;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x239e70=getTemplateBaseUrl();return _0x239e70+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a271_0x3c57b8(0xcf));export async function fetchRulesFromCDN(){const _0x15a403=a271_0x3c57b8,_0xfb404=getRulesCdnUrl(),_0x212b42=await fetch(_0xfb404,{'headers':{'Accept':_0x15a403(0xdd)}});if(!_0x212b42['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x212b42[_0x15a403(0xdf)]+'\x20'+_0x212b42[_0x15a403(0xd0)]);const _0x31ac62=await _0x212b42[_0x15a403(0xdb)]();if(!_0x31ac62['content']||typeof _0x31ac62[_0x15a403(0xe9)]!==_0x15a403(0xd8))throw new Error(_0x15a403(0xdc));return _0x31ac62;}export async function getRulesContent(){const _0xa38385=a271_0x3c57b8;try{const _0x3e4126=await fetchRulesFromCDN();return _0x3e4126[_0xa38385(0xe9)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x162a93=a271_0x3c57b8;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x162a93(0xe7));throw new Error(_0x162a93(0xe2)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x9c2d){const _0x34b459=a271_0x3c57b8,_0x4fb87c=await fetchRulesFromCDN()[_0x34b459(0xe8)](()=>null);let _0x3e623c;_0x4fb87c?(_0x3e623c=_0x4fb87c[_0x34b459(0xe9)],_0x4fb87c['lastUpdated']&&(_0x3e623c=appendUpdateTime(_0x3e623c,_0x4fb87c[_0x34b459(0xd3)]))):_0x3e623c=readLocalTemplate();const _0x5f2d3a=dirname(_0x9c2d);!existsSync(_0x5f2d3a)&&mkdirSync(_0x5f2d3a,{'recursive':!![]}),writeFileSync(_0x9c2d,_0x3e623c,_0x34b459(0xe7));}export async function copyRulesToCursor(_0x339ab1){const _0x1808fc=a271_0x3c57b8,_0xaef3a9=join(_0x339ab1,_0x1808fc(0xd2)),_0x5609a8=join(_0xaef3a9,_0x1808fc(0xe6));if(existsSync(_0x5609a8))return![];return await writeRulesFile(_0x5609a8),!![];}export async function copyRulesToAgentsMd(_0xa47cb5){const _0xe3a802=a271_0x3c57b8,_0x1c5691=join(_0xa47cb5,_0xe3a802(0xd1));if(existsSync(_0x1c5691))return![];return await writeRulesFile(_0x1c5691),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x77165d){return new Promise(_0x21ffad=>setTimeout(_0x21ffad,_0x77165d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a273_0x2ec76a=a273_0x3543;function a273_0x10e7(){const _0x1648c8=['pad','join','toISOString','1992626meQLuf','LOVRABET','name','pop','.tsx','getHours','toComponentName','toDisplayTitle','1602156vFHBWE','isDirectory','replaceApiContent','default','toUpperCase','utf8','942036dmdqUK','模板内容替换完成','.json','processTemplate','includes','split','template','开始处理模板内容替换','toLowerCase','.jsx','getMinutes','info','458740tneMeK','alias','模板内容替换失败','success','3000501LUnMPO','.css','padStart','48WRIKSM','readFile','error','tableName','.scss','1891280vXTsDr','formatLocalTimestamp','now','promises','api','datasetCode:\x20\x22','.md','tableName:\x20\x22','\x0a\x20\x20\x20\x20{\x20','153730LEICci','processFile','mkdir','getFullYear','YourModel','writeFile','.tpl','map','getMonth','replace','.js','slice','endsWith','processDirectory','replaceContent'];a273_0x10e7=function(){return _0x1648c8;};return a273_0x10e7();}(function(_0xa73cc2,_0x5b97de){const _0xa0b389=a273_0x3543,_0x3e6f8e=_0xa73cc2();while(!![]){try{const _0x475b96=parseInt(_0xa0b389(0x1a1))/0x1+-parseInt(_0xa0b389(0x187))/0x2+parseInt(_0xa0b389(0x195))/0x3+-parseInt(_0xa0b389(0x1a8))/0x4*(-parseInt(_0xa0b389(0x1b6))/0x5)+parseInt(_0xa0b389(0x18f))/0x6+parseInt(_0xa0b389(0x1a5))/0x7+-parseInt(_0xa0b389(0x1ad))/0x8;if(_0x475b96===_0x5b97de)break;else _0x3e6f8e['push'](_0x3e6f8e['shift']());}catch(_0x9b638d){_0x3e6f8e['push'](_0x3e6f8e['shift']());}}}(a273_0x10e7,0x939ea));import a273_0x1a72d9 from'node:fs';import a273_0x28524c from'node:path';function a273_0x3543(_0x31e684,_0x16845c){_0x31e684=_0x31e684-0x184;const _0x10e73c=a273_0x10e7();let _0x35430b=_0x10e73c[_0x31e684];return _0x35430b;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a273_0x2ec76a(0x184)](_0x52810b){const _0x5659a4=a273_0x2ec76a;return String(_0x52810b)[_0x5659a4(0x1a7)](0x2,'0');}static[a273_0x2ec76a(0x1ae)](_0x1310b0){const _0x165d4d=a273_0x2ec76a,_0x12f2fd=_0x1310b0[_0x165d4d(0x1b9)](),_0x574b07=this[_0x165d4d(0x184)](_0x1310b0[_0x165d4d(0x1be)]()+0x1),_0x3c0433=this[_0x165d4d(0x184)](_0x1310b0['getDate']()),_0x22ae6a=this['pad'](_0x1310b0[_0x165d4d(0x18c)]()),_0x5ee1c1=this[_0x165d4d(0x184)](_0x1310b0[_0x165d4d(0x19f)]()),_0x11bee5=this[_0x165d4d(0x184)](_0x1310b0['getSeconds']());return{'createdAt':_0x12f2fd+'-'+_0x574b07+'-'+_0x3c0433+'\x20'+_0x22ae6a+':'+_0x5ee1c1+':'+_0x11bee5,'createdDate':_0x12f2fd+'-'+_0x574b07+'-'+_0x3c0433,'createdTime':_0x22ae6a+':'+_0x5ee1c1+':'+_0x11bee5};}static['toComponentName'](_0x453d0f){const _0x836d29=a273_0x2ec76a,_0x3fd8b4=_0x453d0f[_0x836d29(0x19a)]('/')[_0x836d29(0x18a)]()||_0x453d0f;return _0x3fd8b4[_0x836d29(0x19a)]('-')[_0x836d29(0x1bd)](_0x10594d=>_0x10594d['charAt'](0x0)[_0x836d29(0x193)]()+_0x10594d[_0x836d29(0x1c1)](0x1)[_0x836d29(0x19d)]())[_0x836d29(0x185)]('');}static[a273_0x2ec76a(0x18e)](_0x6b9de9){const _0x1f6e59=a273_0x2ec76a,_0x30fef4=_0x6b9de9[_0x1f6e59(0x19a)]('/')[_0x1f6e59(0x18a)]()||_0x6b9de9;return _0x30fef4[_0x1f6e59(0x19a)]('-')[_0x1f6e59(0x1bd)](_0x4f5411=>_0x4f5411['charAt'](0x0)[_0x1f6e59(0x193)]()+_0x4f5411[_0x1f6e59(0x1c1)](0x1)[_0x1f6e59(0x19d)]())[_0x1f6e59(0x185)]('\x20');}static['replaceContent'](_0xdab9db,_0xb21965,_0x3a7b21){const _0x2143e5=a273_0x2ec76a,_0x1ca9e1=this[_0x2143e5(0x18d)](_0xb21965),_0x5beb9b=this[_0x2143e5(0x18e)](_0xb21965),{createdAt:_0x37be87,createdDate:_0x5898f6,createdTime:_0x1ddaa3}=this['formatLocalTimestamp'](new Date());let _0x531ebc=_0xdab9db[_0x2143e5(0x1bf)](/\{CliVersion\}/g,CLI_VERSION)[_0x2143e5(0x1bf)](/\{ComponentName\}/g,_0x1ca9e1)[_0x2143e5(0x1bf)](/\{DisplayTitle\}/g,_0x5beb9b)[_0x2143e5(0x1bf)](/\{PageName\}/g,_0xb21965)[_0x2143e5(0x1bf)](/\{TemplateName\}/g,_0x3a7b21)[_0x2143e5(0x1bf)](/\{CreatedAt\}/g,_0x37be87)['replace'](/\{CreatedDate\}/g,_0x5898f6)['replace'](/\{CreatedTime\}/g,_0x1ddaa3);return _0x531ebc;}static[a273_0x2ec76a(0x191)](_0x74c487,_0x324271,_0x45ee51,_0x54fa61,_0x5a1fa2,_0x567d3a,_0x3a6dab,_0x1d7fea){const _0x3abb26=a273_0x2ec76a,_0x197acc=new Date(),_0x5d90a3=_0x197acc[_0x3abb26(0x186)](),_0x15815d=_0x45ee51[_0x3abb26(0x1bd)](_0x47a096=>{const _0x5a0250=_0x3abb26,_0x2ebea1=[_0x5a0250(0x1b2)+_0x47a096['datasetCode']+'\x22',_0x5a0250(0x1b4)+_0x47a096[_0x5a0250(0x1ab)]+'\x22','name:\x20\x22'+_0x47a096[_0x5a0250(0x189)]+'\x22'];return _0x47a096[_0x5a0250(0x1a2)]&&_0x2ebea1['push']('alias:\x20\x22'+_0x47a096[_0x5a0250(0x1a2)]+'\x22'),_0x5a0250(0x1b5)+_0x2ebea1[_0x5a0250(0x185)](',\x20')+'\x20},';})[_0x3abb26(0x185)](''),_0x44ef80=_0x54fa61||_0x45ee51[0x0]?.[_0x3abb26(0x1a2)]||_0x3abb26(0x1ba);let _0xcea84a=_0x74c487[_0x3abb26(0x1bf)](/\{AppCode\}/g,_0x324271)['replace'](/\{ModelConfigs\}/g,_0x15815d)['replace'](/\{ExampleModelName\}/g,_0x44ef80)['replace'](/\{ApiFileName\}/g,_0x5a1fa2||_0x3abb26(0x1b1))['replace'](/\{ConfigName\}/g,_0x567d3a||_0x3abb26(0x192))[_0x3abb26(0x1bf)](/\{ClientConfigParam\}/g,_0x3a6dab||'')[_0x3abb26(0x1bf)](/\{VarPrefix\}/g,_0x1d7fea||_0x3abb26(0x188))[_0x3abb26(0x1bf)](/\{CreatedAt\}/g,_0x5d90a3);return _0xcea84a;}static async[a273_0x2ec76a(0x198)](_0x50db7e,_0xa2e418,_0x5b1ac5,_0x3a4936,_0xb3fdad=!![]){const _0x9a6b85=a273_0x2ec76a,_0x3bf563=Date[_0x9a6b85(0x1af)]();try{_0xb3fdad&&logger[_0x9a6b85(0x1a0)](_0x9a6b85(0x19b),_0x9a6b85(0x19c),{'templatePath':_0x50db7e,'targetPath':_0xa2e418,'pageName':_0x5b1ac5,'templateName':_0x3a4936});await a273_0x1a72d9[_0x9a6b85(0x1b0)][_0x9a6b85(0x1b8)](_0xa2e418,{'recursive':!![]}),await this[_0x9a6b85(0x1c3)](_0x50db7e,_0xa2e418,_0x5b1ac5,_0x3a4936);if(_0xb3fdad){const _0x5aae05=Date[_0x9a6b85(0x1af)]()-_0x3bf563;logger[_0x9a6b85(0x1a4)]('template',_0x9a6b85(0x196),_0x5aae05,{'pageName':_0x5b1ac5,'templateName':_0x3a4936});}}catch(_0x487ee3){if(_0xb3fdad){const _0x4e4216=Date[_0x9a6b85(0x1af)]()-_0x3bf563;logger[_0x9a6b85(0x1aa)]('template',_0x9a6b85(0x1a3),{'templatePath':_0x50db7e,'targetPath':_0xa2e418,'pageName':_0x5b1ac5,'templateName':_0x3a4936,'error':_0x487ee3 instanceof Error?_0x487ee3['message']:String(_0x487ee3),'duration':_0x4e4216});}throw _0x487ee3;}}static async[a273_0x2ec76a(0x1c3)](_0x47606a,_0x489f2e,_0x2a7219,_0x1d0ef8){const _0x41684f=a273_0x2ec76a,_0x1d02eb=await a273_0x1a72d9['promises']['readdir'](_0x47606a,{'withFileTypes':!![]});for(const _0x576a01 of _0x1d02eb){const _0x26078d=a273_0x28524c[_0x41684f(0x185)](_0x47606a,_0x576a01[_0x41684f(0x189)]);let _0x2f05dd=a273_0x28524c[_0x41684f(0x185)](_0x489f2e,_0x576a01[_0x41684f(0x189)]);_0x576a01[_0x41684f(0x189)][_0x41684f(0x1c2)](_0x41684f(0x1bc))&&(_0x2f05dd=a273_0x28524c[_0x41684f(0x185)](_0x489f2e,_0x576a01[_0x41684f(0x189)]['replace'](/\.tpl$/,'')));if(_0x576a01[_0x41684f(0x190)]())await a273_0x1a72d9['promises'][_0x41684f(0x1b8)](_0x2f05dd,{'recursive':!![]}),await this[_0x41684f(0x1c3)](_0x26078d,_0x2f05dd,_0x2a7219,_0x1d0ef8);else _0x576a01['isFile']()&&await this['processFile'](_0x26078d,_0x2f05dd,_0x2a7219,_0x1d0ef8);}}static async[a273_0x2ec76a(0x1b7)](_0x2ee8df,_0x130fe2,_0x54f974,_0x2750d3){const _0x21a450=a273_0x2ec76a,_0x2c447d=a273_0x28524c['extname'](_0x2ee8df)['toLowerCase']();_0x2ee8df[_0x21a450(0x1c2)]('.tpl')&&(_0x130fe2=_0x130fe2['replace'](/\.tpl$/,''));const _0x50f1e1=[_0x21a450(0x18b),'.ts',_0x21a450(0x19e),_0x21a450(0x1c0),_0x21a450(0x197),_0x21a450(0x1b3),_0x21a450(0x1a6),_0x21a450(0x1ac),_0x21a450(0x1bc)];if(_0x50f1e1[_0x21a450(0x199)](_0x2c447d)||_0x2ee8df['endsWith'](_0x21a450(0x1bc))){const _0x1cf27e=await a273_0x1a72d9[_0x21a450(0x1b0)][_0x21a450(0x1a9)](_0x2ee8df,_0x21a450(0x194)),_0x5bd546=this[_0x21a450(0x1c4)](_0x1cf27e,_0x54f974,_0x2750d3);await a273_0x1a72d9['promises'][_0x21a450(0x1bb)](_0x130fe2,_0x5bd546,_0x21a450(0x194));}else await a273_0x1a72d9[_0x21a450(0x1b0)]['copyFile'](_0x2ee8df,_0x130fe2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a316f,_0xced512){const _0x14ce8b=a274_0x4d0f,_0x46f665=_0x2a316f();while(!![]){try{const _0x11d6d8=parseInt(_0x14ce8b(0x131))/0x1*(-parseInt(_0x14ce8b(0x124))/0x2)+-parseInt(_0x14ce8b(0x134))/0x3*(-parseInt(_0x14ce8b(0x133))/0x4)+-parseInt(_0x14ce8b(0x122))/0x5+parseInt(_0x14ce8b(0x12c))/0x6+parseInt(_0x14ce8b(0x132))/0x7*(parseInt(_0x14ce8b(0x117))/0x8)+parseInt(_0x14ce8b(0x119))/0x9+-parseInt(_0x14ce8b(0x116))/0xa;if(_0x11d6d8===_0xced512)break;else _0x46f665['push'](_0x46f665['shift']());}catch(_0x59e764){_0x46f665['push'](_0x46f665['shift']());}}}(a274_0x1136,0x22cab));import{mkdir,readFile,writeFile}from'node:fs/promises';function a274_0x4d0f(_0x442f12,_0x92f751){_0x442f12=_0x442f12-0x115;const _0x1136a7=a274_0x1136();let _0x4d0f32=_0x1136a7[_0x442f12];return _0x4d0f32;}import{homedir}from'node:os';function a274_0x1136(){const _0x3f50ee=['lastNotifiedAt','\x20available,\x20current\x20','https://www.npmjs.com/package/','574260bmjyfP','trim','stringify','toLowerCase','utf8','1Sosptd','147ZWSKcc','370676vmDWgr','6nkZCkA','object','rabetbase-cli','2078910YgPtSn','94352qFXpRy','parse','1419489gcIIzl','checkedAt','/v/','number','.cache','true','now','\x20update','latest','330860XhItXK','stableVersion','539746TaTOTz','valid',',\x20run:\x20','lastNotifiedVersion','yes'];a274_0x1136=function(){return _0x3f50ee;};return a274_0x1136();}import{dirname,join}from'node:path';import a274_0x401bb0 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x59462d=a274_0x4d0f,_0x46b13e=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()[_0x59462d(0x12f)]();return _0x46b13e==='1'||_0x46b13e===_0x59462d(0x11e)||_0x46b13e===_0x59462d(0x128);}function cacheRoot(){const _0x373374=a274_0x4d0f;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x373374(0x11d));}export function getUpdateNoticeCachePath(){const _0x5f5684=a274_0x4d0f;return join(cacheRoot(),_0x5f5684(0x115),'update-check.json');}async function readUpdateNoticeCache(){const _0x513fd2=a274_0x4d0f;try{const _0x2ddeca=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x1b8c00=JSON[_0x513fd2(0x118)](_0x2ddeca);if(!_0x1b8c00||typeof _0x1b8c00!==_0x513fd2(0x135))return{};return _0x1b8c00;}catch{return{};}}async function writeUpdateNoticeCache(_0x3841b4){const _0x48ac3c=a274_0x4d0f;try{const _0x2c4ba2=getUpdateNoticeCachePath();await mkdir(dirname(_0x2c4ba2),{'recursive':!![]}),await writeFile(_0x2c4ba2,JSON[_0x48ac3c(0x12e)](_0x3841b4,null,0x2)+'\x0a',_0x48ac3c(0x130));}catch{}}function isFreshCheck(_0x2530ec,_0x9dacba){const _0x462846=a274_0x4d0f;return typeof _0x2530ec[_0x462846(0x11a)]===_0x462846(0x11c)&&_0x9dacba-_0x2530ec['checkedAt']<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x323dae,_0x14c917,_0x3fb5ca){const _0x28a102=a274_0x4d0f;return _0x323dae[_0x28a102(0x127)]===_0x14c917&&typeof _0x323dae[_0x28a102(0x129)]===_0x28a102(0x11c)&&_0x3fb5ca-_0x323dae[_0x28a102(0x129)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xed4689){const _0x38d425=a274_0x4d0f;return _0x38d425(0x12b)+NPM_PACKAGE_NAME+_0x38d425(0x11b)+_0xed4689;}export async function resolveLatestUpdateNotice(){const _0x17aaf3=a274_0x4d0f;if(isUpdateNoticeDisabled())return null;try{const _0x49ae6f=Date[_0x17aaf3(0x11f)](),_0x5dfe9d=getCliVersion(),_0x27b782=await readUpdateNoticeCache();let _0x591580=isFreshCheck(_0x27b782,_0x49ae6f)?_0x27b782[_0x17aaf3(0x121)]?.[_0x17aaf3(0x12d)]():undefined;if(!_0x591580&&!isFreshCheck(_0x27b782,_0x49ae6f)){const _0x77552c=await getCliVersionPolicy();_0x591580=_0x77552c?.[_0x17aaf3(0x123)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x27b782,'checkedAt':_0x49ae6f,'latest':_0x591580,'failed':!_0x591580});}if(!_0x591580||!a274_0x401bb0[_0x17aaf3(0x125)](_0x5dfe9d)||!a274_0x401bb0[_0x17aaf3(0x125)](_0x591580))return null;if(a274_0x401bb0['gte'](_0x5dfe9d,_0x591580))return null;if(isRecentlyNotified(_0x27b782,_0x591580,_0x49ae6f))return null;const _0xcdcb0f=CLI_BIN_NAME+_0x17aaf3(0x120);return await writeUpdateNoticeCache({..._0x27b782,'checkedAt':isFreshCheck(_0x27b782,_0x49ae6f)?_0x27b782[_0x17aaf3(0x11a)]:_0x49ae6f,'latest':_0x591580,'failed':![],'lastNotifiedVersion':_0x591580,'lastNotifiedAt':_0x49ae6f}),{'command':_0xcdcb0f,'current':_0x5dfe9d,'latest':_0x591580,'url':buildNpmVersionUrl(_0x591580),'message':CLI_BIN_NAME+'\x20'+_0x591580+_0x17aaf3(0x12a)+_0x5dfe9d+_0x17aaf3(0x126)+_0xcdcb0f};}catch{return null;}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a275_0x177c(_0x3379a9,_0x1d220b){_0x3379a9=_0x3379a9-0xa8;var _0x5687f1=a275_0x5687();var _0x177c6c=_0x5687f1[_0x3379a9];return _0x177c6c;}(function(_0x459e97,_0x3777f0){var _0x519c97=a275_0x177c,_0x11a97d=_0x459e97();while(!![]){try{var _0x56a439=parseInt(_0x519c97(0xae))/0x1+parseInt(_0x519c97(0xaa))/0x2+-parseInt(_0x519c97(0xa9))/0x3*(-parseInt(_0x519c97(0xac))/0x4)+parseInt(_0x519c97(0xa8))/0x5*(parseInt(_0x519c97(0xaf))/0x6)+parseInt(_0x519c97(0xb0))/0x7+-parseInt(_0x519c97(0xab))/0x8+-parseInt(_0x519c97(0xad))/0x9;if(_0x56a439===_0x3777f0)break;else _0x11a97d['push'](_0x11a97d['shift']());}catch(_0x5d4af2){_0x11a97d['push'](_0x11a97d['shift']());}}}(a275_0x5687,0x6c416));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a275_0x5687(){var _0x4963fe=['4WOSaQQ','9899064JFSlKo','161948OJNdjH','6LkiJiN','1120322JBCjfA','1855220RslfFI','1187409RalMNr','1412836cAKUbD','2015592FmIiOP'];a275_0x5687=function(){return _0x4963fe;};return a275_0x5687();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a276_0x4791(_0xd74b7c,_0x3f5333){_0xd74b7c=_0xd74b7c-0x119;var _0x311d2c=a276_0x311d();var _0x47918e=_0x311d2c[_0xd74b7c];return _0x47918e;}(function(_0xc4e2dd,_0x58494a){var _0x478ea4=a276_0x4791,_0x4d56e6=_0xc4e2dd();while(!![]){try{var _0xc353c6=parseInt(_0x478ea4(0x121))/0x1+-parseInt(_0x478ea4(0x122))/0x2+parseInt(_0x478ea4(0x11c))/0x3+-parseInt(_0x478ea4(0x120))/0x4+parseInt(_0x478ea4(0x11e))/0x5*(-parseInt(_0x478ea4(0x11b))/0x6)+parseInt(_0x478ea4(0x11a))/0x7*(parseInt(_0x478ea4(0x11d))/0x8)+-parseInt(_0x478ea4(0x11f))/0x9*(-parseInt(_0x478ea4(0x119))/0xa);if(_0xc353c6===_0x58494a)break;else _0x4d56e6['push'](_0x4d56e6['shift']());}catch(_0x32057a){_0x4d56e6['push'](_0x4d56e6['shift']());}}}(a276_0x311d,0x7372d));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a276_0x311d(){var _0x3c2408=['2616lvxPOE','1732662RqCEur','10816BjWuQi','8670OhzOvl','162423PjQhHk','791648tiqgdG','2710JhbGtR','1635540EEWdJg','890fuEWiI','301ggdUDl'];a276_0x311d=function(){return _0x3c2408;};return a276_0x311d();}export async function withActiveCookie(_0x2d6765,_0x226ec5){setActiveCookie(_0x2d6765);try{return await _0x226ec5();}finally{clearActiveCookie();}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1ef99f,_0x172073){var _0x26eb8c=a277_0x49ae,_0x24115f=_0x1ef99f();while(!![]){try{var _0x222030=-parseInt(_0x26eb8c(0x104))/0x1*(parseInt(_0x26eb8c(0xfa))/0x2)+parseInt(_0x26eb8c(0x102))/0x3*(-parseInt(_0x26eb8c(0x106))/0x4)+parseInt(_0x26eb8c(0xff))/0x5+parseInt(_0x26eb8c(0x100))/0x6+-parseInt(_0x26eb8c(0xfe))/0x7+-parseInt(_0x26eb8c(0xfb))/0x8*(-parseInt(_0x26eb8c(0x101))/0x9)+parseInt(_0x26eb8c(0xfc))/0xa*(parseInt(_0x26eb8c(0x103))/0xb);if(_0x222030===_0x172073)break;else _0x24115f['push'](_0x24115f['shift']());}catch(_0x5cb6e3){_0x24115f['push'](_0x24115f['shift']());}}}(a277_0x51be,0xdd8a6));function a277_0x51be(){var _0x2a0b7c=['9uWOMmE','1733112tnrJhG','2585XiygSO','223219zWWXIV','write','4RNpofX','12xypCwd','8724656paBKXj','52870TyIipQ','stderr','11153989rnWFOs','3512230wVcxmz','8294412jIIwlw'];a277_0x51be=function(){return _0x2a0b7c;};return a277_0x51be();}function a277_0x49ae(_0x5e62a1,_0x501417){_0x5e62a1=_0x5e62a1-0xfa;var _0x51be52=a277_0x51be();var _0x49ae7c=_0x51be52[_0x5e62a1];return _0x49ae7c;}export function writeCliSideChannelLine(_0x261bb7){var _0x2ab7f3=a277_0x49ae;process[_0x2ab7f3(0xfd)][_0x2ab7f3(0x105)](_0x261bb7+'\x0a');}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovrabet/rabetbase-cli",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.16-beta.2",
|
|
4
4
|
"description": "Developer CLI for Lovrabet apps, datasets, pages, SQL, BFF, database connections, skills, and AI agent workflows.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"keywords": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"test:ui": "vitest --ui",
|
|
48
48
|
"test:watch": "vitest --watch",
|
|
49
49
|
"test:unit": "vitest run test/unit",
|
|
50
|
-
"test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/
|
|
50
|
+
"test:app": "vitest run test/unit/commands/app-shared.test.ts test/unit/commands/workspace-add.test.ts test/unit/commands/workspace-remove.test.ts test/unit/commands/app-list.test.ts test/unit/commands/workspace.test.ts test/unit/commands/app-workspace-migration.test.ts",
|
|
51
51
|
"test:integration": "vitest run test/integration",
|
|
52
52
|
"test:e2e": "vitest run test/e2e",
|
|
53
53
|
"test:e2e:daily": "RABETBASE_E2E_DAILY=1 vitest run test/e2e/daily-app-smoke.test.ts",
|
package/lib/commands/app/add.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a18_0x3d7a7c=a18_0x114e;(function(_0x2e574e,_0x4cdd6b){const _0x4cb19b=a18_0x114e,_0x112334=_0x2e574e();while(!![]){try{const _0x7771ee=-parseInt(_0x4cb19b(0xcb))/0x1+-parseInt(_0x4cb19b(0xd6))/0x2+parseInt(_0x4cb19b(0xc8))/0x3+-parseInt(_0x4cb19b(0xd1))/0x4*(parseInt(_0x4cb19b(0xce))/0x5)+parseInt(_0x4cb19b(0xd2))/0x6*(-parseInt(_0x4cb19b(0xd4))/0x7)+-parseInt(_0x4cb19b(0xcf))/0x8*(-parseInt(_0x4cb19b(0xd7))/0x9)+parseInt(_0x4cb19b(0xcc))/0xa;if(_0x7771ee===_0x4cdd6b)break;else _0x112334['push'](_0x112334['shift']());}catch(_0x262980){_0x112334['push'](_0x112334['shift']());}}}(a18_0x2fcd,0x6c07a));import{CLI_BIN_NAME}from'../../constant/cli.js';function a18_0x2fcd(){const _0x1dc8fe=['15yZYFyO','4136BnYEXS','add','437548ExCxlK','138dARNOx','write','165571CKXuHA','name','1574102lbfGEW','14949TdwdlB','\x20workspace\x20add','312351NLlkIp','Deprecated:\x20use\x20workspace\x20add\x20to\x20register\x20an\x20app\x20profile','App\x20profile\x20name','322574kMzqwW','14614410uZIWhs','2026-07'];a18_0x2fcd=function(){return _0x1dc8fe;};return a18_0x2fcd();}function a18_0x114e(_0x33ff4f,_0x17b756){_0x33ff4f=_0x33ff4f-0xc8;const _0x2fcd96=a18_0x2fcd();let _0x114e01=_0x2fcd96[_0x33ff4f];return _0x114e01;}import{buildAppAddFlags,runAppAdd,validateAppName}from'../../commands/common/app-registry.js';export const appAddDefinition={'service':'app','command':a18_0x3d7a7c(0xd0),'description':a18_0x3d7a7c(0xc9),'risk':a18_0x3d7a7c(0xd3),'requiresAuth':![],'requiresAppCode':![],'hidden':!![],'deprecated':{'replacement':CLI_BIN_NAME+a18_0x3d7a7c(0xd8),'since':a18_0x3d7a7c(0xcd)},'args':[{'name':a18_0x3d7a7c(0xd5),'description':a18_0x3d7a7c(0xca),'required':!![]}],'flags':buildAppAddFlags(),'validate':_0x3d2b77=>validateAppName(_0x3d2b77,'app\x20add'),'execute':_0x2e77f8=>runAppAdd(_0x2e77f8,'app\x20add')};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a22_0x2aefdf=a22_0x29f1;(function(_0x5d0d91,_0x70f049){const _0x54aa44=a22_0x29f1,_0x421f2c=_0x5d0d91();while(!![]){try{const _0x4d9410=-parseInt(_0x54aa44(0x1da))/0x1+-parseInt(_0x54aa44(0x1ce))/0x2*(parseInt(_0x54aa44(0x1d7))/0x3)+-parseInt(_0x54aa44(0x1d9))/0x4+-parseInt(_0x54aa44(0x1d5))/0x5*(-parseInt(_0x54aa44(0x1cf))/0x6)+-parseInt(_0x54aa44(0x1d0))/0x7+-parseInt(_0x54aa44(0x1d8))/0x8+parseInt(_0x54aa44(0x1d2))/0x9*(parseInt(_0x54aa44(0x1d3))/0xa);if(_0x4d9410===_0x70f049)break;else _0x421f2c['push'](_0x421f2c['shift']());}catch(_0xea08a6){_0x421f2c['push'](_0x421f2c['shift']());}}}(a22_0x9096,0xe69ce));import{CLI_BIN_NAME}from'../../constant/cli.js';import{buildAppRemoveFlags,runAppRemove,validateAppName}from'../../commands/common/app-registry.js';function a22_0x29f1(_0x4ed483,_0x4b0262){_0x4ed483=_0x4ed483-0x1cb;const _0x909695=a22_0x9096();let _0x29f197=_0x909695[_0x4ed483];return _0x29f197;}export const appRemoveDefinition={'service':a22_0x2aefdf(0x1cb),'command':a22_0x2aefdf(0x1d4),'description':'Deprecated:\x20use\x20workspace\x20remove\x20to\x20remove\x20an\x20app\x20profile','risk':'high-risk-write','requiresAuth':![],'requiresAppCode':![],'hidden':!![],'deprecated':{'replacement':CLI_BIN_NAME+a22_0x2aefdf(0x1d1),'since':'2026-07'},'args':[{'name':a22_0x2aefdf(0x1cd),'description':a22_0x2aefdf(0x1cc),'required':!![]}],'flags':buildAppRemoveFlags(),'validate':_0x2ed7d1=>validateAppName(_0x2ed7d1,a22_0x2aefdf(0x1d6)),'execute':_0x4457f0=>runAppRemove(_0x4457f0,a22_0x2aefdf(0x1d6))};function a22_0x9096(){const _0x34f940=['46dzBmTs','1930974FRYxAx','11604096oODubf','\x20workspace\x20remove','18GdEmAu','17697830soolBq','remove','25jIqstY','app\x20remove','238737nYhjyR','157056zvRteo','1986240LkcgjW','199884DeUxQr','app','App\x20profile\x20name\x20to\x20remove','name'];a22_0x9096=function(){return _0x34f940;};return a22_0x9096();}
|