Skip to content

Version 0.3.0 - #10

Merged
KasLabDevs merged 24 commits into
mainfrom
develop
Nov 29, 2026
Merged

KasLabDevs merged 24 commits into
mainfrom
develop

Conversation

@KasLabDevs

Copy link
Copy Markdown
Owner

No description provided.

KasLabDevs and others added 24 commits November 15, 2026 01:55
…rdkas watch)

Explorer card of the Servers view, driven by two HardKas 0.13.0-rc.3 commands:

- History tab: `hardkas history <address> --json` for the picked account or any
  pasted address. Each entry shows its direction (paid / spent / self), the
  signed amount, blue-score confirmations and DAA score, coinbase/covenant
  badges, and a `record` link when the result says this workspace recorded it
  (the Run history's artifact file, else the Index view's Transactions tab).
  The result's coverage is shown as one sentence from its own facts (chain
  blocks covered, from where to where, tip reached or stopped early) plus the
  CLI's "not covered" list; pages follow the CLI cursor (next / previous).
- Watch switch on the UTXOs tab: `hardkas watch <address> --json` runs as a
  long-lived job; its JSON lines (snapshot, added, removed, matured, resync,
  notices, errors, end) are applied live to the UTXO list, with an event feed.
  The job is stopped when the switch goes off, the card leaves the screen, the
  node stops, the page unloads or the plugin deactivates.
- ide-server: `DELETE /api/jobs/:id` (localOnly) kills a running job's process
  (`taskkill /T` on Windows, SIGTERM then SIGKILL elsewhere); the runner keeps
  the child handles. Client: `jobs.kill`, `jobs.open` (SSE follower with close).
- Parsers as pure modules (`utils/nodeHistory.ts`, `utils/watchLines.ts`) with
  unit tests against real CLI output kept in `src/__fixtures__/node/`.
- vite.config: HARDKAS_IDE_UI_PORT / HARDKAS_IDE_PORT so a second checkout can
  run next to the first. docs/local-node.md documents all of it.

Verified live against the IDE's local node (demo workspace, rc.3 build via
HARDKAS_BIN, node started from the IDE, bursts mined from the IDE):
history lists the seed payment, the burst payment and alice's spend to bob
with confirmations and the record link opens the submission artifact; the
watch shows the snapshot, then the burst's 1 KAS appears as a pending row and
in the feed; switching the watch off and leaving the Servers view both end the
job within seconds and leave no CLI process. Typecheck clean; 134 IDE and 134
server tests pass.

