@staff0rd/assist 0.35.0 → 0.36.1

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.
Files changed (2) hide show
  1. package/dist/index.js +44 -43
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { Command } from "commander";
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "@staff0rd/assist",
10
- version: "0.34.0",
10
+ version: "0.36.1",
11
11
  type: "module",
12
12
  main: "dist/index.js",
13
13
  bin: {
@@ -53,6 +53,7 @@ var package_default = {
53
53
  devDependencies: {
54
54
  "@biomejs/biome": "^2.3.8",
55
55
  "@semantic-release/changelog": "^6.0.3",
56
+ "@semantic-release/exec": "^7.1.0",
56
57
  "@semantic-release/git": "^10.0.1",
57
58
  "@types/node": "^24.10.1",
58
59
  "@types/node-notifier": "^8.0.5",
@@ -72,6 +73,40 @@ import { existsSync, readFileSync, writeFileSync } from "fs";
72
73
  import { basename, join } from "path";
73
74
  import chalk from "chalk";
74
75
  import { parse as parseYaml, stringify as stringifyYaml } from "yaml";
76
+
77
+ // src/shared/types.ts
78
+ import { z } from "zod";
79
+ var runConfigSchema = z.strictObject({
80
+ name: z.string(),
81
+ command: z.string(),
82
+ args: z.array(z.string()).optional()
83
+ });
84
+ var transcriptConfigSchema = z.strictObject({
85
+ vttDir: z.string(),
86
+ transcriptsDir: z.string(),
87
+ summaryDir: z.string()
88
+ });
89
+ var assistConfigSchema = z.strictObject({
90
+ commit: z.strictObject({
91
+ conventional: z.boolean().optional(),
92
+ pull: z.boolean().optional(),
93
+ push: z.boolean().optional()
94
+ }).optional(),
95
+ devlog: z.strictObject({
96
+ name: z.string().optional(),
97
+ ignore: z.array(z.string()).optional(),
98
+ skip: z.strictObject({
99
+ days: z.array(z.string()).optional()
100
+ }).optional()
101
+ }).optional(),
102
+ notify: z.strictObject({
103
+ enabled: z.boolean().default(true)
104
+ }).default({ enabled: true }),
105
+ run: z.array(runConfigSchema).optional(),
106
+ transcript: transcriptConfigSchema.optional()
107
+ });
108
+
109
+ // src/shared/loadConfig.ts
75
110
  function getConfigPath() {
76
111
  const claudeConfigPath = join(process.cwd(), ".claude", "assist.yml");
77
112
  if (existsSync(claudeConfigPath)) {
@@ -81,15 +116,15 @@ function getConfigPath() {
81
116
  }
82
117
  function loadConfig() {
83
118
  const configPath = getConfigPath();
84
- if (!existsSync(configPath)) {
85
- return {};
86
- }
87
- try {
88
- const content = readFileSync(configPath, "utf-8");
89
- return parseYaml(content) || {};
90
- } catch {
91
- return {};
119
+ let raw = {};
120
+ if (existsSync(configPath)) {
121
+ try {
122
+ const content = readFileSync(configPath, "utf-8");
123
+ raw = parseYaml(content) || {};
124
+ } catch {
125
+ }
92
126
  }
127
+ return assistConfigSchema.parse(raw);
93
128
  }
94
129
  function saveConfig(config) {
95
130
  const configPath = getConfigPath();
@@ -586,40 +621,6 @@ Total: ${total} lines across ${files.length} files`)
586
621
  // src/commands/config/index.ts
587
622
  import chalk7 from "chalk";
588
623
  import { stringify as stringifyYaml2 } from "yaml";
589
-
590
- // src/shared/types.ts
591
- import { z } from "zod";
592
- var runConfigSchema = z.strictObject({
593
- name: z.string(),
594
- command: z.string(),
595
- args: z.array(z.string()).optional()
596
- });
597
- var transcriptConfigSchema = z.strictObject({
598
- vttDir: z.string(),
599
- transcriptsDir: z.string(),
600
- summaryDir: z.string()
601
- });
602
- var assistConfigSchema = z.strictObject({
603
- commit: z.strictObject({
604
- conventional: z.boolean().optional(),
605
- pull: z.boolean().optional(),
606
- push: z.boolean().optional()
607
- }).optional(),
608
- devlog: z.strictObject({
609
- name: z.string().optional(),
610
- ignore: z.array(z.string()).optional(),
611
- skip: z.strictObject({
612
- days: z.array(z.string()).optional()
613
- }).optional()
614
- }).optional(),
615
- notify: z.strictObject({
616
- enabled: z.boolean().default(true)
617
- }).optional(),
618
- run: z.array(runConfigSchema).optional(),
619
- transcript: transcriptConfigSchema.optional()
620
- });
621
-
622
- // src/commands/config/index.ts
623
624
  function getNestedValue(obj, path18) {
624
625
  const keys = path18.split(".");
625
626
  let current = obj;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staff0rd/assist",
3
- "version": "0.35.0",
3
+ "version": "0.36.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -46,6 +46,7 @@
46
46
  "devDependencies": {
47
47
  "@biomejs/biome": "^2.3.8",
48
48
  "@semantic-release/changelog": "^6.0.3",
49
+ "@semantic-release/exec": "^7.1.0",
49
50
  "@semantic-release/git": "^10.0.1",
50
51
  "@types/node": "^24.10.1",
51
52
  "@types/node-notifier": "^8.0.5",