@floless/app 0.137.2 → 0.137.4
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/dist/floless-server.cjs +516 -319
- package/dist/web/app.css +21 -0
- package/dist/web/commands-shell.js +11 -0
- package/dist/web/grid-core.js +4 -2
- package/dist/web/steel-3d-core.js +117 -15
- package/dist/web/steel-3d-view.js +15 -14
- package/dist/web/steel-editor.html +30 -15
- package/dist/web/steel-model-commands.js +1 -2
- package/dist/web/steel-model-v2-commands.js +1 -1
- package/dist/web/steel-model-v2-projection.js +1 -1
- package/dist/web/steel-plan-transform.js +43 -0
- package/dist/web/steel-units.js +25 -0
- package/dist/web/workspaces.js +81 -1
- package/package.json +2 -1
package/dist/web/workspaces.js
CHANGED
|
@@ -7032,6 +7032,86 @@
|
|
|
7032
7032
|
' detail/connection markers, but modeled 0 joints in this version.</div>';
|
|
7033
7033
|
}
|
|
7034
7034
|
|
|
7035
|
+
/**
|
|
7036
|
+
* WHAT THE READ AUTHORED that the saved Drawing Filter checkpoint never stated (#962b).
|
|
7037
|
+
*
|
|
7038
|
+
* The checkpoint is the document the human approved, and a first read may fill it in but not restate
|
|
7039
|
+
* it. Some upgraded checkpoints state things this build cannot honour — an empty grid, a registration
|
|
7040
|
+
* reference in a retired spelling, a drawing view with no registration at all — and the read is now
|
|
7041
|
+
* allowed to author exactly those. That is an approval fact, so the person who approved the document
|
|
7042
|
+
* has to be able to see it happened; a server log is a record for an operator, not for them.
|
|
7043
|
+
*
|
|
7044
|
+
* NOT the amber caution beside it. Nothing here needs acting on: the version published and is
|
|
7045
|
+
* correct. It reads in the neutral register `.hist-working` uses, and it leads with the reassurance,
|
|
7046
|
+
* because the first question anyone has on seeing this next to "AI read" is whether the AI overrode
|
|
7047
|
+
* what they approved. It did not — that is the whole point of the guard it passed.
|
|
7048
|
+
*
|
|
7049
|
+
* PARSED, NEVER ECHOED, following `detailReconciliationWarningHtml` exactly: the audit's own sentence
|
|
7050
|
+
* is written for a reader-AI and an operator, and it carries a mask hash that identifies nothing a
|
|
7051
|
+
* human can act on. A shape this does not recognise renders nothing rather than dumping that prose
|
|
7052
|
+
* at a detailer.
|
|
7053
|
+
*/
|
|
7054
|
+
const SHELL_AUTHORED_REASON = {
|
|
7055
|
+
'grid-unstated': 'a structural grid',
|
|
7056
|
+
'unreadable-reference': 'a readable drawing reference',
|
|
7057
|
+
'unregistered-view': 'where a drawing view sits in the model',
|
|
7058
|
+
};
|
|
7059
|
+
|
|
7060
|
+
function shellAuthoredNoteHtml(v) {
|
|
7061
|
+
if (!v || v.kind !== 'revision-read') return '';
|
|
7062
|
+
const audit = v.source && v.source.readAudit;
|
|
7063
|
+
const report = audit && audit.report;
|
|
7064
|
+
if (!audit || audit.version !== 1 || !report || report.version !== 1
|
|
7065
|
+
|| report.policy !== 'steel-read-completion/v1' || !Array.isArray(report.checks)) return '';
|
|
7066
|
+
const matching = report.checks.filter((row) => row && typeof row === 'object' && row.id === 'shell-preserved');
|
|
7067
|
+
if (matching.length !== 1) return '';
|
|
7068
|
+
const check = matching[0];
|
|
7069
|
+
if (check.status !== 'warning' || typeof check.detail !== 'string') return '';
|
|
7070
|
+
// ANCHORED END TO END, a 64-hex mask, and the exact closing clause: a regex that accepts any tail
|
|
7071
|
+
// would let a reworded or truncated audit sentence through and be read as the one this UI knows.
|
|
7072
|
+
// The reason CODES are the deliberate exception — an unmapped one falls back to itself below
|
|
7073
|
+
// rather than hiding the whole note, because a build that learns a new reason must not go silent
|
|
7074
|
+
// about a read having authored something. (Format anchoring found by review.)
|
|
7075
|
+
const match = /^([1-9]\d*) field\(s\) authored where the saved Drawing Filter checkpoint states nothing this build can honour \(([a-z][a-z-]*(?:, [a-z][a-z-]*)*); mask [0-9a-f]{64}\) — every OTHER field the checkpoint states is unchanged$/.exec(check.detail);
|
|
7076
|
+
if (!match) return '';
|
|
7077
|
+
const fields = Number(match[1]);
|
|
7078
|
+
if (!Number.isSafeInteger(fields)) return '';
|
|
7079
|
+
// `Object.hasOwn`, never a bare lookup: an inherited key would silently answer for a reason code
|
|
7080
|
+
// nobody wrote a phrase for. An unmapped code falls back to itself, readably, rather than blank.
|
|
7081
|
+
const phrases = match[2].split(', ').map((code) => (Object.hasOwn(SHELL_AUTHORED_REASON, code)
|
|
7082
|
+
? SHELL_AUTHORED_REASON[code]
|
|
7083
|
+
: code.replace(/-/g, ' ')));
|
|
7084
|
+
const listed = phrases.length > 1
|
|
7085
|
+
? `${phrases.slice(0, -1).join(', ')} or ${phrases[phrases.length - 1]}`
|
|
7086
|
+
: phrases[0];
|
|
7087
|
+
// The JSONPath list is evidence for whoever wants it, not copy — collapsed, and labelled technical.
|
|
7088
|
+
const rawSamples = Array.isArray(check.samples) ? check.samples : [];
|
|
7089
|
+
const samples = rawSamples.filter((row) => typeof row === 'string')
|
|
7090
|
+
.map((row) => row.replace(/ \([a-z-]+, [a-z-]+\)$/, ''));
|
|
7091
|
+
// The audit caps its sample list, so the count and the list can legitimately disagree. Say so
|
|
7092
|
+
// rather than letting a reader count nine rows under a headline that says thirteen.
|
|
7093
|
+
// From the RAW length, not the filtered one: a sample that is not a string is still a sample the
|
|
7094
|
+
// audit sent, so counting only the ones this UI could render would over-report what is missing.
|
|
7095
|
+
const undisclosed = fields - rawSamples.length;
|
|
7096
|
+
// The disclosure is a control a person invokes, so it carries its own command id and instance —
|
|
7097
|
+
// otherwise `?` on it falls back to whatever the DOM happens to expose. Instanced by VERSION,
|
|
7098
|
+
// because a project can carry one of these notes per read.
|
|
7099
|
+
const instance = `version ${Number(v.n)}`;
|
|
7100
|
+
const tech = samples.length
|
|
7101
|
+
? `<details class="hist-change-tech"><summary data-command-id="shell.history-authored-fields#${escapeAttr(String(v.n))}" ` +
|
|
7102
|
+
`data-command-instance-label="${escapeAttr(instance)}">Which fields (technical)</summary>` +
|
|
7103
|
+
samples.map((path) => `<span class="rev-issue-path">${escapeHtml(path)}</span>`).join('') +
|
|
7104
|
+
(undisclosed > 0 ? `<span class="hist-change-more">${escapeHtml(`${undisclosed} more not listed.`)}</span>` : '') +
|
|
7105
|
+
'</details>'
|
|
7106
|
+
: '';
|
|
7107
|
+
return '<div class="hist-change-note" role="note"><span aria-hidden="true">●</span> ' +
|
|
7108
|
+
'<strong>Some fields were filled in beyond the saved Drawing Filter.</strong> ' +
|
|
7109
|
+
escapeHtml(`The checkpoint you saved did not state ${listed}, so this read supplied ` +
|
|
7110
|
+
`${phrases.length > 1 ? 'them' : 'it'} — ${fields} ${fields === 1 ? 'field' : 'fields'} in total. ` +
|
|
7111
|
+
'Everything else the checkpoint stated was kept exactly as approved.') +
|
|
7112
|
+
`${tech}</div>`;
|
|
7113
|
+
}
|
|
7114
|
+
|
|
7035
7115
|
function changeCellHtml(v, meta) {
|
|
7036
7116
|
const s = v.changeSummary;
|
|
7037
7117
|
const n = Number(v.n);
|
|
@@ -7042,7 +7122,7 @@
|
|
|
7042
7122
|
'data-tip="Show the complete member-by-member comparison">' +
|
|
7043
7123
|
'<span class="hd-caret">▸</span><span class="hd-toggle-label">View detailed changes</span></button>'
|
|
7044
7124
|
: '';
|
|
7045
|
-
const detailWarning = detailReconciliationWarningHtml(v)
|
|
7125
|
+
const detailWarning = `${detailReconciliationWarningHtml(v)}${shellAuthoredNoteHtml(v)}`;
|
|
7046
7126
|
if (!s || !Array.isArray(s.bullets)) {
|
|
7047
7127
|
return `<div class="hist-event">${escapeHtml(v.message)}</div>${detailWarning}${toggle}`;
|
|
7048
7128
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floless/app",
|
|
3
|
-
"version": "0.137.
|
|
3
|
+
"version": "0.137.4",
|
|
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": {
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"verify:instructor-wired": "node build/verify-instructor-wired.mjs",
|
|
61
61
|
"verify:carrier-escaping": "node build/verify-instructor-carrier-escaping.mjs",
|
|
62
62
|
"verify:producer-purity": "node build/verify-producer-purity.mjs",
|
|
63
|
+
"verify:geometry-primitives": "node build/verify-geometry-primitives.mjs",
|
|
63
64
|
"verify:claim-lock": "node ../tools/routine-claim.mjs selftest",
|
|
64
65
|
"typecheck": "tsc --noEmit",
|
|
65
66
|
"prepack": "npm run build",
|