Skip to content

Commit 88415fc

Browse files
authored
Merge branch 'main' into feat/agentflow-logger
2 parents 2f11a13 + 1a6f914 commit 88415fc

41 files changed

Lines changed: 1301 additions & 376 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docker-image-ecr.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
required: true
2525
default: 'latest'
2626

27+
permissions:
28+
contents: read # Required for checkout
29+
id-token: write # Required for AWS OIDC
30+
2731
jobs:
2832
docker:
2933
runs-on: ubuntu-latest
@@ -45,12 +49,22 @@ jobs:
4549
uses: docker/setup-buildx-action@v3.0.0
4650

4751
- name: Configure AWS Credentials
52+
if: ${{ inputs.environment != 'prod' }}
4853
uses: aws-actions/configure-aws-credentials@v3
4954
with:
5055
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
5156
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5257
aws-region: ${{ secrets.AWS_REGION }}
5358

59+
- name: Configure AWS OIDC Credentials
60+
if: ${{ inputs.environment == 'prod' }}
61+
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0
62+
with:
63+
aws-region: ${{ secrets.AWS_REGION }}
64+
role-to-assume: ${{ secrets.AWS_OIDC_IAM_ROLE }}
65+
mask-aws-account-id: true
66+
unset-current-credentials: true
67+
5468
- name: Login to Amazon ECR
5569
uses: aws-actions/amazon-ecr-login@v1
5670

.husky/pre-commit

100644100755
File mode changed.

packages/agentflow/ARCHITECTURE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# @flowise/agentflow - Architecture
1+
# @flowiseai/agentflow - Architecture
22

3-
This document describes the internal architecture of the `@flowise/agentflow` package.
3+
This document describes the internal architecture of the `@flowiseai/agentflow` package.
44

55
## Overview
66

packages/agentflow/README.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# @flowise/agentflow
1+
# @flowiseai/agentflow
22

