@saga-ai/cli 2.15.0 → 2.15.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/cli.cjs +6 -2
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -301,6 +301,7 @@ async function toStoryDetail(story, sagaRoot) {
301
301
  title: story.title,
302
302
  status: toApiStoryStatus(validateStatus(story.status)),
303
303
  tasks,
304
+ content: story.body || void 0,
304
305
  archived: story.archived,
305
306
  paths: {
306
307
  storyMd: (0, import_node_path2.relative)(sagaRoot, story.storyPath),
@@ -339,9 +340,11 @@ async function parseStory(storyPath, epicSlug) {
339
340
  const storyDir = storyPath.replace(STORY_MD_SUFFIX_PATTERN2, "");
340
341
  const dirName = storyDir.split("/").pop() || "unknown";
341
342
  let frontmatter = {};
343
+ let bodyContent = "";
342
344
  try {
343
345
  const parsed = (0, import_gray_matter2.default)(content);
344
346
  frontmatter = parsed.data;
347
+ bodyContent = parsed.content;
345
348
  } catch {
346
349
  }
347
350
  const slug = frontmatter.id || frontmatter.slug || dirName;
@@ -361,6 +364,7 @@ async function parseStory(storyPath, epicSlug) {
361
364
  title,
362
365
  status,
363
366
  tasks,
367
+ content: bodyContent || void 0,
364
368
  paths: {
365
369
  storyMd: storyPath,
366
370
  ...hasJournal ? { journalMd: journalPath } : {}
@@ -441,7 +445,7 @@ var SESSION_NAME_PARTS_COUNT = 4;
441
445
  var PREVIEW_LINES_COUNT = 5;
442
446
  var PREVIEW_MAX_LENGTH = 500;
443
447
  var SLUG_PATTERN = /^[a-z0-9-]+$/;
444
- var SESSION_NAME_PATTERN = /^(saga[-_][-_]?[a-z0-9_-]+):/;
448
+ var SESSION_NAME_PATTERN = /^(saga__[a-z0-9_-]+):/;
445
449
  var OUTPUT_DIR = "/tmp/saga-sessions";
446
450
  function checkTmuxAvailable() {
447
451
  const result = (0, import_node_child_process.spawnSync)("which", ["tmux"], { encoding: "utf-8" });
@@ -562,7 +566,7 @@ function createSession(epicSlug, storySlug, command) {
562
566
  (0, import_node_fs2.mkdirSync)(OUTPUT_DIR, { recursive: true });
563
567
  }
564
568
  const timestamp = Date.now();
565
- const sessionName = `saga-${epicSlug}-${storySlug}-${timestamp}`;
569
+ const sessionName = `saga__${epicSlug}__${storySlug}__${timestamp}`;
566
570
  const { wrapperScriptPath, outputFile } = createSessionFiles(sessionName, command);
567
571
  const createResult = (0, import_node_child_process.spawnSync)(
568
572
  "tmux",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saga-ai/cli",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "CLI for SAGA - Structured Autonomous Goal Achievement",
5
5
  "type": "module",
6
6
  "bin": {