Skip to content

Commit

Permalink
Merge pull request #388 from coasys/release-v0.5.0
Browse files Browse the repository at this point in the history
Release v0.5.0
  • Loading branch information
lucksus authored Jul 11, 2023
2 parents 83c9e49 + 48d9079 commit c812817
Show file tree
Hide file tree
Showing 436 changed files with 23,091 additions and 37,668 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/agent-language-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Agent Language

on:
push:
branches:
- main
- staging
- bootstrap-languages

jobs:
pull:
name: Test

strategy:
matrix:
platform: [ubuntu-22.04]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.63.0
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: rustup target add wasm32-unknown-unknown
- run: yarn install
- run: yarn run build-languages
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed"
- run: cd bootstrap-languages/agent-language/hc-dna/zomes/tests && yarn install && yarn run test
50 changes: 50 additions & 0 deletions .github/workflows/direct-message-language-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Direct Message Language

on:
push:
branches:
- main
- staging
- bootstrap-languages

jobs:
pull:
name: Test

strategy:
matrix:
platform: [ubuntu-22.04]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.63.0
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: rustup target add wasm32-unknown-unknown
- run: yarn install
- run: yarn run build-languages
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed"
- run: cd bootstrap-languages/direct-message-language/hc-dna/tests && yarn install && yarn run test
88 changes: 88 additions & 0 deletions .github/workflows/file-storage-language-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: File Storage

on:
push:
branches:
- main
- staging
- bootstrap-languages

jobs:
holochain:
name: Holochain Tests

strategy:
matrix:
platform: [ubuntu-22.04]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.63.0
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: rustup target add wasm32-unknown-unknown
- run: yarn install
- run: yarn run build-languages
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed"
- run: cd bootstrap-languages/file-storage/hc-dna/tests && yarn install && yarn run test

integration:
name: Integration Test

strategy:
matrix:
platform: [ubuntu-22.04]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.63.0
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: rustup target add wasm32-unknown-unknown
- run: yarn install
- run: yarn run build
- run: cargo install --version 0.2.3 lair_keystore || echo "lair already installed"
- run: cd bootstrap-languages/file-storage && yarn run integration-test
3 changes: 2 additions & 1 deletion .github/workflows/p-diff-sync-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
push:
branches:
- main
pull_request:
- staging
- bootstrap-languages

jobs:
unit:
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ executorsrc/tests/publishing-agent/ad4m/data/db.json

core/Links.test.js
core/lib/*
executor/lib/*
coverage
.DS_store
docs-src/api.md
docs-src/typedoc
docs-src/_book
docs/out

host/dist
host/build
Expand Down Expand Up @@ -52,4 +54,6 @@ tests/ad4m1
tests/ad4m2
/tests/ad4mJS

test-runner/.ad4m-test
test-runner/.ad4m-test

temp
21 changes: 21 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/

### Fixed

## [0.5.0] - 10/07/2023

### Added
- bootstrap languages to mono repo [PR#328](https://github.com/perspect3vism/ad4m/pull/328)
- Added a apps changes listener so the launcher app can updated the apps list without having to switch tabs to trigger update [PR#354](https://github.com/perspect3vism/ad4m/pull/354)
- Support for new UI oriented Subject class predicates (property_named_option, p3_class_icon, etc). [PR#353](https://github.com/perspect3vism/ad4m/pull/353)
- Adds a new status property to Link expression to indicate if the link is shared or local. [PR#130](https://github.com/perspect3vism/ad4m/pull/130)
- Added local links support to SDNA. [PR#370](https://github.com/perspect3vism/ad4m/pull/370)

### Changed

### Deprecated

### Removed

### Fixed
- Expression -> get would fail when executed on a Literal expression. [PR#353](https://github.com/perspect3vism/ad4m/pull/353)
- Fixed launcher breaking on windows if a new app instance is created. [PR#362](https://github.com/perspect3vism/ad4m/pull/362)
- Fixed SDNA decorator readyonly properties in ts5 & fixed collection not working if not initalized. [PR#369](https://github.com/perspect3vism/ad4m/pull/369)
- Fixed Perspective handle's state was not updated when the instance state got updated which caused the issue. [PR#368](https://github.com/perspect3vism/ad4m/pull/368)

## [0.3.4] - 27/03/2023

### 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.

13 changes: 13 additions & 0 deletions bootstrap-languages/agent-language/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dist/
node_modules/
target/
.hc
.cargo
*.log
*.dna
build/*
*.js
*.js.map
!*.config.icons.js
!*.config.js
!dna.js
11 changes: 11 additions & 0 deletions bootstrap-languages/agent-language/ConstructorIcon.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<svelte:options tag={null}/>

<script lang="ts">
export let commitExpression
</script>

<div>
</div>

<style lang="scss">
</style>
83 changes: 83 additions & 0 deletions bootstrap-languages/agent-language/Icon.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<svelte:options tag={null}/>

<script lang="ts">
import type { Expression } from "@perspect3vism/ad4m";
import { Literal, Perspective } from "@perspect3vism/ad4m";
import emailValidator from 'email-validator'
import md5 from 'md5'
export let expression: Expression
let did
let email
let firstName
let lastName
async function update() {
let perspective = new Perspective(expression.data.perspective.links)
did = expression.data.did
try {
firstName = Literal.fromUrl(await perspective.getSingleTarget({source: did, predicate: 'foaf://givenName'})).get()
}catch(e) {
firstName = undefined
}
try {
lastName = Literal.fromUrl(await perspective.getSingleTarget({source: did, predicate: 'foaf://familyName'})).get()
}catch(e) {
lastName = undefined
}
try {
email = Literal.fromUrl(await perspective.getSingleTarget({source: did, predicate: 'foaf://mbox'})).get()
}catch(e) {
email = undefined
}
}
$: if(expression) update()
</script>

<div class="container">

<div class="text">
<h1>{did}</h1>
<h2>{firstName} {lastName}</h2>
<h2>{email}</h2>
</div>

{#if emailValidator.validate(email) }
<img src="http://www.gravatar.com/avatar/{md5(email)}?s=360" alt="gravatar" class="image">
{/if}
</div>


<style>
h1 {
width: 100%;
word-break: break-all;
}
.container {
color: white;
width: 400px;
height: 300px;
text-shadow: black;
}
.text {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 3;
}
.image {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
</style>
Loading

0 comments on commit c812817

Please sign in to comment.