@vellumai/assistant 0.4.36 → 0.4.37

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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@vellumai/assistant",
3
- "version": "0.4.36",
3
+ "version": "0.4.37",
4
4
  "type": "module",
5
5
  "bin": {
6
- "vellum": "./src/index.ts"
6
+ "assistant": "./src/index.ts"
7
7
  },
8
8
  "scripts": {
9
9
  "dev": "bun run src/index.ts",
@@ -751,6 +751,14 @@ describe("vellum credentials CLI", () => {
751
751
  expect(parsed.error).toContain("Invalid credential name");
752
752
  });
753
753
 
754
+ test("reveal in human mode emits bare secret with trailing newline", async () => {
755
+ seedCredential("twilio", "auth_token", "secret_xyz_789");
756
+
757
+ const result = await runCli(["reveal", "twilio:auth_token"]);
758
+ expect(result.exitCode).toBe(0);
759
+ expect(result.stdout).toBe("secret_xyz_789\n");
760
+ });
761
+
754
762
  test("errors when metadata exists but no secret stored", async () => {
755
763
  seedMetadataOnly("test", "nosecret");
756
764
 
package/src/cli/AGENTS.md CHANGED
@@ -21,7 +21,7 @@ Examples: `config`, `contacts`, `memory`, `autonomy`, `sessions`, `doctor` belon
21
21
 
22
22
  - Commands use [Commander.js](https://github.com/tj/commander.js) and follow the `registerXCommand(program: Command)` pattern.
23
23
  - Each command module exports a registration function that attaches subcommands to the program.
24
- - Register new commands in `assistant/src/index.ts` by importing and calling the registration function.
24
+ - Register new commands in `assistant/src/cli/program.ts` inside the `buildCliProgram()` function by importing and calling the registration function.
25
25
  - Use `getCliLogger("cli")` for output (not raw `console.log`).
26
26
 
27
27
  ## Service calls — no gateway proxying
@@ -553,7 +553,7 @@ Examples:
553
553
  if (shouldOutputJson(cmd)) {
554
554
  writeOutput(cmd, { ok: true, value: secret });
555
555
  } else {
556
- process.stdout.write(secret);
556
+ process.stdout.write(secret + "\n");
557
557
  }
558
558
  } catch (err) {
559
559
  const message = err instanceof Error ? err.message : String(err);
package/src/cli/email.ts CHANGED
@@ -502,8 +502,11 @@ Use --status to narrow results to a specific lifecycle stage:
502
502
  pending — created but not yet approved
503
503
  approved — approved and queued for sending
504
504
  sent — successfully delivered
505
+ rejected — delivery failed by the provider (e.g. bounce or send error)
505
506
 
506
- Note: rejected drafts are permanently deleted and will not appear here.
507
+ Note: drafts rejected via "draft reject" are permanently deleted and will
508
+ not appear here. The "rejected" status only applies to provider-side
509
+ delivery failures.
507
510
 
508
511
  Examples:
509
512
  $ vellum email draft list
package/src/cli/memory.ts CHANGED
@@ -298,9 +298,7 @@ Examples:
298
298
  dryRun?: boolean;
299
299
  }) => {
300
300
  if (!opts.all && !opts.pattern) {
301
- log.info(
302
- "Usage: vellum memory dismiss-conflicts --all OR --pattern <regex>",
303
- );
301
+ log.info("At least one of --all or --pattern must be provided.");
304
302
  log.info("Use --dry-run to preview without making changes.");
305
303
  return;
306
304
  }
package/src/cli/trust.ts CHANGED
@@ -118,9 +118,7 @@ Examples:
118
118
  if (matches.length > 1) {
119
119
  log.error(`Ambiguous prefix "${id}" matches ${matches.length} rules:`);
120
120
  for (const m of matches) {
121
- log.error(
122
- ` ${m.id.slice(0, SHORT_HASH_LENGTH)} ${m.tool}: ${m.pattern}`,
123
- );
121
+ log.error(` ${m.id} ${m.tool}: ${m.pattern}`);
124
122
  }
125
123
  log.error("Provide a longer prefix to uniquely identify the rule.");
126
124
  process.exit(1);