@agimon-ai/po-workflow 0.0.0-alpha.0 → 0.0.0-alpha.2

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.
@@ -1,4 +1,4 @@
1
- import { apiResponse, createApiClient, defineActivityGroup, defineApiRoutes, defineChannelFile, defineContextAction, defineDockFace, defineFill, defineLeaderBinding, defineMinorModeFile, defineSessionStore, defineToolRenderer, defineWebPlugin, sessionApiAddress } from "@agimon-ai/po-core/web";
1
+ import { createApiClient, defineActivityGroup, defineChannelFile, defineContextAction, defineDockFace, defineFill, defineLeaderBinding, defineMinorModeFile, defineSessionStore, defineToolRenderer, defineWebPlugin, sessionApiAddress } from "@agimon-ai/po-core/web";
2
2
  import { AnsiLine, ArrowRightIcon, Badge, Button, ChevronDownIcon, ChevronRightIcon, CloseIcon, Dialog, DialogBody, DialogContent, DialogFooter, DialogHeader, DialogTitle, Dot, EmptyState, Input, Kbd, Markdown, MessageItem, MessageItemBody, MessageItemHeader, MessageLines, OptionLabel, OptionRow, Popover, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, SearchIcon, SectionLabel, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Sheet, SheetContent, SheetTitle, StatusBadge, StreamCursor, Textarea, WorkflowIcon, cn, toolTone } from "@agimon-ai/po-web-components";
3
3
  import { useStore } from "@tanstack/react-store";
4
4
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -1088,13 +1088,19 @@ const ARTIFACT_NAME_PARAM = ":name{.+}";
1088
1088
  */
1089
1089
  const STEP_TARGET_PARAM = "step";
1090
1090
  const ARTIFACT_DOWNLOAD_PARAM = "download";
1091
- var apiRoutes_default = defineApiRoutes({
1091
+ const api = createApiClient({
1092
1092
  /**
1093
1093
  * The terminal, as server-sent events.
1094
1094
  *
1095
1095
  * `stream: true` gets a URL and no call method: the consumer is the browser's
1096
1096
  * own `EventSource`, and a relayed call would buffer a stream that never ends.
1097
1097
  */
1098
+ snapshot: {
1099
+ method: "GET",
1100
+ path: `${RUN}/screen`,
1101
+ query: [STEP_TARGET_PARAM],
1102
+ response: void 0
1103
+ },
1098
1104
  screen: {
1099
1105
  method: "GET",
1100
1106
  path: `${RUN}/screen/stream`,
@@ -1104,7 +1110,7 @@ var apiRoutes_default = defineApiRoutes({
1104
1110
  control: {
1105
1111
  method: "POST",
1106
1112
  path: `${RUN}/control`,
1107
- response: apiResponse()
1113
+ response: void 0
1108
1114
  },
1109
1115
  keys: {
1110
1116
  method: "POST",
@@ -1113,23 +1119,23 @@ var apiRoutes_default = defineApiRoutes({
1113
1119
  resize: {
1114
1120
  method: "POST",
1115
1121
  path: `${RUN}/resize`,
1116
- response: apiResponse()
1122
+ response: void 0
1117
1123
  },
1118
1124
  remove: {
1119
1125
  method: "DELETE",
1120
1126
  path: RUN,
1121
- response: apiResponse()
1127
+ response: void 0
1122
1128
  },
1123
1129
  stop: {
1124
1130
  method: "POST",
1125
1131
  path: `${RUN}/stop`,
1126
- response: apiResponse()
1132
+ response: void 0
1127
1133
  },
1128
1134
  /** Guidance for the agent session the running step is in, like steering a Team sub-agent. */
1129
1135
  steer: {
1130
1136
  method: "POST",
1131
1137
  path: `${RUN}/steer`,
1132
- response: apiResponse()
1138
+ response: void 0
1133
1139
  },
1134
1140
  /**
1135
1141
  * Launch a workflow into the mounting session's own runtime, which then owns
@@ -1138,28 +1144,27 @@ var apiRoutes_default = defineApiRoutes({
1138
1144
  launch: {
1139
1145
  method: "POST",
1140
1146
  path: "/launch",
1141
- response: apiResponse()
1147
+ response: void 0
1142
1148
  },
1143
1149
  openRunDirectory: {
1144
1150
  method: "POST",
1145
1151
  path: `${RUN}/open-directory`,
1146
- response: apiResponse()
1152
+ response: void 0
1147
1153
  },
1148
1154
  artifacts: {
1149
1155
  method: "GET",
1150
1156
  path: `${RUN}/artifacts`,
1151
1157
  query: ["directory"],
1152
- response: apiResponse()
1158
+ response: void 0
1153
1159
  },
1154
1160
  /** One artifact: its metadata and text, or its raw bytes under `raw=1`. */
1155
1161
  artifact: {
1156
1162
  method: "GET",
1157
1163
  path: `${RUN}/artifacts/${ARTIFACT_NAME_PARAM}`,
1158
1164
  query: ["raw", ARTIFACT_DOWNLOAD_PARAM],
1159
- response: apiResponse()
1165
+ response: void 0
1160
1166
  }
1161
- });
1162
- const api = createApiClient(apiRoutes_default, {
1167
+ }, {
1163
1168
  scopes: [
1164
1169
  "global",
1165
1170
  "workspace",