@synap-core/workspace-templates 0.50.0 → 0.51.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.
@@ -4,7 +4,7 @@
4
4
  "meta": {
5
5
  "slug": "vercel",
6
6
  "name": "Vercel — Projects & Deploys",
7
- "description": "Vercel account operations through ONE personal access token (REST API v9-v13): list/get projects, list/get deployments, list project domains, list environment variables, and redeploy a deployment. List verbs default their limit. Connect your Vercel account to use it.",
7
+ "description": "Vercel account operations through ONE personal access token (REST API v9-v13): list/get projects, list/get deployments, list project domains, list environment variables, set one environment variable (Config values only), and redeploy a deployment. List verbs default their limit. Connect your Vercel account to use it.",
8
8
  "tags": [
9
9
  "capability"
10
10
  ],
@@ -14,7 +14,7 @@
14
14
  "spec": {
15
15
  "key": "vercel",
16
16
  "name": "Vercel — Projects & Deploys",
17
- "description": "Vercel REST API (https://api.vercel.com) through ONE vault API key: a Vercel Personal Access Token (Account Settings → Tokens), sent as `Authorization: Bearer <token>`. Read verbs: list projects, get a project, list deployments (optionally filtered by project/target/state), get a deployment, list a project's domains, list a project's environment variables. One write verb: redeploy an existing deployment — side-effecting, so it routes through the capability-execution gate. List verbs default their limit (20, max 100) and all filter params are optional. TEAM SCOPE: a token with access to a Team still needs the team identified — pass `teamId` (or `teamSlug`) on any verb or the request resolves against the personal account; both are optional and only sent when provided. PATHS ARE RELATIVE to the `vercel` tool's `config.baseUrl` (https://api.vercel.com). Environment-variable VALUES are deliberately NOT returned (matching Vercel's dashboard default): the verb lists keys, targets, types and timestamps. NOTE: response-field shaping is best-effort and confirmed against the live API at first run.",
17
+ "description": "Vercel REST API (https://api.vercel.com) through ONE vault API key: a Vercel Personal Access Token (Account Settings → Tokens), sent as `Authorization: Bearer <token>`. Read verbs: list projects, get a project, list deployments (optionally filtered by project/target/state), get a deployment, list a project's domains, list a project's environment variables. Two write verbs, both side-effecting so they route through the capability-execution gate: set (upsert) one environment variable on a project (CONFIG VALUES ONLY: a URL, a public id, never a secret; a credential the pod mints goes through the `inbound_source.connect` verb), and redeploy an existing deployment (an environment change reaches only NEW deployments, so redeploy after setting one). List verbs default their limit (20, max 100) and all filter params are optional. TEAM SCOPE: a token with access to a Team still needs the team identified — pass `teamId` (or `teamSlug`) on any verb or the request resolves against the personal account; both are optional and only sent when provided. PATHS ARE RELATIVE to the `vercel` tool's `config.baseUrl` (https://api.vercel.com). Environment-variable VALUES are deliberately NOT returned (matching Vercel's dashboard default): the verb lists keys, targets, types and timestamps. NOTE: response-field shaping is best-effort and confirmed against the live API at first run.",
18
18
  "params": [
19
19
  {
20
20
  "name": "vercelToken",
@@ -419,6 +419,80 @@
419
419
  }
420
420
  }
421
421
  }
422
+ },
423
+ {
424
+ "name": "vercel_upsert_env",
425
+ "intent": "run_external_job",
426
+ "kind": "declarative",
427
+ "scope": "pod",
428
+ "description": "Creates or updates ONE environment variable on a Vercel project (upsert). Config values only (a URL, a public id), never a secret; a pod-minted credential goes through `inbound_source.connect`. An env change applies only to NEW deployments: call vercel_redeploy afterwards. Side-effecting write — routes through the capability-execution gate. The value is never returned. Args: { projectIdOrName: string, key: string, value: string, type?: string (default 'encrypted'), target?: string (default 'production'), comment?: string, teamId?: string, teamSlug?: string }.",
429
+ "requires": [
430
+ "vercel"
431
+ ],
432
+ "executionMode": "sync",
433
+ "timeoutSeconds": 60,
434
+ "parameters": {
435
+ "comment": "string?",
436
+ "key": "string",
437
+ "projectIdOrName": "string",
438
+ "target": "string?",
439
+ "teamId": "string?",
440
+ "teamSlug": "string?",
441
+ "type": "string?",
442
+ "value": "string"
443
+ },
444
+ "providerSpec": {
445
+ "tool": "vercel",
446
+ "method": "POST",
447
+ "pathTemplate": "/v10/projects/{{projectIdOrName}}/env",
448
+ "query": {
449
+ "upsert": "true",
450
+ "teamId": "{{teamId}}",
451
+ "slug": "{{teamSlug}}"
452
+ },
453
+ "body": {
454
+ "key": "{{key}}",
455
+ "value": "{{value}}",
456
+ "type": "{{type}}",
457
+ "target": [
458
+ "{{target}}"
459
+ ],
460
+ "comment": "{{comment}}"
461
+ },
462
+ "paramMapping": {
463
+ "projectIdOrName": {
464
+ "required": true,
465
+ "encode": "uri"
466
+ },
467
+ "key": {
468
+ "required": true
469
+ },
470
+ "value": {
471
+ "required": true
472
+ },
473
+ "type": {
474
+ "default": "encrypted"
475
+ },
476
+ "target": {
477
+ "default": "production"
478
+ }
479
+ },
480
+ "responseShape": {
481
+ "collectionPath": "failed",
482
+ "collectionAs": "failed",
483
+ "item": {
484
+ "key": "key",
485
+ "code": "error.code"
486
+ },
487
+ "scalar": {
488
+ "id": "created.id",
489
+ "key": "created.key",
490
+ "type": "created.type",
491
+ "target": "created.target",
492
+ "failedCount": "@count"
493
+ }
494
+ }
495
+ }
422
496
  }
