mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 03:52:48 +05:30
refactor: use package imports over relative imports for cross package ref and tests
This commit is contained in:
@@ -5,5 +5,10 @@
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./dist/index.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@omnia/core": "workspace:*",
|
||||
"@omnia/llm": "workspace:*",
|
||||
"zod": "^4.4.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from "./attribute.js";
|
||||
export * from "./entity.js";
|
||||
export * from "./world.js";
|
||||
export * from "./clock.js";
|
||||
export * from "./repository.js";
|
||||
|
||||
@@ -4,11 +4,11 @@ import {
|
||||
Attribute,
|
||||
AttributeVisibility,
|
||||
AttributableObject,
|
||||
} from "../src/attribute.js";
|
||||
import { Entity } from "../src/entity.js";
|
||||
import { WorldClock } from "../src/clock.js";
|
||||
import { WorldState } from "../src/world.js";
|
||||
import { SQLiteRepository } from "../src/repository.js";
|
||||
Entity,
|
||||
WorldClock,
|
||||
WorldState,
|
||||
SQLiteRepository,
|
||||
} from "@omnia/core";
|
||||
|
||||
// A concrete implementation of AttributableObject for testing
|
||||
class MockAttributable extends AttributableObject {}
|
||||
|
||||
12
pnpm-lock.yaml
generated
12
pnpm-lock.yaml
generated
@@ -297,7 +297,17 @@ importers:
|
||||
specifier: ^5
|
||||
version: 5.9.3
|
||||
|
||||
packages/architect: {}
|
||||
packages/architect:
|
||||
dependencies:
|
||||
'@omnia/core':
|
||||
specifier: workspace:*
|
||||
version: link:../core
|
||||
'@omnia/llm':
|
||||
specifier: workspace:*
|
||||
version: link:../llm
|
||||
zod:
|
||||
specifier: ^4.4.3
|
||||
version: 4.4.3
|
||||
|
||||
packages/core:
|
||||
dependencies:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { describe, test, expect } from "vitest";
|
||||
import { z } from "zod";
|
||||
import { GeminiProvider } from "../../packages/llm/src/providers/google-genai.js";
|
||||
import { llmConfig } from "../../packages/llm/src/config.js";
|
||||
import { GeminiProvider, llmConfig } from "@omnia/llm";
|
||||
|
||||
describe("GeminiProvider Eval", () => {
|
||||
test("structured JSON response against live API", async () => {
|
||||
|
||||
Reference in New Issue
Block a user