Skip to content

Commit

Permalink
Merge pull request #399 from coasys/release-0.5.1
Browse files Browse the repository at this point in the history
Release 0.5.1
  • Loading branch information
lucksus authored Jul 25, 2023
2 parents c812817 + 0297d27 commit 227c2b9
Show file tree
Hide file tree
Showing 24 changed files with 49 additions and 37 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ This project _loosely_ adheres to [Semantic Versioning](https://semver.org/spec/

### Fixed

## [0.5.1] - 25/07/2023

### Fixed
- Added missing Prolog declarations for new SDNA predicates `collection_adder/collection_remover`, fixing breaking apps using SDNA Subject Classes that don't have collections defined [PR#398](https://github.com/coasys/ad4m/pull/398)
- Replaced old and depreciated link to AD4Min launcher in docs with link to ADAM Launcher releases [PR#393](https://github.com/coasys/ad4m/pull/393)

### Changed
- Moved code that deals with the IPFS repo lock from JS to Rust, improving (in most cases: unblocking) startup of the Launcher on Windows [PR#392](https://github.com/coasys/ad4m/pull/392)
## [0.5.0] - 10/07/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.

2 changes: 1 addition & 1 deletion bootstrap-languages/agent-language/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/agent-language",
"version": "0.5.0",
"version": "0.5.1",
"description": "AD4M Language implementation for Holochain profile DNA",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-languages/direct-message-language/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/direct-message-language",
"version": "0.5.0",
"version": "0.5.1",
"description": "A templateable AD4M Language for personal, per-agent direct message Languages",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-languages/neighbourhood-language/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/neighbourhood-language",
"version": "0.5.0",
"version": "0.5.1",
"description": "This is a Language for storing AD4M neighbourhood objects",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-languages/p-diff-sync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/perspective-diff-sync",
"version": "0.5.0",
"version": "0.5.1",
"description": "An AD4M language for syncing mutations to a share perspective",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-languages/perspective-language/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/perspective-language",
"version": "0.5.0",
"version": "0.5.1",
"description": "An AD4M Language for perspective snapshot expressions stored on IPFS",
"main": "index.js",
"scripts": {
Expand Down
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.5.0"
version = "0.5.1"
edition = "2021"
authors = ["Nicolas Luck <[email protected]>"]
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.5.0" }
ad4m-client = { path = "../rust-client", version = "0.5.1" }
anyhow = "1.0.65"
clap = { version = "4.0.8", features = ["derive"] }
futures = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion connect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/ad4m-connect",
"version": "0.5.0",
"version": "0.5.1",
"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
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/ad4m",
"version": "0.5.0",
"version": "0.5.1",
"description": "*The Agent-Centric Distributed Application Meta-ontology* or just: *Agent-Centric DApp Meta-ontology* * A new meta-ontology for interoperable, decentralized application design * A spanning-layer to enable seamless integration between Holochain DNAs, blockchains, linked-data structures/ontologies and centralized back-ends * The basis for turning distinct, monolithic and siloed apps into a global, open and interoperable sense-making network",
"main": "lib/index.cjs",
"module": "lib/index.js",
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/ad4m-docs",
"version": "0.5.0",
"version": "0.5.1",
"description": "Documentation for AD4M",
"license": "CAL-1.0",
"homepage": "./",
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ System Requirements:
### Install AD4M Launcher

Download the latest version of the AD4M launcher from
its [GitHub release page](https://github.com/perspect3vism/ad4min/releases) and run/install it.
its [GitHub release page](https://github.com/coasys/ad4m/releases) and run/install it.

After creating an agent, you should see an AD4M system-tray icon which will
bring up an AD4M pop-up window when you click it:
Expand Down
2 changes: 1 addition & 1 deletion executor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/ad4m-executor",
"version": "0.5.0",
"version": "0.5.1",
"description": "Node.js package that allows the running/interfacing of AD4M Languages & Perspectives.",
"main": "lib/main.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion executor/src/core/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as path from 'path';
import * as fs from 'fs';
import { Address, Expression } from '@perspect3vism/ad4m';

export let ad4mExecutorVersion = "0.5.0";
export let ad4mExecutorVersion = "0.5.1";
export let agentLanguageAlias = "did";
export let languageLanguageAlias = "lang";
export let neighbourhoodLanguageAlias = "neighbourhood";
Expand Down
6 changes: 6 additions & 0 deletions executor/src/core/Perspective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,11 @@ export default class Perspective {
lines.push(":- dynamic property_resolve/2.")
lines.push(":- dynamic property_resolve_language/3.")
lines.push(":- dynamic property_named_option/4.")
lines.push(":- dynamic collection/2.")
lines.push(":- dynamic collection_getter/4.")
lines.push(":- dynamic collection_setter/3.")
lines.push(":- dynamic collection_remover/3.")
lines.push(":- dynamic collection_adder/3.")
lines.push(":- dynamic p3_class_icon/2.")
lines.push(":- dynamic p3_class_color/2.")
lines.push(":- dynamic p3_instance_color/3.")
Expand All @@ -897,8 +900,11 @@ export default class Perspective {
lines.push(":- discontiguous property_resolve/2.")
lines.push(":- discontiguous property_resolve_language/3.")
lines.push(":- discontiguous property_named_option/4.")
lines.push(":- discontiguous collection/2.")
lines.push(":- discontiguous collection_getter/4.")
lines.push(":- discontiguous collection_setter/3.")
lines.push(":- discontiguous collection_remover/3.")
lines.push(":- discontiguous collection_adder/3.")
lines.push(":- discontiguous p3_class_icon/2.")
lines.push(":- discontiguous p3_class_color/2.")
lines.push(":- discontiguous p3_instance_color/3.")
Expand Down
14 changes: 0 additions & 14 deletions executor/src/core/PerspectivismCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,6 @@ export default class PerspectivismCore {

async initIPFS(params: InitIPFSParams) {
console.log("Init IPFS service with port ", params.ipfsSwarmPort, " at path: ", params.ipfsRepoPath);
let basePath = params.ipfsRepoPath ? params.ipfsRepoPath : path.join(this.#config.dataPath, "ipfs");
let repoPath = path.join(basePath, "repo.lock");
console.log("Check if repo.lock exists at: ", repoPath);

let retries = 0;
while (fs.existsSync(repoPath)) {
await sleep(1000);
retries++;
if (retries >= 10) {
console.log("Waited long enough for repo.lock to be released, deleting...");
fs.rmdirSync(repoPath, { recursive: true });
fs.rmSync(path.join(basePath, "datastore", "LOCK"));
}
}

let ipfs = await IPFS.init(params.ipfsSwarmPort, params.ipfsRepoPath);
this.#IPFS = ipfs;
Expand Down
2 changes: 1 addition & 1 deletion host/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ad4m-host",
"version": "0.5.0",
"version": "0.5.1",
"description": "Self hosting ad4m service",
"private": true,
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ad4m-monorepo",
"version": "0.5.0",
"version": "0.5.1",
"workspaces": [
"core",
"docs",
Expand Down
2 changes: 1 addition & 1 deletion rust-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ad4m-client"
version = "0.5.0"
version = "0.5.1"
edition = "2021"
authors = ["Nicolas Luck <[email protected]>"]
description = "Client library wrapping AD4M's GraphQL interface"
Expand Down
2 changes: 1 addition & 1 deletion test-runner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@perspect3vism/ad4m-test",
"version": "0.5.0",
"version": "0.5.1",
"description": "Testing library to test ad4m languages",
"license": "MIT",
"bin": "./build/cli.js",
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ad4m-launcher",
"version": "0.5.0",
"version": "0.5.1",
"private": true,
"type": "module",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion ui/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ad4m-launcher"
version = "0.5.0"
version = "0.5.1"
description = "Administration of ad4m services"
authors = ["Kaichao Sun"]
license = ""
Expand Down
12 changes: 12 additions & 0 deletions ui/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ fn main() {
let _ = remove_dir_all(data_path());
}

let mut waited_seconds = 0;
while data_path().join("ipfs").join("repo.lock").exists() {
println!("IPFS repo.lock exists, waiting...");
std::thread::sleep(std::time::Duration::from_secs(1));
waited_seconds = waited_seconds + 1;
if waited_seconds > 10 {
println!("Waited long enough, removing lock...");
let _ = remove_dir_all(data_path().join("ipfs").join("repo.lock"));
let _ = remove_dir_all(data_path().join("ipfs").join("datastore").join("LOCK"));
}
}

if let Err(err) = setup_logs() {
println!("Error setting up the logs: {:?}", err);
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "AD4M",
"version": "0.5.0"
"version": "0.5.1"
},
"build": {
"distDir": "../dist",
Expand Down

0 comments on commit 227c2b9

Please sign in to comment.