@sireai/optimus 0.1.24 → 0.1.26

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 (33) hide show
  1. package/dist/cli/optimus.js +9 -9
  2. package/dist/cli/optimus.js.map +1 -1
  3. package/dist/integrations/feishu/feishu-doc-service.d.ts +2 -0
  4. package/dist/integrations/feishu/feishu-doc-service.js +3 -2
  5. package/dist/integrations/feishu/feishu-doc-service.js.map +1 -1
  6. package/dist/integrations/jira/jira-access-manager.d.ts +3 -0
  7. package/dist/integrations/jira/jira-access-manager.js +43 -0
  8. package/dist/integrations/jira/jira-access-manager.js.map +1 -1
  9. package/dist/task-environment/delivery/feishu-analysis-doc-service.d.ts +3 -13
  10. package/dist/task-environment/delivery/feishu-analysis-doc-service.js +12 -89
  11. package/dist/task-environment/delivery/feishu-analysis-doc-service.js.map +1 -1
  12. package/dist/task-environment/delivery/task-delivery-service.d.ts +1 -0
  13. package/dist/task-environment/delivery/task-delivery-service.js +14 -6
  14. package/dist/task-environment/delivery/task-delivery-service.js.map +1 -1
  15. package/dist/task-environment/delivery/task-publication-service.d.ts +5 -0
  16. package/dist/task-environment/delivery/task-publication-service.js +84 -2
  17. package/dist/task-environment/delivery/task-publication-service.js.map +1 -1
  18. package/dist/task-environment/observability/execution-metrics.js +15 -18
  19. package/dist/task-environment/observability/execution-metrics.js.map +1 -1
  20. package/dist/task-environment/orchestration/execution-context-assembler.d.ts +2 -0
  21. package/dist/task-environment/orchestration/execution-context-assembler.js +34 -11
  22. package/dist/task-environment/orchestration/execution-context-assembler.js.map +1 -1
  23. package/dist/task-environment/orchestration/task-orchestrator.js +1 -2
  24. package/dist/task-environment/orchestration/task-orchestrator.js.map +1 -1
  25. package/dist/types.d.ts +9 -0
  26. package/package.json +1 -1
  27. package/task-harnesses/pm/ACCEPT.md +75 -0
  28. package/task-harnesses/pm/CONSTRAINTS.md +26 -0
  29. package/task-harnesses/pm/CONTEXT.md +26 -0
  30. package/task-harnesses/pm/EVOLUTION.md +35 -0
  31. package/task-harnesses/pm/ROLE.md +59 -0
  32. package/task-harnesses/pm/STANDARD.md +87 -0
  33. package/task-harnesses/pm/manifest.json +13 -0
@@ -943,19 +943,18 @@ async function maybeHandleStartupSelfUpdate(input) {
943
943
  console.log(`[optimus] update available ${check.currentVersion} -> ${check.latestVersion}. Run \`optimus upgrade\`.`);
944
944
  return { handled: false };
945
945
  }
946
- console.log(`[optimus] upgrading ${check.currentVersion} -> ${check.latestVersion} before start...`);
947
946
  await input.logger.info("self_update.install_started", {
948
947
  command: input.command,
949
948
  currentVersion: check.currentVersion,
950
949
  latestVersion: check.latestVersion
951
950
  });
952
- const install = await installSelfUpdate({
951
+ const install = await runWithTerminalLoading(`Updating Optimus ${check.currentVersion} -> ${check.latestVersion}`, async () => await installSelfUpdate({
953
952
  currentVersion: check.currentVersion,
954
953
  packageName: PACKAGE_NAME,
955
954
  packageRoot: CLI_ROOT_DIR,
956
955
  channel: check.channel,
957
- targetVersion: check.latestVersion
958
- });
956
+ ...(check.latestVersion ? { targetVersion: check.latestVersion } : {})
957
+ }));
959
958
  if (!install.success) {
960
959
  await input.logger.error("self_update.install_failed", {
961
960
  command: input.command,
@@ -974,7 +973,7 @@ async function maybeHandleStartupSelfUpdate(input) {
974
973
  currentVersion: check.currentVersion,
975
974
  latestVersion: check.latestVersion
976
975
  });
977
- console.log(`[optimus] upgrade succeeded. Restart with \`optimus ${input.command}\`.`);
976
+ console.log(`[optimus] update succeeded: ${check.currentVersion} -> ${check.latestVersion}. Please restart Optimus.`);
978
977
  return {
979
978
  handled: true,
980
979
  exitCode: 0
@@ -2346,13 +2345,13 @@ async function main() {
2346
2345
  process.exitCode = result.reason === "check_failed" ? 1 : 0;
2347
2346
  return;
2348
2347
  }
2349
- const result = await installSelfUpdate({
2348
+ const result = await runWithTerminalLoading("Updating Optimus", async () => await installSelfUpdate({
2350
2349
  currentVersion,
2351
2350
  packageName: PACKAGE_NAME,
2352
2351
  packageRoot: CLI_ROOT_DIR,
2353
2352
  channel,
2354
2353
  force: args.force === "true"
2355
- });
2354
+ }));
2356
2355
  if (result.reason === "already_latest") {
2357
2356
  console.log(`Optimus is already up to date (${currentVersion}).`);
2358
2357
  return;
@@ -2362,7 +2361,8 @@ async function main() {
2362
2361
  process.exitCode = 1;
2363
2362
  return;
2364
2363
  }
2365
- console.log(`Optimus upgraded successfully: ${currentVersion} -> ${result.latestVersion ?? currentVersion}`);
2364
+ console.log(`Optimus updated successfully: ${currentVersion} -> ${result.latestVersion ?? currentVersion}`);
2365
+ console.log("Please restart Optimus.");
2366
2366
  return;
2367
2367
  }
2368
2368
  if (command === "setup") {
@@ -2764,7 +2764,7 @@ async function main() {
2764
2764
  const deliveryService = new TaskDeliveryService({
2765
2765
  jiraBaseUrl: config.jira.baseUrl
2766
2766
  });
2767
- const analysisDocService = new FeishuAnalysisDocService({ config, refStore: store });
2767
+ const analysisDocService = new FeishuAnalysisDocService({ config });
2768
2768
  const publicationService = new TaskPublicationService(logger);
2769
2769
  const deliveryDispatcher = new TaskDeliveryDispatcher(config);
2770
2770
  let deliveryBundle = mergeReplayBundle(await deliveryService.buildBundle({