@synap-core/workspace-templates 0.40.0 → 0.43.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/capabilities/agency-skills.capability.json +12 -0
- package/capabilities/client-comms-report.capability.json +9 -0
- package/capabilities/datagouv.capability.json +23 -40
- package/capabilities/jev.capability.json +3 -16
- package/capabilities/proton.capability.json +5 -0
- package/dist/{define-C0Iizc2r.d.ts → define-CRNRmaqi.d.ts} +33 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +254 -71
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/src/agency-os.yaml +20 -5
- package/src/brand-library.yaml +19 -6
- package/src/builder.yaml +11 -8
- package/src/content-os.template.test.ts +26 -11
- package/src/content-os.yaml +40 -32
- package/src/crm-find-contact.template.test.ts +1 -2
- package/src/crm-lists.template.test.ts +1 -1
- package/src/crm-messages-cadence.template.test.ts +3 -3
- package/src/crm-rules-guidance.template.test.ts +1 -1
- package/src/crm.yaml +42 -31
- package/src/ecosystem.yaml +2 -7
- package/src/finance.yaml +22 -7
- package/src/marketing.yaml +1 -1
- package/src/meetings-knowledge.yaml +1 -5
- package/src/operations.yaml +18 -8
- package/src/postiz-contract.test.ts +2 -2
- package/src/research-base.yaml +2 -7
- package/src/research-decision.yaml +1 -5
- package/src/templates.ts +254 -71
- package/src/types.ts +31 -1
|
@@ -109,6 +109,13 @@
|
|
|
109
109
|
],
|
|
110
110
|
"schedule": null,
|
|
111
111
|
"executor": "is-agent",
|
|
112
|
+
"tools": [
|
|
113
|
+
"create_entity",
|
|
114
|
+
"attach_facet",
|
|
115
|
+
"find_people",
|
|
116
|
+
"request_connection",
|
|
117
|
+
"messaging.send"
|
|
118
|
+
],
|
|
112
119
|
"status": "draft"
|
|
113
120
|
},
|
|
114
121
|
{
|
|
@@ -149,6 +156,11 @@
|
|
|
149
156
|
],
|
|
150
157
|
"schedule": null,
|
|
151
158
|
"executor": "is-agent",
|
|
159
|
+
"tools": [
|
|
160
|
+
"create_entity",
|
|
161
|
+
"manage_file",
|
|
162
|
+
"channel.ensure"
|
|
163
|
+
],
|
|
152
164
|
"status": "draft"
|
|
153
165
|
}
|
|
154
166
|
]
|
|
@@ -49,6 +49,15 @@
|
|
|
49
49
|
"aiReactionMode": "only_mentioned"
|
|
50
50
|
},
|
|
51
51
|
"executor": "is-agent",
|
|
52
|
+
"tools": [
|
|
53
|
+
"resolve_identity",
|
|
54
|
+
"update_entity",
|
|
55
|
+
"attach_facet",
|
|
56
|
+
"propose_entity_graph",
|
|
57
|
+
"channel.resolve",
|
|
58
|
+
"feed.read",
|
|
59
|
+
"feed.post"
|
|
60
|
+
],
|
|
52
61
|
"status": "active",
|
|
53
62
|
"goalTemplate": "Produce a client-comms report for the subject client, following the `client-comms-report-method` methodology.\n\n1. Resolve this client's comms channel: run_capability channel.resolve { contextObjectType: \"entity\", contextObjectId: <the subject client's id>, branchPurpose: \"client-comms\" }. If it returns no channel, stop and say \"no comms channel is bound for this client yet\".\n2. Read the recent window: run_capability feed.read { channelId: <that channel id>, limit: 40 }.\n3. Extract the real signal (status, deals, competitors, new leads, risks, deadlines). Resolve identity before creating anything.\n4. PROPOSE any CRM updates through the normal governed doors (update_entity / attach_facet / capture). A \"proposed\" result is success, not failure — never force writes.\n5. Resolve the TEAM channel: run_capability channel.resolve { contextObjectType: \"entity\", contextObjectId: <the subject client's id>, branchPurpose: \"team\" }. If it returns no team channel, stop and say so (do NOT fall back to the client channel).\n6. Post a concise report: run_capability feed.post { channelId: <the team channel id>, content: <the report> }. FIREWALL: the team channel only, never the client channel."
|
|
54
63
|
}
|
|
@@ -229,6 +229,16 @@
|
|
|
229
229
|
"aiReactionMode": "only_mentioned"
|
|
230
230
|
},
|
|
231
231
|
"executor": "is-agent",
|
|
232
|
+
"tools": [
|
|
233
|
+
"datagouv-open-data-advisor",
|
|
234
|
+
"datagouv_search_datasets",
|
|
235
|
+
"datagouv_list_resources",
|
|
236
|
+
"datagouv_query_resource",
|
|
237
|
+
"datagouv_get_dataset",
|
|
238
|
+
"datagouv_capture_dataset",
|
|
239
|
+
"datagouv_search_dataservices",
|
|
240
|
+
"datagouv_get_dataservice"
|
|
241
|
+
],
|
|
232
242
|
"status": "draft",
|
|
233
243
|
"stages": [
|
|
234
244
|
{
|
|
@@ -237,15 +247,9 @@
|
|
|
237
247
|
"category": "started",
|
|
238
248
|
"description": "Search datasets and organizations relevant to the question. Use datagouv_search_datasets and the open-data advisor skill.",
|
|
239
249
|
"goal": "Shortlist 1–3 datasets with clear titles, orgs, and why they fit.",
|
|
240
|
-
"
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
"id": "datagouv-open-data-advisor"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"kind": "skill",
|
|
247
|
-
"id": "datagouv_search_datasets"
|
|
248
|
-
}
|
|
250
|
+
"tools": [
|
|
251
|
+
"datagouv-open-data-advisor",
|
|
252
|
+
"datagouv_search_datasets"
|
|
249
253
|
],
|
|
250
254
|
"suggestedTasks": [
|
|
251
255
|
"Search catalog in French and English keywords",
|
|
@@ -258,19 +262,10 @@
|
|
|
258
262
|
"category": "started",
|
|
259
263
|
"description": "List resources and query a small Tabular sample to learn schema.",
|
|
260
264
|
"goal": "Document resource_ids, columns, and row sample limits.",
|
|
261
|
-
"
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"kind": "skill",
|
|
268
|
-
"id": "datagouv_query_resource"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"kind": "skill",
|
|
272
|
-
"id": "datagouv_get_dataset"
|
|
273
|
-
}
|
|
265
|
+
"tools": [
|
|
266
|
+
"datagouv_list_resources",
|
|
267
|
+
"datagouv_query_resource",
|
|
268
|
+
"datagouv_get_dataset"
|
|
274
269
|
]
|
|
275
270
|
},
|
|
276
271
|
{
|
|
@@ -279,11 +274,8 @@
|
|
|
279
274
|
"category": "started",
|
|
280
275
|
"description": "Write research entities with provenance; answer the question from samples (not bulk dumps).",
|
|
281
276
|
"goal": "Captured research notes + human-readable answer with citations.",
|
|
282
|
-
"
|
|
283
|
-
|
|
284
|
-
"kind": "skill",
|
|
285
|
-
"id": "datagouv_capture_dataset"
|
|
286
|
-
}
|
|
277
|
+
"tools": [
|
|
278
|
+
"datagouv_capture_dataset"
|
|
287
279
|
]
|
|
288
280
|
},
|
|
289
281
|
{
|
|
@@ -292,19 +284,10 @@
|
|
|
292
284
|
"category": "started",
|
|
293
285
|
"description": "If the workflow is repeatable, propose a new capability verb (and optional automation) following the advisor crystallization protocol.",
|
|
294
286
|
"goal": "Either a proposed skill definition or an explicit 'not worth crystallizing' decision with reason.",
|
|
295
|
-
"
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"kind": "skill",
|
|
302
|
-
"id": "datagouv_search_dataservices"
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"kind": "skill",
|
|
306
|
-
"id": "datagouv_get_dataservice"
|
|
307
|
-
}
|
|
287
|
+
"tools": [
|
|
288
|
+
"datagouv-open-data-advisor",
|
|
289
|
+
"datagouv_search_dataservices",
|
|
290
|
+
"datagouv_get_dataservice"
|
|
308
291
|
]
|
|
309
292
|
}
|
|
310
293
|
]
|
|
@@ -179,6 +179,7 @@
|
|
|
179
179
|
"aiReactionMode": "only_mentioned"
|
|
180
180
|
},
|
|
181
181
|
"executor": "is-agent",
|
|
182
|
+
"tools": ["jev-routing-policy", "jev_choose", "jev_score"],
|
|
182
183
|
"status": "active",
|
|
183
184
|
"stages": [
|
|
184
185
|
{
|
|
@@ -186,28 +187,14 @@
|
|
|
186
187
|
"name": "Frame",
|
|
187
188
|
"category": "started",
|
|
188
189
|
"goal": "Question and options are explicit and mutually exclusive.",
|
|
189
|
-
"
|
|
190
|
-
{
|
|
191
|
-
"kind": "skill",
|
|
192
|
-
"id": "jev-routing-policy"
|
|
193
|
-
}
|
|
194
|
-
]
|
|
190
|
+
"tools": ["jev-routing-policy"]
|
|
195
191
|
},
|
|
196
192
|
{
|
|
197
193
|
"key": "ask-jev",
|
|
198
194
|
"name": "Ask Jev",
|
|
199
195
|
"category": "started",
|
|
200
196
|
"goal": "Jev's choice or scores with probabilities.",
|
|
201
|
-
"
|
|
202
|
-
{
|
|
203
|
-
"kind": "skill",
|
|
204
|
-
"id": "jev_choose"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"kind": "skill",
|
|
208
|
-
"id": "jev_score"
|
|
209
|
-
}
|
|
210
|
-
]
|
|
197
|
+
"tools": ["jev_choose", "jev_score"]
|
|
211
198
|
},
|
|
212
199
|
{
|
|
213
200
|
"key": "record",
|
|
@@ -447,7 +447,12 @@ interface TemplatePlaybook {
|
|
|
447
447
|
description?: string;
|
|
448
448
|
goalTemplate: string;
|
|
449
449
|
params?: TemplatePlaybookParam[];
|
|
450
|
-
|
|
450
|
+
/**
|
|
451
|
+
* `generate` = one-shot (backend#988): one model call with no tools, the
|
|
452
|
+
* answer filed as a proposal where its one output `lands`. Needs a
|
|
453
|
+
* `subjectProfile`, no stages, no tools (schema/playbook.ts `checkOneShot`).
|
|
454
|
+
*/
|
|
455
|
+
executor?: "is-agent" | "external-agent" | "hybrid" | "generate";
|
|
451
456
|
/**
|
|
452
457
|
* Legacy fan-out modes stay strings. `pinned` is an object: first eligible
|
|
453
458
|
* pin, then `fallback`. Entity ids are not part of this shape.
|
|
@@ -476,6 +481,11 @@ interface TemplatePlaybook {
|
|
|
476
481
|
cron: string;
|
|
477
482
|
enabled: boolean;
|
|
478
483
|
} | null;
|
|
484
|
+
/**
|
|
485
|
+
* What a run of this playbook may use beyond its class floor, "only these"
|
|
486
|
+
* (`schema/run-tools.ts`): run tools, intent slugs, capability or verb names.
|
|
487
|
+
*/
|
|
488
|
+
tools?: string[];
|
|
479
489
|
/** tool/skill keys this playbook grants. */
|
|
480
490
|
grants?: string[];
|
|
481
491
|
/**
|
|
@@ -619,8 +629,30 @@ interface TemplateExpectedOutput {
|
|
|
619
629
|
* reaches new runs and new stage entries only.
|
|
620
630
|
*/
|
|
621
631
|
optional?: boolean;
|
|
632
|
+
/**
|
|
633
|
+
* WHERE a one-shot (`executor: generate`) playbook's result lands, on its
|
|
634
|
+
* ONE output (backend#988 `ExpectedOutput.lands`): today a section of the
|
|
635
|
+
* subject's own document, by title, filed as a proposal. Only a one-shot
|
|
636
|
+
* playbook may declare it.
|
|
637
|
+
*/
|
|
638
|
+
lands?: TemplateOutputLanding;
|
|
622
639
|
[key: string]: unknown;
|
|
623
640
|
}
|
|
641
|
+
/** See {@link TemplateExpectedOutput.lands}. */
|
|
642
|
+
interface TemplateOutputLanding {
|
|
643
|
+
target: "subject_document_section";
|
|
644
|
+
/** The section's title, one line (e.g. "Caption draft"). */
|
|
645
|
+
section: string;
|
|
646
|
+
/**
|
|
647
|
+
* Past outcomes as context (backend#1005): how many of the person's last
|
|
648
|
+
* approved and rejected drafts of this playbook in this space the run shows
|
|
649
|
+
* the model as examples, each 0..5. Off when absent.
|
|
650
|
+
*/
|
|
651
|
+
examples?: {
|
|
652
|
+
approved?: number;
|
|
653
|
+
rejected?: number;
|
|
654
|
+
};
|
|
655
|
+
}
|
|
624
656
|
/** A binary acceptance criterion — mirrors the pod's strict `sessionCriterionSchema`. */
|
|
625
657
|
interface TemplateCriterion {
|
|
626
658
|
/** Lowercase slug, unique within the list. */
|
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-CRNRmaqi.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-CRNRmaqi.js';
|
|
3
3
|
import '@synap-core/types/presentation';
|
|
4
4
|
import '@synap-core/types/space-brief';
|
|
5
5
|
import '@synap-core/types/capability-intents';
|