@electric-ax/agents-server-conformance-tests 0.1.4 → 0.1.5

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.cjs CHANGED
@@ -217,7 +217,7 @@ function isEntityStreamPath$1(pathname) {
217
217
  return segments.length >= 3 && (lastSegment === `main` || lastSegment === `error`);
218
218
  }
219
219
  function subscriptionEndpoint$1(baseUrl, id) {
220
- return `${baseUrl}/v1/stream-meta/subscriptions/${encodeURIComponent(id)}`;
220
+ return `${baseUrl}/__ds/subscriptions/${encodeURIComponent(id)}`;
221
221
  }
222
222
  function subscriptionPattern$1(pattern) {
223
223
  return pattern.replace(/^\/+/, ``);
@@ -1492,7 +1492,7 @@ function checkStateProtocolInvariants(events) {
1492
1492
  //#endregion
1493
1493
  //#region src/cli-dsl.ts
1494
1494
  function subscriptionEndpoint(baseUrl, id) {
1495
- return `${baseUrl}/v1/stream-meta/subscriptions/${encodeURIComponent(id)}`;
1495
+ return `${baseUrl}/__ds/subscriptions/${encodeURIComponent(id)}`;
1496
1496
  }
1497
1497
  function subscriptionPattern(pattern) {
1498
1498
  return pattern.replace(/^\/+/, ``);
@@ -3321,7 +3321,7 @@ function runElectricAgentsConformanceTests(config) {
3321
3321
  });
3322
3322
  (0, vitest.test)(`write to non-entity stream requires no auth`, async () => {
3323
3323
  const id = Date.now();
3324
- const streamPath = `/v1/stream/plain-stream-auth-test-${id}`;
3324
+ const streamPath = `/plain-stream-auth-test-${id}`;
3325
3325
  const createRes = await fetch(`${config.baseUrl}${streamPath}`, {
3326
3326
  method: `PUT`,
3327
3327
  headers: { "Content-Type": `text/plain` },
package/dist/index.js CHANGED
@@ -193,7 +193,7 @@ function isEntityStreamPath$1(pathname) {
193
193
  return segments.length >= 3 && (lastSegment === `main` || lastSegment === `error`);
194
194
  }
195
195
  function subscriptionEndpoint$1(baseUrl, id) {
196
- return `${baseUrl}/v1/stream-meta/subscriptions/${encodeURIComponent(id)}`;
196
+ return `${baseUrl}/__ds/subscriptions/${encodeURIComponent(id)}`;
197
197
  }
198
198
  function subscriptionPattern$1(pattern) {
199
199
  return pattern.replace(/^\/+/, ``);
@@ -1468,7 +1468,7 @@ function checkStateProtocolInvariants(events) {
1468
1468
  //#endregion
1469
1469
  //#region src/cli-dsl.ts
1470
1470
  function subscriptionEndpoint(baseUrl, id) {
1471
- return `${baseUrl}/v1/stream-meta/subscriptions/${encodeURIComponent(id)}`;
1471
+ return `${baseUrl}/__ds/subscriptions/${encodeURIComponent(id)}`;
1472
1472
  }
1473
1473
  function subscriptionPattern(pattern) {
1474
1474
  return pattern.replace(/^\/+/, ``);
@@ -3297,7 +3297,7 @@ function runElectricAgentsConformanceTests(config) {
3297
3297
  });
3298
3298
  test(`write to non-entity stream requires no auth`, async () => {
3299
3299
  const id = Date.now();
3300
- const streamPath = `/v1/stream/plain-stream-auth-test-${id}`;
3300
+ const streamPath = `/plain-stream-auth-test-${id}`;
3301
3301
  const createRes = await fetch(`${config.baseUrl}${streamPath}`, {
3302
3302
  method: `PUT`,
3303
3303
  headers: { "Content-Type": `text/plain` },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electric-ax/agents-server-conformance-tests",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Conformance test suite for Electric Agents server implementations",
5
5
  "author": "Durable Stream contributors",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "@durable-streams/client": "https://pkg.pr.new/durable-streams/durable-streams/@durable-streams/client@350",
38
- "@electric-sql/client": "^1.5.17",
38
+ "@electric-sql/client": "^1.5.18",
39
39
  "fast-check": "^4.6.0",
40
40
  "vitest": "^4.1.0"
41
41
  },
@@ -43,7 +43,7 @@
43
43
  "@mariozechner/pi-agent-core": "^0.70.2",
44
44
  "tsdown": "^0.9.0",
45
45
  "typescript": "^5.0.0",
46
- "@electric-ax/agents-server": "0.4.1"
46
+ "@electric-ax/agents-server": "0.4.3"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=18.0.0"