@madewithremy/admin 0.1.47 → 0.1.48
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/prod.js +64 -2
- package/package.json +1 -1
package/dist/prod.js
CHANGED
|
@@ -9103,6 +9103,63 @@ Examples:
|
|
|
9103
9103
|
remy-admin cron list --runs 50
|
|
9104
9104
|
remy-admin cron run dailyDigest`;
|
|
9105
9105
|
|
|
9106
|
+
// src/commands/feedback.ts
|
|
9107
|
+
import fs7 from "fs";
|
|
9108
|
+
|
|
9109
|
+
// src/ops/feedback.ts
|
|
9110
|
+
function draft(ctx, message) {
|
|
9111
|
+
return call(
|
|
9112
|
+
ctx,
|
|
9113
|
+
"POST",
|
|
9114
|
+
`/_internal/v2/apps/${ctx.appId}/feedback-draft`,
|
|
9115
|
+
{ message }
|
|
9116
|
+
);
|
|
9117
|
+
}
|
|
9118
|
+
|
|
9119
|
+
// src/commands/feedback.ts
|
|
9120
|
+
var feedbackSpecs = {
|
|
9121
|
+
"feedback draft": {
|
|
9122
|
+
usage: "Usage: remy-admin feedback draft <message> (or --message - to read stdin)",
|
|
9123
|
+
positionals: [{ name: "message" }],
|
|
9124
|
+
flags: { message: { type: "string" } },
|
|
9125
|
+
requireAnyOf: {
|
|
9126
|
+
flags: ["message"],
|
|
9127
|
+
positionals: ["message"],
|
|
9128
|
+
message: "A message is required."
|
|
9129
|
+
}
|
|
9130
|
+
}
|
|
9131
|
+
};
|
|
9132
|
+
async function feedbackDraft(ctx, a) {
|
|
9133
|
+
const flag = a.str("message");
|
|
9134
|
+
const message = flag === "-" ? fs7.readFileSync(0, "utf-8") : flag ?? a.req("message");
|
|
9135
|
+
out(await draft(ctx, message));
|
|
9136
|
+
}
|
|
9137
|
+
var feedbackHandlers = {
|
|
9138
|
+
"feedback draft": feedbackDraft
|
|
9139
|
+
};
|
|
9140
|
+
var feedbackHelp = `remy-admin feedback \u2014 Report a problem with Remy itself to the Remy team.
|
|
9141
|
+
|
|
9142
|
+
Subcommands:
|
|
9143
|
+
draft Open Send Feedback in the user's editor with your message filled in
|
|
9144
|
+
|
|
9145
|
+
Usage:
|
|
9146
|
+
remy-admin feedback draft <message>
|
|
9147
|
+
remy-admin feedback draft --message - Read the message from stdin
|
|
9148
|
+
|
|
9149
|
+
Notes:
|
|
9150
|
+
- Nothing is sent by this command. The user sees Send Feedback open in their
|
|
9151
|
+
editor with your message in it, can edit it, and decides whether to send.
|
|
9152
|
+
- What goes with a sent report: your conversation, this sandbox's logs and the
|
|
9153
|
+
editor's state. The message itself is what the team reads first.
|
|
9154
|
+
- Only the user's own editors on this app open it, and only ones open now.
|
|
9155
|
+
Returns { status: "sent_to_editor" }.
|
|
9156
|
+
- Errors: feedback_not_configured (this deployment doesn't take feedback),
|
|
9157
|
+
missing_message, message_too_long (over 20,000 characters).
|
|
9158
|
+
|
|
9159
|
+
Examples:
|
|
9160
|
+
remy-admin feedback draft "Every save restarted the dev server twice, so previews lagged a full reload behind."
|
|
9161
|
+
cat note.md | remy-admin feedback draft --message -`;
|
|
9162
|
+
|
|
9106
9163
|
// src/ops/infra.ts
|
|
9107
9164
|
var DEFAULT_WAIT_TIMEOUT_MS4 = 10 * 60 * 1e3;
|
|
9108
9165
|
var POLL_MS5 = 3e3;
|
|
@@ -9810,6 +9867,7 @@ var SPECS = {
|
|
|
9810
9867
|
...settingsSpecs,
|
|
9811
9868
|
...emailSpecs,
|
|
9812
9869
|
...cronSpecs,
|
|
9870
|
+
...feedbackSpecs,
|
|
9813
9871
|
...infraSpecs,
|
|
9814
9872
|
...qaRecordingsSpecs
|
|
9815
9873
|
};
|
|
@@ -9844,6 +9902,7 @@ var HANDLERS = {
|
|
|
9844
9902
|
...settingsHandlers,
|
|
9845
9903
|
...emailHandlers,
|
|
9846
9904
|
...cronHandlers,
|
|
9905
|
+
...feedbackHandlers,
|
|
9847
9906
|
...infraHandlers,
|
|
9848
9907
|
...qaRecordingsHandlers
|
|
9849
9908
|
};
|
|
@@ -9872,12 +9931,13 @@ var GROUP_HELP = {
|
|
|
9872
9931
|
settings: settingsHelp,
|
|
9873
9932
|
email: emailHelp,
|
|
9874
9933
|
cron: cronHelp,
|
|
9934
|
+
feedback: feedbackHelp,
|
|
9875
9935
|
infra: infraHelp,
|
|
9876
9936
|
"qa-recordings": qaRecordingsHelp
|
|
9877
9937
|
};
|
|
9878
9938
|
|
|
9879
9939
|
// src/ctx.ts
|
|
9880
|
-
import
|
|
9940
|
+
import fs8 from "fs";
|
|
9881
9941
|
import path7 from "path";
|
|
9882
9942
|
|
|
9883
9943
|
// src/parseJsonConfig.ts
|
|
@@ -9910,7 +9970,7 @@ function loadWorkspaceAppId(workspaceDir = WORKSPACE_DIR) {
|
|
|
9910
9970
|
const manifestPath = path7.join(workspaceDir, "mindstudio.json");
|
|
9911
9971
|
let raw;
|
|
9912
9972
|
try {
|
|
9913
|
-
raw =
|
|
9973
|
+
raw = fs8.readFileSync(manifestPath, "utf-8");
|
|
9914
9974
|
} catch (err) {
|
|
9915
9975
|
if (err.code === "ENOENT") {
|
|
9916
9976
|
throw new Error(`mindstudio.json not found at ${manifestPath}`);
|
|
@@ -9957,6 +10017,7 @@ Commands:
|
|
|
9957
10017
|
settings App settings \u2014 signup allowlist, test accounts, embed origins, toggles
|
|
9958
10018
|
email Email \u2014 delivery log, blast stats, unsubscribes, inbox, custom domains
|
|
9959
10019
|
cron Scheduled jobs \u2014 schedules, run history, manual trigger
|
|
10020
|
+
feedback Report a problem with Remy itself, for the user to review and send
|
|
9960
10021
|
infra Dedicated infrastructure \u2014 provision, hibernate, resize + destroy retrieval capacity
|
|
9961
10022
|
qa-recordings Browser-QA session replays \u2014 list them, render one as an mp4
|
|
9962
10023
|
|
|
@@ -9993,6 +10054,7 @@ var GROUPS = [
|
|
|
9993
10054
|
"settings",
|
|
9994
10055
|
"email",
|
|
9995
10056
|
"cron",
|
|
10057
|
+
"feedback",
|
|
9996
10058
|
"infra",
|
|
9997
10059
|
"qa-recordings"
|
|
9998
10060
|
];
|