style: normalize type definitions
This commit is contained in:
@@ -9,8 +9,8 @@ import {
|
|||||||
DEFAULT_SANDBOX_COMMON_IMAGE,
|
DEFAULT_SANDBOX_COMMON_IMAGE,
|
||||||
DEFAULT_SANDBOX_IMAGE,
|
DEFAULT_SANDBOX_IMAGE,
|
||||||
} from "../agents/sandbox.js";
|
} from "../agents/sandbox.js";
|
||||||
import { DEFAULT_AGENTS_FILENAME } from "../agents/workspace.js";
|
|
||||||
import { buildWorkspaceSkillStatus } from "../agents/skills-status.js";
|
import { buildWorkspaceSkillStatus } from "../agents/skills-status.js";
|
||||||
|
import { DEFAULT_AGENTS_FILENAME } from "../agents/workspace.js";
|
||||||
import type { ClawdbotConfig } from "../config/config.js";
|
import type { ClawdbotConfig } from "../config/config.js";
|
||||||
import {
|
import {
|
||||||
CONFIG_PATH_CLAWDBOT,
|
CONFIG_PATH_CLAWDBOT,
|
||||||
@@ -142,7 +142,9 @@ const MEMORY_SYSTEM_PROMPT = [
|
|||||||
"https://github.com/clawdbot/clawdbot/commit/7d1fee70e76f2f634f1b41fca927ee663914183a",
|
"https://github.com/clawdbot/clawdbot/commit/7d1fee70e76f2f634f1b41fca927ee663914183a",
|
||||||
].join("\n");
|
].join("\n");
|
||||||
|
|
||||||
async function shouldSuggestMemorySystem(workspaceDir: string): Promise<boolean> {
|
async function shouldSuggestMemorySystem(
|
||||||
|
workspaceDir: string,
|
||||||
|
): Promise<boolean> {
|
||||||
const memoryPaths = [
|
const memoryPaths = [
|
||||||
path.join(workspaceDir, "MEMORY.md"),
|
path.join(workspaceDir, "MEMORY.md"),
|
||||||
path.join(workspaceDir, "memory.md"),
|
path.join(workspaceDir, "memory.md"),
|
||||||
|
|||||||
5
src/types/proper-lockfile.d.ts
vendored
5
src/types/proper-lockfile.d.ts
vendored
@@ -16,10 +16,7 @@ declare module "proper-lockfile" {
|
|||||||
|
|
||||||
export type ReleaseFn = () => Promise<void>;
|
export type ReleaseFn = () => Promise<void>;
|
||||||
|
|
||||||
export function lock(
|
export function lock(path: string, options?: LockOptions): Promise<ReleaseFn>;
|
||||||
path: string,
|
|
||||||
options?: LockOptions,
|
|
||||||
): Promise<ReleaseFn>;
|
|
||||||
|
|
||||||
const lockfile: {
|
const lockfile: {
|
||||||
lock: typeof lock;
|
lock: typeof lock;
|
||||||
|
|||||||
Reference in New Issue
Block a user