Skip to content

Commit 2db89ef

Browse files
committed
Update .js and .ts file copyrights. Added to copyright fixer.
1 parent 6a4dad5 commit 2db89ef

File tree

7 files changed

+26
-0
lines changed

7 files changed

+26
-0
lines changed

packages/spikes/gulf_genkit_eval/genkit.conf.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
import { googleAI } from '@genkit-ai/google-genai';
26
import { configure } from 'genkit';
37

packages/spikes/gulf_genkit_eval/lib/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
"use strict";
26
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
37
if (k2 === undefined) k2 = k;

packages/spikes/gulf_genkit_eval/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
import { googleAI } from '@genkit-ai/google-genai';
26
import { genkit, z } from 'genkit';
37
import * as fs from 'fs';

packages/spikes/gulf_genkit_eval/src/models.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
import { googleAI } from '@genkit-ai/google-genai';
26
import { openAI } from '@genkit-ai/compat-oai/openai';
37
import { claude35Haiku, claude4Sonnet } from 'genkitx-anthropic';

packages/spikes/gulf_genkit_eval/src/prompts.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
export interface TestPrompt {
26
promptText: string;
37
description: string;

packages/spikes/gulf_genkit_eval/src/validator.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright 2025 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
15
export function validateSchema(data: any, schemaName: string): string[] {
26
const errors: string[] = [];
37

tool/fix_copyright/lib/src/fix_copyright.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ ${isParagraph ? '' : prefix}found in the LICENSE file.$suffix''';
252252
header: '<!DOCTYPE HTML>\n',
253253
headerPattern: r'(?<header><!DOCTYPE\s+HTML[^>]*>\n)?',
254254
),
255+
'js': generateInfo(prefix: '// '),
255256
'java': generateInfo(prefix: '// '),
256257
'kt': generateInfo(prefix: '// '),
257258
'm': generateInfo(prefix: '// '),
@@ -263,6 +264,7 @@ ${isParagraph ? '' : prefix}found in the LICENSE file.$suffix''';
263264
r'(?<header>#!/usr/bin/env bash\n|#!/bin/sh\n|#!/bin/bash\n)',
264265
),
265266
'swift': generateInfo(prefix: '// '),
267+
'ts': generateInfo(prefix: '// '),
266268
'xml': generateInfo(
267269
prefix: '<!-- ',
268270
suffix: ' -->',

0 commit comments

Comments
 (0)