Not verified live: paging (every live result fit in one page; the cursor is
covered by the fixture test), `matured` and `resync` events (no burst emitted
one within five minutes; their tests use the CLI's documented shape), and the
stop on node shutdown (the node was shared with another session).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The IDE was tested against 0.13.0-rc.1; HardKas publishes rc.3 and prepares rc.4. The pin
(HARDKAS_CLI_VERSION, the npx fallback, the CI silverc install, the texts that name the tested
version) moves to rc.3, and the demo workspace installs rc.3 exactly.

The reset flow wiped the chain with `hardkas node reset --yes`; the `node` group is deprecated in favour
of `localnet` and hidden from the next release, which adds `localnet reset --yes` (stops the node and the
miner, removes this workspace's chain data, keeps keys and records, refuses a node whose chain belongs to
another workspace). The IDE now runs `localnet reset --yes --json` and, on a CLI that has no such command
(up to rc.3, where it answers "unknown command 'reset'"), falls back to `node reset --yes`. Hints, docs
and comments say so.

Checked: `localnet fund --json` lost `utxoCount` in rc.2; the IDE reads `after.matureBalanceSompi` and
is not affected. Not exercised live: the reset itself (it wipes the simnet three other sessions are
working on).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… local node

A sixth tab with the v2 escrow lifecycle of HardKas 0.13 (EscrowFull /
EscrowSplit): the escrows recorded under .hardkas/escrows, the selected one
with its facts and the CLI's own next step, a status panel that runs
`escrow status --json`, and the steps as command cards: create, fund,
prepare, sign, release, reconcile. Nothing takes a password: an `account`
field marked `signs` refuses an encrypted account and shows the terminal
command instead. Simnet only; mainnet is never offered.

- commandSpec: field kind `account` (+ `signs`), `list` on options
  (`--signatures a b`), `initialValues(spec, preset)`, `encryptedSigners`.
- CommandCard: account select from the workspace, `preset`, `onOutcome`,
  the encrypted-signer notice, `CardAnswer` for other views.
- utils/escrowRecords: tolerant reader of hardkas.escrow.record.v1 (schema
  checked, problems reported, nothing invented), `escrowFromAnswer`,
  `escrowNextStep`; tests against three real records of one escrow.
- docs/deploy-and-run.md: the Escrow section.

Verified live with the HardKas 0.13.0-rc.3 CLI build (HARDKAS_BIN) on the
canonical localnet, from the tab: create -> fund (first refused
NO_SPENDABLE_UTXOS until a burst matured the buyer's coins) -> prepare
mutualRelease -> sign buyer, sign seller -> release refused
ESCROW_FUNDING_NOT_UNSPENT -> burst + reconcile -> release (broadcast) ->
reconcile -> RELEASED with the release confirmed. The three fixtures are
that escrow's records.

Not verified live: EscrowSplit, signing a request file from another
workspace (--signatures), the encrypted-account notice (every demo
account is a dev keystore), --wait. The last burst before the final
reconcile was mined by starting the miner container by hand for twelve
seconds: the IDE's Mine a burst ended pending maturity without a block
and its notice stayed on "Mining a burst..." (pre-existing, not touched).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…alance on the local node (WIP)

HardKAS 0.13 write operations from Deploy & Run, on the SDK's v1 engine:
- Covenants tab: "Start a covenant" (silver covenant start, several outputs each in its own state) and an
  "Advance" form (silver covenant advance: 1:N, N:M with leader and delegates, termination) next to
  Genesis/Transition; topologies other than 1:1 carry the experimental badge and HardKAS's own limitation.
  Chains made by those commands are read from the engine's plan / signed / submission records
  (utils/engineCovenants.ts, schema checked, problems reported) since they write no silverCovenant record;
  "Check at the node" runs silver covenant inspect.
- KCC20 tab: kcc20 deploy | transfer | balance cards (experimental badge, HardKAS's caveat, signing account
  from the dev accounts, JSON in scratch files); the read-only cards unchanged.
- CommandSpec: experimental/caveat/sends, account fields, repeatable options, nested verdict.
- ide-server: /api/fs/find?limit=; vite proxy honours HARDKAS_IDE_PORT.

Verified live (IDE against the Docker localnet, rc.4 CLI build via HARDKAS_BIN): kcc20 deploy confirmed
(covenant 9f606665..., tx e7680a6b...); kcc20 transfer alice->bob=600 accepted and confirmed by the node
(tx 73abc5ff...), though the card reported SILVER_CONFIRMATION_TIMEOUT at the CLI's default 120 s because
the burst's miner started late: the cards now pass --timeout 600.
NOT verified live: kcc20 balance, silver covenant start, silver covenant advance.
NOT done: unit tests of engineCovenants.ts against real records, docs/deploy-and-run.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ne-record tests, docs

- engineCovenants.test.ts: readers and chain grouping tested against the real records HardKAS 0.13.0-rc.3
  wrote on the localnet (fixtures in apps/ide/src/__fixtures__/engine/): the token's deploy + transfer, and a
  Decls (fanout.sil) covenant started then advanced 1:2; unsent and rejected transactions, a missing plan.
- parseSilArtifact names a covenant entry's next-state parameters "State" / "State[]" (silverc types them as a
  struct, or a dynamic_array of it): the Advance form no longer asks for them, the engine fills them.
- Advance prefills the constructor arguments from the chain's plan records (the compile record keeps only a
  digest: HardKAS refuses otherwise, SILVER_CONSTRUCTOR_ARGS_REQUIRED).
- docs/deploy-and-run.md: the new tabs' contents, the rules (experimental badge, dev accounts, --yes), how the
  engine's records are read, what confirms, and the live-verification table.

Verified live from the IDE against the Docker localnet (rc.3 build via HARDKAS_BIN): kcc20 deploy (covenant
9f606665..., confirmed), kcc20 transfer alice->bob=600 (tx 73abc5ff..., confirmed), kcc20 balance (bob 600,
alice 400), silver covenant start (Decls value=10, tx ffea1559..., confirmed), silver covenant advance 1:2
fanout (value=11 / value=12, tx 2fa74f32..., confirmed). Not verified live: N:M with delegates, termination,
payments out of a covenant, --funder, testnet-10. Right after the advance, `silver covenant inspect` reported
the two new outputs "not listed" while `rpc utxos` listed both unspent with the covenant id: shown as the CLI
says it; HardKAS's to explain.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…hy-a70c1f) into develop

Resolved against the Escrow tab merged just before: both sets of cards and tabs stay; CommandCard keeps the preset/onOutcome API and the shared outcomeOf; a list option is repeated per value (HardKAS's repeatable options) unless the field is variadic (--signatures <files...>, one flag then every file); the account select keeps unknown values visible and offers a placeholder when required.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…shorter rail, auto-mining

What a first look at the IDE found: the most valuable panel in the narrowest column, fourteen rail icons and
a vocabulary for experts, a paragraph on every card, mining the user had to know about, and the assistant
taking a third of the screen. Five changes:

- Deploy & Run opens as a tab in the editor area by default (DEFAULT_DOCKS), with room for its six tabs and
  its forms; the panel is a CSS container and card groups go to two columns when it is wide. The Position
  controls still move it to a side column.
- The empty editor area is a getting-started guide (shell/GettingStarted.tsx): six steps from an empty
  project to a contract called and drawn, one button each (start node, fund, compile the first .sil, deploy,
  call an entry, open the graph), ticked from the real state of the node, the accounts and the records; one
  click hides it and a link brings it back.
- The rail shows the everyday views; Plugins, Run history, Lineage and Index are `advanced` in their
  profiles and sit behind a "More" toggle (an open advanced view always shows its icon).
- Cards say one sentence; the rest of the summary and HardKAS's caveat sit behind "More" (splitSummary,
  tested). Card group notes the same.
