aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/spine.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-04-22 13:57:17 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-04-22 20:42:31 -0400
commit8df299dc69ade4484b1167a8fa293c291fbb8a4a (patch)
tree50a4140e4d0bf18ae49a22bd6c8c65f5323e98a4 /org/spine.org
parentdocument abstraction as per document sqlite db (diff)
include .ssp document abstraction in source pod
- When --source/--pod is used, automatically generate the .ssp document abstraction and bundle it into the pod at media/abstraction/{doc_uid}.{lang}.ssp - This makes show_abstraction implicitly true when source_or_pod is active, so the .ssp file is generated before the pod assembler runs (abstraction runs before outputHub, and source_or_pod is the first task in outputHub). - Changes: paths_source.d: Add abstraction_root() path helper to _PodPaths struct, following the same pattern as image_root(). Produces paths like pod/media/abstraction/ for both zpod (inside zip) and filesystem_open_zpod (open directory). source_pod.d: - Create media/abstraction/ directory in podArchive_directory_tree - Bundle .ssp file in pod_zipMakeReady: reads from the abstraction output directory, copies to open pod directory, adds to zip archive, computes SHA-256 digest - Write .ssp digest in zipArchiveDigest alongside sstm and ssi digests spine.d: Make show_abstraction() return true when source_or_pod is active (previously only returned true for explicit --show-abstraction flag). - The .ssp is always included when building pods - no exclusion flag for this experimental feature to keep things simple. Not generated for non-pod outputs (--text, --html, etc.) unless --show-abstraction is explicitly passed. - Tested against all 35 sample documents - zero failures. Co-Authored-By: Anthropic Claude Opus 4.6 (1M context)
Diffstat (limited to 'org/spine.org')
-rw-r--r--org/spine.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/org/spine.org b/org/spine.org
index abc4b07..e1748e7 100644
--- a/org/spine.org
+++ b/org/spine.org
@@ -699,7 +699,7 @@ struct OptActions {
return opts["show-config"];
}
@trusted bool show_abstraction() {
- return opts["show-abstraction"];
+ return (opts["show-abstraction"] || source_or_pod) ? true : false;
}
@trusted bool show_abstraction_db() {
return opts["show-abstraction-db"];