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
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Learn how to add code owners here:
# https://help.github.com/en/articles/about-code-owners

* @edgee-cloud/edgeers
* @edgee-ai/edgeers
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Edgee Contributor Guidelines

Welcome! This project is created by the team at [Edgee](https://www.edgee.cloud).
Welcome! This project is created by the team at [Edgee](https://www.edgee.ai).
We're glad you're interested in contributing! We welcome contributions from people of all backgrounds
who are interested in making great software with us.

At Edgee, we aspire to empower everyone to create interactive experiences. To do this,
we're exploring and pushing the boundaries of new technologies, and sharing our learnings with the open source community.

If you have ideas for collaboration, email us at opensource@edgee.cloud or join our [Discord](https://www.edgee.cloud/discord)!
If you have ideas for collaboration, email us at opensource@edgee.ai or join our [Discord](https://www.edgee.ai/discord)!

We're also hiring full-time engineers to work with us everywhere! Check out our current job postings [here](https://github.com/edgee-cloud/careers/issues).
We're also hiring full-time engineers to work with us everywhere! Check out our current job postings [here](https://github.com/edgee-ai/careers/issues).

## Issues

Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
name = "edgee-cli"
version = "1.0.0"
description = "Edgee CLI to play with AI Gateway, tools, components..."
authors = ["Edgee <opensource@edgee.cloud>"]
authors = ["Edgee <opensource@edgee.ai>"]
license = "Apache-2.0"
keywords = ["edgee"]
repository = "https://github.com/edgee-cloud/cli"
homepage = "https://www.edgee.cloud"
repository = "https://github.com/edgee-ai/cli"
homepage = "https://www.edgee.ai"
readme = true
edition = "2021"

Expand Down
16 changes: 8 additions & 8 deletions README-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Once you have a valid configuration file (see next section), you can run the Edg
You can install and run `edgee` locally using the installer script:

```shell
$ curl https://install.edgee.cloud | sh
$ curl https://install.edgee.ai | sh
```

Or via homebrew:

```shell
$ brew tap edgee-cloud/edgee
$ brew tap edgee-ai/cli
$ brew install edgee
```

Expand Down Expand Up @@ -187,21 +187,21 @@ In this example, requests to `https://demo.edgee.dev/old-path` will be temporari

## Integrating with edgee components

Check out the [official components docs](https://www.edgee.cloud/docs/components/overview) to dive into the
Check out the [official components docs](https://www.edgee.ai/docs/components/overview) to dive into the
components architecture.

The Edgee proxy is designed for performance and extensibility, so you can easily integrate open source components based on the platforms you need. Here's a list of the components we've built so far:
- [Amplitude](https://github.com/edgee-cloud/amplitude-component)
- [Google Analytics](https://github.com/edgee-cloud/ga-component)
- [Segment](https://github.com/edgee-cloud/segment-component)
- [Piano Analytics](https://github.com/edgee-cloud/piano-analytics-component)
- [Amplitude](https://github.com/edgee-ai/amplitude-component)
- [Google Analytics](https://github.com/edgee-ai/ga-component)
- [Segment](https://github.com/edgee-ai/segment-component)
- [Piano Analytics](https://github.com/edgee-ai/piano-analytics-component)

You just need point to the WebAssembly implementation in your proxy configuration. You may also build your
own components for integrations we don't provide yet.

### Example

Let's see how to implement data collection using the [amplitude component](https://github.com/edgee-cloud/amplitude-component).
Let's see how to implement data collection using the [amplitude component](https://github.com/edgee-ai/amplitude-component).

You simply need to add a new session to your configuration pointing to the WebAssembly component that implements the data collection protocol:

Expand Down
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<div align="center">

<p align="center">
<a href="https://www.edgee.cloud">
<a href="https://www.edgee.ai">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.edgee.cloud/img/favicon-dark.svg">
<img src="https://cdn.edgee.cloud/img/favicon.svg" height="100" alt="Edgee">
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.edgee.ai/img/favicon-dark.svg">
<img src="https://cdn.edgee.ai/img/favicon.svg" height="100" alt="Edgee">
</picture>
<h1 align="center">Edgee CLI</h1>
</a>
</p>

[![Edgee](https://img.shields.io/badge/edgee-open%20source-blueviolet.svg)](https://www.edgee.cloud)
[![Edgee](https://img.shields.io/badge/discord-edgee-blueviolet.svg?logo=discord)](https://www.edgee.cloud/discord)
[![Docs](https://img.shields.io/badge/docs-published-blue)](https://www.edgee.cloud/docs/introduction)
[![Coverage Status](https://coveralls.io/repos/github/edgee-cloud/cli/badge.svg)](https://coveralls.io/github/edgee-cloud/cli)
[![Edgee](https://img.shields.io/badge/edgee-open%20source-blueviolet.svg)](https://www.edgee.ai)
[![Edgee](https://img.shields.io/badge/discord-edgee-blueviolet.svg?logo=discord)](https://www.edgee.ai/discord)
[![Docs](https://img.shields.io/badge/docs-published-blue)](https://www.edgee.ai/docs/introduction)
[![Coverage Status](https://coveralls.io/repos/github/edgee-ai/cli/badge.svg)](https://coveralls.io/github/edgee-ai/cli)

</div>

### Useful resources

- Edgee's
[Website](https://www.edgee.cloud),
[Roadmap](https://roadmap.edgee.cloud/roadmap/data-collection-components), and
[Documentation](https://www.edgee.cloud/docs/introduction)
- Edgee's [Community Discord](https://www.edgee.cloud/discord)
- Edgee on [X](https://x.com/edgee_cloud) and [LinkedIn](https://www.linkedin.com/company/edgee-cloud/)
[Website](https://www.edgee.ai),
[Roadmap](https://roadmap.edgee.ai/roadmap/data-collection-components), and
[Documentation](https://www.edgee.ai/docs/introduction)
- Edgee's [Community Discord](https://www.edgee.ai/discord)
- Edgee on [X](https://x.com/edgee_ai) and [LinkedIn](https://www.linkedin.com/company/edgee-ai/)


## Getting started with the Edgee CLI
Expand All @@ -38,7 +38,7 @@ Install the Edgee CLI with your preferred method:
<summary>Install script</summary>

```shell
$ curl https://install.edgee.cloud | sh
$ curl https://install.edgee.ai | sh
```

</details>
Expand All @@ -47,7 +47,7 @@ Install the Edgee CLI with your preferred method:
<summary>Homebrew</summary>

```shell
$ brew tap edgee-cloud/edgee
$ brew tap edgee-ai/cli
$ brew install edgee
```

Expand All @@ -57,7 +57,7 @@ Install the Edgee CLI with your preferred method:
<summary>From source</summary>

```shell
$ git clone https://github.com/edgee-cloud/cli.git
$ git clone https://github.com/edgee-ai/cli.git
$ cd cli
$ cargo build --release
$ ./target/release/edgee-cli --version
Expand All @@ -70,7 +70,7 @@ Install the Edgee CLI with your preferred method:

### `edgee login`

This command lets you log in using your Edgee account's API token (you can [create one here](https://www.edgee.cloud/~/me/settings/tokens)):
This command lets you log in using your Edgee account's API token (you can [create one here](https://www.edgee.ai/~/me/settings/tokens)):


```shell
Expand Down Expand Up @@ -158,7 +158,7 @@ $ edgee components new --name foo --language javascript
This command lets you compile the component in the current folder into a WebAssembly binary file.

You can customize the behavior of the build command in the
[manifest file](https://www.edgee.cloud/docs/services/registry/developer-guide#component-manifest-file)
[manifest file](https://www.edgee.ai/docs/services/registry/developer-guide#component-manifest-file)
by changing the target file name
and the default build script. If you've created a new component with `edgee component new` the default build script
should be a great starting point. By default, the output of this command will be a new .wasm file in the current folder.
Expand Down Expand Up @@ -210,7 +210,7 @@ $ edgee components push
INFO Uploading Wasm file...
INFO Creating new version...
INFO org/name@version pushed successfully!
INFO URL: https://www.edgee.cloud/~/registry/{organization}/{component}
INFO URL: https://www.edgee.ai/~/registry/{organization}/{component}
```

The push command also lets you publish or unpublish an existing component via `--public` or `--private`.
Expand Down Expand Up @@ -292,9 +292,9 @@ If you're interested in contributing to Edgee, read our [contribution guidelines

## Reporting Security Vulnerabilities
If you've found a vulnerability or potential vulnerability in our code, please let us know at
[edgee-security](mailto:security@edgee.cloud).
[edgee-security](mailto:security@edgee.ai).

## Versioning
Edgee releases and their associated binaries are available on the project's [releases page](https://github.com/edgee-cloud/cli/releases).
Edgee releases and their associated binaries are available on the project's [releases page](https://github.com/edgee-ai/cli/releases).

The binaries are versioned following [SemVer](https://semver.org/) conventions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -u

# Package metadata

GITHUB_OWNER='edgee-cloud'
GITHUB_OWNER='edgee-ai'
GITHUB_REPO='cli'

# Helper utilities
Expand All @@ -33,8 +33,8 @@ _header() {
${_purple}Installer${_normal}

$_divider
${_bold}Website${_normal}: https://www.edgee.cloud
${_bold}Documentation${_normal}: https://www.edgee.cloud/docs/introduction
${_bold}Website${_normal}: https://www.edgee.ai
${_bold}Documentation${_normal}: https://www.edgee.ai/docs/introduction
$_divider

EOF
Expand All @@ -43,7 +43,7 @@ EOF
_usage() {
cat 1>&2 <<EOF
edgee-installer
The installer for Edgee (https://www.edgee.cloud)
The installer for Edgee (https://www.edgee.ai)

${_bold}USAGE${_normal}:
edgee-installer [-h/--help]
Expand Down
4 changes: 2 additions & 2 deletions src/commands/auth/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ pub async fn run(opts: Options) -> Result<()> {
.with_default(true);

if confirm_auto_open_browser.prompt()? {
open::that("https://www.edgee.cloud/~/account/tokens")?;
open::that("https://www.edgee.ai/~/account/tokens")?;
}

Password::new("Enter Edgee API token (press Ctrl+R to toggle input display):")
.with_help_message(
"You can create one at https://www.edgee.cloud/~/account/tokens",
"You can create one at https://www.edgee.ai/~/account/tokens",
)
.with_display_mode(PasswordDisplayMode::Masked)
.with_display_toggle_enabled()
Expand Down
4 changes: 2 additions & 2 deletions src/commands/components/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ pub async fn run(_opts: Options) -> anyhow::Result<()> {

Additional resources: [Resource example](https://your-resource-link.com)
"#.to_string()),
documentation: Some(Url::parse("https://www.edgee.cloud/docs/introduction")?),
repository: Some(Url::parse("https://www.github.com/edgee-cloud/cli")?),
documentation: Some(Url::parse("https://www.edgee.ai/docs/introduction")?),
repository: Some(Url::parse("https://www.github.com/edgee-ai/cli")?),
settings: indexmap::indexmap! {
"example".to_string() => Setting {
description: Some("Here is a string".to_string()),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/components/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ pub async fn run(opts: Options) -> Result<()> {
tracing::info!(
"URL: {}",
format!(
"https://www.edgee.cloud/~/registry/{}/{}",
"https://www.edgee.ai/~/registry/{}/{}",
organization.slug, component_slug,
)
.green(),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ pub async fn run(_opts: Options) -> anyhow::Result<()> {
use self_update::{backends::github::Update, Status};

let updater = Update::configure()
.repo_owner("edgee-cloud")
.repo_name("edgee")
.repo_owner("edgee-ai")
.repo_name("cli")
.bin_name("edgee")
.current_version(self_update::cargo_crate_version!())
.show_download_progress(true)
Expand Down
16 changes: 8 additions & 8 deletions src/components/boilerplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,23 @@ impl fmt::Display for SubCategoryConfig {
pub static LANGUAGE_OPTIONS: &[LanguageConfig] = &[
LanguageConfig {
name: "C",
repo_url: "https://github.com/edgee-cloud/example-c-component",
repo_url: "https://github.com/edgee-ai/example-c-component",
default_build_command: "gcc main.c -o main",
alias: &["c"],
wit_world_extra: "",
deps_extra: "",
},
LanguageConfig {
name: "CSharp",
repo_url: "https://github.com/edgee-cloud/example-csharp-component",
repo_url: "https://github.com/edgee-ai/example-csharp-component",
default_build_command: "dotnet build",
alias: &["csharp", "cs", "c#"],
wit_world_extra: "",
deps_extra: "",
},
LanguageConfig {
name: "Go",
repo_url: "https://github.com/edgee-cloud/example-go-component",
repo_url: "https://github.com/edgee-ai/example-go-component",
default_build_command: "go build -o main .",
alias: &["go", "golang"],
wit_world_extra: "\
Expand All @@ -77,31 +77,31 @@ cli = \"https://github.com/WebAssembly/wasi-cli/archive/refs/tags/v0.2.0.tar.gz\
},
LanguageConfig {
name: "JavaScript",
repo_url: "https://github.com/edgee-cloud/example-js-component",
repo_url: "https://github.com/edgee-ai/example-js-component",
default_build_command: "node main.js",
alias: &["js", "javascript"],
wit_world_extra: "",
deps_extra: "",
},
LanguageConfig {
name: "Python",
repo_url: "https://github.com/edgee-cloud/example-py-component",
repo_url: "https://github.com/edgee-ai/example-py-component",
default_build_command: "python main.py",
alias: &["py", "python"],
wit_world_extra: "",
deps_extra: "",
},
LanguageConfig {
name: "Rust",
repo_url: "https://github.com/edgee-cloud/example-rust-component",
repo_url: "https://github.com/edgee-ai/example-rust-component",
default_build_command: "cargo build --release",
alias: &["rs", "rust"],
wit_world_extra: "",
deps_extra: "",
},
LanguageConfig {
name: "TypeScript",
repo_url: "https://github.com/edgee-cloud/example-ts-component",
repo_url: "https://github.com/edgee-ai/example-ts-component",
default_build_command: "npx tsc",
alias: &["ts", "typescript"],
wit_world_extra: "",
Expand Down Expand Up @@ -156,7 +156,7 @@ mod tests {
fn test_language_config_display() {
let config = LanguageConfig {
name: "Rust",
repo_url: "https://github.com/edgee-cloud/example-rust-component",
repo_url: "https://github.com/edgee-ai/example-rust-component",
default_build_command: "cargo build --release",
alias: &["rs", "rust"],
wit_world_extra: "",
Expand Down
2 changes: 1 addition & 1 deletion src/components/wit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub async fn update(manifest: &Manifest, root_dir: &Path) -> Result<()> {

let deps_manifest = format!(
"\
edgee = \"https://github.com/edgee-cloud/edgee-{world}-wit/archive/refs/tags/v{wit_world_version}.tar.gz\"
edgee = \"https://github.com/edgee-ai/edgee-{world}-wit/archive/refs/tags/v{wit_world_version}.tar.gz\"
{extra}
",
world = category_config.wit_world,
Expand Down
Loading