@fabric-harness/sdk 0.2.1 → 0.2.3
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.
|
@@ -57,7 +57,7 @@ export interface DefineAgentOptions {
|
|
|
57
57
|
* import { defineAgent } from '@fabric-harness/sdk/lite';
|
|
58
58
|
*
|
|
59
59
|
* export default defineAgent<{ message: string }>(async ({ init, payload }) => {
|
|
60
|
-
* const session = await (await init({ model: '
|
|
60
|
+
* const session = await (await init({ model: 'openai/gpt-5.5' })).session();
|
|
61
61
|
* return { reply: await session.prompt<string>(payload.message) };
|
|
62
62
|
* }, { name: 'echo', triggers: { webhook: true } });
|
|
63
63
|
* ```
|
package/dist/agent-definition.js
CHANGED
|
@@ -57,7 +57,7 @@ export function getAgentDefinition(value) {
|
|
|
57
57
|
* import { defineAgent } from '@fabric-harness/sdk/lite';
|
|
58
58
|
*
|
|
59
59
|
* export default defineAgent<{ message: string }>(async ({ init, payload }) => {
|
|
60
|
-
* const session = await (await init({ model: '
|
|
60
|
+
* const session = await (await init({ model: 'openai/gpt-5.5' })).session();
|
|
61
61
|
* return { reply: await session.prompt<string>(payload.message) };
|
|
62
62
|
* }, { name: 'echo', triggers: { webhook: true } });
|
|
63
63
|
* ```
|
|
@@ -57,7 +57,7 @@ export declare function inMemorySource(files: Record<string, string | Uint8Array
|
|
|
57
57
|
* source: localDirectorySource('./knowledge-base'),
|
|
58
58
|
* }]);
|
|
59
59
|
*
|
|
60
|
-
* const agent = await init({ sandbox, model: '
|
|
60
|
+
* const agent = await init({ sandbox, model: 'openai/gpt-5.5' });
|
|
61
61
|
* ```
|
|
62
62
|
*
|
|
63
63
|
* The agent's built-in `grep`, `glob`, and `read` tools then operate on
|
|
@@ -120,9 +120,9 @@ export declare function fumadocsSource(contentRoot: string, options?: {
|
|
|
120
120
|
include?: (relativePath: string) => boolean;
|
|
121
121
|
}): FilesystemSource;
|
|
122
122
|
/**
|
|
123
|
-
* Mount a checked-out Mintlify content directory. For
|
|
124
|
-
*
|
|
125
|
-
* instead
|
|
123
|
+
* Mount a checked-out Mintlify content directory. For a hosted Mintlify
|
|
124
|
+
* MCP server, use `connectMcpServer('mintlify', { url, transport: 'streamable-http' })`
|
|
125
|
+
* instead.
|
|
126
126
|
*/
|
|
127
127
|
export declare function mintlifySource(contentRoot: string, options?: {
|
|
128
128
|
name?: string;
|
|
@@ -68,7 +68,7 @@ export function inMemorySource(files, options = {}) {
|
|
|
68
68
|
* source: localDirectorySource('./knowledge-base'),
|
|
69
69
|
* }]);
|
|
70
70
|
*
|
|
71
|
-
* const agent = await init({ sandbox, model: '
|
|
71
|
+
* const agent = await init({ sandbox, model: 'openai/gpt-5.5' });
|
|
72
72
|
* ```
|
|
73
73
|
*
|
|
74
74
|
* The agent's built-in `grep`, `glob`, and `read` tools then operate on
|
|
@@ -207,9 +207,9 @@ function stripMdxFrontmatter(text) {
|
|
|
207
207
|
return text.slice(end + 4).replace(/^\n/, '');
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
|
-
* Mount a checked-out Mintlify content directory. For
|
|
211
|
-
*
|
|
212
|
-
* instead
|
|
210
|
+
* Mount a checked-out Mintlify content directory. For a hosted Mintlify
|
|
211
|
+
* MCP server, use `connectMcpServer('mintlify', { url, transport: 'streamable-http' })`
|
|
212
|
+
* instead.
|
|
213
213
|
*/
|
|
214
214
|
export function mintlifySource(contentRoot, options = {}) {
|
|
215
215
|
const include = options.include ?? ((p) => p.endsWith('.mdx') || p.endsWith('.md') || p.endsWith('.json'));
|
package/dist/lite.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* export default defineAgent(async ({ init, payload }) => {
|
|
19
19
|
* const session = await (await init({
|
|
20
|
-
* model: '
|
|
20
|
+
* model: 'openai/gpt-5.5',
|
|
21
21
|
* runtime: 'stateless',
|
|
22
22
|
* })).session();
|
|
23
23
|
* return { reply: (await session.prompt(String(payload?.message ?? ''))).text };
|
package/dist/lite.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* export default defineAgent(async ({ init, payload }) => {
|
|
19
19
|
* const session = await (await init({
|
|
20
|
-
* model: '
|
|
20
|
+
* model: 'openai/gpt-5.5',
|
|
21
21
|
* runtime: 'stateless',
|
|
22
22
|
* })).session();
|
|
23
23
|
* return { reply: (await session.prompt(String(payload?.message ?? ''))).text };
|
package/package.json
CHANGED