@lovrabet/lovrabet-cli 2.3.10 → 2.3.11-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.
Files changed (186) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/approval/index.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/device.js +1 -1
  14. package/lib/commands/auth/index.js +1 -1
  15. package/lib/commands/auth/prompt.js +1 -1
  16. package/lib/commands/bff/detail.js +1 -1
  17. package/lib/commands/bff/exec.js +1 -1
  18. package/lib/commands/bff/index.js +1 -1
  19. package/lib/commands/cli-skill/index.js +1 -1
  20. package/lib/commands/common/config-policy.js +1 -1
  21. package/lib/commands/common/constraints.js +1 -1
  22. package/lib/commands/common/flags.js +1 -1
  23. package/lib/commands/common/local-file.js +1 -1
  24. package/lib/commands/config/definitions.js +1 -1
  25. package/lib/commands/config/init.js +1 -1
  26. package/lib/commands/config/shared.js +1 -1
  27. package/lib/commands/data/import-excel.js +1 -1
  28. package/lib/commands/data/index.js +1 -1
  29. package/lib/commands/dataset/detail.js +1 -1
  30. package/lib/commands/dataset/index.js +1 -1
  31. package/lib/commands/dataset/list.js +1 -1
  32. package/lib/commands/dataset/sdk-doc.js +1 -1
  33. package/lib/commands/doctor.js +1 -1
  34. package/lib/commands/file/index.js +1 -1
  35. package/lib/commands/init.js +1 -1
  36. package/lib/commands/issue/context.js +1 -1
  37. package/lib/commands/issue/index.js +1 -1
  38. package/lib/commands/issue/report.js +1 -1
  39. package/lib/commands/kb/index.js +1 -1
  40. package/lib/commands/logs/index.js +1 -1
  41. package/lib/commands/notification/config-list.js +1 -1
  42. package/lib/commands/notification/index.js +1 -1
  43. package/lib/commands/notification/shared.js +1 -1
  44. package/lib/commands/ocr/index.js +1 -1
  45. package/lib/commands/permit/dataset-get.js +1 -1
  46. package/lib/commands/permit/dataset-set.js +1 -1
  47. package/lib/commands/permit/index.js +1 -1
  48. package/lib/commands/permit/page-get.js +1 -1
  49. package/lib/commands/permit/page-set.js +1 -1
  50. package/lib/commands/permit/role-menus-set.js +1 -1
  51. package/lib/commands/permit/role-menus.js +1 -1
  52. package/lib/commands/permit/shared.js +1 -1
  53. package/lib/commands/personal-bff/index.js +1 -1
  54. package/lib/commands/registry.js +1 -1
  55. package/lib/commands/role/create.js +1 -1
  56. package/lib/commands/role/delete.js +1 -1
  57. package/lib/commands/role/detail.js +1 -1
  58. package/lib/commands/role/index.js +1 -1
  59. package/lib/commands/role/list.js +1 -1
  60. package/lib/commands/role/shared.js +1 -1
  61. package/lib/commands/role/update.js +1 -1
  62. package/lib/commands/role/user-add.js +1 -1
  63. package/lib/commands/role/user-remove.js +1 -1
  64. package/lib/commands/schedule/index.js +1 -1
  65. package/lib/commands/schema.js +1 -1
  66. package/lib/commands/service/dynamic.js +1 -1
  67. package/lib/commands/service/function-name-adapter.js +1 -1
  68. package/lib/commands/service/index.js +1 -1
  69. package/lib/commands/service/registry.js +1 -1
  70. package/lib/commands/skill/commands/create.js +1 -1
  71. package/lib/commands/skill/commands/diagram.js +1 -1
  72. package/lib/commands/skill/commands/install.js +1 -1
  73. package/lib/commands/skill/commands/list.js +1 -1
  74. package/lib/commands/skill/commands/push.js +1 -1
  75. package/lib/commands/skill/commands/validate.js +1 -1
  76. package/lib/commands/skill/diagram.js +1 -1
  77. package/lib/commands/skill/flags.js +1 -1
  78. package/lib/commands/skill/index.js +1 -1
  79. package/lib/commands/skill/manifest-helpers.js +1 -1
  80. package/lib/commands/skill/push-execute.js +1 -1
  81. package/lib/commands/skill/push-flow-helpers.js +1 -1
  82. package/lib/commands/skill/push-retarget.js +1 -1
  83. package/lib/commands/skill/scopes.js +1 -1
  84. package/lib/commands/skill/summary.js +1 -1
  85. package/lib/commands/skill/templates.js +1 -1
  86. package/lib/commands/skill/validate.js +1 -1
  87. package/lib/commands/sql/detail.js +1 -1
  88. package/lib/commands/sql/exec.js +1 -1
  89. package/lib/commands/sql/index.js +1 -1
  90. package/lib/commands/update.js +1 -1
  91. package/lib/commands/user-account/bind.js +1 -1
  92. package/lib/commands/user-account/index.js +1 -1
  93. package/lib/commands/workspace/index.js +1 -1
  94. package/lib/config/domain-config.js +1 -1
  95. package/lib/config/schema.js +1 -1
  96. package/lib/constant/app.js +1 -1
  97. package/lib/constant/auth-mode.js +1 -1
  98. package/lib/constant/cli.js +1 -1
  99. package/lib/constant/defaults.js +1 -1
  100. package/lib/constant/distribution.js +1 -1
  101. package/lib/constant/domain.js +1 -1
  102. package/lib/constant/env.js +1 -1
  103. package/lib/constant/output.js +1 -1
  104. package/lib/constant/product.js +1 -1
  105. package/lib/constant/region.js +1 -1
  106. package/lib/constant/risk.js +1 -1
  107. package/lib/constant/url.js +1 -1
  108. package/lib/context.js +1 -1
  109. package/lib/core/api-client.js +1 -1
  110. package/lib/core/db-resolver.js +1 -1
  111. package/lib/core/kb-management-client.js +1 -1
  112. package/lib/core/kb-sdk-errors.js +1 -1
  113. package/lib/core/kb-search-client.js +1 -1
  114. package/lib/core/sdk-client.js +1 -1
  115. package/lib/errors.js +1 -1
  116. package/lib/framework/access-error.js +1 -1
  117. package/lib/framework/build-all-flags.js +1 -1
  118. package/lib/framework/dryrun.js +1 -1
  119. package/lib/framework/flags.js +1 -1
  120. package/lib/framework/help.js +1 -1
  121. package/lib/framework/index.js +1 -1
  122. package/lib/framework/output.js +1 -1
  123. package/lib/framework/preparse.js +1 -1
  124. package/lib/framework/rate-limit.js +1 -1
  125. package/lib/framework/raw-flags.js +1 -1
  126. package/lib/framework/response.js +1 -1
  127. package/lib/framework/runner-confirmation.js +1 -1
  128. package/lib/framework/runner-error.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/service-order.js +1 -1
  132. package/lib/framework/types.js +1 -1
  133. package/lib/generated/build-info.d.ts +4 -4
  134. package/lib/generated/build-info.js +1 -1
  135. package/lib/generated/official-routing.js +1 -1
  136. package/lib/generated/routing-contract.js +1 -1
  137. package/lib/help.js +1 -1
  138. package/lib/postinstall.js +1 -1
  139. package/lib/runtime/confirmation.js +1 -1
  140. package/lib/runtime/event.js +1 -1
  141. package/lib/runtime/index.js +1 -1
  142. package/lib/runtime/queue.js +1 -1
  143. package/lib/runtime/resolve.js +1 -1
  144. package/lib/services/dataset-import/auto-id-runner.js +1 -1
  145. package/lib/services/dataset-import/excel-reader.js +1 -1
  146. package/lib/services/dataset-import/image-bytes.js +1 -1
  147. package/lib/services/dataset-import/image-ooxml.js +1 -1
  148. package/lib/services/dataset-import/image-runner.js +1 -1
  149. package/lib/services/dataset-import/metadata.js +1 -1
  150. package/lib/services/dataset-import/preview.js +1 -1
  151. package/lib/services/dataset-import/runner.js +1 -1
  152. package/lib/skills/builtin-skill.js +1 -1
  153. package/lib/skills/npx-skills-add.js +1 -1
  154. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  155. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  156. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  157. package/lib/skills/runtime-skill-sync/install-target.js +1 -1
  158. package/lib/skills/runtime-skill-sync/links.js +1 -1
  159. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  160. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  161. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  162. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  163. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  164. package/lib/skills/runtime-skill-sync/push.js +1 -1
  165. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  166. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  167. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  168. package/lib/skills/runtime-skill-sync.js +1 -1
  169. package/lib/skills/skill-presence.js +1 -1
  170. package/lib/utils/access-key-redaction.js +1 -1
  171. package/lib/utils/apply-jq-filter.js +1 -1
  172. package/lib/utils/cli-version-check.js +1 -1
  173. package/lib/utils/cli-version-policy.js +1 -1
  174. package/lib/utils/logger.js +1 -1
  175. package/lib/utils/lossless-json.js +1 -1
  176. package/lib/utils/params.js +1 -1
  177. package/lib/utils/positive-safe-integer.js +1 -1
  178. package/lib/utils/redaction.js +1 -1
  179. package/lib/utils/runtime-user-id.js +1 -1
  180. package/lib/utils/update-notice.js +1 -1
  181. package/lib/utils/version.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/skills/lovrabet/SKILL.md +3 -3
  185. package/skills/lovrabet/references/lovrabet-schedule-workflow.md +50 -1
  186. package/skills/lovrabet.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x1d7579,_0x190424){const _0x40d13b=a181_0x20ef,_0x3270d9=_0x1d7579();while(!![]){try{const _0x2d3686=parseInt(_0x40d13b(0xc4))/0x1*(-parseInt(_0x40d13b(0xb8))/0x2)+parseInt(_0x40d13b(0xb9))/0x3+-parseInt(_0x40d13b(0xc3))/0x4*(-parseInt(_0x40d13b(0xb4))/0x5)+parseInt(_0x40d13b(0xc1))/0x6*(parseInt(_0x40d13b(0xad))/0x7)+parseInt(_0x40d13b(0xae))/0x8*(-parseInt(_0x40d13b(0xb3))/0x9)+-parseInt(_0x40d13b(0xaf))/0xa+parseInt(_0x40d13b(0xbd))/0xb;if(_0x2d3686===_0x190424)break;else _0x3270d9['push'](_0x3270d9['shift']());}catch(_0x532085){_0x3270d9['push'](_0x3270d9['shift']());}}}(a181_0x2e66,0x542ba));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';function a181_0x20ef(_0x47b9da,_0xa3b510){_0x47b9da=_0x47b9da-0xaa;const _0x2e6665=a181_0x2e66();let _0x20ef61=_0x2e6665[_0x47b9da];return _0x20ef61;}const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x5f703=a181_0x20ef,_0x1d97bd=process.env.LOVRABET_NO_UPDATE_NOTICE?.['trim']()[_0x5f703(0xb2)]();return _0x1d97bd==='1'||_0x1d97bd===_0x5f703(0xc7)||_0x1d97bd===_0x5f703(0xbc);}function cacheRoot(){const _0x5ae35d=a181_0x20ef;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x5ae35d(0xb7));}export function getUpdateNoticeCachePath(){const _0x37286a=a181_0x20ef;return join(cacheRoot(),'lovrabet-cli',_0x37286a(0xac));}async function readUpdateNoticeCache(){const _0x25c564=a181_0x20ef;try{const _0x570abe=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x400749=JSON['parse'](_0x570abe);if(!_0x400749||typeof _0x400749!==_0x25c564(0xba))return{};return _0x400749;}catch{return{};}}async function writeUpdateNoticeCache(_0x243afa){const _0x4548ff=a181_0x20ef;try{const _0x2ea056=getUpdateNoticeCachePath();await mkdir(dirname(_0x2ea056),{'recursive':!![]}),await writeFile(_0x2ea056,JSON[_0x4548ff(0xb1)](_0x243afa,null,0x2)+'\x0a',_0x4548ff(0xbf));}catch{}}function isRecentlyNotified(_0x2130ef,_0x384890,_0x884930){const _0x566081=a181_0x20ef;return _0x2130ef['lastNotifiedVersion']===_0x384890&&typeof _0x2130ef[_0x566081(0xc5)]==='number'&&_0x884930-_0x2130ef[_0x566081(0xc5)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x26e572){const _0x40d763=a181_0x20ef;return _0x40d763(0xb0)+LOVRABET_NPM_PACKAGE_NAME+_0x40d763(0xc2)+_0x26e572;}export async function resolveLatestUpdateNotice(_0x1ec113){const _0x5b447b=a181_0x20ef;if(isUpdateNoticeDisabled())return null;try{const _0xcb5a39=Date[_0x5b447b(0xc6)](),_0x2e1a15=_0x1ec113??await checkCliVersion(),_0xcb5617=_0x2e1a15[_0x5b447b(0xb6)],_0x1b0a53=_0x2e1a15[_0x5b447b(0xaa)],_0x32de54=await readUpdateNoticeCache();if(!_0x1b0a53||!_0x2e1a15['needsUpgrade']||_0x2e1a15[_0x5b447b(0xc0)])return null;if(isRecentlyNotified(_0x32de54,_0x1b0a53,_0xcb5a39))return null;const _0x43b89a=getCliUpgradeCommand(_0x2e1a15);return await writeUpdateNoticeCache({..._0x32de54,'checkedAt':_0xcb5a39,'latest':_0x1b0a53,'failed':![],'lastNotifiedVersion':_0x1b0a53,'lastNotifiedAt':_0xcb5a39}),{'command':_0x43b89a,'current':_0xcb5617,'latest':_0x1b0a53,'url':buildNpmVersionUrl(_0x1b0a53),'message':[_0x2e1a15['upgradeMessage'],CLI_BIN_NAME+'\x20'+_0x1b0a53+_0x5b447b(0xbb)+_0xcb5617+_0x5b447b(0xbe)+_0x43b89a][_0x5b447b(0xb5)](Boolean)[_0x5b447b(0xab)]('\x20')};}catch{return null;}}function a181_0x2e66(){const _0x485bc1=['now','true','stableVersion','join','update-check.json','54579dJqmgi','6712CxFRwY','1858540cWRYjX','https://www.npmjs.com/package/','stringify','toLowerCase','6147TVKpTR','5umSTmx','filter','currentVersion','.cache','4934cubZyy','1302324YHpzlS','object','\x20is\x20recommended,\x20current\x20','yes','3535279JsbDZk',',\x20run:\x20','utf8','belowMinimum','24ZtJqOi','/v/','1277740KQwxUo','1nanJsq','lastNotifiedAt'];a181_0x2e66=function(){return _0x485bc1;};return a181_0x2e66();}
