mirror of
https://github.com/harivansh-afk/clanker-agent.git
synced 2026-04-16 19:04:37 +00:00
chore: rebrand companion-os to clanker-agent
- Rename all package names from companion-* to clanker-* - Update npm scopes from @mariozechner to @harivansh-afk - Rename config directories .companion -> .clanker - Rename environment variables COMPANION_* -> CLANKER_* - Update all documentation, README files, and install scripts - Rename package directories (companion-channels, companion-grind, companion-teams) - Update GitHub URLs to harivansh-afk/clanker-agent - Preserve full git history from companion-cloud monorepo
This commit is contained in:
parent
f93fe7d1a0
commit
67168d8289
356 changed files with 2249 additions and 10223 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
import { getModel } from "@mariozechner/companion-ai";
|
||||
import { getModel } from "@mariozechner/clanker-ai";
|
||||
import { Type } from "@sinclair/typebox";
|
||||
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||
import { DefaultResourceLoader } from "../src/core/resource-loader.js";
|
||||
|
|
@ -16,7 +16,7 @@ describe("AgentSession dynamic tool registration", () => {
|
|||
beforeEach(() => {
|
||||
tempDir = join(
|
||||
tmpdir(),
|
||||
`companion-dynamic-tool-test-${Date.now()}-${Math.random().toString(36).slice(2)}`,
|
||||
`clanker-dynamic-tool-test-${Date.now()}-${Math.random().toString(36).slice(2)}`,
|
||||
);
|
||||
agentDir = join(tempDir, "agent");
|
||||
mkdirSync(agentDir, { recursive: true });
|
||||
|
|
@ -37,9 +37,9 @@ describe("AgentSession dynamic tool registration", () => {
|
|||
agentDir,
|
||||
settingsManager,
|
||||
extensionFactories: [
|
||||
(companion) => {
|
||||
companion.on("session_start", () => {
|
||||
companion.registerTool({
|
||||
(clanker) => {
|
||||
clanker.on("session_start", () => {
|
||||
clanker.registerTool({
|
||||
name: "dynamic_tool",
|
||||
label: "Dynamic Tool",
|
||||
description: "Tool registered from session_start",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue