@schlenkr/ragents 0.1.9 → 0.1.10
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/apps/server/package.json +1 -1
- package/apps/server/src/access-projection.ts +6 -36
- package/apps/server/src/api/contracts.ts +5 -2
- package/apps/server/src/api/core-methods.ts +5 -3
- package/apps/server/src/config-file.ts +1 -1
- package/apps/server/src/host-api.json +2 -0
- package/apps/server/src/plugin-support/process-sandbox.ts +16 -15
- package/apps/server/src/provider.ts +2 -2
- package/apps/server/src/ragents/engine.ts +2 -1
- package/apps/server/src/ragents/global-chat.ts +7 -1
- package/apps/server/src/server.ts +3 -1
- package/apps/web/dist/assets/{highlighted-body-KPVGNVTW-xXXhTDbh.js → highlighted-body-KPVGNVTW-BO4wLQtE.js} +1 -1
- package/apps/web/dist/assets/main-DnnqWHkH.js +11 -0
- package/apps/web/dist/assets/mermaid-HWGCJPDP-BLLeth5_.js +568 -0
- package/apps/web/dist/assets/{runPanel-ZT6TPDLM.js → runPanel-DPm7s3KM.js} +2 -2
- package/apps/web/dist/help/guide-clients.html +17 -7
- package/apps/web/dist/help/guide-clients.md +18 -7
- package/apps/web/dist/help/index.html +1911 -908
- package/apps/web/dist/help/mini-app.css +24 -0
- package/apps/web/dist/host-web.json +2 -2
- package/apps/web/dist/index.html +2 -2
- package/apps/web/dist/run-panel.html +2 -2
- package/apps/web/package.json +1 -1
- package/apps/web/src/panel/ConnectionsPage.tsx +3 -0
- package/apps/web/src/panel/StartPage.tsx +3 -0
- package/apps/web/src/panel/contract.ts +7 -0
- package/bundles/ragents.activity/ragents-bundle.json +1 -1
- package/bundles/ragents.actor-programs/ragents-bundle.json +2 -2
- package/bundles/ragents.actor-programs/server/index.js +31 -3
- package/bundles/ragents.actor-programs/server/index.js.map +4 -4
- package/bundles/ragents.actor-programs/web/index.js.map +1 -1
- package/bundles/ragents.ask/ragents-bundle.json +2 -4
- package/bundles/ragents.ask/web/chunks/{chunk-V7W3QDVS.js → chunk-MBRPS477.js} +2 -2
- package/bundles/ragents.ask/web/chunks/{chunk-V7W3QDVS.js.map → chunk-MBRPS477.js.map} +4 -4
- package/bundles/ragents.ask/web/classes.json +1 -1
- package/bundles/ragents.ask/web/exports/web/QuestionCard.js +1 -1
- package/bundles/ragents.ask/web/index.js +1 -1
- package/bundles/ragents.ask/web/index.js.map +4 -4
- package/bundles/ragents.browser/ragents-bundle.json +1 -1
- package/bundles/ragents.documents/ragents-bundle.json +1 -1
- package/bundles/ragents.lsp-fsharp/ragents-bundle.json +1 -1
- package/bundles/ragents.lsp-roslyn/ragents-bundle.json +1 -1
- package/bundles/ragents.lsp-typescript/ragents-bundle.json +1 -1
- package/bundles/ragents.model-relay/ragents-bundle.json +1 -1
- package/bundles/ragents.orchestration/ragents-bundle.json +2 -2
- package/bundles/ragents.orchestration/web/classes.json +1 -1
- package/bundles/ragents.orchestration/web/index.js +6 -6
- package/bundles/ragents.orchestration/web/index.js.map +3 -3
- package/bundles/ragents.overseer/ragents-bundle.json +2 -2
- package/bundles/ragents.overseer/server/index.js +1 -1
- package/bundles/ragents.overseer/server/index.js.map +2 -2
- package/bundles/ragents.processes/ragents-bundle.json +1 -1
- package/bundles/ragents.product/ragents-bundle.json +1 -1
- package/bundles/ragents.profile-distribution/ragents-bundle.json +1 -1
- package/bundles/ragents.reference/ragents-bundle.json +1 -1
- package/bundles/ragents.todo/ragents-bundle.json +1 -1
- package/bundles/ragents.transcript/ragents-bundle.json +1 -1
- package/bundles/ragents.watch/ragents-bundle.json +1 -1
- package/bundles/ragents.workspace/ragents-bundle.json +2 -2
- package/bundles/ragents.workspace/server/index.js +4 -2
- package/bundles/ragents.workspace/server/index.js.map +2 -2
- package/package.json +3 -3
- package/packages/agent/dist/core/tools/bash.d.ts +1 -1
- package/packages/agent/src/core/tools/bash.ts +1 -1
- package/packages/ragents/src/index.ts +1 -0
- package/packages/ragents/src/plugin-host.ts +46 -0
- package/packages/ragents/src/plugin-types.ts +19 -0
- package/packages/workspace-executor/src/managed-process.ts +28 -0
- package/packages/workspace-executor/src/sandbox-tools.ts +9 -3
- package/plugins/ragents.actor-programs/server/access-projections.ts +31 -0
- package/plugins/ragents.actor-programs/server/index.ts +2 -0
- package/plugins/ragents.ask/web/index.tsx +0 -6
- package/plugins/ragents.orchestration/web/ActorTile.tsx +1 -1
- package/plugins/ragents.orchestration/web/run-panel/RunPanel.tsx +8 -7
- package/plugins/ragents.orchestration/web/run-panel/sheet-status.ts +3 -3
- package/plugins/ragents.overseer/server/api.ts +2 -2
- package/plugins/ragents.workspace/client/workspace-client.ts +19 -6
- package/plugins/ragents.workspace/server/config.ts +3 -0
- package/plugins/ragents.workspace/server/index.ts +3 -2
- package/apps/web/dist/assets/main-C7JeZFjs.js +0 -6
- package/apps/web/dist/assets/mermaid-HWGCJPDP-DfsU5ofC.js +0 -478
- package/plugins/ragents.ask/web/QuestionSection.tsx +0 -48
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { useAccess } from "@ragents/web/AccessContext";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
import { runActorFrom, runViewFrom } from "@ragents/web/run-view";
|
|
4
|
-
import type { CardSectionContext } from "@ragents/web/PluginRegistry";
|
|
5
|
-
import { SectionLabel } from "@ragents/web/ui";
|
|
6
|
-
import { askPayloadOf, ASK_PLUGIN_ID } from "../ask-payload";
|
|
7
|
-
import { answerQuestion } from "./api";
|
|
8
|
-
import { QuestionCard } from "./QuestionCard";
|
|
9
|
-
|
|
10
|
-
export function QuestionSection({ actor, session }: CardSectionContext) {
|
|
11
|
-
const access = useAccess();
|
|
12
|
-
const [error, setError] = useState<string>();
|
|
13
|
-
const view = runViewFrom(session.runView);
|
|
14
|
-
if (!view) return null;
|
|
15
|
-
const actorId = runActorFrom(actor).id;
|
|
16
|
-
const pending = view.actions.filter((action) =>
|
|
17
|
-
action.owner === ASK_PLUGIN_ID && (askPayloadOf(action.payload)?.recipient ?? action.askedBy) === actorId && action.status === "pending");
|
|
18
|
-
if (pending.length === 0) return null;
|
|
19
|
-
|
|
20
|
-
const answer = (actionId: string, text: string) => {
|
|
21
|
-
setError(undefined);
|
|
22
|
-
answerQuestion(session.session.id, actionId, text)
|
|
23
|
-
.catch((caught: unknown) => setError(caught instanceof Error ? caught.message : String(caught)));
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
return (
|
|
27
|
-
<section className="grid gap-1.5">
|
|
28
|
-
<SectionLabel>
|
|
29
|
-
<span>Rückfrage</span>
|
|
30
|
-
<small>{pending.length}</small>
|
|
31
|
-
</SectionLabel>
|
|
32
|
-
{pending.map((action) => {
|
|
33
|
-
const question = askPayloadOf(action.payload);
|
|
34
|
-
return question && (
|
|
35
|
-
<div className="rounded-lg animate-ring-pulse motion-reduce:animate-none" key={action.id}>
|
|
36
|
-
{action.description && <p className="mb-1.5 text-[0.7rem] leading-[1.35] text-muted-foreground">{action.description}</p>}
|
|
37
|
-
<QuestionCard
|
|
38
|
-
onAnswer={access.can("runs.write") ? (text) => answer(action.id, text) : undefined}
|
|
39
|
-
question={question}
|
|
40
|
-
text={action.title}
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
);
|
|
44
|
-
})}
|
|
45
|
-
{error && <p className="text-[0.7rem] text-destructive" role="alert">{error}</p>}
|
|
46
|
-
</section>
|
|
47
|
-
);
|
|
48
|
-
}
|