1
+ (function(_0x500dcc,_0x369f14){const _0x297dcd=a181_0xb01e,_0x6141d4=_0x500dcc();while(!![]){try{const _0x580b7f=-parseInt(_0x297dcd(0xed))/0x1+parseInt(_0x297dcd(0xf7))/0x2+-parseInt(_0x297dcd(0xf2))/0x3*(-parseInt(_0x297dcd(0xe9))/0x4)+parseInt(_0x297dcd(0xdd))/0x5+-parseInt(_0x297dcd(0xe3))/0x6+parseInt(_0x297dcd(0xe7))/0x7+-parseInt(_0x297dcd(0xde))/0x8*(parseInt(_0x297dcd(0xdb))/0x9);if(_0x580b7f===_0x369f14)break;else _0x6141d4['push'](_0x6141d4['shift']());}catch(_0xf5a47b){_0x6141d4['push'](_0x6141d4['shift']());}}}(a181_0x4edf,0x6afc2));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import{LOVRABET_NPM_PACKAGE_NAME}from'../constant/distribution.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{checkCliVersion,getCliUpgradeCommand}from'../utils/cli-version-check.js';const UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x53cabb=a181_0xb01e,_0x169874=process.env.LOVRABET_NO_UPDATE_NOTICE?.[_0x53cabb(0xeb)]()[_0x53cabb(0xe0)]();return _0x169874==='1'||_0x169874==='true'||_0x169874==='yes';}function a181_0x4edf(){const _0x535a84=['.cache','177858YToSrf','update-check.json','lovrabet-cli','/v/','now','129MLGsjX','stringify','filter','belowMinimum','needsUpgrade','161430Fnzpnd','parse','https://www.npmjs.com/package/','9EPcjeB','\x20is\x20recommended,\x20current\x20','840960TxytEV','2944744fynzWb','join','toLowerCase','lastNotifiedVersion','currentVersion','1397190KaUiDV','stableVersion','object','lastNotifiedAt','1802206TJWIeF','upgradeMessage','66108QRjPkv','utf8','trim'];a181_0x4edf=function(){return _0x535a84;};return a181_0x4edf();}function cacheRoot(){const _0x24deda=a181_0xb01e;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x24deda(0xec));}export function getUpdateNoticeCachePath(){const _0x1e3dad=a181_0xb01e;return join(cacheRoot(),_0x1e3dad(0xef),_0x1e3dad(0xee));}function a181_0xb01e(_0x49ada6,_0x17de23){_0x49ada6=_0x49ada6-0xd9;const _0x4edf03=a181_0x4edf();let _0xb01e7b=_0x4edf03[_0x49ada6];return _0xb01e7b;}async function readUpdateNoticeCache(){const _0x1e8fdf=a181_0xb01e;try{const _0x5159c5=await readFile(getUpdateNoticeCachePath(),_0x1e8fdf(0xea)),_0x5b8c95=JSON[_0x1e8fdf(0xd9)](_0x5159c5);if(!_0x5b8c95||typeof _0x5b8c95!==_0x1e8fdf(0xe5))return{};return _0x5b8c95;}catch{return{};}}async function writeUpdateNoticeCache(_0x2ce496){const _0x1f72c3=a181_0xb01e;try{const _0x451521=getUpdateNoticeCachePath();await mkdir(dirname(_0x451521),{'recursive':!![]}),await writeFile(_0x451521,JSON[_0x1f72c3(0xf3)](_0x2ce496,null,0x2)+'\x0a',_0x1f72c3(0xea));}catch{}}function isRecentlyNotified(_0x572447,_0x317725,_0x2246b0){const _0x3d0cab=a181_0xb01e;return _0x572447[_0x3d0cab(0xe1)]===_0x317725&&typeof _0x572447[_0x3d0cab(0xe6)]==='number'&&_0x2246b0-_0x572447['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x5c5f58){const _0x1bc78d=a181_0xb01e;return _0x1bc78d(0xda)+LOVRABET_NPM_PACKAGE_NAME+_0x1bc78d(0xf0)+_0x5c5f58;}export async function resolveLatestUpdateNotice(_0xd7c109){const _0x71210b=a181_0xb01e;if(isUpdateNoticeDisabled())return null;try{const _0x67af53=Date[_0x71210b(0xf1)](),_0xf25293=_0xd7c109??await checkCliVersion(),_0x3ab9d2=_0xf25293[_0x71210b(0xe2)],_0xa71adb=_0xf25293[_0x71210b(0xe4)],_0x50850e=await readUpdateNoticeCache();if(!_0xa71adb||!_0xf25293[_0x71210b(0xf6)]||_0xf25293[_0x71210b(0xf5)])return null;if(isRecentlyNotified(_0x50850e,_0xa71adb,_0x67af53))return null;const _0x1eeb7d=getCliUpgradeCommand(_0xf25293);return await writeUpdateNoticeCache({..._0x50850e,'checkedAt':_0x67af53,'latest':_0xa71adb,'failed':![],'lastNotifiedVersion':_0xa71adb,'lastNotifiedAt':_0x67af53}),{'command':_0x1eeb7d,'current':_0x3ab9d2,'latest':_0xa71adb,'url':buildNpmVersionUrl(_0xa71adb),'message':[_0xf25293[_0x71210b(0xe8)],CLI_BIN_NAME+'\x20'+_0xa71adb+_0x71210b(0xdc)+_0x3ab9d2+',\x20run:\x20'+_0x1eeb7d][_0x71210b(0xf4)](Boolean)[_0x71210b(0xdf)]('\x20')};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x6ba6f1,_0x161769){const _0x3c88a8=a182_0x2e9a,_0x271541=_0x6ba6f1();while(!![]){try{const _0x2e1076=-parseInt(_0x3c88a8(0x174))/0x1*(-parseInt(_0x3c88a8(0x173))/0x2)+-parseInt(_0x3c88a8(0x171))/0x3+parseInt(_0x3c88a8(0x172))/0x4+-parseInt(_0x3c88a8(0x16d))/0x5+-parseInt(_0x3c88a8(0x16e))/0x6*(-parseInt(_0x3c88a8(0x16b))/0x7)+-parseInt(_0x3c88a8(0x170))/0x8+-parseInt(_0x3c88a8(0x16c))/0x9*(parseInt(_0x3c88a8(0x16f))/0xa);if(_0x2e1076===_0x161769)break;else _0x271541['push'](_0x271541['shift']());}catch(_0x90fbfd){_0x271541['push'](_0x271541['shift']());}}}(a182_0xcba7,0xf128e));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0xa873de=String(GIT_COMMIT);return _0xa873de&&_0xa873de!=='unknown'?_0xa873de:'';}export function getCliVersionDisplay(){const _0x21dcd0=getCliGitCommit(),_0xb64acd=BUILD_TIME['slice'](0x0,0xa);if(!_0x21dcd0||!_0xb64acd)return VERSION;return VERSION+'\x20('+_0x21dcd0+',\x20'+_0xb64acd+')';}function a182_0x2e9a(_0x4ebcc1,_0x700bc5){_0x4ebcc1=_0x4ebcc1-0x16b;const _0xcba77a=a182_0xcba7();let _0x2e9a0b=_0xcba77a[_0x4ebcc1];return _0x2e9a0b;}function a182_0xcba7(){const _0x21973e=['3146946QSZRdG','7048196IJKpom','1052LrmGQa','1801lJWVJE','7zuzMAf','45iXNLqN','2921920kpUBkn','11757468WmYkVq','1705390bthQRE','9560816cBApdm'];a182_0xcba7=function(){return _0x21973e;};return a182_0xcba7();}
1
+ (function(_0x11d57d,_0x56fdfb){const _0x37a153=a182_0x5063,_0x5e4825=_0x11d57d();while(!![]){try{const _0x49d4b6=parseInt(_0x37a153(0x1bd))/0x1+-parseInt(_0x37a153(0x1be))/0x2+parseInt(_0x37a153(0x1c8))/0x3*(-parseInt(_0x37a153(0x1c3))/0x4)+parseInt(_0x37a153(0x1c7))/0x5*(-parseInt(_0x37a153(0x1bf))/0x6)+parseInt(_0x37a153(0x1c5))/0x7+-parseInt(_0x37a153(0x1c2))/0x8+-parseInt(_0x37a153(0x1c4))/0x9*(-parseInt(_0x37a153(0x1c0))/0xa);if(_0x49d4b6===_0x56fdfb)break;else _0x5e4825['push'](_0x5e4825['shift']());}catch(_0x32ec71){_0x5e4825['push'](_0x5e4825['shift']());}}}(a182_0x9c92,0x791c2));import{BUILD_TIME,GIT_COMMIT,VERSION}from'../generated/build-info.js';function a182_0x5063(_0x561bf3,_0x269095){_0x561bf3=_0x561bf3-0x1bd;const _0x9c9285=a182_0x9c92();let _0x506303=_0x9c9285[_0x561bf3];return _0x506303;}export function getCliVersion(){return VERSION;}export function getCliGitCommit(){const _0x631466=a182_0x5063,_0x522f20=String(GIT_COMMIT);return _0x522f20&&_0x522f20!==_0x631466(0x1c1)?_0x522f20:'';}export function getCliVersionDisplay(){const _0x3b2b1f=a182_0x5063,_0x4a9f5e=getCliGitCommit(),_0x69d8ae=BUILD_TIME[_0x3b2b1f(0x1c6)](0x0,0xa);if(!_0x4a9f5e||!_0x69d8ae)return VERSION;return VERSION+'\x20('+_0x4a9f5e+',\x20'+_0x69d8ae+')';}function a182_0x9c92(){const _0x3e3da2=['9248GIVjWs','1233RIKHrs','6487768GeIIgI','slice','15coGAqX','213xUXkMt','918003ihzsFV','1785122Ulxyyb','1697442pMUmjJ','71450fyIZWR','unknown','3377536NYMSeq'];a182_0x9c92=function(){return _0x3e3da2;};return a182_0x9c92();}
@@ -1 +1 @@
1
- (function(_0x2ef2a2,_0x27ff3f){var _0x3378a1=a183_0x22d2,_0x34a102=_0x2ef2a2();while(!![]){try{var _0x56278a=parseInt(_0x3378a1(0x1c9))/0x1+parseInt(_0x3378a1(0x1c3))/0x2*(-parseInt(_0x3378a1(0x1c7))/0x3)+-parseInt(_0x3378a1(0x1c5))/0x4*(parseInt(_0x3378a1(0x1c2))/0x5)+-parseInt(_0x3378a1(0x1c1))/0x6+parseInt(_0x3378a1(0x1ca))/0x7*(parseInt(_0x3378a1(0x1cc))/0x8)+parseInt(_0x3378a1(0x1cb))/0x9+-parseInt(_0x3378a1(0x1c8))/0xa*(parseInt(_0x3378a1(0x1c6))/0xb);if(_0x56278a===_0x27ff3f)break;else _0x34a102['push'](_0x34a102['shift']());}catch(_0x1bc4d9){_0x34a102['push'](_0x34a102['shift']());}}}(a183_0x34e8,0xba7eb));function a183_0x34e8(){var _0x4dec33=['1180234myvmqQ','14nFMpUr','11316177oAVdyd','5982536GXAzqz','8692734iBtHMI','40ZRwJfl','2wjvrNj','write','73252hsvHbm','2634269GWpyKV','4003698RECGBZ','10bNJseQ'];a183_0x34e8=function(){return _0x4dec33;};return a183_0x34e8();}function a183_0x22d2(_0xb836d7,_0x25107f){_0xb836d7=_0xb836d7-0x1c1;var _0x34e864=a183_0x34e8();var _0x22d249=_0x34e864[_0xb836d7];return _0x22d249;}export function writeCliSideChannelLine(_0x1f06e5){var _0xb1bce6=a183_0x22d2;process['stderr'][_0xb1bce6(0x1c4)](_0x1f06e5+'\x0a');}
1
+ function a183_0x4ae7(_0x229a38,_0x3d80e9){_0x229a38=_0x229a38-0x16d;var _0x334386=a183_0x3343();var _0x4ae7d1=_0x334386[_0x229a38];return _0x4ae7d1;}(function(_0x4477ee,_0x1c4e58){var _0x1dcb24=a183_0x4ae7,_0xa991dc=_0x4477ee();while(!![]){try{var _0x2bab47=-parseInt(_0x1dcb24(0x177))/0x1+-parseInt(_0x1dcb24(0x173))/0x2*(-parseInt(_0x1dcb24(0x176))/0x3)+parseInt(_0x1dcb24(0x16f))/0x4*(-parseInt(_0x1dcb24(0x174))/0x5)+parseInt(_0x1dcb24(0x170))/0x6+parseInt(_0x1dcb24(0x175))/0x7*(parseInt(_0x1dcb24(0x172))/0x8)+parseInt(_0x1dcb24(0x16e))/0x9+-parseInt(_0x1dcb24(0x16d))/0xa;if(_0x2bab47===_0x1c4e58)break;else _0xa991dc['push'](_0xa991dc['shift']());}catch(_0x1acff5){_0xa991dc['push'](_0xa991dc['shift']());}}}(a183_0x3343,0x6b62c));function a183_0x3343(){var _0x270971=['184849zVhRLT','3pzlIcL','737532HUGISm','12802170Gqrjpb','4922100AQVGTT','5156uoiWqT','4399164qMNHRj','write','248fNojjd','1215334IydoWe','965snWtUr'];a183_0x3343=function(){return _0x270971;};return a183_0x3343();}export function writeCliSideChannelLine(_0xeaabf4){var _0x3843f0=a183_0x4ae7;process['stderr'][_0x3843f0(0x171)](_0xeaabf4+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/lovrabet-cli",
3
- "version": "2.3.10",
3
+ "version": "2.3.11-beta.1",
4
4
  "description": "Runtime CLI for Lovrabet apps, datasets, SQL, Backend Function, skills, and AI agent workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: lovrabet
3
3
  displayName: Lovrabet 运行态 CLI
4
- version: 2.3.10
4
+ version: 2.3.11-beta.1
5
5
  description: "Lovrabet 运行态 CLI — 面向业务场景的 AI 操作套件,通过 lovrabet 命令管理应用目录、业务角色与权限、用户级外部账号、API 文档发现、数据集查询、Instant API 数据操作、可恢复 Excel 导入、Custom SQL/Backend Function、Personal Backend Function、文件上传、面向票证类业务材料文字与结构化字段提取的 OCR、审批待办与任务办理、定时任务、Skill、知识库与运行态 app-config key 状态检查。触发词:云图、lovrabet、lovrabet-cli、业务角色、角色成员、页面权限、菜单权限、数据集权限、user-account bind、provider 外部账号绑定、钉钉 userId 绑定、api-doc、dataset、data filter、Excel 导入、data import-excel、file upload、file query-url、ocr recognize、OCR 识别、票证文字提取、票证字段提取、发票识别、票据识别、证照识别、附件上传、personal-bff、approval、审批、待办、approve、reject、transfer、schedule、定时任务、cron、kb、skill、sql exec、bff exec、app-config、accessKey、compress、jq。"
6
6
  metadata:
7
7
  requires:
@@ -379,7 +379,7 @@ npm 包会自动安装同版本 Built-in Skill。若 `lovrabet doctor` 报告缺
379
379
  | 删除计划 | `lovrabet schedule delete --schedule-id <SCHEDULE_ID> --dry-run`,确认后加 `--yes` |
380
380
 
381
381
  创建、立即运行和删除前,读取
382
- [定时任务工作流](references/lovrabet-schedule-workflow.md)。
382
+ [定时任务工作流](references/lovrabet-schedule-workflow.md)。创建前必须先完成其中的「检查任务能否无人值守完整执行」:从 `lovrabet schema` 导出 `risk == "read"` 的完整命令集合,确认 prompt 的完整执行流程(含条件分支、清理和自停步骤)不依赖 `write`/`high-risk-write` 命令或人工交互。
383
383
 
384
384
  ### 文件上传
385
385
 
@@ -463,7 +463,7 @@ lovrabet data delete --code <datasetCode> --params '{"id":123}' --yes
463
463
 
464
464
  ## 定时任务工作流
465
465
 
466
- `lovrabet schedule` 用于校验、创建、查询、立即运行和删除当前应用下的 UTC 定时任务。创建前必须核对应用、执行时间、重复规则、标题、完整 prompt 和 model;创建、立即运行和删除都先执行 `--dry-run`,取得用户明确确认后再执行。详见 [定时任务工作流](references/lovrabet-schedule-workflow.md)。
466
+ `lovrabet schedule` 用于校验、创建、查询、立即运行和删除当前应用下的 UTC 定时任务。定时任务无人值守自动执行:创建前必须先完成任务能力检查——从 `lovrabet schema` 导出 `risk == "read"` 的完整命令集合,确认完整执行流程(含条件分支、异常处理、通知、清理和自停步骤)不依赖 `write`/`high-risk-write` 命令或人工交互;`schedule validate` 只校验字段、时间、模型和 prompt 格式,不检查能力依赖。随后核对应用、执行时间、重复规则、标题、完整 prompt 和 model;创建、立即运行和删除都先执行 `--dry-run`,取得用户明确确认后再执行。详见 [定时任务工作流](references/lovrabet-schedule-workflow.md)。
467
467
 
468
468
  ## 应用级通知配置查询
469
469
 
@@ -1,6 +1,6 @@
1
1
  # 创建和管理定时任务
2
2
 
3
- 使用 `lovrabet schedule` 校验、创建、查看、立即运行和删除当前应用的定时任务。
3
+ 使用 `lovrabet schedule` 校验、创建、查看、立即运行和删除当前应用的定时任务。定时任务到点无人值守自动执行,创建前必须先通过「检查任务能否无人值守完整执行」。
4
4
 
5
5
  ## 准备定时任务
6
6
 
@@ -12,6 +12,7 @@
12
12
  - 使用 `--model` 选择执行模型;默认 `deepseek-v4-flash-0731`,也可显式选择 `kimi/k3` 或 `deepseek-v4-pro-0813`。
13
13
  - prompt 是完整、可重复执行的任务说明,不依赖当前对话中的临时上下文。
14
14
  - prompt 不包含 AccessKey、密码或其他明文凭证。
15
+ - 任务的完整执行流程已通过「检查任务能否无人值守完整执行」,所需能力全部在 `{read}` 集合内。
15
16
 
16
17
  定时任务分为:
17
18
 
@@ -26,6 +27,51 @@ minute hour day-of-month month day-of-week
26
27
 
27
28
  支持数字、`*`、范围、列表和 step。不要使用秒字段、月份英文名或星期英文名。
28
29
 
30
+ ## 检查任务能否无人值守完整执行
31
+
32
+ 定时任务到点自动执行,没有用户在场确认、审批或补充信息;流程走到需要人工的步骤时无法继续,整次执行会失败。创建前必须确认:任务的完整执行流程可以由当前 CLI 标记为 `risk: "read"` 的能力完成。下文把 `lovrabet schema` 中 `risk == "read"` 的完整命令集合称为 `{read}` 能力集合。
33
+
34
+ `schedule validate` 只校验字段、时间、模型和 prompt 格式,不检查任务的能力依赖,不能替代本检查。
35
+
36
+ ### 获取 `{read}` 能力集合
37
+
38
+ ```bash
39
+ lovrabet schema --format compress --jq '[.data.services[] as $s | $s.commands[] | select(.risk == "read") | {service: $s.service, command}]'
40
+ ```
41
+
42
+ - 同时记录同一输出中的 `cli.version` 和 `schemaVersion`,作为本次判断的依据。不同环境安装的 CLI 版本可能不同;不沿用其他环境的结论,不把某个版本的命令数量或清单当成固定事实。
43
+ - 过滤结果是完整可选范围,由任务需求选择必要子集;不要求任务用上全部命令,也不得自行缩小成“查询类命令”或固定的小清单。
44
+ - 按 `risk` 标签判断,不按命令名或副作用直觉判断:`skill install`、`skill create`、`file upload`、`sql exec`、`bff exec` 当前都标记为 `read`,不会因为会安装文件、执行脚本或产生业务产物而被排除;`schedule delete` 是 `high-risk-write`,不会因为用途是清理而被当作 `read`。
45
+ - 命令缺失 `risk`、值未知,或 schema 无法读取时,该命令按不可用处理,不猜为 `read`;未完成本检查前不进入创建。
46
+ - 需要某个命令的参数、认证或适用范围时,读取完整 schema 输出和该命令的 `--help`,不凭记忆推断。
47
+ - `{read}` 标签只界定无人值守任务的可选工具集合,不替代身份、RBAC、应用权限、业务授权和可信契约验证;`sql exec`、`bff exec` 等仍须遵循 SKILL.md 的标识来源与契约要求。
48
+
49
+ ### 审查完整任务流程
50
+
51
+ 对照 prompt 审查任务的完整执行流程,覆盖所有条件分支、异常与降级处理、到期或超时处理、通知、清理和自停步骤;不能只审查正常分支,也不能只看任务标题。仅某个条件分支需要的能力不合格时,同样判为不能创建。
52
+
53
+ 任务流程不得依赖:
54
+
55
+ - `write` 或 `high-risk-write` 命令,例如 `schedule delete`、`schedule run`、`data delete`、重新创建计划或其他带 `--yes` 的管理执行。
56
+ - 人工确认、人工审批或在场用户补充数据。
57
+ - 创建时对话中的临时上下文。
58
+
59
+ 不满足时,创建前向用户指出具体能力缺口——哪个步骤需要什么能力、为什么当前 `{read}` 集合没有——并停止创建。不接受“创建时用户确认过一次,未来自动执行均已授权”的推断,也不通过删除约束、省略用户要求或换一种描述,把不能完整执行的任务包装成可创建。
60
+
61
+ ### 创建行为与自动执行行为
62
+
63
+ 创建 schedule 本身是需要用户确认的 `high-risk-write` 管理操作,沿用本工作流的 dry-run 与确认流程;这不禁止用户正常创建合格的 `{read}` 任务。本节约束的是计划将来自动运行的任务内容,不是创建动作本身。
64
+
65
+ ### 计划生命周期需求
66
+
67
+ 用户要求“条件满足后自动停止”“到期自动清理”“自动删除本计划”这类行为时,先核对当前 CLI 是否提供可用的计划生命周期能力。当前 schedule 只有 validate/create/list/detail/run/delete,没有条件停用、到期清理或自动停用命令。
68
+
69
+ 没有可用能力时,如实说明该完整需求当前不支持,并提出需要用户确认的替代方案,例如:计划持续运行并按周期报告结果,由用户确认后删除计划;或改用单次 `ONCE` 任务表达一次性检查。不要把删除或重建计划等管理动作写进运行 prompt,交给执行中的任务自行处理。
70
+
71
+ ### 检查的边界
72
+
73
+ 本检查是创建前的决策指引,不是运行时强制;不要向用户声称本工作流能在技术上保证自动执行时永远不会调用非 `read` 命令。执行结果仍按「检查完成结果」回读与披露。
74
+
29
75
  ## 校验周期任务
30
76
 
31
77
  先校验输入,不创建计划:
@@ -58,6 +104,8 @@ lovrabet schedule validate \
58
104
 
59
105
  ## 创建定时任务
60
106
 
107
+ 只有「检查任务能否无人值守完整执行」通过后才进入本节。
108
+
61
109
  先预览:
62
110
 
63
111
  ```bash
@@ -175,6 +223,7 @@ Task 已取消”。
175
223
 
176
224
  ## 检查完成结果
177
225
 
226
+ - 创建前已记录能力检查结论:使用的 `cli.version`、`schemaVersion` 和判断结果。
178
227
  - create 返回真实 `scheduleId`。
179
228
  - list 或 detail 能查到新计划。
180
229
  - run 返回 `taskId` 时只报告已进入队列。
@@ -2,8 +2,8 @@
2
2
  "schemaVersion": 1,
3
3
  "name": "lovrabet",
4
4
  "packageName": "@lovrabet/lovrabet-cli",
5
- "packageVersion": "2.3.10",
6
- "skillVersion": "2.3.10",
5
+ "packageVersion": "2.3.11-beta.1",
6
+ "skillVersion": "2.3.11-beta.1",
7
7
  "files": [
8
8
  "SKILL.md",
9
9
  "guides/app-resolution.md",
@@ -42,5 +42,5 @@
42
42
  "references/lovrabet-user-account.md",
43
43
  "references/lovrabet-workspace.md"
44
44
  ],
45
- "digest": "4bddbdf38b4cc81bb05d23c697ebf0736cd1d8bcb286f347a4427900de8e5b4a"
45
+ "digest": "5905c4613e8802271068c341468d83b839675a2f525dadf96b358a0a8000b0f7"
46
46
  }