@frontera-sdk/cli 1.50.25 → 1.50.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontera-sdk/cli",
3
- "version": "1.50.25",
3
+ "version": "1.50.26",
4
4
  "description": "The frontera CLI — scaffold, pull, save and deploy Frontera apps and automations.",
5
5
  "keywords": [
6
6
  "frontera",
@@ -39,14 +39,14 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@anthropic-ai/claude-agent-sdk": "^0.3.251",
42
- "@frontera-sdk/functions": "1.50.25",
43
- "@frontera-sdk/core": "1.50.25",
42
+ "@frontera-sdk/functions": "1.50.26",
43
+ "@frontera-sdk/core": "1.50.26",
44
44
  "ai": "^6.0.116",
45
45
  "gray-matter": "^4.0.3",
46
46
  "yaml": "^2.9.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@frontera-sdk/forge-contracts": "1.50.25",
49
+ "@frontera-sdk/forge-contracts": "1.50.26",
50
50
  "@types/bun": "^1.3.14",
51
51
  "typescript": "^5.9.3"
52
52
  }
@@ -29,6 +29,17 @@ export interface WorkflowSummary {
29
29
  cron: string | null
30
30
  subjectApiName: string | null
31
31
  subjectLabel: string | null
32
+ /** One per webhook trigger. Absent from a service that predates webhooks. */
33
+ webhooks?: WorkflowWebhook[]
34
+ }
35
+
36
+ export interface WorkflowWebhook {
37
+ methods: string[]
38
+ path: string
39
+ auth: string
40
+ respond: string
41
+ url: string
42
+ testUrl: string
32
43
  }
33
44
 
34
45
  /** A row of `GET /v1/workflows/:slug/versions`. */
@@ -25,12 +25,17 @@ export const workflowGet: Command = {
25
25
  const slug = requireSlug(ctx)
26
26
  const client = new WorkflowApi(ctx.apiUrl, ctx.token, ctx.workspaceId)
27
27
  const [workflow, versions] = await Promise.all([client.get(slug), client.versions(slug)])
28
+ const webhooks = (workflow.webhooks ?? []).flatMap((h) => {
29
+ const methods = h.methods.join(',')
30
+ return [`${methods} ${h.url} (${h.auth}, ${h.respond})`, `${'test'.padEnd(methods.length)} ${h.testUrl}`]
31
+ })
28
32
 
29
33
  const facts = [
30
34
  `${workflow.slug}${workflow.enabled ? '' : ' (disabled)'}`,
31
35
  workflow.description ? ` ${workflow.description}` : '',
32
36
  ` live ${workflow.liveVersion === null ? 'nothing — no version has been promoted' : `v${workflow.liveVersion}`}`,
33
37
  ` triggers ${(workflow.triggerKinds ?? []).join(', ') || 'none'}`,
38
+ webhooks.length > 0 ? ` webhooks ${webhooks.join('\n ')}` : '',
34
39
  // Only when bound. An unbound workflow has no subject line to print, and
35
40
  // an empty one reads as a missing value rather than an absent concept.
36
41
  workflow.subjectApiName ? ` subject ${workflow.subjectLabel ?? workflow.subjectApiName}` : '',