Skip to content

Commit 9dc94a2

Browse files
committed
chore(workspace)!: rename packages to remove platform prefix
BREAKING CHANGE: Package names have been simplified and renamed: - @aignostics/platform-typescript-sdk is now @aignostics/sdk - @aignostics/platform-cli is now @aignostics/cli Users must update their installations: - npm install @aignostics/sdk (instead of @aignostics/platform-typescript-sdk) - npm install -g @aignostics/cli (instead of @aignostics/platform-cli) - Update import statements: import { PlatformSDK } from "@aignostics/sdk" All package references, imports, documentation, CI/CD workflows, and build configurations have been updated accordingly.
1 parent 92798b9 commit 9dc94a2

20 files changed

Lines changed: 48 additions & 46 deletions

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
if: github.ref == 'refs/heads/main'
9595
environment:
9696
name: production
97-
url: https://github.com/aignostics/platform-typescript-sdk/releases
97+
url: https://github.com/aignostics/typescript-sdk/releases
9898

9999
steps:
100100
- name: Checkout code

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project are documented in GitHub Releases.
44

5-
Please visit the [GitHub Releases page](https://github.com/aignostics/platform-typescript-sdk/releases) to see the full changelog with detailed release notes.
5+
Please visit the [GitHub Releases page](https://github.com/aignostics/typescript-sdk/releases) to see the full changelog with detailed release notes.
66

77
## Why GitHub Releases?
88

@@ -15,9 +15,9 @@ We use GitHub Releases to automatically generate changelogs from commit messages
1515

1616
## Quick Links
1717

18-
- 📦 [All Releases](https://github.com/aignostics/platform-typescript-sdk/releases)
19-
- 🏷️ [Latest Release](https://github.com/aignostics/platform-typescript-sdk/releases/latest)
20-
- 📋 [Compare Versions](https://github.com/aignostics/platform-typescript-sdk/compare)
18+
- 📦 [All Releases](https://github.com/aignostics/typescript-sdk/releases)
19+
- 🏷️ [Latest Release](https://github.com/aignostics/typescript-sdk/releases/latest)
20+
- 📋 [Compare Versions](https://github.com/aignostics/typescript-sdk/compare)
2121

2222
## Release Types
2323

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ The official TypeScript SDK for the Aignostics Platform, providing type-safe acc
44

55
## Packages
66

7-
- **[@aignostics/platform-typescript-sdk](packages/sdk/)** - Core TypeScript SDK with auto-generated API clients
8-
- **[@aignostics/platform-cli](packages/cli/)** - Command-line interface for platform operations
7+
- **[@aignostics/sdk](packages/sdk/)** - Core TypeScript SDK with auto-generated API clients
8+
- **[@aignostics/cli](packages/cli/)** - Command-line interface for platform operations
99

1010
## Features
1111

@@ -21,13 +21,13 @@ The official TypeScript SDK for the Aignostics Platform, providing type-safe acc
2121
### SDK Package
2222

2323
```bash
24-
npm install @aignostics/platform-typescript-sdk
24+
npm install @aignostics/sdk
2525
```
2626

2727
### CLI Package
2828

2929
```bash
30-
npm install -g @aignostics/platform-cli
30+
npm install -g @aignostics/cli
3131
```
3232

3333
## Usage
@@ -40,7 +40,7 @@ For detailed usage instructions, see the individual package documentation:
4040
### Quick Start - SDK
4141

4242
```typescript
43-
import { PlatformSDK } from '@aignostics/platform-typescript-sdk';
43+
import { PlatformSDK } from '@aignostics/sdk';
4444

4545
const sdk = new PlatformSDK({
4646
baseURL: 'https://api.aignostics.com',
@@ -52,7 +52,7 @@ const sdk = new PlatformSDK({
5252

5353
```bash
5454
# Install and use the CLI
55-
npm install -g @aignostics/platform-cli
55+
npm install -g @aignostics/cli
5656
aignostics-platform info
5757
```
5858

@@ -76,8 +76,8 @@ aignostics-platform info
7676

7777
```bash
7878
# Clone the repository
79-
git clone https://github.com/aignostics/platform-typescript-sdk.git
80-
cd platform-typescript-sdk
79+
git clone https://github.com/aignostics/typescript-sdk.git
80+
cd typescript-sdk
8181

8282
# Install dependencies
8383
npm install
@@ -135,7 +135,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
135135

136136
## Support
137137

138-
For support, please open an issue on [GitHub](https://github.com/aignostics/platform-typescript-sdk/issues) or contact the development team.
138+
For support, please open an issue on [GitHub](https://github.com/aignostics/typescript-sdk/issues) or contact the development team.
139139

140140
---
141141

docs/TOKEN_STORAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ $ aignostics-platform logout
177177
### Programmatic Usage
178178

179179
```typescript
180-
import { PlatformSDK } from '@aignostics/platform-typescript-sdk';
180+
import { PlatformSDK } from '@aignostics/sdk';
181181
import { hasValidToken, getCurrentToken } from './utils/token-storage';
182182

183183
// Check if user is authenticated

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@aignostics/platform-monorepo",
2+
"name": "@aignostics/monorepo",
33
"version": "0.0.0-development",
44
"description": "Monorepo for Aignostics Platform TypeScript SDK and CLI",
55
"type": "module",
@@ -37,7 +37,7 @@
3737
},
3838
"repository": {
3939
"type": "git",
40-
"url": "git+https://github.com/aignostics/platform-typescript-sdk.git"
40+
"url": "git+https://github.com/aignostics/typescript-sdk.git"
4141
},
4242
"keywords": [
4343
"aignostics",
@@ -49,9 +49,9 @@
4949
"author": "Aignostics",
5050
"license": "MIT",
5151
"bugs": {
52-
"url": "https://github.com/aignostics/platform-typescript-sdk/issues"
52+
"url": "https://github.com/aignostics/typescript-sdk/issues"
5353
},
54-
"homepage": "https://github.com/aignostics/platform-typescript-sdk#readme",
54+
"homepage": "https://github.com/aignostics/typescript-sdk#readme",
5555
"publishConfig": {
5656
"registry": "https://npm.pkg.github.com",
5757
"access": "restricted"

packages/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Command-line interface for the Aignostics Platform.
55
## Installation
66

77
```bash
8-
npm install -g @aignostics/platform-cli
8+
npm install -g @aignostics/cli
99
```
1010

1111
## Usage

packages/cli/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "@aignostics/platform-cli",
2+
"name": "@aignostics/cli",
33
"version": "0.0.0-development",
4-
"description": "CLI for the Aignostics Platform",
4+
"description": "CLI for Aignostics",
55
"type": "module",
66
"main": "./dist/index.cjs",
77
"types": "./dist/index.d.ts",
88
"bin": {
9-
"aignostics-platform": "./dist/index.cjs"
9+
"aignostics": "./dist/index.cjs"
1010
},
1111
"files": [
1212
"dist",
@@ -32,7 +32,7 @@
3232
"author": "Aignostics",
3333
"license": "MIT",
3434
"dependencies": {
35-
"@aignostics/platform-typescript-sdk": "*",
35+
"@aignostics/sdk": "*",
3636
"@napi-rs/keyring": "^1.1.8",
3737
"express": "^5.1.0",
3838
"keytar": "^7.9.0",

packages/cli/src/cli-functions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
listRunResults,
1111
createApplicationRun,
1212
} from './cli-functions.js';
13-
import { PlatformSDK, PlatformSDKHttp } from '@aignostics/platform-typescript-sdk';
13+
import { PlatformSDK, PlatformSDKHttp } from '@aignostics/sdk';
1414
import { AuthService } from './utils/auth.js';
1515

1616
// Mock process.exit to prevent test runner from exiting
@@ -20,7 +20,7 @@ vi.stubGlobal('process', {
2020
exit: mockExit,
2121
});
2222

23-
vi.mock('@aignostics/platform-typescript-sdk', () => ({
23+
vi.mock('@aignostics/sdk', () => ({
2424
PlatformSDKHttp: vi.fn(),
2525
PlatformSDK: vi.fn(),
2626
}));

packages/cli/src/cli-functions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PlatformSDKHttp, type ItemCreationRequest } from '@aignostics/platform-typescript-sdk';
1+
import { PlatformSDKHttp, type ItemCreationRequest } from '@aignostics/sdk';
22
import { AuthService } from './utils/auth.js';
33
import { readFileSync } from 'fs';
44
import { join } from 'path';

0 commit comments

Comments
 (0)