Skip to content

Commit

Permalink
Merge pull request #310 from perspect3vism/release-v0.3.0
Browse files Browse the repository at this point in the history
Release v0.3.0
  • Loading branch information
jdeepee authored Mar 9, 2023
2 parents 25f37a1 + 70a6d85 commit ef07e01
Show file tree
Hide file tree
Showing 119 changed files with 13,663 additions and 5,448 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
package: executor/package.json
- name: Publish Test runner
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: test-runner/package.json


crates-publish:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v9
- uses: cachix/cachix-action@v12
with:
name: perspect3vism
# If you chose API tokens for write access OR if you have a private cache
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ target
tests/ad4m1
tests/ad4m2
/tests/ad4mJS

test-runner/.ad4m-test
58 changes: 52 additions & 6 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,72 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/

### Changed


### Deprecated

### Removed

### Fixed

## [0.3.0] - 09/03/2013

### Added

- After login / registration the launcher will now open by default [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- If the user has no installed applications, we now show some info about connecting apps to AD4M and a link to Flux [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- Holochain DHT status logs every 60 seconds [PR#277](https://github.com/perspect3vism/ad4m/pull/277)
- ad4m-connect connection settings gives you the option of connecting to local or remote [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- Convience overloads for telepresence functions: `setOnlineStatusU`, `sendSignalU`, `sendBroadcastU` in `NeighbourhoodProxy`, which take new type `PerspectiveUnsignedInput` as argument. This enables sending signed signals without having to create temporary perspectives. These functions sign the whole perspective including links. [PR#296](https://github.com/perspect3vism/ad4m/pull/296)
- Sticky tabs [PR#307](https://github.com/perspect3vism/ad4m/pull/307)

### Changed

- Auth screens for launcher & connect will now parse out the capabilities to a human readable string [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- Use barcode detector for proxy QR code [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- Use proper types for auth methods [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- Show appIconPath in apps tab [PR#307](https://github.com/perspect3vism/ad4m/pull/307)
- Executor now uses the new updated LinkAdapter interface [PR#276](https://github.com/perspect3vism/ad4m/pull/276)
- Use new link language in bootstrap which will skip doing dead pulls [PR#276](https://github.com/perspect3vism/ad4m/pull/276)

### Deprecated

### Removed
- Remove mantine as dependency [PR#307](https://github.com/perspect3vism/ad4m/pull/307)
- Remove tabler-icons-react as dependency [PR#307](https://github.com/perspect3vism/ad4m/pull/307)

### Fixed

- Bug on ad4m-test where apollo connection errors would polute logs [PR#295](https://github.com/perspect3vism/ad4m/pull/295)
- ad4m-test internal tests not using self but instead published package [PR#295](https://github.com/perspect3vism/ad4m/pull/295)
- ad4m-test will now always pull latest ad4m-host binary [PR#295](https://github.com/perspect3vism/ad4m/pull/295)
- AD4M launcher will no longer flash its modal on load [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- Broken CI tests using nix (fixed by bumping nix & cachix gh action versions) [PR#278](https://github.com/perspect3vism/ad4m/pull/278)
- ad4m-connect more stable by not running an async function on the constructor. This will ensure that the client exsist even if we couldn't make a connection [PR#298](https://github.com/perspect3vism/ad4m/pull/298)
- ad4m-connect will now handle connection error from port correctly and ensure UI state get's updated correctly [PR#298](https://github.com/perspect3vism/ad4m/pull/298)
- ad4m-launcher now gives feedback if password is wrong. [PR#302](https://github.com/perspect3vism/ad4m/pull/302)
- Fix issue where scroll was broken [PR#307](https://github.com/perspect3vism/ad4m/pull/307)

## [0.2.16] - 25/02/2013

### Added

### Changed
- Main LinkLanguage (Perspective Diff Sync) refactored to replace global/objective latest-revision with a simple gossip algorithm, where agents broadcast their revision and merge in revision of others as they are gossiped. Improves speed and resilience a lot. [PR#12 in PDiff-Sync](https://github.com/perspect3vism/perspective-diff-sync/pull/12) [PR#271](https://github.com/perspect3vism/ad4m/pull/271)

- Main LinkLanguage (Perspective Diff Sync) refactored to replace global/objective latest-revision with a simple gossip algorithm, where agents broadcast their revision and merge in revision of others as they are gossiped. Improves speed and resilience a lot. [PR#12 in PDiff-Sync](https://github.com/perspect3vism/perspective-diff-sync/pull/12) [PR#271](https://github.com/perspect3vism/ad4m/pull/271)

### Deprecated

### Removed

### Fixed
- Perspective Diff Sync: calculation of fast_forward_possible fixed, which prevents merge-loops (PR#13)[https://github.com/perspect3vism/perspective-diff-sync/pull/13]

- Perspective Diff Sync: calculation of fast_forward_possible fixed, which prevents merge-loops (PR#13)[https://github.com/perspect3vism/perspective-diff-sync/pull/13]

## [0.2.15] - 23/02/2013

### Added
- getAd4mClient to web exports in connect [PR#259](https://github.com/perspect3vism/ad4m/pull/259)

- getAd4mClient to web exports in connect [PR#259](https://github.com/perspect3vism/ad4m/pull/259)

### Changed

Expand All @@ -40,12 +83,14 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/
### Removed

### Fixed
- Not slow polling after sync [PR#260](https://github.com/perspect3vism/ad4m/pull/260)
- Trusted agent popup not working consistently [PR#261](https://github.com/perspect3vism/ad4m/pull/261)

- Not slow polling after sync [PR#260](https://github.com/perspect3vism/ad4m/pull/260)
- Trusted agent popup not working consistently [PR#261](https://github.com/perspect3vism/ad4m/pull/261)

## [0.2.14] - 17/02/2013

### Added

- Adds ability to remove Telepresence signal handler [PR#251](https://github.com/perspect3vism/ad4m/pull/251)
- e92b19f (connect): Add typescript types to the build, and use web as default. Separate export for Electron.

Expand All @@ -60,8 +105,9 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/
### Removed

### Fixed

- Startup when unlocking (instead of generating) agent was halted with empty log and "No Perspective controller" errors. Fixed with better error handling during unlock [PR#253](https://github.com/perspect3vism/ad4m/pull/253) and [PR#256](https://github.com/perspect3vism/ad4m/pull/256)

## [0.2.13] - 15/02/2013

### Added
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ad4m"
version = "0.2.16"
version = "0.3.0"
edition = "2021"
authors = ["Nicolas Luck <nicolas@perspect3vism.org>"]
description = "A command-line interface to AD4M (i.e. the AD4M executor) - https://ad4m.dev"
Expand All @@ -12,7 +12,7 @@ documentation = "https://docs.ad4m.dev"
readme = "README.md"

[dependencies]
ad4m-client = { path = "../rust-client", version = "0.2.16" }
ad4m-client = { path = "../rust-client", version = "0.3.0" }
anyhow = "1.0.65"
clap = { version = "4.0.8", features = ["derive"] }
futures = "0.3"
Expand Down
22 changes: 16 additions & 6 deletions cli/src/startup.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
use ad4m_client::{agent, perspectives};
use ad4m_client::{
agent, perspectives,
types::{Capability, Resource},
};
use anyhow::{Context, Result};
use rustyline::Editor;
use std::path::PathBuf;
Expand Down Expand Up @@ -59,15 +62,22 @@ pub async fn get_cap_token(executor_url: String) -> Result<String> {

let app_name = "AD4M cli".to_string();
let app_desc = "Command line administration tool for AD4M".to_string();
let app_url = "org.perspect3vism.ad4m.cli".to_string();
let capabilities =
"[{\"with\":{\"domain\":\"*\",\"pointers\":[\"*\"]},\"can\":[\"*\"]}]".to_string();
let app_domain = "org.perspect3vism.ad4m.cli".to_string();
let capabilities = Capability {
with: Resource {
domain: "*".to_string(),
pointers: vec!["*".to_string()],
},
can: vec!["*".to_string()],
};
let request_id = agent::request_capability(
executor_url.clone(),
app_name,
app_desc,
app_url,
capabilities,
app_domain,
None,
None,
Some(vec![capabilities]),
)
.await?;
println!(
Expand Down
8 changes: 4 additions & 4 deletions connect/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ <h1 id="connection"></h1>

<button id="button">Connect with AD4M</button>


<script type="module">
import Ad4mConnectUI from "./src/web.ts";

const ui = Ad4mConnectUI({
appName: "ad4m-connect-example",
appDesc: "hello",
appDomain: "http://localhost:3000",
appName: "AD4M Connect",
appDesc: "A description of the app",
appUrl: "http://localhost:3000",
appDomain: "dev.ad4m.connect.example",
appIconPath: "https://i.ibb.co/GnqjPJP/icon.png",
capabilities: [
{
Expand Down
26 changes: 4 additions & 22 deletions connect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/ad4m-connect",
"version": "0.2.16",
"version": "0.3.0",
"description": "Lib for handling everything needed to setup a connection to a local or remote ad4m-executor",
"license": "CAL-1.0",
"main": "dist/web.js",
Expand Down Expand Up @@ -50,36 +50,18 @@
"devDependencies": {
"@apollo/client": "3.6.9",
"@perspect3vism/ad4m": "*",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"@rollup/plugin-typescript": "^4.0.0",
"@tsconfig/svelte": "^1.0.0",
"esbuild": "^0.15.5",
"esbuild-plugin-lit": "^0.0.10",
"graphql-ws": "^5.10.1",
"ipfs-core-types": "^0.10.1",
"node-sass": "^7.0.0",
"np": "^7.6.2",
"npm-run-all": "^4.1.5",
"rollup": "^2.3.4",
"rollup-plugin-postcss": "^3.1.8",
"rollup-plugin-string": "^3.0.0",
"rollup-plugin-svelte": "^6.0.0",
"rollup-plugin-terser": "^7.0.0",
"subscriptions-transport-ws": "^0.9.19",
"svelte": "^3.0.0",
"svelte-check": "^1.0.0",
"svelte-preprocess": "^4.0.0",
"tslib": "^2.0.0",
"typescript": "^4.6.2",
"uint8arrays": "^3.0.0"
"vite": "^4.1.1"
},
"dependencies": {
"@undecaf/barcode-detector-polyfill": "^0.9.15",
"auto-bind": "^5.0.1",
"electron": "^20.0.3",
"esbuild-plugin-inline-image": "^0.0.8",
"html5-qrcode": "^2.2.1",
"lit": "^2.3.1",
"vite": "^4.1.1"
"lit": "^2.3.1"
}
}
4 changes: 2 additions & 2 deletions connect/src/components/Disconnected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ export default function Disconnected({ reconnect }) {
return html`
<div class="items items--small">
<div class="text-center">
<h1 class="heading">Disconnected</h1>
<h1 class="heading">Could not connect to AD4M</h1>
</div>
<div class="text-center">
<button class="button" @click=${() => reconnect()}>Reconnect</button>
<button class="button" @click=${() => reconnect()}>Try again</button>
</div>
</div>
`;
Expand Down
37 changes: 0 additions & 37 deletions connect/src/components/RemoteUrl.ts

This file was deleted.

Loading

0 comments on commit ef07e01

Please sign in to comment.