@synap-core/workspace-templates 0.56.0 → 0.58.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/design.capability.json +2852 -0
- package/capabilities/github-read.capability.json +2 -2
- package/dist/{define-Dto5_E47.d.ts → define-KudS9Ja_.d.ts} +11 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +47 -22
- package/dist/index.js.map +1 -1
- package/dist/wire.d.ts +1 -1
- package/package.json +1 -1
- package/skills/designing-with-real-components/SKILL.md +3 -5
- package/src/brand-library.yaml +1 -0
- package/src/builder.yaml +39 -25
- package/src/crm.yaml +5 -3
- package/src/design-capability.test.ts +69 -0
- package/src/intent.test.ts +41 -0
- package/src/ship-a-change.template.test.ts +83 -0
- package/src/templates.ts +30 -20
- package/src/types.ts +12 -1
- package/src/validate.ts +13 -2
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
"intent": "fetch_record",
|
|
299
299
|
"kind": "code",
|
|
300
300
|
"scope": "pod",
|
|
301
|
-
"description": "A criterion CHECK: is a pull request merged? Returns { passed, detail, merged, state, mergeCommitSha, url } — `passed` is what a session criterion reads. As a capability criterion (check.kind capability, capability github_check_pr_merged),
|
|
301
|
+
"description": "A criterion CHECK: is a pull request merged? Returns { passed, detail, merged, state, mergeCommitSha, url } — `passed` is what a session criterion reads. As a capability criterion (check.kind capability, capability github_check_pr_merged), give the criterion outputKey = the key of the outcome that holds the PR (pr-<repo>-<n>, ref = the PR url): the evaluator hands that outcome over and the url comes from its ref. Called by hand, pass { url }. A failed read (no token, no access, GitHub down) is an error, so the check reads unmeasured, never 'not merged'. Args: { outcome?: object (from the evaluator), url?: string (a GitHub pull request url) }.",
|
|
302
302
|
"requires": [
|
|
303
303
|
"github_api"
|
|
304
304
|
],
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
"sessionId": "string?",
|
|
311
311
|
"criterionKey": "string?"
|
|
312
312
|
},
|
|
313
|
-
"code": "// A CRITERION CHECK: is this pull request merged? Executor wraps this body as\n// (async (args, context) => { <code> }). The session evaluator calls it with\n// { sessionId, criterionKey, outcome: {key, kind, label, ref?} } — the session's\n// outcome slot
|
|
313
|
+
"code": "// A CRITERION CHECK: is this pull request merged? Executor wraps this body as\n// (async (args, context) => { <code> }). The session evaluator calls it with\n// { sessionId, criterionKey, outcome: {key, kind, label, ref?} } — the session's\n// outcome slot the criterion names by outputKey — so give the criterion\n// outputKey = the PR's outcome key (pr-<repo>-<n>) and the PR url comes from\n// outcome.ref.url. A person\n// or agent may pass `url` directly instead.\n// callProvider('github_api', …) resolves this capability's tool by NAME and\n// injects the vaulted token as `Authorization: Bearer <token>` (config.auth).\n// A failed read THROWS (the check reads \"unmeasured\"), never \"not merged\".\nconst url = String(args?.outcome?.ref?.url ?? args?.url ?? '').trim();\nconst m = /^https?:\\/\\/(?:www\\.)?github\\.com\\/([A-Za-z0-9_.-]+)\\/([A-Za-z0-9_.-]+)\\/pull\\/(\\d+)(?:[\\/?#].*)?$/i.exec(url);\nif (!m) {\n throw new Error('github_check_pr_merged: no GitHub pull request url. Give the criterion outputKey = the outcome that holds the PR (pr-<repo>-<n>, ref = its url), or pass { url }.');\n}\nconst [, owner, repo, number] = m;\nconst res = await callProvider('github_api', 'GET', `/repos/${owner}/${repo}/pulls/${number}`, undefined, {\n headers: { Accept: 'application/vnd.github+json', 'X-GitHub-Api-Version': '2022-11-28', 'User-Agent': 'synap-pod-github-read' },\n});\nif (!res || res.status < 200 || res.status >= 300) {\n throw new Error(`github_check_pr_merged: GitHub answered HTTP ${res?.status ?? '?'} for ${owner}/${repo}#${number} (token missing, expired or without read access to this repository?)`);\n}\nconst pr = res.body ?? {};\nconst merged = pr.merged === true;\nconst detail = merged\n ? `${owner}/${repo}#${number} merged ${pr.merged_at ?? ''} as ${pr.merge_commit_sha ?? '?'}: ${pr.html_url ?? url}`\n : `${owner}/${repo}#${number} is not merged (state ${pr.state ?? '?'}${pr.draft ? ', draft' : ''}): ${pr.html_url ?? url}`;\nreturn { passed: merged, detail, merged, state: pr.state ?? null, mergeCommitSha: pr.merge_commit_sha ?? null, url: pr.html_url ?? url };",
|
|
314
314
|
"metadata": {
|
|
315
315
|
"readOnly": true
|
|
316
316
|
}
|
|
@@ -685,6 +685,8 @@ interface TemplateCriterion {
|
|
|
685
685
|
hint?: string;
|
|
686
686
|
};
|
|
687
687
|
stageKey?: string;
|
|
688
|
+
/** The key of the output this criterion checks (the pod's `outputKey`, W1). */
|
|
689
|
+
outputKey?: string;
|
|
688
690
|
}
|
|
689
691
|
/** A declared process activator (compiled to a governed rule at install). */
|
|
690
692
|
interface TemplatePlaybookActivator {
|
|
@@ -949,10 +951,19 @@ interface TemplateIntent {
|
|
|
949
951
|
* its operational kinds). A library (no `produces`) names none.
|
|
950
952
|
*/
|
|
951
953
|
primary?: string;
|
|
954
|
+
/**
|
|
955
|
+
* Each kind the space works, in order. `as` (default `output`): `helper` =
|
|
956
|
+
* worked here to serve an output without being one (a story for a
|
|
957
|
+
* feature: not a pillar's output). The primary is never a helper.
|
|
958
|
+
*/
|
|
952
959
|
produces?: Array<{
|
|
953
960
|
profile: string;
|
|
961
|
+
as?: TemplateKindAs;
|
|
954
962
|
}>;
|
|
955
963
|
}
|
|
964
|
+
/** `meta.intent.produces[].as` — the pod's `SPACE_KIND_AS` (`@synap-core/types/workspaces/settings`). */
|
|
965
|
+
declare const TEMPLATE_KIND_AS: readonly ["output", "helper"];
|
|
966
|
+
type TemplateKindAs = (typeof TEMPLATE_KIND_AS)[number];
|
|
956
967
|
interface WorkspaceYaml {
|
|
957
968
|
/** Template metadata — not sent to backend, used for listing/UI */
|
|
958
969
|
meta: TemplateMeta;
|
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-KudS9Ja_.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-KudS9Ja_.js';
|
|
3
3
|
import '@synap-core/types/presentation';
|
|
4
4
|
import '@synap-core/types/space-brief';
|
|
5
5
|
import '@synap-core/types/capability-intents';
|
package/dist/index.js
CHANGED
|
@@ -68,6 +68,7 @@ var START_VIEWS_MAX = 3;
|
|
|
68
68
|
var START_EXAMPLE_RANGE = [4, 6];
|
|
69
69
|
var START_STARTERS_RANGE = [3, 6];
|
|
70
70
|
var INTENT_LABEL_MAX = 24;
|
|
71
|
+
var TEMPLATE_KIND_AS = ["output", "helper"];
|
|
71
72
|
|
|
72
73
|
// src/templates.ts
|
|
73
74
|
var DATA = {
|
|
@@ -2418,6 +2419,7 @@ var DATA = {
|
|
|
2418
2419
|
{
|
|
2419
2420
|
"slug": "token-json",
|
|
2420
2421
|
"label": "Tokens JSON",
|
|
2422
|
+
"description": "A W3C DTCG 2025.10 token file (Synap's own paths, e.g. space.space-200, radius.radius-container, grid.grid-columns-expanded) whose values are this brand's. The Design app draws a project's frames in it; a file that is not DTCG is kept, but frames keep Synap's values.",
|
|
2421
2423
|
"valueType": "string",
|
|
2422
2424
|
"inputType": "textarea"
|
|
2423
2425
|
},
|
|
@@ -3659,10 +3661,12 @@ var DATA = {
|
|
|
3659
3661
|
"profile": "devplane_feature"
|
|
3660
3662
|
},
|
|
3661
3663
|
{
|
|
3662
|
-
"profile": "devplane_story"
|
|
3664
|
+
"profile": "devplane_story",
|
|
3665
|
+
"as": "helper"
|
|
3663
3666
|
},
|
|
3664
3667
|
{
|
|
3665
|
-
"profile": "ui-design"
|
|
3668
|
+
"profile": "ui-design",
|
|
3669
|
+
"as": "helper"
|
|
3666
3670
|
}
|
|
3667
3671
|
]
|
|
3668
3672
|
}
|
|
@@ -6878,7 +6882,7 @@ var DATA = {
|
|
|
6878
6882
|
{
|
|
6879
6883
|
"name": "Ship a change",
|
|
6880
6884
|
"description": "Take a shaped change from branch to pull request, green checks, merge, lab and a dogfood walk, until its criteria are verified. The facts (PR opened, CI finished, merged, deployed) move the step; the person approves only the lab deploy.",
|
|
6881
|
-
"goalTemplate": `Ship this change through one session, one branch and its pull requests, then the merge, the lab and a dogfood walk, until its criteria are verified. Feature, when one is bound: {feature}. The step follows the work; with a feature, move its status only through its lifecycle (update_entity with expectedStatus), never invent one; with none, the session alone carries the stages. SHAPE: write the end state and 2-5 binary criteria on this session, set the feature's change type (feature, refactor or chore) when there is a feature, and name the repos it touches. BUILD: branch <type>/<slug> from origin/main in your own worktree, commit in verified slices, and run the smallest gate that answers for each finished slice, with its negative control; quote the output. PR OPENED: open a draft pull request whose body carries the line "Pod session: <this session id>", and
|
|
6885
|
+
"goalTemplate": `Ship this change through one session, one branch and its pull requests, then the merge, the lab and a dogfood walk, until its criteria are verified. Feature, when one is bound: {feature}. The step follows the work; with a feature, move its status only through its lifecycle (update_entity with expectedStatus), never invent one; with none, the session alone carries the stages. SHAPE: write the end state and 2-5 binary criteria on this session, set the feature's change type (feature, refactor or chore) when there is a feature, and name the repos it touches. BUILD: branch <type>/<slug> from origin/main in your own worktree, commit in verified slices, and run the smallest gate that answers for each finished slice, with its negative control; quote the output. PR OPENED: open a draft pull request whose body carries the line "Pod session: <this session id>", and complete THIS stage's output pull-request with its url (completeOutput pull-request, ref.url): this step's criterion pr-opened names it, so Checks waits for that one, and the Merged step's criterion merged names it too, so the merge grades it there. A second pull request, in another repo, is its own outcome pr-<repo>-<number> (kind pull_request, ref url), with a session criterion that names it with outputKey pr-<repo>-<number>, "<repo>#<number> is merged", checked by the capability github_check_pr_merged, so the pod grades that merge itself. CHECKS: read the checks on the pull request's head with github_pr_checks (the github-read capability, on the person's own token) or wait for the ci.finished event; a red check sends the work back to Build. MERGE: a person merges; never merge and never push to main. The merge marks the outcome met. DEPLOY: ask the person for the lab deploy (synap_request_deploy_approval); the deploy is their call. DOGFOOD: walk the change in the running lab as a person would and report WORKS, BROKEN or CANNOT-TELL with what was seen. VERIFY: grade every criterion with its evidence, and separate VERIFIED (gate or check output quoted) from NEEDS-DOGFOOD.`,
|
|
6882
6886
|
"subjectProfile": {
|
|
6883
6887
|
"profileSlug": "devplane_feature"
|
|
6884
6888
|
},
|
|
@@ -6960,18 +6964,20 @@ var DATA = {
|
|
|
6960
6964
|
"category": "started",
|
|
6961
6965
|
"tier": "standard",
|
|
6962
6966
|
"subjectStatus": "in_review",
|
|
6963
|
-
"goal": 'Open a draft pull request whose body carries the line "Pod session: <this session id>" and
|
|
6967
|
+
"goal": 'Open a draft pull request whose body carries the line "Pod session: <this session id>" and complete THIS output, pull-request, with its url (completeOutput pull-request, ref.url). A second pull request in another repo is its own outcome pr-<repo>-<number>.',
|
|
6964
6968
|
"expectedOutputs": [
|
|
6965
6969
|
{
|
|
6970
|
+
"key": "pull-request",
|
|
6966
6971
|
"kind": "pull_request",
|
|
6967
|
-
"label": "Pull request
|
|
6972
|
+
"label": "Pull request: complete this output with its url (completeOutput pull-request, ref.url)",
|
|
6968
6973
|
"relationToSubject": "none"
|
|
6969
6974
|
}
|
|
6970
6975
|
],
|
|
6971
6976
|
"criteria": [
|
|
6972
6977
|
{
|
|
6973
6978
|
"key": "pr-opened",
|
|
6974
|
-
"statement": "A pull request for this change is open and recorded
|
|
6979
|
+
"statement": "A pull request for this change is open and recorded as this stage's pull-request output with its url.",
|
|
6980
|
+
"outputKey": "pull-request",
|
|
6975
6981
|
"check": {
|
|
6976
6982
|
"kind": "evidence",
|
|
6977
6983
|
"evidenceKey": "pr-opened"
|
|
@@ -7014,11 +7020,12 @@ var DATA = {
|
|
|
7014
7020
|
"name": "Merged",
|
|
7015
7021
|
"category": "started",
|
|
7016
7022
|
"tier": "standard",
|
|
7017
|
-
"goal": "A person merges the pull request; the merge
|
|
7023
|
+
"goal": "A person merges the pull request; the merge meets its output, graded by the criterion that names it by outputKey (merged for pull-request; for a second pull request its own, github_check_pr_merged on GitHub's own answer). Never merge and never push to main.",
|
|
7018
7024
|
"criteria": [
|
|
7019
7025
|
{
|
|
7020
7026
|
"key": "merged",
|
|
7021
7027
|
"statement": "The pull request is merged.",
|
|
7028
|
+
"outputKey": "pull-request",
|
|
7022
7029
|
"check": {
|
|
7023
7030
|
"kind": "evidence",
|
|
7024
7031
|
"evidenceKey": "merged",
|
|
@@ -7248,7 +7255,7 @@ var DATA = {
|
|
|
7248
7255
|
"check": {
|
|
7249
7256
|
"kind": "judge"
|
|
7250
7257
|
},
|
|
7251
|
-
"statement": "The change is recorded on the session
|
|
7258
|
+
"statement": "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
|
|
7252
7259
|
},
|
|
7253
7260
|
{
|
|
7254
7261
|
"key": "pr-names-session",
|
|
@@ -7258,13 +7265,14 @@ var DATA = {
|
|
|
7258
7265
|
"statement": "A pull request body, when there is one, carries the line naming this Pod session."
|
|
7259
7266
|
}
|
|
7260
7267
|
],
|
|
7261
|
-
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then
|
|
7268
|
+
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.',
|
|
7262
7269
|
"tier": "standard",
|
|
7263
7270
|
"subjectStatus": "in_review",
|
|
7264
7271
|
"expectedOutputs": [
|
|
7265
7272
|
{
|
|
7273
|
+
"key": "pull-request",
|
|
7266
7274
|
"kind": "pull_request",
|
|
7267
|
-
"label": "Draft pull request
|
|
7275
|
+
"label": "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only",
|
|
7268
7276
|
"optional": true
|
|
7269
7277
|
}
|
|
7270
7278
|
]
|
|
@@ -7523,7 +7531,7 @@ var DATA = {
|
|
|
7523
7531
|
"check": {
|
|
7524
7532
|
"kind": "judge"
|
|
7525
7533
|
},
|
|
7526
|
-
"statement": "The change is recorded on the session
|
|
7534
|
+
"statement": "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
|
|
7527
7535
|
},
|
|
7528
7536
|
{
|
|
7529
7537
|
"key": "pr-names-session",
|
|
@@ -7533,12 +7541,13 @@ var DATA = {
|
|
|
7533
7541
|
"statement": "A pull request body, when there is one, carries the line naming this Pod session."
|
|
7534
7542
|
}
|
|
7535
7543
|
],
|
|
7536
|
-
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then
|
|
7544
|
+
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.',
|
|
7537
7545
|
"tier": "standard",
|
|
7538
7546
|
"expectedOutputs": [
|
|
7539
7547
|
{
|
|
7548
|
+
"key": "pull-request",
|
|
7540
7549
|
"kind": "pull_request",
|
|
7541
|
-
"label": "Draft pull request
|
|
7550
|
+
"label": "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only",
|
|
7542
7551
|
"optional": true
|
|
7543
7552
|
}
|
|
7544
7553
|
]
|
|
@@ -7889,7 +7898,7 @@ var DATA = {
|
|
|
7889
7898
|
"check": {
|
|
7890
7899
|
"kind": "judge"
|
|
7891
7900
|
},
|
|
7892
|
-
"statement": "The change is recorded on the session
|
|
7901
|
+
"statement": "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
|
|
7893
7902
|
},
|
|
7894
7903
|
{
|
|
7895
7904
|
"key": "pr-names-session",
|
|
@@ -7899,12 +7908,13 @@ var DATA = {
|
|
|
7899
7908
|
"statement": "A pull request body, when there is one, carries the line naming this Pod session."
|
|
7900
7909
|
}
|
|
7901
7910
|
],
|
|
7902
|
-
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then
|
|
7911
|
+
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.',
|
|
7903
7912
|
"tier": "standard",
|
|
7904
7913
|
"expectedOutputs": [
|
|
7905
7914
|
{
|
|
7915
|
+
"key": "pull-request",
|
|
7906
7916
|
"kind": "pull_request",
|
|
7907
|
-
"label": "Draft pull request
|
|
7917
|
+
"label": "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only",
|
|
7908
7918
|
"optional": true
|
|
7909
7919
|
}
|
|
7910
7920
|
]
|
|
@@ -8131,7 +8141,7 @@ var DATA = {
|
|
|
8131
8141
|
"check": {
|
|
8132
8142
|
"kind": "judge"
|
|
8133
8143
|
},
|
|
8134
|
-
"statement": "The change is recorded on the session
|
|
8144
|
+
"statement": "The change is recorded on the session with its url: the pull-request output of this stage for a public repo (a second PR in another repo: its own outcome pr-<repo>-<number>), commit-<repo>-<sha8> for a private repo."
|
|
8135
8145
|
},
|
|
8136
8146
|
{
|
|
8137
8147
|
"key": "pr-names-session",
|
|
@@ -8141,12 +8151,13 @@ var DATA = {
|
|
|
8141
8151
|
"statement": "A pull request body, when there is one, carries the line naming this Pod session."
|
|
8142
8152
|
}
|
|
8143
8153
|
],
|
|
8144
|
-
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then
|
|
8154
|
+
"description": 'Shared land stage. Public repo (backend, synap-cli): open a DRAFT pull request whose body carries the line "Pod session: <session id>", then complete the pull-request output of THIS stage with its url (completeOutput pull-request, ref.url); a second pull request in another repo is its own outcome pr-<repo>-<number> (kind pull_request, ref url). Private repo (app-bases, browser, relay-app, control-plane-api, control-plane-dashboard, synap-bridge): no PR; rebase on origin/main, push the branch and queue the smallest devbox gate on its full sha with GATE_POD_SESSION set. One session, one PR per repo. Done by the ship flow and the outcome verbs, not by free reasoning. Rules: work-units, github-ci, devbox-gates. Tools: git, gh, devbox queue, synap_update_session. Gate: none.',
|
|
8145
8155
|
"tier": "standard",
|
|
8146
8156
|
"expectedOutputs": [
|
|
8147
8157
|
{
|
|
8158
|
+
"key": "pull-request",
|
|
8148
8159
|
"kind": "pull_request",
|
|
8149
|
-
"label": "Draft pull request
|
|
8160
|
+
"label": "Draft pull request: complete this output with its url (completeOutput pull-request, ref.url); public repo only",
|
|
8150
8161
|
"optional": true
|
|
8151
8162
|
}
|
|
8152
8163
|
]
|
|
@@ -16649,7 +16660,7 @@ var DATA = {
|
|
|
16649
16660
|
{
|
|
16650
16661
|
"name": "Propose a Health cell",
|
|
16651
16662
|
"description": "Answer one question about your sales with a tile on the Health dashboard; the AI writes the tile and you approve it before it shows. Run by one of your agents for now (Synap AI cannot place a tile yet).",
|
|
16652
|
-
"goalTemplate": `Propose one Health tile that answers: {question}. FIND THE VIEW: in the CRM space, the bento view named Health (synap_list_views with the space's workspaceId, type bento). When the space has none, stop and say so: never create another dashboard. READ FIRST: what already sits on Health (its config.blocks: each widget tile names a cell by widgetType) and the space's cells (synap_list_widgets); when a tile already answers the question, say which one and stop. DATA: decide where each number comes from. A cell reads the pod ONLY through the cell bridge, at render time: window.synap.query(op, params), with an op of the bridge table (entities.list, entities.get, views.list, profiles.list, lifecycle.board, flow.of, lifecycle.throughput, attention.needsYou, attention.count, sessions.list, lifecycle.home, lifecycle.moving, documents.get, lens.page) and only that op's params; the host stamps the space, so never put a workspaceId, a token, a pod URL or a fetch in the page. What the bridge reads stays live: query it in the page, never paste its rows. What it cannot read yet (messages, replies, sends: the bridge has no message op) you read now with your own tools (synap_get_channel, synap_get_entities) and write into the page as a snapshot, with the date it was taken shown on the tile (for example "au 8 novembre") and how it was counted. Never invent a number: a figure you cannot source is left out and the tile says what is missing. THE PAGE: one self-contained HTML page, inline script and style only (no CDN, no remote font or image: the frame's CSP refuses them), that answers the question in one glance (a number, a short table or a small chart), in the person's language (French by default), readable in light and dark, and that shows an error, never an empty tile, when a query fails. FILE IT: synap_create_cell with name = a short title of the question, rendererSource = the page, workspaceId = the CRM space (never pod-wide: the CRM app reads only its space's cells), contentKind widget, placeOn = {viewId: the Health view's id}, and reasoning = the question in the person's words. It comes back proposed: that is success, never retry it; the person approves it in the CRM or the pod, which defines the cell and puts its tile on Health in one act. One cell per run.`,
|
|
16663
|
+
"goalTemplate": `Propose one Health tile that answers: {question}. FIND THE VIEW: in the CRM space, the bento view named Health (synap_list_views with the space's workspaceId, type bento). When the space has none, stop and say so: never create another dashboard. READ FIRST: what already sits on Health (its config.blocks: each widget tile names a cell by widgetType) and the space's cells (synap_list_widgets); when a tile already answers the question, say which one and stop. DATA: decide where each number comes from. A cell reads the pod ONLY through the cell bridge, at render time: window.synap.query(op, params), with an op of the bridge table (entities.list, entities.get, views.list, profiles.list, lifecycle.board, flow.of, lifecycle.throughput, attention.needsYou, attention.count, sessions.list, lifecycle.home, lifecycle.moving, documents.get, lens.page, sessions.get, playbook.process, playbook.scorecard, project.pillars) and only that op's params; the host stamps the space, so never put a workspaceId, a token, a pod URL or a fetch in the page. What the bridge reads stays live: query it in the page, never paste its rows. What it cannot read yet (messages, replies, sends: the bridge has no message op) you read now with your own tools (synap_get_channel, synap_get_entities) and write into the page as a snapshot, with the date it was taken shown on the tile (for example "au 8 novembre") and how it was counted. Never invent a number: a figure you cannot source is left out and the tile says what is missing. THE PAGE: one self-contained HTML page, inline script and style only (no CDN, no remote font or image: the frame's CSP refuses them), that answers the question in one glance (a number, a short table or a small chart), in the person's language (French by default), readable in light and dark, and that shows an error, never an empty tile, when a query fails. FILE IT: synap_create_cell with name = a short title of the question, rendererSource = the page, workspaceId = the CRM space (never pod-wide: the CRM app reads only its space's cells), contentKind widget, placeOn = {viewId: the Health view's id}, and reasoning = the question in the person's words. It comes back proposed: that is success, never retry it; the person approves it in the CRM or the pod, which defines the cell and puts its tile on Health in one act. One cell per run.`,
|
|
16653
16664
|
"params": [
|
|
16654
16665
|
{
|
|
16655
16666
|
"name": "question",
|
|
@@ -35378,6 +35389,8 @@ var vocabularyFr = {
|
|
|
35378
35389
|
"action.grant.progressive": "Octroi en cours",
|
|
35379
35390
|
"action.read_again.imperative": "Relire",
|
|
35380
35391
|
"action.read_again.past": "Lu",
|
|
35392
|
+
"action.apply.imperative": "Appliquer",
|
|
35393
|
+
"action.apply.past": "Appliqu\xE9",
|
|
35381
35394
|
// ── Statuses: `status.<token>` (a participle alone is masculine, D4) ──
|
|
35382
35395
|
"status.pending": "En attente",
|
|
35383
35396
|
"status.approved": "Approuv\xE9",
|
|
@@ -36704,7 +36717,10 @@ var ACTION_VERB_ROWS = {
|
|
|
36704
36717
|
grant: { imperative: "Grant", past: "Granted", progressive: "Granting" },
|
|
36705
36718
|
// Library: run a reader on a kept link again (or with another reader). The
|
|
36706
36719
|
// button asks "Read again"; the receipt says it was "Read".
|
|
36707
|
-
read_again: { imperative: "Read again", past: "Read" }
|
|
36720
|
+
read_again: { imperative: "Read again", past: "Read" },
|
|
36721
|
+
// The design door (`design.apply`, matched on its last segment): an
|
|
36722
|
+
// agent's ops applied to a design. Humanized, the receipt said "Apply".
|
|
36723
|
+
apply: { imperative: "Apply", past: "Applied" }
|
|
36708
36724
|
};
|
|
36709
36725
|
var ACTION_VERBS = ACTION_VERB_ROWS;
|
|
36710
36726
|
var OBJECT_NOUN_ROWS = {
|
|
@@ -37938,7 +37954,7 @@ function knownRelationTypes(tpl, resolveDep, corpus) {
|
|
|
37938
37954
|
return out;
|
|
37939
37955
|
}
|
|
37940
37956
|
var MAX_SESSION_CRITERIA = 12;
|
|
37941
|
-
var TEMPLATE_ACTIVATOR_ON = ["created", "enters_status", "count", "schedule", "manual"];
|
|
37957
|
+
var TEMPLATE_ACTIVATOR_ON = ["created", "enters_status", "count", "schedule", "manual", "run_ended"];
|
|
37942
37958
|
function goalNamesStatus(goal, value, labels) {
|
|
37943
37959
|
if (typeof goal !== "string" || typeof value !== "string") return false;
|
|
37944
37960
|
const names = [value, labels?.get(value)].filter((n) => !!n && n.trim() !== "");
|
|
@@ -38440,6 +38456,15 @@ function checkIntent(tpl, resolveDep, add) {
|
|
|
38440
38456
|
}
|
|
38441
38457
|
if (seen.has(slug)) add("intent-duplicate", `${at}.profile`, `"${slug}" is produced twice`);
|
|
38442
38458
|
seen.add(slug);
|
|
38459
|
+
const as = entry.as;
|
|
38460
|
+
if (as !== void 0 && !TEMPLATE_KIND_AS.includes(as))
|
|
38461
|
+
add("intent-shape", `${at}.as`, `${at}.as must be one of ${TEMPLATE_KIND_AS.join(", ")} (got ${JSON.stringify(as)})`);
|
|
38462
|
+
if (as === "helper" && slug === primary)
|
|
38463
|
+
add(
|
|
38464
|
+
"intent-primary-helper",
|
|
38465
|
+
`${at}.as`,
|
|
38466
|
+
`"${slug}" is the space's primary output and cannot be a helper \u2014 a helper is worked to serve an output, it is not one`
|
|
38467
|
+
);
|
|
38443
38468
|
const decls = sources.flatMap((t) => (t.profiles ?? []).filter((p) => p.slug === slug));
|
|
38444
38469
|
if (decls.length === 0) {
|
|
38445
38470
|
if (!unresolved)
|