opensteer 0.9.1 → 0.9.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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import './chunk-KCINASQC.js';
2
- export { Opensteer } from './chunk-L4FWHBQJ.js';
3
- export { CloudSessionProxy, DEFERRED_MATCH_ATTR_KEYS, ElementPathError, MATCH_ATTRIBUTE_PRIORITY, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OpensteerCloudClient, OpensteerRuntime, OpensteerSessionRuntime, STABLE_PRIMARY_ATTR_KEYS, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createDomDescriptorStore, createDomRuntime, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, dispatchSemanticOperation, hashDomDescriptorPersist, isCurrentUrlField, isValidCssAttributeKey, normalizeExtractedValue, normalizeOpensteerProviderMode, parseDomDescriptorRecord, parseExtractionDescriptorRecord, resolveCloudConfig, resolveDomActionBridge, resolveExtractedValueInContext, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath } from './chunk-6PGXWW3X.js';
4
- export { DEFAULT_OPENSTEER_ENGINE, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, OpensteerBrowserManager, createArtifactStore, createFilesystemOpensteerWorkspace, createObservationStore, manifestToExternalBinaryLocation, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeWorkspaceId, resolveFilesystemWorkspacePath, resolveOpensteerEngineName } from './chunk-4LP7QP2O.js';
2
+ export { Opensteer } from './chunk-KPYLS2KQ.js';
3
+ export { CloudSessionProxy, DEFERRED_MATCH_ATTR_KEYS, ElementPathError, MATCH_ATTRIBUTE_PRIORITY, OPENSTEER_DOM_ACTION_BRIDGE_SYMBOL, OpensteerCloudClient, OpensteerRuntime, OpensteerSessionRuntime, STABLE_PRIMARY_ATTR_KEYS, assertProviderSupportsEngine, buildArrayFieldPathCandidates, buildDomDescriptorKey, buildDomDescriptorPayload, buildDomDescriptorVersion, buildPathCandidates, buildPathSelectorHint, buildSegmentSelector, cloneElementPath, cloneReplayElementPath, cloneStructuralElementAnchor, createDomDescriptorStore, createDomRuntime, createOpensteerExtractionDescriptorStore, createOpensteerSemanticRuntime, defaultFallbackPolicy, defaultPolicy, defaultRetryPolicy, defaultSettlePolicy, defaultTimeoutPolicy, delayWithSignal, dispatchSemanticOperation, hashDomDescriptorPersist, isCurrentUrlField, isValidCssAttributeKey, normalizeExtractedValue, normalizeOpensteerProviderMode, parseDomDescriptorRecord, parseExtractionDescriptorRecord, resolveCloudConfig, resolveDomActionBridge, resolveExtractedValueInContext, resolveOpensteerProvider, resolveOpensteerRuntimeConfig, runWithPolicyTimeout, sanitizeElementPath, sanitizeReplayElementPath, sanitizeStructuralElementAnchor, settleWithPolicy, shouldKeepAttributeForPath } from './chunk-HD6KVZ42.js';
4
+ export { DEFAULT_OPENSTEER_ENGINE, OPENSTEER_ENGINE_NAMES, OPENSTEER_FILESYSTEM_WORKSPACE_LAYOUT, OPENSTEER_FILESYSTEM_WORKSPACE_VERSION, OpensteerBrowserManager, createArtifactStore, createFilesystemOpensteerWorkspace, createObservationStore, manifestToExternalBinaryLocation, normalizeObservabilityConfig, normalizeOpensteerEngineName, normalizeWorkspaceId, resolveFilesystemWorkspacePath, resolveOpensteerEngineName } from './chunk-2TIVULZY.js';
5
5
  export { OpensteerAttachAmbiguousError, clearPersistedSessionRecord, discoverLocalCdpBrowsers, inspectCdpEndpoint, listLocalChromeProfiles, readPersistedCloudSessionRecord, readPersistedLocalBrowserSessionRecord, readPersistedSessionRecord, resolveCloudSessionRecordPath, resolveLiveSessionRecordPath, resolveLocalSessionRecordPath, writePersistedSessionRecord } from './chunk-BMPUL66S.js';
6
6
  //# sourceMappingURL=index.js.map
