@theholocron/cli 5.0.0-alpha.203 → 5.0.0-alpha.204

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.
@@ -1151,6 +1151,29 @@ interface Notifications extends ProviderIdentity {
1151
1151
  /** Leave the message in the channel instead of removing it, so a person can see it. */
1152
1152
  keep?: boolean;
1153
1153
  }): Promise<NotificationsDelivery>;
1154
+ /**
1155
+ * Creates the server the layout describes, empty, owned by the provider's own bot, and makes it the server
1156
+ * every other call in this run works on. Refuses when the config already names a server unless `force`.
1157
+ */
1158
+ createServer?(input: {
1159
+ name: string;
1160
+ force?: boolean;
1161
+ }): Promise<{
1162
+ id: string;
1163
+ name: string;
1164
+ }>;
1165
+ /** A single-use link, valid for a day, that lets one person join the server through the named channel. */
1166
+ inviteLink?(channel: string): Promise<string>;
1167
+ /** Whether a person is in the server. */
1168
+ hasMember?(memberId: string): Promise<boolean>;
1169
+ /** Hands the server to a member who has joined, so the bot no longer owns it. */
1170
+ transferServer?(memberId: string): Promise<void>;
1171
+ /** Who owns the server, and whether that is the provider's own bot. */
1172
+ serverOwner?(): Promise<{
1173
+ id: string;
1174
+ isBot: boolean;
1175
+ name?: string;
1176
+ }>;
1154
1177
  /**
1155
1178
  * Who holds a role, by the provider's member id. Needs whatever permission the provider asks for to list
1156
1179
  * members (for Discord, the privileged Server Members Intent). Throws if the role does not exist.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.203",
3
+ "version": "5.0.0-alpha.204",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -63,8 +63,8 @@
63
63
  "pino-pretty": "^13.1.3",
64
64
  "posthog-node": "^5.51.6",
65
65
  "yargs": "^18.1.0",
66
- "@theholocron/datapad": "5.0.0-alpha.203",
67
- "@theholocron/astromech": "5.0.0-alpha.203"
66
+ "@theholocron/datapad": "5.0.0-alpha.204",
67
+ "@theholocron/astromech": "5.0.0-alpha.204"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@theholocron/eslint-config": "^8.8.2",