Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@
"markdown-it-anchor": "^8.6.7",
"slugify": "^1.6.6"
},
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac",
"pnpm": {
"overrides": {
"liquidjs": ">=10.22.0",
"minimatch": ">=5.1.6"
}
}
}
47 changes: 24 additions & 23 deletions docs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ts/examples/memoryProviders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"tsc": "tsc -b"
},
"dependencies": {
"@elastic/elasticsearch": "^8.19.1",
"@elastic/elasticsearch": "^9.3.4",
"aiclient": "workspace:*",
"better-sqlite3": "12.6.2",
"debug": "^4.4.0",
Expand Down
6 changes: 2 additions & 4 deletions ts/examples/memoryProviders/src/elastic/keyValueIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ export async function createKeyValueIndex<
async function getMultiple(ids: TKeyId[]): Promise<TValueId[][]> {
const response = await elasticClient.mget<ElasticEntry>({
index: indexName,
body: {
ids: ids as string[],
},
ids: ids as string[],
});

const textIds = response.docs.map((doc) => doc._id);
Expand All @@ -78,7 +76,7 @@ export async function createKeyValueIndex<
const putResponse = await elasticClient.index<ElasticEntry>({
index: indexName,
id: id as string,
body: entry,
document: entry,
});

return putResponse._id as TKeyId;
Expand Down
18 changes: 8 additions & 10 deletions ts/examples/memoryProviders/src/elastic/simplifiedTextIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function createTextIndex<
elasticClient
.search<ElasticEntry>({
index: indexName,
body: query,
...query,
})
.then((result) => {
hits.push(...result.hits.hits);
Expand Down Expand Up @@ -155,7 +155,7 @@ export async function createTextIndex<
async function get(text: string): Promise<TSourceId[] | undefined> {
const result = await elasticClient.search<ElasticEntry>({
index: indexName,
body: { query: { match: { text } } },
query: { match: { text } },
});
if (result.hits.hits.length > 0) {
const hit = result.hits.hits[0]._source;
Expand All @@ -169,7 +169,7 @@ export async function createTextIndex<
async function getFrequency(text: string): Promise<number> {
const result = await elasticClient.search<ElasticEntry>({
index: indexName,
body: { query: { match: { text } } },
query: { match: { text } },
});
if (result.hits.hits.length > 0) {
const hit = result.hits.hits[0]._source;
Expand Down Expand Up @@ -216,7 +216,7 @@ export async function createTextIndex<
async function getId(text: string): Promise<TTexId | undefined> {
const result = await elasticClient.search<ElasticEntry>({
index: indexName,
body: { query: { match: { text } } },
query: { match: { text } },
});
// There will never be more then one because textId is the
// unique id or the "key" in the index
Expand Down Expand Up @@ -299,7 +299,7 @@ export async function createTextIndex<
}

// Now 'bulkOps' is a flat array of objects.
await elasticClient.bulk({ body: bulkOps });
await elasticClient.bulk({ operations: bulkOps });

return values.map((value) => value.value as TTexId);
}
Expand Down Expand Up @@ -474,11 +474,9 @@ export async function createTextIndex<
await elasticClient.update({
index: indexName,
id: textId as string,
body: {
script: {
source: "ctx._source.sourceIds.removeAll(params.postings)",
params: { postings },
},
script: {
source: "ctx._source.sourceIds.removeAll(params.postings)",
params: { postings },
},
});
}
Expand Down
8 changes: 6 additions & 2 deletions ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,19 @@
]
},
"overrides": {
"node-gyp": "^12.2.0"
"hono": ">=4.12.8",
"http-proxy-agent": ">=7.0.0",
"node-gyp": "^12.2.0",
"serialize-javascript": ">=7.0.0"
},
"ignoredBuiltDependencies": [
"leveldown"
]
},
"peerDependencyRules": {
"ignoreMissing": [
"eslint"
"eslint",
"zod"
],
"allowedVersions": {
"zod": "*",
Expand Down
2 changes: 1 addition & 1 deletion ts/packages/agentSdkWrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"microsoft-cognitiveservices-speech-sdk": "^1.38.0",
"node-fetch": "^3.3.2",
"openai": "^4.73.0",
"zod": "^3.25.0"
"zod": "^4.1.13"
},
"devDependencies": {
"@types/node": "^18.19.3",
Expand Down
6 changes: 3 additions & 3 deletions ts/packages/agents/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"graphology-layout-noverlap": "^0.4.1",
"graphology-types": "^0.24.7",
"html-to-text": "^9.0.5",
"jsdom": "^26.1.0",
"jsdom": "^28.1.0",
"jsonpath": "^1.2.0",
"knowledge-processor": "workspace:*",
"knowpro": "workspace:*",
Expand Down Expand Up @@ -120,7 +120,7 @@
"@types/html-to-text": "^9.0.4",
"@types/jest": "^29.5.7",
"@types/jquery": "^3.5.14",
"@types/jsdom": "^21.1.7",
"@types/jsdom": "^28.0.0",
"@types/jsonpath": "0.2.4",
"@types/markdown-it": "^14.1.2",
"@types/node": "^20.10.4",
Expand All @@ -136,7 +136,7 @@
"jest": "^29.7.0",
"jest-chrome": "^0.8.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^26.1.0",
"jsdom": "^28.1.0",
"rimraf": "^6.0.1",
"rollup-plugin-copy": "^3.5.0",
"ts-jest": "^29.3.2",
Expand Down
2 changes: 2 additions & 0 deletions ts/packages/cli/src/enhancedConsole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,8 @@ function renderStartupBanner(): void {

const lines: string[] = [];
lines.push(top);
// Empty line before logo
lines.push(chalk.dim("│") + " ".repeat(width - 2) + chalk.dim("│"));

// Render logo + content side by side
const totalRows = Math.max(LOGO_LINES.length, contentLines.length);
Expand Down
Loading
Loading