@promptbook/wizard 0.104.0-4 → 0.104.0-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/esm/index.es.js +3 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +18 -15
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +3 -2
- package/umd/index.umd.js.map +1 -1
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
* Source of truth: `/apps/agents-server/src/database/schema.sql` *(do not edit table structure here manually)*
|
|
4
4
|
*
|
|
5
5
|
* [💽] Prompt:
|
|
6
|
-
* Re-generate this sub-schema
|
|
6
|
+
* Re-generate this sub-schema from `/apps/agents-server/src/database/schema.ts` *(which was generated from `/apps/agents-server/src/database/migrations/*.sql`)*
|
|
7
|
+
* `AgentsDatabaseSchema` is strict subset of `AgentsServerDatabase`
|
|
7
8
|
* Generate Supabase TypeScript schema which is a subset of `AgentsServerDatabase`
|
|
8
9
|
* containing only tables `Agent` and `AgentHistory`
|
|
9
10
|
*
|
|
10
|
-
* NOTE: This file intentionally omits all other tables (
|
|
11
|
+
* NOTE: This file intentionally omits all other tables (`Metadata`, `ChatHistory`, `ChatFeedback`, `User`, `LlmCache`, etc.)
|
|
11
12
|
* and any extra schemas (e.g. `graphql_public`) to remain a strict subset.
|
|
12
13
|
*/
|
|
13
14
|
export type Json = string | number | boolean | null | {
|
|
@@ -31,6 +32,7 @@ export type AgentsDatabaseSchema = {
|
|
|
31
32
|
preparedModelRequirements: Json | null;
|
|
32
33
|
preparedExternals: Json | null;
|
|
33
34
|
deletedAt: string | null;
|
|
35
|
+
visibility: 'PUBLIC' | 'PRIVATE';
|
|
34
36
|
};
|
|
35
37
|
Insert: {
|
|
36
38
|
id?: number;
|
|
@@ -46,6 +48,7 @@ export type AgentsDatabaseSchema = {
|
|
|
46
48
|
preparedModelRequirements?: Json | null;
|
|
47
49
|
preparedExternals?: Json | null;
|
|
48
50
|
deletedAt?: string | null;
|
|
51
|
+
visibility?: 'PUBLIC' | 'PRIVATE';
|
|
49
52
|
};
|
|
50
53
|
Update: {
|
|
51
54
|
id?: number;
|
|
@@ -61,6 +64,7 @@ export type AgentsDatabaseSchema = {
|
|
|
61
64
|
preparedModelRequirements?: Json | null;
|
|
62
65
|
preparedExternals?: Json | null;
|
|
63
66
|
deletedAt?: string | null;
|
|
67
|
+
visibility?: 'PUBLIC' | 'PRIVATE';
|
|
64
68
|
};
|
|
65
69
|
Relationships: [];
|
|
66
70
|
};
|
|
@@ -92,21 +96,20 @@ export type AgentsDatabaseSchema = {
|
|
|
92
96
|
agentSource?: string;
|
|
93
97
|
promptbookEngineVersion?: string;
|
|
94
98
|
};
|
|
95
|
-
Relationships: [
|
|
99
|
+
Relationships: [
|
|
100
|
+
{
|
|
101
|
+
foreignKeyName: 'AgentHistory_agentName_fkey';
|
|
102
|
+
columns: ['agentName'];
|
|
103
|
+
referencedRelation: 'Agent';
|
|
104
|
+
referencedColumns: ['agentName'];
|
|
105
|
+
}
|
|
106
|
+
];
|
|
96
107
|
};
|
|
97
108
|
};
|
|
98
|
-
Views:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
[_ in never]: never;
|
|
103
|
-
};
|
|
104
|
-
Enums: {
|
|
105
|
-
[_ in never]: never;
|
|
106
|
-
};
|
|
107
|
-
CompositeTypes: {
|
|
108
|
-
[_ in never]: never;
|
|
109
|
-
};
|
|
109
|
+
Views: Record<string, never>;
|
|
110
|
+
Functions: Record<string, never>;
|
|
111
|
+
Enums: Record<string, never>;
|
|
112
|
+
CompositeTypes: Record<string, never>;
|
|
110
113
|
};
|
|
111
114
|
};
|
|
112
115
|
type PublicSchema = AgentsDatabaseSchema[Extract<keyof AgentsDatabaseSchema, 'public'>];
|
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.104.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.104.0-4`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/wizard",
|
|
3
|
-
"version": "0.104.0-
|
|
3
|
+
"version": "0.104.0-5",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"module": "./esm/index.es.js",
|
|
96
96
|
"typings": "./esm/typings/src/_packages/wizard.index.d.ts",
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"@promptbook/core": "0.104.0-
|
|
98
|
+
"@promptbook/core": "0.104.0-5"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@ai-sdk/deepseek": "0.1.17",
|
package/umd/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-5';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -19182,12 +19182,13 @@
|
|
|
19182
19182
|
}
|
|
19183
19183
|
}
|
|
19184
19184
|
catch (error) {
|
|
19185
|
+
assertsError(error);
|
|
19185
19186
|
// If validation throws an unexpected error, don't cache
|
|
19186
19187
|
shouldCache = false;
|
|
19187
19188
|
if (isVerbose) {
|
|
19188
19189
|
console.info('Not caching result due to validation error for key:', key, {
|
|
19189
19190
|
content: promptResult.content,
|
|
19190
|
-
validationError:
|
|
19191
|
+
validationError: serializeError(error),
|
|
19191
19192
|
});
|
|
19192
19193
|
}
|
|
19193
19194
|
}
|