opensteer 0.9.1 → 0.9.3

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 (34) hide show
  1. package/README.md +0 -3
  2. package/dist/{chunk-4LP7QP2O.js → chunk-2TIVULZY.js} +3 -236
  3. package/dist/chunk-2TIVULZY.js.map +1 -0
  4. package/dist/{chunk-Z53HNZ7Z.js → chunk-FIMNKEG5.js} +3 -3
  5. package/dist/{chunk-Z53HNZ7Z.js.map → chunk-FIMNKEG5.js.map} +1 -1
  6. package/dist/{chunk-6PGXWW3X.js → chunk-GREXSYNC.js} +120 -2047
  7. package/dist/chunk-GREXSYNC.js.map +1 -0
  8. package/dist/{chunk-L4FWHBQJ.js → chunk-UM2Q4JD2.js} +5 -36
  9. package/dist/chunk-UM2Q4JD2.js.map +1 -0
  10. package/dist/cli/bin.cjs +422 -2616
  11. package/dist/cli/bin.cjs.map +1 -1
  12. package/dist/cli/bin.js +5 -5
  13. package/dist/cli/bin.js.map +1 -1
  14. package/dist/index.cjs +170 -2361
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +59 -757
  17. package/dist/index.d.ts +59 -757
  18. package/dist/index.js +3 -3
  19. package/dist/local-view/public/assets/app.css +219 -55
  20. package/dist/local-view/public/assets/app.js +58 -2
  21. package/dist/local-view/public/index.html +101 -26
  22. package/dist/local-view/serve-entry.cjs +2 -235
  23. package/dist/local-view/serve-entry.cjs.map +1 -1
  24. package/dist/local-view/serve-entry.js +1 -1
  25. package/dist/opensteer-IBDPRIEX.js +6 -0
  26. package/dist/{opensteer-KZCRP425.js.map → opensteer-IBDPRIEX.js.map} +1 -1
  27. package/dist/{session-control-VGBFOH3Y.js → session-control-IFE3IPS3.js} +3 -3
  28. package/dist/{session-control-VGBFOH3Y.js.map → session-control-IFE3IPS3.js.map} +1 -1
  29. package/package.json +6 -6
  30. package/skills/opensteer/SKILL.md +1 -1
  31. package/dist/chunk-4LP7QP2O.js.map +0 -1
  32. package/dist/chunk-6PGXWW3X.js.map +0 -1
  33. package/dist/chunk-L4FWHBQJ.js.map +0 -1
  34. package/dist/opensteer-KZCRP425.js +0 -6
package/README.md CHANGED
@@ -179,7 +179,6 @@ Use `snapshot("action")` or `snapshot("extraction")` during exploration. The sna
179
179
  - `closePage()`
180
180
  - `goto(url, { captureNetwork? })`
181
181
  - `evaluate(script | input)`
182
- - `evaluateJson(input)`
183
182
  - `addInitScript(input)`
184
183
  - `snapshot("action" | "extraction")`
185
184
  - `click({ element? | selector? | persist?, captureNetwork? })`
@@ -189,8 +188,6 @@ Use `snapshot("action")` or `snapshot("extraction")` during exploration. The sna
189
188
  - `extract({ schema } | { persist, schema? })`
190
189
  - `network.query(input?)`
191
190
  - `network.detail(recordId, { probe?: boolean })`
192
- - `waitForNetwork(input?)`
193
- - `waitForResponse(input?)`
194
191
  - `waitForPage(input?)`
195
192
  - `cookies(domain?)`
196
193
  - `storage(domain?, "local" | "session")`
@@ -1089,76 +1089,6 @@ var FilesystemRequestPlanRegistry = class extends FilesystemRegistryStore {
1089
1089
  });
1090
1090
  }
1091
1091
  };
