Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions copyFiles.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import fs from 'fs';
import path from 'path';
import { fileURLToPath } from 'url';
import { dirname } from 'path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

/**
* Copies LICENSE.md and CHANGELOG.md to the specified target directory
* @param {string} targetDir - The directory to copy files to
*/
function copyFiles(targetDir) {
if (!targetDir) {
console.error('Error: Target directory not provided');
console.log('Usage: node copyFiles.js <target-directory>');
process.exit(1);
}

const rootDir = __dirname;
const filesToCopy = ['LICENSE.md', 'CHANGELOG.md'];

// Ensure target directory exists
if (!fs.existsSync(targetDir)) {
fs.mkdirSync(targetDir, { recursive: true });
console.log(`Created directory: ${targetDir}`);
}

// Copy each file
filesToCopy.forEach(file => {
const sourcePath = path.join(rootDir, file);
const destPath = path.resolve(targetDir, file);

if (!fs.existsSync(sourcePath)) {
console.error(`Error: Source file not found: ${sourcePath}`);
process.exit(1);
}

try {
fs.copyFileSync(sourcePath, destPath);
console.log(`Copied ${file}`);
console.log(` From: ${sourcePath}`);
console.log(` To: ${destPath}`);
} catch (error) {
console.error(`Error copying ${file}:`, error.message);
process.exit(1);
}
});

console.log('All files copied successfully!');
}

