@hackbuild/agents-views 0.2.2 → 0.2.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/dist/vue.d.ts +12 -0
- package/dist/vue.js +6 -0
- package/package.json +1 -1
package/dist/vue.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { type MapState } from "./map-inset.js";
|
|
|
6
6
|
import { type PlanLogState, type StepLine } from "./plan-log.js";
|
|
7
7
|
/** The behavior block, utility rows (current in pink) and drive rows. */
|
|
8
8
|
export declare const DrivesBars: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
/** What it is doing and why, how it chooses, the utility of each act and each drive's level. */
|
|
9
10
|
state: {
|
|
10
11
|
type: PropType<DrivesBarsState>;
|
|
11
12
|
required: true;
|
|
@@ -17,6 +18,7 @@ export declare const DrivesBars: import("vue").DefineComponent<import("vue").Ext
|
|
|
17
18
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
/** What it is doing and why, how it chooses, the utility of each act and each drive's level. */
|
|
20
22
|
state: {
|
|
21
23
|
type: PropType<DrivesBarsState>;
|
|
22
24
|
required: true;
|
|
@@ -30,6 +32,7 @@ export declare const DrivesBars: import("vue").DefineComponent<import("vue").Ext
|
|
|
30
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
33
|
/** The cues by acts heat table with attention, the explanation and reset. Emits `reset`. */
|
|
32
34
|
export declare const AssociationsTable: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
35
|
+
/** The learned cue and act weights and what the agent is attending to. */
|
|
33
36
|
state: {
|
|
34
37
|
type: PropType<AssociationsState>;
|
|
35
38
|
required: true;
|
|
@@ -41,6 +44,7 @@ export declare const AssociationsTable: import("vue").DefineComponent<import("vu
|
|
|
41
44
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
42
45
|
[key: string]: any;
|
|
43
46
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "reset"[], "reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
/** The learned cue and act weights and what the agent is attending to. */
|
|
44
48
|
state: {
|
|
45
49
|
type: PropType<AssociationsState>;
|
|
46
50
|
required: true;
|
|
@@ -111,10 +115,12 @@ export declare const EyeInset: import("vue").DefineComponent<import("vue").Extra
|
|
|
111
115
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
116
|
/** The plan log: last plan, goals, thoughts and steps. `steps: false` leaves the step log out. */
|
|
113
117
|
export declare const PlanLog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
118
|
+
/** The last plan: its goals, thoughts and steps. */
|
|
114
119
|
state: {
|
|
115
120
|
type: PropType<PlanLogState>;
|
|
116
121
|
required: true;
|
|
117
122
|
};
|
|
123
|
+
/** Show the steps under the plan; off when a StepLog shows them. */
|
|
118
124
|
steps: {
|
|
119
125
|
type: BooleanConstructor;
|
|
120
126
|
default: boolean;
|
|
@@ -122,10 +128,12 @@ export declare const PlanLog: import("vue").DefineComponent<import("vue").Extrac
|
|
|
122
128
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
123
129
|
[key: string]: any;
|
|
124
130
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
131
|
+
/** The last plan: its goals, thoughts and steps. */
|
|
125
132
|
state: {
|
|
126
133
|
type: PropType<PlanLogState>;
|
|
127
134
|
required: true;
|
|
128
135
|
};
|
|
136
|
+
/** Show the steps under the plan; off when a StepLog shows them. */
|
|
129
137
|
steps: {
|
|
130
138
|
type: BooleanConstructor;
|
|
131
139
|
default: boolean;
|
|
@@ -135,10 +143,12 @@ export declare const PlanLog: import("vue").DefineComponent<import("vue").Extrac
|
|
|
135
143
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
136
144
|
/** The step log: one rack log row per tool call. */
|
|
137
145
|
export declare const StepLog: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
146
|
+
/** One line per tool call: its time, the line and whether it went ok. */
|
|
138
147
|
steps: {
|
|
139
148
|
type: PropType<readonly StepLine[]>;
|
|
140
149
|
required: true;
|
|
141
150
|
};
|
|
151
|
+
/** The line shown before the first step. */
|
|
142
152
|
empty: {
|
|
143
153
|
type: StringConstructor;
|
|
144
154
|
default: string;
|
|
@@ -146,10 +156,12 @@ export declare const StepLog: import("vue").DefineComponent<import("vue").Extrac
|
|
|
146
156
|
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
147
157
|
[key: string]: any;
|
|
148
158
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
159
|
+
/** One line per tool call: its time, the line and whether it went ok. */
|
|
149
160
|
steps: {
|
|
150
161
|
type: PropType<readonly StepLine[]>;
|
|
151
162
|
required: true;
|
|
152
163
|
};
|
|
164
|
+
/** The line shown before the first step. */
|
|
153
165
|
empty: {
|
|
154
166
|
type: StringConstructor;
|
|
155
167
|
default: string;
|
package/dist/vue.js
CHANGED
|
@@ -10,6 +10,7 @@ import { planLog, stepLog } from "./plan-log.js";
|
|
|
10
10
|
export const DrivesBars = defineComponent({
|
|
11
11
|
name: "DrivesBars",
|
|
12
12
|
props: {
|
|
13
|
+
/** What it is doing and why, how it chooses, the utility of each act and each drive's level. */
|
|
13
14
|
state: { type: Object, required: true },
|
|
14
15
|
note: { type: String, default: undefined },
|
|
15
16
|
},
|
|
@@ -29,6 +30,7 @@ export const DrivesBars = defineComponent({
|
|
|
29
30
|
export const AssociationsTable = defineComponent({
|
|
30
31
|
name: "AssociationsTable",
|
|
31
32
|
props: {
|
|
33
|
+
/** The learned cue and act weights and what the agent is attending to. */
|
|
32
34
|
state: { type: Object, required: true },
|
|
33
35
|
limit: { type: Number, default: 16 },
|
|
34
36
|
},
|
|
@@ -86,7 +88,9 @@ export const EyeInset = defineComponent({
|
|
|
86
88
|
export const PlanLog = defineComponent({
|
|
87
89
|
name: "PlanLog",
|
|
88
90
|
props: {
|
|
91
|
+
/** The last plan: its goals, thoughts and steps. */
|
|
89
92
|
state: { type: Object, required: true },
|
|
93
|
+
/** Show the steps under the plan; off when a StepLog shows them. */
|
|
90
94
|
steps: { type: Boolean, default: true },
|
|
91
95
|
},
|
|
92
96
|
setup(props) {
|
|
@@ -105,7 +109,9 @@ export const PlanLog = defineComponent({
|
|
|
105
109
|
export const StepLog = defineComponent({
|
|
106
110
|
name: "StepLog",
|
|
107
111
|
props: {
|
|
112
|
+
/** One line per tool call: its time, the line and whether it went ok. */
|
|
108
113
|
steps: { type: Array, required: true },
|
|
114
|
+
/** The line shown before the first step. */
|
|
109
115
|
empty: { type: String, default: "no steps yet." },
|
|
110
116
|
},
|
|
111
117
|
setup(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackbuild/agents-views",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Views that bind the agents packages to the hackbuild-ui class layer: the behaviour, utility and drive bars, the cues by acts associations table, the eye inset, and Yard, the dog simulator's stage and rack as one view. Each small view ships as a Vue component and as a custom element.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|