Skip to content

Commit 3f814cf

Browse files
github-actions[bot]ranst91
authored andcommitted
style: auto-fix formatting
1 parent a794814 commit 3f814cf

9 files changed

Lines changed: 37 additions & 29 deletions

File tree

.claude/skills/copilotkit-demo-parity/SKILL.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ Output kinds:
120120
## Procedure: change the tracked surface
121121

122122
To track a new file or key:
123+
123124
1. Edit `manifest.json``tracked.verbatimFiles` or `tracked.packageJsonPaths`.
124125
2. Run `pnpm parity:verify` — instances will flag as drifted until synced.
125126
3. `pnpm parity:sync --all` to apply.
@@ -129,18 +130,18 @@ and sync stop touching it. Any drift that already exists stays.
129130

130131
## Red flags
131132

132-
| Signal | What it means | Do instead |
133-
|--------|---------------|------------|
134-
| "Just copy the file manually" | Bypasses the manifest | Add to `tracked.verbatimFiles` then sync |
135-
| "Add a try/catch so verify doesn't fail" | Silencing drift | Resolve the drift or declare divergence |
136-
| "Move this into `allowedDivergence` to unblock" | Scope creep | Only add to divergence with explicit reason |
137-
| `pnpm parity:sync` on north-star directly | Overwrites canonical | Sync is instance-only; script refuses |
138-
| Agent code copied between languages | Doesn't work | Port by hand; `tracked.agentSurface` names what |
133+
| Signal | What it means | Do instead |
134+
| ----------------------------------------------- | --------------------- | ----------------------------------------------- |
135+
| "Just copy the file manually" | Bypasses the manifest | Add to `tracked.verbatimFiles` then sync |
136+
| "Add a try/catch so verify doesn't fail" | Silencing drift | Resolve the drift or declare divergence |
137+
| "Move this into `allowedDivergence` to unblock" | Scope creep | Only add to divergence with explicit reason |
138+
| `pnpm parity:sync` on north-star directly | Overwrites canonical | Sync is instance-only; script refuses |
139+
| Agent code copied between languages | Doesn't work | Port by hand; `tracked.agentSurface` names what |
139140

140141
## Related skills
141142

142143
- `copilotkit-integrations` — framework-specific wiring (LangGraph, CrewAI,
143144
Mastra, etc.) when bootstrapping a new instance.
144145
- `copilotkit-dev-workflow` — monorepo conventions, Nx, commit format.
145146
- `docker-ci-safety` — Dockerfile safety when editing per-instance
146-
container builds.
147+
container builds.

