Skip to content

Commit afd2f25

Browse files
hyperpolymathclaude
andcommitted
chore: replace {{project}}/{{PROJECT}} template placeholders with actual names
Customized ABI-FFI-README.md, Idris2 ABI stubs, Zig FFI stubs, QUICKSTART docs, Justfiles, and methodology files. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 477a682 commit afd2f25

1,326 files changed

Lines changed: 21384 additions & 21573 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.machine_readable/agent_instructions/methodology.a2ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ constraints = [
101101
# These rules detect corrupt/template/stale state files.
102102

103103
[methodology.state-validation]
104-
reject-if-contains = ["{{PLACEHOLDER}}", "{{PROJECT}}", "rsr-template-repo"]
104+
reject-if-contains = ["{{PLACEHOLDER}}", "ASDF_TOOL_PLUGINS", "rsr-template-repo"]
105105
reject-if-project-name-mismatch = true
106106
staleness-threshold-days = 90
107107
fallback-files = ["TODO.md", "TODO.adoc", "ROADMAP.adoc", "README.adoc"]

Justfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ help recipe="":
4040
4141
# Show this project's info
4242
info:
43-
@echo "Project: {{project}}"
43+
@echo "Project: asdf-tool-plugins"
4444
@echo "Version: {{version}}"
4545
@echo "RSR Tier: {{tier}}"
4646
@echo "Recipes: $(just --summary | wc -w)"
@@ -52,7 +52,7 @@ info:
5252

5353
# Build the project (debug mode)
5454
build *args:
55-
@echo "Building {{project}} (debug)..."
55+
@echo "Building asdf-tool-plugins (debug)..."
5656
# TODO: Replace with your build command
5757
# Examples:
5858
# cargo build {{args}} # Rust
@@ -63,7 +63,7 @@ build *args:
6363

6464
# Build in release mode with optimizations
6565
build-release *args:
66-
@echo "Building {{project}} (release)..."
66+
@echo "Building asdf-tool-plugins (release)..."
6767
# TODO: Replace with your release build command
6868
# Examples:
6969
# cargo build --release {{args}}
@@ -171,7 +171,7 @@ run-verbose *args: build
171171

172172
# Install to user path
173173
install: build-release
174-
@echo "Installing {{project}}..."
174+
@echo "Installing asdf-tool-plugins..."
175175
# TODO: Replace with your install command
176176

177177
# ===============================================================================
@@ -215,7 +215,7 @@ cookbook:
215215
#!/usr/bin/env bash
216216
mkdir -p docs
217217
OUTPUT="docs/just-cookbook.adoc"
218-
echo "= {{project}} Justfile Cookbook" > "$OUTPUT"
218+
echo "= asdf-tool-plugins Justfile Cookbook" > "$OUTPUT"
219219
echo ":toc: left" >> "$OUTPUT"
220220
echo ":toclevels: 3" >> "$OUTPUT"
221221
echo "" >> "$OUTPUT"
@@ -241,10 +241,10 @@ cookbook:
241241
man:
242242
#!/usr/bin/env bash
243243
mkdir -p docs/man
244-
cat > docs/man/{{project}}.1 << EOF
245-
.TH {{project}} 1 "$(date +%Y-%m-%d)" "{{version}}" "{{project}} Manual"
244+
cat > docs/man/asdf-tool-plugins.1 << EOF
245+
.TH asdf-tool-plugins 1 "$(date +%Y-%m-%d)" "{{version}}" "asdf-tool-plugins Manual"
246246
.SH NAME
247-
{{project}} \- RSR-compliant project
247+
asdf-tool-plugins \- RSR-compliant project
248248
.SH SYNOPSIS
249249
.B just
250250
[recipe] [args...]
@@ -253,7 +253,7 @@ man:
253253
.SH AUTHOR
254254
$(git config user.name 2>/dev/null || echo "Author") <$(git config user.email 2>/dev/null || echo "email")>
255255
EOF
256-
echo "Generated: docs/man/{{project}}.1"
256+
echo "Generated: docs/man/asdf-tool-plugins.1"
257257
258258
# ===============================================================================
259259
# CONTAINERS (Podman + Wolfi)
@@ -262,19 +262,19 @@ man:
262262
# Build container image
263263
container-build tag="latest":
264264
@if [ -f Containerfile ]; then \
265-
podman build -t {{project}}:{{tag}} -f Containerfile .; \
265+
podman build -t asdf-tool-plugins:{{tag}} -f Containerfile .; \
266266
else \
267267
echo "No Containerfile found"; \
268268
fi
269269
270270
# Run container
271271
container-run *args:
272-
podman run --rm -it {{project}}:latest {{args}}
272+
podman run --rm -it asdf-tool-plugins:latest {{args}}
273273
274274
# Push container image
275275
container-push registry="ghcr.io/hyperpolymath" tag="latest":
276-
podman tag {{project}}:{{tag}} {{registry}}/{{project}}:{{tag}}
277-
podman push {{registry}}/{{project}}:{{tag}}
276+
podman tag asdf-tool-plugins:{{tag}} {{registry}}/asdf-tool-plugins:{{tag}}
277+
podman push {{registry}}/asdf-tool-plugins:{{tag}}
278278
279279
# ===============================================================================
280280
# CI & AUTOMATION

asdf-acceleration-middleware/ABI-FFI-README.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
{{~ Aditionally delete this line and fill out the template below ~}}
21

3-
# {{PROJECT}} ABI/FFI Documentation
2+
# ACCELERATION_MIDDLEWARE ABI/FFI Documentation
43

54
## Overview
65

@@ -26,7 +25,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design:
2625
2726
┌─────────────────────────────────────────────┐
2827
│ C Headers (auto-generated) │
29-
│ generated/abi/{{project}}.h │
28+
│ generated/abi/acceleration-middleware.h │
3029
└─────────────────┬───────────────────────────┘
3130
3231
│ imported by
@@ -39,7 +38,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design:
3938
│ - Memory-safe by default │
4039
└─────────────────┬───────────────────────────┘
4140
42-
│ compiled to lib{{project}}.so/.a
41+
│ compiled to libacceleration-middleware.so/.a
4342
4443
┌─────────────────────────────────────────────┐
4544
│ Any Language via C ABI │
@@ -50,7 +49,7 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design:
5049
## Directory Structure
5150

5251
```
53-
{{project}}/
52+
acceleration-middleware/
5453
├── src/
5554
│ ├── abi/ # ABI definitions (Idris2)
5655
│ │ ├── Types.idr # Core type definitions with proofs
@@ -67,11 +66,11 @@ This library follows the **Hyperpolymath RSR Standard** for ABI and FFI design:
6766
│ ├── test/
6867
│ │ └── integration_test.zig
6968
│ └── include/
70-
│ └── {{project}}.h # C header (optional, can be generated)
69+
│ └── acceleration-middleware.h # C header (optional, can be generated)
7170
7271
├── generated/ # Auto-generated files
7372
│ └── abi/
74-
│ └── {{project}}.h # Generated from Idris2 ABI
73+
│ └── acceleration-middleware.h # Generated from Idris2 ABI
7574
7675
└── bindings/ # Language-specific wrappers (optional)
7776
├── rust/
@@ -199,7 +198,7 @@ zig build test # Run tests
199198

200199
```bash
201200
cd src/abi
202-
idris2 --cg c-header Types.idr -o ../../generated/abi/{{project}}.h
201+
idris2 --cg c-header Types.idr -o ../../generated/abi/acceleration-middleware.h
203202
```
204203

205204
### Cross-Compile
@@ -222,32 +221,32 @@ zig build -Dtarget=x86_64-windows
222221
### From C
223222

224223
```c
225-
#include "{{project}}.h"
224+
#include "acceleration-middleware.h"
226225

227226
int main() {
228-
void* handle = {{project}}_init();
227+
void* handle = acceleration-middleware_init();
229228
if (!handle) return 1;
230229

231-
int result = {{project}}_process(handle, 42);
230+
int result = acceleration-middleware_process(handle, 42);
232231
if (result != 0) {
233-
const char* err = {{project}}_last_error();
232+
const char* err = acceleration-middleware_last_error();
234233
fprintf(stderr, "Error: %s\n", err);
235234
}
236235

237-
{{project}}_free(handle);
236+
acceleration-middleware_free(handle);
238237
return 0;
239238
}
240239
```
241240

242241
Compile with:
243242
```bash
244-
gcc -o example example.c -l{{project}} -L./zig-out/lib
243+
gcc -o example example.c -lacceleration-middleware -L./zig-out/lib
245244
```
246245

247246
### From Idris2
248247

249248
```idris
250-
import {{PROJECT}}.ABI.Foreign
249+
import ACCELERATION_MIDDLEWARE.ABI.Foreign
251250
252251
main : IO ()
253252
main = do
@@ -264,44 +263,44 @@ main = do
264263
### From Rust
265264

266265
```rust
267-
#[link(name = "{{project}}")]
266+
#[link(name = "acceleration-middleware")]
268267
extern "C" {
269-
fn {{project}}_init() -> *mut std::ffi::c_void;
270-
fn {{project}}_free(handle: *mut std::ffi::c_void);
271-
fn {{project}}_process(handle: *mut std::ffi::c_void, input: u32) -> i32;
268+
fn acceleration-middleware_init() -> *mut std::ffi::c_void;
269+
fn acceleration-middleware_free(handle: *mut std::ffi::c_void);
270+
fn acceleration-middleware_process(handle: *mut std::ffi::c_void, input: u32) -> i32;
272271
}
273272

274273
fn main() {
275274
unsafe {
276-
let handle = {{project}}_init();
275+
let handle = acceleration-middleware_init();
277276
assert!(!handle.is_null());
278277

279-
let result = {{project}}_process(handle, 42);
278+
let result = acceleration-middleware_process(handle, 42);
280279
assert_eq!(result, 0);
281280

282-
{{project}}_free(handle);
281+
acceleration-middleware_free(handle);
283282
}
284283
}
285284
```
286285

287286
### From Julia
288287

289288
```julia
290-
const lib{{project}} = "lib{{project}}"
289+
const libacceleration-middleware = "libacceleration-middleware"
291290

292291
function init()
293-
handle = ccall((:{{project}}_init, lib{{project}}), Ptr{Cvoid}, ())
292+
handle = ccall((:acceleration-middleware_init, libacceleration-middleware), Ptr{Cvoid}, ())
294293
handle == C_NULL && error("Failed to initialize")
295294
handle
296295
end
297296

298297
function process(handle, input)
299-
result = ccall((:{{project}}_process, lib{{project}}), Cint, (Ptr{Cvoid}, UInt32), handle, input)
298+
result = ccall((:acceleration-middleware_process, libacceleration-middleware), Cint, (Ptr{Cvoid}, UInt32), handle, input)
300299
result
301300
end
302301

303302
function cleanup(handle)
304-
ccall((:{{project}}_free, lib{{project}}), Cvoid, (Ptr{Cvoid},), handle)
303+
ccall((:acceleration-middleware_free, libacceleration-middleware), Cvoid, (Ptr{Cvoid},), handle)
305304
end
306305

307306
# Usage
@@ -355,7 +354,7 @@ When modifying the ABI/FFI:
355354

356355
2. **Generate C header**
357356
```bash
358-
idris2 --cg c-header src/abi/Types.idr -o generated/abi/{{project}}.h
357+
idris2 --cg c-header src/abi/Types.idr -o generated/abi/acceleration-middleware.h
359358
```
360359

361360
3. **Update FFI implementation** (`ffi/zig/src/main.zig`)

asdf-acceleration-middleware/ffi/zig/build.zig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// {{PROJECT}} FFI Build Configuration
1+
// ACCELERATION_MIDDLEWARE FFI Build Configuration
22
// SPDX-License-Identifier: PMPL-1.0-or-later
33

44
const std = @import("std");
@@ -9,7 +9,7 @@ pub fn build(b: *std.Build) void {
99

1010
// Shared library (.so, .dylib, .dll)
1111
const lib = b.addSharedLibrary(.{
12-
.name = "{{project}}",
12+
.name = "acceleration-middleware",
1313
.root_source_file = b.path("src/main.zig"),
1414
.target = target,
1515
.optimize = optimize,
@@ -20,7 +20,7 @@ pub fn build(b: *std.Build) void {
2020

2121
// Static library (.a)
2222
const lib_static = b.addStaticLibrary(.{
23-
.name = "{{project}}",
23+
.name = "acceleration-middleware",
2424
.root_source_file = b.path("src/main.zig"),
2525
.target = target,
2626
.optimize = optimize,
@@ -32,8 +32,8 @@ pub fn build(b: *std.Build) void {
3232

3333
// Generate header file for C compatibility
3434
const header = b.addInstallHeader(
35-
b.path("include/{{project}}.h"),
36-
"{{project}}.h",
35+
b.path("include/acceleration-middleware.h"),
36+
"acceleration-middleware.h",
3737
);
3838
b.getInstallStep().dependOn(&header.step);
3939

@@ -79,7 +79,7 @@ pub fn build(b: *std.Build) void {
7979

8080
// Benchmark (if needed)
8181
const bench = b.addExecutable(.{
82-
.name = "{{project}}-bench",
82+
.name = "acceleration-middleware-bench",
8383
.root_source_file = b.path("bench/bench.zig"),
8484
.target = target,
8585
.optimize = .ReleaseFast,

0 commit comments

Comments
 (0)