@ekanos/cli 0.31.0 → 0.33.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.
Files changed (84) hide show
  1. package/README.md +4 -3
  2. package/dist/apps-api.js +1 -1
  3. package/dist/apps-api.js.map +1 -1
  4. package/dist/commands/agents.js +2 -1
  5. package/dist/commands/agents.js.map +1 -1
  6. package/dist/commands/apps.d.ts +10 -0
  7. package/dist/commands/apps.js +39 -12
  8. package/dist/commands/apps.js.map +1 -1
  9. package/dist/commands/catalog.js +7 -2
  10. package/dist/commands/catalog.js.map +1 -1
  11. package/dist/commands/contract.js +12 -11
  12. package/dist/commands/contract.js.map +1 -1
  13. package/dist/commands/doctor.d.ts +29 -0
  14. package/dist/commands/doctor.js +188 -0
  15. package/dist/commands/doctor.js.map +1 -0
  16. package/dist/commands/init.js +3 -0
  17. package/dist/commands/init.js.map +1 -1
  18. package/dist/commands/publish.js +3 -2
  19. package/dist/commands/publish.js.map +1 -1
  20. package/dist/commands/sources.js +4 -3
  21. package/dist/commands/sources.js.map +1 -1
  22. package/dist/commands/status.js +48 -2
  23. package/dist/commands/status.js.map +1 -1
  24. package/dist/commands/team-agent-access.d.ts +18 -0
  25. package/dist/commands/team-agent-access.js +60 -0
  26. package/dist/commands/team-agent-access.js.map +1 -0
  27. package/dist/commands/team-agent-readiness.js +4 -3
  28. package/dist/commands/team-agent-readiness.js.map +1 -1
  29. package/dist/commands/team-agents-agents.d.ts +3 -3
  30. package/dist/commands/team-agents-agents.js +19 -29
  31. package/dist/commands/team-agents-agents.js.map +1 -1
  32. package/dist/commands/team-agents-define.js +4 -4
  33. package/dist/commands/team-agents-define.js.map +1 -1
  34. package/dist/commands/teams-connect.d.ts +5 -0
  35. package/dist/commands/teams-connect.js +25 -11
  36. package/dist/commands/teams-connect.js.map +1 -1
  37. package/dist/commands/teams.js +29 -12
  38. package/dist/commands/teams.js.map +1 -1
  39. package/dist/commands/use.js +3 -2
  40. package/dist/commands/use.js.map +1 -1
  41. package/dist/connections-api.js +2 -2
  42. package/dist/connections-api.js.map +1 -1
  43. package/dist/contract-verification.d.ts +20 -0
  44. package/dist/contract-verification.js +49 -0
  45. package/dist/contract-verification.js.map +1 -0
  46. package/dist/doctor-api.d.ts +41 -0
  47. package/dist/doctor-api.js +79 -0
  48. package/dist/doctor-api.js.map +1 -0
  49. package/dist/feedback-context.js +1 -0
  50. package/dist/feedback-context.js.map +1 -1
  51. package/dist/index.js +35 -1
  52. package/dist/index.js.map +1 -1
  53. package/dist/names-api.js +1 -1
  54. package/dist/names-api.js.map +1 -1
  55. package/dist/project.js +12 -0
  56. package/dist/project.js.map +1 -1
  57. package/dist/publish-api.js +3 -2
  58. package/dist/publish-api.js.map +1 -1
  59. package/dist/routes-api.js +11 -1
  60. package/dist/routes-api.js.map +1 -1
  61. package/dist/runs-api.js +1 -1
  62. package/dist/runs-api.js.map +1 -1
  63. package/dist/secret-form.d.ts +6 -1
  64. package/dist/secret-form.js +2 -2
  65. package/dist/secret-form.js.map +1 -1
  66. package/dist/source-products-api.d.ts +3 -0
  67. package/dist/source-products-api.js +7 -4
  68. package/dist/source-products-api.js.map +1 -1
  69. package/dist/source-target.js +3 -1
  70. package/dist/source-target.js.map +1 -1
  71. package/dist/teams-api.d.ts +12 -3
  72. package/dist/teams-api.js +54 -4
  73. package/dist/teams-api.js.map +1 -1
  74. package/dist/validate-findings.js +10 -1
  75. package/dist/validate-findings.js.map +1 -1
  76. package/package.json +2 -2
  77. package/templates/AGENTS.md.tmpl +1 -1
  78. package/templates/claude-skill.md.tmpl +11 -1
  79. package/templates/experience/package.json.tmpl +4 -4
  80. package/templates/package.json.tmpl +4 -4
  81. package/templates/skills/build-agent/references/set-up-an-integration.md +4 -2
  82. package/templates/skills/ekanos-platform/SKILL.md +48 -4
  83. package/templates/src/integration.ts.tmpl +5 -56
  84. package/templates/src/widget.ts.tmpl +65 -0
@@ -0,0 +1,65 @@
1
+ 'use client';
2
+
3
+ /**
4
+ * Your widget. This module MUST start with 'use client': the host renders
5
+ * widgets in the browser, and a component defined anywhere else cannot be
6
+ * handed across from the server render. Keep every widget component in a
7
+ * module like this one and import it into `integration.ts`.
8
+ */
9
+ import { createElement } from 'react';
10
+
11
+ import { Widget } from '@ekanos/sdk/components';
12
+ import {
13
+ Stat,
14
+ StatDetail,
15
+ StatFigure,
16
+ StatLabel,
17
+ StatValue,
18
+ } from '@ekanos/ui/stat';
19
+
20
+ // A minimal dashboard widget, built from the Widget.* compound API and the
21
+ // host's own `Stat`. Two rules this starter encodes, because they are the two
22
+ // partners get wrong most often:
23
+ //
24
+ // * Never a hand-sized figure. `Stat` sets the label, the figure and the
25
+ // context line to the host's spec, so a Source that swaps typefaces or
26
+ // corners carries your widget with it.
27
+ // * Never an inline `style`. Everything is a Tailwind class on the host's
28
+ // semantic tokens; an inline style escapes the theme, dark mode and the
29
+ // Source's branding, and `ekanos validate` warns on it.
30
+ //
31
+ // This starter uses React.createElement so it can live in a .ts file. Rename
32
+ // it to a .tsx file as soon as it grows past this; `.claude/skills/
33
+ // build-integration/references/widget-design.md` is the design guide.
34
+ export function HelloWidget() {
35
+ return createElement(
36
+ Widget.DataState,
37
+ null,
38
+ createElement(
39
+ Widget.Card,
40
+ null,
41
+ createElement(Widget.Header, { context: 'Since you scaffolded this' }),
42
+ createElement(
43
+ Widget.Active,
44
+ null,
45
+ createElement(
46
+ Widget.Body,
47
+ null,
48
+ createElement(
49
+ Stat,
50
+ null,
51
+ createElement(StatLabel, null, 'Greetings sent'),
52
+ createElement(
53
+ StatFigure,
54
+ null,
55
+ createElement(StatValue, null, '1'),
56
+ ),
57
+ createElement(StatDetail, null, 'Hello from __DISPLAY_NAME__'),
58
+ ),
59
+ ),
60
+ ),
61
+ createElement(Widget.Loading, { variant: 'stat' }),
62
+ createElement(Widget.Error, null),
63
+ ),
64
+ );
65
+ }