invokora 0.1.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 (41) hide show
  1. package/dist/cli/app.d.ts +55 -0
  2. package/dist/cli/app.js +1087 -0
  3. package/dist/cli/config.d.ts +12 -0
  4. package/dist/cli/config.js +73 -0
  5. package/dist/cli/constants.d.ts +24 -0
  6. package/dist/cli/constants.js +52 -0
  7. package/dist/cli/http.d.ts +2 -0
  8. package/dist/cli/http.js +23 -0
  9. package/dist/cli/index.d.ts +6 -0
  10. package/dist/cli/index.js +11 -0
  11. package/dist/cli/mcp/app.d.ts +12 -0
  12. package/dist/cli/mcp/app.js +85 -0
  13. package/dist/cli/mcp/backend_client.d.ts +10 -0
  14. package/dist/cli/mcp/backend_client.js +91 -0
  15. package/dist/cli/mcp/errors.d.ts +28 -0
  16. package/dist/cli/mcp/errors.js +139 -0
  17. package/dist/cli/mcp/progress.d.ts +12 -0
  18. package/dist/cli/mcp/progress.js +49 -0
  19. package/dist/cli/mcp/responses_session.d.ts +21 -0
  20. package/dist/cli/mcp/responses_session.js +233 -0
  21. package/dist/cli/mcp/schemas.d.ts +99 -0
  22. package/dist/cli/mcp/schemas.js +66 -0
  23. package/dist/cli/mcp/server.d.ts +4 -0
  24. package/dist/cli/mcp/server.js +3 -0
  25. package/dist/cli/mcp/session_store.d.ts +32 -0
  26. package/dist/cli/mcp/session_store.js +58 -0
  27. package/dist/cli/mcp/tool_handlers.d.ts +3 -0
  28. package/dist/cli/mcp/tool_handlers.js +26 -0
  29. package/dist/cli/mcp_setup.d.ts +33 -0
  30. package/dist/cli/mcp_setup.js +225 -0
  31. package/dist/cli/oauth.d.ts +45 -0
  32. package/dist/cli/oauth.js +594 -0
  33. package/dist/cli/prompts.d.ts +23 -0
  34. package/dist/cli/prompts.js +175 -0
  35. package/dist/cli/release.d.ts +3 -0
  36. package/dist/cli/release.js +3 -0
  37. package/dist/cli/skills.d.ts +43 -0
  38. package/dist/cli/skills.js +443 -0
  39. package/dist/cli/types.d.ts +183 -0
  40. package/dist/cli/types.js +1 -0
  41. package/package.json +29 -0
