diff options
Diffstat (limited to 'packages/cli/src/utils')
| -rw-r--r-- | packages/cli/src/utils/BackgroundTerminalAnalyzer.ts | 6 | ||||
| -rw-r--r-- | packages/cli/src/utils/errors.ts | 6 | ||||
| -rw-r--r-- | packages/cli/src/utils/getFolderStructure.ts | 6 | ||||
| -rw-r--r-- | packages/cli/src/utils/paths.ts | 6 | ||||
| -rw-r--r-- | packages/cli/src/utils/schemaValidator.ts | 6 |
5 files changed, 30 insertions, 0 deletions
diff --git a/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts b/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts index ae02e571..c151b670 100644 --- a/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts +++ b/packages/cli/src/utils/BackgroundTerminalAnalyzer.ts @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + import { promises as fs } from 'fs'; import { Content, SchemaUnion, Type } from '@google/genai'; // Assuming these types exist import { GeminiClient } from '../core/gemini-client.js'; // Assuming this path diff --git a/packages/cli/src/utils/errors.ts b/packages/cli/src/utils/errors.ts index a7fcc5a3..15417c83 100644 --- a/packages/cli/src/utils/errors.ts +++ b/packages/cli/src/utils/errors.ts @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + export function isNodeError(error: unknown): error is NodeJS.ErrnoException { return error instanceof Error && 'code' in error; } diff --git a/packages/cli/src/utils/getFolderStructure.ts b/packages/cli/src/utils/getFolderStructure.ts index 42d6bbc3..0caabe0f 100644 --- a/packages/cli/src/utils/getFolderStructure.ts +++ b/packages/cli/src/utils/getFolderStructure.ts @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + import * as fs from 'fs/promises'; import * as path from 'path'; import { getErrorMessage, isNodeError } from './errors.js'; diff --git a/packages/cli/src/utils/paths.ts b/packages/cli/src/utils/paths.ts index 4dc6e5cb..f1a42131 100644 --- a/packages/cli/src/utils/paths.ts +++ b/packages/cli/src/utils/paths.ts @@ -1,3 +1,9 @@ +/** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + import path from 'node:path'; // Import the 'path' module /** diff --git a/packages/cli/src/utils/schemaValidator.ts b/packages/cli/src/utils/schemaValidator.ts index d2dfdf1b..107ccc85 100644 --- a/packages/cli/src/utils/schemaValidator.ts +++ b/packages/cli/src/utils/schemaValidator.ts @@ -1,4 +1,10 @@ /** + * @license + * Copyright 2025 Google LLC + * SPDX-License-Identifier: Apache-2.0 + */ + +/** * Simple utility to validate objects against JSON Schemas * In a real implementation, you would use a library like Ajv */ |