7
7
  //# sourceMappingURL=index.js.map
@@ -2184,25 +2184,10 @@ function createDescriptorRegistry(rootPath) {
2184
2184
  function createRequestPlanRegistry(rootPath) {
2185
2185
  return new FilesystemRequestPlanRegistry(rootPath);
2186
2186
  }
2187
- function createAuthRecipeRegistry(rootPath) {
2188
- return new FilesystemAuthRecipeRegistry(rootPath);
2189
- }
2190
- function createRecipeRegistry(rootPath) {
2191
- return new FilesystemRecipeRegistry(rootPath);
2192
- }
2193
2187
  function createInteractionTraceRegistry(rootPath) {
2194
2188
  return new FilesystemInteractionTraceRegistry(rootPath);
2195
2189
  }
2196
- function createReverseCaseRegistry(rootPath) {
2197
- return new FilesystemReverseCaseRegistry(rootPath);
2198
- }
2199
- function createReversePackageRegistry(rootPath) {
2200
- return new FilesystemReversePackageRegistry(rootPath);
2201
- }
2202
- function createReverseReportRegistry(rootPath) {
2203
- return new FilesystemReverseReportRegistry(rootPath);
2204
- }
2205
- var FilesystemRegistryStore, FilesystemDescriptorRegistry, FilesystemRequestPlanRegistry, FilesystemAuthRecipeRegistry, FilesystemRecipeRegistry, FilesystemInteractionTraceRegistry, FilesystemReverseCaseRegistry, FilesystemReversePackageRegistry, FilesystemReverseReportRegistry;
2190
+ var FilesystemRegistryStore, FilesystemDescriptorRegistry, FilesystemRequestPlanRegistry, FilesystemInteractionTraceRegistry;
2206
2191
  var init_registry = __esm({
2207
2192
  "../runtime-core/src/registry.ts"() {
2208
2193
  init_filesystem();
@@ -2422,76 +2407,6 @@ var init_registry = __esm({
2422
2407
  });
2423
2408
  }
2424
2409
  };
2425
- FilesystemAuthRecipeRegistry = class extends FilesystemRegistryStore {
2426
- constructor(rootPath) {
2427
- super(rootPath, ["registry", "auth-recipes"]);
2428
- }
2429
- async write(input) {
2430
- const id = normalizeNonEmptyString("id", input.id ?? `auth-recipe:${crypto.randomUUID()}`);
2431
- const key = normalizeNonEmptyString("key", input.key);
2432
- const version = normalizeNonEmptyString("version", input.version);
2433
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
2434
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
2435
- if (updatedAt < createdAt) {
2436
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
2437
- }
2438
- const payload = input.payload;
2439
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
2440
- const provenance = normalizeProvenance2(input.provenance);
2441
- const record = {
2442
- id,
2443
- key,
2444
- version,
2445
- createdAt,
2446
- updatedAt,
2447
- contentHash,
2448
- tags: normalizeTags(input.tags),
2449
- ...provenance === void 0 ? {} : { provenance },
2450
- payload
2451
- };
2452
- return this.writeRecord(record);
2453
- }
2454
- async list(input = {}) {
2455
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
2456
- const records = await this.readAllRecords();
2457
- return key === void 0 ? records : records.filter((record) => record.key === key);
2458
- }
2459
- };
2460
- FilesystemRecipeRegistry = class extends FilesystemRegistryStore {
2461
- constructor(rootPath) {
2462
- super(rootPath, ["registry", "recipes"]);
2463
- }
2464
- async write(input) {
2465
- const id = normalizeNonEmptyString("id", input.id ?? `recipe:${crypto.randomUUID()}`);
2466
- const key = normalizeNonEmptyString("key", input.key);
2467
- const version = normalizeNonEmptyString("version", input.version);
2468
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
2469
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
2470
- if (updatedAt < createdAt) {
2471
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
2472
- }
2473
- const payload = input.payload;
2474
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
2475
- const provenance = normalizeProvenance2(input.provenance);
2476
- const record = {
2477
- id,
2478
- key,
2479
- version,
2480
- createdAt,
2481
- updatedAt,
2482
- contentHash,
2483
- tags: normalizeTags(input.tags),
2484
- ...provenance === void 0 ? {} : { provenance },
2485
- payload
2486
- };
2487
- return this.writeRecord(record);
2488
- }
2489
- async list(input = {}) {
2490
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
2491
- const records = await this.readAllRecords();
2492
- return key === void 0 ? records : records.filter((record) => record.key === key);
2493
- }
2494
- };
2495
2410
  FilesystemInteractionTraceRegistry = class extends FilesystemRegistryStore {
2496
2411
  constructor(rootPath) {
2497
2412
  super(rootPath, ["registry", "interaction-traces"]);
@@ -2527,139 +2442,6 @@ var init_registry = __esm({
2527
2442
  return key === void 0 ? records : records.filter((record) => record.key === key);
2528
2443
  }
2529
2444
  };
2530
- FilesystemReverseCaseRegistry = class extends FilesystemRegistryStore {
2531
- constructor(rootPath) {
2532
- super(rootPath, ["registry", "reverse-cases"]);
2533
- }
2534
- async write(input) {
2535
- const id = normalizeNonEmptyString("id", input.id ?? `reverse-case:${crypto.randomUUID()}`);
2536
- const key = normalizeNonEmptyString("key", input.key);
2537
- const version = normalizeNonEmptyString("version", input.version);
2538
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
2539
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
2540
- if (updatedAt < createdAt) {
2541
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
2542
- }
2543
- const payload = input.payload;
2544
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
2545
- const provenance = normalizeProvenance2(input.provenance);
2546
- const record = {
2547
- id,
2548
- key,
2549
- version,
2550
- createdAt,
2551
- updatedAt,
2552
- contentHash,
2553
- tags: normalizeTags(input.tags),
2554
- ...provenance === void 0 ? {} : { provenance },
2555
- payload
2556
- };
2557
- return this.writeRecord(record);
2558
- }
2559
- async list(input = {}) {
2560
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
2561
- const records = await this.readAllRecords();
2562
- return key === void 0 ? records : records.filter((record) => record.key === key);
2563
- }
2564
- async update(input) {
2565
- const id = normalizeNonEmptyString("id", input.id);
2566
- return withFilesystemLock(this.writeLockPath(), async () => {
2567
- const existing = await this.getById(id);
2568
- if (existing === void 0) {
2569
- throw new Error(`registry record ${id} was not found`);
2570
- }
2571
- const nextUpdatedAt = normalizeTimestamp(
2572
- "updatedAt",
2573
- input.updatedAt ?? Math.max(Date.now(), existing.updatedAt)
2574
- );
2575
- if (nextUpdatedAt < existing.createdAt) {
2576
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
2577
- }
2578
- const nextPayload = input.payload;
2579
- const nextProvenance = normalizeProvenance2(input.provenance ?? existing.provenance);
2580
- const nextRecord = {
2581
- ...existing,
2582
- updatedAt: nextUpdatedAt,
2583
- contentHash: sha256Hex(Buffer.from(canonicalJsonString(nextPayload), "utf8")),
2584
- tags: normalizeTags(input.tags ?? existing.tags),
2585
- ...nextProvenance === void 0 ? {} : { provenance: nextProvenance },
2586
- payload: nextPayload
2587
- };
2588
- await writeJsonFileAtomic(this.recordPath(id), nextRecord);
2589
- return nextRecord;
2590
- });
2591
- }
2592
- };
2593
- FilesystemReversePackageRegistry = class extends FilesystemRegistryStore {
2594
- constructor(rootPath) {
2595
- super(rootPath, ["registry", "reverse-packages"]);
2596
- }
2597
- async write(input) {
2598
- const id = normalizeNonEmptyString("id", input.id ?? `reverse-package:${crypto.randomUUID()}`);
2599
- const key = normalizeNonEmptyString("key", input.key);
2600
- const version = normalizeNonEmptyString("version", input.version);
2601
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
2602
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
2603
- if (updatedAt < createdAt) {
2604
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
2605
- }
2606
- const payload = input.payload;
2607
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
2608
- const provenance = normalizeProvenance2(input.provenance);
2609
- const record = {
2610
- id,
2611
- key,
2612
- version,
2613
- createdAt,
2614
- updatedAt,
2615
- contentHash,
2616
- tags: normalizeTags(input.tags),
2617
- ...provenance === void 0 ? {} : { provenance },
2618
- payload
2619
- };
2620
- return this.writeRecord(record);
2621
- }
2622
- async list(input = {}) {
2623
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
2624
- const records = await this.readAllRecords();
2625
- return key === void 0 ? records : records.filter((record) => record.key === key);
2626
- }
2627
- };
2628
- FilesystemReverseReportRegistry = class extends FilesystemRegistryStore {
2629
- constructor(rootPath) {
2630
- super(rootPath, ["registry", "reverse-reports"]);
2631
- }
2632
- async write(input) {
2633
- const id = normalizeNonEmptyString("id", input.id ?? `reverse-report:${crypto.randomUUID()}`);
2634
- const key = normalizeNonEmptyString("key", input.key);
2635
- const version = normalizeNonEmptyString("version", input.version);
2636
- const createdAt = normalizeTimestamp("createdAt", input.createdAt ?? Date.now());
2637
- const updatedAt = normalizeTimestamp("updatedAt", input.updatedAt ?? createdAt);
2638
- if (updatedAt < createdAt) {
2639
- throw new RangeError("updatedAt must be greater than or equal to createdAt");
2640
- }
2641
- const payload = input.payload;
2642
- const contentHash = sha256Hex(Buffer.from(canonicalJsonString(payload), "utf8"));
2643
- const provenance = normalizeProvenance2(input.provenance);
2644
- const record = {
2645
- id,
2646
- key,
2647
- version,
2648
- createdAt,
2649
- updatedAt,
2650
- contentHash,
2651
- tags: normalizeTags(input.tags),
2652
- ...provenance === void 0 ? {} : { provenance },
2653
- payload
2654
- };
2655
- return this.writeRecord(record);
2656
- }
2657
- async list(input = {}) {
2658
- const key = input.key === void 0 ? void 0 : normalizeNonEmptyString("key", input.key);
2659
- const records = await this.readAllRecords();
2660
- return key === void 0 ? records : records.filter((record) => record.key === key);
2661
- }
2662
- };
2663
2445
  }
2664
2446
  });
2665
2447
  function buildSavedNetworkWhere(input) {
@@ -4127,20 +3909,10 @@ async function createFilesystemOpensteerWorkspace(options) {
4127
3909
  await descriptors.initialize();
4128
3910
  const requestPlans = createRequestPlanRegistry(options.rootPath);
4129
3911
  await requestPlans.initialize();
4130
- const authRecipes = createAuthRecipeRegistry(options.rootPath);
4131
- await authRecipes.initialize();
4132
- const recipes = createRecipeRegistry(options.rootPath);
4133
- await recipes.initialize();
4134
3912
  const savedNetwork = createSavedNetworkStore(options.rootPath);
4135
3913
  await savedNetwork.initialize();
4136
- const reverseCases = createReverseCaseRegistry(options.rootPath);
4137
- await reverseCases.initialize();
4138
3914
  const interactionTraces = createInteractionTraceRegistry(options.rootPath);
4139
3915
  await interactionTraces.initialize();
4140
- const reversePackages = createReversePackageRegistry(options.rootPath);
4141
- await reversePackages.initialize();
4142
- const reverseReports = createReverseReportRegistry(options.rootPath);
4143
- await reverseReports.initialize();
4144
3916
  const traces = createTraceStore(options.rootPath, artifacts);
4145
3917
  await traces.initialize();
4146
3918
  const observations = createObservationStore(options.rootPath, artifacts);
@@ -4166,13 +3938,8 @@ async function createFilesystemOpensteerWorkspace(options) {
4166
3938
  registry: {
4167
3939
  descriptors,
4168
3940
  requestPlans,
4169
- authRecipes,
4170
- recipes,
4171
3941
  savedNetwork,
4172
- reverseCases,
4173
- interactionTraces,
4174
- reversePackages,
4175
- reverseReports
3942
+ interactionTraces
4176
3943
  },
4177
3944
  lock(task) {
4178
3945
  return withFilesystemLock(lockPath, task);