@roomle/embedding-lib 0.0.0-dev-a40887e → 0.0.0-dev-9d077e2

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.
Files changed (30) hide show
  1. package/configurator.d.ts +2 -0
  2. package/configurator.js +119 -0
  3. package/configurator.min.js +117 -0
  4. package/hi.js +40 -138
  5. package/hi.min.js +39 -122
  6. package/package.json +8 -1
  7. package/packages/embedding-lib/src/configurator-agent/chat-recovery.d.ts +9 -0
  8. package/packages/embedding-lib/src/configurator-agent/configurator-mcp-tools.d.ts +11 -0
  9. package/packages/embedding-lib/src/configurator-agent/configurator-planning-assistant.d.ts +8 -0
  10. package/packages/embedding-lib/src/configurator.d.ts +3 -0
  11. package/packages/embedding-lib/src/hi.d.ts +1 -3
  12. package/packages/embedding-lib/src/homag-intelligence/hi-mcp-tools.d.ts +11 -11
  13. package/packages/embedding-lib/src/homag-intelligence/hi-planning-assistant.d.ts +5 -41
  14. package/packages/embedding-lib/src/planning-assistant/chat-model.d.ts +33 -0
  15. package/packages/embedding-lib/src/{homag-intelligence/hi-mcp/mcp-tool.d.ts → planning-assistant/mcp-tools.d.ts} +10 -27
  16. package/packages/embedding-lib/src/planning-assistant/planning-assistant.d.ts +23 -0
  17. package/planning-assistant-BW9fNGZO.mjs +158 -0
  18. package/planning-assistant-CyVA2uUX.mjs +143 -0
  19. package/roomle-embedding-lib.js +64 -55
  20. package/roomle-embedding-lib.min.js +9 -0
  21. package/hi-mcp-server-B4BAKDmw.mjs +0 -5288
  22. package/hi-mcp-server-DxIvpJmq.mjs +0 -4879
  23. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/agent-facing.d.ts +0 -35
  24. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/hi-mcp-server.d.ts +0 -3
  25. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/plan-history.d.ts +0 -33
  26. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/planner-api.d.ts +0 -32
  27. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/skills.d.ts +0 -23
  28. package/packages/embedding-lib/src/homag-intelligence/hi-mcp/tool-executors.d.ts +0 -4
  29. /package/{comlink-B2Kj_5Ge.mjs → comlink-BJnhpJa4.mjs} +0 -0
  30. /package/{comlink-B5lV2OWp.mjs → comlink-lSsogKgb.mjs} +0 -0
