@zyacreatives/shared 2.1.63 → 2.1.65
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/dist/schemas/user.d.ts +12 -0
- package/dist/schemas/user.js +8 -2
- package/package.json +1 -1
- package/src/schemas/user.ts +12 -2
- package/.specstory/.project.json +0 -6
- package/.specstory/.what-is-this.md +0 -69
package/dist/schemas/user.d.ts
CHANGED
|
@@ -316,6 +316,8 @@ export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
|
|
316
316
|
INVESTOR: "INVESTOR";
|
|
317
317
|
ADMIN: "ADMIN";
|
|
318
318
|
}>;
|
|
319
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
320
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
319
321
|
}, z.core.$strip>>;
|
|
320
322
|
}, z.core.$strip>;
|
|
321
323
|
export declare const UserWithFollowersEntitySchema: z.ZodObject<{
|
|
@@ -342,6 +344,8 @@ export declare const UserWithFollowersEntitySchema: z.ZodObject<{
|
|
|
342
344
|
INVESTOR: "INVESTOR";
|
|
343
345
|
ADMIN: "ADMIN";
|
|
344
346
|
}>;
|
|
347
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
348
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
345
349
|
}, z.core.$strip>>;
|
|
346
350
|
}, z.core.$strip>;
|
|
347
351
|
export declare const UserWithPostsEntitySchema: z.ZodObject<{
|
|
@@ -426,6 +430,8 @@ export declare const GetUserFollowingOutputSchema: z.ZodObject<{
|
|
|
426
430
|
INVESTOR: "INVESTOR";
|
|
427
431
|
ADMIN: "ADMIN";
|
|
428
432
|
}>;
|
|
433
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
434
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
429
435
|
}, z.core.$strip>>;
|
|
430
436
|
}, z.core.$strip>;
|
|
431
437
|
}, z.core.$strip>;
|
|
@@ -454,6 +460,8 @@ export declare const GetUserFollowersOutputSchema: z.ZodObject<{
|
|
|
454
460
|
INVESTOR: "INVESTOR";
|
|
455
461
|
ADMIN: "ADMIN";
|
|
456
462
|
}>;
|
|
463
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
464
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
457
465
|
}, z.core.$strip>>;
|
|
458
466
|
}, z.core.$strip>;
|
|
459
467
|
}, z.core.$strip>;
|
|
@@ -722,6 +730,8 @@ export declare const GetAuthenticatedUserWithUserFollowingOutputSchema: z.ZodObj
|
|
|
722
730
|
INVESTOR: "INVESTOR";
|
|
723
731
|
ADMIN: "ADMIN";
|
|
724
732
|
}>;
|
|
733
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
734
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
725
735
|
}, z.core.$strip>>;
|
|
726
736
|
}, z.core.$strip>;
|
|
727
737
|
export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObject<{
|
|
@@ -748,6 +758,8 @@ export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObj
|
|
|
748
758
|
INVESTOR: "INVESTOR";
|
|
749
759
|
ADMIN: "ADMIN";
|
|
750
760
|
}>;
|
|
761
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
762
|
+
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
751
763
|
}, z.core.$strip>>;
|
|
752
764
|
}, z.core.$strip>;
|
|
753
765
|
export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObject<{
|
package/dist/schemas/user.js
CHANGED
|
@@ -108,12 +108,18 @@ exports.GetUserFollowersInputSchema = zod_openapi_1.z.object({
|
|
|
108
108
|
});
|
|
109
109
|
exports.UserWithFollowingEntitySchema = exports.MinimalUserSchema.extend({
|
|
110
110
|
following: zod_openapi_1.z
|
|
111
|
-
.array(exports.MinimalUserSchema
|
|
111
|
+
.array(exports.MinimalUserSchema.extend({
|
|
112
|
+
isFollowing: zod_openapi_1.z.boolean().optional(),
|
|
113
|
+
followsYou: zod_openapi_1.z.boolean().optional(),
|
|
114
|
+
}))
|
|
112
115
|
.openapi({ description: "List of users this user is following." }),
|
|
113
116
|
}).openapi("UserWithFollowingEntity");
|
|
114
117
|
exports.UserWithFollowersEntitySchema = exports.MinimalUserSchema.extend({
|
|
115
118
|
followers: zod_openapi_1.z
|
|
116
|
-
.array(exports.MinimalUserSchema
|
|
119
|
+
.array(exports.MinimalUserSchema.extend({
|
|
120
|
+
isFollowing: zod_openapi_1.z.boolean().optional(),
|
|
121
|
+
followsYou: zod_openapi_1.z.boolean().optional(),
|
|
122
|
+
}))
|
|
117
123
|
.openapi({ description: "List of users who follow this user." }),
|
|
118
124
|
}).openapi("UserWithFollowersEntity");
|
|
119
125
|
exports.UserWithPostsEntitySchema = zod_openapi_1.z
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -137,13 +137,23 @@ export const GetUserFollowersInputSchema = z.object({
|
|
|
137
137
|
});
|
|
138
138
|
export const UserWithFollowingEntitySchema = MinimalUserSchema.extend({
|
|
139
139
|
following: z
|
|
140
|
-
.array(
|
|
140
|
+
.array(
|
|
141
|
+
MinimalUserSchema.extend({
|
|
142
|
+
isFollowing: z.boolean().optional(),
|
|
143
|
+
followsYou: z.boolean().optional(),
|
|
144
|
+
}),
|
|
145
|
+
)
|
|
141
146
|
.openapi({ description: "List of users this user is following." }),
|
|
142
147
|
}).openapi("UserWithFollowingEntity");
|
|
143
148
|
|
|
144
149
|
export const UserWithFollowersEntitySchema = MinimalUserSchema.extend({
|
|
145
150
|
followers: z
|
|
146
|
-
.array(
|
|
151
|
+
.array(
|
|
152
|
+
MinimalUserSchema.extend({
|
|
153
|
+
isFollowing: z.boolean().optional(),
|
|
154
|
+
followsYou: z.boolean().optional(),
|
|
155
|
+
}),
|
|
156
|
+
)
|
|
147
157
|
.openapi({ description: "List of users who follow this user." }),
|
|
148
158
|
}).openapi("UserWithFollowersEntity");
|
|
149
159
|
|
package/.specstory/.project.json
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
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.
|