@saga-ai/dashboard 4.0.0 → 4.2.0

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/cli.cjs +35 -37
  2. package/package.json +2 -2
package/dist/cli.cjs CHANGED
@@ -48,6 +48,33 @@ var import_express2 = require("express");
48
48
  var import_node_fs3 = require("node:fs");
49
49
  var import_promises = require("node:fs/promises");
50
50
 
51
+ // ../saga-utils/src/directory.ts
52
+ function normalizeRoot(projectRoot) {
53
+ return projectRoot.endsWith("/") ? projectRoot.slice(0, -1) : projectRoot;
54
+ }
55
+ function createSagaPaths(projectRoot) {
56
+ const root = normalizeRoot(projectRoot);
57
+ const saga = `${root}/.saga`;
58
+ return {
59
+ root,
60
+ saga,
61
+ epics: `${saga}/epics`,
62
+ stories: `${saga}/stories`,
63
+ worktrees: `${saga}/worktrees`,
64
+ archive: `${saga}/archive`
65
+ };
66
+ }
67
+ function createStoryPaths(projectRoot, storyId) {
68
+ const { stories } = createSagaPaths(projectRoot);
69
+ const storyDir = `${stories}/${storyId}`;
70
+ return {
71
+ storyId,
72
+ storyDir,
73
+ storyJson: `${storyDir}/story.json`,
74
+ journalMd: `${storyDir}/journal.md`
75
+ };
76
+ }
77
+
51
78
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/external.js
52
79
  var external_exports = {};
53
80
  __export(external_exports, {
@@ -4089,7 +4116,7 @@ var coerce = {
4089
4116
  };
4090
4117
  var NEVER = INVALID;
4091
4118
 
4092
- // ../saga-types/src/task.ts
4119
+ // ../saga-utils/src/schemas/task.ts
4093
4120
  var TaskStatusSchema = external_exports.enum(["pending", "in_progress", "completed"]);
4094
4121
  var TaskSchema = external_exports.object({
4095
4122
  id: external_exports.string(),
@@ -4103,7 +4130,7 @@ var TaskSchema = external_exports.object({
4103
4130
  });
4104
4131
  var StoryIdSchema = external_exports.string().regex(/^[a-z0-9-]+$/);
4105
4132
 
4106
- // ../saga-types/src/claude-code-task.ts
4133
+ // ../saga-utils/src/schemas/claude-code-task.ts
4107
4134
  var ClaudeCodeTaskSchema = external_exports.object({
4108
4135
  id: external_exports.string(),
4109
4136
  subject: external_exports.string(),
@@ -4116,34 +4143,7 @@ var ClaudeCodeTaskSchema = external_exports.object({
4116
4143
  metadata: external_exports.record(external_exports.string(), external_exports.unknown()).optional()
4117
4144
  });
4118
4145
 
4119
- // ../saga-types/src/directory.ts
4120
- function normalizeRoot(projectRoot) {
4121
- return projectRoot.endsWith("/") ? projectRoot.slice(0, -1) : projectRoot;
4122
- }
4123
- function createSagaPaths(projectRoot) {
4124
- const root = normalizeRoot(projectRoot);
4125
- const saga = `${root}/.saga`;
4126
- return {
4127
- root,
4128
- saga,
4129
- epics: `${saga}/epics`,
4130
- stories: `${saga}/stories`,
4131
- worktrees: `${saga}/worktrees`,
4132
- archive: `${saga}/archive`
4133
- };
4134
- }
4135
- function createStoryPaths(projectRoot, storyId) {
4136
- const { stories } = createSagaPaths(projectRoot);
4137
- const storyDir = `${stories}/${storyId}`;
4138
- return {
4139
- storyId,
4140
- storyDir,
4141
- storyJson: `${storyDir}/story.json`,
4142
- journalMd: `${storyDir}/journal.md`
4143
- };
4144
- }
4145
-
4146
- // ../saga-types/src/epic.ts
4146
+ // ../saga-utils/src/schemas/epic.ts
4147
4147
  var EpicChildSchema = external_exports.object({
4148
4148
  id: external_exports.string(),
4149
4149
  blockedBy: external_exports.array(external_exports.string())
@@ -4155,7 +4155,7 @@ var EpicSchema = external_exports.object({
4155
4155
  children: external_exports.array(EpicChildSchema)
4156
4156
  }).strict();
4157
4157
 
4158
- // ../saga-types/src/session.ts
4158
+ // ../saga-utils/src/schemas/session.ts
4159
4159
  var SessionStatusSchema = external_exports.enum(["running", "completed"]);
4160
4160
  var SessionSchema = external_exports.object({
4161
4161
  /** Unique session name (saga__<epic>__<story>__<pid>) */
@@ -4178,11 +4178,7 @@ var SessionSchema = external_exports.object({
4178
4178
  outputPreview: external_exports.string().optional()
4179
4179
  });
4180
4180
 
4181
- // ../saga-types/src/storage.ts
4182
- var import_node_fs = require("node:fs");
4183
- var import_node_path = require("node:path");
4184
-
4185
- // ../saga-types/src/story.ts
4181
+ // ../saga-utils/src/schemas/story.ts
4186
4182
  var StorySchema = external_exports.object({
4187
4183
  id: external_exports.string(),
4188
4184
  title: external_exports.string(),
@@ -4196,7 +4192,9 @@ var StorySchema = external_exports.object({
4196
4192
  worktree: external_exports.string().optional()
4197
4193
  }).strict();
4198
4194
 
4199
- // ../saga-types/src/storage.ts
4195
+ // ../saga-utils/src/storage.ts
4196
+ var import_node_fs = require("node:fs");
4197
+ var import_node_path = require("node:path");
4200
4198
  function readStory(projectRoot, storyId) {
4201
4199
  const { storyJson } = createStoryPaths(projectRoot, storyId);
4202
4200
  if (!(0, import_node_fs.existsSync)(storyJson)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saga-ai/dashboard",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "Dashboard and session monitoring for SAGA - Structured Autonomous Goal Achievement",
5
5
  "type": "module",
6
6
  "bin": {
@@ -80,7 +80,7 @@
80
80
  "vite": "^7.3.1",
81
81
  "vitest": "^4.0.18",
82
82
  "xstate": "^5.26.0",
83
- "@saga-ai/types": "0.0.0"
83
+ "@saga-ai/utils": "0.0.0"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=18.0.0"