@ours.network/codex 1.2.0-nightly.3 → 1.2.0-nightly.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "ours",
3
- "version": "1.2.0-nightly.3",
3
+ "version": "1.2.0-nightly.4",
4
4
  "description": "Secure agent-to-agent messaging and explicitly armed live mail wake for Codex CLI.",
5
5
  "author": {
6
6
  "name": "Adapt Toolkit",
@@ -7263,7 +7263,7 @@ function validateHostProfile(value) {
7263
7263
  const expectedInstanceId = record2.expectedInstanceId;
7264
7264
  const credentialPath = record2.credentialPath;
7265
7265
  if (typeof endpoint !== "string" || endpoint.trim() !== endpoint || endpoint === "") {
7266
- throw profileError("endpoint must be a non-empty HTTP origin.");
7266
+ throw profileError("endpoint must be a non-empty HTTP or HTTPS origin.");
7267
7267
  }
7268
7268
  if (typeof expectedInstanceId !== "string" || !UUID.test(expectedInstanceId)) {
7269
7269
  throw profileError("expectedInstanceId must be a lowercase UUID.");
@@ -7275,10 +7275,10 @@ function validateHostProfile(value) {
7275
7275
  try {
7276
7276
  url2 = new URL(endpoint);
7277
7277
  } catch {
7278
- throw profileError("endpoint must be an HTTP origin.");
7278
+ throw profileError("endpoint must be an HTTP or HTTPS origin.");
7279
7279
  }
7280
- if (url2.protocol !== "http:" || url2.username || url2.password || url2.pathname !== "/" || url2.search || url2.hash) {
7281
- throw profileError("endpoint must be an HTTP origin without credentials, path, query, or fragment.");
7280
+ if (url2.protocol !== "http:" && url2.protocol !== "https:" || url2.username || url2.password || url2.pathname !== "/" || url2.search || url2.hash) {
7281
+ throw profileError("endpoint must be an HTTP or HTTPS origin without credentials, path, query, or fragment.");
7282
7282
  }
7283
7283
  return { endpoint: url2.origin, expectedInstanceId, credentialPath };
7284
7284
  }
@@ -21426,7 +21426,7 @@ function validateHostProfile(value) {
21426
21426
  const expectedInstanceId = record2.expectedInstanceId;
21427
21427
  const credentialPath = record2.credentialPath;
21428
21428
  if (typeof endpoint !== "string" || endpoint.trim() !== endpoint || endpoint === "") {
21429
- throw profileError("endpoint must be a non-empty HTTP origin.");
21429
+ throw profileError("endpoint must be a non-empty HTTP or HTTPS origin.");
21430
21430
  }
21431
21431
  if (typeof expectedInstanceId !== "string" || !UUID.test(expectedInstanceId)) {
21432
21432
  throw profileError("expectedInstanceId must be a lowercase UUID.");
@@ -21438,10 +21438,10 @@ function validateHostProfile(value) {
21438
21438
  try {
21439
21439
  url = new URL(endpoint);
21440
21440
  } catch {
21441
- throw profileError("endpoint must be an HTTP origin.");
21441
+ throw profileError("endpoint must be an HTTP or HTTPS origin.");
21442
21442
  }
21443
- if (url.protocol !== "http:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash) {
21444
- throw profileError("endpoint must be an HTTP origin without credentials, path, query, or fragment.");
21443
+ if (url.protocol !== "http:" && url.protocol !== "https:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash) {
21444
+ throw profileError("endpoint must be an HTTP or HTTPS origin without credentials, path, query, or fragment.");
21445
21445
  }
21446
21446
  return { endpoint: url.origin, expectedInstanceId, credentialPath };
21447
21447
  }
@@ -16021,7 +16021,7 @@ function validateHostProfile(value) {
16021
16021
  const expectedInstanceId = record2.expectedInstanceId;
16022
16022
  const credentialPath = record2.credentialPath;
16023
16023
  if (typeof endpoint !== "string" || endpoint.trim() !== endpoint || endpoint === "") {
16024
- throw profileError("endpoint must be a non-empty HTTP origin.");
16024
+ throw profileError("endpoint must be a non-empty HTTP or HTTPS origin.");
16025
16025
  }
16026
16026
  if (typeof expectedInstanceId !== "string" || !UUID.test(expectedInstanceId)) {
16027
16027
  throw profileError("expectedInstanceId must be a lowercase UUID.");
@@ -16033,10 +16033,10 @@ function validateHostProfile(value) {
16033
16033
  try {
16034
16034
  url2 = new URL(endpoint);
16035
16035
  } catch {
16036
- throw profileError("endpoint must be an HTTP origin.");
16036
+ throw profileError("endpoint must be an HTTP or HTTPS origin.");
16037
16037
  }
16038
- if (url2.protocol !== "http:" || url2.username || url2.password || url2.pathname !== "/" || url2.search || url2.hash) {
16039
- throw profileError("endpoint must be an HTTP origin without credentials, path, query, or fragment.");
16038
+ if (url2.protocol !== "http:" && url2.protocol !== "https:" || url2.username || url2.password || url2.pathname !== "/" || url2.search || url2.hash) {
16039
+ throw profileError("endpoint must be an HTTP or HTTPS origin without credentials, path, query, or fragment.");
16040
16040
  }
16041
16041
  return { endpoint: url2.origin, expectedInstanceId, credentialPath };
16042
16042
  }
@@ -28,7 +28,7 @@ function validateHostProfile(value) {
28
28
  const expectedInstanceId = record.expectedInstanceId;
29
29
  const credentialPath = record.credentialPath;
30
30
  if (typeof endpoint !== "string" || endpoint.trim() !== endpoint || endpoint === "") {
31
- throw profileError("endpoint must be a non-empty HTTP origin.");
31
+ throw profileError("endpoint must be a non-empty HTTP or HTTPS origin.");
32
32
  }
33
33
  if (typeof expectedInstanceId !== "string" || !UUID.test(expectedInstanceId)) {
34
34
  throw profileError("expectedInstanceId must be a lowercase UUID.");
@@ -40,10 +40,10 @@ function validateHostProfile(value) {
40
40
  try {
41
41
  url = new URL(endpoint);
42
42
  } catch {
43
- throw profileError("endpoint must be an HTTP origin.");
43
+ throw profileError("endpoint must be an HTTP or HTTPS origin.");
44
44
  }
45
- if (url.protocol !== "http:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash) {
46
- throw profileError("endpoint must be an HTTP origin without credentials, path, query, or fragment.");
45
+ if (url.protocol !== "http:" && url.protocol !== "https:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash) {
46
+ throw profileError("endpoint must be an HTTP or HTTPS origin without credentials, path, query, or fragment.");
47
47
  }
48
48
  return { endpoint: url.origin, expectedInstanceId, credentialPath };
49
49
  }
package/dist/profile.mjs CHANGED
@@ -30,7 +30,7 @@ function validateHostProfile(value) {
30
30
  const expectedInstanceId = record.expectedInstanceId;
31
31
  const credentialPath = record.credentialPath;
32
32
  if (typeof endpoint !== "string" || endpoint.trim() !== endpoint || endpoint === "") {
33
- throw profileError("endpoint must be a non-empty HTTP origin.");
33
+ throw profileError("endpoint must be a non-empty HTTP or HTTPS origin.");
34
34
  }
35
35
  if (typeof expectedInstanceId !== "string" || !UUID.test(expectedInstanceId)) {
36
36
  throw profileError("expectedInstanceId must be a lowercase UUID.");
@@ -42,10 +42,10 @@ function validateHostProfile(value) {
42
42
  try {
43
43
  url = new URL(endpoint);
44
44
  } catch {
45
- throw profileError("endpoint must be an HTTP origin.");
45
+ throw profileError("endpoint must be an HTTP or HTTPS origin.");
46
46
  }
47
- if (url.protocol !== "http:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash) {
48
- throw profileError("endpoint must be an HTTP origin without credentials, path, query, or fragment.");
47
+ if (url.protocol !== "http:" && url.protocol !== "https:" || url.username || url.password || url.pathname !== "/" || url.search || url.hash) {
48
+ throw profileError("endpoint must be an HTTP or HTTPS origin without credentials, path, query, or fragment.");
49
49
  }
50
50
  return { endpoint: url.origin, expectedInstanceId, credentialPath };
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ours.network/codex",
3
- "version": "1.2.0-nightly.3",
3
+ "version": "1.2.0-nightly.4",
4
4
  "description": "Native Codex plugin for secure ours.network messaging and explicitly armed, session-scoped live mail wake.",
5
5
  "type": "module",
6
6
  "license": "FSL-1.1-Apache-2.0",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@modelcontextprotocol/sdk": "^1.29.0",
49
- "@ours.network/sdk": "3.8.1-nightly.3",
49
+ "@ours.network/sdk": "3.8.1-nightly.4",
50
50
  "ws": "^8.21.0",
51
51
  "zod": "^3.25.76"
52
52
  },