@synap-core/workspace-templates 0.75.0 → 0.76.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 +17 -0
- package/dist/{define-gpV3Inzh.d.ts → define-BkLLS_UL.d.ts} +14 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1280 -113
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/src/brand-library.yaml +4 -1
- package/src/content-os.piece-model.template.test.ts +52 -31
- package/src/content-os.space-contract.template.test.ts +158 -0
- package/src/content-os.template.test.ts +21 -8
- package/src/content-os.video-takes.template.test.ts +2 -2
- package/src/content-os.yaml +1624 -178
- package/src/crm.yaml +2 -1
- package/src/frame-host-modules.d.mts +1 -1
- package/src/frame-host-modules.mjs +5 -2
- package/src/lifecycle-declarations.test.ts +5 -0
- package/src/onboarding-intents.validate.test.ts +85 -0
- package/src/property-relation.validate.test.ts +218 -0
- package/src/social.yaml +5 -2
- package/src/templates.ts +1152 -112
- package/src/types.ts +14 -0
- package/src/validate.ts +181 -2
package/README.md
CHANGED
|
@@ -374,6 +374,23 @@ meta:
|
|
|
374
374
|
on serve); the pod keeps it in `workspaces.settings.intent`. A space with no declared intent gets one inferred at
|
|
375
375
|
read time (the profiles there that declare a lifecycle and hold things), never stored.
|
|
376
376
|
|
|
377
|
+
### Declared requests (`onboarding.intents`)
|
|
378
|
+
|
|
379
|
+
The requests a space takes, in its owner's words, so a person's plain request reaches the space without naming
|
|
380
|
+
it (`find` ranks the member spaces on them; space contract L3). They sit in the brief:
|
|
381
|
+
|
|
382
|
+
```yaml
|
|
383
|
+
onboarding:
|
|
384
|
+
intents:
|
|
385
|
+
- { phrase: write a LinkedIn post, locale: en }
|
|
386
|
+
- { phrase: rédiger un post LinkedIn, locale: fr }
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
At most 8 phrases of at most 80 characters, each of two or more meaningful words (glue words such as "the", "to",
|
|
390
|
+
"le", "de" do not count), `locale` a BCP 47 language, one language per phrase (a space that serves two languages
|
|
391
|
+
declares each). `synap catalog validate` checks the caps (`onboarding-intent*`): the pod clips, drops or never
|
|
392
|
+
matches what breaks them. The brief reconcile carries `intents` to an installed space like its other seeded fields.
|
|
393
|
+
|
|
377
394
|
## Capabilities that run on a computer
|
|
378
395
|
|
|
379
396
|
Some capabilities run on one of the person's computers (a Mac, a Linux box), not on the pod: ffmpeg, a local
|
|
@@ -96,6 +96,20 @@ interface TemplateProperty {
|
|
|
96
96
|
enumValues?: string[];
|
|
97
97
|
constraints?: Record<string, unknown>;
|
|
98
98
|
targetProfileSlug?: string;
|
|
99
|
+
/**
|
|
100
|
+
* The relation type (a relation_def slug) this `entity_id` property creates:
|
|
101
|
+
* setting a value links the entity to the target through the property sync,
|
|
102
|
+
* so the reference is a graph edge a view or traversal can follow. Both pod
|
|
103
|
+
* provisioning doors write it to `property_defs.relation_def_id`
|
|
104
|
+
* (`resolvePropertyRelationDefs`, backend#1498). The slug must be one this
|
|
105
|
+
* template's `entityLinks` / `relationDefs` (or a dependency, or a pod-wide
|
|
106
|
+
* default) defines; never an exposure relation (`visible_to`,
|
|
107
|
+
* `belongs_to_project`); ONE property per relation per template. Only entity
|
|
108
|
+
* values written after the template applies link: rows that already hold a
|
|
109
|
+
* value link through `relations.backfill`. Validated by
|
|
110
|
+
* `checkPropertyRelations` in validate.ts.
|
|
111
|
+
*/
|
|
112
|
+
relation?: string;
|
|
99
113
|
}
|
|
100
114
|
interface TemplateProfile {
|
|
101
115
|
slug: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { W as WorkspaceYaml, T as TemplateDependency, a as TemplateLifecycleOption, b as TemplateLifecycleOptionWaits } from './define-
|
|
2
|
-
export { B as BentoViewBlockWire, c as BentoWidgetBlockWire, d as BuiltSpacePackage, e as BuiltSpacePackageCell, I as INTENT_LABEL_MAX, P as PACKAGE_DEPENDENCY_KINDS, f as PackageAutomationWire, g as PackageDefinitionOutput, h as PackageDependencyKind, S as START_EXAMPLE_RANGE, i as START_STARTERS_RANGE, j as START_VIEWS_MAX, k as SpacePackageCellWire, l as SplitBentoBlocks, m as TemplateActionPlacement, n as TemplateAppKind, o as TemplateAppRef, p as TemplateAutomation, q as TemplateBentoBlock, r as TemplateDefaultSource, s as TemplateDisplayTemplate, t as TemplateEntityLink, u as TemplateExtendsRef, v as TemplateIntegration, w as TemplateIntent, x as TemplateLayoutConfig, y as TemplateMeta, z as TemplateOnboarding, A as TemplateOnboardingCollectTarget, C as TemplatePlaybook, D as TemplatePlaybookParam, E as TemplatePrimarySurface, F as TemplateProfile, G as TemplateProfileEntityBentoTemplates, H as TemplateProperty, J as TemplateSeedEntity, K as TemplateSidebarItem, L as TemplateSidebarSurface, M as TemplateSourceRole, N as TemplateSpacePackage, O as TemplateSpacePackageCell, Q as TemplateStart, R as TemplateSuggestedRelation, U as TemplateView, V as ToDefinitionResult, X as WorkspaceDefinitionInput, Y as WorkspaceJsonValue, Z as WorkspacePrimarySurface, _ as WorkspacePrimarySurfaceViewReference, $ as normalizeTemplateLayout, a0 as spacePackageCells, a1 as splitBentoBlocks, a2 as toAutomationWire, a3 as toPackageDefinition, a4 as toWorkspaceDefinition } from './define-
|
|
1
|
+
import { W as WorkspaceYaml, T as TemplateDependency, a as TemplateLifecycleOption, b as TemplateLifecycleOptionWaits } from './define-BkLLS_UL.js';
|
|
2
|
+
export { B as BentoViewBlockWire, c as BentoWidgetBlockWire, d as BuiltSpacePackage, e as BuiltSpacePackageCell, I as INTENT_LABEL_MAX, P as PACKAGE_DEPENDENCY_KINDS, f as PackageAutomationWire, g as PackageDefinitionOutput, h as PackageDependencyKind, S as START_EXAMPLE_RANGE, i as START_STARTERS_RANGE, j as START_VIEWS_MAX, k as SpacePackageCellWire, l as SplitBentoBlocks, m as TemplateActionPlacement, n as TemplateAppKind, o as TemplateAppRef, p as TemplateAutomation, q as TemplateBentoBlock, r as TemplateDefaultSource, s as TemplateDisplayTemplate, t as TemplateEntityLink, u as TemplateExtendsRef, v as TemplateIntegration, w as TemplateIntent, x as TemplateLayoutConfig, y as TemplateMeta, z as TemplateOnboarding, A as TemplateOnboardingCollectTarget, C as TemplatePlaybook, D as TemplatePlaybookParam, E as TemplatePrimarySurface, F as TemplateProfile, G as TemplateProfileEntityBentoTemplates, H as TemplateProperty, J as TemplateSeedEntity, K as TemplateSidebarItem, L as TemplateSidebarSurface, M as TemplateSourceRole, N as TemplateSpacePackage, O as TemplateSpacePackageCell, Q as TemplateStart, R as TemplateSuggestedRelation, U as TemplateView, V as ToDefinitionResult, X as WorkspaceDefinitionInput, Y as WorkspaceJsonValue, Z as WorkspacePrimarySurface, _ as WorkspacePrimarySurfaceViewReference, $ as normalizeTemplateLayout, a0 as spacePackageCells, a1 as splitBentoBlocks, a2 as toAutomationWire, a3 as toPackageDefinition, a4 as toWorkspaceDefinition } from './define-BkLLS_UL.js';
|
|
3
3
|
import '@synap-core/types/presentation';
|
|
4
4
|
import '@synap-core/types/space-brief';
|
|
5
5
|
import '@synap-core/types/capability-intents';
|