@synap-core/workspace-templates 0.58.0 → 0.59.0
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/README.md +1 -0
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
- package/src/content-os.piece-model.template.test.ts +37 -0
- package/src/content-os.yaml +19 -0
- package/src/space-packages.generated.ts +1 -1
- package/src/templates.ts +17 -0
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synap-core/workspace-templates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical workspace definitions — YAML source + typed exports for browser, backend, CLI, and marketplace",
|
|
6
|
+
"license": "PolyForm-Noncommercial-1.0.0",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/Synap-core/app-bases.git",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"type-check:catalog": "tsc -p tsconfig.catalog.json",
|
|
56
57
|
"build:yaml": "node --experimental-strip-types build.mjs",
|
|
57
58
|
"build:space-packages": "node scripts/build-space-packages.mjs",
|
|
59
|
+
"build:renderer-bundle": "node scripts/build-renderer-bundle.mjs",
|
|
58
60
|
"check:converters": "node scripts/check-converters.mjs",
|
|
59
61
|
"check:concepts": "node scripts/check-concepts.mjs",
|
|
60
62
|
"build": "node --experimental-strip-types build.mjs && tsup && node scripts/check-converters.mjs && node scripts/check-concepts.mjs",
|
|
@@ -245,6 +245,43 @@ describe("the piece's board, its chapters' order, and captures", () => {
|
|
|
245
245
|
});
|
|
246
246
|
});
|
|
247
247
|
|
|
248
|
+
// ── Content Studio design I (founder, 19 Nov 2026; spec 6395a4ef §2, §10 item 1) ──
|
|
249
|
+
|
|
250
|
+
describe("a piece's format: content-format (design I)", () => {
|
|
251
|
+
// The studio's contract, site-content-studio lib/content/formats.ts FormatKey, in the spec's order.
|
|
252
|
+
const FORMAT_KEYS = [
|
|
253
|
+
"text-site",
|
|
254
|
+
"text-linkedin",
|
|
255
|
+
"text-newsletter",
|
|
256
|
+
"carousel-linkedin",
|
|
257
|
+
"carousel-instagram",
|
|
258
|
+
"carousel-both",
|
|
259
|
+
"video-motion",
|
|
260
|
+
"video-capture",
|
|
261
|
+
];
|
|
262
|
+
|
|
263
|
+
it("is a select whose values are exactly the studio's format keys", () => {
|
|
264
|
+
const prop = piece.properties.find((p) => p.slug === "content-format");
|
|
265
|
+
expect(prop).toMatchObject({ valueType: "string", inputType: "select" });
|
|
266
|
+
expect(prop?.enumValues).toEqual(FORMAT_KEYS);
|
|
267
|
+
});
|
|
268
|
+
|
|
269
|
+
it("has no default: a new piece is a thinking piece until a format is picked", () => {
|
|
270
|
+
const prop = piece.properties.find((p) => p.slug === "content-format");
|
|
271
|
+
expect(prop?.enumValues?.length).toBe(FORMAT_KEYS.length); // non-vacuous: an absent property fails here
|
|
272
|
+
expect(prop?.constraints?.defaultValue).toBeUndefined();
|
|
273
|
+
expect(piece.lifecycle?.property).not.toBe("content-format");
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
it("a content piece is a child composition derived_from the piece it is made from (D2)", () => {
|
|
277
|
+
expect(
|
|
278
|
+
(contentOs.entityLinks ?? []).some(
|
|
279
|
+
(l) => l.sourceProfileSlug === "content-composition" && l.targetProfileSlug === "content-composition" && l.type === "derived_from",
|
|
280
|
+
),
|
|
281
|
+
).toBe(true);
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
|
|
248
285
|
describe("Thinking session: a timeboxed process on one piece, the AI never writes it", () => {
|
|
249
286
|
const pb = (contentOs.playbooks ?? []).find((p) => p.name === "Thinking session");
|
|
250
287
|
|
package/src/content-os.yaml
CHANGED
|
@@ -1427,6 +1427,25 @@ profiles:
|
|
|
1427
1427
|
description: Id of this piece's whiteboard (a pod view of type whiteboard).
|
|
1428
1428
|
valueType: string
|
|
1429
1429
|
inputType: text
|
|
1430
|
+
# What the piece is made as (Content Studio design I, founder 19 Nov
|
|
1431
|
+
# 2026, spec document 6395a4ef §2 and §10 item 1; decisions D1 to D3 in
|
|
1432
|
+
# session 8dbf9092). Empty = a thinking piece; set = a content piece,
|
|
1433
|
+
# called by its format ("Carousel · LinkedIn"), a CHILD composition
|
|
1434
|
+
# `derived_from` the piece it is made from. No default: a piece starts
|
|
1435
|
+
# as thinking. The keys are the studio's contract
|
|
1436
|
+
# (site-content-studio lib/content/formats.ts), which also holds each
|
|
1437
|
+
# option's label, since a plain select has no option labels here:
|
|
1438
|
+
# text-site "Text · your site", text-linkedin "Text · LinkedIn",
|
|
1439
|
+
# text-newsletter "Text · newsletter", carousel-linkedin
|
|
1440
|
+
# "Carousel · LinkedIn", carousel-instagram "Carousel · Instagram",
|
|
1441
|
+
# carousel-both "Carousel · LinkedIn and Instagram", video-motion
|
|
1442
|
+
# "Video · motion design", video-capture "Video · captured".
|
|
1443
|
+
- slug: content-format
|
|
1444
|
+
label: Format
|
|
1445
|
+
description: "What this piece is made as. Empty: a thinking piece. text-site = Text · your site, text-linkedin = Text · LinkedIn, text-newsletter = Text · newsletter, carousel-linkedin = Carousel · LinkedIn, carousel-instagram = Carousel · Instagram, carousel-both = Carousel · LinkedIn and Instagram, video-motion = Video · motion design, video-capture = Video · captured."
|
|
1446
|
+
valueType: string
|
|
1447
|
+
inputType: select
|
|
1448
|
+
enumValues: [text-site, text-linkedin, text-newsletter, carousel-linkedin, carousel-instagram, carousel-both, video-motion, video-capture]
|
|
1430
1449
|
|
|
1431
1450
|
- slug: content-asset
|
|
1432
1451
|
displayName: Asset
|
|
@@ -33,7 +33,7 @@ export const BUILT_SPACE_PACKAGES: Record<string, BuiltSpacePackage> = {
|
|
|
33
33
|
"inputs": {
|
|
34
34
|
"packages/web/src/space-packages/builder/home.tsx": "7afed696a23b1a474eace193d85688233e2f652e5e4ca56926edc8e1a16e62ef",
|
|
35
35
|
"packages/web/src/space-packages/frame-doors.ts": "662fbd70165f21a758b8677ac7a1169030f76996921e322159ccd67e19ee7520",
|
|
36
|
-
"packages/web/src/space-packages/frame-lens.ts": "
|
|
36
|
+
"packages/web/src/space-packages/frame-lens.ts": "a218e6854b5ccb1cf6d34b6b826a2ad3eba9c447d1b0fb1b27899a36d04f92a8",
|
|
37
37
|
"packages/web/src/space-packages/SpaceWorkHome.tsx": "e44497878da09b9ac0e9356440196e5973329a5ddef462991d9deb7087444718"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/templates.ts
CHANGED
|
@@ -11761,6 +11761,23 @@ const DATA = {
|
|
|
11761
11761
|
"description": "Id of this piece's whiteboard (a pod view of type whiteboard).",
|
|
11762
11762
|
"valueType": "string",
|
|
11763
11763
|
"inputType": "text"
|
|
11764
|
+
},
|
|
11765
|
+
{
|
|
11766
|
+
"slug": "content-format",
|
|
11767
|
+
"label": "Format",
|
|
11768
|
+
"description": "What this piece is made as. Empty: a thinking piece. text-site = Text · your site, text-linkedin = Text · LinkedIn, text-newsletter = Text · newsletter, carousel-linkedin = Carousel · LinkedIn, carousel-instagram = Carousel · Instagram, carousel-both = Carousel · LinkedIn and Instagram, video-motion = Video · motion design, video-capture = Video · captured.",
|
|
11769
|
+
"valueType": "string",
|
|
11770
|
+
"inputType": "select",
|
|
11771
|
+
"enumValues": [
|
|
11772
|
+
"text-site",
|
|
11773
|
+
"text-linkedin",
|
|
11774
|
+
"text-newsletter",
|
|
11775
|
+
"carousel-linkedin",
|
|
11776
|
+
"carousel-instagram",
|
|
11777
|
+
"carousel-both",
|
|
11778
|
+
"video-motion",
|
|
11779
|
+
"video-capture"
|
|
11780
|
+
]
|
|
11764
11781
|
}
|
|
11765
11782
|
]
|
|
11766
11783
|
},
|