@webgrow/skillhub 0.1.0
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/README.md +114 -0
- package/bridge/.env.example +14 -0
- package/bridge/README.md +74 -0
- package/bridge/adapters.mjs +209 -0
- package/bridge/convex-functions.mjs +13 -0
- package/bridge/doctor.mjs +448 -0
- package/bridge/harness.mjs +217 -0
- package/convex/_generated/ai/ai-files.state.json +6 -0
- package/convex/_generated/ai/guidelines.md +368 -0
- package/convex/_generated/api.d.ts +59 -0
- package/convex/_generated/api.js +23 -0
- package/convex/_generated/dataModel.d.ts +60 -0
- package/convex/_generated/server.d.ts +143 -0
- package/convex/_generated/server.js +93 -0
- package/convex/bridge.ts +709 -0
- package/convex/convex.config.ts +8 -0
- package/convex/http.ts +37 -0
- package/convex/loops.ts +546 -0
- package/convex/runs.ts +183 -0
- package/convex/schema.ts +220 -0
- package/convex/skills.ts +413 -0
- package/convex/tsconfig.json +25 -0
- package/dashboard/.env.example +1 -0
- package/dashboard/index.html +12 -0
- package/dashboard/src/App.jsx +1743 -0
- package/dashboard/src/convexRefs.js +32 -0
- package/dashboard/src/main.jsx +46 -0
- package/dashboard/src/styles.css +982 -0
- package/dashboard/tsconfig.json +17 -0
- package/dashboard/vite.config.mjs +23 -0
- package/package.json +48 -0
- package/src/bridge-command.mjs +101 -0
- package/src/cli.mjs +246 -0
- package/src/cloud-catalog.mjs +588 -0
- package/src/config.mjs +150 -0
- package/src/connect.mjs +410 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { makeFunctionReference } from "convex/server";
|
|
2
|
+
|
|
3
|
+
export const refs = {
|
|
4
|
+
runs: {
|
|
5
|
+
appendEvent: makeFunctionReference("runs:appendEvent"),
|
|
6
|
+
createRun: makeFunctionReference("runs:createRun"),
|
|
7
|
+
getRun: makeFunctionReference("runs:getRun"),
|
|
8
|
+
listActive: makeFunctionReference("runs:listActive"),
|
|
9
|
+
listRecent: makeFunctionReference("runs:listRecent"),
|
|
10
|
+
},
|
|
11
|
+
loops: {
|
|
12
|
+
createDraft: makeFunctionReference("loops:createDraft"),
|
|
13
|
+
get: makeFunctionReference("loops:get"),
|
|
14
|
+
list: makeFunctionReference("loops:list"),
|
|
15
|
+
publishDraft: makeFunctionReference("loops:publishDraft"),
|
|
16
|
+
run: makeFunctionReference("loops:run"),
|
|
17
|
+
saveDraft: makeFunctionReference("loops:saveDraft"),
|
|
18
|
+
},
|
|
19
|
+
bridge: {
|
|
20
|
+
enqueueHostAction: makeFunctionReference("bridge:enqueueHostAction"),
|
|
21
|
+
getOperatorPacket: makeFunctionReference("bridge:getOperatorPacket"),
|
|
22
|
+
listWorkerState: makeFunctionReference("bridge:listWorkerState"),
|
|
23
|
+
},
|
|
24
|
+
skills: {
|
|
25
|
+
createDraft: makeFunctionReference("skills:createDraft"),
|
|
26
|
+
get: makeFunctionReference("skills:get"),
|
|
27
|
+
list: makeFunctionReference("skills:list"),
|
|
28
|
+
publishDraft: makeFunctionReference("skills:publishDraft"),
|
|
29
|
+
runTest: makeFunctionReference("skills:runTest"),
|
|
30
|
+
saveDraft: makeFunctionReference("skills:saveDraft"),
|
|
31
|
+
},
|
|
32
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ConvexProvider, ConvexReactClient } from "convex/react";
|
|
2
|
+
import React, { StrictMode, useMemo } from "react";
|
|
3
|
+
import { createRoot } from "react-dom/client";
|
|
4
|
+
import { App } from "./App.jsx";
|
|
5
|
+
import "./styles.css";
|
|
6
|
+
|
|
7
|
+
const convexUrl = import.meta.env.VITE_CONVEX_URL;
|
|
8
|
+
|
|
9
|
+
function Root() {
|
|
10
|
+
if (!convexUrl) {
|
|
11
|
+
return <MissingConvexUrl />;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return <ConnectedApp url={convexUrl} />;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function ConnectedApp({ url }) {
|
|
18
|
+
const client = useMemo(() => new ConvexReactClient(url), [url]);
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
<ConvexProvider client={client}>
|
|
22
|
+
<App />
|
|
23
|
+
</ConvexProvider>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function MissingConvexUrl() {
|
|
28
|
+
return (
|
|
29
|
+
<main className="setup-shell">
|
|
30
|
+
<section className="setup-panel">
|
|
31
|
+
<p className="eyebrow">Configuration</p>
|
|
32
|
+
<h1>VITE_CONVEX_URL is not set</h1>
|
|
33
|
+
<p>
|
|
34
|
+
Add it to <code>dashboard/.env.local</code> after running Convex, then
|
|
35
|
+
restart the dashboard.
|
|
36
|
+
</p>
|
|
37
|
+
</section>
|
|
38
|
+
</main>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
createRoot(document.getElementById("root")).render(
|
|
43
|
+
<StrictMode>
|
|
44
|
+
<Root />
|
|
45
|
+
</StrictMode>,
|
|
46
|
+
);
|