@zyacreatives/shared 2.1.48 → 2.1.49

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.
@@ -0,0 +1,6 @@
1
+ {
2
+ "workspace_id": "597f-9398-c489-f5fb",
3
+ "workspace_id_at": "2026-01-09T09:19:55.255Z",
4
+ "project_name": "shared",
5
+ "cloud_sync": false
6
+ }
@@ -0,0 +1,69 @@
1
+ # SpecStory Artifacts Directory
2
+
3
+ This directory is automatically created and maintained by the SpecStory extension to preserve your AI chat history.
4
+
5
+ ## What's Here?
6
+
7
+ - `.specstory/history`: Contains auto-saved markdown files of your AI coding sessions
8
+ - Each file represents a separate AI chat session
9
+ - If you enable auto-save, files are automatically updated as you work
10
+ - You can enable/disable the auto-save feature in the SpecStory settings, it is disabled by default
11
+ - `.specstory/.project.json`: Contains the persistent project identity for the current workspace
12
+ - This file is only present if you enable AI rules derivation
13
+ - This is used to provide consistent project identity of your project, even as the workspace is moved or renamed
14
+ - `.specstory/ai_rules_backups`: Contains backups of the `.cursor/rules/derived-cursor-rules.mdc` or the `.github/copilot-instructions.md` file
15
+ - Backups are automatically created each time the `.cursor/rules/derived-cursor-rules.mdc` or the `.github/copilot-instructions.md` file is updated
16
+ - You can enable/disable the AI Rules derivation feature in the SpecStory settings, it is disabled by default
17
+ - `.specstory/.gitignore`: Contains directives to exclude non-essential contents of the `.specstory` directory from version control
18
+ - Add `/history` to exclude the auto-saved chat history from version control
19
+
20
+ ## Valuable Uses
21
+
22
+ - Capture: Keep your context window up-to-date when starting new Chat/Composer sessions via @ references
23
+ - Search: For previous prompts and code snippets
24
+ - Learn: Meta-analyze your patterns and learn from your past experiences
25
+ - Derive: Keep the AI on course with your past decisions by automatically deriving rules from your AI interactions
26
+
27
+ ## Version Control
28
+
29
+ We recommend keeping this directory under version control to maintain a history of your AI interactions. However, if you prefer not to version these files, you can exclude them by adding this to your `.gitignore`:
30
+
31
+ ```
32
+ .specstory/**
33
+ ```
34
+
35
+ We recommend __not__ keeping the `.specstory/ai_rules_backups` directory under version control if you are already using git to version your AI rules, and committing regularly. You can exclude it by adding this to your `.gitignore`:
36
+
37
+ ```
38
+ .specstory/ai_rules_backups
39
+ ```
40
+
41
+ ## Searching Your Codebase
42
+
43
+ When searching your codebase, search results may include your previous AI coding interactions. To focus solely on your actual code files, you can exclude the AI interaction history from search results.
44
+
45
+ To exclude AI interaction history:
46
+
47
+ 1. Open the "Find in Files" search in Cursor or VSCode (Cmd/Ctrl + Shift + F)
48
+ 2. Navigate to the "files to exclude" section
49
+ 3. Add the following pattern:
50
+
51
+ ```
52
+ .specstory/*
53
+ ```
54
+
55
+ This will ensure your searches only return results from your working codebase files.
56
+
57
+ ## Notes
58
+
59
+ - Auto-save only works when Cursor or VSCode flushes sqlite database data to disk. This results in a small delay after the AI response is complete before SpecStory can save the history.
60
+
61
+ ## Settings
62
+
63
+ You can control auto-saving behavior in Cursor or VSCode:
64
+
65
+ 1. Open Cursor/Code → Settings → VS Code Settings (Cmd/Ctrl + ,)
66
+ 2. Search for "SpecStory"
67
+ 3. Find "Auto Save" setting to enable/disable
68
+
69
+ Auto-save occurs when changes are detected in the sqlite database, or every 2 minutes as a safety net.
@@ -0,0 +1,8 @@
1
+ import { z } from "@hono/zod-openapi";
2
+ export declare const FeedTagsSchema: z.ZodObject<{
3
+ userId: z.ZodCUID2;
4
+ tags: z.ZodArray<z.ZodString>;
5
+ }, z.core.$strip>;
6
+ export declare const FeedTagsInputSchema: z.ZodObject<{
7
+ tags: z.ZodArray<z.ZodString>;
8
+ }, z.core.$strip>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeedTagsInputSchema = exports.FeedTagsSchema = void 0;
4
+ const zod_openapi_1 = require("@hono/zod-openapi");
5
+ exports.FeedTagsSchema = zod_openapi_1.z.object({
6
+ userId: zod_openapi_1.z.cuid2(),
7
+ tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
8
+ });
9
+ exports.FeedTagsInputSchema = zod_openapi_1.z.object({
10
+ tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
11
+ });
@@ -16,3 +16,6 @@ export * from "./job";
16
16
  export * from "./job-application";
