@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.
- package/README.md +4 -3
- package/dist/apps-api.js +1 -1
- package/dist/apps-api.js.map +1 -1
- package/dist/commands/agents.js +2 -1
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/apps.d.ts +10 -0
- package/dist/commands/apps.js +39 -12
- package/dist/commands/apps.js.map +1 -1
- package/dist/commands/catalog.js +7 -2
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/contract.js +12 -11
- package/dist/commands/contract.js.map +1 -1
- package/dist/commands/doctor.d.ts +29 -0
- package/dist/commands/doctor.js +188 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/init.js +3 -0
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/publish.js +3 -2
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/sources.js +4 -3
- package/dist/commands/sources.js.map +1 -1
- package/dist/commands/status.js +48 -2
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/team-agent-access.d.ts +18 -0
- package/dist/commands/team-agent-access.js +60 -0
- package/dist/commands/team-agent-access.js.map +1 -0
- package/dist/commands/team-agent-readiness.js +4 -3
- package/dist/commands/team-agent-readiness.js.map +1 -1
- package/dist/commands/team-agents-agents.d.ts +3 -3
- package/dist/commands/team-agents-agents.js +19 -29
- package/dist/commands/team-agents-agents.js.map +1 -1
- package/dist/commands/team-agents-define.js +4 -4
- package/dist/commands/team-agents-define.js.map +1 -1
- package/dist/commands/teams-connect.d.ts +5 -0
- package/dist/commands/teams-connect.js +25 -11
- package/dist/commands/teams-connect.js.map +1 -1
- package/dist/commands/teams.js +29 -12
- package/dist/commands/teams.js.map +1 -1
- package/dist/commands/use.js +3 -2
- package/dist/commands/use.js.map +1 -1
- package/dist/connections-api.js +2 -2
- package/dist/connections-api.js.map +1 -1
- package/dist/contract-verification.d.ts +20 -0
- package/dist/contract-verification.js +49 -0
- package/dist/contract-verification.js.map +1 -0
- package/dist/doctor-api.d.ts +41 -0
- package/dist/doctor-api.js +79 -0
- package/dist/doctor-api.js.map +1 -0
- package/dist/feedback-context.js +1 -0
- package/dist/feedback-context.js.map +1 -1
- package/dist/index.js +35 -1
- package/dist/index.js.map +1 -1
- package/dist/names-api.js +1 -1
- package/dist/names-api.js.map +1 -1
- package/dist/project.js +12 -0
- package/dist/project.js.map +1 -1
- package/dist/publish-api.js +3 -2
- package/dist/publish-api.js.map +1 -1
- package/dist/routes-api.js +11 -1
- package/dist/routes-api.js.map +1 -1
- package/dist/runs-api.js +1 -1
- package/dist/runs-api.js.map +1 -1
- package/dist/secret-form.d.ts +6 -1
- package/dist/secret-form.js +2 -2
- package/dist/secret-form.js.map +1 -1
- package/dist/source-products-api.d.ts +3 -0
- package/dist/source-products-api.js +7 -4
- package/dist/source-products-api.js.map +1 -1
- package/dist/source-target.js +3 -1
- package/dist/source-target.js.map +1 -1
- package/dist/teams-api.d.ts +12 -3
- package/dist/teams-api.js +54 -4
- package/dist/teams-api.js.map +1 -1
- package/dist/validate-findings.js +10 -1
- package/dist/validate-findings.js.map +1 -1
- package/package.json +2 -2
- package/templates/AGENTS.md.tmpl +1 -1
- package/templates/claude-skill.md.tmpl +11 -1
- package/templates/experience/package.json.tmpl +4 -4
- package/templates/package.json.tmpl +4 -4
- package/templates/skills/build-agent/references/set-up-an-integration.md +4 -2
- package/templates/skills/ekanos-platform/SKILL.md +48 -4
- package/templates/src/integration.ts.tmpl +5 -56
- 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
|
+
}
|