- Auto-mining: when a command that waits for a block starts on the local node (--wait, or tx send) and no
  miner runs, the environment plugin mines one burst (localnet fund --amount 1 --stop-miner) and says so in
  the Console; a switch in the Local node card turns it off (remembered per browser). The card now reads in
  one line, "Mine a burst" is "Mine blocks now" and "Start miner" is "Keep mining".
- The Assistant starts collapsed until the user shows it (DEFAULT_HIDDEN_PANELS); the rail button opens it.

Checked in the browser against the running node: the rail, the guide with its ticks, Deploy & Run as a
tab with the Escrow tab readable, the miner card with the switch, and a `--wait` command that started a
burst by itself which stopped on its own. Typecheck clean; 193 IDE tests pass.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…is none

Step 1 of the guide asks each tool from its source and shows one row per tool with a fix: Node.js on the
PATH against the release HardKas requires (/api/system now runs `node --version` and reports
nodeOnPath/nodeRequired), the hardkas CLI the server resolved against the tested version (/api/cli),
silverc and kaspa-wasm (`hardkas silver doctor --json`, with Install buttons that run `toolchain install`),
and Docker when the environment is the local node (a link, or "Use the Simulator"). The step is done when
nothing is missing; version mismatches are warnings. One report per page load, "check again" replaces it.

Step 4 (compile) in a project without a .sil file now opens the New artifact wizard on the basic
SilverScript template instead of pointing at the Explorer.

Checked in the browser: all five rows green on this machine (Node 24.22.1, CLI rc.3 from the project,
silverc, kaspa-wasm 2.1.0, Docker 29.4.2).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…rdKas

A profile says which block it belongs to (group: workspace | hardkas, HardKas by default; the rail also knows files, scripts and tests by name for profiles that say nothing). Side panels and editor-area views sit together in their block, by order: Servers, Accounts, Compiler, Deploy & Run, Covenant Graph. A separator between the blocks, then More.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…e line

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…s (Plugins first)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…s block; More keeps Plugins

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Everything is in view: the workspace block, a line, the HardKas block ending with Plugins. The advanced flag goes with it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The results came only at the end (vitest's JSON report), so a run was a bar and nothing else. The view now reads vitest's default reporter as it streams (console.run takes onOutput): each test file appears when it finishes, with passed/total, time and the names of its failing tests, and the bar fills and turns red at the first failure. The full tree replaces it when the JSON report arrives. foldVitestOutput is tested against vitest 2.1's real output, split chunks and colour codes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…tores

- The tree now lists node_modules, dist, coverage and .turbo flagged hidden (not read); the eye button in the Explorer shows them, and opening one loads a single level through GET /api/fs/dir (readDir: same checks as every file route, .git never listed, 2000 entries per level). Search and find still skip them.

- Key stores (dev-accounts, backups, accounts.real.json, dev-server-token, keystores) are listed with a lock and a short reason instead of failing with 403 when clicked; the tree no longer reads inside them.

- Every known .hardkas folder carries a short label and a tooltip saying what it holds (plans: planned, unsigned; signed; node answers; contracts; locks; node data…), from utils/hardkasNotes.ts.

Tested: server readTree/readDir (fs-tree.test.ts), the notes (hardkasNotes.test.ts); checked live on a pnpm project (dist and node_modules appear on the eye, node_modules opens one level). Committed without the uncommitted diagnostics work that shares FilesPanel.tsx, client.ts, fs.ts and index.ts; the commit was typechecked on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…or.json

The live silverc check made up placeholder constructor values when a contract had no <name>.constructor-args.json, and it knew bytes32 but not byte[32], SilverScript's own spelling: every byte[N] parameter got an int, and silverc answered 'cannot convert artifact int to byte[32]' on a contract that compiles. byte[N], byte[] and sig now get byte values of the right length (test: silver-check-args.test.ts).

Both the check and Ctrl+Enter compile now also read <name>.ctor.json next to the source, after <name>.constructor-args.json, so a project that keeps its real constructor values there is compiled with them. Checked on CardAtomicSwapCovenant.sil (8 parameters, 5 of them byte[32]): the check passes with its .ctor.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@KasLabDevs
KasLabDevs merged commit e8e674d into main Nov 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant