@floless/app 0.113.4 → 0.113.5

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.
@@ -54472,7 +54472,7 @@ function appVersion() {
54472
54472
  return resolveVersion({
54473
54473
  isSea: isSea2(),
54474
54474
  sqVersionXml: readSqVersionXml(),
54475
- define: true ? "0.113.4" : void 0,
54475
+ define: true ? "0.113.5" : void 0,
54476
54476
  pkgVersion: readPkgVersion()
54477
54477
  });
54478
54478
  }
@@ -54488,7 +54488,7 @@ function resolveChannel(s) {
54488
54488
  function appChannel() {
54489
54489
  return resolveChannel({
54490
54490
  isSea: isSea2(),
54491
- define: true ? "0.113.4" : void 0,
54491
+ define: true ? "0.113.5" : void 0,
54492
54492
  // argv[1] is the entry the runtime actually loaded (…/dist/floless-server.cjs), which is what
54493
54493
  // carries the npx cache prefix. Absent under the SEA exe, which never reaches the npx branch.
54494
54494
  modulePath: process.argv[1]
@@ -1740,16 +1740,19 @@ async function boot() {
1740
1740
  // The server's tag for the contract we just read. Every write echoes it back, so a write that would
1741
1741
  // land on top of someone else's is refused instead of silently winning.
1742
1742
  serverEtag = res.headers.get('ETag');
1743
- // The confidence target is a workflow INPUT (target_confidence), not contract data — read its
1744
- // declared default off the app def so the chip can show the goal. Best-effort: on any failure the
1745
- // chip just omits the "· target N%" suffix (no fabricated goal).
1746
- try {
1747
- const ar = await fetch('/api/app/' + encodeURIComponent(APP_ID));
1748
- if (ar.ok) {
1749
- const ti = ((await ar.json())?.app?.inputs || []).find(i => i && i.name === 'target_confidence');
1750
- if (ti && typeof ti.default === 'number') TARGET_CONF = ti.default;
1751
- }
1752
- } catch (_) { /* no target goal shown */ }
1743
+ // The confidence target is a workflow INPUT (target_confidence), not contract data. Read its declared
1744
+ // default only for an app-scoped editor: a project owns its contract independently of the installed
1745
+ // workflow, so asking /api/app/<id> there can only add a normal 404 to the console. A project-specific
1746
+ // target still comes from C.target_confidence through effectiveTarget().
1747
+ if (!PROJECT) {
1748
+ try {
1749
+ const ar = await fetch('/api/app/' + encodeURIComponent(APP_ID));
1750
+ if (ar.ok) {
1751
+ const ti = ((await ar.json())?.app?.inputs || []).find(i => i && i.name === 'target_confidence');
1752
+ if (ti && typeof ti.default === 'number') TARGET_CONF = ti.default;
1753
+ }
1754
+ } catch (_) { /* no target goal shown */ }
1755
+ }
1753
1756
  PAL = (Array.isArray(C.palette) && C.palette.length) ? C.palette : DEFAULT_PAL; WT = C.weights || {};
1754
1757
  try { const _sr = await fetch('/api/aisc-shapes'); if (_sr.ok) { const _sj = await _sr.json(); if (Array.isArray(_sj.shapes)) window.__AISC_SHAPES = new Set(_sj.shapes); if (_sj.bf && typeof _sj.bf === 'object') window.__AISC_BF = _sj.bf; if (_sj.sections && typeof _sj.sections === 'object') window.__AISC_SECTIONS = _sj.sections; } } catch (_) { /* no shape table → _nominalPlf falls back to regex-only; columns fall back to the marker footprint */ }
1755
1758
  // No weight seeding needed: every RFI/weight read resolves through _wt(), which falls back to the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floless/app",
3
- "version": "0.113.4",
3
+ "version": "0.113.5",
4
4
  "type": "module",
5
5
  "description": "Thin localhost host for floless.app — serves web/ and shells the aware CLI. No engine, no LLM.",
6
6
  "bin": {