@cmdoss/agent-pass-plugin 0.0.0-stage → 0.1.0-dev.5.1

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 (68) hide show
  1. package/README.md +131 -2
  2. package/dist/agentpass.js +199 -0
  3. package/dist/cli.js +37 -0
  4. package/dist/domain.js +103 -0
  5. package/dist/engine.js +260 -0
  6. package/dist/http.js +170 -0
  7. package/dist/mcp.js +259 -0
  8. package/dist/onboarding.js +258 -0
  9. package/dist/public/catalog.js +35 -0
  10. package/dist/public/http.js +89 -0
  11. package/dist/public-server.js +11 -0
  12. package/dist/runtime/config.js +16 -0
  13. package/dist/runtime/installation.js +107 -0
  14. package/dist/runtime/lock.js +38 -0
  15. package/dist/runtime/paths.js +56 -0
  16. package/dist/runtime/setup.js +155 -0
  17. package/dist/sdk-ui.js +48 -0
  18. package/dist/server.js +107 -0
  19. package/dist/shared/constants.js +9 -0
  20. package/dist/store.js +84 -0
  21. package/dist/testnet/adapter.js +275 -0
  22. package/dist/testnet/authorization.js +620 -0
  23. package/dist/testnet/chain/codec.js +68 -0
  24. package/dist/testnet/chain/inspection.js +54 -0
  25. package/dist/testnet/chain/policy.js +78 -0
  26. package/dist/testnet/chain/prepared.js +150 -0
  27. package/dist/testnet/chain/receipt.js +49 -0
  28. package/dist/testnet/chain/sdk.js +34 -0
  29. package/dist/testnet/chain/types.js +1 -0
  30. package/dist/testnet/engine.js +395 -0
  31. package/dist/testnet/http.js +139 -0
  32. package/dist/testnet/model.js +49 -0
  33. package/dist/testnet/policy.js +44 -0
  34. package/dist/testnet/read-model.js +217 -0
  35. package/dist/testnet/repository.js +62 -0
  36. package/dist/testnet/runner.js +306 -0
  37. package/dist/testnet/types.js +1 -0
  38. package/dist/workflows.js +379 -0
  39. package/docs/agent-pass-integration.md +75 -0
  40. package/docs/architecture.md +93 -0
  41. package/docs/npm-release.md +83 -0
  42. package/npm-shrinkwrap.json +5376 -0
  43. package/package.json +72 -4
  44. package/public/assets/agent-pass-plugin-client.js +16 -0
  45. package/public/assets/agent-pass-plugin-sdk.js +1 -0
  46. package/public/assets/sui-payment-rails.avif +0 -0
  47. package/public/assets/sui-payments-hero.json +1 -0
  48. package/public/fonts/TWKEverett-Medium.woff2 +0 -0
  49. package/public/fonts/TWKEverett-Regular.woff2 +0 -0
  50. package/public/fonts/TWKEverettMono-Medium.woff2 +0 -0
  51. package/public/fonts/TWKEverettMono-Regular.woff2 +0 -0
  52. package/public/index.html +81 -0
  53. package/public/styles/base.css +117 -0
  54. package/public/styles/catalog.css +279 -0
  55. package/public/styles/controls.css +118 -0
  56. package/public/styles/dialog.css +257 -0
  57. package/public/styles/home.css +82 -0
  58. package/public/styles/layout.css +45 -0
  59. package/public/styles/plans.css +271 -0
  60. package/public/styles/responsive.css +643 -0
  61. package/public/styles/review.css +150 -0
  62. package/public/styles/sdk-wallet.css +125 -0
  63. package/public/styles/sdk.css +441 -0
  64. package/public/styles/shell.css +348 -0
  65. package/public/styles/tokens.css +75 -0
  66. package/public/styles.css +11 -0
  67. package/scripts/setup.mjs +10 -0
  68. package/skills/agent-pass-plugin-trading/SKILL.md +60 -0
