Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Commit a79242e

Browse files
feat: update version to 0.0.86 in package.json and package-lock.json; enhance data handling in coco.ts
1 parent 3c1d6c0 commit a79242e

3 files changed

Lines changed: 5 additions & 45 deletions

File tree

gui/coco/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gui/coco/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ratiosolver/coco",
3-
"version": "0.0.85",
3+
"version": "0.0.86",
44
"type": "module",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

gui/coco/src/coco/coco.ts

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ export namespace coco {
601601
_set_data(data: Datum[]): void {
602602
this.data = data;
603603
for (const l of this.listeners) l.values_updated(this);
604+
if (data.length > 0)
605+
this._set_datum(data[data.length - 1]);
604606
}
605607
_set_datum(datum: Datum): void {
606608
this.datum = datum;
@@ -658,48 +660,6 @@ export namespace coco {
658660
get_id(): string { return this.id; }
659661
get_personal_data(): Record<string, unknown> { return this.personal_data; }
660662
}
661-
662-
export namespace llm {
663-
664-
export class Intent {
665-
666-
private readonly name: string;
667-
private readonly description: string;
668-
669-
constructor(name: string, description: string) {
670-
this.name = name;
671-
this.description = description;
672-
}
673-
674-
get_name(): string { return this.name; }
675-
get_description(): string { return this.description; }
676-
}
677-
678-
export enum EntityType {
679-
string,
680-
int,
681-
float,
682-
bool,
683-
symbol
684-
}
685-
686-
export class Entity {
687-
688-
private readonly name: string;
689-
private readonly type: EntityType;
690-
private readonly description: string;
691-
692-
constructor(name: string, type: EntityType, description: string) {
693-
this.name = name;
694-
this.type = type;
695-
this.description = description;
696-
}
697-
698-
get_name(): string { return this.name; }
699-
get_type(): EntityType { return this.type; }
700-
get_description(): string { return this.description; }
701-
}
702-
}
703663
}
704664

705665
type UpdateCoCoMessage = { msg_type: string } & (CoCoMessage | NewTypeMessage | NewItemMessage | NewDataMessage);

0 commit comments

Comments
 (0)