Remove comment-writer and AI METADATA comments from backend source files

This commit is contained in:
jelveh
2025-12-13 00:16:31 -08:00
parent f838fe4ecc
commit 9c5938e2fd
138 changed files with 2 additions and 1054 deletions

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import { AdvancedBase } from '@heyputer/putility';
import config from '../../config.js';
import { AIInterfaceService } from '../../services/ai/AIInterfaceService.js';

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"def":"core.util.identutil","ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"def":"core.util.logutil","ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const BaseService = require('../../services/BaseService');
/**

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-params":{"service":"claude"},"ai-commented":{"service":"claude"}}
const BaseService = require('../../services/BaseService');
const socketio = require('socket.io');

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-params":{"service":"xai"},"ai-refs":["../../doc/contributors/boot-sequence.md"],"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
const { Context } = require('../util/context');
const BaseService = require('./BaseService');

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const { Endpoint } = require('../util/expressutil');
const BaseService = require('./BaseService');
const APIError = require('../api/APIError');

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const BaseService = require('./BaseService');
/**

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const { Context } = require('../util/context');
const { PermissionUtil } = require('./auth/permissionUtils.mjs');
const BaseService = require('./BaseService');

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
const BaseService = require('./BaseService');
/**

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const configurable_auth = require('../middleware/configurable_auth');
const { Context } = require('../util/context');
const { Endpoint } = require('../util/expressutil');

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
import { TeePromise } from '@heyputer/putility/src/libs/promise.js';
import { Context } from '../util/context.js';
import { Actor, UserActorType } from './auth/Actor.js';

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const BaseService = require('./BaseService');
/**

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"xai"}}
const { LLRead } = require('../filesystem/ll_operations/ll_read');
const { Context } = require('../util/context');
const { stream_to_buffer } = require('../util/streamutil');

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"mistral","model":"mistral-large-latest"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const BaseService = require('../BaseService');
/**

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import { createId as cuid2 } from '@paralleldrive/cuid2';
import { PassThrough } from 'stream';
import { APIError } from '../../../api/APIError.js';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import Anthropic, { toFile } from '@anthropic-ai/sdk';
import { Message } from '@anthropic-ai/sdk/resources';
import { BetaUsage } from '@anthropic-ai/sdk/resources/beta.js';

View File

@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import dedent from 'dedent';
import { LoremIpsum } from 'lorem-ipsum';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import axios from 'axios';
import { default as openai, default as OpenAI } from 'openai';
import { Context } from '../../../../util/context.js';

View File

@@ -31,7 +31,6 @@ import { OPEN_AI_MODELS } from './models.js';
;
// METADATA // {"ai-commented":{"service":"claude"}}
// We're capping at 5MB, which sucks, but Chat Completions doesn't suuport
// file inputs.

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import axios from 'axios';
import { OpenAI } from 'openai';
import { ChatCompletionCreateParams } from 'openai/resources';

View File

@@ -16,7 +16,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import dedent from 'dedent';
import { PassThrough } from 'stream';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import { APIError } from '../../../api/APIError.js';
import { ErrorService } from '../../../modules/core/ErrorService.js';
import { Context } from '../../../util/context.js';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import { GenerateContentResponse, GoogleGenAI } from '@google/genai';
import APIError from '../../../../../api/APIError.js';
import { ErrorService } from '../../../../../modules/core/ErrorService.js';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import openai, { OpenAI } from 'openai';
import { ImageGenerateParamsNonStreaming } from 'openai/resources/images.js';
import APIError from '../../../../../api/APIError.js';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import { Together } from 'together-ai';
import APIError from '../../../../../api/APIError.js';
import { ErrorService } from '../../../../../modules/core/ErrorService.js';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const { TextractClient, AnalyzeDocumentCommand, InvalidS3ObjectException } = require('@aws-sdk/client-textract');
const BaseService = require('../../BaseService');

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
import { Context } from '@heyputer/putility/src/libs/context.js';
import { Mistral } from '@mistralai/mistralai';
import mime from 'mime-types';

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const { PollyClient, SynthesizeSpeechCommand, DescribeVoicesCommand } = require('@aws-sdk/client-polly');
const BaseService = require('../../BaseService');
const { TypedValue } = require('../../drivers/meta/Runtime');

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const APIError = require('../../../api/APIError');
const BaseService = require('../../BaseService');
const { TypedValue } = require('../../drivers/meta/Runtime');

View File

@@ -17,7 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// METADATA // {"ai-commented":{"service":"claude"}}
const APIError = require('../../../api/APIError');
const BaseService = require('../../BaseService');
const { TypedValue } = require('../../drivers/meta/Runtime');

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"claude"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"xai"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

View File

@@ -1,4 +1,3 @@
// METADATA // {"ai-commented":{"service":"openai-completion","model":"gpt-4o-mini"}}
/*
* Copyright (C) 2024-present Puter Technologies Inc.
*

Some files were not shown because too many files have changed in this diff Show More