Bulk copyright notice repair
This commit is contained in:
parent
1563398dd8
commit
d2f5c947ac
|
@ -0,0 +1,147 @@
|
||||||
|
#!/usr/bin/env racket
|
||||||
|
#lang racket
|
||||||
|
;;; SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
|
;;; SPDX-FileCopyrightText: Copyright © 2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
|
(require file/glob)
|
||||||
|
(require racket/date)
|
||||||
|
|
||||||
|
(define ((re p) i) (regexp-match p i))
|
||||||
|
(define ((re? p) i) (regexp-match? p i))
|
||||||
|
(define ((s p ins) i) (regexp-replace p i ins))
|
||||||
|
|
||||||
|
(define this-year (number->string (date-year (current-date))))
|
||||||
|
|
||||||
|
(define (get-git-config key)
|
||||||
|
(string-trim (with-output-to-string
|
||||||
|
(lambda () (system* "/usr/bin/env" "git" "config" "--get" key)))))
|
||||||
|
|
||||||
|
(define (is-tracked? f)
|
||||||
|
(call-with-output-file "/dev/null" #:exists 'append
|
||||||
|
(lambda (sink)
|
||||||
|
(parameterize ((current-error-port sink)
|
||||||
|
(current-output-port sink))
|
||||||
|
(system* "/usr/bin/env" "git" "ls-files" "--error-unmatch" f)))))
|
||||||
|
|
||||||
|
(define user-name (get-git-config "user.name"))
|
||||||
|
(define user-email (get-git-config "user.email"))
|
||||||
|
|
||||||
|
(define user (format "~a <~a>" user-name user-email))
|
||||||
|
|
||||||
|
(define (make-copyright who low [hi #f])
|
||||||
|
(if (and hi (not (string=? low hi)))
|
||||||
|
(format "Copyright © ~a-~a ~a" low hi who)
|
||||||
|
(format "Copyright © ~a ~a" low who)))
|
||||||
|
|
||||||
|
(define total-file-count 0)
|
||||||
|
(define total-changed-files 0)
|
||||||
|
(define dry-run? #f)
|
||||||
|
(define modify-untracked? #f)
|
||||||
|
|
||||||
|
(define (fix-files #:file-type-name file-type-name
|
||||||
|
#:file-pattern file-pattern
|
||||||
|
#:front-matter-re [front-matter-re #f]
|
||||||
|
#:leading-comment-re leading-comment-re
|
||||||
|
#:comment-prefix comment-prefix
|
||||||
|
#:file-filter [file-filter (lambda (x) #t)])
|
||||||
|
(define matched-files (filter file-filter (glob file-pattern)))
|
||||||
|
(define file-count (length matched-files))
|
||||||
|
(define changed-files 0)
|
||||||
|
(for [(file-number (in-naturals))
|
||||||
|
(f (in-list matched-files))]
|
||||||
|
(printf "~a [~a/~a] ~a ..." file-type-name file-number file-count f)
|
||||||
|
(flush-output)
|
||||||
|
(define all-lines (file->lines f))
|
||||||
|
(define-values (front-matter head tail)
|
||||||
|
(let*-values (((lines) all-lines)
|
||||||
|
((front-matter lines) (if front-matter-re
|
||||||
|
(splitf-at lines (re? front-matter-re))
|
||||||
|
(values '() lines)))
|
||||||
|
((head tail) (splitf-at lines (re? leading-comment-re))))
|
||||||
|
(values front-matter head tail)))
|
||||||
|
(let* ((head (map (s leading-comment-re "") head))
|
||||||
|
(head (map (lambda (l)
|
||||||
|
(match (regexp-match "^([^:]+): (.*)$" l)
|
||||||
|
[(list _ k v) (list k v)]
|
||||||
|
[#f (list #f l)]))
|
||||||
|
head))
|
||||||
|
(head (if (assoc "SPDX-FileCopyrightText" head)
|
||||||
|
head
|
||||||
|
(cons (list "SPDX-FileCopyrightText" (make-copyright user this-year)) head)))
|
||||||
|
(head (if (assoc "SPDX-License-Identifier" head)
|
||||||
|
head
|
||||||
|
(cons (list "SPDX-License-Identifier" "GPL-3.0-or-later") head)))
|
||||||
|
(head (map (lambda (l)
|
||||||
|
(match l
|
||||||
|
[(list "SPDX-FileCopyrightText"
|
||||||
|
(and (regexp (regexp-quote user-name))
|
||||||
|
(regexp #px"(\\d{4})-\\d{4}" (list _ low))))
|
||||||
|
(list "SPDX-FileCopyrightText"
|
||||||
|
(make-copyright user low this-year))]
|
||||||
|
[(list "SPDX-FileCopyrightText"
|
||||||
|
(and (regexp (regexp-quote user-name))
|
||||||
|
(regexp #px"\\d{4}" (list low))))
|
||||||
|
(list "SPDX-FileCopyrightText"
|
||||||
|
(make-copyright user low this-year))]
|
||||||
|
[_ l]))
|
||||||
|
head))
|
||||||
|
(head (map (lambda (l)
|
||||||
|
(if (string=? (cadr l) "")
|
||||||
|
(string-trim comment-prefix)
|
||||||
|
(string-append comment-prefix
|
||||||
|
(match l
|
||||||
|
[(list #f v) v]
|
||||||
|
[(list k v) (format "~a: ~a" k v)]))))
|
||||||
|
head))
|
||||||
|
(new-lines `(,@front-matter
|
||||||
|
,@head
|
||||||
|
""
|
||||||
|
,@(dropf tail (lambda (l) (string=? (string-trim l) "")))))
|
||||||
|
(would-change-if-written? (not (equal? all-lines new-lines)))
|
||||||
|
(write-needed? (and would-change-if-written? (or modify-untracked? (is-tracked? f)))))
|
||||||
|
(when (and write-needed? (not dry-run?))
|
||||||
|
(call-with-atomic-output-file
|
||||||
|
f
|
||||||
|
(lambda (port _tmp-path)
|
||||||
|
(for [(l front-matter)] (displayln l port))
|
||||||
|
(for [(l head)] (displayln l port))
|
||||||
|
(newline port)
|
||||||
|
(for [(l (dropf tail (lambda (l) (string=? (string-trim l) ""))))] (displayln l port)))))
|
||||||
|
(if write-needed?
|
||||||
|
(begin (set! changed-files (+ changed-files 1))
|
||||||
|
(printf "\e[41mchanged\e[0m\n"))
|
||||||
|
(printf "\r\e[K"))))
|
||||||
|
(when (positive? changed-files)
|
||||||
|
(printf "~a [~a total files, ~a changed]\n" file-type-name file-count changed-files))
|
||||||
|
(set! total-file-count (+ total-file-count file-count))
|
||||||
|
(set! total-changed-files (+ total-changed-files changed-files)))
|
||||||
|
|
||||||
|
(command-line #:once-each
|
||||||
|
[("-n" "--dry-run") "Do not write back changes to files"
|
||||||
|
(set! dry-run? #t)]
|
||||||
|
[("--modify-untracked") "Modify files not tracked by git as well as those that are"
|
||||||
|
(set! modify-untracked? #t)])
|
||||||
|
|
||||||
|
(void (fix-files #:file-type-name "TypeScript"
|
||||||
|
#:file-pattern "packages/**.ts"
|
||||||
|
#:front-matter-re #px"^#"
|
||||||
|
#:leading-comment-re #px"^//+ *"
|
||||||
|
#:comment-prefix "/// "))
|
||||||
|
(void (fix-files #:file-type-name "JavaScript"
|
||||||
|
#:file-pattern "packages/**.js"
|
||||||
|
#:front-matter-re #px"^#"
|
||||||
|
#:leading-comment-re #px"^//+ *"
|
||||||
|
#:comment-prefix "/// "))
|
||||||
|
|
||||||
|
(printf "fixcopyright: ~a files examined, ~a ~a\n"
|
||||||
|
total-file-count
|
||||||
|
total-changed-files
|
||||||
|
(if dry-run?
|
||||||
|
(if (zero? total-changed-files)
|
||||||
|
"changes are needed"
|
||||||
|
"files need to be updated")
|
||||||
|
(if (zero? total-changed-files)
|
||||||
|
"changes were needed"
|
||||||
|
"files were updated")))
|
||||||
|
|
||||||
|
(exit (if (positive? total-changed-files) 1 0))
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { SyndicateRollup } from '../../rollup.js';
|
import { SyndicateRollup } from '../../rollup.js';
|
||||||
const r = new SyndicateRollup('syndicate-compiler', { globalName: 'SyndicateCompiler' });
|
const r = new SyndicateRollup('syndicate-compiler', { globalName: 'SyndicateCompiler' });
|
||||||
export default [
|
export default [
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import {
|
import {
|
||||||
isToken, isTokenType, replace, commaJoin, startPos, fixPos, joinItems,
|
isToken, isTokenType, replace, commaJoin, startPos, fixPos, joinItems,
|
||||||
laxRead, itemText, match,
|
laxRead, itemText, match,
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import {
|
import {
|
||||||
TokenType, Token, Items,
|
TokenType, Token, Items,
|
||||||
Pattern,
|
Pattern,
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export * as Grammar from './grammar.js';
|
export * as Grammar from './grammar.js';
|
||||||
export * as Internals from './internals.js';
|
export * as Internals from './internals.js';
|
||||||
export * as Codegen from './codegen.js';
|
export * as Codegen from './codegen.js';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export const BootProc = '__SYNDICATE__bootProc';
|
export const BootProc = '__SYNDICATE__bootProc';
|
||||||
|
|
||||||
// Keep these definitions in sync with api.ts from the core package
|
// Keep these definitions in sync with api.ts from the core package
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/compiler, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export * as Syntax from './syntax/index.js';
|
export * as Syntax from './syntax/index.js';
|
||||||
export * from './compiler/index.js';
|
export * from './compiler/index.js';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { Token, TokenType, Item, Items, isGroup } from './tokens.js';
|
import { Token, TokenType, Item, Items, isGroup } from './tokens.js';
|
||||||
import { Pos, startPos, advancePos } from './position.js';
|
import { Pos, startPos, advancePos } from './position.js';
|
||||||
import { vlqEncode } from './vlq.js';
|
import { vlqEncode } from './vlq.js';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export * from './codewriter.js';
|
export * from './codewriter.js';
|
||||||
export * from './list.js';
|
export * from './list.js';
|
||||||
export * from './matcher.js';
|
export * from './matcher.js';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export interface List<T> extends Iterable<T> {
|
export interface List<T> extends Iterable<T> {
|
||||||
item: T | null;
|
item: T | null;
|
||||||
next: List<T> | null;
|
next: List<T> | null;
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Token, TokenType, Items, Item,
|
Token, TokenType, Items, Item,
|
||||||
isGroup, isToken, isSpace, isTokenType,
|
isGroup, isToken, isSpace, isTokenType,
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export interface Pos {
|
export interface Pos {
|
||||||
line: number;
|
line: number;
|
||||||
column: number;
|
column: number;
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { TokenType, Token, Group, GroupInProgress, Item, Items, finishGroup } from './tokens.js';
|
import { TokenType, Token, Group, GroupInProgress, Item, Items, finishGroup } from './tokens.js';
|
||||||
import { Pos, startPos } from './position.js';
|
import { Pos, startPos } from './position.js';
|
||||||
import { Scanner, StringScanner } from './scanner.js';
|
import { Scanner, StringScanner } from './scanner.js';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { TokenType, Token, Item, GroupInProgress } from './tokens.js';
|
import { TokenType, Token, Item, GroupInProgress } from './tokens.js';
|
||||||
import { Pos, advancePos } from './position.js';
|
import { Pos, advancePos } from './position.js';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export class SpanResult<T> {
|
export class SpanResult<T> {
|
||||||
readonly searchTarget: number;
|
readonly searchTarget: number;
|
||||||
readonly start: number;
|
readonly start: number;
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { Items } from './tokens.js';
|
import { Items } from './tokens.js';
|
||||||
import { Pos, startPos } from './position.js';
|
import { Pos, startPos } from './position.js';
|
||||||
import { laxRead, LaxReadOptions } from './reader.js';
|
import { laxRead, LaxReadOptions } from './reader.js';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { Pos } from './position.js';
|
import { Pos } from './position.js';
|
||||||
|
|
||||||
export enum TokenType {
|
export enum TokenType {
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||||
const inverse_alphabet =
|
const inverse_alphabet =
|
||||||
new Map<string, number>(Object.entries(alphabet).map(([i,c])=>[c,parseInt(i)]));
|
new Map<string, number>(Object.entries(alphabet).map(([i,c])=>[c,parseInt(i)]));
|
||||||
|
|
|
@ -1,21 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
const { bootModule, Dataspace, Skeleton, Ground, Record, Discard, Capture, Observe } = require('..');
|
const { bootModule, Dataspace, Skeleton, Ground, Record, Discard, Capture, Observe } = require('..');
|
||||||
const __ = Discard._instance;
|
const __ = Discard._instance;
|
||||||
|
|
|
@ -1,21 +1,6 @@
|
||||||
#!/usr/bin/env -S npx ts-node -O '{"module": "commonjs"}'
|
#!/usr/bin/env -S npx ts-node -O '{"module": "commonjs"}'
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { bootModule, Skeleton, Record, Discard, Capture, Observe, Facet, Value } from '..';
|
import { bootModule, Skeleton, Record, Discard, Capture, Observe, Facet, Value } from '..';
|
||||||
const __ = Discard._instance;
|
const __ = Discard._instance;
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import 'preserves';
|
import 'preserves';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { SyndicateRollup } from '../../rollup.js';
|
import { SyndicateRollup } from '../../rollup.js';
|
||||||
const r = new SyndicateRollup('syndicate', { globalName: 'Syndicate' });
|
const r = new SyndicateRollup('syndicate', { globalName: 'Syndicate' });
|
||||||
export default [
|
export default [
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export * from '@preserves/core';
|
export * from '@preserves/core';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { IdentitySet, Value } from '@preserves/core';
|
import { IdentitySet, Value } from '@preserves/core';
|
||||||
import { Attenuation, runRewrites } from './rewrite.js';
|
import { Attenuation, runRewrites } from './rewrite.js';
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
// Keep these definitions in sync with internals.ts from the compiler package
|
// Keep these definitions in sync with internals.ts from the compiler package
|
||||||
//
|
|
||||||
export type NonEmptySkeleton<Shape> = { shape: Shape, members: Skeleton<Shape>[] };
|
export type NonEmptySkeleton<Shape> = { shape: Shape, members: Skeleton<Shape>[] };
|
||||||
export type Skeleton<Shape> = null | NonEmptySkeleton<Shape>;
|
export type Skeleton<Shape> = null | NonEmptySkeleton<Shape>;
|
||||||
export type Path = Array<number>;
|
export type Path = Array<number>;
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Bags and Deltas (which are Bags where item-counts can be negative).
|
// Bags and Deltas (which are Bags where item-counts can be negative).
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Property-based "dataflow"
|
// Property-based "dataflow"
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { Value, is, Set } from '@preserves/core';
|
import { Value, is, Set } from '@preserves/core';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Convenient alias for the JS-native Set and Map types.
|
// Convenient alias for the JS-native Set and Map types.
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Utilities for Maps of Sets
|
// Utilities for Maps of Sets
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
use crate::schemas::dataspace_patterns::*;
|
use crate::schemas::dataspace_patterns::*;
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { Bytes } from '@preserves/core';
|
import { Bytes } from '@preserves/core';
|
||||||
import * as node_crypto from 'crypto';
|
import * as node_crypto from 'crypto';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import type { Assertion, Handle, Ref, Turn } from "./actor.js";
|
import type { Assertion, Handle, Ref, Turn } from "./actor.js";
|
||||||
import { Bytes, Dictionary, DoubleFloat, embed, IdentityMap, is, isEmbedded, Record, SingleFloat, Tuple } from "@preserves/core";
|
import { Bytes, Dictionary, DoubleFloat, embed, IdentityMap, is, isEmbedded, Record, SingleFloat, Tuple } from "@preserves/core";
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { IdentitySet } from './idcoll.js';
|
import { IdentitySet } from './idcoll.js';
|
||||||
import { is, Value, Record, Set, Dictionary, canonicalString, RecordConstructorInfo, GenericEmbedded } from '@preserves/core';
|
import { is, Value, Record, Set, Dictionary, canonicalString, RecordConstructorInfo, GenericEmbedded } from '@preserves/core';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export type NonEmptyStack<T> = { item: T, rest: Stack<T> };
|
export type NonEmptyStack<T> = { item: T, rest: Stack<T> };
|
||||||
export type Stack<T> = null | NonEmptyStack<T>;
|
export type Stack<T> = null | NonEmptyStack<T>;
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
const LIMIT = 25000;
|
const LIMIT = 25000;
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { Bytes, underlying } from '@preserves/core';
|
import { Bytes, underlying } from '@preserves/core';
|
||||||
import * as node_crypto from 'crypto';
|
import * as node_crypto from 'crypto';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import * as S from '../gen/sturdy.js';
|
import * as S from '../gen/sturdy.js';
|
||||||
import { Oid } from '../gen/protocol.js';
|
import { Oid } from '../gen/protocol.js';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { Actor, Assertion, Entity, Facet, Handle, Ref, Turn } from '../runtime/actor.js';
|
import { Actor, Assertion, Entity, Facet, Handle, Ref, Turn } from '../runtime/actor.js';
|
||||||
import { BytesLike, Decoder, Dictionary, embed, encode, IdentityMap, mapEmbeddeds, underlying, Value } from '@preserves/core';
|
import { BytesLike, Decoder, Dictionary, embed, encode, IdentityMap, mapEmbeddeds, underlying, Value } from '@preserves/core';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Basically Macaroons [1] in a Dataspace context
|
// Basically Macaroons [1] in a Dataspace context
|
||||||
//
|
//
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export const randomBytes = void 0;
|
export const randomBytes = void 0;
|
||||||
|
|
|
@ -1,21 +1,7 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
|
||||||
// Copyright (C) 2016-2018 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const Immutable = require('immutable');
|
const Immutable = require('immutable');
|
||||||
|
|
|
@ -1,21 +1,7 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
|
||||||
// Copyright (C) 2016-2018 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
var Immutable = require('immutable');
|
var Immutable = require('immutable');
|
||||||
|
|
|
@ -1,21 +1,7 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
|
||||||
// Copyright (C) 2016-2018 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
const Immutable = require('immutable');
|
const Immutable = require('immutable');
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,7 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
|
||||||
// Copyright (C) 2016-2018 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const Immutable = require('immutable');
|
const Immutable = require('immutable');
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/flappy-bird-demo
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { $QuitDataspace, Double, Facet, Inbound, Outbound, floatValue } from '@syndicate-lang/core';
|
import { $QuitDataspace, Double, Facet, Inbound, Outbound, floatValue } from '@syndicate-lang/core';
|
||||||
activate import { WindowEvent, template, Anchor } from '@syndicate-lang/html';
|
activate import { WindowEvent, template, Anchor } from '@syndicate-lang/html';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { Embedded, Value } from '@syndicate-lang/core';
|
import { Embedded, Value } from '@syndicate-lang/core';
|
||||||
activate import { UIEvent, GlobalEvent, HtmlFragments, template, Anchor } from '@syndicate-lang/html';
|
activate import { UIEvent, GlobalEvent, HtmlFragments, template, Anchor } from '@syndicate-lang/html';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { SyndicateRollup } from '../../rollup.js';
|
import { SyndicateRollup } from '../../rollup.js';
|
||||||
const r = new SyndicateRollup('syndicate-html', { globalName: 'SyndicateHtml' });
|
const r = new SyndicateRollup('syndicate-html', { globalName: 'SyndicateHtml' });
|
||||||
export default [
|
export default [
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/html, Browser-based UI for Syndicate
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
let nextId = 1;
|
let nextId = 1;
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/html, Browser-based UI for Syndicate
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { randomId, Facet, Observe, FlexMap, Value, embed, Embedded } from "@syndicate-lang/core";
|
import { randomId, Facet, Observe, FlexMap, Value, embed, Embedded } from "@syndicate-lang/core";
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/html, Browser-based UI for Syndicate
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// Message. Interest in this causes event listeners to be added for
|
// Message. Interest in this causes event listeners to be added for
|
||||||
// the given eventType to all nodes matching the given selector *at
|
// the given eventType to all nodes matching the given selector *at
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
require('../lib/maptool.js').main(process.argv.slice(2));
|
require('../lib/maptool.js').main(process.argv.slice(2));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
require('../lib/cli.js').main(process.argv.slice(2));
|
require('../lib/cli.js').main(process.argv.slice(2));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox, N } from './protocol.js';
|
import { BoxState, SetBox, N } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox } from './protocol.js';
|
import { BoxState, SetBox } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { N } from './protocol.js';
|
import { N } from './protocol.js';
|
||||||
activate import './box.js';
|
activate import './box.js';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export assertion type BoxState(value);
|
export assertion type BoxState(value);
|
||||||
export message type SetBox(newValue);
|
export message type SetBox(newValue);
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox, N } from './protocol.js';
|
import { BoxState, SetBox, N } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox } from './protocol.js';
|
import { BoxState, SetBox } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { N } from './protocol.js';
|
import { N } from './protocol.js';
|
||||||
activate import './box.js';
|
activate import './box.js';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export assertion type BoxState(value);
|
export assertion type BoxState(value);
|
||||||
export message type SetBox(newValue);
|
export message type SetBox(newValue);
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import yargs from 'yargs/yargs';
|
import yargs from 'yargs/yargs';
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import { SourceMap } from '@syndicate-lang/compiler/lib/syntax/index.js';
|
import { SourceMap } from '@syndicate-lang/compiler/lib/syntax/index.js';
|
||||||
import { Syntax } from '@syndicate-lang/compiler';
|
import { Syntax } from '@syndicate-lang/compiler';
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
export function dataURL(s: string): string {
|
export function dataURL(s: string): string {
|
||||||
return `data:application/json;base64,${Buffer.from(s).toString('base64')}`;
|
return `data:application/json;base64,${Buffer.from(s).toString('base64')}`;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { SyndicateRollup } from '../../rollup.js';
|
import { SyndicateRollup } from '../../rollup.js';
|
||||||
const r = new SyndicateRollup('syndicate-timer', { globalName: 'SyndicateTimer' });
|
const r = new SyndicateRollup('syndicate-timer', { globalName: 'SyndicateTimer' });
|
||||||
export default [
|
export default [
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/driver-timer, a Syndicate driver for time-related events.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2018 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { preserves, Observe, Dataspace, floatValue, Facet } from "@syndicate-lang/core";
|
import { preserves, Observe, Dataspace, floatValue, Facet } from "@syndicate-lang/core";
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox, N } from './protocol.js';
|
import { BoxState, SetBox, N } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox } from './protocol.js';
|
import { BoxState, SetBox } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { N } from './protocol.js';
|
import { N } from './protocol.js';
|
||||||
activate import './box.js';
|
activate import './box.js';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export assertion type BoxState(value);
|
export assertion type BoxState(value);
|
||||||
export message type SetBox(newValue);
|
export message type SetBox(newValue);
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import { compile, Syntax } from '@syndicate-lang/compiler';
|
import { compile, Syntax } from '@syndicate-lang/compiler';
|
||||||
import tslib from 'typescript/lib/tsserverlibrary';
|
import tslib from 'typescript/lib/tsserverlibrary';
|
||||||
import crypto from 'crypto';
|
import crypto from 'crypto';
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
require('../lib/tsc.js').main(process.argv.slice(2));
|
require('../lib/tsc.js').main(process.argv.slice(2));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import sourcemaps from 'rollup-plugin-sourcemaps';
|
import sourcemaps from 'rollup-plugin-sourcemaps';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox, N } from './protocol.js';
|
import { BoxState, SetBox, N } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { BoxState, SetBox } from './protocol.js';
|
import { BoxState, SetBox } from './protocol.js';
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
import { N } from './protocol.js';
|
import { N } from './protocol.js';
|
||||||
activate import './box.js';
|
activate import './box.js';
|
||||||
|
|
|
@ -1,20 +1,5 @@
|
||||||
//---------------------------------------------------------------------------
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
// @syndicate-lang/core, an implementation of Syndicate dataspaces for JS.
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
// Copyright (C) 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
||||||
//
|
|
||||||
// This program is free software: you can redistribute it and/or modify
|
|
||||||
// it under the terms of the GNU General Public License as published by
|
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
//---------------------------------------------------------------------------
|
|
||||||
|
|
||||||
export assertion type BoxState(value);
|
export assertion type BoxState(value);
|
||||||
export message type SetBox(newValue);
|
export message type SetBox(newValue);
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
/// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
||||||
|
|
||||||
import yargs from 'yargs/yargs';
|
import yargs from 'yargs/yargs';
|
||||||
|
|
||||||
import ts from 'typescript';
|
import ts from 'typescript';
|
||||||
|
|
Loading…
Reference in New Issue