Skip to content

Commit b999955

Browse files
ci: secure workflows, add dependabot auto-update (#87)
* fix(examples): make it its own workspace * skip integration tests for dependabot
1 parent 5b911d9 commit b999955

File tree

15 files changed

+133
-59
lines changed

15 files changed

+133
-59
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ jobs:
9797
- name: Run Unit Tests
9898
run: pnpm test
9999
- name: Run Integration Tests
100+
if: github.actor != 'dependabot[bot]'
100101
run: pnpm test:int
101102
env:
102103
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22.x
1+
v24.x

examples/backends/composite-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
CompositeBackend,
1313
StateBackend,
1414
StoreBackend,
15-
} from "../../src/index.js";
15+
} from "deepagents";
1616

1717
const internetSearch = tool(
1818
async ({ query, maxResults = 5 }: { query: string; maxResults?: number }) => {

examples/backends/filesystem-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ChatAnthropic } from "@langchain/anthropic";
33
import { HumanMessage } from "@langchain/core/messages";
44
import * as path from "path";
55

6-
import { createDeepAgent, FilesystemBackend } from "../../src/index.js";
6+
import { createDeepAgent, FilesystemBackend } from "deepagents";
77

88
const systemPrompt = `You are an expert coding assistant with access to the real filesystem.
99

examples/backends/state-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { TavilySearch } from "@langchain/tavily";
55
import { ChatAnthropic } from "@langchain/anthropic";
66
import { HumanMessage } from "@langchain/core/messages";
77

8-
import { createDeepAgent, StateBackend } from "../../src/index.js";
8+
import { createDeepAgent, StateBackend } from "deepagents";
99

1010
const internetSearch = tool(
1111
async ({ query, maxResults = 5 }: { query: string; maxResults?: number }) => {

examples/backends/store-backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ChatAnthropic } from "@langchain/anthropic";
66
import { HumanMessage } from "@langchain/core/messages";
77
import { MemorySaver, InMemoryStore } from "@langchain/langgraph-checkpoint";
88

9-
import { createDeepAgent, StoreBackend } from "../../src/index.js";
9+
import { createDeepAgent, StoreBackend } from "deepagents";
1010
import { v4 as uuidv4 } from "uuid";
1111

1212
const internetSearch = tool(

examples/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "examples",
3+
"private": true,
4+
"type": "module",
5+
"scripts": {
6+
"typecheck": "tsc -p tsconfig.json --noEmit"
7+
},
8+
"dependencies": {
9+
"deepagents": "workspace:*",
10+
"@langchain/tavily": "^1.2.0",
11+
"@langchain/anthropic": "^1.3.7",
12+
"@langchain/core": "^1.1.12",
13+
"@langchain/langgraph-checkpoint": "^1.0.0"
14+
}
15+
}

examples/research/research-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { tool } from "langchain";
44
import { TavilySearch } from "@langchain/tavily";
55
import { ChatAnthropic } from "@langchain/anthropic";
66

7-
import { createDeepAgent, type SubAgent } from "../../src/index.js";
7+
import { createDeepAgent, type SubAgent } from "deepagents";
88

99
type Topic = "general" | "news" | "finance";
1010

examples/sandbox/local-sandbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
type ExecuteResponse,
2828
type FileUploadResponse,
2929
type FileDownloadResponse,
30-
} from "../../src/index.js";
30+
} from "deepagents";
3131

3232
/**
3333
* LocalShellSandbox - A concrete sandbox implementation for local shell execution.

examples/skills-memory/skills-memory-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {
2727
createSkillsMiddleware,
2828
createAgentMemoryMiddleware,
2929
listSkills,
30-
} from "../../src/index.js";
30+
} from "deepagents";
3131

3232
// Configuration
3333
const AGENT_NAME = "my-agent";

0 commit comments

Comments
 (0)