Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ade",
"name": "@codemcp/ade",
"version": "0.0.1",
"private": true,
"description": "ADE CLI — Agentic Development Environment setup and configuration tool",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ade/cli",
"name": "@codemcp/ade-cli",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
Expand All @@ -22,8 +22,8 @@
"typecheck": "tsc"
},
"dependencies": {
"@ade/core": "workspace:*",
"@ade/harnesses": "workspace:*",
"@codemcp/ade-core": "workspace:*",
"@codemcp/ade-harnesses": "workspace:*",
"@clack/prompts": "^1.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/conventions.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ vi.mock("@clack/prompts", () => ({

import * as clack from "@clack/prompts";
import { runSetup } from "./setup.js";
import { readUserConfig, readLockFile } from "@ade/core";
import { readUserConfig, readLockFile } from "@codemcp/ade-core";
import { getDefaultCatalog } from "../../../core/src/catalog/index.js";

describe("architecture and practices facets integration", () => {
Expand Down
12 changes: 6 additions & 6 deletions packages/cli/src/commands/install.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from "vitest";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";

// ── Mocks ────────────────────────────────────────────────────────────────────

Expand All @@ -19,8 +19,8 @@ const mockLogical: LogicalConfig = {
setup_notes: []
};

vi.mock("@ade/core", async (importOriginal) => {
const actual = (await importOriginal()) as typeof import("@ade/core");
vi.mock("@codemcp/ade-core", async (importOriginal) => {
const actual = (await importOriginal()) as typeof import("@codemcp/ade-core");
return {
...actual,
readLockFile: vi.fn()
Expand All @@ -29,7 +29,7 @@ vi.mock("@ade/core", async (importOriginal) => {

const mockInstall = vi.fn().mockResolvedValue(undefined);

vi.mock("@ade/harnesses", () => ({
vi.mock("@codemcp/ade-harnesses", () => ({
getHarnessWriter: vi.fn().mockImplementation((id: string) => {
if (id === "universal" || id === "claude-code" || id === "cursor") {
return { id, install: mockInstall };
Expand All @@ -53,7 +53,7 @@ vi.mock("@ade/harnesses", () => ({
}));

import * as clack from "@clack/prompts";
import { readLockFile } from "@ade/core";
import { readLockFile } from "@codemcp/ade-core";
import { runInstall } from "./install.js";

// ── Tests ────────────────────────────────────────────────────────────────────
Expand All @@ -62,7 +62,7 @@ describe("runInstall", () => {
beforeEach(async () => {
vi.clearAllMocks();
// Re-set the default implementation after clearAllMocks
const { getHarnessWriter } = await import("@ade/harnesses");
const { getHarnessWriter } = await import("@codemcp/ade-harnesses");
vi.mocked(getHarnessWriter).mockImplementation((id: string) => {
if (id === "universal" || id === "claude-code" || id === "cursor") {
return {
Expand Down
8 changes: 6 additions & 2 deletions packages/cli/src/commands/install.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as clack from "@clack/prompts";
import { readLockFile } from "@ade/core";
import { getHarnessWriter, getHarnessIds, installSkills } from "@ade/harnesses";
import { readLockFile } from "@codemcp/ade-core";
import {
getHarnessWriter,
getHarnessIds,
installSkills
} from "@codemcp/ade-harnesses";

export async function runInstall(
projectRoot: string,
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/knowledge.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vi.mock("@clack/prompts", () => ({

import * as clack from "@clack/prompts";
import { runSetup } from "./setup.js";
import { readLockFile } from "@ade/core";
import { readLockFile } from "@codemcp/ade-core";
import { getDefaultCatalog } from "../../../core/src/catalog/index.js";

describe("knowledge integration", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/setup.integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ vi.mock("@clack/prompts", () => ({

import * as clack from "@clack/prompts";
import { runSetup } from "./setup.js";
import { readUserConfig, readLockFile } from "@ade/core";
import { readUserConfig, readLockFile } from "@codemcp/ade-core";
import { getDefaultCatalog } from "../../../core/src/catalog/index.js";

describe("setup integration (real temp dir)", () => {
Expand Down
10 changes: 5 additions & 5 deletions packages/cli/src/commands/setup.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from "vitest";
import type { Catalog, LogicalConfig } from "@ade/core";
import type { Catalog, LogicalConfig } from "@codemcp/ade-core";

// ── Mocks ────────────────────────────────────────────────────────────────────

Expand All @@ -15,8 +15,8 @@ vi.mock("@clack/prompts", () => ({
spinner: vi.fn().mockReturnValue({ start: vi.fn(), stop: vi.fn() })
}));

vi.mock("@ade/core", async (importOriginal) => {
const actual = (await importOriginal()) as typeof import("@ade/core");
vi.mock("@codemcp/ade-core", async (importOriginal) => {
const actual = (await importOriginal()) as typeof import("@codemcp/ade-core");
return {
...actual,
readUserConfig: vi.fn().mockResolvedValue(null),
Expand All @@ -35,7 +35,7 @@ vi.mock("@ade/core", async (importOriginal) => {
};
});

vi.mock("@ade/harnesses", () => ({
vi.mock("@codemcp/ade-harnesses", () => ({
allHarnessWriters: [
{
id: "claude-code",
Expand All @@ -60,7 +60,7 @@ import {
writeUserConfig,
writeLockFile,
resolve
} from "@ade/core";
} from "@codemcp/ade-core";
import { runSetup } from "./setup.js";

// ── Test catalog fixture ─────────────────────────────────────────────────────
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/commands/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import {
getOption,
sortFacets,
getVisibleOptions
} from "@ade/core";
} from "@codemcp/ade-core";
import {
allHarnessWriters,
getHarnessWriter,
installSkills
} from "@ade/harnesses";
} from "@codemcp/ade-harnesses";

export async function runSetup(
projectRoot: string,
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { version } from "./version.js";
import { runSetup } from "./commands/setup.js";
import { runInstall } from "./commands/install.js";
import { getDefaultCatalog } from "@ade/core";
import { getHarnessIds } from "@ade/harnesses";
import { getDefaultCatalog } from "@codemcp/ade-core";
import { getHarnessIds } from "@codemcp/ade-harnesses";

const args = process.argv.slice(2);
const command = args[0];
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/knowledge-installer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from "vitest";
import type { KnowledgeSource } from "@ade/core";
import type { KnowledgeSource } from "@codemcp/ade-core";

vi.mock("@codemcp/knowledge/packages/cli/dist/exports.js", () => ({
createDocset: vi.fn().mockResolvedValue({
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/knowledge-installer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { KnowledgeSource } from "@ade/core";
import type { KnowledgeSource } from "@codemcp/ade-core";
import {
createDocset,
initDocset
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@ade/core": ["../core/src/index.ts"]
"@codemcp/ade-core": ["../core/src/index.ts"]
}
},
"include": ["src/**/*"]
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ade/core",
"name": "@codemcp/ade-core",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions packages/harnesses/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ade/harnesses",
"name": "@codemcp/ade-harnesses",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
Expand All @@ -19,7 +19,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@ade/core": "workspace:*",
"@codemcp/ade-core": "workspace:*",
"@codemcp/skills": "^2.3.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/skills-installer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { SkillDefinition, InlineSkill } from "@ade/core";
import type { SkillDefinition, InlineSkill } from "@codemcp/ade-core";
import { runAdd } from "@codemcp/skills/api";

function isInlineSkill(skill: SkillDefinition): skill is InlineSkill {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AgentWriterDef } from "@ade/core";
import type { AgentWriterDef } from "@codemcp/ade-core";

/**
* A harness writer extends AgentWriterDef with metadata for display in the
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mkdir, readFile, writeFile } from "node:fs/promises";
import { dirname, join } from "node:path";
import type { GitHook, LogicalConfig, McpServerEntry } from "@ade/core";
import type { GitHook, LogicalConfig, McpServerEntry } from "@codemcp/ade-core";

// ---------------------------------------------------------------------------
// JSON helpers
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/claude-code.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { mkdtemp, rm, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import { claudeCodeWriter } from "./claude-code.js";

describe("claudeCodeWriter", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/claude-code.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import {
readJsonOrEmpty,
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/cline.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { mkdtemp, rm, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import { clineWriter } from "./cline.js";

describe("clineWriter", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/cline.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import {
writeMcpServers,
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/copilot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { mkdtemp, rm, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import { copilotWriter } from "./copilot.js";

describe("copilotWriter", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/copilot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import {
writeMcpServers,
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/cursor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { mkdtemp, rm, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import { cursorWriter } from "./cursor.js";

describe("cursorWriter", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/cursor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mkdir, writeFile } from "node:fs/promises";
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import { writeMcpServers, writeGitHooks } from "../util.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/kiro.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import { standardEntry, writeJson, writeGitHooks } from "../util.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/opencode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import { writeMcpServers, writeAgentMd, writeGitHooks } from "../util.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/roo-code.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { mkdtemp, rm, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import { rooCodeWriter } from "./roo-code.js";

describe("rooCodeWriter", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/roo-code.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import {
writeMcpServers,
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/universal.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { join } from "node:path";
import { writeFile } from "node:fs/promises";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import { writeMcpServers, writeGitHooks } from "../util.js";

Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/windsurf.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { mkdtemp, rm, readFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import { windsurfWriter } from "./windsurf.js";

describe("windsurfWriter", () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/harnesses/src/writers/windsurf.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { join } from "node:path";
import type { LogicalConfig } from "@ade/core";
import type { LogicalConfig } from "@codemcp/ade-core";
import type { HarnessWriter } from "../types.js";
import {
writeMcpServers,
Expand Down
12 changes: 6 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading