mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-15 00:21:09 -07:00
address comments by bot and format
This commit is contained in:
@@ -27,7 +27,9 @@ export const planCommand: SlashCommand = {
|
||||
|
||||
const plansDir = config.storage.getProjectTempPlansDir();
|
||||
try {
|
||||
const securityCheck = await isDirectorySecure(plansDir);
|
||||
const securityCheck = await isDirectorySecure(plansDir, {
|
||||
owner: 'user',
|
||||
});
|
||||
if (!securityCheck.secure) {
|
||||
context.ui.addItem(
|
||||
{
|
||||
|
||||
@@ -25,7 +25,8 @@ import type {
|
||||
FallbackIntent,
|
||||
ValidationIntent,
|
||||
AgentDefinition,
|
||||
Todo } from '@google/gemini-cli-core';
|
||||
Todo,
|
||||
} from '@google/gemini-cli-core';
|
||||
import type { DOMElement } from 'ink';
|
||||
import type { SessionStatsState } from '../contexts/SessionContext.js';
|
||||
import type { ExtensionUpdateState } from '../state/extensions.js';
|
||||
|
||||
@@ -26,7 +26,9 @@ export function usePlanMonitoring(config: Config) {
|
||||
|
||||
const updatePlan = async () => {
|
||||
try {
|
||||
const securityCheck = await isDirectorySecure(plansDir);
|
||||
const securityCheck = await isDirectorySecure(plansDir, {
|
||||
owner: 'user',
|
||||
});
|
||||
if (!securityCheck.secure) {
|
||||
debugLogger.warn(
|
||||
'Security check failed for plans directory',
|
||||
|
||||
@@ -44,7 +44,7 @@ export function parseMarkdownTodos(content: string): Todo[] {
|
||||
const description = taskMarkerMatch[2].split('\n')[0].trim(); // Take only the first line as description
|
||||
|
||||
let status: TodoStatus = 'pending';
|
||||
if (marker === 'x') {
|
||||
if (marker?.toLowerCase() === 'x') {
|
||||
status = 'completed';
|
||||
} else if (marker === '/' || marker === '>') {
|
||||
status = 'in_progress';
|
||||
|
||||
Reference in New Issue
Block a user