@appchy/jarvis 0.1.28 → 0.1.29

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/dist/bin.js CHANGED
@@ -1056,12 +1056,13 @@ async function processAfterHooks(ctx, req) {
1056
1056
  }
1057
1057
  );
1058
1058
  if (afterResult.ui && "uri" in afterResult.ui) {
1059
- const { uri, title, data } = afterResult.ui;
1059
+ const { uri, title, data, height } = afterResult.ui;
1060
1060
  const match = uri.match(/^ui:\/\/([^/]+)\/(.+)$/);
1061
1061
  artifactMap[toolUseId] = {
1062
1062
  type: match?.[2] || uri,
1063
1063
  title,
1064
- data
1064
+ data,
1065
+ ...typeof height === "number" ? { height } : {}
1065
1066
  };
1066
1067
  hasArtifacts = true;
1067
1068
  }
@@ -1840,7 +1841,10 @@ ${formattedAnswers}`
1840
1841
  ui: {
1841
1842
  uri: "ui://sdk/ask-user",
1842
1843
  title: "User Answers",
1843
- data: { questions: output.questions, answers }
1844
+ data: { questions: output.questions, answers },
1845
+ // Smaller preview height — the question header + selected option
1846
+ // fit comfortably in ~120px without burning vertical space.
1847
+ height: 120
1844
1848
  }
1845
1849
  };
1846
1850
  }
@@ -3524,6 +3528,7 @@ var init_tools3 = __esm({
3524
3528
  init_web_fetch_tool();
3525
3529
  init_agent_tool();
3526
3530
  init_generic_tool();
3531
+ init_src4();
3527
3532
  init_agent_tool();
3528
3533
  init_bash_tool();
3529
3534
  init_edit_tool();
@@ -3538,6 +3543,7 @@ var init_tools3 = __esm({
3538
3543
  init_web_search_tool();
3539
3544
  init_write_tool();
3540
3545
  claudeCodeTools = [
3546
+ askUserTool,
3541
3547
  editTool,
3542
3548
  bashTool,
3543
3549
  writeTool,
@@ -3922,7 +3928,8 @@ function createClaudeCodeProgress(config) {
3922
3928
  const toolUi = toolUiData ? {
3923
3929
  uri: `ui://devenv/${toolUiData.type}`,
3924
3930
  title: toolUiData.title ?? "",
3925
- data: toolUiData.data
3931
+ data: toolUiData.data,
3932
+ ...typeof toolUiData.height === "number" ? { height: toolUiData.height } : {}
3926
3933
  } : void 0;
3927
3934
  const toolCall = {
3928
3935
  toolName,