Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

598 B
Raw Blame
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';

import { describe, expect, it } from 'vitest';

const agentsRoot = resolve(__dirname, '..');
const readAgent = (name: string): string =>
  readFileSync(resolve(agentsRoot, name, 'index.ts'), 'utf8').replace(/\r\n?/g, '\n');

describe('remote shell realpath evidence wiring', () => {
  it.each(['pi', 'claude-code', 'codex'])('%s marks remote exec path resolution unavailable', (agent) => {
    const source = readAgent(agent);
    expect(source).toMatch(/destructivePathResolution\s*(?::|=)\s*'unavailable'/);
  });
});