examples/integrations/langgraph-fastapi/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@
1313
"postinstall": "npm run install:agent"
1414
},
1515
"dependencies": {
16+
"@copilotkit/a2ui-renderer": "1.56.2",
1617
"@copilotkit/react-core": "1.56.2",
1718
"@copilotkit/react-ui": "1.56.2",
1819
"@copilotkit/runtime": "1.56.2",
19-
"next": "16.1.6",
20-
"react": "^19.2.4",
21-
"react-dom": "^19.2.4",
22-
"shiki": "^3.13.0",
23-
"zod": "^3.23.8",
2420
"@copilotkit/shared": "1.56.2",
25-
"@copilotkit/a2ui-renderer": "1.56.2",
2621
"@radix-ui/react-checkbox": "^1.3.3",
2722
"@radix-ui/react-label": "^2.1.8",
2823
"@radix-ui/react-separator": "^1.1.8",
2924
"class-variance-authority": "^0.7.1",
3025
"clsx": "^2.1.1",
3126
"hono": "^4.12.10",
3227
"lucide-react": "^0.577.0",
28+
"next": "16.1.6",
29+
"react": "^19.2.4",
30+
"react-dom": "^19.2.4",
3331
"react-rnd": "^10.5.2",
3432
"react18-json-view": "^0.2.9",
3533
"recharts": "^3.7.0",
36-
"tailwind-merge": "^3.5.0"
34+
"shiki": "^3.13.0",
35+
"tailwind-merge": "^3.5.0",
36+
"zod": "^3.23.8"
3737
},
3838
"devDependencies": {
3939
"@tailwindcss/postcss": "^4",

examples/integrations/langgraph-js/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,4 @@ If you encounter agent import errors:
204204

205205
```bash
206206
npm run install:agent
207-
```
207+
```

examples/integrations/langgraph-js/agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"keywords": [],
66
"license": "ISC",
77
"author": "",
8-
"main": "index.js",
98
"type": "module",
9+
"main": "index.js",
1010
"scripts": {
1111
"dev": "npx @langchain/langgraph-cli dev --port 8123 --no-browser"
1212
},

examples/integrations/langgraph-js/agent/src/a2ui_dynamic_schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const generate_a2ui = tool(
4545
const messages = (runtime.state.messages ?? []).slice(0, -1);
4646
const contextEntries = runtime.state.copilotkit?.context ?? [];
4747
const contextText = contextEntries
48-
.map((e) => (e && typeof e === "object" ? e.value ?? "" : ""))
48+
.map((e) => (e && typeof e === "object" ? (e.value ?? "") : ""))
4949
.filter(Boolean)
5050
.join("\n\n");
5151

examples/integrations/langgraph-js/agent/src/agent.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ export const graph = createAgent({
3434
middleware: [
3535
copilotkitMiddleware,
3636
stateStreamingMiddleware(
37-
stateItem({ stateKey: "todos", tool: "manage_todos", toolArgument: "todos" }),
37+
stateItem({
38+
stateKey: "todos",
39+
tool: "manage_todos",
40+
toolArgument: "todos",
41+
}),
3842
),
3943
],
4044
stateSchema: AgentStateSchema,
@@ -50,4 +54,4 @@ export const graph = createAgent({
5054
- A2UI actions: when you see a log_a2ui_event result (e.g. "view_details"),
5155
respond with a brief confirmation. The UI already updated on the frontend.
5256
`,
53-
});
57+
});

examples/integrations/langgraph-js/agent/src/todos.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export const manage_todos = tool(
4444
);
4545

4646
export const get_todos = tool(
47-
(_input: Record<string, never>, runtime: ToolRuntime<typeof TodosStateSchema>) => {
47+
(
48+
_input: Record<string, never>,
49+
runtime: ToolRuntime<typeof TodosStateSchema>,
50+
) => {
4851
return JSON.stringify(runtime.state.todos ?? []);
4952
},
5053
{

examples/integrations/langgraph-js/docker-compose.test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ services:
6868
]
6969

7070
volumes:
71-
test-results:
71+
test-results:

examples/integrations/langgraph-js/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@
1414
"postinstall": "npm run install:agent"
1515
},
1616
"dependencies": {
17+
"@copilotkit/a2ui-renderer": "1.56.2",
1718
"@copilotkit/react-core": "1.56.2",
1819
"@copilotkit/react-ui": "1.56.2",
1920
"@copilotkit/runtime": "1.56.2",
20-
"next": "16.1.6",
21-
"react": "^19.2.4",
22-
"react-dom": "^19.2.4",
23-
"shiki": "^3.22.0",
24-
"zod": "^3.23.8",
2521
"@copilotkit/shared": "1.56.2",
26-
"@copilotkit/a2ui-renderer": "1.56.2",
2722
"@radix-ui/react-checkbox": "^1.3.3",
2823
"@radix-ui/react-label": "^2.1.8",
2924
"@radix-ui/react-separator": "^1.1.8",
3025
"class-variance-authority": "^0.7.1",
3126
"clsx": "^2.1.1",
3227
"hono": "^4.12.10",
3328
"lucide-react": "^0.577.0",
29+
"next": "16.1.6",
30+
"react": "^19.2.4",
31+
"react-dom": "^19.2.4",
3432
"react-rnd": "^10.5.2",
3533
"react18-json-view": "^0.2.9",
3634
"recharts": "^3.7.0",
37-
"tailwind-merge": "^3.5.0"
35+
"shiki": "^3.22.0",
36+
"tailwind-merge": "^3.5.0",
37+
"zod": "^3.23.8"
3838
},
3939
"devDependencies": {
4040
"@tailwindcss/postcss": "^4",

0 commit comments

Comments
 (0)