@manta-eu/horns-server 0.2.1 → 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.
|
@@ -23,6 +23,8 @@ export declare class HornStudioAgent extends Think<StudioAgentEnv, StudioAgentSt
|
|
|
23
23
|
onConnect(connection: Connection, ctx: ConnectionContext): void | Promise<void>;
|
|
24
24
|
private get opened();
|
|
25
25
|
private get realm();
|
|
26
|
+
/** How a turn reaches agents, as the viewer and through the host's own upstream where it has one. */
|
|
27
|
+
private get caller();
|
|
26
28
|
private select;
|
|
27
29
|
getModel(): LanguageModel;
|
|
28
30
|
/** Where the draft has got to: nothing drawn is designing, drawn but unbound is hydrating. */
|
|
@@ -42,13 +42,17 @@ export class HornStudioAgent extends Think {
|
|
|
42
42
|
get realm() {
|
|
43
43
|
return this.opened.realm;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
/** How a turn reaches agents, as the viewer and through the host's own upstream where it has one. */
|
|
46
|
+
get caller() {
|
|
47
|
+
return {
|
|
47
48
|
agentsUrl: this.env.MANTA_AGENTS_URL,
|
|
48
49
|
upstream: this.env.UPSTREAM,
|
|
49
50
|
session: this.opened.session,
|
|
50
51
|
datastoreId: this.opened.datastoreId,
|
|
51
|
-
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
select() {
|
|
55
|
+
return agentsSparqlSelect(this.caller);
|
|
52
56
|
}
|
|
53
57
|
getModel() {
|
|
54
58
|
const chosen = studioModel(this.env);
|
|
@@ -116,11 +120,7 @@ export class HornStudioAgent extends Think {
|
|
|
116
120
|
lookup: () => undefined,
|
|
117
121
|
...(deps.typecheck ? { typecheck: deps.typecheck } : {}),
|
|
118
122
|
// As the viewer: staging a rule is attributed to a person, and agents refuses it otherwise.
|
|
119
|
-
stageRule: (rule) => stageRule(
|
|
120
|
-
agentsUrl: this.env.MANTA_AGENTS_URL,
|
|
121
|
-
session: this.opened.session,
|
|
122
|
-
datastoreId: this.opened.datastoreId,
|
|
123
|
-
}, rule),
|
|
123
|
+
stageRule: (rule) => stageRule(this.caller, rule),
|
|
124
124
|
}),
|
|
125
125
|
};
|
|
126
126
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/horns-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "The Manta Horns worker as a library: Hono routes a Cloudflare host mounts on its own app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
"./studio-worker": {
|
|
50
50
|
"types": "./dist/studio-worker.d.ts",
|
|
51
51
|
"default": "./dist/studio-worker.js"
|
|
52
|
+
},
|
|
53
|
+
"./csp": {
|
|
54
|
+
"types": "./dist/csp.d.ts",
|
|
55
|
+
"default": "./dist/csp.js"
|
|
52
56
|
}
|
|
53
57
|
},
|
|
54
58
|
"publishConfig": {
|
|
@@ -59,8 +63,8 @@
|
|
|
59
63
|
"@ai-sdk/google-vertex": "^5.0.101",
|
|
60
64
|
"@ai-sdk/openai-compatible": "^3.0.62",
|
|
61
65
|
"@cloudflare/think": "0.19.0",
|
|
62
|
-
"@manta-eu/client": "0.1.
|
|
63
|
-
"@manta-eu/lib": "0.1.
|
|
66
|
+
"@manta-eu/client": "0.1.7",
|
|
67
|
+
"@manta-eu/lib": "0.1.7",
|
|
64
68
|
"@sentry/cloudflare": "^10.70.0",
|
|
65
69
|
"@sentry/core": "^10.70.0",
|
|
66
70
|
"agents": "^0.24.0",
|
|
@@ -70,8 +74,8 @@
|
|
|
70
74
|
"sparqljs": "^3.7.4",
|
|
71
75
|
"typescript": "^5.9.0",
|
|
72
76
|
"zod": "^4.5.4",
|
|
73
|
-
"@manta-eu/horns": "0.2.
|
|
74
|
-
"@manta-eu/horns-kit": "0.2.
|
|
77
|
+
"@manta-eu/horns": "0.2.3",
|
|
78
|
+
"@manta-eu/horns-kit": "0.2.3"
|
|
75
79
|
},
|
|
76
80
|
"devDependencies": {
|
|
77
81
|
"@cloudflare/vite-plugin": "1.47.0",
|