@lovrabet/rabetbase-cli 2.1.12-beta.2 → 2.1.12-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/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/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.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-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-selector.js +1 -1
- package/lib/commands/common/flags.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/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.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/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/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.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/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.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/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/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/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.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/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.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-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/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/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/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/lib/utils/params.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a196_0x1b71(_0x79d258,_0x416677){_0x79d258=_0x79d258-0x8c;const _0xdd0e4c=a196_0xdd0e();let _0x1b71af=_0xdd0e4c[_0x79d258];return _0x1b71af;}(function(_0x2f1dd8,_0x4629a0){const _0x143ad6=a196_0x1b71,_0x67eaf4=_0x2f1dd8();while(!![]){try{const _0x45d2e2=parseInt(_0x143ad6(0x8c))/0x1+parseInt(_0x143ad6(0x91))/0x2*(-parseInt(_0x143ad6(0x9a))/0x3)+parseInt(_0x143ad6(0x99))/0x4*(parseInt(_0x143ad6(0x95))/0x5)+-parseInt(_0x143ad6(0x8f))/0x6+-parseInt(_0x143ad6(0x97))/0x7+-parseInt(_0x143ad6(0x96))/0x8+parseInt(_0x143ad6(0x98))/0x9*(parseInt(_0x143ad6(0x8e))/0xa);if(_0x45d2e2===_0x4629a0)break;else _0x67eaf4['push'](_0x67eaf4['shift']());}catch(_0x765bd9){_0x67eaf4['push'](_0x67eaf4['shift']());}}}(a196_0xdd0e,0x4190f));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x19513d){const _0x58379b=a196_0x1b71;if(!_0x19513d)return undefined;let _0x101fb3;try{_0x101fb3=JSON[_0x58379b(0x8d)](_0x19513d);}catch{throw CliErrors['validation'](_0x58379b(0x93)+_0x19513d);}if(!_0x101fb3||typeof _0x101fb3!==_0x58379b(0x90)||Array[_0x58379b(0x92)](_0x101fb3))throw CliErrors['validation'](_0x58379b(0x94),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x101fb3;}function a196_0xdd0e(){const _0x4eb615=['object','372nhcrgZ','isArray','Invalid\x20JSON\x20for\x20--params:\x20','--params\x20must\x20be\x20a\x20JSON\x20object','357405FHeNjE','1433752cXrHXo','3119536wTsGUi','52767fbVjzW','20ALnCzp','7317QOzwwN','403500SjxSyi','parse','1130wYnXQw','458064LbZDNj'];a196_0xdd0e=function(){return _0x4eb615;};return a196_0xdd0e();}
|
package/lib/utils/platform.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a197_0x501070=a197_0x30bb;function a197_0x30bb(_0xa401a3,_0x5975f6){_0xa401a3=_0xa401a3-0x142;const _0x16c18d=a197_0x16c1();let _0x30bb12=_0x16c18d[_0xa401a3];return _0x30bb12;}(function(_0x163a16,_0x48c149){const _0x166371=a197_0x30bb,_0x1988e7=_0x163a16();while(!![]){try{const _0x21446d=-parseInt(_0x166371(0x149))/0x1*(-parseInt(_0x166371(0x14c))/0x2)+-parseInt(_0x166371(0x148))/0x3*(parseInt(_0x166371(0x151))/0x4)+parseInt(_0x166371(0x14b))/0x5*(parseInt(_0x166371(0x143))/0x6)+parseInt(_0x166371(0x14e))/0x7*(parseInt(_0x166371(0x146))/0x8)+parseInt(_0x166371(0x150))/0x9*(-parseInt(_0x166371(0x147))/0xa)+-parseInt(_0x166371(0x14d))/0xb*(-parseInt(_0x166371(0x144))/0xc)+parseInt(_0x166371(0x145))/0xd*(-parseInt(_0x166371(0x152))/0xe);if(_0x21446d===_0x48c149)break;else _0x1988e7['push'](_0x1988e7['shift']());}catch(_0x15f135){_0x1988e7['push'](_0x1988e7['shift']());}}}(a197_0x16c1,0x95f63));function a197_0x16c1(){const _0x3fdf2b=['5283459WEJMqd','4KtoZTX','14EYyZni','.cmd','6PkkqOO','781812fWsfDn','7386977xQkPwH','61176yDvdWe','10kXLbuC','2516742vvISSb','1vNexwz','win32','2335415leZPMf','1688860ctxAbX','55KYwyjV','889oeEBJx','platform'];a197_0x16c1=function(){return _0x3fdf2b;};return a197_0x16c1();}export const isWindows=process[a197_0x501070(0x14f)]===a197_0x501070(0x14a);export function resolveNpmBin(_0x36f999){const _0x4a022f=a197_0x501070;return isWindows?_0x36f999+_0x4a022f(0x142):_0x36f999;}
|
package/lib/utils/rules-cdn.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a198_0x112d(){const _0x270b01=['CDN\x20返回数据格式错误','11ocMFop','80awLnRD','json','../../templates/rules/lovrabet_rules.mdc.tpl','statusText','本地模板文件不存在:\x20','application/json','730192AafDZQ','status','content','752751FTSuGF','1028842KxIkpQ','utf-8','1yynFOB','11419360pnUpKd','247278DBJhuI','.cursor/rules','5kerNaH','lovrabet_rules.mdc','4844uhpiFE','2395116QWneOZ','lastUpdated'];a198_0x112d=function(){return _0x270b01;};return a198_0x112d();}const a198_0x1cceee=a198_0x5270;(function(_0x577492,_0x5a1327){const _0x4dfd98=a198_0x5270,_0x5e89b6=_0x577492();while(!![]){try{const _0x17b14c=parseInt(_0x4dfd98(0xf4))/0x1*(-parseInt(_0x4dfd98(0xf2))/0x2)+parseInt(_0x4dfd98(0xf1))/0x3+-parseInt(_0x4dfd98(0xee))/0x4+parseInt(_0x4dfd98(0xf8))/0x5*(-parseInt(_0x4dfd98(0xf6))/0x6)+-parseInt(_0x4dfd98(0xfa))/0x7*(-parseInt(_0x4dfd98(0xe8))/0x8)+-parseInt(_0x4dfd98(0xe4))/0x9+parseInt(_0x4dfd98(0xf5))/0xa*(parseInt(_0x4dfd98(0xe7))/0xb);if(_0x17b14c===_0x5a1327)break;else _0x5e89b6['push'](_0x5e89b6['shift']());}catch(_0x913c28){_0x5e89b6['push'](_0x5e89b6['shift']());}}}(a198_0x112d,0x608cb));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 a198_0x5270(_0x56c2dc,_0x3b3529){_0x56c2dc=_0x56c2dc-0xe4;const _0x112d70=a198_0x112d();let _0x52704f=_0x112d70[_0x56c2dc];return _0x52704f;}function getRulesCdnUrl(){const _0x2c9cbb=getTemplateBaseUrl();return _0x2c9cbb+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a198_0x1cceee(0xea));export async function fetchRulesFromCDN(){const _0x452ab6=a198_0x1cceee,_0x4e8173=getRulesCdnUrl(),_0x1c804a=await fetch(_0x4e8173,{'headers':{'Accept':_0x452ab6(0xed)}});if(!_0x1c804a['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x1c804a[_0x452ab6(0xef)]+'\x20'+_0x1c804a[_0x452ab6(0xeb)]);const _0x282274=await _0x1c804a[_0x452ab6(0xe9)]();if(!_0x282274[_0x452ab6(0xf0)]||typeof _0x282274[_0x452ab6(0xf0)]!=='string')throw new Error(_0x452ab6(0xe6));return _0x282274;}export async function getRulesContent(){try{const _0x579f41=await fetchRulesFromCDN();return _0x579f41['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x1b6441=a198_0x1cceee;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x1b6441(0xf3));throw new Error(_0x1b6441(0xec)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4b31a0){const _0x2a3ef0=a198_0x1cceee,_0x5a73b3=await fetchRulesFromCDN()['catch'](()=>null);let _0x22aeea;_0x5a73b3?(_0x22aeea=_0x5a73b3[_0x2a3ef0(0xf0)],_0x5a73b3[_0x2a3ef0(0xe5)]&&(_0x22aeea=appendUpdateTime(_0x22aeea,_0x5a73b3[_0x2a3ef0(0xe5)]))):_0x22aeea=readLocalTemplate();const _0x1f9c30=dirname(_0x4b31a0);!existsSync(_0x1f9c30)&&mkdirSync(_0x1f9c30,{'recursive':!![]}),writeFileSync(_0x4b31a0,_0x22aeea,'utf-8');}export async function copyRulesToCursor(_0x4f3ad7){const _0x111d42=a198_0x1cceee,_0x5669df=join(_0x4f3ad7,_0x111d42(0xf7)),_0xd1487e=join(_0x5669df,_0x111d42(0xf9));if(existsSync(_0xd1487e))return![];return await writeRulesFile(_0xd1487e),!![];}export async function copyRulesToAgentsMd(_0x451faa){const _0x5133b1=join(_0x451faa,'agents.md');if(existsSync(_0x5133b1))return![];return await writeRulesFile(_0x5133b1),!![];}
|
package/lib/utils/sleep.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function sleep(
|
|
1
|
+
export function sleep(_0x14c040){return new Promise(_0x354934=>setTimeout(_0x354934,_0x14c040));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a200_0x31ae08=a200_0x5e97;(function(_0x25ddc7,_0x11dcc6){const _0x33f58a=a200_0x5e97,_0x5f01d5=_0x25ddc7();while(!![]){try{const _0x2059c4=-parseInt(_0x33f58a(0x102))/0x1*(-parseInt(_0x33f58a(0x108))/0x2)+-parseInt(_0x33f58a(0x11d))/0x3*(parseInt(_0x33f58a(0x11e))/0x4)+parseInt(_0x33f58a(0xe3))/0x5+parseInt(_0x33f58a(0xeb))/0x6*(-parseInt(_0x33f58a(0xec))/0x7)+parseInt(_0x33f58a(0xf3))/0x8*(-parseInt(_0x33f58a(0xe0))/0x9)+parseInt(_0x33f58a(0xdf))/0xa*(-parseInt(_0x33f58a(0xfb))/0xb)+parseInt(_0x33f58a(0x11a))/0xc;if(_0x2059c4===_0x11dcc6)break;else _0x5f01d5['push'](_0x5f01d5['shift']());}catch(_0x2ec350){_0x5f01d5['push'](_0x5f01d5['shift']());}}}(a200_0x48a9,0x3c6e4));import a200_0x446372 from'node:fs';import a200_0x2c9fd8 from'node:path';function a200_0x48a9(){const _0x2deedc=['processFile','error','tableName:\x20\x22','toUpperCase','224959EbiHKH','includes','message','datasetCode','.jsx','tableName','2OmsPhG','.scss','.json','模板内容替换完成','.ts','isFile','toDisplayTitle','default','\x20},','getSeconds','charAt','YourModel','formatLocalTimestamp','.tsx','replaceContent','datasetCode:\x20\x22','processDirectory','push','5314140jdRezp','getDate','copyFile','24MUdRHI','214232PNgMEn','.tpl','alias:\x20\x22','pad','template','processTemplate','38670lGTvud','144NeOJvV','utf8','map','2237365UCUhFt','mkdir','writeFile','now','name:\x20\x22','replace','readdir','endsWith','358788owYSBf','35lCFQbg','LOVRABET','toLowerCase','pop','toISOString','getFullYear','开始处理模板内容替换','68216eieyJG','\x0a\x20\x20\x20\x20{\x20','join','slice','split','promises','alias','toComponentName','11KThEiX','name','getMinutes'];a200_0x48a9=function(){return _0x2deedc;};return a200_0x48a9();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a200_0x5e97(_0x1a99a8,_0x31b3b7){_0x1a99a8=_0x1a99a8-0xdd;const _0x48a985=a200_0x48a9();let _0x5e9781=_0x48a985[_0x1a99a8];return _0x5e9781;}export class TemplateReplacer{static[a200_0x31ae08(0x121)](_0xa0d33d){return String(_0xa0d33d)['padStart'](0x2,'0');}static[a200_0x31ae08(0x114)](_0x5ab2fc){const _0x58d145=a200_0x31ae08,_0x24bbf3=_0x5ab2fc[_0x58d145(0xf1)](),_0x3df753=this[_0x58d145(0x121)](_0x5ab2fc['getMonth']()+0x1),_0xbc9783=this[_0x58d145(0x121)](_0x5ab2fc[_0x58d145(0x11b)]()),_0x25e76a=this[_0x58d145(0x121)](_0x5ab2fc['getHours']()),_0x1555dd=this['pad'](_0x5ab2fc[_0x58d145(0xfd)]()),_0x46c631=this[_0x58d145(0x121)](_0x5ab2fc[_0x58d145(0x111)]());return{'createdAt':_0x24bbf3+'-'+_0x3df753+'-'+_0xbc9783+'\x20'+_0x25e76a+':'+_0x1555dd+':'+_0x46c631,'createdDate':_0x24bbf3+'-'+_0x3df753+'-'+_0xbc9783,'createdTime':_0x25e76a+':'+_0x1555dd+':'+_0x46c631};}static[a200_0x31ae08(0xfa)](_0x540fe2){const _0x5ec8d8=a200_0x31ae08,_0x1bcfdb=_0x540fe2[_0x5ec8d8(0xf7)]('/')[_0x5ec8d8(0xef)]()||_0x540fe2;return _0x1bcfdb[_0x5ec8d8(0xf7)]('-')[_0x5ec8d8(0xe2)](_0x32bf0c=>_0x32bf0c[_0x5ec8d8(0x112)](0x0)[_0x5ec8d8(0x101)]()+_0x32bf0c['slice'](0x1)[_0x5ec8d8(0xee)]())[_0x5ec8d8(0xf5)]('');}static[a200_0x31ae08(0x10e)](_0x3ec433){const _0x32651f=a200_0x31ae08,_0x1b1863=_0x3ec433[_0x32651f(0xf7)]('/')['pop']()||_0x3ec433;return _0x1b1863[_0x32651f(0xf7)]('-')[_0x32651f(0xe2)](_0x1e7bf8=>_0x1e7bf8['charAt'](0x0)[_0x32651f(0x101)]()+_0x1e7bf8[_0x32651f(0xf6)](0x1)[_0x32651f(0xee)]())['join']('\x20');}static['replaceContent'](_0x102850,_0x5003ed,_0x3880e5){const _0x1e2e05=a200_0x31ae08,_0x5ba4eb=this[_0x1e2e05(0xfa)](_0x5003ed),_0x1b3164=this[_0x1e2e05(0x10e)](_0x5003ed),{createdAt:_0x455bbf,createdDate:_0x1aed61,createdTime:_0x2180b2}=this[_0x1e2e05(0x114)](new Date());let _0x2a045c=_0x102850[_0x1e2e05(0xe8)](/\{CliVersion\}/g,CLI_VERSION)[_0x1e2e05(0xe8)](/\{ComponentName\}/g,_0x5ba4eb)[_0x1e2e05(0xe8)](/\{DisplayTitle\}/g,_0x1b3164)[_0x1e2e05(0xe8)](/\{PageName\}/g,_0x5003ed)[_0x1e2e05(0xe8)](/\{TemplateName\}/g,_0x3880e5)[_0x1e2e05(0xe8)](/\{CreatedAt\}/g,_0x455bbf)[_0x1e2e05(0xe8)](/\{CreatedDate\}/g,_0x1aed61)[_0x1e2e05(0xe8)](/\{CreatedTime\}/g,_0x2180b2);return _0x2a045c;}static['replaceApiContent'](_0x122843,_0x49c80f,_0x1e8f42,_0x50d7f6,_0x3c9038,_0x21c351,_0x15b6de,_0x1a2b9b){const _0x4a17ce=a200_0x31ae08,_0x2bfd92=new Date(),_0x15ffc3=_0x2bfd92[_0x4a17ce(0xf0)](),_0x482caa=_0x1e8f42[_0x4a17ce(0xe2)](_0x1c2d61=>{const _0x2185c2=_0x4a17ce,_0x307152=[_0x2185c2(0x117)+_0x1c2d61[_0x2185c2(0x105)]+'\x22',_0x2185c2(0x100)+_0x1c2d61[_0x2185c2(0x107)]+'\x22',_0x2185c2(0xe7)+_0x1c2d61[_0x2185c2(0xfc)]+'\x22'];return _0x1c2d61[_0x2185c2(0xf9)]&&_0x307152[_0x2185c2(0x119)](_0x2185c2(0x120)+_0x1c2d61[_0x2185c2(0xf9)]+'\x22'),_0x2185c2(0xf4)+_0x307152[_0x2185c2(0xf5)](',\x20')+_0x2185c2(0x110);})[_0x4a17ce(0xf5)](''),_0x3a8363=_0x50d7f6||_0x1e8f42[0x0]?.[_0x4a17ce(0xf9)]||_0x4a17ce(0x113);let _0x59cc8f=_0x122843['replace'](/\{AppCode\}/g,_0x49c80f)[_0x4a17ce(0xe8)](/\{ModelConfigs\}/g,_0x482caa)[_0x4a17ce(0xe8)](/\{ExampleModelName\}/g,_0x3a8363)[_0x4a17ce(0xe8)](/\{ApiFileName\}/g,_0x3c9038||'api')[_0x4a17ce(0xe8)](/\{ConfigName\}/g,_0x21c351||_0x4a17ce(0x10f))[_0x4a17ce(0xe8)](/\{ClientConfigParam\}/g,_0x15b6de||'')[_0x4a17ce(0xe8)](/\{VarPrefix\}/g,_0x1a2b9b||_0x4a17ce(0xed))['replace'](/\{CreatedAt\}/g,_0x15ffc3);return _0x59cc8f;}static async[a200_0x31ae08(0xde)](_0x391302,_0x54d86c,_0x5e47ce,_0x2d85a1,_0xe19ebd=!![]){const _0x3d65b9=a200_0x31ae08,_0x387956=Date[_0x3d65b9(0xe6)]();try{_0xe19ebd&&logger['info']('template',_0x3d65b9(0xf2),{'templatePath':_0x391302,'targetPath':_0x54d86c,'pageName':_0x5e47ce,'templateName':_0x2d85a1});await a200_0x446372['promises']['mkdir'](_0x54d86c,{'recursive':!![]}),await this['processDirectory'](_0x391302,_0x54d86c,_0x5e47ce,_0x2d85a1);if(_0xe19ebd){const _0x9f58cd=Date['now']()-_0x387956;logger['success']('template',_0x3d65b9(0x10b),_0x9f58cd,{'pageName':_0x5e47ce,'templateName':_0x2d85a1});}}catch(_0x5ccb80){if(_0xe19ebd){const _0x5c8658=Date['now']()-_0x387956;logger[_0x3d65b9(0xff)](_0x3d65b9(0xdd),'模板内容替换失败',{'templatePath':_0x391302,'targetPath':_0x54d86c,'pageName':_0x5e47ce,'templateName':_0x2d85a1,'error':_0x5ccb80 instanceof Error?_0x5ccb80[_0x3d65b9(0x104)]:String(_0x5ccb80),'duration':_0x5c8658});}throw _0x5ccb80;}}static async[a200_0x31ae08(0x118)](_0x4fff5b,_0x4e48a9,_0xdfa6d6,_0x2cfafe){const _0x4b59d8=a200_0x31ae08,_0x1584cd=await a200_0x446372[_0x4b59d8(0xf8)][_0x4b59d8(0xe9)](_0x4fff5b,{'withFileTypes':!![]});for(const _0x2e9dc1 of _0x1584cd){const _0x1f2752=a200_0x2c9fd8[_0x4b59d8(0xf5)](_0x4fff5b,_0x2e9dc1[_0x4b59d8(0xfc)]);let _0x1edd6d=a200_0x2c9fd8[_0x4b59d8(0xf5)](_0x4e48a9,_0x2e9dc1[_0x4b59d8(0xfc)]);_0x2e9dc1[_0x4b59d8(0xfc)][_0x4b59d8(0xea)](_0x4b59d8(0x11f))&&(_0x1edd6d=a200_0x2c9fd8[_0x4b59d8(0xf5)](_0x4e48a9,_0x2e9dc1[_0x4b59d8(0xfc)][_0x4b59d8(0xe8)](/\.tpl$/,'')));if(_0x2e9dc1['isDirectory']())await a200_0x446372[_0x4b59d8(0xf8)][_0x4b59d8(0xe4)](_0x1edd6d,{'recursive':!![]}),await this['processDirectory'](_0x1f2752,_0x1edd6d,_0xdfa6d6,_0x2cfafe);else _0x2e9dc1[_0x4b59d8(0x10d)]()&&await this[_0x4b59d8(0xfe)](_0x1f2752,_0x1edd6d,_0xdfa6d6,_0x2cfafe);}}static async[a200_0x31ae08(0xfe)](_0x53f514,_0x14cc60,_0x38becf,_0x180dc6){const _0x442af9=a200_0x31ae08,_0xd2a6b2=a200_0x2c9fd8['extname'](_0x53f514)[_0x442af9(0xee)]();_0x53f514['endsWith'](_0x442af9(0x11f))&&(_0x14cc60=_0x14cc60['replace'](/\.tpl$/,''));const _0x2497e9=[_0x442af9(0x115),_0x442af9(0x10c),_0x442af9(0x106),'.js',_0x442af9(0x10a),'.md','.css',_0x442af9(0x109),_0x442af9(0x11f)];if(_0x2497e9[_0x442af9(0x103)](_0xd2a6b2)||_0x53f514[_0x442af9(0xea)](_0x442af9(0x11f))){const _0x371c7b=await a200_0x446372['promises']['readFile'](_0x53f514,_0x442af9(0xe1)),_0x368eab=this[_0x442af9(0x116)](_0x371c7b,_0x38becf,_0x180dc6);await a200_0x446372[_0x442af9(0xf8)][_0x442af9(0xe5)](_0x14cc60,_0x368eab,_0x442af9(0xe1));}else await a200_0x446372[_0x442af9(0xf8)][_0x442af9(0x11c)](_0x53f514,_0x14cc60);}}
|
package/lib/utils/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a201_0x187e(){var _0xb4eaa3=['852740MCIVrk','870098LDxXYu','99qFpnML','3372690oyYcle','11586IyTVms','2329860QiBvjP','322jRrVSh','12sEzurr','83048ZAmHZj','298730gmLoMg'];a201_0x187e=function(){return _0xb4eaa3;};return a201_0x187e();}function a201_0x3ebf(_0x1876b6,_0xf5a1c){_0x1876b6=_0x1876b6-0x6c;var _0x187eab=a201_0x187e();var _0x3ebf40=_0x187eab[_0x1876b6];return _0x3ebf40;}(function(_0x4d8ce1,_0x5485a6){var _0xf9ed60=a201_0x3ebf,_0x16fa96=_0x4d8ce1();while(!![]){try{var _0x2c31d7=parseInt(_0xf9ed60(0x70))/0x1+parseInt(_0xf9ed60(0x6e))/0x2*(-parseInt(_0xf9ed60(0x6c))/0x3)+parseInt(_0xf9ed60(0x6f))/0x4+parseInt(_0xf9ed60(0x74))/0x5+-parseInt(_0xf9ed60(0x73))/0x6*(-parseInt(_0xf9ed60(0x75))/0x7)+-parseInt(_0xf9ed60(0x6d))/0x8*(parseInt(_0xf9ed60(0x71))/0x9)+-parseInt(_0xf9ed60(0x72))/0xa;if(_0x2c31d7===_0x5485a6)break;else _0x16fa96['push'](_0x16fa96['shift']());}catch(_0x35749a){_0x16fa96['push'](_0x16fa96['shift']());}}}(a201_0x187e,0x8fd69));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x110137,_0x70bfdd){var _0x154bc0=a202_0x14d3,_0x4f601d=_0x110137();while(!![]){try{var _0x246bf8=parseInt(_0x154bc0(0xc7))/0x1*(parseInt(_0x154bc0(0xcd))/0x2)+-parseInt(_0x154bc0(0xc8))/0x3*(-parseInt(_0x154bc0(0xcb))/0x4)+parseInt(_0x154bc0(0xc9))/0x5+-parseInt(_0x154bc0(0xce))/0x6+-parseInt(_0x154bc0(0xcf))/0x7+-parseInt(_0x154bc0(0xca))/0x8+parseInt(_0x154bc0(0xcc))/0x9;if(_0x246bf8===_0x70bfdd)break;else _0x4f601d['push'](_0x4f601d['shift']());}catch(_0x12ee35){_0x4f601d['push'](_0x4f601d['shift']());}}}(a202_0xd3b0,0x59bfd));function a202_0x14d3(_0x1c186e,_0x1c2918){_0x1c186e=_0x1c186e-0xc7;var _0xd3b007=a202_0xd3b0();var _0x14d3d9=_0xd3b007[_0x1c186e];return _0x14d3d9;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x44bf48,_0x538757){setActiveCookie(_0x44bf48);try{return await _0x538757();}finally{clearActiveCookie();}}function a202_0xd3b0(){var _0x53a6e0=['4675311kjKlQh','6lykRHW','541020JtwwYX','4540039AcHbYP','238223RbpnBm','260961lXxFJb','321780dUGwPP','3624840epHXpt','12joIHKy'];a202_0xd3b0=function(){return _0x53a6e0;};return a202_0xd3b0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a203_0x2f5e(){var _0x4cd0c1=['1129163QtJRvd','1013312lMpYlF','write','90264TDJAPy','5253310bTAxip','8VNHMhZ','196115kqokkT','1060010CizvvA','24jhxekd','12dVZtkK','1262358HxxchP'];a203_0x2f5e=function(){return _0x4cd0c1;};return a203_0x2f5e();}(function(_0x50958d,_0x8932ff){var _0x2d8972=a203_0x47a1,_0x170b8a=_0x50958d();while(!![]){try{var _0x292e51=-parseInt(_0x2d8972(0x198))/0x1+-parseInt(_0x2d8972(0x1a2))/0x2*(parseInt(_0x2d8972(0x1a0))/0x3)+-parseInt(_0x2d8972(0x19e))/0x4+parseInt(_0x2d8972(0x199))/0x5+parseInt(_0x2d8972(0x19b))/0x6*(-parseInt(_0x2d8972(0x19d))/0x7)+parseInt(_0x2d8972(0x19a))/0x8*(parseInt(_0x2d8972(0x19c))/0x9)+parseInt(_0x2d8972(0x1a1))/0xa;if(_0x292e51===_0x8932ff)break;else _0x170b8a['push'](_0x170b8a['shift']());}catch(_0x21fa6f){_0x170b8a['push'](_0x170b8a['shift']());}}}(a203_0x2f5e,0x40dea));function a203_0x47a1(_0x4c7064,_0x4200e9){_0x4c7064=_0x4c7064-0x198;var _0x2f5ef6=a203_0x2f5e();var _0x47a118=_0x2f5ef6[_0x4c7064];return _0x47a118;}export function writeCliSideChannelLine(_0x2d0698){var _0x5995f4=a203_0x47a1;process['stderr'][_0x5995f4(0x19f)](_0x2d0698+'\x0a');}
|