@minds/sdk 0.0.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.
- package/LICENSE +105 -0
- package/README.md +71 -0
- package/dist/client.d.ts +81 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +131 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 Recursiv (recursivlabs)
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# @minds/sdk
|
|
2
|
+
|
|
3
|
+
The official TypeScript SDK for the Minds platform.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @minds/sdk
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { Minds } from '@minds/sdk';
|
|
11
|
+
|
|
12
|
+
const minds = new Minds({ apiKey: process.env.MINDS_API_KEY });
|
|
13
|
+
|
|
14
|
+
const posts = await minds.posts.list({ limit: 20 });
|
|
15
|
+
const me = await minds.users.me();
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What this is
|
|
19
|
+
|
|
20
|
+
`@minds/sdk` is a thin TypeScript client that wraps [`@recursiv/sdk`](https://www.npmjs.com/package/@recursiv/sdk). The Recursiv platform powers Minds — auth, posts, communities, chat, agents, the curator, and the full developer surface. This SDK is the brand-shaped, Minds-flavored layer with full parity over Recursiv's resources. Anything Recursiv can do, you can do through this client without dropping down.
|
|
21
|
+
|
|
22
|
+
## Layered architecture
|
|
23
|
+
|
|
24
|
+
- **Recursiv** — the AI agent platform. The foundation.
|
|
25
|
+
- **Minds Cloud** — the social-network platform built on Recursiv. White-label-ready.
|
|
26
|
+
- **Minds** — the consumer social network at minds.com, the flagship instance running on Minds Cloud.
|
|
27
|
+
|
|
28
|
+
If you want to build apps on the Minds platform, this SDK is the right entry point. If you want to contribute at the platform layer (new resources, transport, runtime), head over to [recursivlabs/recursiv](https://github.com/recursivlabs/recursiv).
|
|
29
|
+
|
|
30
|
+
## Quickstart
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { Minds } from '@minds/sdk';
|
|
34
|
+
|
|
35
|
+
// Create a client. apiKey is required for most resources; pass nothing
|
|
36
|
+
// for auth-only flows like signUp / signIn.
|
|
37
|
+
const minds = new Minds({ apiKey: process.env.MINDS_API_KEY });
|
|
38
|
+
|
|
39
|
+
// Social
|
|
40
|
+
const feed = await minds.posts.list({ limit: 20 });
|
|
41
|
+
const me = await minds.users.me();
|
|
42
|
+
const community = await minds.communities.get('community-id');
|
|
43
|
+
|
|
44
|
+
// Chat
|
|
45
|
+
const conversation = await minds.chat.dm({ user_id: 'user-id' });
|
|
46
|
+
await minds.chat.send({ conversation_id: conversation.data.id, content: 'hi' });
|
|
47
|
+
|
|
48
|
+
// Agents
|
|
49
|
+
const agents = await minds.agents.list();
|
|
50
|
+
const reply = await minds.agents.chat(agents.data[0].id, { message: 'hello' });
|
|
51
|
+
|
|
52
|
+
// Curator
|
|
53
|
+
const deck = await minds.curator.seedDeck({ count: 30 });
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Escape hatch
|
|
57
|
+
|
|
58
|
+
If you need access to a Recursiv-platform feature we haven't surfaced at the Minds layer yet, the underlying Recursiv client is exposed:
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
const minds = new Minds({ apiKey: process.env.MINDS_API_KEY });
|
|
62
|
+
await minds.recursiv.dispatcher.tasks(); // raw access
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Reference
|
|
66
|
+
|
|
67
|
+
For the full method-by-method API reference, see the [Recursiv SDK docs](https://github.com/recursivlabs/recursiv/tree/main/packages/sdk#readme). Every resource on `@recursiv/sdk` is exposed identically on `@minds/sdk`.
|
|
68
|
+
|
|
69
|
+
## License
|
|
70
|
+
|
|
71
|
+
FSL-1.1-ALv2 — same license as Recursiv. Use it for anything; if you fork it commercially as a competing platform, talk to us.
|
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minds is the official TypeScript client for the Minds platform.
|
|
3
|
+
*
|
|
4
|
+
* Architecture: this client wraps `@recursiv/sdk`. The Recursiv platform
|
|
5
|
+
* powers Minds (auth, posts, communities, chat, agents, curator, and the
|
|
6
|
+
* full developer surface), and this Minds client is a brand-shaped layer
|
|
7
|
+
* with full parity over Recursiv's resources. Anything Recursiv can do,
|
|
8
|
+
* a Minds caller can do through this client without dropping down.
|
|
9
|
+
*
|
|
10
|
+
* To contribute at the platform layer (resources, transport, runtime),
|
|
11
|
+
* see https://github.com/recursivlabs/recursiv.
|
|
12
|
+
*/
|
|
13
|
+
import { Recursiv } from '@recursiv/sdk';
|
|
14
|
+
import type { AdminResource, AgentsResource, AuthResource, BillingResource, BrainResource, ChatResource, CommandsResource, CommunitiesResource, CuratorResource, DatabasesResource, DeploymentsResource, DispatcherResource, EmailResource, FreeTierResource, GitHubResource, InboxResource, IntegrationsResource, InviteCodesAdminResource, InviteCodesResource, JobsResource, LinkPreviewResource, MediaResource, MemoryResource, NetworkResource, NotificationsResource, OrganizationSecurityResource, OrganizationSettingsResource, OrganizationsResource, PostsResource, ProfilesResource, ProjectBrainResource, ProjectSettingsResource, ProjectsResource, ProtocolsResource, RealtimeClient, ReportsResource, SandboxResource, SettingsResource, SimulatorResource, StorageResource, SwarmsResource, TagsResource, TemplatesResource, UploadsResource, UsersResource, WalletResource, WebhooksResource } from '@recursiv/sdk';
|
|
15
|
+
export interface MindsConfig {
|
|
16
|
+
apiKey?: string;
|
|
17
|
+
baseUrl?: string;
|
|
18
|
+
timeout?: number;
|
|
19
|
+
maxRetries?: number;
|
|
20
|
+
anonymous?: boolean;
|
|
21
|
+
/** Allow construction without an API key (for auth-only operations like signUp/signIn) */
|
|
22
|
+
allowNoKey?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare class Minds {
|
|
25
|
+
readonly auth: AuthResource;
|
|
26
|
+
readonly posts: PostsResource;
|
|
27
|
+
readonly users: UsersResource;
|
|
28
|
+
readonly communities: CommunitiesResource;
|
|
29
|
+
readonly chat: ChatResource;
|
|
30
|
+
readonly projects: ProjectsResource;
|
|
31
|
+
readonly agents: AgentsResource;
|
|
32
|
+
readonly tags: TagsResource;
|
|
33
|
+
readonly sandbox: SandboxResource;
|
|
34
|
+
readonly profiles: ProfilesResource;
|
|
35
|
+
readonly organizations: OrganizationsResource;
|
|
36
|
+
readonly notifications: NotificationsResource;
|
|
37
|
+
readonly settings: SettingsResource;
|
|
38
|
+
readonly billing: BillingResource;
|
|
39
|
+
readonly freeTier: FreeTierResource;
|
|
40
|
+
readonly inviteCodes: InviteCodesResource;
|
|
41
|
+
readonly inviteCodesAdmin: InviteCodesAdminResource;
|
|
42
|
+
readonly admin: AdminResource;
|
|
43
|
+
readonly email: EmailResource;
|
|
44
|
+
readonly storage: StorageResource;
|
|
45
|
+
readonly databases: DatabasesResource;
|
|
46
|
+
readonly github: GitHubResource;
|
|
47
|
+
readonly deployments: DeploymentsResource;
|
|
48
|
+
readonly integrations: IntegrationsResource;
|
|
49
|
+
readonly projectBrain: ProjectBrainResource;
|
|
50
|
+
readonly organizationSettings: OrganizationSettingsResource;
|
|
51
|
+
readonly organizationSecurity: OrganizationSecurityResource;
|
|
52
|
+
readonly projectSettings: ProjectSettingsResource;
|
|
53
|
+
readonly uploads: UploadsResource;
|
|
54
|
+
readonly wallet: WalletResource;
|
|
55
|
+
readonly protocols: ProtocolsResource;
|
|
56
|
+
readonly inbox: InboxResource;
|
|
57
|
+
readonly network: NetworkResource;
|
|
58
|
+
readonly simulator: SimulatorResource;
|
|
59
|
+
readonly commands: CommandsResource;
|
|
60
|
+
readonly brain: BrainResource;
|
|
61
|
+
readonly memory: MemoryResource;
|
|
62
|
+
readonly dispatcher: DispatcherResource;
|
|
63
|
+
readonly swarms: SwarmsResource;
|
|
64
|
+
readonly templates: TemplatesResource;
|
|
65
|
+
readonly media: MediaResource;
|
|
66
|
+
readonly webhooks: WebhooksResource;
|
|
67
|
+
readonly jobs: JobsResource;
|
|
68
|
+
readonly curator: CuratorResource;
|
|
69
|
+
readonly reports: ReportsResource;
|
|
70
|
+
readonly linkPreview: LinkPreviewResource;
|
|
71
|
+
readonly realtime: RealtimeClient;
|
|
72
|
+
/**
|
|
73
|
+
* The underlying Recursiv client. Exposed as an escape hatch so callers
|
|
74
|
+
* can reach anything we haven't yet wrapped at the Minds layer. Treat
|
|
75
|
+
* this as "I know what I'm doing" — for normal use, prefer the typed
|
|
76
|
+
* resources above.
|
|
77
|
+
*/
|
|
78
|
+
readonly recursiv: Recursiv;
|
|
79
|
+
constructor(config?: MindsConfig);
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACZ,eAAe,EACf,aAAa,EACb,YAAY,EACZ,gBA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AAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAC;IAC1C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAElC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;gBAEhB,MAAM,CAAC,EAAE,WAAW;CAsDjC"}
|
package/dist/client.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minds is the official TypeScript client for the Minds platform.
|
|
3
|
+
*
|
|
4
|
+
* Architecture: this client wraps `@recursiv/sdk`. The Recursiv platform
|
|
5
|
+
* powers Minds (auth, posts, communities, chat, agents, curator, and the
|
|
6
|
+
* full developer surface), and this Minds client is a brand-shaped layer
|
|
7
|
+
* with full parity over Recursiv's resources. Anything Recursiv can do,
|
|
8
|
+
* a Minds caller can do through this client without dropping down.
|
|
9
|
+
*
|
|
10
|
+
* To contribute at the platform layer (resources, transport, runtime),
|
|
11
|
+
* see https://github.com/recursivlabs/recursiv.
|
|
12
|
+
*/
|
|
13
|
+
import { Recursiv } from '@recursiv/sdk';
|
|
14
|
+
/**
|
|
15
|
+
* The Minds client. Composes a Recursiv instance internally and exposes
|
|
16
|
+
* its resources verbatim. Pass any RecursivConfig — same shape, same
|
|
17
|
+
* behavior. Defaults to the Minds API (`https://api.minds.com/api/v1`);
|
|
18
|
+
* override `baseUrl` to point elsewhere.
|
|
19
|
+
*/
|
|
20
|
+
const MINDS_DEFAULT_BASE_URL = 'https://api.minds.com/api/v1';
|
|
21
|
+
export class Minds {
|
|
22
|
+
auth;
|
|
23
|
+
posts;
|
|
24
|
+
users;
|
|
25
|
+
communities;
|
|
26
|
+
chat;
|
|
27
|
+
projects;
|
|
28
|
+
agents;
|
|
29
|
+
tags;
|
|
30
|
+
sandbox;
|
|
31
|
+
profiles;
|
|
32
|
+
organizations;
|
|
33
|
+
notifications;
|
|
34
|
+
settings;
|
|
35
|
+
billing;
|
|
36
|
+
freeTier;
|
|
37
|
+
inviteCodes;
|
|
38
|
+
inviteCodesAdmin;
|
|
39
|
+
admin;
|
|
40
|
+
email;
|
|
41
|
+
storage;
|
|
42
|
+
databases;
|
|
43
|
+
github;
|
|
44
|
+
deployments;
|
|
45
|
+
integrations;
|
|
46
|
+
projectBrain;
|
|
47
|
+
organizationSettings;
|
|
48
|
+
organizationSecurity;
|
|
49
|
+
projectSettings;
|
|
50
|
+
uploads;
|
|
51
|
+
wallet;
|
|
52
|
+
protocols;
|
|
53
|
+
inbox;
|
|
54
|
+
network;
|
|
55
|
+
simulator;
|
|
56
|
+
commands;
|
|
57
|
+
brain;
|
|
58
|
+
memory;
|
|
59
|
+
dispatcher;
|
|
60
|
+
swarms;
|
|
61
|
+
templates;
|
|
62
|
+
media;
|
|
63
|
+
webhooks;
|
|
64
|
+
jobs;
|
|
65
|
+
curator;
|
|
66
|
+
reports;
|
|
67
|
+
linkPreview;
|
|
68
|
+
realtime;
|
|
69
|
+
/**
|
|
70
|
+
* The underlying Recursiv client. Exposed as an escape hatch so callers
|
|
71
|
+
* can reach anything we haven't yet wrapped at the Minds layer. Treat
|
|
72
|
+
* this as "I know what I'm doing" — for normal use, prefer the typed
|
|
73
|
+
* resources above.
|
|
74
|
+
*/
|
|
75
|
+
recursiv;
|
|
76
|
+
constructor(config) {
|
|
77
|
+
const recursiv = new Recursiv({
|
|
78
|
+
...config,
|
|
79
|
+
baseUrl: config?.baseUrl ?? MINDS_DEFAULT_BASE_URL,
|
|
80
|
+
});
|
|
81
|
+
this.recursiv = recursiv;
|
|
82
|
+
this.auth = recursiv.auth;
|
|
83
|
+
this.posts = recursiv.posts;
|
|
84
|
+
this.users = recursiv.users;
|
|
85
|
+
this.communities = recursiv.communities;
|
|
86
|
+
this.chat = recursiv.chat;
|
|
87
|
+
this.projects = recursiv.projects;
|
|
88
|
+
this.agents = recursiv.agents;
|
|
89
|
+
this.tags = recursiv.tags;
|
|
90
|
+
this.sandbox = recursiv.sandbox;
|
|
91
|
+
this.profiles = recursiv.profiles;
|
|
92
|
+
this.organizations = recursiv.organizations;
|
|
93
|
+
this.notifications = recursiv.notifications;
|
|
94
|
+
this.settings = recursiv.settings;
|
|
95
|
+
this.billing = recursiv.billing;
|
|
96
|
+
this.freeTier = recursiv.freeTier;
|
|
97
|
+
this.inviteCodes = recursiv.inviteCodes;
|
|
98
|
+
this.inviteCodesAdmin = recursiv.inviteCodesAdmin;
|
|
99
|
+
this.admin = recursiv.admin;
|
|
100
|
+
this.email = recursiv.email;
|
|
101
|
+
this.storage = recursiv.storage;
|
|
102
|
+
this.databases = recursiv.databases;
|
|
103
|
+
this.github = recursiv.github;
|
|
104
|
+
this.deployments = recursiv.deployments;
|
|
105
|
+
this.integrations = recursiv.integrations;
|
|
106
|
+
this.projectBrain = recursiv.projectBrain;
|
|
107
|
+
this.organizationSettings = recursiv.organizationSettings;
|
|
108
|
+
this.organizationSecurity = recursiv.organizationSecurity;
|
|
109
|
+
this.projectSettings = recursiv.projectSettings;
|
|
110
|
+
this.uploads = recursiv.uploads;
|
|
111
|
+
this.wallet = recursiv.wallet;
|
|
112
|
+
this.protocols = recursiv.protocols;
|
|
113
|
+
this.inbox = recursiv.inbox;
|
|
114
|
+
this.network = recursiv.network;
|
|
115
|
+
this.simulator = recursiv.simulator;
|
|
116
|
+
this.commands = recursiv.commands;
|
|
117
|
+
this.brain = recursiv.brain;
|
|
118
|
+
this.memory = recursiv.memory;
|
|
119
|
+
this.dispatcher = recursiv.dispatcher;
|
|
120
|
+
this.swarms = recursiv.swarms;
|
|
121
|
+
this.templates = recursiv.templates;
|
|
122
|
+
this.media = recursiv.media;
|
|
123
|
+
this.webhooks = recursiv.webhooks;
|
|
124
|
+
this.jobs = recursiv.jobs;
|
|
125
|
+
this.curator = recursiv.curator;
|
|
126
|
+
this.reports = recursiv.reports;
|
|
127
|
+
this.linkPreview = recursiv.linkPreview;
|
|
128
|
+
this.realtime = recursiv.realtime;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AA6DzC;;;;;GAKG;AACH,MAAM,sBAAsB,GAAG,8BAA8B,CAAC;AAE9D,MAAM,OAAO,KAAK;IACP,IAAI,CAAe;IACnB,KAAK,CAAgB;IACrB,KAAK,CAAgB;IACrB,WAAW,CAAsB;IACjC,IAAI,CAAe;IACnB,QAAQ,CAAmB;IAC3B,MAAM,CAAiB;IACvB,IAAI,CAAe;IACnB,OAAO,CAAkB;IACzB,QAAQ,CAAmB;IAC3B,aAAa,CAAwB;IACrC,aAAa,CAAwB;IACrC,QAAQ,CAAmB;IAC3B,OAAO,CAAkB;IACzB,QAAQ,CAAmB;IAC3B,WAAW,CAAsB;IACjC,gBAAgB,CAA2B;IAC3C,KAAK,CAAgB;IACrB,KAAK,CAAgB;IACrB,OAAO,CAAkB;IACzB,SAAS,CAAoB;IAC7B,MAAM,CAAiB;IACvB,WAAW,CAAsB;IACjC,YAAY,CAAuB;IACnC,YAAY,CAAuB;IACnC,oBAAoB,CAA+B;IACnD,oBAAoB,CAA+B;IACnD,eAAe,CAA0B;IACzC,OAAO,CAAkB;I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AAI,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;QAClC,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC9B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;QACtC,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;QAC9B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;QACpC,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;QAClC,IAAI,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QAChC,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC;QACxC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC;IACpC,CAAC;CACF"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @minds/sdk — official TypeScript client for the Minds platform.
|
|
3
|
+
*
|
|
4
|
+
* Wraps `@recursiv/sdk`. The Recursiv platform powers Minds; this SDK is
|
|
5
|
+
* a brand-shaped layer with full parity over Recursiv's resources. To
|
|
6
|
+
* contribute at the platform layer (resources, transport, runtime), see
|
|
7
|
+
* https://github.com/recursivlabs/recursiv.
|
|
8
|
+
*/
|
|
9
|
+
export { Minds } from './client.js';
|
|
10
|
+
export type { MindsConfig } from './client.js';
|
|
11
|
+
export * from '@recursiv/sdk';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C,cAAc,eAAe,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @minds/sdk — official TypeScript client for the Minds platform.
|
|
3
|
+
*
|
|
4
|
+
* Wraps `@recursiv/sdk`. The Recursiv platform powers Minds; this SDK is
|
|
5
|
+
* a brand-shaped layer with full parity over Recursiv's resources. To
|
|
6
|
+
* contribute at the platform layer (resources, transport, runtime), see
|
|
7
|
+
* https://github.com/recursivlabs/recursiv.
|
|
8
|
+
*/
|
|
9
|
+
export { Minds } from './client.js';
|
|
10
|
+
// Re-export the full Recursiv surface so consumers never have to reach
|
|
11
|
+
// for two packages. Anything Recursiv exports — resource classes, error
|
|
12
|
+
// classes, SSE helpers, types — is available from @minds/sdk too.
|
|
13
|
+
export * from '@recursiv/sdk';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGpC,uEAAuE;AACvE,wEAAwE;AACxE,kEAAkE;AAClE,cAAc,eAAe,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@minds/sdk",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "TypeScript SDK for the Minds platform — built on Recursiv",
|
|
5
|
+
"license": "FSL-1.1-ALv2",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=18"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/recursivlabs/recursiv.git",
|
|
29
|
+
"directory": "packages/minds-sdk"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/recursivlabs/recursiv/issues"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/recursivlabs/recursiv/tree/main/packages/minds-sdk#readme",
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"registry": "https://registry.npmjs.org/",
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@recursiv/sdk": "0.5.6"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"typescript": "~5.9.2",
|
|
44
|
+
"vitest": "^4.1.0"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "tsc",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"test": "vitest run --passWithNoTests"
|
|
50
|
+
}
|
|
51
|
+
}
|