@promptbook/utils 0.112.0-134 → 0.112.0-135

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.
@@ -7,7 +7,7 @@ import type { AvatarDefinition } from './AvatarDefinition';
7
7
  *
8
8
  * @private shared contract for the avatar rendering system
9
9
  */
10
- export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'octopus3d' | 'octopus3d2' | 'octopus3d3' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
10
+ export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'octopus3d' | 'octopus3d2' | 'octopus3d3' | 'octopus3d4' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
11
11
  /**
12
12
  * Derived color palette used by avatar visuals.
13
13
  *
@@ -0,0 +1,7 @@
1
+ import type { AvatarVisualDefinition } from '../types/AvatarVisualDefinition';
2
+ /**
3
+ * Octopus 3D 4 avatar visual.
4
+ *
5
+ * @private built-in avatar visual
6
+ */
7
+ export declare const octopus3d4AvatarVisual: AvatarVisualDefinition;
@@ -8,6 +8,11 @@ import type { really_unknown } from '../../organization/really_unknown';
8
8
  * - `isValidAgentUrl` *(this one)* which tests just agent URL
9
9
  * - `isValidPipelineUrl` which tests just pipeline URL
10
10
  *
11
+ * Note: This is a pure structural validator and does not block private/internal network
12
+ * addresses. Callers that fetch the URL server-side from an untrusted network context must
13
+ * additionally apply the `assertSafeUrl` SSRF guard from the Agents Server before any
14
+ * outbound request.
15
+ *
11
16
  * @public exported from `@promptbook/utils`
12
17
  */
13
18
  export declare function isValidAgentUrl(url: really_unknown): url is string_agent_url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/utils",
3
- "version": "0.112.0-134",
3
+ "version": "0.112.0-135",
4
4
  "description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
5
5
  "private": false,
6
6
  "sideEffects": false,
package/umd/index.umd.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * @generated
24
24
  * @see https://github.com/webgptorg/promptbook
25
25
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-134';
26
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-135';
27
27
  /**
28
28
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
29
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -5984,6 +5984,11 @@
5984
5984
  * - `isValidAgentUrl` *(this one)* which tests just agent URL
5985
5985
  * - `isValidPipelineUrl` which tests just pipeline URL
5986
5986
  *
5987
+ * Note: This is a pure structural validator and does not block private/internal network
5988
+ * addresses. Callers that fetch the URL server-side from an untrusted network context must
5989
+ * additionally apply the `assertSafeUrl` SSRF guard from the Agents Server before any
5990
+ * outbound request.
5991
+ *
5987
5992
  * @public exported from `@promptbook/utils`
5988
5993
  */
5989
5994
  function isValidAgentUrl(url) {
@@ -5997,12 +6002,6 @@
5997
6002
  // TODO: [🐠]
5998
6003
  return false;
5999
6004
  }
6000
- /*
6001
- Note: [👣][🧠] Is it secure to allow pipeline URLs on private and unsecured networks?
6002
- if (isUrlOnPrivateNetwork(url)) {
6003
- return false;
6004
- }
6005
- */
6006
6005
  return true;
6007
6006
  }
6008
6007
  // TODO: [🐠] Maybe more info why the URL is invalid