From 4354458cadc74fe85f885374506dbde0f1924bc9 Mon Sep 17 00:00:00 2001 From: Tyler Date: Fri, 18 Apr 2025 17:44:24 -0700 Subject: Add apache2 SPDX headers to all source files (#48) --- packages/cli/src/utils/BackgroundTerminalAnalyzer.ts | 6 ++++++ packages/cli/src/utils/errors.ts | 6 ++++++ packages/cli/src/utils/getFolderStructure.ts | 6 ++++++ packages/cli/src/utils/paths.ts | 6 ++++++ packages/cli/src/utils/schemaValidator.ts | 6 ++++++ 5 files changed, 30 insertions(+) (limited to 'packages/cli/src/utils') 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,3 +1,9 @@ +/** + * @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 -- cgit v1.2.3