3-
[![Version](https://img.shields.io/npm/v/@flowise/agentflow)](https://www.npmjs.com/package/@flowise/agentflow)
3+
[![Version](https://img.shields.io/npm/v/@flowiseai/agentflow)](https://www.npmjs.com/package/@flowiseai/agentflow)
44
[![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/FlowiseAI/Flowise/blob/main/LICENSE.md)
55

66
> Embeddable React component for building and visualizing AI agent workflows
@@ -19,12 +19,12 @@
1919

2020
## Overview
2121

22-
`@flowise/agentflow` is a React-based flow editor for creating AI agent workflows. It provides a visual canvas built on ReactFlow for connecting AI agents, LLMs, tools, and logic nodes.
22+
`@flowiseai/agentflow` is a React-based flow editor for creating AI agent workflows. It provides a visual canvas built on ReactFlow for connecting AI agents, LLMs, tools, and logic nodes.
2323

2424
## Installation
2525

2626
```bash
27-
pnpm add @flowise/agentflow
27+
pnpm add @flowiseai/agentflow
2828
```
2929

3030
**Peer Dependencies:**
@@ -36,9 +36,9 @@ pnpm add react react-dom @mui/material @mui/icons-material @emotion/react @emoti
3636
## Basic Usage
3737

3838
```tsx
39-
import { Agentflow } from '@flowise/agentflow'
39+
import { Agentflow } from '@flowiseai/agentflow'
4040

41-
import '@flowise/agentflow/flowise.css'
41+
import '@flowiseai/agentflow/flowise.css'
4242

4343
export default function App() {
4444
return (
@@ -54,9 +54,9 @@ export default function App() {
5454
```tsx
5555
import { useRef } from 'react'
5656

57-
import { Agentflow, type AgentFlowInstance, type FlowData } from '@flowise/agentflow'
57+
import { Agentflow, type AgentFlowInstance, type FlowData } from '@flowiseai/agentflow'
5858

59-
import '@flowise/agentflow/flowise.css'
59+
import '@flowiseai/agentflow/flowise.css'
6060

6161
export default function App() {
6262
const ref = useRef<AgentFlowInstance>(null)
@@ -98,33 +98,33 @@ export default function App() {
9898

9999
## Props
100100

101-
| Prop | Type | Default | Description |
102-
|------|------|---------|-------------|
103-
| `apiBaseUrl` | `string` | **(required)** | Flowise API server endpoint |
104-
| `token` | `string` || Authentication token for API calls |
105-
| `initialFlow` | `FlowData` || Initial flow data to render (uncontrolled — only used on mount) |
106-
| `components` | `string[]` || Restrict which node types appear in the palette |
107-
| `onFlowChange` | `(flow: FlowData) => void` || Called when the flow changes (node/edge add, remove, move) |
108-
| `onSave` | `(flow: FlowData) => void` || Called when the user triggers a save |
109-
| `onFlowGenerated` | `(flow: FlowData) => void` || Called when a flow is generated via AI |
110-
| `isDarkMode` | `boolean` | `false` | Use dark mode theme |
111-
| `readOnly` | `boolean` | `false` | Disable editing (nodes not draggable/connectable) |
112-
| `showDefaultHeader` | `boolean` | `true` | Show built-in header (ignored if `renderHeader` provided) |
113-
| `showDefaultPalette` | `boolean` | `true` | Show built-in node palette |
114-
| `enableGenerator` | `boolean` | `true` | Show the AI flow generator button |
115-
| `renderHeader` | `(props: HeaderRenderProps) => ReactNode` || Custom header renderer |
116-
| `renderNodePalette` | `(props: PaletteRenderProps) => ReactNode` || Custom node palette renderer |
101+
| Prop | Type | Default | Description |
102+
| -------------------- | ------------------------------------------ | -------------- | --------------------------------------------------------------- |
103+
| `apiBaseUrl` | `string` | **(required)** | Flowise API server endpoint |
104+
| `token` | `string` | | Authentication token for API calls |
105+
| `initialFlow` | `FlowData` | | Initial flow data to render (uncontrolled — only used on mount) |
106+
| `components` | `string[]` | | Restrict which node types appear in the palette |
107+
| `onFlowChange` | `(flow: FlowData) => void` | | Called when the flow changes (node/edge add, remove, move) |
108+
| `onSave` | `(flow: FlowData) => void` | | Called when the user triggers a save |
109+
| `onFlowGenerated` | `(flow: FlowData) => void` | | Called when a flow is generated via AI |
110+
| `isDarkMode` | `boolean` | `false` | Use dark mode theme |
111+
| `readOnly` | `boolean` | `false` | Disable editing (nodes not draggable/connectable) |
112+
| `showDefaultHeader` | `boolean` | `true` | Show built-in header (ignored if `renderHeader` provided) |
113+
| `showDefaultPalette` | `boolean` | `true` | Show built-in node palette |
114+
| `enableGenerator` | `boolean` | `true` | Show the AI flow generator button |
115+
| `renderHeader` | `(props: HeaderRenderProps) => ReactNode` | | Custom header renderer |
116+
| `renderNodePalette` | `(props: PaletteRenderProps) => ReactNode` | | Custom node palette renderer |
117117

118118
### Imperative Methods (via `ref`)
119119

120-
| Method | Return Type | Description |
121-
|--------|-------------|-------------|
122-
| `getFlow()` | `FlowData` | Get current flow data |
123-
| `toJSON()` | `string` | Export flow as JSON string |
124-
| `validate()` | `ValidationResult` | Validate the current flow |
125-
| `fitView()` | `void` | Fit all nodes into view |
126-
| `clear()` | `void` | Remove all nodes and edges |
127-
| `addNode(nodeData)` | `void` | Add a node (`Partial<FlowNode>`) |
120+
| Method | Return Type | Description |
121+
| ------------------- | ------------------ | -------------------------------- |
122+
| `getFlow()` | `FlowData` | Get current flow data |
123+
| `toJSON()` | `string` | Export flow as JSON string |
124+
| `validate()` | `ValidationResult` | Validate the current flow |
125+
| `fitView()` | `void` | Fit all nodes into view |
126+
| `clear()` | `void` | Remove all nodes and edges |
127+
| `addNode(nodeData)` | `void` | Add a node (`Partial<FlowNode>`) |
128128

129129
### Design Note
130130

@@ -178,7 +178,7 @@ npm publish --dry-run
178178
### Publish
179179

180180
```bash
181-
# Prerelease — tagged so `npm install @flowise/agentflow` won't pick it up
181+
# Prerelease — tagged so `npm install @flowiseai/agentflow` won't pick it up
182182
npm publish --tag dev
183183

184184
# Stable release — gets the `latest` tag

packages/agentflow/TESTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @flowise/agentflow Test Plan
1+
# @flowiseai/agentflow Test Plan
22

33
## Running Tests
44

packages/agentflow/examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# @flowise/agentflow Examples
1+
# @flowiseai/agentflow Examples
22

3-
This folder demonstrates various usage patterns of the `@flowise/agentflow` package.
3+
This folder demonstrates various usage patterns of the `@flowiseai/agentflow` package.
44

55
## Setup
66

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>@flowise/agentflow - Basic Example</title>
7-
<style>
8-
* {
9-
margin: 0;
10-
padding: 0;
11-
box-sizing: border-box;
12-
}
13-
html, body, #root {
14-
width: 100%;
15-
height: 100%;
16-
}
17-
</style>
18-
</head>
19-
<body>
20-
<div id="root"></div>
21-
<script type="module" src="/src/main.tsx"></script>
22-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>@flowiseai/agentflow - Basic Example</title>
7+
<style>
8+
* {
9+
margin: 0;
10+
padding: 0;
11+
box-sizing: border-box;
12+
}
13+
html,
14+
body,
15+
#root {
16+
width: 100%;
17+
height: 100%;
18+
}
19+
</style>
20+
</head>
21+
<body>
22+
<div id="root"></div>
23+
<script type="module" src="/src/main.tsx"></script>
24+
</body>
2325
</html>

packages/agentflow/examples/src/demos/AllNodeTypesExample.tsx

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

88
import { useRef } from 'react'
99

10-
import type { AgentFlowInstance, FlowData } from '@flowise/agentflow'
11-
import { Agentflow } from '@flowise/agentflow'
10+
import type { AgentFlowInstance, FlowData } from '@flowiseai/agentflow'
11+
import { Agentflow } from '@flowiseai/agentflow'
1212

1313
import { apiBaseUrl, token } from '../config'
1414

packages/agentflow/examples/src/demos/BasicExample.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
/**
22
* Basic Example
33
*
4-
* Demonstrates basic @flowise/agentflow usage with imperative methods.
4+
* Demonstrates basic @flowiseai/agentflow usage with imperative methods.
55
*/
66

77
import { useRef, useState } from 'react'
88

9-
import type { AgentFlowInstance, FlowData, ValidationResult } from '@flowise/agentflow'
10-
import { Agentflow } from '@flowise/agentflow'
9+
import type { AgentFlowInstance, FlowData, ValidationResult } from '@flowiseai/agentflow'
10+
import { Agentflow } from '@flowiseai/agentflow'
1111

1212
import { apiBaseUrl, token } from '../config'
1313

packages/agentflow/examples/src/demos/CustomUIExample.tsx

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

88
import { useRef, useState } from 'react'
99

10-
import type { AgentFlowInstance, FlowData, HeaderRenderProps, PaletteRenderProps } from '@flowise/agentflow'
11-
import { Agentflow } from '@flowise/agentflow'
10+
import type { AgentFlowInstance, FlowData, HeaderRenderProps, PaletteRenderProps } from '@flowiseai/agentflow'
11+
import { Agentflow } from '@flowiseai/agentflow'
1212

1313
import { apiBaseUrl, token } from '../config'
1414

0 commit comments

Comments
 (0)