@dawn-ai/core 0.1.8 → 0.3.0
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/capabilities/built-in/agents-md.d.ts +13 -0
- package/dist/capabilities/built-in/agents-md.d.ts.map +1 -0
- package/dist/capabilities/built-in/agents-md.js +61 -0
- package/dist/capabilities/built-in/frontmatter.d.ts +17 -0
- package/dist/capabilities/built-in/frontmatter.d.ts.map +1 -0
- package/dist/capabilities/built-in/frontmatter.js +47 -0
- package/dist/capabilities/built-in/plan-md-parser.d.ts +6 -0
- package/dist/capabilities/built-in/plan-md-parser.d.ts.map +1 -0
- package/dist/capabilities/built-in/plan-md-parser.js +18 -0
- package/dist/capabilities/built-in/planning.d.ts +7 -0
- package/dist/capabilities/built-in/planning.d.ts.map +1 -0
- package/dist/capabilities/built-in/planning.js +125 -0
- package/dist/capabilities/built-in/skills.d.ts +3 -0
- package/dist/capabilities/built-in/skills.d.ts.map +1 -0
- package/dist/capabilities/built-in/skills.js +114 -0
- package/dist/capabilities/built-in/subagents.d.ts +3 -0
- package/dist/capabilities/built-in/subagents.d.ts.map +1 -0
- package/dist/capabilities/built-in/subagents.js +99 -0
- package/dist/capabilities/built-in/workspace.d.ts +3 -0
- package/dist/capabilities/built-in/workspace.d.ts.map +1 -0
- package/dist/capabilities/built-in/workspace.js +201 -0
- package/dist/capabilities/registry.d.ts +21 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +35 -0
- package/dist/capabilities/types.d.ts +58 -0
- package/dist/capabilities/types.d.ts.map +1 -0
- package/dist/capabilities/types.js +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -214
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/typegen/extract-tool-schema.js +76 -3
- package/dist/typegen/extract-tool-types.js +2 -2
- package/dist/types.d.ts +62 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +13 -3
|
@@ -98,12 +98,15 @@ export async function extractToolSchemasForRoute(options) {
|
|
|
98
98
|
results.sort((a, b) => a.name.localeCompare(b.name));
|
|
99
99
|
return results;
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
const MAX_SCHEMA_DEPTH = 8;
|
|
102
|
+
function tsTypeToJsonSchema(type, checker, depth = 0) {
|
|
103
|
+
if (depth > MAX_SCHEMA_DEPTH)
|
|
104
|
+
return { type: "string" };
|
|
102
105
|
// Strip undefined from unions (optional properties resolve as T | undefined)
|
|
103
106
|
if (type.isUnion()) {
|
|
104
107
|
const nonUndefined = type.types.filter((t) => !(t.flags & ts.TypeFlags.Undefined));
|
|
105
108
|
if (nonUndefined.length === 1 && nonUndefined[0]) {
|
|
106
|
-
return tsTypeToJsonSchema(nonUndefined[0], checker);
|
|
109
|
+
return tsTypeToJsonSchema(nonUndefined[0], checker, depth);
|
|
107
110
|
}
|
|
108
111
|
// String literal union → enum
|
|
109
112
|
const allStringLiterals = nonUndefined.every((t) => t.isStringLiteral());
|
|
@@ -111,12 +114,28 @@ function tsTypeToJsonSchema(type, checker) {
|
|
|
111
114
|
const enumValues = nonUndefined.map((t) => t.value);
|
|
112
115
|
return { type: "string", enum: enumValues };
|
|
113
116
|
}
|
|
117
|
+
// Union of object shapes → anyOf. Require a genuine object type
|
|
118
|
+
// (ts.TypeFlags.Object) so intrinsic unions like `boolean` (modeled as
|
|
119
|
+
// `true | false` BooleanLiteral members that carry Boolean.prototype
|
|
120
|
+
// props) fall through to the primitive checks below instead of becoming
|
|
121
|
+
// a bogus anyOf.
|
|
122
|
+
if (nonUndefined.length > 1) {
|
|
123
|
+
const allObjects = nonUndefined.every((t) => (t.flags & ts.TypeFlags.Object) !== 0 &&
|
|
124
|
+
(t.getProperties().length > 0 || checker.getIndexTypeOfType(t, ts.IndexKind.String)));
|
|
125
|
+
if (allObjects) {
|
|
126
|
+
return {
|
|
127
|
+
anyOf: nonUndefined.map((t) => tsTypeToJsonSchema(t, checker, depth + 1)),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
}
|
|
114
131
|
}
|
|
115
132
|
// Array type
|
|
116
133
|
if (checker.isArrayType(type)) {
|
|
117
134
|
const typeArgs = type.typeArguments;
|
|
118
135
|
const elementType = typeArgs && typeArgs.length > 0 && typeArgs[0];
|
|
119
|
-
const items = elementType
|
|
136
|
+
const items = elementType
|
|
137
|
+
? tsTypeToJsonSchema(elementType, checker, depth + 1)
|
|
138
|
+
: { type: "string" };
|
|
120
139
|
return { type: "array", items };
|
|
121
140
|
}
|
|
122
141
|
const typeString = checker.typeToString(type);
|
|
@@ -126,9 +145,63 @@ function tsTypeToJsonSchema(type, checker) {
|
|
|
126
145
|
return { type: "number" };
|
|
127
146
|
if (typeString === "boolean")
|
|
128
147
|
return { type: "boolean" };
|
|
148
|
+
// Standalone literal types (e.g. a discriminant `by: "date"`). A single
|
|
149
|
+
// string literal is not a union, so the union→enum path above doesn't fire;
|
|
150
|
+
// without this it would fall through to tryObjectSchema and be misread as an
|
|
151
|
+
// object carrying String.prototype methods.
|
|
152
|
+
if (type.isStringLiteral()) {
|
|
153
|
+
return { type: "string", enum: [type.value] };
|
|
154
|
+
}
|
|
155
|
+
if (type.isNumberLiteral()) {
|
|
156
|
+
return { type: "number" };
|
|
157
|
+
}
|
|
158
|
+
if ((type.flags & ts.TypeFlags.BooleanLiteral) !== 0) {
|
|
159
|
+
return { type: "boolean" };
|
|
160
|
+
}
|
|
161
|
+
// Try nested object
|
|
162
|
+
const objSchema = tryObjectSchema(type, checker, depth);
|
|
163
|
+
if (objSchema !== undefined)
|
|
164
|
+
return objSchema;
|
|
129
165
|
// Fallback to string for unknown types
|
|
130
166
|
return { type: "string" };
|
|
131
167
|
}
|
|
168
|
+
function tryObjectSchema(type, checker, depth) {
|
|
169
|
+
// Only genuine object types may be expanded into property schemas. Primitives
|
|
170
|
+
// and literal types expose prototype members via getProperties(); guarding on
|
|
171
|
+
// the Object type flag prevents emitting e.g. String.prototype as properties.
|
|
172
|
+
if ((type.flags & ts.TypeFlags.Object) === 0)
|
|
173
|
+
return undefined;
|
|
174
|
+
const props = type.getProperties();
|
|
175
|
+
const indexType = checker.getIndexTypeOfType(type, ts.IndexKind.String);
|
|
176
|
+
// Record<string, T>: no named properties, string index signature present.
|
|
177
|
+
if (props.length === 0 && indexType) {
|
|
178
|
+
return {
|
|
179
|
+
type: "object",
|
|
180
|
+
properties: {},
|
|
181
|
+
required: [],
|
|
182
|
+
additionalProperties: tsTypeToJsonSchema(indexType, checker, depth + 1),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
if (props.length === 0)
|
|
186
|
+
return undefined;
|
|
187
|
+
const properties = {};
|
|
188
|
+
const required = [];
|
|
189
|
+
for (const prop of props) {
|
|
190
|
+
const propType = checker.getTypeOfSymbolAtLocation(prop, prop.valueDeclaration ?? prop.declarations?.[0] ?? {});
|
|
191
|
+
const schema = tsTypeToJsonSchema(propType, checker, depth + 1);
|
|
192
|
+
const propDoc = ts.displayPartsToString(prop.getDocumentationComment(checker));
|
|
193
|
+
if (propDoc)
|
|
194
|
+
schema.description = propDoc;
|
|
195
|
+
properties[prop.getName()] = schema;
|
|
196
|
+
const declarations = prop.getDeclarations();
|
|
197
|
+
const isOptional = declarations !== undefined &&
|
|
198
|
+
declarations.length > 0 &&
|
|
199
|
+
declarations.some((d) => ts.isPropertySignature(d) && d.questionToken !== undefined);
|
|
200
|
+
if (!isOptional)
|
|
201
|
+
required.push(prop.getName());
|
|
202
|
+
}
|
|
203
|
+
return { type: "object", properties, required, additionalProperties: false };
|
|
204
|
+
}
|
|
132
205
|
function discoverToolFiles(toolsDir) {
|
|
133
206
|
const files = new Map();
|
|
134
207
|
if (!existsSync(toolsDir))
|
|
@@ -53,7 +53,7 @@ export async function extractToolTypesForRoute(options) {
|
|
|
53
53
|
if (!firstParam)
|
|
54
54
|
continue;
|
|
55
55
|
const paramType = checker.getTypeOfSymbolAtLocation(firstParam, sourceFile);
|
|
56
|
-
inputType = checker.typeToString(paramType);
|
|
56
|
+
inputType = checker.typeToString(paramType, undefined, ts.TypeFormatFlags.NoTruncation);
|
|
57
57
|
}
|
|
58
58
|
const returnType = checker.getReturnTypeOfSignature(signature);
|
|
59
59
|
const outputType = unwrapPromise(returnType);
|
|
@@ -62,7 +62,7 @@ export async function extractToolTypesForRoute(options) {
|
|
|
62
62
|
description,
|
|
63
63
|
name,
|
|
64
64
|
inputType,
|
|
65
|
-
outputType: checker.typeToString(outputType),
|
|
65
|
+
outputType: checker.typeToString(outputType, undefined, ts.TypeFormatFlags.NoTruncation),
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
results.sort((a, b) => a.name.localeCompare(b.name));
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,66 @@
|
|
|
1
|
+
import type { PermissionMode } from "@dawn-ai/permissions";
|
|
1
2
|
import type { RouteKind } from "@dawn-ai/sdk";
|
|
3
|
+
import type { ThreadsStore } from "@dawn-ai/sqlite-storage";
|
|
4
|
+
import type { ExecBackend, FilesystemBackend } from "@dawn-ai/workspace";
|
|
5
|
+
import type { BaseCheckpointSaver } from "@langchain/langgraph-checkpoint";
|
|
2
6
|
export type { RouteKind };
|
|
3
7
|
export interface DawnConfig {
|
|
4
8
|
readonly appDir?: string;
|
|
9
|
+
readonly backends?: {
|
|
10
|
+
readonly filesystem?: FilesystemBackend;
|
|
11
|
+
readonly exec?: ExecBackend;
|
|
12
|
+
};
|
|
13
|
+
readonly permissions?: {
|
|
14
|
+
readonly mode?: PermissionMode;
|
|
15
|
+
readonly allow?: Readonly<Record<string, readonly string[]>>;
|
|
16
|
+
readonly deny?: Readonly<Record<string, readonly string[]>>;
|
|
17
|
+
};
|
|
18
|
+
readonly checkpointer?: BaseCheckpointSaver;
|
|
19
|
+
readonly threadsStore?: ThreadsStore;
|
|
20
|
+
/**
|
|
21
|
+
* Path to the env file loaded for local `dawn dev` / `dawn verify`,
|
|
22
|
+
* relative to the app root. Defaults to "./.env". Does NOT affect the
|
|
23
|
+
* deploy artifact (langgraph.json env is detected separately).
|
|
24
|
+
*/
|
|
25
|
+
readonly env?: string;
|
|
26
|
+
readonly toolOutput?: {
|
|
27
|
+
/** Offload tool outputs whose serialized length exceeds this many characters. Default 40000. */
|
|
28
|
+
readonly offloadThresholdChars?: number;
|
|
29
|
+
/** Number of leading lines kept in the in-context preview. Default 10. */
|
|
30
|
+
readonly previewLines?: number;
|
|
31
|
+
/** Max total bytes retained under workspace/tool-outputs/. Default 268435456 (256MB). */
|
|
32
|
+
readonly maxBytes?: number;
|
|
33
|
+
/** Delete offloaded files older than this many ms. Default 10800000 (3h). */
|
|
34
|
+
readonly ttlMs?: number;
|
|
35
|
+
/** Minimum ms between GC scans. Default 10000 (10s). */
|
|
36
|
+
readonly gcThrottleMs?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Tool names whose output is never offloaded. Merged with the built-in
|
|
39
|
+
* defaults (`readFile`, `listDir`), which are always exempt — exempting
|
|
40
|
+
* the retrieval tools is required so the agent can read back offloaded
|
|
41
|
+
* content without it being re-offloaded.
|
|
42
|
+
*/
|
|
43
|
+
readonly noOffloadTools?: readonly string[];
|
|
44
|
+
};
|
|
45
|
+
readonly summarization?: {
|
|
46
|
+
/** Enable conversation summarization. Default false. */
|
|
47
|
+
readonly enabled?: boolean;
|
|
48
|
+
/** Token threshold over which older history is summarized. Default 12000. */
|
|
49
|
+
readonly maxTokens?: number;
|
|
50
|
+
/** Most-recent turns kept verbatim (a turn starts at a HumanMessage). Default 6. */
|
|
51
|
+
readonly keepRecentTurns?: number;
|
|
52
|
+
/** Model id for the summary LLM call. Defaults to the route's model. */
|
|
53
|
+
readonly model?: string;
|
|
54
|
+
/** Token counter. Default: a lazy gpt-tokenizer (o200k_base) counter. */
|
|
55
|
+
readonly tokenCounter?: (text: string) => number | Promise<number>;
|
|
56
|
+
/** Summary generator. Default: a built-in single-LLM-call summarizer. */
|
|
57
|
+
readonly summarize?: (args: {
|
|
58
|
+
readonly messages: readonly unknown[];
|
|
59
|
+
readonly model: string;
|
|
60
|
+
readonly previousSummary?: string;
|
|
61
|
+
readonly signal: AbortSignal;
|
|
62
|
+
}) => Promise<string>;
|
|
63
|
+
};
|
|
5
64
|
}
|
|
6
65
|
export type RouteSegment = {
|
|
7
66
|
readonly kind: "static";
|
|
@@ -61,12 +120,13 @@ export interface RouteToolTypes {
|
|
|
61
120
|
readonly tools: readonly ExtractedToolType[];
|
|
62
121
|
}
|
|
63
122
|
export interface JsonSchemaProperty {
|
|
64
|
-
readonly type
|
|
123
|
+
readonly type?: string;
|
|
65
124
|
readonly description?: string;
|
|
66
125
|
readonly items?: JsonSchemaProperty;
|
|
67
126
|
readonly properties?: Record<string, JsonSchemaProperty>;
|
|
68
127
|
readonly required?: readonly string[];
|
|
69
|
-
readonly additionalProperties?: boolean;
|
|
128
|
+
readonly additionalProperties?: boolean | JsonSchemaProperty;
|
|
129
|
+
readonly anyOf?: readonly JsonSchemaProperty[];
|
|
70
130
|
readonly enum?: readonly string[];
|
|
71
131
|
}
|
|
72
132
|
export interface ExtractedToolSchema {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,KAAK,EAAE,mBA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,CAAC,KAAK,EAAE,SAAS,mBAAmB,EAAE,CAAA;CAC/C;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEpD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,OAAO,CAAC,CAAA;IACxF,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dawn-ai/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,13 +30,23 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
+
"@langchain/langgraph": "^1.3.0",
|
|
33
34
|
"tsx": "^4.8.1",
|
|
34
35
|
"typescript": "5.8.3",
|
|
35
|
-
"
|
|
36
|
+
"zod": "^4.4.3",
|
|
37
|
+
"@dawn-ai/permissions": "0.1.8",
|
|
38
|
+
"@dawn-ai/sqlite-storage": "0.2.0",
|
|
39
|
+
"@dawn-ai/sdk": "0.3.0",
|
|
40
|
+
"@dawn-ai/workspace": "0.2.0"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@langchain/langgraph-checkpoint": "^1.0.2"
|
|
36
44
|
},
|
|
37
45
|
"devDependencies": {
|
|
46
|
+
"@langchain/langgraph-checkpoint": "^1.0.2",
|
|
38
47
|
"@types/node": "25.6.0",
|
|
39
|
-
"@dawn-ai/
|
|
48
|
+
"@dawn-ai/sqlite-storage": "0.2.0",
|
|
49
|
+
"@dawn-ai/config-typescript": "0.3.0"
|
|
40
50
|
},
|
|
41
51
|
"scripts": {
|
|
42
52
|
"build": "tsc -b tsconfig.json",
|