@greenpandastudios/aug-cli 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/docs/assets/benchmarks/execution.svg +774 -637
- package/docs/assets/benchmarks/http.svg +278 -249
- package/docs/assets/benchmarks/improvements.svg +66 -66
- package/docs/assets/benchmarks/kernels-mobile.svg +1 -0
- package/docs/assets/benchmarks/kernels.svg +1 -0
- package/docs/assets/benchmarks/memory.svg +153 -153
- package/docs/benchmark-results.json +227089 -90363
- package/docs/compatibility.md +6 -6
- package/docs/contributing-benchmarks.md +36 -6
- package/docs/dev-containers.md +8 -15
- package/docs/dgx-consumers.json +122 -0
- package/docs/dgx-gyms.json +784 -0
- package/docs/dgx-kernels.json +1170 -0
- package/docs/dgx-performance.json +227849 -0
- package/docs/dgx-spark.md +64 -0
- package/docs/diagnostics.md +1 -1
- package/docs/docker.md +16 -17
- package/docs/example-projects.json +32 -0
- package/docs/examples/approved-design/dependencies/august/{0.20.1 → 0.21.0}/io/contracts.md +3 -3
- package/docs/examples/approved-design/domain/app.md +4 -4
- package/docs/examples/approved-design/main.md +2 -2
- package/docs/examples/calls-benchmark/index.md +36 -0
- package/docs/examples/calls-benchmark/main.md +78 -0
- package/docs/examples/calls-benchmark/operations.md +60 -0
- package/docs/examples/developer-workflow/calculator.md +5 -5
- package/docs/examples/developer-workflow/dependencies/august/{0.20.1 → 0.21.0}/io/contracts.md +3 -3
- package/docs/examples/developer-workflow/logging/console.md +2 -2
- package/docs/examples/developer-workflow/logging/logger.md +2 -2
- package/docs/examples/developer-workflow/main.md +2 -2
- package/docs/examples/errors-benchmark/index.md +36 -0
- package/docs/examples/errors-benchmark/main.md +92 -0
- package/docs/examples/errors-benchmark/operations.md +65 -0
- package/docs/examples/float-benchmark/index.md +35 -0
- package/docs/examples/float-benchmark/main.md +75 -0
- package/docs/examples/generic-di/dependencies/august/{0.20.1 → 0.21.0}/io/contracts.md +3 -3
- package/docs/examples/generic-di/main.md +2 -2
- package/docs/examples/generic-di/types.md +3 -3
- package/docs/examples/hello/app/greeter.md +3 -3
- package/docs/examples/hello/dependencies/august/{0.20.1 → 0.21.0}/io/contracts.md +3 -3
- package/docs/examples/hello/logging/console.md +2 -2
- package/docs/examples/hello/logging/logger.md +2 -2
- package/docs/examples/hello/main.md +2 -2
- package/docs/examples/index.md +18 -1
- package/docs/examples/interceptors/app.md +5 -5
- package/docs/examples/interceptors/dependencies/august/{0.20.1 → 0.21.0}/io/contracts.md +3 -3
- package/docs/examples/interceptors/interceptors.md +2 -2
- package/docs/examples/interceptors/logging.md +3 -3
- package/docs/examples/interceptors/main.md +2 -2
- package/docs/examples/list-benchmark/index.md +35 -0
- package/docs/examples/list-benchmark/main.md +78 -0
- package/docs/examples/map-churn-benchmark/index.md +35 -0
- package/docs/examples/map-churn-benchmark/main.md +106 -0
- package/docs/examples/native-blake3/dependencies/packages/@greenpandastudios/aug-blake3/0.1.3/api.md +104 -0
- package/docs/examples/native-blake3/dependencies/packages/@greenpandastudios/aug-blake3/0.1.3/contracts.md +54 -0
- package/docs/examples/native-blake3/dependencies/packages/@greenpandastudios/aug-blake3/0.1.3/native.abi-json.md +48 -0
- package/docs/examples/native-blake3/hashing.md +93 -0
- package/docs/examples/native-blake3/index.md +38 -0
- package/docs/examples/native-blake3/main.md +73 -0
- package/docs/examples/native-pytorch/dependencies/packages/@greenpandastudios/aug-pytorch/0.1.4/api.md +406 -0
- package/docs/examples/native-pytorch/dependencies/packages/@greenpandastudios/aug-pytorch/0.1.4/bindings.md +51 -0
- package/docs/examples/native-pytorch/dependencies/packages/@greenpandastudios/aug-pytorch/0.1.4/contracts.md +63 -0
- package/docs/examples/native-pytorch/dependencies/packages/@greenpandastudios/aug-pytorch/0.1.4/native.abi-json.md +161 -0
- package/docs/examples/native-pytorch/index.md +38 -0
- package/docs/examples/native-pytorch/main.md +73 -0
- package/docs/examples/native-pytorch/tensors.md +123 -0
- package/docs/examples/native-sqlite/database.md +116 -0
- package/docs/examples/native-sqlite/dependencies/packages/@greenpandastudios/aug-sqlite/0.1.3/api.md +284 -0
- package/docs/examples/native-sqlite/dependencies/packages/@greenpandastudios/aug-sqlite/0.1.3/bindings.md +51 -0
- package/docs/examples/native-sqlite/dependencies/packages/@greenpandastudios/aug-sqlite/0.1.3/contracts.md +75 -0
- package/docs/examples/native-sqlite/dependencies/packages/@greenpandastudios/aug-sqlite/0.1.3/native.abi-json.md +119 -0
- package/docs/examples/native-sqlite/index.md +38 -0
- package/docs/examples/native-sqlite/main.md +73 -0
- package/docs/examples/native-zlib/compression.md +99 -0
- package/docs/examples/native-zlib/dependencies/packages/@greenpandastudios/aug-zlib/0.1.3/api.md +153 -0
- package/docs/examples/native-zlib/dependencies/packages/@greenpandastudios/aug-zlib/0.1.3/contracts.md +54 -0
- package/docs/examples/native-zlib/dependencies/packages/@greenpandastudios/aug-zlib/0.1.3/native.abi-json.md +76 -0
- package/docs/examples/native-zlib/index.md +38 -0
- package/docs/examples/native-zlib/main.md +78 -0
- package/docs/examples/new-syntax/console.md +2 -2
- package/docs/examples/new-syntax/dependencies/august/{0.20.1 → 0.21.0}/io/contracts.md +3 -3
- package/docs/examples/new-syntax/greeter.md +3 -3
- package/docs/examples/new-syntax/logger.md +2 -2
- package/docs/examples/new-syntax/main.md +2 -2
- package/docs/examples/ownership-transfer/dependencies/august/{0.20.1 → 0.21.0}/io/contracts.md +3 -3
- package/docs/examples/ownership-transfer/main.md +2 -2
- package/docs/examples/ownership-transfer/resource.md +2 -2
- package/docs/examples/packages-math/aug-package-json.md +1 -1
- package/docs/examples/records-benchmark/data.md +55 -0
- package/docs/examples/records-benchmark/index.md +36 -0
- package/docs/examples/records-benchmark/main.md +85 -0
- package/docs/examples/strings-benchmark/index.md +35 -0
- package/docs/examples/strings-benchmark/main.md +76 -0
- package/docs/examples/tasks-benchmark/index.md +36 -0
- package/docs/examples/tasks-benchmark/main.md +89 -0
- package/docs/examples/tasks-benchmark/operations.md +58 -0
- package/docs/getting-started.md +3 -3
- package/docs/grammar.md +2 -2
- package/docs/gym-results.json +784 -0
- package/docs/implementation-map.md +6 -0
- package/docs/index.md +1 -1
- package/docs/kernel-results.json +1170 -0
- package/docs/language-conformance.md +6 -0
- package/docs/language-constructs.md +9 -1
- package/docs/learn/index.md +1 -1
- package/docs/maintaining-docs.md +1 -1
- package/docs/native-implementation.md +276 -0
- package/docs/native-interop-llvm-plan.md +342 -0
- package/docs/native-package-examples.md +684 -0
- package/docs/native-packages.md +179 -0
- package/docs/packages.md +2 -2
- package/docs/performance.md +50 -29
- package/docs/production-readiness.md +11 -1
- package/docs/public/downloads/approved-design.zip +0 -0
- package/docs/public/downloads/calls-benchmark.zip +0 -0
- package/docs/public/downloads/developer-workflow.zip +0 -0
- package/docs/public/downloads/errors-benchmark.zip +0 -0
- package/docs/public/downloads/float-benchmark.zip +0 -0
- package/docs/public/downloads/generic-di.zip +0 -0
- package/docs/public/downloads/hello.zip +0 -0
- package/docs/public/downloads/interceptors.zip +0 -0
- package/docs/public/downloads/json-benchmark.zip +0 -0
- package/docs/public/downloads/list-benchmark.zip +0 -0
- package/docs/public/downloads/map-churn-benchmark.zip +0 -0
- package/docs/public/downloads/native-blake3.zip +0 -0
- package/docs/public/downloads/native-pytorch.zip +0 -0
- package/docs/public/downloads/native-sqlite.zip +0 -0
- package/docs/public/downloads/native-zlib.zip +0 -0
- package/docs/public/downloads/new-syntax.zip +0 -0
- package/docs/public/downloads/oidc-login.zip +0 -0
- package/docs/public/downloads/ownership-transfer.zip +0 -0
- package/docs/public/downloads/packages-app.zip +0 -0
- package/docs/public/downloads/packages-math.zip +0 -0
- package/docs/public/downloads/records-benchmark.zip +0 -0
- package/docs/public/downloads/strings-benchmark.zip +0 -0
- package/docs/public/downloads/tasks-benchmark.zip +0 -0
- package/docs/qualification-results.md +66 -0
- package/docs/reference.md +24 -0
- package/docs/releasing.md +81 -6
- package/docs/research/libtorch-native-qualification.md +115 -0
- package/docs/research/native-interop-llvm.md +197 -0
- package/docs/research/qualification-methods.md +15 -0
- package/docs/roadmap.md +1 -0
- package/docs/safety-gyms.md +41 -0
- package/docs/tooling.md +16 -15
- package/docs/web-library-gaps.md +1 -1
- package/docs/web.md +4 -0
- package/examples/approved-design/.aug-spec/manifest.json +3 -3
- package/examples/approved-design/domain/app.aug.md +4 -4
- package/examples/approved-design/main.aug.md +2 -2
- package/examples/developer-workflow/.aug-spec/manifest.json +3 -3
- package/examples/developer-workflow/calculator.aug.md +5 -5
- package/examples/developer-workflow/logging/console.aug.md +2 -2
- package/examples/developer-workflow/logging/logger.aug.md +2 -2
- package/examples/developer-workflow/main.aug.md +2 -2
- package/examples/generic-di/.aug-spec/manifest.json +3 -3
- package/examples/generic-di/main.aug.md +2 -2
- package/examples/generic-di/types.aug.md +3 -3
- package/examples/hello/.aug-spec/manifest.json +3 -3
- package/examples/hello/app/greeter.aug.md +3 -3
- package/examples/hello/logging/console.aug.md +2 -2
- package/examples/hello/logging/logger.aug.md +2 -2
- package/examples/hello/main.aug.md +2 -2
- package/examples/interceptors/.aug-spec/manifest.json +3 -3
- package/examples/interceptors/app.aug.md +5 -5
- package/examples/interceptors/interceptors.aug.md +2 -2
- package/examples/interceptors/logging.aug.md +3 -3
- package/examples/interceptors/main.aug.md +2 -2
- package/examples/native-blake3/.aug-spec/manifest.json +16 -0
- package/examples/native-blake3/.aug-spec/packages/@greenpandastudios/aug-blake3/0.1.1/native.abi.json +29 -0
- package/examples/native-blake3/.aug-spec/packages/@greenpandastudios/aug-blake3/0.1.3/api.aug +14 -0
- package/examples/native-blake3/.aug-spec/packages/@greenpandastudios/aug-blake3/0.1.3/api.aug.md +34 -0
- package/examples/native-blake3/.aug-spec/packages/@greenpandastudios/aug-blake3/0.1.3/contracts.aug +4 -0
- package/examples/native-blake3/.aug-spec/packages/@greenpandastudios/aug-blake3/0.1.3/contracts.aug.md +8 -0
- package/examples/native-blake3/.aug-spec/packages/@greenpandastudios/aug-blake3/0.1.3/native.abi.json +29 -0
- package/examples/native-blake3/AGENTS.md +5 -0
- package/examples/native-blake3/aug.lock.json +253 -0
- package/examples/native-blake3/hashing.aug +11 -0
- package/examples/native-blake3/hashing.aug.md +25 -0
- package/examples/native-blake3/main.aug +8 -0
- package/examples/native-blake3/main.aug.md +13 -0
- package/examples/native-pytorch/.aug-spec/manifest.json +18 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.1/native.abi.json +142 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.3/native.abi.json +142 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.4/api.aug +101 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.4/api.aug.md +160 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.4/bindings.aug +3 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.4/bindings.aug.md +8 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.4/contracts.aug +6 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.4/contracts.aug.md +13 -0
- package/examples/native-pytorch/.aug-spec/packages/@greenpandastudios/aug-pytorch/0.1.4/native.abi.json +142 -0
- package/examples/native-pytorch/AGENTS.md +5 -0
- package/examples/native-pytorch/aug.lock.json +309 -0
- package/examples/native-pytorch/main.aug +8 -0
- package/examples/native-pytorch/main.aug.md +13 -0
- package/examples/native-pytorch/tensors.aug +23 -0
- package/examples/native-pytorch/tensors.aug.md +35 -0
- package/examples/native-sqlite/.aug-spec/manifest.json +18 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.2/native.abi.json +100 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.3/api.aug +48 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.3/api.aug.md +91 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.3/bindings.aug +3 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.3/bindings.aug.md +8 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.3/contracts.aug +8 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.3/contracts.aug.md +22 -0
- package/examples/native-sqlite/.aug-spec/packages/@greenpandastudios/aug-sqlite/0.1.3/native.abi.json +100 -0
- package/examples/native-sqlite/AGENTS.md +5 -0
- package/examples/native-sqlite/aug.lock.json +236 -0
- package/examples/native-sqlite/database.aug +15 -0
- package/examples/native-sqlite/database.aug.md +27 -0
- package/examples/native-sqlite/main.aug +8 -0
- package/examples/native-sqlite/main.aug.md +13 -0
- package/examples/native-zlib/.aug-spec/manifest.json +16 -0
- package/examples/native-zlib/.aug-spec/packages/@greenpandastudios/aug-zlib/0.1.1/native.abi.json +57 -0
- package/examples/native-zlib/.aug-spec/packages/@greenpandastudios/aug-zlib/0.1.3/api.aug +29 -0
- package/examples/native-zlib/.aug-spec/packages/@greenpandastudios/aug-zlib/0.1.3/api.aug.md +54 -0
- package/examples/native-zlib/.aug-spec/packages/@greenpandastudios/aug-zlib/0.1.3/contracts.aug +4 -0
- package/examples/native-zlib/.aug-spec/packages/@greenpandastudios/aug-zlib/0.1.3/contracts.aug.md +8 -0
- package/examples/native-zlib/.aug-spec/packages/@greenpandastudios/aug-zlib/0.1.3/native.abi.json +57 -0
- package/examples/native-zlib/AGENTS.md +5 -0
- package/examples/native-zlib/aug.lock.json +236 -0
- package/examples/native-zlib/compression.aug +15 -0
- package/examples/native-zlib/compression.aug.md +27 -0
- package/examples/native-zlib/main.aug +10 -0
- package/examples/native-zlib/main.aug.md +13 -0
- package/examples/new-syntax/.aug-spec/manifest.json +3 -3
- package/examples/new-syntax/console.aug.md +2 -2
- package/examples/new-syntax/greeter.aug.md +3 -3
- package/examples/new-syntax/logger.aug.md +2 -2
- package/examples/new-syntax/main.aug.md +2 -2
- package/examples/oidc-login/aug.lock.json +6 -6
- package/examples/ownership-transfer/.aug-spec/manifest.json +3 -3
- package/examples/ownership-transfer/main.aug.md +2 -2
- package/examples/ownership-transfer/resource.aug.md +2 -2
- package/examples/packages/math/aug-package.json +1 -1
- package/native/compiler-packs.json +43 -0
- package/package.json +3 -2
- package/runtime/aug_http.c +48 -21
- package/runtime/aug_http_ir.c +30 -0
- package/runtime/aug_http_ir.h +18 -0
- package/runtime/aug_ir.c +209 -0
- package/runtime/aug_ir.h +89 -0
- package/runtime/aug_json.c +6 -1
- package/runtime/aug_runtime.c +82 -16
- package/runtime/aug_runtime.h +16 -2
- package/runtime/aug_tasks.c +38 -7
- package/runtime/aug_values.c +12 -6
- package/scripts/bootstrap-native.mjs +4 -1
- package/src/ast.js +1 -1
- package/src/checker.js +110 -28
- package/src/cli.js +92 -14
- package/src/codegen.js +31 -6
- package/src/compiler-packs.js +66 -0
- package/src/config.js +2 -2
- package/src/editor.js +15 -6
- package/src/formatter.js +4 -2
- package/src/git-http.js +137 -0
- package/src/git-packages.js +9 -1
- package/src/help.js +10 -2
- package/src/ir-types.js +5 -0
- package/src/ir-verify.js +277 -0
- package/src/ir.js +962 -0
- package/src/llvm-debug.js +101 -0
- package/src/llvm-native.js +152 -0
- package/src/llvm-platform.js +20 -0
- package/src/llvm.js +781 -0
- package/src/native-artifacts.js +207 -0
- package/src/native-bindings.js +189 -0
- package/src/native-contracts.js +295 -0
- package/src/native-declarations.js +68 -0
- package/src/native-facts.js +63 -0
- package/src/package-locking.js +43 -0
- package/src/package-manager.js +23 -8
- package/src/parser.js +20 -2
- package/src/project.js +2 -2
- package/src/runtime-abi.js +23 -0
- package/src/runtime-adapters.js +18 -0
- package/src/schemas.js +24 -17
- package/src/semantic.js +8 -3
- package/src/snippets.js +1 -0
- package/src/spec.js +49 -8
- /package/examples/approved-design/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug +0 -0
- /package/examples/approved-design/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug.md +0 -0
- /package/examples/developer-workflow/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug +0 -0
- /package/examples/developer-workflow/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug.md +0 -0
- /package/examples/generic-di/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug +0 -0
- /package/examples/generic-di/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug.md +0 -0
- /package/examples/hello/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug +0 -0
- /package/examples/hello/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug.md +0 -0
- /package/examples/interceptors/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug +0 -0
- /package/examples/interceptors/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug.md +0 -0
- /package/examples/new-syntax/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug +0 -0
- /package/examples/new-syntax/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug.md +0 -0
- /package/examples/ownership-transfer/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug +0 -0
- /package/examples/ownership-transfer/.aug-spec/august/{0.20.1 → 0.21.0}/io/contracts.aug.md +0 -0
package/examples/native-zlib/.aug-spec/packages/@greenpandastudios/aug-zlib/0.1.3/native.abi.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"profile": "aug-native-abi-1",
|
|
4
|
+
"resources": [],
|
|
5
|
+
"functions": [
|
|
6
|
+
{
|
|
7
|
+
"module": "api",
|
|
8
|
+
"name": "_compress",
|
|
9
|
+
"symbol": "aug_zlib_compress_v1",
|
|
10
|
+
"params": [
|
|
11
|
+
{
|
|
12
|
+
"name": "input",
|
|
13
|
+
"kind": "bytes"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"result": {
|
|
17
|
+
"kind": "bytes",
|
|
18
|
+
"release": "aug_zlib_release_v1"
|
|
19
|
+
},
|
|
20
|
+
"error": "contracts.CompressionError",
|
|
21
|
+
"callingConvention": "C",
|
|
22
|
+
"status": "i32",
|
|
23
|
+
"uses": [],
|
|
24
|
+
"changes": [],
|
|
25
|
+
"thread": "caller",
|
|
26
|
+
"retainsInputs": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"module": "api",
|
|
30
|
+
"name": "_decompress",
|
|
31
|
+
"symbol": "aug_zlib_decompress_v1",
|
|
32
|
+
"params": [
|
|
33
|
+
{
|
|
34
|
+
"name": "input",
|
|
35
|
+
"kind": "bytes"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "maximumOutput",
|
|
39
|
+
"kind": "i64",
|
|
40
|
+
"minimum": 0,
|
|
41
|
+
"maximum": 268435456
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"result": {
|
|
45
|
+
"kind": "bytes",
|
|
46
|
+
"release": "aug_zlib_release_v1"
|
|
47
|
+
},
|
|
48
|
+
"error": "contracts.CompressionError",
|
|
49
|
+
"callingConvention": "C",
|
|
50
|
+
"status": "i32",
|
|
51
|
+
"uses": [],
|
|
52
|
+
"changes": [],
|
|
53
|
+
"thread": "caller",
|
|
54
|
+
"retainsInputs": false
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Working on this August project
|
|
2
|
+
|
|
3
|
+
Read each file's adjacent `.aug.md` before editing; change `.aug` source and regenerate with `aug spec .`.
|
|
4
|
+
This project imports real zlib through a tagged public package. Keep dependency versions and the decompressed output bound explicit. Do not replace native operations with a mock.
|
|
5
|
+
Use the August 0.21.0 LLVM preview on macOS 14+ ARM64. Run `aug install .`, `aug check .`, `aug test .`, and `aug run .`. Consumer installation must not invoke native build scripts.
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"compiler": "0.21.0",
|
|
4
|
+
"specifications": {
|
|
5
|
+
"url_d228d2263a1adea428cd": "https://github.com/GreenPandaStudios/aug-zlib#v0.1.3"
|
|
6
|
+
},
|
|
7
|
+
"roots": {
|
|
8
|
+
"url_d228d2263a1adea428cd": "packages/url_d228d2263a1adea428cd"
|
|
9
|
+
},
|
|
10
|
+
"npm": {},
|
|
11
|
+
"git": [
|
|
12
|
+
{
|
|
13
|
+
"request": "https://github.com/GreenPandaStudios/aug-zlib#v0.1.3",
|
|
14
|
+
"repository": "https://github.com/GreenPandaStudios/aug-zlib.git",
|
|
15
|
+
"revision": "v0.1.3",
|
|
16
|
+
"folder": "",
|
|
17
|
+
"commit": "827a8dde5d0d013d00fff6a2a19036b299d0085f"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"packages": [
|
|
21
|
+
{
|
|
22
|
+
"path": "packages/url_d228d2263a1adea428cd",
|
|
23
|
+
"name": "@greenpandastudios/aug-zlib",
|
|
24
|
+
"version": "0.1.3",
|
|
25
|
+
"source": "src",
|
|
26
|
+
"digest": "655984ba9c26061fb89b2dbc9764a114926c1b5e1bce1fb1ff0b4f0283aab74b",
|
|
27
|
+
"dependencies": {},
|
|
28
|
+
"native": {
|
|
29
|
+
"profile": "aug-native-abi-1",
|
|
30
|
+
"bindings": "native.abi.json",
|
|
31
|
+
"bindingsSha256": "c3d4b36eadcccd13caff71597ed77a8e7307f0cfe3d13660a8e9127efe942b3d",
|
|
32
|
+
"upstream": {
|
|
33
|
+
"repository": "https://github.com/madler/zlib",
|
|
34
|
+
"version": "1.3.2",
|
|
35
|
+
"sourceRevision": "bb329a0a2cd0274d05519d61c667c062e06990d72e125ee2dfa8de64f0119d16"
|
|
36
|
+
},
|
|
37
|
+
"artifacts": [
|
|
38
|
+
{
|
|
39
|
+
"id": "linux-arm64",
|
|
40
|
+
"target": {
|
|
41
|
+
"triple": "aarch64-unknown-linux-gnu",
|
|
42
|
+
"os": "linux",
|
|
43
|
+
"arch": "arm64",
|
|
44
|
+
"minimumLibc": "2.36",
|
|
45
|
+
"cpuBaseline": "armv8-a",
|
|
46
|
+
"libc": "glibc"
|
|
47
|
+
},
|
|
48
|
+
"url": "https://github.com/GreenPandaStudios/aug-zlib/releases/download/v0.1.3/native-linux-arm64.tar.gz",
|
|
49
|
+
"sha256": "6da832fa341a1fba96643244da2bb63957107d2b1413743c363fca002e500c66",
|
|
50
|
+
"maximumDownloadBytes": 101094,
|
|
51
|
+
"maximumUnpackedBytes": 248063,
|
|
52
|
+
"link": {
|
|
53
|
+
"kind": "dynamic",
|
|
54
|
+
"libraries": [
|
|
55
|
+
"lib/libaug_zlib.so.1"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"runtime": {
|
|
59
|
+
"files": [
|
|
60
|
+
"lib/libaug_zlib.so.1"
|
|
61
|
+
],
|
|
62
|
+
"closureManifest": "runtime-files.json",
|
|
63
|
+
"relocation": "loader-relative"
|
|
64
|
+
},
|
|
65
|
+
"components": [
|
|
66
|
+
{
|
|
67
|
+
"id": "https://github.com/madler/zlib",
|
|
68
|
+
"version": "1.3.2",
|
|
69
|
+
"compatibilityKey": "aug-zlib-runtime",
|
|
70
|
+
"linkage": "static",
|
|
71
|
+
"required": true
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"fileManifest": "files.json",
|
|
75
|
+
"provenance": "provenance.json",
|
|
76
|
+
"notices": "THIRD_PARTY_NOTICES.md"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"id": "linux-x64",
|
|
80
|
+
"target": {
|
|
81
|
+
"triple": "x86_64-unknown-linux-gnu",
|
|
82
|
+
"os": "linux",
|
|
83
|
+
"arch": "x64",
|
|
84
|
+
"minimumLibc": "2.36",
|
|
85
|
+
"cpuBaseline": "x86-64",
|
|
86
|
+
"libc": "glibc"
|
|
87
|
+
},
|
|
88
|
+
"url": "https://github.com/GreenPandaStudios/aug-zlib/releases/download/v0.1.3/native-linux-x64.tar.gz",
|
|
89
|
+
"sha256": "c2a6e6522e3a96e1ee99f1b195f7457a7ab633dc05b65a29020aa5ea1ec7aa5d",
|
|
90
|
+
"maximumDownloadBytes": 109033,
|
|
91
|
+
"maximumUnpackedBytes": 205301,
|
|
92
|
+
"link": {
|
|
93
|
+
"kind": "dynamic",
|
|
94
|
+
"libraries": [
|
|
95
|
+
"lib/libaug_zlib.so.1"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"runtime": {
|
|
99
|
+
"files": [
|
|
100
|
+
"lib/libaug_zlib.so.1"
|
|
101
|
+
],
|
|
102
|
+
"closureManifest": "runtime-files.json",
|
|
103
|
+
"relocation": "loader-relative"
|
|
104
|
+
},
|
|
105
|
+
"components": [
|
|
106
|
+
{
|
|
107
|
+
"id": "https://github.com/madler/zlib",
|
|
108
|
+
"version": "1.3.2",
|
|
109
|
+
"compatibilityKey": "aug-zlib-runtime",
|
|
110
|
+
"linkage": "static",
|
|
111
|
+
"required": true
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"fileManifest": "files.json",
|
|
115
|
+
"provenance": "provenance.json",
|
|
116
|
+
"notices": "THIRD_PARTY_NOTICES.md"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "macos-arm64",
|
|
120
|
+
"target": {
|
|
121
|
+
"triple": "aarch64-apple-darwin",
|
|
122
|
+
"os": "macos",
|
|
123
|
+
"arch": "arm64",
|
|
124
|
+
"minimumOS": "14.0",
|
|
125
|
+
"cpuBaseline": "armv8-a",
|
|
126
|
+
"libc": "libSystem"
|
|
127
|
+
},
|
|
128
|
+
"url": "https://github.com/GreenPandaStudios/aug-zlib/releases/download/v0.1.3/native-macos-arm64.tar.gz",
|
|
129
|
+
"sha256": "62419afbf81826f939e89be6c025781edb0cae4fe60e43736b2d3fa9fdf28dd4",
|
|
130
|
+
"maximumDownloadBytes": 39969,
|
|
131
|
+
"maximumUnpackedBytes": 106060,
|
|
132
|
+
"link": {
|
|
133
|
+
"kind": "dynamic",
|
|
134
|
+
"libraries": [
|
|
135
|
+
"lib/libaug_zlib.1.dylib"
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
"runtime": {
|
|
139
|
+
"files": [
|
|
140
|
+
"lib/libaug_zlib.1.dylib"
|
|
141
|
+
],
|
|
142
|
+
"closureManifest": "runtime-files.json",
|
|
143
|
+
"relocation": "loader-relative"
|
|
144
|
+
},
|
|
145
|
+
"components": [
|
|
146
|
+
{
|
|
147
|
+
"id": "https://github.com/madler/zlib",
|
|
148
|
+
"version": "1.3.2",
|
|
149
|
+
"compatibilityKey": "aug-zlib-runtime",
|
|
150
|
+
"linkage": "static",
|
|
151
|
+
"required": true
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"fileManifest": "files.json",
|
|
155
|
+
"provenance": "provenance.json",
|
|
156
|
+
"notices": "THIRD_PARTY_NOTICES.md"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"sourceBuild": {
|
|
160
|
+
"recipe": "native/build.json",
|
|
161
|
+
"inputs": "native/sources.lock.json",
|
|
162
|
+
"tools": [
|
|
163
|
+
"Node 24+",
|
|
164
|
+
"Clang",
|
|
165
|
+
"macOS: Apple SDK",
|
|
166
|
+
"GNU/Linux: Docker with the pinned Debian 12 maintainer image and patchelf"
|
|
167
|
+
],
|
|
168
|
+
"automatic": false
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"native": {
|
|
174
|
+
"format": 1,
|
|
175
|
+
"targets": {
|
|
176
|
+
"aarch64-apple-darwin/macos14": {
|
|
177
|
+
"target": {
|
|
178
|
+
"triple": "aarch64-apple-darwin",
|
|
179
|
+
"os": "macos",
|
|
180
|
+
"arch": "arm64",
|
|
181
|
+
"cpuBaseline": "armv8-a",
|
|
182
|
+
"libc": "libSystem",
|
|
183
|
+
"minimumOS": "26.0"
|
|
184
|
+
},
|
|
185
|
+
"packages": [
|
|
186
|
+
{
|
|
187
|
+
"sourcePackage": "@greenpandastudios/aug-zlib@0.1.3",
|
|
188
|
+
"sourceDigest": "655984ba9c26061fb89b2dbc9764a114926c1b5e1bce1fb1ff0b4f0283aab74b",
|
|
189
|
+
"sourceCommit": "827a8dde5d0d013d00fff6a2a19036b299d0085f",
|
|
190
|
+
"contractSha256": "c3d4b36eadcccd13caff71597ed77a8e7307f0cfe3d13660a8e9127efe942b3d",
|
|
191
|
+
"artifact": {
|
|
192
|
+
"id": "macos-arm64",
|
|
193
|
+
"target": {
|
|
194
|
+
"triple": "aarch64-apple-darwin",
|
|
195
|
+
"os": "macos",
|
|
196
|
+
"arch": "arm64",
|
|
197
|
+
"minimumOS": "14.0",
|
|
198
|
+
"cpuBaseline": "armv8-a",
|
|
199
|
+
"libc": "libSystem"
|
|
200
|
+
},
|
|
201
|
+
"url": "https://github.com/GreenPandaStudios/aug-zlib/releases/download/v0.1.3/native-macos-arm64.tar.gz",
|
|
202
|
+
"sha256": "62419afbf81826f939e89be6c025781edb0cae4fe60e43736b2d3fa9fdf28dd4",
|
|
203
|
+
"maximumDownloadBytes": 39969,
|
|
204
|
+
"maximumUnpackedBytes": 106060,
|
|
205
|
+
"link": {
|
|
206
|
+
"kind": "dynamic",
|
|
207
|
+
"libraries": [
|
|
208
|
+
"lib/libaug_zlib.1.dylib"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"runtime": {
|
|
212
|
+
"files": [
|
|
213
|
+
"lib/libaug_zlib.1.dylib"
|
|
214
|
+
],
|
|
215
|
+
"closureManifest": "runtime-files.json",
|
|
216
|
+
"relocation": "loader-relative"
|
|
217
|
+
},
|
|
218
|
+
"components": [
|
|
219
|
+
{
|
|
220
|
+
"id": "https://github.com/madler/zlib",
|
|
221
|
+
"version": "1.3.2",
|
|
222
|
+
"compatibilityKey": "aug-zlib-runtime",
|
|
223
|
+
"linkage": "static",
|
|
224
|
+
"required": true
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
"fileManifest": "files.json",
|
|
228
|
+
"provenance": "provenance.json",
|
|
229
|
+
"notices": "THIRD_PARTY_NOTICES.md"
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// aug-spec: "compression.aug.md" explains this file. Read it before changes; refresh with aug spec.
|
|
2
|
+
import CompressionError and compress and decompress from "https://github.com/GreenPandaStudios/aug-zlib#v0.1.3"
|
|
3
|
+
|
|
4
|
+
/** Compress text with zlib, then restore its bytes within a fixed output limit. */
|
|
5
|
+
roundTrip() returns Bytes unless CompressionError:
|
|
6
|
+
Bytes input = "The world runs on language".bytes()
|
|
7
|
+
Bytes compressed = compress(input)
|
|
8
|
+
return decompress(input=compressed, maximumOutput=4096)
|
|
9
|
+
|
|
10
|
+
test roundTrip:
|
|
11
|
+
when compression:
|
|
12
|
+
it preserves_the_original_bytes:
|
|
13
|
+
Bytes restored = roundTrip()
|
|
14
|
+
assert(restored.text() == "The world runs on language")
|
|
15
|
+
assert(restored.length() == 26)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!-- Generated by aug spec. Edit the August source, then regenerate. -->
|
|
2
|
+
|
|
3
|
+
# `compression.aug`
|
|
4
|
+
|
|
5
|
+
<a id="symbol-roundTrip"></a>
|
|
6
|
+
## `roundTrip` · [source](compression.aug#L5)
|
|
7
|
+
|
|
8
|
+
Compress text with zlib, then restore its bytes within a fixed output limit. Failures can raise [`CompressionError`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/contracts.aug.md#symbol-CompressionError).
|
|
9
|
+
|
|
10
|
+
It sets `input` of type `Bytes` to the UTF-8 bytes of `"The world runs on language"`. It sets `compressed` of type `Bytes` to [`compress`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/api.aug.md#symbol-compress) with `input`. It returns [`decompress`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/api.aug.md#symbol-decompress) with `input` from `compressed` and `maximumOutput` `4096`.
|
|
11
|
+
|
|
12
|
+
<a id="symbol-test roundTrip"></a>
|
|
13
|
+
## `test roundTrip` · [source](compression.aug#L10)
|
|
14
|
+
|
|
15
|
+
Tests [`roundTrip`](compression.aug.md#symbol-roundTrip). Each case gets fresh setup and dependencies.
|
|
16
|
+
|
|
17
|
+
### `compression`
|
|
18
|
+
|
|
19
|
+
#### `preserves_the_original_bytes` · [source](compression.aug#L12)
|
|
20
|
+
|
|
21
|
+
It gets `restored` of type `Bytes` from [`roundTrip`](compression.aug.md#symbol-roundTrip). The test requires `restored.text` equals `"The world runs on language"`. The test requires the byte length of `restored` equals `26`.
|
|
22
|
+
|
|
23
|
+
## Dependencies
|
|
24
|
+
|
|
25
|
+
It uses [`compress`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/api.aug.md#symbol-compress), [`decompress`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/api.aug.md#symbol-decompress), and [`CompressionError`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/contracts.aug.md#symbol-CompressionError) from `https://github.com/GreenPandaStudios/aug-zlib#v0.1.3`.
|
|
26
|
+
|
|
27
|
+
Built-in operations follow the [language reference](https://greenpandastudios.github.io/augscript/language-constructs).
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// aug-spec: "main.aug.md" explains this file. Read it before changes; refresh with aug spec.
|
|
2
|
+
import roundTrip from compression
|
|
3
|
+
import CompressionError from "https://github.com/GreenPandaStudios/aug-zlib#v0.1.3"
|
|
4
|
+
|
|
5
|
+
try:
|
|
6
|
+
print(value=roundTrip().text())
|
|
7
|
+
catch CompressionError error:
|
|
8
|
+
print(value=error.message)
|
|
9
|
+
catch ConversionError error:
|
|
10
|
+
print(value="Invalid UTF-8")
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Generated by aug spec. Edit the August source, then regenerate. -->
|
|
2
|
+
|
|
3
|
+
# `main.aug`
|
|
4
|
+
|
|
5
|
+
## Startup
|
|
6
|
+
|
|
7
|
+
It prints `text` on [`roundTrip`](compression.aug.md#symbol-roundTrip). If this work raises [`CompressionError`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/contracts.aug.md#symbol-CompressionError) as `error`, it prints `error.message`. If this work raises `ConversionError`, it prints `"Invalid UTF-8"`.
|
|
8
|
+
|
|
9
|
+
## Dependencies
|
|
10
|
+
|
|
11
|
+
It uses [`CompressionError`](.aug-spec/packages/%40greenpandastudios/aug-zlib/0.1.3/contracts.aug.md#symbol-CompressionError) (`message`) from `https://github.com/GreenPandaStudios/aug-zlib#v0.1.3`. It uses [`roundTrip`](compression.aug.md#symbol-roundTrip) from `compression`.
|
|
12
|
+
|
|
13
|
+
Built-in operations follow the [language reference](https://greenpandastudios.github.io/augscript/language-constructs).
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"files": [
|
|
4
|
-
".aug-spec/august/0.
|
|
5
|
-
".aug-spec/august/0.
|
|
4
|
+
".aug-spec/august/0.21.0/io/contracts.aug",
|
|
5
|
+
".aug-spec/august/0.21.0/io/contracts.aug.md",
|
|
6
6
|
"console.aug.md",
|
|
7
7
|
"greeter.aug.md",
|
|
8
8
|
"logger.aug.md",
|
|
9
9
|
"main.aug.md",
|
|
10
10
|
"math.aug.md"
|
|
11
11
|
],
|
|
12
|
-
"digest": "
|
|
12
|
+
"digest": "c305bf94b978c4d77a15fc4420051b9355df571964d02ee845ed0caf943184f0"
|
|
13
13
|
}
|
|
@@ -10,8 +10,8 @@ It implements [`Logger`](logger.aug.md#symbol-Logger).
|
|
|
10
10
|
<a id="symbol-ConsoleLogger.log"></a>
|
|
11
11
|
### `ConsoleLogger.log` · [source](console.aug#L5)
|
|
12
12
|
|
|
13
|
-
It takes `message` as a string (Text to display). It gets `console` ([`Console`](.aug-spec/august/0.
|
|
13
|
+
It takes `message` as a string (Text to display). It gets `console` ([`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console)) from dependency injection. It passes `message` to [`console.write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write).
|
|
14
14
|
|
|
15
15
|
## Dependencies
|
|
16
16
|
|
|
17
|
-
It uses [`Console`](.aug-spec/august/0.
|
|
17
|
+
It uses [`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console) ([`write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write)) from `august.io`. It uses [`Logger`](logger.aug.md#symbol-Logger) from `logger`.
|
|
@@ -10,7 +10,7 @@ It implements [`IGreeter`](greeter.aug.md#symbol-IGreeter). It takes `x` as an i
|
|
|
10
10
|
<a id="symbol-Greeter.greet"></a>
|
|
11
11
|
### `Greeter.greet` · [source](greeter.aug#L5)
|
|
12
12
|
|
|
13
|
-
It takes `name` as a string. It gets `console` ([`Console`](.aug-spec/august/0.
|
|
13
|
+
It takes `name` as a string. It gets `console` ([`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console)) from dependency injection. It passes the text `Hello, {name}!` to [`logger.log`](logger.aug.md#symbol-Logger.log), using injected `console`.
|
|
14
14
|
|
|
15
15
|
<a id="symbol-IGreeter"></a>
|
|
16
16
|
## `IGreeter` · interface · [source](greeter.aug#L9)
|
|
@@ -18,8 +18,8 @@ It takes `name` as a string. It gets `console` ([`Console`](.aug-spec/august/0.2
|
|
|
18
18
|
<a id="symbol-IGreeter.greet"></a>
|
|
19
19
|
### `IGreeter.greet` · [source](greeter.aug#L10)
|
|
20
20
|
|
|
21
|
-
It takes `name` as a string. It gets `console` ([`Console`](.aug-spec/august/0.
|
|
21
|
+
It takes `name` as a string. It gets `console` ([`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console)) from dependency injection. It can call [`Console.write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write).
|
|
22
22
|
|
|
23
23
|
## Dependencies
|
|
24
24
|
|
|
25
|
-
It uses [`Console`](.aug-spec/august/0.
|
|
25
|
+
It uses [`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console) ([`write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write)) from `august.io`. It uses [`Logger`](logger.aug.md#symbol-Logger) ([`log`](logger.aug.md#symbol-Logger.log)) from `logger`.
|
|
@@ -10,8 +10,8 @@ Displays application messages.
|
|
|
10
10
|
<a id="symbol-Logger.log"></a>
|
|
11
11
|
### `Logger.log` · [source](logger.aug#L6)
|
|
12
12
|
|
|
13
|
-
It takes `message` as a string (Text to display). It gets `console` ([`Console`](.aug-spec/august/0.
|
|
13
|
+
It takes `message` as a string (Text to display). It gets `console` ([`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console)) from dependency injection. It can call [`Console.write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write).
|
|
14
14
|
|
|
15
15
|
## Dependencies
|
|
16
16
|
|
|
17
|
-
It uses [`Console`](.aug-spec/august/0.
|
|
17
|
+
It uses [`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console) ([`write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write)) from `august.io`.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Providers
|
|
6
6
|
|
|
7
|
-
`Console` is provided by [`SystemConsole`](.aug-spec/august/0.
|
|
7
|
+
`Console` is provided by [`SystemConsole`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-SystemConsole). The same instance is shared. `Logger` is provided by [`ConsoleLogger`](console.aug.md#symbol-ConsoleLogger). The same instance is shared.
|
|
8
8
|
|
|
9
9
|
## Startup
|
|
10
10
|
|
|
@@ -14,6 +14,6 @@ It prints `count`.
|
|
|
14
14
|
|
|
15
15
|
## Dependencies
|
|
16
16
|
|
|
17
|
-
It uses [`SystemConsole`](.aug-spec/august/0.
|
|
17
|
+
It uses [`SystemConsole`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-SystemConsole) from `august.io`. It uses [`ConsoleLogger`](console.aug.md#symbol-ConsoleLogger) from `console`. It uses [`Greeter`](greeter.aug.md#symbol-Greeter) ([`greet`](greeter.aug.md#symbol-Greeter.greet)) from `greeter`. It uses [`increment`](math.aug.md#symbol-increment) from `math`.
|
|
18
18
|
|
|
19
19
|
Built-in operations follow the [language reference](https://greenpandastudios.github.io/augscript/language-constructs).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
|
-
"compiler": "0.
|
|
3
|
+
"compiler": "0.21.0",
|
|
4
4
|
"specifications": {
|
|
5
5
|
"crypto": "https://github.com/GreenPandaStudios/augscript/src/stdlib/crypto#b14a0f9aa41f1ce58bd51133bcdc424033e40d40",
|
|
6
6
|
"json": "https://github.com/GreenPandaStudios/augscript/src/stdlib/json#v0.19.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"name": "@git/url_897efafd565158fc4908",
|
|
60
60
|
"version": "0.0.0-git.a39fc582565d4fca40be4f75fa304d71adc69301",
|
|
61
61
|
"source": ".",
|
|
62
|
-
"digest": "
|
|
62
|
+
"digest": "c6db43883554b4e4612c66a07453305c12bb37bd1964ce5851de44b638172c20",
|
|
63
63
|
"dependencies": {}
|
|
64
64
|
},
|
|
65
65
|
{
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"name": "@git/url_2d3c37c690c0fa115be1",
|
|
68
68
|
"version": "0.0.0-git.a39fc582565d4fca40be4f75fa304d71adc69301",
|
|
69
69
|
"source": ".",
|
|
70
|
-
"digest": "
|
|
70
|
+
"digest": "f310aec368b5b5a309edd951791a13bfa4a8d8ac651f387c88adbfb40996220a",
|
|
71
71
|
"dependencies": {}
|
|
72
72
|
},
|
|
73
73
|
{
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"name": "@git/url_0eb7c89453c87681ed15",
|
|
76
76
|
"version": "0.0.0-git.a39fc582565d4fca40be4f75fa304d71adc69301",
|
|
77
77
|
"source": ".",
|
|
78
|
-
"digest": "
|
|
78
|
+
"digest": "837920dae12639cdc15492568460fccb44bdfd0ade2709791a5e9db707654686",
|
|
79
79
|
"dependencies": {}
|
|
80
80
|
},
|
|
81
81
|
{
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"name": "@git/url_9ef654c66d34ab8f5527",
|
|
84
84
|
"version": "0.0.0-git.b14a0f9aa41f1ce58bd51133bcdc424033e40d40",
|
|
85
85
|
"source": ".",
|
|
86
|
-
"digest": "
|
|
86
|
+
"digest": "32d2ebb36cf0e264ff43cd8752aaf7031bd03d2c6924e9dedb5020b5147ffef4",
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"url_ac5ce553f84fc815ffc3": "packages/url_ac5ce553f84fc815ffc3"
|
|
89
89
|
}
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"name": "@git/url_c092cd151499c4e1d8a1",
|
|
94
94
|
"version": "0.0.0-git.a39fc582565d4fca40be4f75fa304d71adc69301",
|
|
95
95
|
"source": ".",
|
|
96
|
-
"digest": "
|
|
96
|
+
"digest": "9b2e188ac82a292ebfb45690e2c57ffe5c5f0d8da15c1490a4798007f7eb0288",
|
|
97
97
|
"dependencies": {}
|
|
98
98
|
}
|
|
99
99
|
]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"files": [
|
|
4
|
-
".aug-spec/august/0.
|
|
5
|
-
".aug-spec/august/0.
|
|
4
|
+
".aug-spec/august/0.21.0/io/contracts.aug",
|
|
5
|
+
".aug-spec/august/0.21.0/io/contracts.aug.md",
|
|
6
6
|
"main.aug.md",
|
|
7
7
|
"resource.aug.md"
|
|
8
8
|
],
|
|
9
|
-
"digest": "
|
|
9
|
+
"digest": "b280d365f556538b71dc053ac6be0f2eee02eb87d72f228ebcc02ab357ece4ab"
|
|
10
10
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## Providers
|
|
6
6
|
|
|
7
|
-
`Console` is provided by [`SystemConsole`](.aug-spec/august/0.
|
|
7
|
+
`Console` is provided by [`SystemConsole`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-SystemConsole). The same instance is shared.
|
|
8
8
|
|
|
9
9
|
## Startup
|
|
10
10
|
|
|
@@ -14,6 +14,6 @@ It gets `first` of type [`Resource`](resource.aug.md#symbol-Resource) from [`mak
|
|
|
14
14
|
|
|
15
15
|
## Dependencies
|
|
16
16
|
|
|
17
|
-
It uses [`SystemConsole`](.aug-spec/august/0.
|
|
17
|
+
It uses [`SystemConsole`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-SystemConsole) from `august.io`. It uses [`Resource`](resource.aug.md#symbol-Resource), [`consume`](resource.aug.md#symbol-consume), and [`make`](resource.aug.md#symbol-make) from `resource`.
|
|
18
18
|
|
|
19
19
|
Built-in operations follow the [language reference](https://greenpandastudios.github.io/augscript/language-constructs).
|
|
@@ -23,8 +23,8 @@ It returns ownership of [`Resource`](resource.aug.md#symbol-Resource). It sets `
|
|
|
23
23
|
<a id="symbol-consume"></a>
|
|
24
24
|
## `consume` · [source](resource.aug#L15)
|
|
25
25
|
|
|
26
|
-
It takes `value` as [`Resource`](resource.aug.md#symbol-Resource) with ownership transferred. It gets `console` ([`Console`](.aug-spec/august/0.
|
|
26
|
+
It takes `value` as [`Resource`](resource.aug.md#symbol-Resource) with ownership transferred. It gets `console` ([`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console)) from dependency injection. It passes `"consumed"` to [`console.write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write).
|
|
27
27
|
|
|
28
28
|
## Dependencies
|
|
29
29
|
|
|
30
|
-
It uses [`Console`](.aug-spec/august/0.
|
|
30
|
+
It uses [`Console`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console) ([`write`](.aug-spec/august/0.21.0/io/contracts.aug.md#symbol-Console.write)) from `august.io`.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"compiler": "0.21.0",
|
|
4
|
+
"llvm": "23.1.2",
|
|
5
|
+
"packs": [
|
|
6
|
+
{
|
|
7
|
+
"host": "darwin-arm64",
|
|
8
|
+
"target": "aarch64-apple-darwin",
|
|
9
|
+
"minimumOS": "14.0",
|
|
10
|
+
"archive": {
|
|
11
|
+
"url": "https://github.com/GreenPandaStudios/augscript/releases/download/v0.21.0/aug-llvm-macos-arm64.tar.gz",
|
|
12
|
+
"sha256": "9bece355945f9747325a8a8111c6feb8b9d7d5658893f7c0896c3d45afc3c97f",
|
|
13
|
+
"maximumDownloadBytes": 217020773,
|
|
14
|
+
"maximumUnpackedBytes": 578904183,
|
|
15
|
+
"fileManifest": "files.json"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"host": "linux-arm64",
|
|
20
|
+
"target": "aarch64-unknown-linux-gnu",
|
|
21
|
+
"minimumLibc": "2.36",
|
|
22
|
+
"archive": {
|
|
23
|
+
"url": "https://github.com/GreenPandaStudios/augscript/releases/download/v0.21.0/aug-llvm-linux-arm64.tar.gz",
|
|
24
|
+
"sha256": "8598fb964cab17fe7a8df76ac331e62ac8081211049f97434792275432d0460d",
|
|
25
|
+
"maximumDownloadBytes": 441560029,
|
|
26
|
+
"maximumUnpackedBytes": 876536211,
|
|
27
|
+
"fileManifest": "files.json"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"host": "linux-x64",
|
|
32
|
+
"target": "x86_64-unknown-linux-gnu",
|
|
33
|
+
"minimumLibc": "2.36",
|
|
34
|
+
"archive": {
|
|
35
|
+
"url": "https://github.com/GreenPandaStudios/augscript/releases/download/v0.21.0/aug-llvm-linux-x64.tar.gz",
|
|
36
|
+
"sha256": "c14f8dc9a69ca3fd05f1c2331e818ab7193011ee96076a7fb6b61b05d6580cbe",
|
|
37
|
+
"maximumDownloadBytes": 448569595,
|
|
38
|
+
"maximumUnpackedBytes": 910219790,
|
|
39
|
+
"fileManifest": "files.json"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@greenpandastudios/aug-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "August compiler, native build CLI, tests and language server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"bin",
|
|
17
17
|
"src",
|
|
18
18
|
"runtime",
|
|
19
|
+
"native",
|
|
19
20
|
"scripts",
|
|
20
21
|
"docs",
|
|
21
22
|
"examples",
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"THIRD_PARTY_NOTICES.md"
|
|
24
25
|
],
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@greenpandastudios/aug-stdlib": "0.
|
|
27
|
+
"@greenpandastudios/aug-stdlib": "0.21.0",
|
|
27
28
|
"tar": "7.5.22"
|
|
28
29
|
},
|
|
29
30
|
"publishConfig": {
|