@@ -0,0 +1,183 @@
1
+ export type McpTarget = 'claude' | 'cursor' | 'codex';
2
+ export type SyncScope = 'project' | 'user';
3
+ export type SyncTarget = McpTarget;
4
+ export type ReasoningEffort = 'low' | 'medium' | 'high' | 'xhigh';
5
+ export interface Config {
6
+ backend_url: string;
7
+ token: string;
8
+ refresh_token?: string;
9
+ api_key?: string;
10
+ default_model?: string;
11
+ default_reason?: ReasoningEffort;
12
+ }
13
+ export interface SkillSummary {
14
+ id: string;
15
+ name: string;
16
+ description: string;
17
+ status: string;
18
+ delivery_mode?: string;
19
+ access_source?: string;
20
+ }
21
+ export interface AccessibleSkill extends SkillSummary {
22
+ installed: boolean;
23
+ product_id?: string;
24
+ billing_mode?: string;
25
+ delivery_mode: string;
26
+ access_source: string;
27
+ entitlement_id?: string;
28
+ valid_until?: string;
29
+ license_type?: string;
30
+ resolved_version_id?: string;
31
+ resolved_version?: string;
32
+ resolved_version_hash?: string;
33
+ wallet_required?: boolean;
34
+ subscription_status?: string;
35
+ }
36
+ export interface SyncableSkillContent {
37
+ content: string;
38
+ files?: Array<{
39
+ path: string;
40
+ content?: string;
41
+ content_hash?: string;
42
+ size_bytes?: number;
43
+ kind?: string;
44
+ }>;
45
+ resolved_version_id?: string;
46
+ version?: string;
47
+ content_hash?: string;
48
+ billing_mode?: string;
49
+ }
50
+ export interface EntitlementSummary {
51
+ id: string;
52
+ skill_id: string;
53
+ workflow_id?: string;
54
+ product_id?: string;
55
+ source: string;
56
+ valid_from: string;
57
+ expires_at?: string;
58
+ license_type?: string;
59
+ billing_mode?: string;
60
+ delivery_mode?: string;
61
+ }
62
+ export interface WorkflowSummary {
63
+ id: string;
64
+ name: string;
65
+ description: string;
66
+ status?: string;
67
+ }
68
+ export interface WorkflowComponentSummary extends Partial<SkillSummary> {
69
+ skill?: SkillSummary;
70
+ role?: string;
71
+ notes?: string;
72
+ sort_order?: number;
73
+ }
74
+ export interface WorkflowDetailSummary {
75
+ workflow: WorkflowSummary;
76
+ components: WorkflowComponentSummary[];
77
+ }
78
+ export interface SyncableWorkflow {
79
+ id: string;
80
+ name: string;
81
+ description: string;
82
+ source: 'marketplace' | 'personal';
83
+ skill_ids: string[];
84
+ }
85
+ export interface OAuthStartResponse {
86
+ authorize_url: string;
87
+ state: string;
88
+ flow_id: string;
89
+ error?: {
90
+ message?: string;
91
+ };
92
+ }
93
+ export interface OAuthExchangeResponse {
94
+ access_token: string;
95
+ refresh_token?: string;
96
+ user?: {
97
+ id: string;
98
+ name: string;
99
+ email: string;
100
+ avatar_url: string;
101
+ };
102
+ error?: {
103
+ message?: string;
104
+ };
105
+ }
106
+ export interface OAuthCallbackPayload {
107
+ code?: string;
108
+ state?: string;
109
+ error?: string;
110
+ error_description?: string;
111
+ }
112
+ export interface OAuthLoopbackListener {
113
+ redirectURI: string;
114
+ waitForCallback: () => Promise<OAuthCallbackPayload>;
115
+ close: () => Promise<void>;
116
+ }
117
+ export interface LoginCommandOptions {
118
+ timeoutMs: number;
119
+ noOpen: boolean;
120
+ }
121
+ export interface RunOAuthBrowserLoginParams {
122
+ backendUrl: string;
123
+ timeoutMs: number;
124
+ noOpen: boolean;
125
+ fetchImpl?: typeof fetch;
126
+ openUrl?: (url: string) => Promise<boolean>;
127
+ loopbackFactory?: (expectedState: string, timeoutMs: number) => Promise<OAuthLoopbackListener>;
128
+ state?: string;
129
+ codeVerifier?: string;
130
+ log?: (message: string) => void;
131
+ }
132
+ export interface McpServerConfig {
133
+ command: 'npx';
134
+ args: string[];
135
+ env?: Record<string, string>;
136
+ }
137
+ export type McpRootJson = {
138
+ mcpServers?: Record<string, unknown>;
139
+ [key: string]: unknown;
140
+ };
141
+ export interface ParsedMcpSetupArgs {
142
+ targets: McpTarget[];
143
+ yes: boolean;
144
+ paths: string[];
145
+ }
146
+ export interface SyncOptions {
147
+ prune: boolean;
148
+ quiet?: boolean;
149
+ rootDir?: string;
150
+ destinationLabel?: string;
151
+ }
152
+ export interface SyncResult {
153
+ written: number;
154
+ pruned: number;
155
+ activeSlugs: Set<string>;
156
+ }
157
+ export interface LocalSkillRemovalResult {
158
+ removed: number;
159
+ }
160
+ export interface LocalManagedSkill {
161
+ slug: string;
162
+ path: string;
163
+ skill_id?: string;
164
+ kind?: string;
165
+ }
166
+ export interface ParsedSyncArgs {
167
+ prune: boolean;
168
+ yes: boolean;
169
+ scope?: SyncScope;
170
+ targets: SyncTarget[];
171
+ }
172
+ export interface SyncDestination {
173
+ scope: SyncScope;
174
+ target: SyncTarget;
175
+ rootDir: string;
176
+ label: string;
177
+ }
178
+ export interface McpTargetPickerOption {
179
+ target: McpTarget;
180
+ label: string;
181
+ path: string;
182
+ summary: string;
183
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "invokora",
3
+ "version": "0.1.0",
4
+ "description": "CLI for Invokora — login, sync skills, and generate MCP config",
5
+ "type": "module",
6
+ "bin": {
7
+ "invokora": "dist/cli/index.js"
8
+ },
9
+ "exports": {
10
+ ".": "./dist/cli/index.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
16
+ "engines": {
17
+ "node": ">=18"
18
+ },
19
+ "dependencies": {
20
+ "@clack/prompts": "^1.2.0"
21
+ },
22
+ "keywords": [
23
+ "invokora",
24
+ "cli",
25
+ "agent",
26
+ "skill"
27
+ ],
28
+ "license": "MIT"
29
+ }