Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hash-object and search-and-crawl package #678

Merged
merged 2 commits into from
Nov 7, 2024
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
29 changes: 0 additions & 29 deletions examples/dexter/bin/analyze.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,11 @@
"dependencies": {
"dedent": "^1.5.3",
"delay": "^6.0.0",
"hash-object": "^5.0.1",
"is-relative-url": "^4.0.0",
"jsonrepair": "^3.9.0",
"ky": "^1.7.2",
"normalize-url": "^8.0.1",
"openai-zod-to-json-schema": "^1.0.3",
"p-map": "^7.0.2",
"p-throttle": "^6.2.0",
"quick-lru": "^7.0.0",
"type-fest": "^4.26.1",
"zod-validation-error": "^3.4.0"
},
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ export * from './message'
export * from './parse-structured-output'
export * from './schema'
export type * from './types'
export * from './url-utils'
export * from './utils'
export * from './zod-to-json-schema'
34 changes: 0 additions & 34 deletions packages/core/src/url-utils.test.ts

This file was deleted.

108 changes: 0 additions & 108 deletions packages/core/src/url-utils.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import dedent from 'dedent'
import hashObjectImpl, { type Options as HashObjectOptions } from 'hash-object'

import type * as types from './types'

Expand Down Expand Up @@ -253,13 +252,6 @@ export function cleanStringForModel(text: string): string {
return dedenter(text).trim()
}

export function hashObject(
object: Record<string, any>,
options?: HashObjectOptions
): string {
return hashObjectImpl(object, { algorithm: 'sha256', ...options })
}

export function isAIFunction(obj: any): obj is types.AIFunction {
if (!obj) return false
if (typeof obj !== 'function') return false
Expand Down
29 changes: 0 additions & 29 deletions packages/search-and-crawl/CHANGELOG.md

This file was deleted.

48 changes: 0 additions & 48 deletions packages/search-and-crawl/package.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/search-and-crawl/src/index.ts

This file was deleted.

Loading