@coresource/hz 0.1.7 → 0.1.9

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 (2) hide show
  1. package/dist/hz.mjs +4 -1
  2. package/package.json +1 -1
package/dist/hz.mjs CHANGED
@@ -2853,6 +2853,7 @@ async function runLifecycleMutation(action, missionIdValue, command, context, de
2853
2853
  );
2854
2854
  try {
2855
2855
  const response = await apiClient.request({
2856
+ body: {},
2856
2857
  method: "POST",
2857
2858
  path: `/missions/${missionId}/mission/${action}`
2858
2859
  });
@@ -2910,6 +2911,7 @@ async function runMissionResume(missionIdValue, command, context, dependencies)
2910
2911
  if (snapshot.state.state === "paused") {
2911
2912
  try {
2912
2913
  const response = await apiClient.request({
2914
+ body: {},
2913
2915
  method: "POST",
2914
2916
  path: `/missions/${missionId}/mission/resume`
2915
2917
  });
@@ -2989,7 +2991,7 @@ function registerMissionLifecycleCommands(mission, context, dependencies = {}) {
2989
2991
  dependencies
2990
2992
  );
2991
2993
  });
2992
- mission.command("watch").description("Watch a mission's live progress").argument("[missionId]").action(async (missionId, _options, command) => {
2994
+ mission.command("watch").description("Watch a mission's live progress").argument("[missionId]").option("--yes", "Automatically approve all triage prompts").action(async (missionId, options, command) => {
2993
2995
  const homeDir = resolveLifecycleHomeDir(context);
2994
2996
  const resolved = await resolveMissionId(missionId, context, command, homeDir);
2995
2997
  const { apiClient, authConfig } = await createMissionClientContext(
@@ -3001,6 +3003,7 @@ function registerMissionLifecycleCommands(mission, context, dependencies = {}) {
3001
3003
  const monitorResult = await monitorMission({
3002
3004
  apiClient,
3003
3005
  apiKey: authConfig.apiKey,
3006
+ autoApprove: options.yes === true,
3004
3007
  createSpinner: dependencies.createSpinner,
3005
3008
  createWebSocket: dependencies.createWebSocket,
3006
3009
  endpoint: authConfig.endpoint,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coresource/hz",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "hz": "dist/hz.mjs"