@lovrabet/rabetbase-cli 2.1.11 → 2.1.12-beta.1
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/report.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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x477db3,_0x11044b){const _0x5882fa=a153_0x4534,_0x39a2f4=_0x477db3();while(!![]){try{const _0x13fa6b=parseInt(_0x5882fa(0x133))/0x1*(-parseInt(_0x5882fa(0x136))/0x2)+parseInt(_0x5882fa(0x12a))/0x3+-parseInt(_0x5882fa(0x135))/0x4*(-parseInt(_0x5882fa(0x12f))/0x5)+parseInt(_0x5882fa(0x132))/0x6+parseInt(_0x5882fa(0x131))/0x7+parseInt(_0x5882fa(0x12e))/0x8*(parseInt(_0x5882fa(0x12b))/0x9)+-parseInt(_0x5882fa(0x12d))/0xa;if(_0x13fa6b===_0x11044b)break;else _0x39a2f4['push'](_0x39a2f4['shift']());}catch(_0x1197cf){_0x39a2f4['push'](_0x39a2f4['shift']());}}}(a153_0x5235,0xadba4));import{readFile}from'node:fs/promises';import a153_0x4b9b30 from'node:crypto';function a153_0x5235(){const _0x153516=['16hzCbWF','2288268mNNZGD','369ILXjdq','hex','15547990RmorkM','255648ePGkvX','5pqZFWZ','md5','1141952RYxdNK','45264RMPauU','60752IDgPOo','digest','2035084LGMEfi'];a153_0x5235=function(){return _0x153516;};return a153_0x5235();}function a153_0x4534(_0x5751f3,_0x1d28e0){_0x5751f3=_0x5751f3-0x12a;const _0x5235fc=a153_0x5235();let _0x453401=_0x5235fc[_0x5751f3];return _0x453401;}export function computeSqlContentHash(_0x27d080){const _0xbfddd=a153_0x4534;return a153_0x4b9b30['createHash'](_0xbfddd(0x130))['update'](_0x27d080)[_0xbfddd(0x134)](_0xbfddd(0x12c));}export async function computeSqlFileHash(_0x4ddd2f){const _0x552526=await readFile(_0x4ddd2f,'utf8');return computeSqlContentHash(_0x552526);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b01a7,_0x3d0eaa){const _0x1ea6ae=a154_0x2188,_0x5a7807=_0x2b01a7();while(!![]){try{const _0x503ad5=-parseInt(_0x1ea6ae(0x1cf))/0x1*(parseInt(_0x1ea6ae(0x1c8))/0x2)+parseInt(_0x1ea6ae(0x1c1))/0x3+-parseInt(_0x1ea6ae(0x1cc))/0x4*(parseInt(_0x1ea6ae(0x1c6))/0x5)+parseInt(_0x1ea6ae(0x1cb))/0x6+parseInt(_0x1ea6ae(0x1ca))/0x7+-parseInt(_0x1ea6ae(0x1c3))/0x8*(parseInt(_0x1ea6ae(0x1c7))/0x9)+parseInt(_0x1ea6ae(0x1bf))/0xa*(parseInt(_0x1ea6ae(0x1c9))/0xb);if(_0x503ad5===_0x3d0eaa)break;else _0x5a7807['push'](_0x5a7807['shift']());}catch(_0x3a3224){_0x5a7807['push'](_0x5a7807['shift']());}}}(a154_0x5a8e,0xa35ef));function a154_0x2188(_0x27ea62,_0x3cc5c9){_0x27ea62=_0x27ea62-0x1bc;const _0x5a8e88=a154_0x5a8e();let _0x218812=_0x5a8e88[_0x27ea62];return _0x218812;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x26c2a7,_0x2c4e6b,_0x595242,_0x589855){const _0x381236=a154_0x2188,_0x2c17c5=_0x26c2a7??createEmptySqlLock();let _0x3d2e79=_0x2c17c5[_0x381236(0x1d2)][_0x2c4e6b];if(!_0x3d2e79)return _0x3d2e79={'sqlRoot':_0x595242,'lastSync':'','sqls':{}},_0x2c17c5['apps'][_0x2c4e6b]=_0x3d2e79,{'lockData':_0x2c17c5,'appLock':_0x3d2e79};if(!_0x3d2e79['sqlRoot'])_0x3d2e79[_0x381236(0x1c0)]=_0x595242;else{if(_0x3d2e79['sqlRoot']!==_0x595242)throw new Error(_0x589855+_0x381236(0x1d0)+_0x595242+_0x381236(0x1d1)+_0x3d2e79[_0x381236(0x1c0)]+_0x381236(0x1be)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x3d2e79[_0x381236(0x1ce)]&&(_0x3d2e79[_0x381236(0x1ce)]={}),!_0x3d2e79[_0x381236(0x1d3)]&&(_0x3d2e79[_0x381236(0x1d3)]=''),{'lockData':_0x2c17c5,'appLock':_0x3d2e79};}export async function readSqlLockFile(_0xdbb087){const _0x15971e=a154_0x2188;try{const _0x293425=await readFile(_0xdbb087,_0x15971e(0x1cd));return JSON[_0x15971e(0x1c4)](_0x293425);}catch(_0x3f6e78){if(_0x3f6e78[_0x15971e(0x1c2)]===_0x15971e(0x1c5))return null;throw new Error(_0x15971e(0x1bd)+String(_0x3f6e78));}}function a154_0x5a8e(){const _0x121acf=['sqlRoot','3330339LOPMPG','code','208OVLiIG','parse','ENOENT','6291565lWKNpT','29142tFhtbh','2EiNtjZ','15383995DcuZOp','2128469BskFlW','3132588lTYtAn','4WuglVN','utf8','sqls','1323155dteiKU',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','apps','lastSync','stringify','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','\x22.\x20','10UNzUdL'];a154_0x5a8e=function(){return _0x121acf;};return a154_0x5a8e();}export async function writeSqlLockFile(_0x4d37e5,_0x31f2db){const _0x4be3e6=a154_0x2188;await mkdir(dirname(_0x4d37e5),{'recursive':!![]}),await writeFile(_0x4d37e5,JSON[_0x4be3e6(0x1bc)](_0x31f2db,null,0x2),_0x4be3e6(0x1cd));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52ca48,_0x29ee55){const _0x3830af=a156_0x5b94,_0xd991ba=_0x52ca48();while(!![]){try{const _0x562f1e=parseInt(_0x3830af(0x1a5))/0x1*(-parseInt(_0x3830af(0x1b0))/0x2)+-parseInt(_0x3830af(0x1a7))/0x3*(parseInt(_0x3830af(0x1b4))/0x4)+-parseInt(_0x3830af(0x1af))/0x5*(-parseInt(_0x3830af(0x1b1))/0x6)+-parseInt(_0x3830af(0x1a4))/0x7*(-parseInt(_0x3830af(0x1a8))/0x8)+parseInt(_0x3830af(0x1a9))/0x9+parseInt(_0x3830af(0x1b3))/0xa+-parseInt(_0x3830af(0x1a6))/0xb;if(_0x562f1e===_0x29ee55)break;else _0xd991ba['push'](_0xd991ba['shift']());}catch(_0x23b8b7){_0xd991ba['push'](_0xd991ba['shift']());}}}(a156_0x28a2,0x1c096));export function detectSqlMode(_0xdb8d09){const _0x5b3ed7=a156_0x5b94,_0x386d49=_0xdb8d09[_0x5b3ed7(0x1b2)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x386d49))return _0x5b3ed7(0x1b5);return'sql';}export function getSqlFileExtension(_0x57f78d){const _0x1889b9=a156_0x5b94;return _0x57f78d==='mybatisXml'?_0x1889b9(0x1ad):_0x1889b9(0x1ae);}function a156_0x28a2(){const _0x5305e6=['7ZMEFnT','485617qFylYf','24zfGflG','1768gOILXx','326097TtfRYc','trim','unknown-sql','replace','.xml','.sql','18870eaMlkc','20006hDCpCM','264eDwVIw','trimStart','971080bDbcnG','101164URZYfA','mybatisXml','db-','4179heUMpf'];a156_0x28a2=function(){return _0x5305e6;};return a156_0x28a2();}export function buildDefaultSqlFileName(_0x548780,_0x428622){return''+_0x548780+getSqlFileExtension(_0x428622);}function a156_0x5b94(_0x588551,_0x2b1d18){_0x588551=_0x588551-0x1a4;const _0x28a23f=a156_0x28a2();let _0x5b9427=_0x28a23f[_0x588551];return _0x5b9427;}export function sanitizeSqlPathSegment(_0x234f31,_0x1b695e){const _0x42b9d3=a156_0x5b94,_0xa8ea38=String(_0x234f31??'')[_0x42b9d3(0x1aa)](),_0xe6a077=_0xa8ea38[_0x42b9d3(0x1ac)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x42b9d3(0x1ac)](/-+/g,'-')['replace'](/^\.+/,'')[_0x42b9d3(0x1ac)](/\.+$/,'')['replace'](/^-+/,'')[_0x42b9d3(0x1ac)](/-+$/,'');return _0xe6a077||_0x1b695e;}export function buildDbDirectoryName(_0x59d12d,_0x230a19){const _0x280181=a156_0x5b94;return sanitizeSqlPathSegment(_0x59d12d,_0x230a19!=null?_0x280181(0x1b6)+_0x230a19:'unknown-db');}export function buildSqlRelativePath(_0x15b5ce,_0x6cf56b,_0x5e0b3d,_0xea0847,_0x4ae4bf){const _0x16690f=a156_0x5b94,_0x59be04=buildDbDirectoryName(_0x5e0b3d,_0x4ae4bf),_0x348661=sanitizeSqlPathSegment(_0x15b5ce,_0x16690f(0x1ab)),_0x2345e9=sanitizeSqlPathSegment(_0x6cf56b,_0x348661);return _0x59be04+'/'+_0x348661+'_'+_0x2345e9+getSqlFileExtension(_0xea0847);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a157_0x117d(){const _0x5c67dd=['add','push','isDangerous','911895tnVfQz','matchAll','reason','2693192LxNEMZ','match','INSERT','987690RcCyHQ','3429330fQUlHY','trim','DELETE','test','length','WITH','replace','includes','18bFnpFp','SQL\x20content\x20is\x20empty','690402iNmZPG','UNKNOWN','3872346SgKaLC','from','join','type','7UwvvMW','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','80RrAMGP','unknown\x20table(s)','startsWith','16120kFHTSX','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SELECT'];a157_0x117d=function(){return _0x5c67dd;};return a157_0x117d();}(function(_0x37f2f4,_0x1fc213){const _0x23fd9d=a157_0x3e22,_0x3f0620=_0x37f2f4();while(!![]){try{const _0x1a64ec=-parseInt(_0x23fd9d(0x112))/0x1+parseInt(_0x23fd9d(0x129))/0x2+parseInt(_0x23fd9d(0x123))/0x3+parseInt(_0x23fd9d(0x11a))/0x4*(parseInt(_0x23fd9d(0x11d))/0x5)+-parseInt(_0x23fd9d(0x114))/0x6+parseInt(_0x23fd9d(0x118))/0x7*(parseInt(_0x23fd9d(0x126))/0x8)+parseInt(_0x23fd9d(0x110))/0x9*(parseInt(_0x23fd9d(0x12a))/0xa);if(_0x1a64ec===_0x1fc213)break;else _0x3f0620['push'](_0x3f0620['shift']());}catch(_0x2e1afa){_0x3f0620['push'](_0x3f0620['shift']());}}}(a157_0x117d,0x86094));export function detectSqlType(_0x44f733){const _0x38279c=a157_0x3e22;if(!_0x44f733?.[_0x38279c(0x12b)]())return{'type':_0x38279c(0x113),'isSelectOnly':![],'isDangerous':![],'reason':_0x38279c(0x111)};const _0x556609=_0x44f733[_0x38279c(0x10e)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x38279c(0x12b)](),_0x32eee5=_0x556609['split']('\x0a');let _0x20e1c1='';for(const _0x509f0e of _0x32eee5){const _0xc1618f=_0x509f0e[_0x38279c(0x12b)]();if(!_0xc1618f||_0xc1618f[_0x38279c(0x11c)]('--')||_0xc1618f['startsWith']('/*'))continue;_0x20e1c1=_0xc1618f;break;}const _0x4137c7=_0x20e1c1['toUpperCase']();if(_0x4137c7[_0x38279c(0x11c)](_0x38279c(0x11f))||_0x4137c7[_0x38279c(0x11c)](_0x38279c(0x10d))){const _0x38c2d5=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x38279c(0x12d)](_0x556609);return{'type':_0x38279c(0x11f),'isSelectOnly':!_0x38c2d5,'isDangerous':_0x38c2d5,'reason':_0x38c2d5?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x4137c7['startsWith'](_0x38279c(0x128)))return{'type':_0x38279c(0x128),'isSelectOnly':![],'isDangerous':![]};if(_0x4137c7[_0x38279c(0x11c)]('UPDATE'))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':![]};if(_0x4137c7[_0x38279c(0x11c)](_0x38279c(0x12c)))return{'type':'DELETE','isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x38279c(0x12d)](_0x4137c7))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function a157_0x3e22(_0x7de1bd,_0x175760){_0x7de1bd=_0x7de1bd-0x10d;const _0x117d91=a157_0x117d();let _0x3e22db=_0x117d91[_0x7de1bd];return _0x3e22db;}function extractTables(_0x37efb4){const _0x3714b2=a157_0x3e22,_0x79eabc=_0x37efb4[_0x3714b2(0x10e)](/#\{[^}]*\}/g,'?')[_0x3714b2(0x10e)](/\$\{[^}]*\}/g,'?')[_0x3714b2(0x10e)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x3714b2(0x10e)](/\/\*[\s\S]*?\*\//g,''),_0x28bdee=[],_0xbdf1e0=_0x79eabc[_0x3714b2(0x127)](/FROM\s+([^\s,)(]+)/i);if(_0xbdf1e0?.[0x1])_0x28bdee['push'](_0xbdf1e0[0x1][_0x3714b2(0x10e)](/[`"]/g,''));for(const _0x34468e of _0x79eabc['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x5e552c=_0x34468e[0x1]?.['replace'](/[`"]/g,'');if(_0x5e552c&&!_0x28bdee[_0x3714b2(0x10f)](_0x5e552c))_0x28bdee[_0x3714b2(0x121)](_0x5e552c);}const _0x25de8c=_0x79eabc['match'](/INTO\s+([^\s(]+)/i);if(_0x25de8c?.[0x1]){const _0x1b67f6=_0x25de8c[0x1][_0x3714b2(0x10e)](/[`"]/g,'');if(!_0x28bdee[_0x3714b2(0x10f)](_0x1b67f6))_0x28bdee[_0x3714b2(0x121)](_0x1b67f6);}const _0x288b86=_0x79eabc[_0x3714b2(0x127)](/UPDATE\s+([^\s,)(]+)/i);if(_0x288b86?.[0x1]){const _0x109fdd=_0x288b86[0x1][_0x3714b2(0x10e)](/[`"]/g,'');if(!_0x28bdee[_0x3714b2(0x10f)](_0x109fdd))_0x28bdee[_0x3714b2(0x121)](_0x109fdd);}return _0x28bdee;}function extractParameters(_0x1921c2){const _0x42ec05=a157_0x3e22,_0x1395f9=new Set();for(const _0x1410b0 of _0x1921c2[_0x42ec05(0x124)](/#\{(\w+)\}/g))if(_0x1410b0[0x1])_0x1395f9[_0x42ec05(0x120)](_0x1410b0[0x1]);for(const _0x38a09c of _0x1921c2[_0x42ec05(0x124)](/\$\{(\w+)\}/g))if(_0x38a09c[0x1])_0x1395f9[_0x42ec05(0x120)](_0x38a09c[0x1]);return Array[_0x42ec05(0x115)](_0x1395f9);}export function validateSql(_0x2a0235){const _0x1af5a5=a157_0x3e22,_0x18cc92=detectSqlType(_0x2a0235),_0x3e0489=extractTables(_0x2a0235),_0x37d245=extractParameters(_0x2a0235);if(_0x18cc92[_0x1af5a5(0x122)])return{'valid':![],'sqlType':_0x18cc92,'tables':_0x3e0489,'parameters':_0x37d245,'message':_0x18cc92[_0x1af5a5(0x125)]||_0x18cc92[_0x1af5a5(0x117)]+_0x1af5a5(0x119)};if(_0x18cc92[_0x1af5a5(0x117)]===_0x1af5a5(0x113))return{'valid':![],'sqlType':_0x18cc92,'tables':_0x3e0489,'parameters':_0x37d245,'message':_0x1af5a5(0x11e)};return{'valid':!![],'sqlType':_0x18cc92,'tables':_0x3e0489,'parameters':_0x37d245,'message':_0x18cc92[_0x1af5a5(0x117)]+'\x20query\x20targeting\x20'+(_0x3e0489['length']?_0x3e0489['join'](',\x20'):_0x1af5a5(0x11b))+(_0x37d245[_0x1af5a5(0x12e)]?'\x20with\x20parameters:\x20'+_0x37d245[_0x1af5a5(0x116)](',\x20'):'')};}
|
package/lib/errors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x33a194=a158_0x19ba;(function(_0x627088,_0x2d4fe3){const _0x3f4162=a158_0x19ba,_0x3bd3d7=_0x627088();while(!![]){try{const _0x56618f=parseInt(_0x3f4162(0x16e))/0x1+-parseInt(_0x3f4162(0x163))/0x2*(parseInt(_0x3f4162(0x169))/0x3)+-parseInt(_0x3f4162(0x168))/0x4*(parseInt(_0x3f4162(0x172))/0x5)+-parseInt(_0x3f4162(0x16d))/0x6+parseInt(_0x3f4162(0x167))/0x7*(parseInt(_0x3f4162(0x170))/0x8)+-parseInt(_0x3f4162(0x16a))/0x9+parseInt(_0x3f4162(0x16b))/0xa;if(_0x56618f===_0x2d4fe3)break;else _0x3bd3d7['push'](_0x3bd3d7['shift']());}catch(_0x4cafcf){_0x3bd3d7['push'](_0x3bd3d7['shift']());}}}(a158_0x5705,0x86cea));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a158_0x5705(){const _0x528049=['886322CGAcEb','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','8qqKDhV','Run\x20`','1302590ICpWAR','join','95166JDraUL','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','4183942CUvSfv','12XLrnZt','39sVZLJl','2537532uBSQdn','9388820MQTVuV','Set\x20appcode\x20via\x20`','1131954PMoebO'];a158_0x5705=function(){return _0x528049;};return a158_0x5705();}export{CliError};function a158_0x19ba(_0x26ec61,_0x50d8c3){_0x26ec61=_0x26ec61-0x162;const _0x570554=a158_0x5705();let _0x19ba94=_0x570554[_0x26ec61];return _0x19ba94;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a158_0x33a194(0x171)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a158_0x33a194(0x16c)+CLI_BIN_NAME+a158_0x33a194(0x166),'Tip:\x20`'+CLI_BIN_NAME+a158_0x33a194(0x164)][a158_0x33a194(0x162)](a158_0x33a194(0x165)),'notInProjectHint':a158_0x33a194(0x16f)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f45df,_0x27e5a5){var _0x43fa8a=a159_0x28d9,_0x514dbf=_0x3f45df();while(!![]){try{var _0x1d042e=parseInt(_0x43fa8a(0x79))/0x1+-parseInt(_0x43fa8a(0x7e))/0x2+-parseInt(_0x43fa8a(0x80))/0x3+-parseInt(_0x43fa8a(0x7c))/0x4*(parseInt(_0x43fa8a(0x7a))/0x5)+-parseInt(_0x43fa8a(0x7d))/0x6+-parseInt(_0x43fa8a(0x7b))/0x7+parseInt(_0x43fa8a(0x7f))/0x8;if(_0x1d042e===_0x27e5a5)break;else _0x514dbf['push'](_0x514dbf['shift']());}catch(_0x4fc0c7){_0x514dbf['push'](_0x514dbf['shift']());}}}(a159_0x13d2,0x39b3c));function a159_0x13d2(){var _0x48fa5a=['472072QQHRBa','9542496PwYYvq','547317HwflHY','85694adiKTf','10VZoQzo','1154860ZUuhoN','561604LRIkSm','1067406GfffOo'];a159_0x13d2=function(){return _0x48fa5a;};return a159_0x13d2();}function a159_0x28d9(_0x32cbf0,_0x3c58d4){_0x32cbf0=_0x32cbf0-0x79;var _0x13d29a=a159_0x13d2();var _0x28d904=_0x13d29a[_0x32cbf0];return _0x28d904;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a159_0x521159}from'@lovrabet/cli-framework';export function buildAllFlags(_0x3e397e){return a159_0x521159(_0x3e397e,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a160_0x51bb(){const _0x356a95=['validateFlags','70902vtGuXM','346973HnUagZ','90QvZmDU','959MpVceD','parseFlags','9564nxqWQZ','134144upzWIj','71584FwkJem','12oaBmLY','1230870cmumWF','1548jRsyUd','20xeevqM','96itwtIK'];a160_0x51bb=function(){return _0x356a95;};return a160_0x51bb();}const a160_0xe572f7=a160_0x182d;(function(_0x27fd97,_0x525149){const _0x37c8ed=a160_0x182d,_0x2cab8e=_0x27fd97();while(!![]){try{const _0x50dba5=-parseInt(_0x37c8ed(0x170))/0x1*(parseInt(_0x37c8ed(0x16e))/0x2)+parseInt(_0x37c8ed(0x172))/0x3+parseInt(_0x37c8ed(0x16a))/0x4*(parseInt(_0x37c8ed(0x16f))/0x5)+parseInt(_0x37c8ed(0x177))/0x6*(-parseInt(_0x37c8ed(0x175))/0x7)+-parseInt(_0x37c8ed(0x16b))/0x8*(-parseInt(_0x37c8ed(0x174))/0x9)+parseInt(_0x37c8ed(0x16d))/0xa+-parseInt(_0x37c8ed(0x173))/0xb*(-parseInt(_0x37c8ed(0x16c))/0xc);if(_0x50dba5===_0x525149)break;else _0x2cab8e['push'](_0x2cab8e['shift']());}catch(_0x47b318){_0x2cab8e['push'](_0x2cab8e['shift']());}}}(a160_0x51bb,0x1aa96));function a160_0x182d(_0x56d3b3,_0x261723){_0x56d3b3=_0x56d3b3-0x16a;const _0x51bb3c=a160_0x51bb();let _0x182d05=_0x51bb3c[_0x56d3b3];return _0x182d05;}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a160_0xe572f7(0x176)];export const validateFlags=helpers[a160_0xe572f7(0x171)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a161_0x38c802=a161_0x12e0;(function(_0x2cecaa,_0x403a9d){const _0x576959=a161_0x12e0,_0x432abf=_0x2cecaa();while(!![]){try{const _0x28d889=parseInt(_0x576959(0x15e))/0x1+parseInt(_0x576959(0x15f))/0x2+-parseInt(_0x576959(0x15d))/0x3+parseInt(_0x576959(0x162))/0x4+parseInt(_0x576959(0x163))/0x5+-parseInt(_0x576959(0x164))/0x6+-parseInt(_0x576959(0x15a))/0x7;if(_0x28d889===_0x403a9d)break;else _0x432abf['push'](_0x432abf['shift']());}catch(_0x37c49f){_0x432abf['push'](_0x432abf['shift']());}}}(a161_0x1859,0xa1270));import{createHelpGenerators}from'@lovrabet/cli-framework';function a161_0x12e0(_0x2aaa0a,_0x32a3bb){_0x2aaa0a=_0x2aaa0a-0x159;const _0x18599d=a161_0x1859();let _0x12e0b3=_0x18599d[_0x2aaa0a];return _0x12e0b3;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a161_0x1859(){const _0x24c24d=['1072125AcCFbE','7742076plGZKY','Requires\x20appcode\x20(set\x20via\x20`','generateFullHelp','1421350JWfRsy','\x20project\x20init`\x20or\x20--appcode).','generateServiceHelp','1752147fuqUEA','1035640TVtqKF','558452PDtaCb','\x20[args]\x20[flags]','generateCommandHelp','4832936MKgtue'];a161_0x1859=function(){return _0x24c24d;};return a161_0x1859();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x4fadaa=>serviceGroups['get'](_0x4fadaa),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a161_0x38c802(0x165)+CLI_BIN_NAME+a161_0x38c802(0x15b),'serviceUsageSuffix':a161_0x38c802(0x160),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2f17b8){const _0x19feb4=a161_0x38c802;return generators[_0x19feb4(0x161)](_0x2f17b8);}export const generateServiceHelp=generators[a161_0x38c802(0x15c)];export const generateFullHelp=generators[a161_0x38c802(0x159)];
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a162_0x3bbc(_0x4ce379,_0x452532){_0x4ce379=_0x4ce379-0x124;var _0x5829cd=a162_0x5829();var _0x3bbcba=_0x5829cd[_0x4ce379];return _0x3bbcba;}(function(_0x3040c0,_0x49c80b){var _0x1e3c40=a162_0x3bbc,_0x5a9666=_0x3040c0();while(!![]){try{var _0x19b910=-parseInt(_0x1e3c40(0x12a))/0x1+parseInt(_0x1e3c40(0x125))/0x2*(parseInt(_0x1e3c40(0x129))/0x3)+parseInt(_0x1e3c40(0x12b))/0x4+-parseInt(_0x1e3c40(0x126))/0x5+-parseInt(_0x1e3c40(0x127))/0x6+parseInt(_0x1e3c40(0x128))/0x7+parseInt(_0x1e3c40(0x124))/0x8;if(_0x19b910===_0x49c80b)break;else _0x5a9666['push'](_0x5a9666['shift']());}catch(_0x1b7105){_0x5a9666['push'](_0x5a9666['shift']());}}}(a162_0x5829,0xe165f));function a162_0x5829(){var _0x393eec=['3252715rlCdJf','2639310NTBOlY','6140470YJHBhk','25071tdETpo','846383lxuUvE','206072KlgKgM','12776272jVgxQQ','80ZLppSO'];a162_0x5829=function(){return _0x393eec;};return a162_0x5829();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x41a0af,_0xea2e4){const _0x3cae70=a163_0x25b1,_0x39a9ac=_0x41a0af();while(!![]){try{const _0x392772=parseInt(_0x3cae70(0x1cf))/0x1+parseInt(_0x3cae70(0x1d1))/0x2*(-parseInt(_0x3cae70(0x1d3))/0x3)+parseInt(_0x3cae70(0x1d6))/0x4+parseInt(_0x3cae70(0x1d2))/0x5*(parseInt(_0x3cae70(0x1cd))/0x6)+-parseInt(_0x3cae70(0x1d5))/0x7*(-parseInt(_0x3cae70(0x1d0))/0x8)+parseInt(_0x3cae70(0x1ce))/0x9+-parseInt(_0x3cae70(0x1d4))/0xa;if(_0x392772===_0xea2e4)break;else _0x39a9ac['push'](_0x39a9ac['shift']());}catch(_0x51195d){_0x39a9ac['push'](_0x39a9ac['shift']());}}}(a163_0x1a41,0x25260));function a163_0x1a41(){const _0x58cef6=['656766jaryTy','237692QRTesH','136XntXZF','330538HqAAkw','31105ITUkhA','3bLtlXT','2437000EiYVEL','30289MAswyF','583196MsAfVf','30JLrkdN'];a163_0x1a41=function(){return _0x58cef6;};return a163_0x1a41();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a163_0x25b1(_0xd4c376,_0x361219){_0xd4c376=_0xd4c376-0x1cd;const _0x1a418b=a163_0x1a41();let _0x25b157=_0x1a418b[_0xd4c376];return _0x25b157;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a164_0x2248(_0x5cdd20,_0x1b6d60){_0x5cdd20=_0x5cdd20-0x18e;var _0x3d79ee=a164_0x3d79();var _0x224835=_0x3d79ee[_0x5cdd20];return _0x224835;}(function(_0x449056,_0x477d4b){var _0x3c7598=a164_0x2248,_0xeb737d=_0x449056();while(!![]){try{var _0x1d6caf=parseInt(_0x3c7598(0x192))/0x1+parseInt(_0x3c7598(0x194))/0x2+-parseInt(_0x3c7598(0x193))/0x3+-parseInt(_0x3c7598(0x18e))/0x4*(-parseInt(_0x3c7598(0x190))/0x5)+parseInt(_0x3c7598(0x196))/0x6*(parseInt(_0x3c7598(0x191))/0x7)+parseInt(_0x3c7598(0x18f))/0x8*(parseInt(_0x3c7598(0x197))/0x9)+-parseInt(_0x3c7598(0x195))/0xa;if(_0x1d6caf===_0x477d4b)break;else _0xeb737d['push'](_0xeb737d['shift']());}catch(_0x2a7bec){_0xeb737d['push'](_0xeb737d['shift']());}}}(a164_0x3d79,0x65bf0));function a164_0x3d79(){var _0x30997a=['216390KBwrXR','1802727gYyJVx','210316IpZtZl','8WoxjDs','5PcHtVf','119wLaMtQ','776063xVCQmg','689718FsqOfB','880694kSowtV','14357390vRoszz'];a164_0x3d79=function(){return _0x30997a;};return a164_0x3d79();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x19f80f,_0x54a18c){const _0x1e508e=a165_0x5d81,_0x48c238=_0x19f80f();while(!![]){try{const _0x120f6d=parseInt(_0x1e508e(0x209))/0x1+-parseInt(_0x1e508e(0x20a))/0x2+-parseInt(_0x1e508e(0x207))/0x3+parseInt(_0x1e508e(0x1ff))/0x4+parseInt(_0x1e508e(0x1f8))/0x5+parseInt(_0x1e508e(0x1f5))/0x6*(-parseInt(_0x1e508e(0x1fd))/0x7)+parseInt(_0x1e508e(0x1f6))/0x8*(parseInt(_0x1e508e(0x200))/0x9);if(_0x120f6d===_0x54a18c)break;else _0x48c238['push'](_0x48c238['shift']());}catch(_0x3ad6f5){_0x48c238['push'](_0x48c238['shift']());}}}(a165_0xde8f,0x8122b));function a165_0x5d81(_0x2d2e57,_0x436b8f){_0x2d2e57=_0x2d2e57-0x1f3;const _0xde8fe2=a165_0xde8f();let _0x5d81f0=_0xde8fe2[_0x2d2e57];return _0x5d81f0;}import{CliErrors}from'../errors.js';function a165_0xde8f(){const _0x49b525=['257420oiVNsr','1994614NnJltF','code','.\x20Run\x20`','name','6XAgeRq','8xFcJxS','\x22.\x20','4465725XaVEyL','\x20api\x20pull`\x20first.','`\x20requires\x20either\x20--code\x20or\x20--alias.','flags','join','3128839lTrZzL','alias','698068inhKnv','13005918DCQlFH','Unknown\x20alias\x20\x22','Available\x20aliases:\x20','No\x20api.ts\x20found\x20in\x20','validation','map','type','2390883JIfTgv','some'];a165_0xde8f=function(){return _0x49b525;};return a165_0xde8f();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4248f1,_0x18823d,_0x1d2820,_0x18d22e){const _0x1b6567=a165_0x5d81,_0x433034=_0x4248f1[_0x1b6567(0x1fb)][_0x1b6567(0x208)](_0x1d687f=>_0x1d687f[_0x1b6567(0x1f4)]===_0x1b6567(0x20b)&&_0x1d687f[_0x1b6567(0x206)]==='string'),_0x30a4d4=_0x4248f1[_0x1b6567(0x1fb)][_0x1b6567(0x208)](_0x1108b1=>_0x1108b1[_0x1b6567(0x1f4)]===_0x1b6567(0x1fe)&&_0x1108b1[_0x1b6567(0x206)]==='string');if(!_0x433034||!_0x30a4d4)return;const _0xd83ec7=_0x18823d[_0x1b6567(0x20b)]?String(_0x18823d[_0x1b6567(0x20b)]):'',_0x5a154e=_0x18823d[_0x1b6567(0x1fe)]?String(_0x18823d[_0x1b6567(0x1fe)]):'';if(!_0xd83ec7&&!_0x5a154e)throw CliErrors[_0x1b6567(0x204)]('`'+_0x18d22e+_0x1b6567(0x1fa));if(_0x5a154e&&!_0xd83ec7){const _0x149c1e=resolveAlias(_0x1d2820,_0x5a154e);if(!_0x149c1e){const _0x7cf4af=listAliases(_0x1d2820)[_0x1b6567(0x205)](_0x24ca11=>_0x24ca11['alias']),_0x5a3c69=_0x7cf4af['length']?_0x1b6567(0x202)+_0x7cf4af[_0x1b6567(0x1fc)](',\x20'):_0x1b6567(0x203)+_0x1d2820+_0x1b6567(0x1f3)+CLI_BIN_NAME+_0x1b6567(0x1f9);throw CliErrors[_0x1b6567(0x204)](_0x1b6567(0x201)+_0x5a154e+_0x1b6567(0x1f7)+_0x5a3c69);}_0x18823d[_0x1b6567(0x20b)]=_0x149c1e;}}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a166_0x410ad4=a166_0x5454;(function(_0x2edc79,_0x5b1ff2){const _0x2cd6f0=a166_0x5454,_0x2ef92e=_0x2edc79();while(!![]){try{const _0x5c2a9e=-parseInt(_0x2cd6f0(0x137))/0x1*(-parseInt(_0x2cd6f0(0x158))/0x2)+-parseInt(_0x2cd6f0(0x147))/0x3+-parseInt(_0x2cd6f0(0x13b))/0x4+-parseInt(_0x2cd6f0(0x157))/0x5+parseInt(_0x2cd6f0(0x159))/0x6*(-parseInt(_0x2cd6f0(0x145))/0x7)+-parseInt(_0x2cd6f0(0x14f))/0x8*(-parseInt(_0x2cd6f0(0x140))/0x9)+parseInt(_0x2cd6f0(0x142))/0xa;if(_0x5c2a9e===_0x5b1ff2)break;else _0x2ef92e['push'](_0x2ef92e['shift']());}catch(_0x4d897d){_0x2ef92e['push'](_0x2ef92e['shift']());}}}(a166_0x5d4d,0xd77ba));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a166_0x517b78}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a166_0x5454(_0x38cc24,_0xf84da7){_0x38cc24=_0x38cc24-0x130;const _0x5d4d17=a166_0x5d4d();let _0x5454b1=_0x5d4d17[_0x38cc24];return _0x5454b1;}export function createPipelineEnv(_0x297e5e,_0x3581f9,_0x291d42=[]){const _0x2e0f7d=a166_0x5454;return{'rawFlags':_0x3581f9,'args':_0x291d42,'resolveAppCode':()=>_0x297e5e[_0x2e0f7d(0x13d)]||_0x3581f9[_0x2e0f7d(0x13c)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x297e5e[_0x2e0f7d(0x156)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a166_0x517b78(_0x3581f9),'defaultFormat':_0x297e5e['format'],'defaultPageSize':_0x297e5e[_0x2e0f7d(0x154)],'defaultVerbose':_0x297e5e['verbose'],'apiDir':_0x297e5e[_0x2e0f7d(0x141)],'riskLevel':_0x297e5e['riskLevel'],'selectedAppName':_0x297e5e['explicitAppName'],'mergedCli':{'defaultApp':_0x297e5e[_0x2e0f7d(0x148)],'currentApp':_0x297e5e[_0x2e0f7d(0x14e)],'appCode':_0x297e5e[_0x2e0f7d(0x13d)],'apps':_0x297e5e[_0x2e0f7d(0x133)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a166_0x410ad4(0x13a)](_0x59e021=>PIPELINE_FLAG_NAMES[a166_0x410ad4(0x153)](_0x59e021[a166_0x410ad4(0x139)]))[a166_0x410ad4(0x146)](({name:_0x15b36b,type:_0x20db7c,description:_0x4226f2})=>({'name':_0x15b36b,'type':_0x20db7c,'description':_0x4226f2})),'formatOutput':formatOutput,'getCommandLabel'(_0x49b744){const _0x5dff4c=a166_0x410ad4;return CLI_BIN_NAME+'\x20'+_0x49b744['service']+'\x20'+_0x49b744[_0x5dff4c(0x138)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3e31d6){const _0x486e06=a166_0x410ad4;return CliErrors[_0x486e06(0x143)](_0x3e31d6);}},async 'prepare'(_0x100c5e,_0x318bd0,_0x458221,_0x443746){const _0x56ec5d=a166_0x410ad4,_0x527916=_0x318bd0[_0x56ec5d(0x141)]||DEFAULT_API_DIR;resolveAliasToCode(_0x100c5e,_0x458221,_0x527916,_0x443746);let _0x36c95d='';if(_0x100c5e[_0x56ec5d(0x134)]!==![]){_0x36c95d=_0x318bd0[_0x56ec5d(0x130)]();if(!_0x36c95d)throw CliErrors[_0x56ec5d(0x136)]();const {setActiveCookie:_0x25c618}=await import(_0x56ec5d(0x14b));_0x25c618(_0x36c95d);}const _0x33b1ab=_0x318bd0['resolveAppCode']()??'';if(_0x100c5e[_0x56ec5d(0x132)]!==![]){if(!_0x33b1ab)throw CliErrors[_0x56ec5d(0x152)](_0x56ec5d(0x13f)+CLI_BIN_NAME+_0x56ec5d(0x14d));}return{'defaults':{'booleans':{'verbose':_0x318bd0[_0x56ec5d(0x150)]},'numbers':{'pagesize':_0x318bd0[_0x56ec5d(0x135)]}},'extras':{'appCode':_0x33b1ab,'cookie':_0x36c95d,'apiDomain':_0x318bd0[_0x56ec5d(0x13e)](),'apiDir':_0x527916,'selectedAppName':_0x318bd0[_0x56ec5d(0x131)],'mergedCli':_0x318bd0[_0x56ec5d(0x155)]}};},async 'confirmHighRisk'({env:_0x2de5a1,commandLabel:_0x4a998d}){const _0x48b531=a166_0x410ad4;if(_0x2de5a1[_0x48b531(0x149)])throw CliErrors[_0x48b531(0x143)](_0x48b531(0x14a)+_0x4a998d+_0x48b531(0x151));await requireConfirmationPrompt({'lines':[_0x48b531(0x144)+_0x4a998d,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x464180=>CliErrors[_0x48b531(0x14c)](_0x464180)});},async 'finalize'(){const _0x455e42=a166_0x410ad4,{clearActiveCookie:_0x2c544f}=await import(_0x455e42(0x14b));_0x2c544f();}};function a166_0x5d4d(){const _0x7d3e37=['isNonInteractive','High-risk\x20operation\x20`','../core/api-client.js','cancelled','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','currentApp','16WBZxSz','defaultVerbose','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','configMissing','has','pageSize','mergedCli','cookie','1999200DEfYrr','1910126ngdgyw','12PtfYPd','resolveCookie','selectedAppName','requiresAppCode','apps','requiresAuth','defaultPageSize','authRequired','1WzbroT','command','name','filter','4358068SinIFD','appcode','appCode','resolveApiDomain','Set\x20appcode\x20via\x20`','5688351JULADl','apiDir','22476890HyKJlB','validation','⚠\x20\x20High-risk\x20operation:\x20','2667959hMauUw','map','3997743TqsdFa','defaultApp'];a166_0x5d4d=function(){return _0x7d3e37;};return a166_0x5d4d();}export async function runCommand(_0x39f9e7,_0x5f4537){await runCommandWithAdapter(_0x39f9e7,_0x5f4537,runnerAdapter);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x46f7e6,_0x546a0a){const _0x13540d=a167_0x26ab,_0x235190=_0x46f7e6();while(!![]){try{const _0x3657e5=-parseInt(_0x13540d(0xba))/0x1+-parseInt(_0x13540d(0xbe))/0x2+-parseInt(_0x13540d(0xb9))/0x3*(parseInt(_0x13540d(0xbd))/0x4)+parseInt(_0x13540d(0xbb))/0x5+parseInt(_0x13540d(0xb6))/0x6*(-parseInt(_0x13540d(0xb7))/0x7)+parseInt(_0x13540d(0xc0))/0x8+parseInt(_0x13540d(0xbc))/0x9*(parseInt(_0x13540d(0xbf))/0xa);if(_0x3657e5===_0x546a0a)break;else _0x235190['push'](_0x235190['shift']());}catch(_0x41d0d5){_0x235190['push'](_0x235190['shift']());}}}(a167_0x17d9,0x63372));import{buildSchemaPayload as a167_0x5f3cb0}from'@lovrabet/cli-framework';function a167_0x26ab(_0x1e3441,_0xe8fc4a){_0x1e3441=_0x1e3441-0xb6;const _0x17d93c=a167_0x17d9();let _0x26ab5a=_0x17d93c[_0x1e3441];return _0x26ab5a;}import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a167_0x17d9(){const _0x34581c=['121101NjEYYy','1997250qpHsdi','18VIwapq','1117236PMsgWw','1006144daqHbw','6055850Rktjgi','596648oPBNRl','750666HzBHLm','21aavItW','../commands/registry.js','3AEwbgs'];a167_0x17d9=function(){return _0x34581c;};return a167_0x17d9();}export async function buildSchemaPayload(){const _0x40611a=a167_0x26ab,{serviceRegistry:_0x634ce1,findDefinition:_0x308bad}=await import(_0x40611a(0xb8));return a167_0x5f3cb0({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x634ce1,'buildAllFlags':buildAllFlags,'findDefinition':_0x308bad});}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a168_0x3e28(_0x26db30,_0xbd1e75){_0x26db30=_0x26db30-0x155;var _0x51c298=a168_0x51c2();var _0x3e284f=_0x51c298[_0x26db30];return _0x3e284f;}(function(_0x1c66d5,_0x4d6057){var _0x33582f=a168_0x3e28,_0x3bee06=_0x1c66d5();while(!![]){try{var _0x2567ed=-parseInt(_0x33582f(0x157))/0x1*(-parseInt(_0x33582f(0x15d))/0x2)+-parseInt(_0x33582f(0x159))/0x3+-parseInt(_0x33582f(0x155))/0x4+parseInt(_0x33582f(0x158))/0x5*(-parseInt(_0x33582f(0x15e))/0x6)+parseInt(_0x33582f(0x15b))/0x7+-parseInt(_0x33582f(0x156))/0x8*(parseInt(_0x33582f(0x15c))/0x9)+parseInt(_0x33582f(0x15a))/0xa;if(_0x2567ed===_0x4d6057)break;else _0x3bee06['push'](_0x3bee06['shift']());}catch(_0x1ac4a4){_0x3bee06['push'](_0x3bee06['shift']());}}}(a168_0x51c2,0x1e198));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a168_0x51c2(){var _0x4fe95e=['3690370zvUzWz','115752hNwyiV','600336IXStMG','2NmcuFx','52638mycJjZ','641448nlpQUf','8EZDSVg','209164Cvydnk','5dJfkXX','706830EyjVvU'];a168_0x51c2=function(){return _0x4fe95e;};return a168_0x51c2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a169_0x5ad4cb=a169_0xc98e;function a169_0x437a(){const _0x454d67=['5740KtKlxQ','3204339gcVaxW','75654sAhpiE','4231880rCMVRZ','7806MZggxE','1694498URBOIF','49puHOdx','536768ZqFwYO','4315LNTRqZ','364282iGLIOl','v2.1.12-beta.1'];a169_0x437a=function(){return _0x454d67;};return a169_0x437a();}(function(_0xa7cc3d,_0x36711c){const _0x3b36b1=a169_0xc98e,_0x53d06d=_0xa7cc3d();while(!![]){try{const _0x5799d9=parseInt(_0x3b36b1(0xf1))/0x1+-parseInt(_0x3b36b1(0xf8))/0x2+-parseInt(_0x3b36b1(0xf4))/0x3+-parseInt(_0x3b36b1(0xf6))/0x4+parseInt(_0x3b36b1(0xf0))/0x5*(-parseInt(_0x3b36b1(0xf7))/0x6)+-parseInt(_0x3b36b1(0xf9))/0x7*(parseInt(_0x3b36b1(0xfa))/0x8)+-parseInt(_0x3b36b1(0xf5))/0x9*(-parseInt(_0x3b36b1(0xf3))/0xa);if(_0x5799d9===_0x36711c)break;else _0x53d06d['push'](_0x53d06d['shift']());}catch(_0x4b1e1e){_0x53d06d['push'](_0x53d06d['shift']());}}}(a169_0x437a,0x983c7));function a169_0xc98e(_0xae8cde,_0x4e4e7f){_0xae8cde=_0xae8cde-0xf0;const _0x437a67=a169_0x437a();let _0xc98e3d=_0x437a67[_0xae8cde];return _0xc98e3d;}export const VERSION='2.1.12-beta.1';export const GIT_TAG=a169_0x5ad4cb(0xf2);export const GIT_COMMIT='ebd6c46';export const BUILD_TIME='2026-05-19T07:55:59.208Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a170_0x47ed(_0xa0380c,_0x4343d9){_0xa0380c=_0xa0380c-0x156;var _0x58711d=a170_0x5871();var _0x47ed38=_0x58711d[_0xa0380c];return _0x47ed38;}(function(_0x295e53,_0x2a86cb){var _0x2273bd=a170_0x47ed,_0x53f6fa=_0x295e53();while(!![]){try{var _0x4eea3d=-parseInt(_0x2273bd(0x164))/0x1*(-parseInt(_0x2273bd(0x156))/0x2)+-parseInt(_0x2273bd(0x15d))/0x3*(-parseInt(_0x2273bd(0x15a))/0x4)+parseInt(_0x2273bd(0x163))/0x5+parseInt(_0x2273bd(0x15f))/0x6+-parseInt(_0x2273bd(0x162))/0x7+-parseInt(_0x2273bd(0x165))/0x8*(parseInt(_0x2273bd(0x157))/0x9)+-parseInt(_0x2273bd(0x161))/0xa*(-parseInt(_0x2273bd(0x15b))/0xb);if(_0x4eea3d===_0x2a86cb)break;else _0x53f6fa['push'](_0x53f6fa['shift']());}catch(_0x19dd75){_0x53f6fa['push'](_0x53f6fa['shift']());}}}(a170_0x5871,0x5aa60));function a170_0x5871(){var _0x5e54f0=['5059572crFkRy','3430830aHJPJv','1MhlZbY','8KuaGOx','1237834nvPkKc','5149737MqvpjJ','\x20to\x20view\x20available\x20commands.','green','76ZOJIPc','122991znpvUT','log','831yPGkTC','\x20--help','1129344VRUgry','bold','150AOOrDc'];a170_0x5871=function(){return _0x5e54f0;};return a170_0x5871();}import a170_0x1e3559 from'chalk';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function showHelp(){var _0x292195=a170_0x47ed;console['log'](),console['log'](a170_0x1e3559[_0x292195(0x159)][_0x292195(0x160)]('\x20\x20'+CLI_DISPLAY_NAME)),console[_0x292195(0x15c)](),console['log']('\x20\x20Use\x20'+a170_0x1e3559[_0x292195(0x159)][_0x292195(0x160)](CLI_BIN_NAME+_0x292195(0x15e))+_0x292195(0x158)),console[_0x292195(0x15c)]();}
|
package/lib/skills/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d7175,_0x3ae232){const _0x112efd=a171_0x4462,_0x8d5725=_0x4d7175();while(!![]){try{const _0x2d3117=-parseInt(_0x112efd(0x1b0))/0x1+-parseInt(_0x112efd(0x196))/0x2+-parseInt(_0x112efd(0x1ab))/0x3*(parseInt(_0x112efd(0x1a8))/0x4)+-parseInt(_0x112efd(0x19e))/0x5*(parseInt(_0x112efd(0x19c))/0x6)+parseInt(_0x112efd(0x19f))/0x7*(-parseInt(_0x112efd(0x192))/0x8)+-parseInt(_0x112efd(0x1a9))/0x9+parseInt(_0x112efd(0x195))/0xa;if(_0x2d3117===_0x3ae232)break;else _0x8d5725['push'](_0x8d5725['shift']());}catch(_0x4eb959){_0x8d5725['push'](_0x8d5725['shift']());}}}(a171_0x4ef0,0xda733));import{logger}from'../utils/logger.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE}from'../skills/npx-skills-add.js';export function camelCaseFlagsToKebab(_0x59b2d6){const _0x58a8fe=a171_0x4462,_0x48baed=[];for(const [_0x4190bb,_0x30bda5]of Object[_0x58a8fe(0x199)](_0x59b2d6)){if(_0x30bda5===!![]){const _0xeddbc7=_0x4190bb[_0x58a8fe(0x191)](/([A-Z])/g,'-$1')['toLowerCase']();_0x48baed['push'](_0xeddbc7);}}return _0x48baed;}export function parseDynamicFlags(){const _0x1d8126=a171_0x4462,_0x1e5237=[];for(let _0x394554=0x3;_0x394554<process[_0x1d8126(0x194)][_0x1d8126(0x1a7)];_0x394554++){const _0x278e54=process[_0x1d8126(0x194)][_0x394554];if(_0x278e54&&_0x278e54[_0x1d8126(0x1ac)]('--')){const _0x20a8d2=_0x278e54[_0x1d8126(0x1aa)](0x2);_0x20a8d2&&!_0x20a8d2['includes']('=')&&_0x1e5237[_0x1d8126(0x190)](_0x20a8d2);}}return _0x1e5237;}export function getAllProvidedFlags(_0x2f54a3){const _0x409867=a171_0x4462,_0x234fbf=camelCaseFlagsToKebab(_0x2f54a3),_0x470802=parseDynamicFlags(),_0x32fac1=new Set([..._0x234fbf,..._0x470802]);return Array[_0x409867(0x1a1)](_0x32fac1);}export function normalizeLegacyBffSaveFlags(_0x4f0d89){const _0x1eb712=a171_0x4462,_0x9ba655=new Set(_0x4f0d89);return _0x9ba655[_0x1eb712(0x19a)]('dangerously-bff-save')&&_0x9ba655[_0x1eb712(0x1a2)](_0x1eb712(0x1a5)),Array['from'](_0x9ba655);}function a171_0x4ef0(){const _0x4f6356=['7NXiOEc','log','from','add','\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20help\x0a','\x20skill\x20install\x0a\x0aEquivalent\x20command:\x20','enable-bff-save','不支持的命令:\x20','length','14592PWXVUX','6361065pYDdNw','slice','981IrFMwv','startsWith','\x20skill\x20--help\x0a\x20\x20','cwd','--help','1728749aFrWuM','help','push','replace','13929272wArJeC','skill','argv','79806000VZGHlU','121258uRfzeb','\x0aAvailable\x20commands:','\x20skill\x20install\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Interactive\x20skill\x20installation','entries','has','exit','642AXSlyu','error','77365jpJkhU'];a171_0x4ef0=function(){return _0x4f6356;};return a171_0x4ef0();}const SKILLS_INSTALL_COMMAND_LINE=NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE;export async function skillsCommand(_0x86c392,_0x396b36,_0x6b3564){const _0x4803ec=a171_0x4462;logger['setLogPath'](process[_0x4803ec(0x1ae)]());if(_0x6b3564?.[_0x4803ec(0x1b1)]||_0x86c392===_0x4803ec(0x1af)){showHelp();return;}console['error']('Error:\x20Unsupported\x20command:\x20'+(_0x86c392||'(empty)')),console[_0x4803ec(0x1a0)](_0x4803ec(0x197)),console[_0x4803ec(0x1a0)]('\x20\x20'+CLI_BIN_NAME+_0x4803ec(0x198)),console[_0x4803ec(0x1a0)]('\x20\x20'+CLI_BIN_NAME+_0x4803ec(0x1a3)),console[_0x4803ec(0x1a0)](''),console[_0x4803ec(0x1a0)]('Equivalent\x20command:\x20'+SKILLS_INSTALL_COMMAND_LINE),logger[_0x4803ec(0x19d)](_0x4803ec(0x193),_0x4803ec(0x1a6)+_0x86c392),process[_0x4803ec(0x19b)](0x1);}function a171_0x4462(_0x51354f,_0x279f0b){_0x51354f=_0x51354f-0x190;const _0x4ef0c7=a171_0x4ef0();let _0x4462ff=_0x4ef0c7[_0x51354f];return _0x4462ff;}function showHelp(){const _0x7f5336=a171_0x4462;console['log']('\x0aLovrabet\x20Skill\x20-\x20Developer\x20Skill\x20Installation\x20Tool\x0a\x0aUsage:\x0a\x20\x20'+CLI_BIN_NAME+_0x7f5336(0x1ad)+CLI_BIN_NAME+_0x7f5336(0x1a4)+SKILLS_INSTALL_COMMAND_LINE+'\x0a\x0aNote:\x20npx\x20skills\x20selects\x20the\x20agent\x20and\x20writes\x20files;\x20guides\x20live\x20under\x20skills/lovrabet/guides/.\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a172_0xecd53d=a172_0xd361;(function(_0x10587c,_0x1c1b44){const _0x529e62=a172_0xd361,_0x46ec0c=_0x10587c();while(!![]){try{const _0xef9ae5=parseInt(_0x529e62(0x10d))/0x1+-parseInt(_0x529e62(0xf1))/0x2*(-parseInt(_0x529e62(0x109))/0x3)+parseInt(_0x529e62(0xf9))/0x4*(parseInt(_0x529e62(0x10b))/0x5)+parseInt(_0x529e62(0x10e))/0x6*(parseInt(_0x529e62(0x101))/0x7)+parseInt(_0x529e62(0xfd))/0x8*(parseInt(_0x529e62(0xfa))/0x9)+-parseInt(_0x529e62(0xf4))/0xa*(parseInt(_0x529e62(0xfe))/0xb)+-parseInt(_0x529e62(0xff))/0xc*(parseInt(_0x529e62(0xf6))/0xd);if(_0xef9ae5===_0x1c1b44)break;else _0x46ec0c['push'](_0x46ec0c['shift']());}catch(_0x40aba5){_0x46ec0c['push'](_0x46ec0c['shift']());}}}(a172_0x21f9,0xa4a70));import{spawnSync}from'node:child_process';import{resolveNpmBin}from'../utils/platform.js';export const NPX_FLAG_YES='-y';export const SKILLS_FLAG_GLOBAL='-g';export const SKILLS_FLAG_YES='-y';export const NPX_SKILLS_CLI='skills';export const NPX_SKILLS_SUBCOMMAND_ADD='add';export const NPX_SKILLS_FLAG_SKILL=a172_0xecd53d(0x10f);export const RABETBASE_SKILL_SOURCE='lovrabet/rabetbase';export const LEGACY_RABETBASE_SKILL_SOURCE=a172_0xecd53d(0x107);function a172_0xd361(_0xae235,_0x6366d8){_0xae235=_0xae235-0xf1;const _0x21f98=a172_0x21f9();let _0xd36195=_0x21f98[_0xae235];return _0xd36195;}export const DEFAULT_RABETBASE_SKILL_NAME=a172_0xecd53d(0xfc);export function buildNpxSkillsAddArgv(_0x3dfd6b){const _0xb8561d=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE];return _0x3dfd6b&&_0xb8561d['push'](NPX_SKILLS_FLAG_SKILL,_0x3dfd6b),_0xb8561d;}export const NPX_SKILLS_ADD_COMMAND_LINE=[a172_0xecd53d(0x100),...buildNpxSkillsAddArgv()]['join']('\x20');export const NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE=[a172_0xecd53d(0x100),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,RABETBASE_SKILL_SOURCE,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][a172_0xecd53d(0xf5)]('\x20');function a172_0x21f9(){const _0x46e3d6=['239405DZxVaq','yes','587174oqQFCb','5717526wyuiqx','--skill','2NEPiuJ','exit\x20','pipe','40hXVWgZ','join','26eNSWip','unknown','trim','68UGRWGC','441CfIAsD','stdio','Lovrabet','62560GyjOXy','1449503BsuAtM','10762404hQuwId','npx','7ZfdatM','stdout','stderr','log','skill','toString','lovrabet/lovrabet-skill','status','773970vMQLAT','inherit'];a172_0x21f9=function(){return _0x46e3d6;};return a172_0x21f9();}export function shouldSkipNpxSkillsAdd(){return process.env.RABETBASE_SKIP_NPX_SKILLS==='1';}export function runNpxSkillsAdd(_0x2f60ca,_0x4ac809){const _0xcd6a9=a172_0xecd53d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x998ace=_0x4ac809?.[_0xcd6a9(0xfb)]??_0xcd6a9(0x10a),_0x4fa2b8=resolveNpmBin(_0xcd6a9(0x100)),_0x4c05af=buildNpxSkillsAddArgv(_0x4ac809?.[_0xcd6a9(0x105)]),_0x50880c=[_0xcd6a9(0x100),..._0x4c05af]['join']('\x20');console[_0xcd6a9(0x104)]('*\x20'+_0x50880c);const _0x18c686=spawnSync(_0x4fa2b8,_0x4c05af,{'cwd':_0x2f60ca,'stdio':_0x998ace,'env':process.env,'shell':![]}),_0x146856=_0x18c686[_0xcd6a9(0x108)];if(_0x146856===0x0)return{'ok':!![],'status':0x0};let _0x4805e5='exit\x20'+(_0x146856??_0xcd6a9(0xf7));if(_0x998ace===_0xcd6a9(0xf3)){const _0x355c28=_0x18c686[_0xcd6a9(0x103)]?_0x18c686['stderr'][_0xcd6a9(0x106)]()[_0xcd6a9(0xf8)]():'',_0x46505f=_0x18c686[_0xcd6a9(0x102)]?_0x18c686[_0xcd6a9(0x102)][_0xcd6a9(0x106)]()[_0xcd6a9(0xf8)]():'';if(_0x355c28)_0x4805e5=_0x355c28;else{if(_0x46505f)_0x4805e5=_0x46505f;}}return{'ok':![],'status':_0x146856??null,'error':_0x4805e5};}export function runNpxSkillsRemove(_0x2d6c90,_0x576d7e,_0x3603d0=LEGACY_RABETBASE_SKILL_SOURCE){const _0x1ef0ff=a172_0xecd53d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x30dd50=_0x576d7e?.[_0x1ef0ff(0xfb)]??_0x1ef0ff(0x10a),_0x48a0e1=resolveNpmBin(_0x1ef0ff(0x100)),_0x59f192=[NPX_FLAG_YES,NPX_SKILLS_CLI,'remove',_0x3603d0,NPX_SKILLS_FLAG_SKILL,_0x576d7e?.[_0x1ef0ff(0x105)]??DEFAULT_RABETBASE_SKILL_NAME,..._0x576d7e?.[_0x1ef0ff(0x10c)]?['-y']:[]],_0x1d4ef4=[_0x48a0e1,..._0x59f192][_0x1ef0ff(0xf5)]('\x20');console[_0x1ef0ff(0x104)]('*\x20'+_0x1d4ef4);const _0x2fb4ae=spawnSync(_0x48a0e1,_0x59f192,{'cwd':_0x2d6c90,'stdio':_0x30dd50,'env':process.env,'shell':![]}),_0x3b3af5=_0x2fb4ae[_0x1ef0ff(0x108)];if(_0x3b3af5===0x0)return{'ok':!![],'status':0x0};let _0x14c0e0=_0x1ef0ff(0xf2)+(_0x3b3af5??_0x1ef0ff(0xf7));if(_0x30dd50==='pipe'){const _0x5ecdaf=_0x2fb4ae[_0x1ef0ff(0x103)]?_0x2fb4ae[_0x1ef0ff(0x103)][_0x1ef0ff(0x106)]()[_0x1ef0ff(0xf8)]():'',_0x44c2a7=_0x2fb4ae[_0x1ef0ff(0x102)]?_0x2fb4ae['stdout']['toString']()['trim']():'';if(_0x5ecdaf)_0x14c0e0=_0x5ecdaf;else{if(_0x44c2a7)_0x14c0e0=_0x44c2a7;}}return{'ok':![],'status':_0x3b3af5??null,'error':_0x14c0e0};}export function runNpxSkillsAddGlobal(_0x30f68a,_0xb404a9,_0x586d6f){const _0x278403=a172_0xecd53d;if(shouldSkipNpxSkillsAdd())return{'ok':!![],'status':0x0,'skipped':!![]};const _0x5d8b53=_0x586d6f?.[_0x278403(0xfb)]??_0x278403(0x10a),_0x20c203=resolveNpmBin(_0x278403(0x100)),_0x37eafc=[NPX_FLAG_YES,NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xb404a9,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES],_0x438247=[_0x278403(0x100),NPX_SKILLS_CLI,NPX_SKILLS_SUBCOMMAND_ADD,_0xb404a9,SKILLS_FLAG_GLOBAL,SKILLS_FLAG_YES][_0x278403(0xf5)]('\x20');console['log']('*\x20'+_0x438247);const _0x233d5a=spawnSync(_0x20c203,_0x37eafc,{'cwd':_0x30f68a,'stdio':_0x5d8b53,'env':process.env,'shell':![]}),_0x3c22c6=_0x233d5a[_0x278403(0x108)];if(_0x3c22c6===0x0)return{'ok':!![],'status':0x0};let _0x219fd2=_0x278403(0xf2)+(_0x3c22c6??_0x278403(0xf7));if(_0x5d8b53===_0x278403(0xf3)){const _0x2a576f=_0x233d5a[_0x278403(0x103)]?_0x233d5a[_0x278403(0x103)][_0x278403(0x106)]()[_0x278403(0xf8)]():'',_0x4815a2=_0x233d5a[_0x278403(0x102)]?_0x233d5a[_0x278403(0x102)][_0x278403(0x106)]()[_0x278403(0xf8)]():'';if(_0x2a576f)_0x219fd2=_0x2a576f;else{if(_0x4815a2)_0x219fd2=_0x4815a2;}}return{'ok':![],'status':_0x3c22c6??null,'error':_0x219fd2};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x116c1a,_0x46b258){const _0x57777e=a173_0x1e01,_0x13a28d=_0x116c1a();while(!![]){try{const _0x48bb82=parseInt(_0x57777e(0xb1))/0x1+parseInt(_0x57777e(0xb2))/0x2*(parseInt(_0x57777e(0xae))/0x3)+-parseInt(_0x57777e(0xa9))/0x4*(-parseInt(_0x57777e(0xb3))/0x5)+parseInt(_0x57777e(0xb4))/0x6+parseInt(_0x57777e(0xa1))/0x7+parseInt(_0x57777e(0xa3))/0x8+-parseInt(_0x57777e(0xa5))/0x9*(parseInt(_0x57777e(0xa6))/0xa);if(_0x48bb82===_0x46b258)break;else _0x13a28d['push'](_0x13a28d['shift']());}catch(_0x5442c4){_0x13a28d['push'](_0x13a28d['shift']());}}}(a173_0x37ea,0x87ee3));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';import{getCliVersion}from'../utils/version.js';const SENSITIVE_PATTERNS=[/cookie/i,/token/i,/password/i,/passwd/i,/secret/i,/auth/i,/session/i,/credential/i];function isSensitiveKey(_0x36a66f){const _0x2d1579=a173_0x1e01;return SENSITIVE_PATTERNS[_0x2d1579(0xb5)](_0x2c7162=>_0x2c7162[_0x2d1579(0xb0)](_0x36a66f));}function a173_0x1e01(_0x5ca4f1,_0x56e9b5){_0x5ca4f1=_0x5ca4f1-0xa1;const _0x37eaf9=a173_0x37ea();let _0x1e01ec=_0x37eaf9[_0x5ca4f1];return _0x1e01ec;}function sanitizeFlags(_0xe6018f){const _0xae3cc9=a173_0x1e01,_0x4858ee={};for(const [_0x451b1a,_0x5e72f5]of Object[_0xae3cc9(0xa2)](_0xe6018f)){isSensitiveKey(_0x451b1a)?_0x4858ee[_0x451b1a]=_0x5e72f5!=null&&_0x5e72f5!==''?_0xae3cc9(0xa4):_0x5e72f5:_0x4858ee[_0x451b1a]=_0x5e72f5;}return _0x4858ee;}export async function reportCommandTrace(_0x5a2a7d){const _0x4bcd92=a173_0x1e01;try{const _0x5a6fc7=sanitizeFlags(_0x5a2a7d[_0x4bcd92(0xaf)]);await sendCliTraceLog({'spanName':'rabetbase.command','logData':{'command.cli_version':getCliVersion(),'command.service':_0x5a2a7d[_0x4bcd92(0xad)],'command.name':_0x5a2a7d[_0x4bcd92(0xa7)],'command.flags':JSON[_0x4bcd92(0xac)](_0x5a6fc7),..._0x5a2a7d[_0x4bcd92(0xaa)]!=null?{'command.duration_ms':_0x5a2a7d[_0x4bcd92(0xaa)]}:{},..._0x5a2a7d[_0x4bcd92(0xab)]?{'command.error':_0x5a2a7d[_0x4bcd92(0xab)]instanceof Error?_0x5a2a7d[_0x4bcd92(0xab)][_0x4bcd92(0xa8)]:String(_0x5a2a7d[_0x4bcd92(0xab)])}:{}}});}catch{}}function a173_0x37ea(){const _0x975acf=['durationMs','error','stringify','service','22863xdmegW','flags','test','627990OkwlML','116jmwkGi','5XALHyx','1365756euTQEJ','some','7207060QZwlVN','entries','4463896GGcPHF','[REDACTED]','9JykVOe','26718490qEFAPR','command','message','1373676OZoHCN'];a173_0x37ea=function(){return _0x975acf;};return a173_0x37ea();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a174_0x28b0(){var _0x30de50=['675117ICuIDM','8307096FqnItP','843304EzVPZI','Failed\x20to\x20report\x20CLI\x20help\x20trace:','7196265RSKHwr','32367060DbeWuV','cli.help','8oyiLKG','4zJJYqT','2444534lBDAlS','3929765fuGbOT','error','service'];a174_0x28b0=function(){return _0x30de50;};return a174_0x28b0();}function a174_0x1be5(_0x507436,_0x48b64c){_0x507436=_0x507436-0x116;var _0x28b0e1=a174_0x28b0();var _0x1be5ee=_0x28b0e1[_0x507436];return _0x1be5ee;}(function(_0xe95717,_0xf97d48){var _0x3e247e=a174_0x1be5,_0x1d678f=_0xe95717();while(!![]){try{var _0x312bbf=-parseInt(_0x3e247e(0x11d))/0x1+-parseInt(_0x3e247e(0x117))/0x2+parseInt(_0x3e247e(0x11b))/0x3*(-parseInt(_0x3e247e(0x116))/0x4)+parseInt(_0x3e247e(0x11f))/0x5+-parseInt(_0x3e247e(0x11c))/0x6+parseInt(_0x3e247e(0x118))/0x7*(-parseInt(_0x3e247e(0x122))/0x8)+parseInt(_0x3e247e(0x120))/0x9;if(_0x312bbf===_0xf97d48)break;else _0x1d678f['push'](_0x1d678f['shift']());}catch(_0x106b56){_0x1d678f['push'](_0x1d678f['shift']());}}}(a174_0x28b0,0xc3160));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export async function reportCliHelpTrace(_0x30bb91,_0xfbe5d4){var _0x4a1c1a=a174_0x1be5;try{await sendCliTraceLog({'spanName':_0x4a1c1a(0x121),'logData':{'rabetbase.help.kind':_0x30bb91,..._0xfbe5d4?.[_0x4a1c1a(0x11a)]&&{'rabetbase.help.service':_0xfbe5d4[_0x4a1c1a(0x11a)]}}});}catch(_0x12bdfd){console[_0x4a1c1a(0x119)](_0x4a1c1a(0x11e),_0x12bdfd);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a175_0x341b(){const _0x416b03=['15477nztJDl','2369932EgqtVS','user','username','nickname','14xluAgE','5yeypoX','4289724PgObSO','3422168mibcip','unknown','77297GWXyjD','1210RWcXEP','2SSAeDA','657716BJQLZG','219120OxlhBe','daily'];a175_0x341b=function(){return _0x416b03;};return a175_0x341b();}function a175_0x1e26(_0x28dc9a,_0x294c55){_0x28dc9a=_0x28dc9a-0x108;const _0x341b03=a175_0x341b();let _0x1e26e8=_0x341b03[_0x28dc9a];return _0x1e26e8;}(function(_0x5b65bf,_0x101946){const _0x397d18=a175_0x1e26,_0x252ff3=_0x5b65bf();while(!![]){try{const _0x1d2433=parseInt(_0x397d18(0x10a))/0x1*(-parseInt(_0x397d18(0x10b))/0x2)+-parseInt(_0x397d18(0x10e))/0x3+parseInt(_0x397d18(0x10f))/0x4*(parseInt(_0x397d18(0x114))/0x5)+parseInt(_0x397d18(0x10c))/0x6+parseInt(_0x397d18(0x113))/0x7*(parseInt(_0x397d18(0x116))/0x8)+parseInt(_0x397d18(0x115))/0x9+-parseInt(_0x397d18(0x109))/0xa*(parseInt(_0x397d18(0x108))/0xb);if(_0x1d2433===_0x101946)break;else _0x252ff3['push'](_0x252ff3['shift']());}catch(_0x3cb340){_0x252ff3['push'](_0x252ff3['shift']());}}}(a175_0x341b,0x6d627));import{VERSION,GIT_COMMIT}from'../generated/build-info.js';import{getSessionUserInfo}from'../auth/get-session-user.js';import{setServiceConfig,setUserContext}from'@lovrabet/otel-logger';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{getConfigAppCode}from'../utils/config.js';let cliOtelTraceInitialized=![];export async function ensureCliOtelTraceConfig(){const _0x457675=a175_0x1e26,_0x1f4d53=await getSessionUserInfo();if(!cliOtelTraceInitialized){const _0x45edda=_0x1f4d53?.[_0x457675(0x110)];setServiceConfig({'serviceName':NPM_PACKAGE_NAME,'serviceVersion':GIT_COMMIT!==_0x457675(0x117)?VERSION+'+'+GIT_COMMIT:VERSION,'serviceEnv':process.env.RABETBASE_ENV??(process.env.RABETBASE_E2E_DAILY==='1'?_0x457675(0x10d):'production')}),setUserContext({'id':_0x45edda?.['id'],'username':_0x45edda?.[_0x457675(0x111)],'nickname':_0x45edda?.[_0x457675(0x112)],'email':_0x45edda?.['email'],'tenantCode':_0x45edda?.['tenant']['tenant_code'],'appCode':getConfigAppCode()}),cliOtelTraceInitialized=!![];}return _0x1f4d53;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x225a14,_0x29860c){const _0x3d24bc=a176_0x2a5a,_0x4a94d3=_0x225a14();while(!![]){try{const _0x27c895=-parseInt(_0x3d24bc(0xc2))/0x1+-parseInt(_0x3d24bc(0xbe))/0x2+-parseInt(_0x3d24bc(0xb3))/0x3*(-parseInt(_0x3d24bc(0xb6))/0x4)+parseInt(_0x3d24bc(0xba))/0x5+parseInt(_0x3d24bc(0xbd))/0x6*(parseInt(_0x3d24bc(0xb7))/0x7)+-parseInt(_0x3d24bc(0xbb))/0x8*(parseInt(_0x3d24bc(0xb9))/0x9)+-parseInt(_0x3d24bc(0xc0))/0xa*(parseInt(_0x3d24bc(0xc1))/0xb);if(_0x27c895===_0x29860c)break;else _0x4a94d3['push'](_0x4a94d3['shift']());}catch(_0x2ef6d5){_0x4a94d3['push'](_0x4a94d3['shift']());}}}(a176_0x4a21,0x5b138));function a176_0x4a21(){const _0x1d8b44=['112bYitCo','SIGTERM','9WqlDHV','3428110NjRlFy','3808328sGJLFc','once','141558BGANdA','231086oZICLj','exit','30rpWEHY','402457xMAApv','307543shzEKJ','956478BLuAQM','beforeExit','SIGINT','4HzpDeZ'];a176_0x4a21=function(){return _0x1d8b44;};return a176_0x4a21();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x2d7ce4=a176_0x2a5a;process['once'](_0x2d7ce4(0xb4),()=>{void flushOtelNodeIfUsed();});const _0x3883be=()=>{void flushOtelNodeIfUsed()['then'](()=>process['exit'](0x0));};process[_0x2d7ce4(0xbc)](_0x2d7ce4(0xb5),_0x3883be),process['once'](_0x2d7ce4(0xb8),_0x3883be);}function a176_0x2a5a(_0x4cfe6a,_0x130d61){_0x4cfe6a=_0x4cfe6a-0xb3;const _0x4a21ea=a176_0x4a21();let _0x2a5a57=_0x4a21ea[_0x4cfe6a];return _0x2a5a57;}export async function exitWithOtelShutdown(_0x41ff83){const _0x29e456=a176_0x2a5a;await flushOtelNodeIfUsed(),process[_0x29e456(0xbf)](_0x41ff83);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a177_0x42c2(_0x978a9b,_0xd2d74a){_0x978a9b=_0x978a9b-0x1ba;const _0x28ea76=a177_0x28ea();let _0x42c2c4=_0x28ea76[_0x978a9b];return _0x42c2c4;}const a177_0x3cf150=a177_0x42c2;(function(_0x59d458,_0x5bf944){const _0x1c1bfb=a177_0x42c2,_0x317296=_0x59d458();while(!![]){try{const _0x3bc291=parseInt(_0x1c1bfb(0x1c4))/0x1+parseInt(_0x1c1bfb(0x1c1))/0x2*(-parseInt(_0x1c1bfb(0x1ba))/0x3)+parseInt(_0x1c1bfb(0x1c6))/0x4*(parseInt(_0x1c1bfb(0x1c7))/0x5)+-parseInt(_0x1c1bfb(0x1c2))/0x6+-parseInt(_0x1c1bfb(0x1bf))/0x7+-parseInt(_0x1c1bfb(0x1bd))/0x8+parseInt(_0x1c1bfb(0x1be))/0x9*(parseInt(_0x1c1bfb(0x1bc))/0xa);if(_0x3bc291===_0x5bf944)break;else _0x317296['push'](_0x317296['shift']());}catch(_0x5e0074){_0x317296['push'](_0x317296['shift']());}}}(a177_0x28ea,0xb2d73));function a177_0x28ea(){const _0x4e1a88=['9361366cheujy','traceName','28124hXEYDW','547620rvFYIf','logData','75550MzSrtL','manual','488944miWjbY','55wXFsEA','traceparent','135kdQlml','rabetbase-cli','10qXRyxe','7167968YlawXQ','20428011sxvObH'];a177_0x28ea=function(){return _0x4e1a88;};return a177_0x28ea();}import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a177_0x3cf150(0x1bb);export async function sendCliTraceLog(_0x2b0e31){const _0x712a5c=a177_0x3cf150;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2b0e31[_0x712a5c(0x1c0)]??DEFAULT_TRACE_NAME,'version':_0x2b0e31['version']??getCliVersion(),'spanName':_0x2b0e31['spanName'],'eventType':_0x712a5c(0x1c5),'logData':_0x2b0e31[_0x712a5c(0x1c3)],..._0x2b0e31[_0x712a5c(0x1c8)]&&{'traceparent':_0x2b0e31['traceparent']}});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a178_0xffa5(_0x81c095,_0x55e407){_0x81c095=_0x81c095-0x172;const _0x379263=a178_0x3792();let _0xffa51d=_0x379263[_0x81c095];return _0xffa51d;}const a178_0x200775=a178_0xffa5;(function(_0x3991d9,_0x2fcc0d){const _0x263900=a178_0xffa5,_0x1cffb5=_0x3991d9();while(!![]){try{const _0x5c6b9a=-parseInt(_0x263900(0x17b))/0x1*(parseInt(_0x263900(0x179))/0x2)+-parseInt(_0x263900(0x176))/0x3+-parseInt(_0x263900(0x174))/0x4+parseInt(_0x263900(0x17d))/0x5+-parseInt(_0x263900(0x180))/0x6*(-parseInt(_0x263900(0x17f))/0x7)+parseInt(_0x263900(0x17e))/0x8*(parseInt(_0x263900(0x17a))/0x9)+-parseInt(_0x263900(0x173))/0xa*(parseInt(_0x263900(0x178))/0xb);if(_0x5c6b9a===_0x2fcc0d)break;else _0x1cffb5['push'](_0x1cffb5['shift']());}catch(_0x659d6){_0x1cffb5['push'](_0x1cffb5['shift']());}}}(a178_0x3792,0x5c2fd));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a178_0x200775(0x172);export const PLATFORM_ISSUE_SPAN_NAME=a178_0x200775(0x17c);function a178_0x3792(){const _0x565827=['description','721485zabZsd','title','3185380UyEhtU','339250nRQEVi','81zmDvkB','1fekARv','issue.log.collect','2535855uSMnHP','560488pkWIwL','2042089vlaPSs','12Zicicu','platform-issue-log-collect','10ShkDFk','2575508sqxyGN'];a178_0x3792=function(){return _0x565827;};return a178_0x3792();}export async function sendPlatformIssueCollectLog(_0x2a991b){const _0x3a6b3b=a178_0x200775;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2a991b[_0x3a6b3b(0x177)],'issue.description':_0x2a991b[_0x3a6b3b(0x175)]}});}
|
package/lib/utils/ai_config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a180_0x5085f7=a180_0x15a4;(function(_0x39a308,_0x4a8449){const _0x20cef7=a180_0x15a4,_0x2092a5=_0x39a308();while(!![]){try{const _0xd768a0=-parseInt(_0x20cef7(0x141))/0x1+-parseInt(_0x20cef7(0x151))/0x2*(-parseInt(_0x20cef7(0x143))/0x3)+-parseInt(_0x20cef7(0x13d))/0x4+parseInt(_0x20cef7(0x135))/0x5*(parseInt(_0x20cef7(0x128))/0x6)+parseInt(_0x20cef7(0x145))/0x7*(parseInt(_0x20cef7(0x149))/0x8)+parseInt(_0x20cef7(0x120))/0x9*(parseInt(_0x20cef7(0x11d))/0xa)+-parseInt(_0x20cef7(0x14d))/0xb*(-parseInt(_0x20cef7(0x14c))/0xc);if(_0xd768a0===_0x4a8449)break;else _0x2092a5['push'](_0x2092a5['shift']());}catch(_0xc246e6){_0x2092a5['push'](_0x2092a5['shift']());}}}(a180_0x5d1f,0x710ce));function a180_0x5d1f(){const _0x196f71=['cursor','Cursor','4194ZjaBxP','Antigravity\x20IDE','.windsurf','237290vNZWHo','Cline\x20IDE','CodeBuddy\x20IDE','135VZmZku','.cursor/skills/rabetbase.md','其他\x20(通用模板)','SKILL.md.tpl','.agent/skills/lovrabet/SKILL.md','cline','codebuddy','windsurf','436530XcOTGL','Cline','qoder','.codex/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','claude','file','Codex\x20IDE','Codex','.cline','.opencode/skills/lovrabet/SKILL.md','.claude/skills/lovrabet/SKILL.md','CodeBuddy','15DTLdQw','OpenCode\x20IDE','OpenCode','.trae','Cursor\x20IDE','antigravity','.agent','.cursorrules','3678632RykQTA','通用模板\x20-\x20兜底方案','.codebuddy/skills/lovrabet/SKILL.md','opencode','792981rMbmTV','codex','1107GPoxaY','.windsurf/workflows/rabetbase.md','7KQfJuO','.cursor','trae','.qoder/rules/rabetbase.md','6291096FtGwal','.cline/skills/lovrabet/SKILL.md','Windsurf','3516zCFQPr','1551EuzyVQ','Claude\x20Code'];a180_0x5d1f=function(){return _0x196f71;};return a180_0x5d1f();}export const CORE_IDE_CONFIGS={'cursor':{'name':a180_0x5085f7(0x150),'description':a180_0x5085f7(0x139),'folders':[a180_0x5085f7(0x13c),a180_0x5085f7(0x146)],'files':[{'type':a180_0x5085f7(0x12e),'path':a180_0x5085f7(0x121),'template':'SKILL.md.tpl'}]},'windsurf':{'name':a180_0x5085f7(0x14b),'description':'Windsurf\x20IDE','folders':[a180_0x5085f7(0x11c)],'files':[{'type':a180_0x5085f7(0x12e),'path':a180_0x5085f7(0x144),'template':a180_0x5085f7(0x123)}]},'claude':{'name':a180_0x5085f7(0x14e),'description':a180_0x5085f7(0x14e),'folders':['.claude'],'files':[{'type':'file','path':a180_0x5085f7(0x133),'template':a180_0x5085f7(0x123)}]},'cline':{'name':a180_0x5085f7(0x129),'description':a180_0x5085f7(0x11e),'folders':[a180_0x5085f7(0x131)],'files':[{'type':a180_0x5085f7(0x12e),'path':a180_0x5085f7(0x14a),'template':a180_0x5085f7(0x123)}]},'codex':{'name':a180_0x5085f7(0x130),'description':a180_0x5085f7(0x12f),'folders':['.codex'],'files':[{'type':'file','path':a180_0x5085f7(0x12b),'template':a180_0x5085f7(0x123)}]},'opencode':{'name':a180_0x5085f7(0x137),'description':a180_0x5085f7(0x136),'folders':['.opencode'],'files':[{'type':a180_0x5085f7(0x12e),'path':a180_0x5085f7(0x132),'template':a180_0x5085f7(0x123)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a180_0x5085f7(0x148),'template':'SKILL.md.tpl'},{'type':a180_0x5085f7(0x12e),'path':'.qoder/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'codebuddy':{'name':a180_0x5085f7(0x134),'description':a180_0x5085f7(0x11f),'folders':['.codebuddy'],'files':[{'type':a180_0x5085f7(0x12e),'path':a180_0x5085f7(0x13f),'template':'SKILL.md.tpl'}]},'trae':{'name':'Trae','description':'Trae\x20IDE','folders':[a180_0x5085f7(0x138)],'files':[{'type':'file','path':a180_0x5085f7(0x12c),'template':'SKILL.md.tpl'}]}};function a180_0x15a4(_0x52a204,_0x4d29b6){_0x52a204=_0x52a204-0x11c;const _0x5d1f2c=a180_0x5d1f();let _0x15a4a4=_0x5d1f2c[_0x52a204];return _0x15a4a4;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a180_0x5085f7(0x122),'description':a180_0x5085f7(0x13e),'folders':['.agent'],'files':[{'type':a180_0x5085f7(0x12e),'path':a180_0x5085f7(0x124),'template':'SKILL.md.tpl'}]},'antigravity':{'name':'Antigravity','description':a180_0x5085f7(0x152),'folders':[a180_0x5085f7(0x13b)],'files':[{'type':a180_0x5085f7(0x12e),'path':a180_0x5085f7(0x124),'template':a180_0x5085f7(0x123)}]}};export const CORE_IDE_LIST=[a180_0x5085f7(0x12d),a180_0x5085f7(0x125),a180_0x5085f7(0x126),a180_0x5085f7(0x142),a180_0x5085f7(0x14f),a180_0x5085f7(0x140),a180_0x5085f7(0x12a),'trae','windsurf'];export const IDE_LIST=[a180_0x5085f7(0x13a),a180_0x5085f7(0x12d),a180_0x5085f7(0x125),a180_0x5085f7(0x126),a180_0x5085f7(0x142),a180_0x5085f7(0x14f),a180_0x5085f7(0x140),a180_0x5085f7(0x12a),a180_0x5085f7(0x147),a180_0x5085f7(0x127),'agent'];export const ALL_CORE_IDES=[a180_0x5085f7(0x14f),'windsurf',a180_0x5085f7(0x12d),a180_0x5085f7(0x125),a180_0x5085f7(0x142),'opencode',a180_0x5085f7(0x12a),a180_0x5085f7(0x126),a180_0x5085f7(0x147)];
|