423
497
  ],
424
498
  "provides": [
package/dist/index.js CHANGED
@@ -6532,7 +6532,7 @@ var DATA = {
6532
6532
  {
6533
6533
  "name": "Build an app (App Factory)",
6534
6534
  "description": `Turn "let's build app X" into a researched, designed, reviewed and verified app, built from the Website Factory in slices. The person is asked only three times \u2014 the decisions, the design approval, and a first look after slice 1.`,
6535
- "goalTemplate": `Build the app "{name}": {idea}. Path: {path}. Work it as the App Factory: FIRST load pod skill reference/sdk-and-app-templates (the current SDK, the Website Factory pod-app template and what it can do), then each stage's skill with synap_load_skill. INTAKE: find or create the app (resolve first; one devplane_app, never a twin), make it this session's subject, and record the idea in the person's words. RESEARCH (app-factory-research): name-collision check, a data contract per screen with live examples and counts, an identity and permission table (who writes, who approves, can the app's credential do it, with evidence), every platform gap with an id and an owner, and the real sample world; write the plan document. DECISIONS: ask the person 2-4 multiple-choice questions in ONE ask, each with a recommended default; nothing is designed before they answer. DESIGN (app-factory-design-canvas): create the app repo from the Website Factory, draw every page and every state, desktop and phone, with its design-kit in the real components and the person's real data, and publish the canvas. REVIEW (app-factory-design-review): run the three read-only lenses in parallel \u2014 UX surface, component fidelity + contrast + responsive, data contract per element. CONSOLIDATE: one writer merges them into a redesign brief, applies it, and re-runs design:check and design:preview. DESIGN APPROVAL: the person approves the canvas; nothing is built from boards they have not approved. INFRA: open the platform, catalog and factory pull requests the slices need, each gap with its owner, or label a bridge in the UI and the code. BUILD (app-factory-build-slice): slice by slice, server-only credentials, no writes until the person can sign in, the Website Factory gates re-run independently on the devbox; after slice 1 STOP for the person's first look. DOGFOOD: walk the app as the person would and collect their verdict. Branches and pull requests only: never push to main, never publish the catalog, never deploy production. Separate VERIFIED (gate output quoted) from NEEDS-DOGFOOD in every report.`,
6535
+ "goalTemplate": `Build the app "{name}": {idea}. Path: {path}. Work it as the App Factory: FIRST load pod skill reference/sdk-and-app-templates (the current SDK, the Website Factory pod-app template and what it can do), then each stage's skill with synap_load_skill. INTAKE: find or create the app (resolve first; one devplane_app, never a twin), make it this session's subject, and record the idea in the person's words. RESEARCH (app-factory-research): name-collision check, a data contract per screen with live examples and counts, an identity and permission table (who writes, who approves, can the app's credential do it, with evidence), every platform gap with an id and an owner, and the real sample world; write the plan document. DECISIONS: ask the person 2-4 multiple-choice questions in ONE ask, each with a recommended default; nothing is designed before they answer. DESIGN (app-factory-design-canvas): create the app repo from the Website Factory, draw every page and every state, desktop and phone, with its design-kit in the real components and the person's real data, and publish the canvas. REVIEW (app-factory-design-review): run the three read-only lenses in parallel \u2014 UX surface, component fidelity + contrast + responsive, data contract per element. CONSOLIDATE: one writer merges them into a redesign brief, applies it, and re-runs design:check and design:preview. DESIGN APPROVAL: the person approves the canvas; nothing is built from boards they have not approved. INFRA: open the platform, catalog and factory pull requests the slices need, each gap with its owner, or label a bridge in the UI and the code. BUILD (app-factory-build-slice): slice by slice, server-only credentials, no writes until the person can sign in, the Website Factory gates re-run independently on the devbox; after slice 1 STOP for the person's first look. DOGFOOD: walk the app as the person would and collect their verdict. LAUNCH (last, behind the person's go): one door per case, see the stage. Until that go: branches and pull requests only, never push to main, never publish the catalog, never deploy production. Separate VERIFIED (gate output quoted) from NEEDS-DOGFOOD in every report.`,
6536
6536
  "subjectProfile": {
6537
6537
  "profileSlug": "devplane_app"
6538
6538
  },
@@ -6575,6 +6575,13 @@ var DATA = {
6575
6575
  }
6576
6576
  ],
6577
6577
  "executor": "is-agent",
6578
+ "tools": [
6579
+ "vercel_list_projects",
6580
+ "vercel_list_env_vars",
6581
+ "vercel_upsert_env",
6582
+ "vercel_redeploy",
6583
+ "vercel_get_deployment"
6584
+ ],
6578
6585
  "status": "active",
6579
6586
  "criteria": [
6580
6587
  {
@@ -6832,6 +6839,25 @@ var DATA = {
6832
6839
  "relationToSubject": "relates_to"
6833
6840
  }
6834
6841
  ]
6842
+ },
6843
+ {
6844
+ "key": "launch",
6845
+ "name": "Launch",
6846
+ "category": "completed",
6847
+ "goal": "Put the app on its host, one door per case. (a) A Website Factory site: load the launch-site skill, run `pnpm site:launch` as a dry run, then `--apply`, then the person's go, then `--deploy --check`. (b) A site on Vercel that is not from the Website Factory: the vercel verbs, vercel_list_projects, vercel_list_env_vars, vercel_upsert_env (Config values only: a URL or a public id, never a secret), vercel_redeploy (an env change reaches only a new deployment), then vercel_get_deployment until it is ready. (c) Any credential the pod mints for the host (an inbound webhook source's URL and secret): the inbound_source.connect verb; never ask the person to paste a secret and never hold one yourself. After a redeploy, check the deployment live (its state, and the page or form it serves) and quote the result. Record the deployment on the app.",
6848
+ "gate": {
6849
+ "kind": "human"
6850
+ },
6851
+ "onFail": {
6852
+ "toStage": "slices"
6853
+ },
6854
+ "expectedOutputs": [
6855
+ {
6856
+ "kind": "devplane_deployment",
6857
+ "label": "Production deployment (and the host wiring that was approved)",
6858
+ "relationToSubject": "relates_to"
6859
+ }
6860
+ ]
6835
6861
  }
6836
6862
  ]
6837
6863
  },