17
17
  export * from "./user-strike";
18
18
  export * from "./notification";
19
+ export * from "./feed";
20
+ export * from "./bookmark";
21
+ export * from "./like";
@@ -32,3 +32,6 @@ __exportStar(require("./job"), exports);
32
32
  __exportStar(require("./job-application"), exports);
33
33
  __exportStar(require("./user-strike"), exports);
34
34
  __exportStar(require("./notification"), exports);
35
+ __exportStar(require("./feed"), exports);
36
+ __exportStar(require("./bookmark"), exports);
37
+ __exportStar(require("./like"), exports);
@@ -9,7 +9,6 @@ const bookmark_1 = require("./bookmark");
9
9
  const view_1 = require("./view");
10
10
  const like_1 = require("./like");
11
11
  const user_1 = require("./user");
12
- /* ------------------------------ Core Entities ------------------------------ */
13
12
  exports.ProjectEntitySchema = zod_openapi_1.z
14
13
  .object({
15
14
  id: zod_openapi_1.z.string().openapi({
@@ -0,0 +1,4 @@
1
+ import z from "zod";
2
+ import { FeedTagsInputSchema, FeedTagsSchema } from "../schemas/feed";
3
+ export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
4
+ export type FeedTagsOutput = z.infer<typeof FeedTagsSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,7 @@
1
1
  export * from "./auth";
2
2
  export * from "./brand";
3
+ export * from "./bookmark";
4
+ export * from "./like";
3
5
  export * from "./common";
4
6
  export * from "./creative";
5
7
  export * from "./discipline";
@@ -10,6 +12,7 @@ export * from "./user";
10
12
  export * from "./comment";
11
13
  export * from "./username";
12
14
  export * from "./entity-stats";
15
+ export * from "./feed";
13
16
  export * from "./post";
14
17
  export * from "./job-application";
15
18
  export * from "./message";
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
18
  __exportStar(require("./brand"), exports);
19
+ __exportStar(require("./bookmark"), exports);
20
+ __exportStar(require("./like"), exports);
19
21
  __exportStar(require("./common"), exports);
20
22
  __exportStar(require("./creative"), exports);
21
23
  __exportStar(require("./discipline"), exports);
@@ -26,6 +28,7 @@ __exportStar(require("./user"), exports);
26
28
  __exportStar(require("./comment"), exports);
27
29
  __exportStar(require("./username"), exports);
28
30
  __exportStar(require("./entity-stats"), exports);
31
+ __exportStar(require("./feed"), exports);
29
32
  __exportStar(require("./post"), exports);
30
33
  __exportStar(require("./job-application"), exports);
31
34
  __exportStar(require("./message"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.48",
3
+ "version": "2.1.49",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,11 @@
1
+ import { z } from "@hono/zod-openapi";
2
+
3
+ export const FeedTagsSchema = z.object({
4
+ userId: z.cuid2(),
5
+ tags: z.array(z.string()),
6
+ });
7
+
8
+ export const FeedTagsInputSchema = z.object({
9
+ tags: z.array(z.string()),
10
+ });
11
+
@@ -16,3 +16,6 @@ export * from "./job";
16
16
  export * from "./job-application";
17
17
  export * from "./user-strike";
18
18
  export * from "./notification";
19
+ export * from "./feed";
20
+ export * from "./bookmark";
21
+ export * from "./like";
@@ -7,7 +7,6 @@ import { ViewEntitySchema } from "./view";
7
7
  import { LikeEntitySchema } from "./like";
8
8
  import { MinimalUserSchema } from "./user";
9
9
 
10
- /* ------------------------------ Core Entities ------------------------------ */
11
10
  export const ProjectEntitySchema = z
12
11
  .object({
13
12
  id: z.string().openapi({
@@ -0,0 +1,5 @@
1
+ import z from "zod";
2
+ import { FeedTagsInputSchema, FeedTagsSchema } from "../schemas/feed";
3
+
4
+ export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
5
+ export type FeedTagsOutput = z.infer<typeof FeedTagsSchema>;
@@ -1,5 +1,7 @@
1
1
  export * from "./auth";
2
2
  export * from "./brand";
3
+ export * from "./bookmark";
4
+ export * from "./like";
3
5
  export * from "./common";
4
6
  export * from "./creative";
5
7
  export * from "./discipline";
@@ -10,6 +12,7 @@ export * from "./user";
10
12
  export * from "./comment";
11
13
  export * from "./username";
12
14
  export * from "./entity-stats";
15
+ export * from "./feed";
13
16
  export * from "./post";
14
17
  export * from "./job-application";
15
18
  export * from "./message";