Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Unreleased
## 0.1.0 — 2026-11-06

- Advertise version in help/completion only with nonblank metadata; preserve inherited
and overridden group versions and typed failures for unconfigured version requests.
Expand All @@ -9,17 +9,16 @@
- Add reflected primitive lists, environment-backed options, choices and validators.
- Add non-evaluating command/flag/choice completion with Bash, Zsh, Fish and PowerShell adapters.
- Include all modules, documentation and completion assets in canonical DAL archives.
- Exercise every regression/example with the coordinated interpreter/JIT/Cranelift/LLVM candidate.
- Test interpreter, JIT, Cranelift and LLVM execution with Fidan 1.1.0.

- Raise ArgumentError for --version without configured version metadata.
- Block normal installation until a compatible compiler is public; local staging
probes callable support before writing its private exact-version manifest.
- Require Fidan 1.1.0 and preserve the release manifest during staging.

## 0.1.0 — local candidate, 2026-10-18
### Initial development (2026-10-18)

- Command callbacks derive parameter names, types and defaults from compiler metadata.
- `@command` validates signatures; `run(callback)` converts arguments and invokes
named actions, inline actions or captured closures.
- Typed `ArgumentError` exceptions replace error-result dictionaries.
- Positionals, options, Boolean flags, defaults, help/version and pass-through.
- Replaces the earlier unpublished dictionary-schema prototype. Not tagged or published.
- Replaces the earlier dictionary-schema prototype.
37 changes: 15 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ and defaults from the compiler, converts arguments and invokes the selected
callback. No second option-type dictionary, global command registry or error key
is required. Invalid arguments raise an `ArgumentError`.

This is the local, unpublished 0.1.0 candidate for the coordinated **Fidan 1.1.0 / protocol-8 LLVM helper 1.1.0** release. The published Fidan 1.0.16 binary
does not implement this API; that is a release boundary, not a defect in the
candidate. The source manifest's `=0.0.0-args-unreleased` sentinel deliberately
prevents accidental installation with an older public compiler. Local staging
probes actual compiler capabilities and writes an exact-version copy only. The
committed compiler version lives in the sibling compiler's
`config/release-candidate.json`; no package publication is claimed here.
Version 0.1.0 requires **Fidan 1.1.0** and the matching protocol-8 LLVM
helper 1.1.0 for LLVM builds. The manifest pins `fidan = "=1.1.0"`.

## One command

