@stage5/lumine 0.2.52 → 0.2.54
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 +63 -1
- package/lib/admin.js +421 -7
- package/lib/agent/providers/claude-code.js +104 -3
- package/lib/agent/providers/codex.js +118 -14
- package/lib/agent.js +9 -1
- package/lib/commands.js +77 -27
- package/lib/constants.js +1 -0
- package/lib/sdk.js +39 -0
- package/lib/sponsor.js +1291 -0
- package/package.json +1 -1
- package/sdk/BUILD_SDK_INDEX.md +122 -7
- package/sdk/LUMINE_ADMIN.md +264 -6
package/lib/sdk.js
CHANGED
|
@@ -100,6 +100,43 @@ export const SDK_CLI_METHODS = {
|
|
|
100
100
|
write: true,
|
|
101
101
|
sdkReshape: "the SDK returns { success, usage }",
|
|
102
102
|
},
|
|
103
|
+
"media.getUsage": {
|
|
104
|
+
path: "api/media/usage",
|
|
105
|
+
scopes: ["media:read"],
|
|
106
|
+
sdkReshape: "the SDK returns the mediaEnergy object directly",
|
|
107
|
+
},
|
|
108
|
+
"media.getClip": { path: "api/media/clips/status", scopes: ["media:read"] },
|
|
109
|
+
"media.listClips": { path: "api/media/clips/list", scopes: ["media:read"] },
|
|
110
|
+
"live.list": {
|
|
111
|
+
path: "api/live/list",
|
|
112
|
+
scopes: ["live:read"],
|
|
113
|
+
sdkReshape: "the SDK returns the sessions array directly",
|
|
114
|
+
},
|
|
115
|
+
"live.get": {
|
|
116
|
+
path: "api/live/status",
|
|
117
|
+
scopes: ["live:read"],
|
|
118
|
+
sdkReshape: "the SDK returns the session object directly",
|
|
119
|
+
},
|
|
120
|
+
"live.stop": {
|
|
121
|
+
path: "api/live/stop",
|
|
122
|
+
scopes: ["live:write"],
|
|
123
|
+
write: true,
|
|
124
|
+
},
|
|
125
|
+
"live.listReplays": {
|
|
126
|
+
path: "api/live/replays/list",
|
|
127
|
+
scopes: ["live:read"],
|
|
128
|
+
sdkReshape: "the SDK returns the replays array directly",
|
|
129
|
+
},
|
|
130
|
+
"live.getReplay": {
|
|
131
|
+
path: "api/live/replays/status",
|
|
132
|
+
scopes: ["live:read"],
|
|
133
|
+
sdkReshape: "the SDK returns the replay object directly",
|
|
134
|
+
},
|
|
135
|
+
"live.deleteReplay": {
|
|
136
|
+
path: "api/live/replays/delete",
|
|
137
|
+
scopes: ["live:write"],
|
|
138
|
+
write: true,
|
|
139
|
+
},
|
|
103
140
|
"notifications.getSubscription": { path: "api/notifications/subscription", scopes: ["notifications:read"] },
|
|
104
141
|
"notifications.subscribe": { path: "api/notifications/subscription/subscribe", scopes: ["notifications:write"], write: true },
|
|
105
142
|
"notifications.unsubscribe": { path: "api/notifications/subscription/unsubscribe", scopes: ["notifications:write"], write: true },
|
|
@@ -164,6 +201,8 @@ export const SDK_CLI_METHOD_NAMES_BY_PATH = (() => {
|
|
|
164
201
|
// without --allow-write.
|
|
165
202
|
export const SDK_CLI_READ_SCOPES = [
|
|
166
203
|
"files:read",
|
|
204
|
+
"media:read",
|
|
205
|
+
"live:read",
|
|
167
206
|
"user:read",
|
|
168
207
|
"users:read",
|
|
169
208
|
"dailyReflections:read",
|