Skip to content

Commit 6cfc23d

Browse files
committed
chore!: rename @flyto/* → @flyto2/* (npm scope)
The npmjs.com org we use is @flyto2 (matches flyto2.com); @flyto was not available. Bulk-rename all package names, internal imports, workflow scope, and docs. BREAKING CHANGE: package names changed. Anyone consuming @flyto/plugin-* must update imports to @flyto2/plugin-*.
1 parent 1b56634 commit 6cfc23d

25 files changed

Lines changed: 71 additions & 71 deletions

.github/workflows/publish-npmjs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
with:
2626
node-version: '20'
2727
registry-url: 'https://registry.npmjs.org'
28-
scope: '@flyto'
28+
scope: '@flyto2'
2929

3030
- run: npm ci
3131
- run: npm run build --workspaces --if-present
3232

3333
- name: Publish all non-private workspaces (public)
3434
# `--access public` is required for first-time publish of a
35-
# scoped @flyto/* package on npmjs.com (free plan).
35+
# scoped @flyto2/* package on npmjs.com (free plan).
3636
run: npm publish --workspaces --access public --provenance
3737
env:
3838
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
node-version: '20'
2121
registry-url: 'https://npm.pkg.github.com'
22-
scope: '@flyto'
22+
scope: '@flyto2'
2323

2424
- run: npm ci
2525
- run: npm run build --workspaces --if-present

PLUGIN_SPEC.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ A plugin has two identifiers:
88

99
| Identifier | Where | Example | Purpose |
1010
|---|---|---|---|
11-
| **npm package name** | `package.json` `"name"` | `@flyto/plugin-slack` | npm install/publish |
11+
| **npm package name** | `package.json` `"name"` | `@flyto2/plugin-slack` | npm install/publish |
1212
| **plugin runtime ID** | `plugin.yaml` `id` | `flyto-community/slack` | Runtime dispatch, module registry |
1313

14-
- npm name uses `@flyto/plugin-*` scope for official plugins
14+
- npm name uses `@flyto2/plugin-*` scope for official plugins
1515
- Runtime ID uses `vendor/name` format (e.g., `flyto-community/slack`, `acme-corp/custom-tool`)
1616
- The module registry key becomes `plugin.{runtime_id}/{step_id}`
1717

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# flyto-plugins-js
22

3-
[![npm: plugin-sdk](https://img.shields.io/npm/v/@flyto/plugin-sdk?label=%40flyto%2Fplugin-sdk)](https://www.npmjs.com/package/@flyto/plugin-sdk)
3+
[![npm: plugin-sdk](https://img.shields.io/npm/v/@flyto2/plugin-sdk?label=%40flyto%2Fplugin-sdk)](https://www.npmjs.com/package/@flyto2/plugin-sdk)
44
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
55
[![Website](https://img.shields.io/badge/website-flyto2.com-8B5CF6)](https://flyto2.com)
66
[![Docs](https://img.shields.io/badge/docs-docs.flyto2.com-06B6D4)](https://docs.flyto2.com)
@@ -22,17 +22,17 @@ flyto-core (Python) ←── JSON-RPC stdin/stdout ──→ Plugin (Node.js)
2222

2323
| Package | Description |
2424
|---------|-------------|
25-
| [`@flyto/plugin-sdk`](packages/sdk/) | Core SDK — JSON-RPC runtime, UI server, step registration |
26-
| [`@flyto/plugin-ui-tokens`](packages/ui-tokens/) | CSS design tokens matching flyto-cloud's look & feel |
27-
| [`@flyto/plugin-ui-bridge`](packages/ui-bridge/) | Communication bridge for plugin UI iframes |
25+
| [`@flyto2/plugin-sdk`](packages/sdk/) | Core SDK — JSON-RPC runtime, UI server, step registration |
26+
| [`@flyto2/plugin-ui-tokens`](packages/ui-tokens/) | CSS design tokens matching flyto-cloud's look & feel |
27+
| [`@flyto2/plugin-ui-bridge`](packages/ui-bridge/) | Communication bridge for plugin UI iframes |
2828

2929
## Plugins
3030

3131
| Plugin | Type | Description |
3232
|--------|------|-------------|
33-
| [`@flyto/plugin-slack`](plugins/slack/) | Headless | Send messages, list channels |
34-
| [`@flyto/plugin-form-builder`](plugins/form-builder/) | Interactive | Dynamic forms, wizard, approval |
35-
| [`@flyto/plugin-image-crop`](plugins/image-crop/) | Interactive | Image cropping tool |
33+
| [`@flyto2/plugin-slack`](plugins/slack/) | Headless | Send messages, list channels |
34+
| [`@flyto2/plugin-form-builder`](plugins/form-builder/) | Interactive | Dynamic forms, wizard, approval |
35+
| [`@flyto2/plugin-image-crop`](plugins/image-crop/) | Interactive | Image cropping tool |
3636

3737
## Quick Start
3838

@@ -50,7 +50,7 @@ npm test
5050
### Create a Plugin
5151

5252
```typescript
53-
import { createPlugin } from '@flyto/plugin-sdk';
53+
import { createPlugin } from '@flyto2/plugin-sdk';
5454

5555
const plugin = createPlugin({ id: 'my-org/my-plugin', version: '1.0.0' });
5656

@@ -77,13 +77,13 @@ See [PLUGIN_SPEC.md](PLUGIN_SPEC.md) for the full `plugin.yaml` specification.
7777
```
7878
flyto-plugins-js/
7979
├── packages/
80-
│ ├── sdk/ @flyto/plugin-sdk
81-
│ ├── ui-tokens/ @flyto/plugin-ui-tokens
82-
│ └── ui-bridge/ @flyto/plugin-ui-bridge
80+
│ ├── sdk/ @flyto2/plugin-sdk
81+
│ ├── ui-tokens/ @flyto2/plugin-ui-tokens
82+
│ └── ui-bridge/ @flyto2/plugin-ui-bridge
8383
├── plugins/
84-
│ ├── slack/ @flyto/plugin-slack
85-
│ ├── form-builder/ @flyto/plugin-form-builder
86-
│ └── image-crop/ @flyto/plugin-image-crop
84+
│ ├── slack/ @flyto2/plugin-slack
85+
│ ├── form-builder/ @flyto2/plugin-form-builder
86+
│ └── image-crop/ @flyto2/plugin-image-crop
8787
├── tests/ E2E integration tests
8888
└── PLUGIN_SPEC.md plugin.yaml specification
8989
```

package-lock.json

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

packages/sdk/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# @flyto/plugin-sdk
1+
# @flyto2/plugin-sdk
22

33
SDK for building Flyto2 plugins in TypeScript/JavaScript.
44

55
## Usage
66

77
```typescript
8-
import { createPlugin } from '@flyto/plugin-sdk';
8+
import { createPlugin } from '@flyto2/plugin-sdk';
99

1010
const plugin = createPlugin({ id: 'my-org/my-plugin', version: '1.0.0' });
1111

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@flyto/plugin-sdk",
2+
"name": "@flyto2/plugin-sdk",
33
"version": "0.1.0",
44
"description": "SDK for building Flyto2 plugins in TypeScript/JavaScript",
55
"main": "dist/index.js",

packages/sdk/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright 2026 Flyto2. Licensed under Apache-2.0. See LICENSE.
22

33
/**
4-
* @flyto/plugin-sdk
4+
* @flyto2/plugin-sdk
55
*
66
* SDK for building Flyto2 plugins in TypeScript/JavaScript.
77
*
88
* Usage:
9-
* import { createPlugin } from '@flyto/plugin-sdk';
9+
* import { createPlugin } from '@flyto2/plugin-sdk';
1010
*
1111
* const plugin = createPlugin({ id: 'my-plugin', version: '1.0.0' });
1212
*

packages/sdk/src/ui-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function findBridgeFile(filename: string): string | null {
4545

4646
// Try node_modules
4747
try {
48-
const resolved = require.resolve(`@flyto/plugin-ui-bridge/${filename}`);
48+
const resolved = require.resolve(`@flyto2/plugin-ui-bridge/${filename}`);
4949
return resolved;
5050
} catch {
5151
return null;
@@ -58,7 +58,7 @@ function findTokensFile(filename: string): string | null {
5858
if (fs.existsSync(monorepo)) return monorepo;
5959

6060
try {
61-
const resolved = require.resolve(`@flyto/plugin-ui-tokens/${filename}`);
61+
const resolved = require.resolve(`@flyto2/plugin-ui-tokens/${filename}`);
6262
return resolved;
6363
} catch {
6464
return null;

packages/ui-bridge/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# @flyto/plugin-ui-bridge
1+
# @flyto2/plugin-ui-bridge
22

33
Communication bridge between Flyto2 plugin UIs and the host app. Handles bidirectional messaging, theme sync, and result submission.
44

55
## Usage
66

77
### Auto-injected (recommended)
88

9-
When using `@flyto/plugin-sdk` with a UI step, the bridge is automatically injected as `window.flyto`:
9+
When using `@flyto2/plugin-sdk` with a UI step, the bridge is automatically injected as `window.flyto`:
1010

1111
```html
1212
<button onclick="flyto.submit({ result: 'done' })">Submit</button>
@@ -16,7 +16,7 @@ When using `@flyto/plugin-sdk` with a UI step, the bridge is automatically injec
1616
### Manual Import
1717

1818
```javascript
19-
import { createBridge } from '@flyto/plugin-ui-bridge';
19+
import { createBridge } from '@flyto2/plugin-ui-bridge';
2020

2121
const bridge = createBridge();
2222

0 commit comments

Comments
 (0)