Expand All @@ -31,9 +26,8 @@ fidan run examples/single.fdn -- --name "Dal Person"
fidan run examples/single.fdn -- --help
```

The checked-in examples use relative imports so they work before publication;
the documented grouped `use args.{run}` / `use args.{App}` forms apply to an
installed package. A plain `use args` is a namespace import and requires qualified
The checked-in examples use relative imports for local development.
`use args.{run}` and `use args.{App}` work in projects with args installed. A plain `use args` is a namespace import and requires qualified
names. `@command` is an
optional eager signature check. It does not register the action: `run` performs
the same validation without the decorator. Ordinary `callback(a, b)` calls remain
Expand Down Expand Up @@ -221,7 +215,7 @@ flag and declared-choice completion; it does not auto-install itself in profiles
PowerShell deliberately declines nonliteral expression arguments instead of
executing them. No shell profile is changed by the package or its tests.

## Validation and release boundary
## Validation

```sh
node tests/check.mjs --llvm
Expand All @@ -231,17 +225,15 @@ fish tests/completion-adapters.fish
pwsh -NoProfile -File tests/completion-adapters.ps1
```

`FIDAN_BIN` selects the actual candidate. The LLVM option requires its matching
`FIDAN_BIN` selects the Fidan compiler under test. The LLVM option requires its matching
helper in isolated `FIDAN_HOME`; without `--llvm` the runner checks Cranelift.
The runner checks every regression file and example, both argv forms, interpreter
thresholds 0/1, native executions, formatting, canonical archive packaging and
included adapter files. Shell adapter tests execute real shell syntax with
controlled token sources; they are not claims of interactive GUI shell coverage.

Release approval and publishing a supporting compiler/helper/package are external
gates. The sentinel will be replaced with the real coordinated release constraint
only when that release is approved. It must not be changed to claim compatibility
with the installed old public binary merely to make local tests pass.
Release tests use Fidan 1.1.0 and preserve the exact package manifest during
staging. Older compiler versions are not supported.

## License

Expand All @@ -256,11 +248,12 @@ With Fidan 1.1.0, `fidan -vv run examples/single.fdn -- --help`
enables compiler DEBUG diagnostics on stderr and forwards `--help` to the args
application. Put Fidan's `-v`/`-vv`/`-vvv` before the source path. Flags after
`--` belong entirely to your CLI; args callbacks and application stdout are
unchanged. The published compiler 1.0.16 does not provide these diagnostic flags.
unchanged. These diagnostic flags are supported by Fidan 1.1.0.

### Planned stable availability
### Installation

The coordinated target is Fidan **1.1.0 stable** and LLVM helper **1.1.0**, protocol 8;
args remains **0.1.0**. No intermediate public RC is required. Publish args only after
that compiler/helper release and the production DAL launch are approved and operational.
The checked-in `=0.0.0-args-unreleased` sentinel stays in place until both gates are met.
With Fidan 1.1.0 installed, add args to your project:

```sh
fidan dal add args
```
4 changes: 1 addition & 3 deletions dal.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[package]
name = "args"
version = "0.1.0"
# RELEASE-ONLY BLOCKER: no published compiler implements the required callback API.
# Replace only after Fidan/helper 1.1.0 stable AND production DAL are approved and operational.
fidan = "=0.0.0-args-unreleased"
fidan = "=1.1.0"
description = "Signature-driven command callbacks for Fidan command-line programs"
license = "Apache-2.0"
readme = "README.md"
Expand Down
11 changes: 5 additions & 6 deletions tests/stage-local.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Test-only package staging. Never publish this manifest or change the source minimum.
// Stage a copy of the release manifest for integration testing.
import assert from "node:assert/strict";
import fs from "node:fs";
import path from "node:path";
Expand All @@ -7,8 +7,7 @@ import { fileURLToPath } from "node:url";
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
export function stageLocalPackage(destination, binary) {
const source = fs.readFileSync(path.join(root,"dal.toml"),"utf8");
const blocker = 'fidan = "=0.0.0-args-unreleased"';
assert(source.includes(blocker),"staging applies only to the explicit unreleased source contract");
assert(source.includes('fidan = "=1.1.0"'), "released args requires Fidan 1.1.0");
const run = args => {
const result=spawnSync(binary,args,{cwd:root,encoding:"utf8",windowsHide:true,timeout:120000});
if(result.error)throw result.error;
Expand All @@ -17,11 +16,11 @@ export function stageLocalPackage(destination, binary) {
};
assert(run(["run","--jit-threshold","0","tests/parser.fdn"]).includes("args parser checks passed"));
const version=/\bfidan\s+(\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.+-]+)?)/i.exec(run(["--version"]))?.[1];
assert(version,"compiler must report its exact test version");
assert.equal(version, "1.1.0", "release tests require Fidan 1.1.0");
fs.mkdirSync(destination); // Never overwrite an existing directory, even for fixtures.
for(const entry of ["dal.toml","src","tests","examples","assets","README.md","LICENSE","NOTICE","CHANGELOG.md"])
fs.cpSync(path.join(root,entry),path.join(destination,entry),{recursive:true,errorOnExist:true,force:false});
fs.writeFileSync(path.join(destination,"dal.toml"),
source.replace(blocker,`# STAGING ONLY: capability-probed local source compiler, not a public compatibility claim.\nfidan = "=${version}"`));
assert.equal(fs.readFileSync(path.join(destination,"dal.toml"),"utf8"), source,
"staging must preserve public release metadata");
return destination;
}
2 changes: 1 addition & 1 deletion tests/stage-local.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ test("actual package staging preserves runtime/metadata and excludes absent deve
assert.deepEqual(fs.readFileSync(path.join(destination, file)), fs.readFileSync(path.join(root, file)), file);
assert(!fs.existsSync(path.join(destination, "docs")));
assert(!fs.readFileSync(path.join(destination, "dal.toml"), "utf8").includes('"docs/**"'));
assert.match(fs.readFileSync(path.join(destination, "dal.toml"), "utf8"), /STAGING ONLY/);
assert.deepEqual(fs.readFileSync(path.join(destination, "dal.toml")), source);
assert.deepEqual(fs.readFileSync(path.join(root, "dal.toml")), source);
assert.throws(() => stageLocalPackage(destination, binary), /exist|EEXIST/i);
} finally { fs.rmSync(scratch, { recursive: true }); }
Expand Down
Loading