Skip to content

Commit

Permalink
fix: remove hash-object and search-and-crawl package
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Nov 7, 2024
1 parent e0e4bbb commit 7ce3acc
Show file tree
Hide file tree
Showing 14 changed files with 1,805 additions and 2,505 deletions.
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

0 comments on commit 7ce3acc

Please sign in to comment.