dynamoi 0.2.5 → 0.2.7
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 +10 -9
- package/dist/dynamoi.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
[](./LICENSE)
|
|
7
7
|
|
|
8
8
|
The `dynamoi` command line runs [Dynamoi](https://dynamoi.com) music promotion
|
|
9
|
-
from a terminal, a script or any agent that can run shell commands.
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
from a terminal, a script or any agent that can run shell commands. Promote a
|
|
10
|
+
song on Spotify or promote a video on YouTube: check campaign results, make a
|
|
11
|
+
free smart link for music or a free link in bio for musicians, and launch
|
|
12
|
+
Spotify and YouTube ad campaigns, with the same account, tools and consent
|
|
13
|
+
rules as the Dynamoi apps.
|
|
12
14
|
It works with any distributor.
|
|
13
15
|
|
|
14
16
|
<p align="center">
|
|
@@ -78,17 +80,16 @@ computer, it gets the full tool set.
|
|
|
78
80
|
|
|
79
81
|
## Paid actions need your yes
|
|
80
82
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
Some tools require explicit confirmation arguments (`confirm...`,
|
|
84
|
+
`authorize...`, `accepted...`). The CLI never fills required confirmations
|
|
85
|
+
without your approval.
|
|
84
86
|
|
|
85
87
|
- In a terminal, it shows the tool's summary and asks `[y/N]` first.
|
|
86
88
|
- In a script or an agent, you pass the flag yourself, for example
|
|
87
89
|
`--confirm-application-submission`.
|
|
88
|
-
- Budget consent versions and hashes are always passed explicitly. Find them
|
|
89
|
-
with `dynamoi help <tool>`.
|
|
90
90
|
|
|
91
|
-
Without
|
|
91
|
+
Without required confirmations, the server refuses that action.
|
|
92
|
+
Legacy campaign funding fields are optional and ignored.
|
|
92
93
|
|
|
93
94
|
## Links
|
|
94
95
|
|
package/dist/dynamoi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var package_default = {
|
|
4
4
|
$schema: "https://www.schemastore.org/package",
|
|
5
5
|
name: "dynamoi",
|
|
6
|
-
version: "0.2.
|
|
6
|
+
version: "0.2.7",
|
|
7
7
|
type: "module",
|
|
8
8
|
license: "MIT",
|
|
9
9
|
description: "Music promotion and distribution, built for AI agents: the Dynamoi command line.",
|
|
@@ -461,11 +461,12 @@ async function postForm(url, body) {
|
|
|
461
461
|
return json;
|
|
462
462
|
}
|
|
463
463
|
function toCredentials(token, clientId, previous) {
|
|
464
|
+
const refreshToken = token.refresh_token ?? previous?.refreshToken;
|
|
464
465
|
return {
|
|
465
466
|
accessToken: token.access_token,
|
|
466
467
|
clientId,
|
|
467
468
|
expiresAt: Date.now() + (token.expires_in ?? 3600) * 1000,
|
|
468
|
-
refreshToken:
|
|
469
|
+
...refreshToken === undefined ? {} : { refreshToken },
|
|
469
470
|
scope: token.scope ?? previous?.scope ?? ""
|
|
470
471
|
};
|
|
471
472
|
}
|
package/package.json
CHANGED