@@ -0,0 +1,81 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
6
+ <meta name="color-scheme" content="dark" />
7
+ <meta
8
+ name="description"
9
+ content="Agent Pass Plugin — a local strategy workspace."
10
+ />
11
+ <title>Agent Pass Plugin</title>
12
+ <link rel="stylesheet" href="/styles/tokens.css" />
13
+ <link rel="stylesheet" href="/styles.css" />
14
+ <script type="module" src="/assets/agent-pass-plugin-client.js"></script>
15
+ </head>
16
+ <body>
17
+ <a class="skip-link" href="#main">Skip to content</a>
18
+ <div class="app-shell">
19
+ <header class="app-header">
20
+ <a href="/#home" class="wordmark" aria-label="Agent Pass Plugin home"
21
+ >Agent Pass Plugin</a
22
+ >
23
+ <nav aria-label="Main navigation">
24
+ <a href="/#home" data-nav="home"
25
+ ><span class="nav-label">Home</span
26
+ ><span class="nav-icon" aria-hidden="true">+</span></a
27
+ >
28
+ <a href="/directory" data-nav="directory"
29
+ ><span class="nav-label">Directory</span
30
+ ><span class="nav-icon" aria-hidden="true">+</span></a
31
+ >
32
+ <a href="/leaderboard" data-nav="leaderboard"
33
+ ><span class="nav-label">Leaderboard</span
34
+ ><span class="nav-icon" aria-hidden="true">+</span></a
35
+ >
36
+ </nav>
37
+ <div class="wallet-wrap">
38
+ <button
39
+ type="button"
40
+ id="wallet-toggle"
41
+ class="button wallet-button"
42
+ aria-expanded="false"
43
+ aria-controls="wallet-menu"
44
+ >
45
+ Connect wallet
46
+ </button>
47
+ <div id="wallet-menu" class="wallet-menu" hidden>
48
+ <p class="menu-label" id="account-label">Not connected</p>
49
+ <button type="button" data-action="my-plans">
50
+ My plans
51
+ <span class="action-arrow" aria-hidden="true">&#8599;</span>
52
+ </button>
53
+ <button type="button" data-action="logout" class="menu-logout">
54
+ Logout
55
+ <span class="action-arrow" aria-hidden="true">&#8599;</span>
56
+ </button>
57
+ </div>
58
+ </div>
59
+ </header>
60
+ <main id="main" tabindex="-1" aria-label="Workspace">
61
+ <div class="screen-loading">Loading your local workspace…</div>
62
+ </main>
63
+ </div>
64
+ <div id="notification" role="status" aria-live="polite"></div>
65
+ <dialog id="app-dialog" aria-labelledby="dialog-title">
66
+ <div class="dialog-header">
67
+ <h2 id="dialog-title"></h2>
68
+ <button
69
+ type="button"
70
+ class="icon-button"
71
+ data-action="close-dialog"
72
+ aria-label="Close dialog"
73
+ >
74
+ <span class="close-icon" aria-hidden="true"></span>
75
+ </button>
76
+ </div>
77
+ <div id="dialog-body" class="dialog-body"></div>
78
+ <div id="dialog-footer" class="dialog-footer"></div>
79
+ </dialog>
80
+ </body>
81
+ </html>
@@ -0,0 +1,117 @@
1
+ /* Agent Pass Plugin adopts the live Sui Payments composition: Everett, generous scale,
2
+ inset charcoal navigation, flat panels and blue directional actions. */
3
+ * {
4
+ box-sizing: border-box;
5
+ scrollbar-width: none;
6
+ }
7
+ *::-webkit-scrollbar {
8
+ width: 0;
9
+ height: 0;
10
+ }
11
+ [hidden] {
12
+ display: none !important;
13
+ }
14
+ html,
15
+ body {
16
+ margin: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ overflow: hidden;
20
+ }
21
+ body {
22
+ color: var(--ink);
23
+ background: var(--canvas);
24
+ font: 400 var(--body)/1.25 var(--font);
25
+ -webkit-font-smoothing: antialiased;
26
+ }
27
+ button,
28
+ input,
29
+ select,
30
+ textarea {
31
+ font: inherit;
32
+ font-family: var(--font);
33
+ }
34
+ button,
35
+ a,
36
+ input,
37
+ select {
38
+ touch-action: manipulation;
39
+ }
40
+ button {
41
+ cursor: pointer;
42
+ }
43
+ button:disabled {
44
+ opacity: 0.45;
45
+ cursor: not-allowed;
46
+ }
47
+ a {
48
+ color: inherit;
49
+ text-decoration: none;
50
+ }
51
+ a:hover {
52
+ color: var(--blue-ink);
53
+ }
54
+ a:focus-visible,
55
+ button:focus-visible,
56
+ input:focus-visible,
57
+ textarea:focus-visible,
58
+ select:focus-visible,
59
+ summary:focus-visible,
60
+ [tabindex]:focus-visible {
61
+ outline: 2px solid var(--action);
62
+ outline-offset: 4px;
63
+ }
64
+ h1,
65
+ h2,
66
+ h3,
67
+ p {
68
+ margin: 0;
69
+ }
70
+ h1,
71
+ h2,
72
+ h3,
73
+ strong {
74
+ font-weight: 400;
75
+ }
76
+ h1 {
77
+ font-size: var(--heading);
78
+ line-height: var(--heading-leading);
79
+ letter-spacing: -0.04em;
80
+ }
81
+ h2 {
82
+ font-size: 32px;
83
+ line-height: 1.1;
84
+ letter-spacing: -0.03em;
85
+ }
86
+ h3 {
87
+ font-size: 24px;
88
+ line-height: 1.2;
89
+ letter-spacing: -0.02em;
90
+ }
91
+ .muted {
92
+ color: var(--secondary);
93
+ }
94
+ .quiet {
95
+ color: var(--quiet);
96
+ }
97
+ .blue {
98
+ color: var(--blue-ink);
99
+ }
100
+ .negative {
101
+ color: var(--negative);
102
+ }
103
+ .meta,
104
+ code,
105
+ pre {
106
+ font-family: var(--mono);
107
+ }
108
+ .meta {
109
+ font-size: var(--meta);
110
+ }
111
+ .eyebrow {
112
+ color: var(--quiet);
113
+ font-size: var(--action-label);
114
+ line-height: 1.25;
115
+ letter-spacing: 0;
116
+ text-transform: none;
117
+ }
@@ -0,0 +1,279 @@
1
+ .strategy-grid {
2
+ display: grid;
3
+ grid-template-columns: repeat(2, minmax(0, 1fr));
4
+ gap: 24px;
5
+ align-content: start;
6
+ }
7
+ .strategy-card {
8
+ min-height: 312px;
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: stretch;
12
+ gap: 24px;
13
+ padding: 24px;
14
+ border: 0;
15
+ background: var(--surface);
16
+ }
17
+ .strategy-card .card-meta {
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: space-between;
21
+ gap: 24px;
22
+ color: white;
23
+ font-size: 14px;
24
+ }
25
+ .card-index {
26
+ width: 48px;
27
+ height: 48px;
28
+ display: inline-grid;
29
+ place-items: center;
30
+ flex: 0 0 48px;
31
+ margin-right: auto;
32
+ background: var(--action);
33
+ color: white;
34
+ font-size: 16px;
35
+ }
36
+ .card-market {
37
+ background: var(--raised);
38
+ }
39
+ .strategy-card h2 {
40
+ margin-bottom: 10px;
41
+ font-size: var(--card-heading);
42
+ line-height: 1.1;
43
+ letter-spacing: -0.035em;
44
+ }
45
+ .strategy-card .author {
46
+ color: #c2c6cd;
47
+ font-size: 16px;
48
+ line-height: 1.25;
49
+ }
50
+ .strategy-card .performance {
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: space-between;
54
+ gap: 24px;
55
+ border-left: 2px solid var(--line);
56
+ padding-left: 16px;
57
+ color: white;
58
+ font-size: 14px;
59
+ line-height: 1.4;
60
+ }
61
+ .strategy-card .performance strong {
62
+ color: white;
63
+ font-size: 18px;
64
+ text-align: right;
65
+ }
66
+ .strategy-card .card-action {
67
+ display: flex;
68
+ justify-content: flex-end;
69
+ margin-top: auto;
70
+ }
71
+ .card-action .button {
72
+ min-width: 190px;
73
+ border: 0;
74
+ background: var(--raised);
75
+ }
76
+ .card-action .button:hover {
77
+ background: #343940;
78
+ }
79
+ .pagination {
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: space-between;
83
+ gap: 16px;
84
+ min-height: 40px;
85
+ flex-shrink: 0;
86
+ color: var(--quiet);
87
+ font-size: 14px;
88
+ }
89
+ .pagination .page-actions {
90
+ display: flex;
91
+ gap: 8px;
92
+ }
93
+ .pagination .button {
94
+ min-width: 40px;
95
+ padding: 8px 12px;
96
+ }
97
+ .empty-state {
98
+ flex: 1;
99
+ min-height: 160px;
100
+ display: flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ padding: 32px;
104
+ border: 0;
105
+ background: var(--surface);
106
+ text-align: center;
107
+ }
108
+ .empty-inner {
109
+ max-width: 480px;
110
+ display: flex;
111
+ flex-direction: column;
112
+ align-items: center;
113
+ gap: 24px;
114
+ }
115
+ .empty-state h2 {
116
+ font-size: 32px;
117
+ line-height: 1.1;
118
+ letter-spacing: -0.03em;
119
+ }
120
+ .empty-state p {
121
+ color: white;
122
+ font-size: 16px;
123
+ line-height: 1.4;
124
+ }
125
+ .empty-state .eyebrow {
126
+ font-size: 14px;
127
+ }
128
+ .breadcrumb {
129
+ display: flex;
130
+ align-items: center;
131
+ gap: 16px;
132
+ flex-shrink: 0;
133
+ color: var(--quiet);
134
+ font-size: 14px;
135
+ }
136
+ .detail-layout {
137
+ flex: 1;
138
+ min-height: 0;
139
+ display: grid;
140
+ grid-template-columns: 360px minmax(0, 1fr);
141
+ gap: 32px;
142
+ }
143
+ .strategy-summary {
144
+ min-height: 0;
145
+ display: flex;
146
+ flex-direction: column;
147
+ gap: 32px;
148
+ padding: 24px;
149
+ border: 0;
150
+ border-left: 2px solid var(--line);
151
+ background: var(--surface);
152
+ overflow: auto;
153
+ }
154
+ .strategy-summary h1 {
155
+ margin-bottom: 16px;
156
+ font-size: 40px;
157
+ line-height: 1.1;
158
+ letter-spacing: -0.04em;
159
+ }
160
+ .strategy-summary .author {
161
+ color: #c2c6cd;
162
+ font-size: 16px;
163
+ }
164
+ .definition-list {
165
+ display: grid;
166
+ gap: 0;
167
+ margin: 0;
168
+ }
169
+ .definition-list > div {
170
+ display: flex;
171
+ align-items: start;
172
+ justify-content: space-between;
173
+ gap: 24px;
174
+ padding: 14px 0;
175
+ border-bottom: 1px solid var(--line-soft);
176
+ font-size: 14px;
177
+ line-height: 1.4;
178
+ }
179
+ .definition-list dt {
180
+ color: #c2c6cd;
181
+ }
182
+ .definition-list dd {
183
+ max-width: 65%;
184
+ margin: 0;
185
+ text-align: right;
186
+ overflow-wrap: anywhere;
187
+ }
188
+ .strategy-summary .button {
189
+ width: 100%;
190
+ min-width: 0;
191
+ margin-top: auto;
192
+ }
193
+ .content-panel {
194
+ min-width: 0;
195
+ min-height: 0;
196
+ display: flex;
197
+ flex-direction: column;
198
+ border: 0;
199
+ background: var(--surface);
200
+ }
201
+ .tabs {
202
+ min-height: 52px;
203
+ display: flex;
204
+ gap: 32px;
205
+ flex-shrink: 0;
206
+ padding: 0 24px;
207
+ background: var(--surface);
208
+ border-bottom: 1px solid var(--line-soft);
209
+ }
210
+ .tabs button {
211
+ padding: 16px 0;
212
+ border: 0;
213
+ border-bottom: 2px solid transparent;
214
+ background: transparent;
215
+ color: #c2c6cd;
216
+ font-size: 14px;
217
+ line-height: 1.25;
218
+ }
219
+ .tabs button[aria-selected="true"] {
220
+ border-bottom-color: var(--action);
221
+ color: white;
222
+ }
223
+ .tab-region {
224
+ flex: 1;
225
+ min-height: 0;
226
+ padding: 32px 24px;
227
+ overflow: auto;
228
+ }
229
+ .overview {
230
+ max-width: 760px;
231
+ }
232
+ .overview .description {
233
+ margin-bottom: 32px;
234
+ color: white;
235
+ font-size: 24px;
236
+ line-height: 1.4;
237
+ letter-spacing: -0.02em;
238
+ }
239
+ .rules {
240
+ display: grid;
241
+ gap: 0;
242
+ margin: 24px 0 32px;
243
+ padding: 0;
244
+ list-style: none;
245
+ }
246
+ .rules li {
247
+ display: flex;
248
+ gap: 24px;
249
+ padding: 18px 0 18px 16px;
250
+ border-left: 2px solid var(--line);
251
+ color: white;
252
+ font-size: 16px;
253
+ line-height: 1.4;
254
+ }
255
+ .rules li + li {
256
+ margin-top: 16px;
257
+ }
258
+ .rules li:first-child {
259
+ border-left-color: var(--action);
260
+ }
261
+ .rules .rule-number {
262
+ flex-shrink: 0;
263
+ padding-top: 2px;
264
+ font-size: 14px;
265
+ color: #c2c6cd;
266
+ }
267
+ .small-note {
268
+ font-size: 14px;
269
+ line-height: 1.4;
270
+ color: #c2c6cd;
271
+ }
272
+ .skill-document {
273
+ margin: 0;
274
+ color: #e0e2e6;
275
+ font: 14px/1.6 var(--mono);
276
+ white-space: pre-wrap;
277
+ overflow-wrap: anywhere;
278
+ tab-size: 2;
279
+ }
@@ -0,0 +1,118 @@
1
+ /* One action-arrow treatment across CTAs, links, wallet choices and menus. */
2
+ .action-arrow,
3
+ .button > .action-arrow,
4
+ .wallet-menu > button > .action-arrow,
5
+ .wallet-choice > .action-arrow {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ width: var(--action-icon);
10
+ height: var(--action-icon);
11
+ flex: 0 0 var(--action-icon);
12
+ font-family: var(--font);
13
+ font-size: var(--action-icon);
14
+ font-weight: 400;
15
+ line-height: 1;
16
+ letter-spacing: 0;
17
+ vertical-align: middle;
18
+ }
19
+ .wallet-choice,
20
+ .wallet-menu > button,
21
+ .button,
22
+ .button.small {
23
+ font-family: var(--font);
24
+ font-size: var(--action-label);
25
+ font-weight: 400;
26
+ letter-spacing: 0;
27
+ }
28
+
29
+ .button.copy-primary[data-action="return-to-agent"]:disabled {
30
+ opacity: 1;
31
+ cursor: default;
32
+ background: var(--action);
33
+ border-color: var(--action);
34
+ }
35
+
36
+ /* Shared action layout: center the label in the column beside its icon. */
37
+ .button:has(> .action-arrow):not(.copy-primary) {
38
+ display: grid;
39
+ grid-template-columns: minmax(0, 1fr) var(--action-icon);
40
+ text-align: center;
41
+ }
42
+ .custom-select {
43
+ min-width: 0;
44
+ width: 100%;
45
+ }
46
+ .custom-select > select {
47
+ display: none;
48
+ }
49
+ .custom-select > summary {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: space-between;
53
+ gap: 16px;
54
+ min-height: 44px;
55
+ padding: 12px 16px;
56
+ border-bottom: 1px solid var(--line);
57
+ background: var(--raised);
58
+ color: var(--ink);
59
+ font: 400 var(--action-label)/1.25 var(--font);
60
+ cursor: pointer;
61
+ list-style: none;
62
+ }
63
+ .custom-select > summary::-webkit-details-marker {
64
+ display: none;
65
+ }
66
+ .custom-select > summary .wallet-chevron {
67
+ position: relative;
68
+ display: block;
69
+ width: 12px;
70
+ height: 8px;
71
+ transform: none;
72
+ flex-shrink: 0;
73
+ }
74
+ .custom-select[open] > summary .wallet-chevron {
75
+ transform: rotate(180deg);
76
+ }
77
+ .custom-select > summary[aria-disabled="true"] {
78
+ opacity: 0.45;
79
+ cursor: not-allowed;
80
+ }
81
+ .select-options {
82
+ position: fixed;
83
+ z-index: 20;
84
+ max-height: 200px;
85
+ overflow: auto;
86
+ padding: 4px;
87
+ border: 1px solid var(--line-soft);
88
+ background: var(--surface);
89
+ box-shadow: 0 12px 32px #0008;
90
+ }
91
+ .select-options > button {
92
+ display: block;
93
+ width: 100%;
94
+ min-height: 44px;
95
+ padding: 12px;
96
+ border: 0;
97
+ background: transparent;
98
+ color: var(--ink);
99
+ font: 400 var(--action-label)/1.25 var(--font);
100
+ text-align: left;
101
+ }
102
+ .select-options > button:hover,
103
+ .select-options > button:focus-visible {
104
+ background: var(--raised);
105
+ }
106
+ .select-options > button[aria-selected="true"] {
107
+ background: var(--action);
108
+ }
109
+ .plan-controls:empty {
110
+ display: none;
111
+ }
112
+
113
+ .plan-controls .button:not(:has(> .action-arrow)) {
114
+ justify-content: center;
115
+ text-align: center;
116
+ padding-right: 16px;
117
+ padding-left: 16px;
118
+ }