@intelliweave/embedded 2.0.72-beta.1 → 2.0.72-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intelliweave/embedded",
3
- "version": "2.0.72-beta.1",
3
+ "version": "2.0.72-beta.3",
4
4
  "description": "Integrate IntelliWeave into your app or website.",
5
5
  "main": "./dist/webpack/index.js",
6
6
  "types": "./dist/webpack/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "llm:deploy.docker": "npm run llm:build && gcloud auth configure-docker us-central1-docker.pkg.dev && docker tag web-weaver-llm us-central1-docker.pkg.dev/ydangle-web-companion/docker-artifacts/web-weaver-llm && docker push us-central1-docker.pkg.dev/ydangle-web-companion/docker-artifacts/web-weaver-llm",
26
26
  "llm:deploy": "npm run llm:deploy.docker && gcloud run deploy web-weaver-llm --project=ydangle-web-companion --image=us-central1-docker.pkg.dev/ydangle-web-companion/docker-artifacts/web-weaver-llm --allow-unauthenticated --region=us-central1 --description=\"Web Weaver LLM\" --concurrency=2 --min-instances=0 --timeout=5m --memory=16Gi --cpu=8",
27
27
  "prepack": "npm run build",
28
- "test": "npm run build && tsx --test",
28
+ "test": "npm run build && vitest run",
29
29
  "test:local": "IW_API_URL=http://localhost:3000/api npm run test"
30
30
  },
31
31
  "keywords": [
@@ -51,7 +51,8 @@
51
51
  "replace-in-file": "^8.2.0",
52
52
  "tsup": "^8.3.5",
53
53
  "tsx": "^4.19.2",
54
- "typedoc": "^0.27.6"
54
+ "typedoc": "^0.27.6",
55
+ "vitest": "^3.2.4"
55
56
  },
56
57
  "peerDependencies": {
57
58
  "onnxruntime-web": "^1.20.0",
@@ -61,8 +62,8 @@
61
62
  "@anthropic-ai/sdk": "^0.60.0",
62
63
  "@modelcontextprotocol/sdk": "^1.24.1",
63
64
  "@types/json-schema": "^7.0.15",
64
- "gpt-tokenizer": "^2.9.0",
65
65
  "minisearch": "^6.3.0",
66
+ "openai": "^6.10.0",
66
67
  "rehype-document": "^7.0.3",
67
68
  "rehype-external-links": "^3.0.0",
68
69
  "rehype-format": "^5.0.0",
@@ -0,0 +1,17 @@
1
+ import { UserConfig } from "vitest/node"
2
+
3
+ // Vitest configuration
4
+ export default {
5
+ test: {
6
+
7
+ // Allow longer timeouts, since AI takes a while to respond sometimes
8
+ testTimeout: 2 * 60 * 1000,
9
+
10
+ // Default to sequential tests since Anthropic has rate limiting by IP
11
+ // Concurrent tests should be marked as so individually.
12
+ sequence: {
13
+ concurrent: false
14
+ }
15
+
16
+ } satisfies UserConfig
17
+ }
@@ -1 +0,0 @@
1
- var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var l=(b,a,c)=>a in b?e(b,a,{enumerable:!0,configurable:!0,writable:!0,value:c}):b[a]=c;var n=(b=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(b,{get:(a,c)=>(typeof require<"u"?require:a)[c]}):b)(function(b){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+b+'" is not supported')});var o=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports),p=(b,a)=>{for(var c in a)e(b,c,{get:a[c],enumerable:!0})},m=(b,a,c,f)=>{if(a&&typeof a=="object"||typeof a=="function")for(let d of i(a))!k.call(b,d)&&d!==c&&e(b,d,{get:()=>a[d],enumerable:!(f=h(a,d))||f.enumerable});return b};var q=(b,a,c)=>(c=b!=null?g(j(b)):{},m(a||!b||!b.__esModule?e(c,"default",{value:b,enumerable:!0}):c,b));var r=(b,a,c)=>l(b,typeof a!="symbol"?a+"":a,c);export{n as a,o as b,p as c,q as d,r as e};