// Get target directory from command line arguments
const targetDir = process.argv[2];
copyFiles(targetDir);
28 changes: 14 additions & 14 deletions packages/agents-a365-notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint:fix": "eslint src/**/*.ts --fix",
"prepublishOnly": "npm run clean && npm run build",
"ci": "npm ci",
"pack": "cp ../../CHANGELOG.md . && cp ../../LICENSE.md . && npm pack --pack-destination=../"
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
},
"keywords": [
"ai",
Expand All @@ -34,21 +34,21 @@
},
"dependencies": {
"@microsoft/agents-a365-runtime": "workspace:*",
"@microsoft/agents-activity": "*",
"@microsoft/agents-hosting": "*"
"@microsoft/agents-activity": "catalog:",
"@microsoft/agents-hosting": "catalog:"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "workspace:*",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint": "^9.39.1",
"jest": "workspace:*",
"rimraf": "^5.0.0",
"ts-jest": "workspace:*",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
"@eslint/js": "catalog:",
"@types/jest": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"jest": "catalog:",
"rimraf": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
},
"engines": {
"node": ">=18.0.0"
Expand Down
32 changes: 16 additions & 16 deletions packages/agents-a365-observability-extensions-openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"pack": "cp ../../CHANGELOG.md . && cp ../../LICENSE.md . && npm pack --pack-destination=../"
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
},
"dependencies": {
"@microsoft/agents-a365-observability": "workspace:*",
"@openai/agents": "*",
"@opentelemetry/api": "*",
"@opentelemetry/instrumentation": "*"
"@openai/agents": "catalog:",
"@opentelemetry/api": "catalog:",
"@opentelemetry/instrumentation": "catalog:"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "^29.5.12",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint": "^9.39.1",
"jest": "^29.7.0",
"rimraf": "^6.0.0",
"ts-jest": "^29.2.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
"@eslint/js": "catalog:",
"@types/jest": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"jest": "catalog:",
"rimraf": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
},
"peerDependencies": {
"@openai/agents": "^0.1.5"
"@openai/agents": "catalog:"
},
"engines": {
"node": ">=18.0.0"
Expand Down
26 changes: 13 additions & 13 deletions packages/agents-a365-observability-hosting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,25 @@
"test": "jest --passWithNoTests",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"pack": "npm pack --pack-destination=../"
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
},
"dependencies": {
"@microsoft/agents-a365-observability": "workspace:*",
"@microsoft/agents-a365-runtime": "workspace:*",
"@microsoft/agents-hosting": "^1.1.0-alpha.85"
"@microsoft/agents-hosting": "catalog:"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "workspace:*",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint": "^9.39.1",
"jest": "workspace:*",
"rimraf": "^6.0.0",
"ts-jest": "workspace:*",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
"@eslint/js": "catalog:",
"@types/jest": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"jest": "catalog:",
"rimraf": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
},
"engines": {
"node": ">=18.0.0"
Expand Down
40 changes: 20 additions & 20 deletions packages/agents-a365-observability/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint:fix": "eslint src/**/*.ts --fix",
"prepublishOnly": "npm run clean && npm run build",
"ci": "npm ci",
"pack": "cp ../../CHANGELOG.md . && cp ../../LICENSE.md . && npm pack --pack-destination=../"
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
},
"keywords": [
"Agent365",
Expand All @@ -37,28 +37,28 @@
"directory": "packages/agents-a365-observability"
},
"dependencies": {
"@azure/monitor-opentelemetry-exporter": "*",
"@azure/monitor-opentelemetry-exporter": "catalog:",
"@microsoft/agents-a365-runtime": "workspace:*",
"@opentelemetry/api": "*",
"@opentelemetry/exporter-trace-otlp-http": "*",
"@opentelemetry/instrumentation": "*",
"@opentelemetry/resources": "*",
"@opentelemetry/sdk-node": "*",
"@opentelemetry/sdk-trace-base": "*",
"@opentelemetry/semantic-conventions": "*"
"@opentelemetry/api": "catalog:",
"@opentelemetry/exporter-trace-otlp-http": "catalog:",
"@opentelemetry/instrumentation": "catalog:",
"@opentelemetry/resources": "catalog:",
"@opentelemetry/sdk-node": "catalog:",
"@opentelemetry/sdk-trace-base": "catalog:",
"@opentelemetry/semantic-conventions": "catalog:"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "workspace:*",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint": "^9.39.1",
"jest": "workspace:*",
"rimraf": "^5.0.0",
"ts-jest": "workspace:*",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
"@eslint/js": "catalog:",
"@types/jest": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"jest": "catalog:",
"rimraf": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
},
"engines": {
"node": ">=18.0.0"
Expand Down
32 changes: 16 additions & 16 deletions packages/agents-a365-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint:fix": "eslint src/**/*.ts --fix",
"prepublishOnly": "npm run clean && npm run build",
"ci": "npm ci",
"pack": "cp ../../CHANGELOG.md . && cp ../../LICENSE.md . && npm pack --pack-destination=../"
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
},
"keywords": [
"ai",
Expand All @@ -34,23 +34,23 @@
"directory": "packages/agents-a365-runtime"
},
"dependencies": {
"@azure/identity": "^4.12.1",
"@microsoft/agents-hosting": "*",
"jsonwebtoken": "^9.0.2"
"@azure/identity": "catalog:",
"@microsoft/agents-hosting": "catalog:",
"jsonwebtoken": "catalog:"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "workspace:*",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint": "^9.39.1",
"jest": "workspace:*",
"rimraf": "^5.0.0",
"ts-jest": "workspace:*",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
"@eslint/js": "catalog:",
"@types/jest": "catalog:",
"@types/jsonwebtoken": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"jest": "catalog:",
"rimraf": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
},
"engines": {
"node": ">=18.0.0"
Expand Down
30 changes: 15 additions & 15 deletions packages/agents-a365-tooling-extensions-claude/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint:fix": "eslint src/**/*.ts --fix",
"prepublishOnly": "npm run clean && npm run build",
"ci": "npm ci",
"pack": "cp ../../CHANGELOG.md . && cp ../../LICENSE.md . && npm pack --pack-destination=../"
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
},
"keywords": [
"ai",
Expand All @@ -34,24 +34,24 @@
"directory": "packages/agents-a365-tooling-extensions-claude"
},
"dependencies": {
"@anthropic-ai/claude-agent-sdk": "*",
"@anthropic-ai/claude-agent-sdk": "catalog:",
"@microsoft/agents-a365-runtime": "workspace:*",
"@microsoft/agents-a365-tooling": "workspace:*",
"@microsoft/agents-hosting": "*",
"@modelcontextprotocol/sdk": "workspace:*"
"@microsoft/agents-hosting": "catalog:",
"@modelcontextprotocol/sdk": "catalog:"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "workspace:*",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint": "^9.39.1",
"jest": "workspace:*",
"rimraf": "^5.0.0",
"ts-jest": "workspace:*",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
"@eslint/js": "catalog:",
"@types/jest": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"jest": "catalog:",
"rimraf": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
},
"engines": {
"node": ">=18.0.0"
Expand Down
30 changes: 15 additions & 15 deletions packages/agents-a365-tooling-extensions-langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint:fix": "eslint src/**/*.ts --fix",
"prepublishOnly": "npm run clean && npm run build",
"ci": "npm ci",
"pack": "cp ../../CHANGELOG.md . && cp ../../LICENSE.md . && npm pack --pack-destination=../"
"pack": "node ../../copyFiles.js . && pnpm pack --pack-destination=../"
},
"keywords": [
"ai",
Expand All @@ -34,24 +34,24 @@
"directory": "packages/agents-a365-tooling-extensions-langchain"
},
"dependencies": {
"@langchain/mcp-adapters": "*",
"@langchain/mcp-adapters": "catalog:",
"@microsoft/agents-a365-runtime": "workspace:*",
"@microsoft/agents-a365-tooling": "workspace:*",
"@microsoft/agents-hosting": "*",
"langchain": "^1.0.1"
"@microsoft/agents-hosting": "catalog:",
"langchain": "catalog:"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "workspace:*",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.47.0",
"@typescript-eslint/parser": "^8.47.0",
"eslint": "^9.39.1",
"jest": "workspace:*",
"rimraf": "^5.0.0",
"ts-jest": "workspace:*",
"typescript": "^5.9.3",
"typescript-eslint": "^8.47.0"
"@eslint/js": "catalog:",
"@types/jest": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"eslint": "catalog:",
"jest": "catalog:",
"rimraf": "catalog:",
"ts-jest": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:"
},
"engines": {
"node": ">=18.0.0"
Expand Down
Loading