1092
- var FilesystemAuthRecipeRegistry = class extends FilesystemRegistryStore {
1093
- constructor(rootPath) {
1094
- super(rootPath, ["registry", "auth-recipes"]);
1095
- }
1096
- async write(input) {
1097
- const id = normalizeNonEmptyString("id", input.id ?? `auth-recipe:${randomUUID()}`);
1098
- const key = normalizeNonEmptyString("key", input.key);
1099
- const version = normalizeNonEmptyString("version", input.version);
1100
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
1101
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
1102
- if (updatedAt < createdAt) {
1103
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
1104
- }
1105
- const payload = input.payload;
1106
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
1107
- const provenance = normalizeProvenance2(input.provenance);
1108
- const record = {
1109
- id,
1110
- key,
1111
- version,
1112
- createdAt,
1113
- updatedAt,
1114
- contentHash,
1115
- tags: normalizeTags(input.tags),
1116
- ...provenance === void 0 ? {} : { provenance },
1117
- payload
1118
- };
1119
- return this.writeRecord(record);
1120
- }
1121
- async list(input = {}) {
1122
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
1123
- const records = await this.readAllRecords();
1124
- return key === void 0 ? records : records.filter((record) => record.key === key);
1125
- }
1126
- };
1127
- var FilesystemRecipeRegistry = class extends FilesystemRegistryStore {
1128
- constructor(rootPath) {
1129
- super(rootPath, ["registry", "recipes"]);
1130
- }
1131
- async write(input) {
1132
- const id = normalizeNonEmptyString("id", input.id ?? `recipe:${randomUUID()}`);
1133
- const key = normalizeNonEmptyString("key", input.key);
1134
- const version = normalizeNonEmptyString("version", input.version);
1135
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
1136
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
1137
- if (updatedAt < createdAt) {
1138
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
1139
- }
1140
- const payload = input.payload;
1141
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
1142
- const provenance = normalizeProvenance2(input.provenance);
1143
- const record = {
1144
- id,
1145
- key,
1146
- version,
1147
- createdAt,
1148
- updatedAt,
1149
- contentHash,
1150
- tags: normalizeTags(input.tags),
1151
- ...provenance === void 0 ? {} : { provenance },
1152
- payload
1153
- };
1154
- return this.writeRecord(record);
1155
- }
1156
- async list(input = {}) {
1157
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
1158
- const records = await this.readAllRecords();
1159
- return key === void 0 ? records : records.filter((record) => record.key === key);
1160
- }
1161
- };
1162
1092
  var FilesystemInteractionTraceRegistry = class extends FilesystemRegistryStore {
1163
1093
  constructor(rootPath) {
1164
1094
  super(rootPath, ["registry", "interaction-traces"]);
@@ -1194,163 +1124,15 @@ var FilesystemInteractionTraceRegistry = class extends FilesystemRegistryStore {
1194
1124
  return key === void 0 ? records : records.filter((record) => record.key === key);
1195
1125
  }
1196
1126
  };
1197
- var FilesystemReverseCaseRegistry = class extends FilesystemRegistryStore {
1198
- constructor(rootPath) {
1199
- super(rootPath, ["registry", "reverse-cases"]);
1200
- }
1201
- async write(input) {
1202
- const id = normalizeNonEmptyString("id", input.id ?? `reverse-case:${randomUUID()}`);
1203
- const key = normalizeNonEmptyString("key", input.key);
1204
- const version = normalizeNonEmptyString("version", input.version);
1205
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
1206
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
1207
- if (updatedAt < createdAt) {
1208
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
1209
- }
1210
- const payload = input.payload;
1211
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
1212
- const provenance = normalizeProvenance2(input.provenance);
1213
- const record = {
1214
- id,
1215
- key,
1216
- version,
1217
- createdAt,
1218
- updatedAt,
1219
- contentHash,
1220
- tags: normalizeTags(input.tags),
1221
- ...provenance === void 0 ? {} : { provenance },
1222
- payload
1223
- };
1224
- return this.writeRecord(record);
1225
- }
1226
- async list(input = {}) {
1227
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
1228
- const records = await this.readAllRecords();
1229
- return key === void 0 ? records : records.filter((record) => record.key === key);
1230
- }
1231
- async update(input) {
1232
- const id = normalizeNonEmptyString("id", input.id);
1233
- return withFilesystemLock(this.writeLockPath(), async () => {
1234
- const existing = await this.getById(id);
1235
- if (existing === void 0) {
1236
- throw new Error(`registry record ${id} was not found`);
1237
- }
1238
- const nextUpdatedAt = normalizeTimestamp(
1239
- "updatedAt",
1240
- input.updatedAt ?? Math.max(Date.now(), existing.updatedAt)
1241
- );
1242
- if (nextUpdatedAt < existing.createdAt) {
1243
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
1244
- }
1245
- const nextPayload = input.payload;
1246
- const nextProvenance = normalizeProvenance2(input.provenance ?? existing.provenance);
1247
- const nextRecord = {
1248
- ...existing,
1249
- updatedAt: nextUpdatedAt,
1250
- contentHash: sha256Hex(Buffer.from(canonicalJsonString(nextPayload), "utf8")),
1251
- tags: normalizeTags(input.tags ?? existing.tags),
1252
- ...nextProvenance === void 0 ? {} : { provenance: nextProvenance },
1253
- payload: nextPayload
1254
- };
1255
- await writeJsonFileAtomic(this.recordPath(id), nextRecord);
1256
- return nextRecord;
1257
- });
1258
- }
1259
- };
1260
- var FilesystemReversePackageRegistry = class extends FilesystemRegistryStore {
1261
- constructor(rootPath) {
1262
- super(rootPath, ["registry", "reverse-packages"]);
1263
- }
1264
- async write(input) {
1265
- const id = normalizeNonEmptyString("id", input.id ?? `reverse-package:${randomUUID()}`);
1266
- const key = normalizeNonEmptyString("key", input.key);
1267
- const version = normalizeNonEmptyString("version", input.version);
1268
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
1269
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
1270
- if (updatedAt < createdAt) {
1271
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
1272
- }
1273
- const payload = input.payload;
1274
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
1275
- const provenance = normalizeProvenance2(input.provenance);
1276
- const record = {
1277
- id,
1278
- key,
1279
- version,
1280
- createdAt,
1281
- updatedAt,
1282
- contentHash,
1283
- tags: normalizeTags(input.tags),
1284
- ...provenance === void 0 ? {} : { provenance },
1285
- payload
1286
- };
1287
- return this.writeRecord(record);
1288
- }
1289
- async list(input = {}) {
1290
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
1291
- const records = await this.readAllRecords();
1292
- return key === void 0 ? records : records.filter((record) => record.key === key);
1293
- }
1294
- };
1295
- var FilesystemReverseReportRegistry = class extends FilesystemRegistryStore {
1296
- constructor(rootPath) {
1297
- super(rootPath, ["registry", "reverse-reports"]);
1298
- }
1299
- async write(input) {
1300
- const id = normalizeNonEmptyString("id", input.id ?? `reverse-report:${randomUUID()}`);
1301
- const key = normalizeNonEmptyString("key", input.key);
1302
- const version = normalizeNonEmptyString("version", input.version);
1303
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
1304
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
1305
- if (updatedAt < createdAt) {
1306
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
1307
- }
1308
- const payload = input.payload;
1309
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
1310
- const provenance = normalizeProvenance2(input.provenance);
1311
- const record = {
1312
- id,
1313
- key,
1314
- version,
1315
- createdAt,
1316
- updatedAt,
1317
- contentHash,
1318
- tags: normalizeTags(input.tags),
1319
- ...provenance === void 0 ? {} : { provenance },
1320
- payload
1321
- };
1322
- return this.writeRecord(record);
1323
- }
1324
- async list(input = {}) {
1325
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
1326
- const records = await this.readAllRecords();
1327
- return key === void 0 ? records : records.filter((record) => record.key === key);
1328
- }
1329
- };
1330
1127
  function createDescriptorRegistry(rootPath) {
1331
1128
  return new FilesystemDescriptorRegistry(rootPath);
1332
1129
  }
1333
1130
  function createRequestPlanRegistry(rootPath) {
1334
1131
  return new FilesystemRequestPlanRegistry(rootPath);
1335
1132
  }
1336
- function createAuthRecipeRegistry(rootPath) {
1337
- return new FilesystemAuthRecipeRegistry(rootPath);
1338
- }
1339
- function createRecipeRegistry(rootPath) {
1340
- return new FilesystemRecipeRegistry(rootPath);
1341
- }
1342
1133
  function createInteractionTraceRegistry(rootPath) {
1343
1134
  return new FilesystemInteractionTraceRegistry(rootPath);
1344
1135
  }
1345
- function createReverseCaseRegistry(rootPath) {
1346
- return new FilesystemReverseCaseRegistry(rootPath);
1347
- }
1348
- function createReversePackageRegistry(rootPath) {
1349
- return new FilesystemReversePackageRegistry(rootPath);
1350
- }
1351
- function createReverseReportRegistry(rootPath) {
1352
- return new FilesystemReverseReportRegistry(rootPath);
1353
- }
1354
1136
  var TAG_DELIMITER = "";
1355
1137
  var NODE_SQLITE_SPECIFIER = `node:${"sqlite"}`;
1356
1138
  var SAVED_NETWORK_SQLITE_SUPPORT_ERROR = "Saved-network operations require Node's built-in SQLite support. Use a Node runtime with node:sqlite enabled.";
@@ -2255,20 +2037,10 @@ async function createFilesystemOpensteerWorkspace(options) {
2255
2037
  await descriptors.initialize();
2256
2038
  const requestPlans = createRequestPlanRegistry(options.rootPath);
2257
2039
  await requestPlans.initialize();
2258
- const authRecipes = createAuthRecipeRegistry(options.rootPath);
2259
- await authRecipes.initialize();
2260
- const recipes = createRecipeRegistry(options.rootPath);
2261
- await recipes.initialize();
2262
2040
  const savedNetwork = createSavedNetworkStore(options.rootPath);
2263
2041
  await savedNetwork.initialize();
2264
- const reverseCases = createReverseCaseRegistry(options.rootPath);
2265
- await reverseCases.initialize();
2266
2042
  const interactionTraces = createInteractionTraceRegistry(options.rootPath);
2267
2043
  await interactionTraces.initialize();
2268
- const reversePackages = createReversePackageRegistry(options.rootPath);
2269
- await reversePackages.initialize();
2270
- const reverseReports = createReverseReportRegistry(options.rootPath);
2271
- await reverseReports.initialize();
2272
2044
  const traces = createTraceStore(options.rootPath, artifacts);
2273
2045
  await traces.initialize();
2274
2046
  const observations = createObservationStore(options.rootPath, artifacts);
@@ -2294,13 +2066,8 @@ async function createFilesystemOpensteerWorkspace(options) {
2294
2066
  registry: {
2295
2067
  descriptors,
2296
2068
  requestPlans,
2297
- authRecipes,
2298
- recipes,
2299
2069
  savedNetwork,
2300
- reverseCases,
2301
- interactionTraces,
2302
- reversePackages,
2303
- reverseReports
2070
+ interactionTraces
2304
2071
  },
2305
2072
  lock(task) {
2306
2073
  return withFilesystemLock(lockPath, task);
@@ -4332,5 +4099,5 @@ async function sleep2(ms) {
4332
4099
  }
4333
4100
 
4334
4101
  export { DEFAULT_OPENSTEER_ENGINE, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, OpensteerBrowserManager, assertSupportedEngineOptions, buildLocalViewSessionUrl, createArtifactStore, createFilesystemOpensteerWorkspace, createObservationStore, ensureLocalViewServiceRunning, manifestToExternalBinaryLocation, normalizeObservabilityConfig, normalizeObservationContext, normalizeOpensteerEngineName, normalizeWorkspaceId, resolveFilesystemWorkspacePath, resolveOpensteerEngineName, setLocalViewMode, stopLocalViewService };
4335
- //# sourceMappingURL=chunk-4LP7QP2O.js.map
4336
- //# sourceMappingURL=chunk-4LP7QP2O.js.map
4102
+ //# sourceMappingURL=chunk-2TIVULZY.js.map
4103
+ //# sourceMappingURL=chunk-2TIVULZY.js.map