@@ -1,35 +0,0 @@
1
- type WallSide = 'left' | 'right' | 'top' | 'bottom';
2
- interface DerivedWall {
3
- index: number;
4
- side: WallSide;
5
- start: [number, number, number];
6
- end: [number, number, number];
7
- lengthMm: number;
8
- type?: string;
9
- thicknessMm?: number;
10
- facingRotationY: number;
11
- }
12
- export declare const wallName: (side: WallSide) => string;
13
- export interface RoomCorner {
14
- name: string;
15
- point: [number, number, number];
16
- posRotationY: number;
17
- }
18
- export declare const roomCorners: (walls: DerivedWall[]) => RoomCorner[];
19
- export declare const spanAlongWall: (wall: DerivedWall, points: [number, number][]) => [number, number];
20
- export interface WallOfOpening {
21
- roomIndex: number;
22
- wall: number;
23
- fromEndMm: [number, number];
24
- }
25
- export declare const wallOfOpening: (outline: [number, number][], rooms: {
26
- walls?: DerivedWall[];
27
- }[]) => WallOfOpening | undefined;
28
- export declare const withSharedSelectionsOnce: (attributes: any[]) => any[];
29
- export declare const agentFacingAttributes: (masterData: any) => {
30
- [k: string]: any[];
31
- };
32
- export declare const agentFacingArticle: (article: any) => any;
33
- export declare const agentFacingRooms: (rooms: any) => any;
34
- export declare const agentFacingObstacles: (obstacles: any, rooms: any) => any;
35
- export {};
@@ -1,3 +0,0 @@
1
- import { HiMcpTools } from './mcp-tool';
2
- import { HiMcpPlannerApi } from './planner-api';
3
- export declare const createHiMcpTools: (roomDesignerApi: HiMcpPlannerApi) => HiMcpTools;
@@ -1,33 +0,0 @@
1
- /** A tool call that changed the plan, as the undo tool reverts it. */
2
- export interface ToolCallRecord {
3
- tool: string;
4
- /** The planner steps the call put on the planner's undo history. */
5
- steps: number;
6
- /** The plan's groups before and after the call, as comparison keys. */
7
- groupsBefore: string;
8
- groupsAfter: string;
9
- }
10
- export declare class PlanHistory {
11
- private _events;
12
- private _inFlight;
13
- private _done;
14
- private _undone;
15
- private _changedInPlanner;
16
- private _waiters;
17
- get events(): number;
18
- get changedInPlanner(): boolean;
19
- historyChanged(): void;
20
- /** Resolves true once `count` events have arrived, false after the timeout. */
21
- waitForEvents(count: number, timeoutMs: number): Promise<boolean>;
22
- begin(): void;
23
- end(): void;
24
- /** A new change on top of the history ends redo, as in the planner. */
25
- record(call: ToolCallRecord): void;
26
- lastDone(): ToolCallRecord | undefined;
27
- lastUndone(): ToolCallRecord | undefined;
28
- markUndone(): void;
29
- markRedone(): void;
30
- forget(): void;
31
- /** A change in the planner was found: no record can be trusted any more. */
32
- markChangedInPlanner(): void;
33
- }
@@ -1,32 +0,0 @@
1
- export declare const DEFAULT_CALL_TIMEOUT_MS = 30000;
2
- export declare const SNAPSHOT_CALL_TIMEOUT_MS = 120000;
3
- export interface PlannerApi {
4
- extended: {
5
- getExternalObjectPlanContext(include: string[], options?: {
6
- interiorDesign: {
7
- groupId: string;
8
- rootId?: string;
9
- containerModuleId?: string;
10
- articleId?: string;
11
- };
12
- }): Promise<any>;
13
- externalObjectGroupOperation(command: string, payload: Record<string, unknown>): Promise<any>;
14
- fetchPrice(): Promise<any>;
15
- getExternalObjectSnapshot(options: Record<string, boolean>): Promise<any>;
16
- undo(): Promise<void>;
17
- redo(): Promise<void>;
18
- };
19
- }
20
- /**
21
- * The planner API a host hands to the HI MCP tools: the six planner methods
22
- * the tools call, and the planner's callbacks, whose `onHistoryChange` the
23
- * tools chain to tell their own planner steps from the user's changes.
24
- */
25
- export type HiMcpPlannerApi = PlannerApi & {
26
- extended: {
27
- callbacks: {
28
- onHistoryChange?: (undo: boolean, redo: boolean) => void;
29
- };
30
- };
31
- };
32
- export declare const createPlannerApi: ({ extended }: PlannerApi) => PlannerApi;
@@ -1,23 +0,0 @@
1
- /** A frontmatter field as YAML reads it: a scalar, or a nested field (metadata) as an object of scalars. */
2
- export type FrontmatterValue = string | Record<string, string>;
3
- /** A planning skill in the Agent Skills format: a directory with SKILL.md and supporting files. */
4
- export interface Skill {
5
- name: string;
6
- description: string;
7
- frontmatter: Record<string, FrontmatterValue>;
8
- /** The text of every file of the skill by its path in the skill's directory. */
9
- texts: Record<string, string>;
10
- files: string[];
11
- }
12
- export declare const SKILL_FILE = "SKILL.md";
13
- /**
14
- * Reads every skill of the skills directory, given as the text of each file by
15
- * its path below the directory; a broken skill fails the load and names its
16
- * file.
17
- */
18
- export declare const loadSkills: (files: Record<string, string>) => Skill[];
19
- /** One line per skill: its name and its description. */
20
- export declare const skillIndex: (skills: Skill[]) => string;
21
- /** A file of a skill by its path; only a file of the skill's list is read. */
22
- export declare const readSkillFile: (skills: Skill[], name: string, file?: string) => string;
23
- export declare const skills: Skill[];
@@ -1,4 +0,0 @@
1
- import { PlanHistory } from './plan-history';
2
- import { PlannerApi } from './planner-api';
3
- export type ToolExecutor = (roomDesignerApi: PlannerApi, args: Record<string, unknown>) => Promise<unknown>;
4
- export declare const createToolExecutors: (planHistory: PlanHistory) => Record<string, ToolExecutor>;
File without changes
File without changes