@agentrules/core 0.0.9 → 0.0.10

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/index.d.ts CHANGED
@@ -9,6 +9,8 @@ declare const platformIdSchema: z.ZodEnum<{
9
9
  }>;
10
10
  declare const titleSchema: z.ZodString;
11
11
  declare const descriptionSchema: z.ZodString;
12
+ declare const tagSchema: z.ZodString;
13
+ declare const tagsSchema: z.ZodArray<z.ZodString>;
12
14
  declare const slugSchema: z.ZodString;
13
15
  declare const COMMON_LICENSES: readonly ["MIT", "Apache-2.0", "GPL-3.0-only", "BSD-3-Clause", "ISC", "Unlicense"];
14
16
  type CommonLicense = (typeof COMMON_LICENSES)[number];
@@ -19,7 +21,7 @@ declare const presetConfigSchema: z.ZodObject<{
19
21
  title: z.ZodString;
20
22
  version: z.ZodOptional<z.ZodNumber>;
21
23
  description: z.ZodString;
22
- tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
+ tags: z.ZodArray<z.ZodString>;
23
25
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
26
  license: z.ZodString;
25
27
  platform: z.ZodEnum<{
@@ -72,6 +74,7 @@ declare const presetPublishInputSchema: z.ZodObject<{
72
74
  declare const presetBundleSchema: z.ZodObject<{
73
75
  title: z.ZodString;
74
76
  description: z.ZodString;
77
+ tags: z.ZodArray<z.ZodString>;
75
78
  license: z.ZodString;
76
79
  platform: z.ZodEnum<{
77
80
  opencode: "opencode";
@@ -79,7 +82,6 @@ declare const presetBundleSchema: z.ZodObject<{
79
82
  claude: "claude";
80
83
  cursor: "cursor";
81
84
  }>;
82
- tags: z.ZodArray<z.ZodString>;
83
85
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
86
  slug: z.ZodString;
85
87
  licenseContent: z.ZodOptional<z.ZodString>;
@@ -96,6 +98,7 @@ declare const presetBundleSchema: z.ZodObject<{
96
98
  declare const presetSchema: z.ZodObject<{
97
99
  title: z.ZodString;
98
100
  description: z.ZodString;
101
+ tags: z.ZodArray<z.ZodString>;
99
102
  license: z.ZodString;
100
103
  platform: z.ZodEnum<{
101
104
  opencode: "opencode";
@@ -104,7 +107,6 @@ declare const presetSchema: z.ZodObject<{
104
107
  cursor: "cursor";
105
108
  }>;
106
109
  version: z.ZodString;
107
- tags: z.ZodArray<z.ZodString>;
108
110
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
109
111
  slug: z.ZodString;
110
112
  name: z.ZodString;
@@ -115,6 +117,7 @@ declare const presetSchema: z.ZodObject<{
115
117
  declare const presetIndexSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
116
118
  title: z.ZodString;
117
119
  description: z.ZodString;
120
+ tags: z.ZodArray<z.ZodString>;
118
121
  license: z.ZodString;
119
122
  platform: z.ZodEnum<{
120
123
  opencode: "opencode";
@@ -123,7 +126,6 @@ declare const presetIndexSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
123
126
  cursor: "cursor";
124
127
  }>;
125
128
  version: z.ZodString;
126
- tags: z.ZodArray<z.ZodString>;
127
129
  features: z.ZodOptional<z.ZodArray<z.ZodString>>;
128
130
  slug: z.ZodString;
129
131
  name: z.ZodString;
@@ -395,4 +397,4 @@ declare function toUint8Array(payload: ArrayBuffer | ArrayBufferView): Uint8Arra
395
397
  declare function normalizeBundlePath(value: string): string;
396
398
 
397
399
  //#endregion
398
- export { AGENT_RULES_DIR, API_ENDPOINTS, BuildPresetPublishInputOptions, BuildPresetRegistryOptions, BuildPresetRegistryResult, BundledFile, COMMON_LICENSES, CommonLicense, DiffPreviewOptions, LATEST_VERSION, PLATFORMS, PLATFORM_IDS, PLATFORM_ID_TUPLE, PRESET_CONFIG_FILENAME, PRESET_SCHEMA_URL, PlatformConfig, PlatformId, Preset, PresetBundle, PresetConfig, PresetFileInput, PresetIndex, PresetInput, PresetPublishInput, ResolvedPreset, STATIC_BUNDLE_DIR, buildPresetPublishInput, buildPresetRegistry, bundledFileSchema, cleanInstallMessage, createDiffPreview, decodeBundledFile, decodeUtf8, descriptionSchema, encodeItemName, encodeUtf8, fetchBundle, getPlatformFromDir, isLikelyText, isPlatformDir, isSupportedPlatform, licenseSchema, normalizeBundlePath, normalizePlatformInput, platformIdSchema, presetBundleSchema, presetConfigSchema, presetIndexSchema, presetPublishInputSchema, presetSchema, resolvePreset, slugSchema, titleSchema, toPosixPath, toUint8Array, toUtf8String, validatePresetConfig, verifyBundledFileChecksum };
400
+ export { AGENT_RULES_DIR, API_ENDPOINTS, BuildPresetPublishInputOptions, BuildPresetRegistryOptions, BuildPresetRegistryResult, BundledFile, COMMON_LICENSES, CommonLicense, DiffPreviewOptions, LATEST_VERSION, PLATFORMS, PLATFORM_IDS, PLATFORM_ID_TUPLE, PRESET_CONFIG_FILENAME, PRESET_SCHEMA_URL, PlatformConfig, PlatformId, Preset, PresetBundle, PresetConfig, PresetFileInput, PresetIndex, PresetInput, PresetPublishInput, ResolvedPreset, STATIC_BUNDLE_DIR, buildPresetPublishInput, buildPresetRegistry, bundledFileSchema, cleanInstallMessage, createDiffPreview, decodeBundledFile, decodeUtf8, descriptionSchema, encodeItemName, encodeUtf8, fetchBundle, getPlatformFromDir, isLikelyText, isPlatformDir, isSupportedPlatform, licenseSchema, normalizeBundlePath, normalizePlatformInput, platformIdSchema, presetBundleSchema, presetConfigSchema, presetIndexSchema, presetPublishInputSchema, presetSchema, resolvePreset, slugSchema, tagSchema, tagsSchema, titleSchema, toPosixPath, toUint8Array, toUtf8String, validatePresetConfig, verifyBundledFileChecksum };
package/dist/index.js CHANGED
@@ -154,7 +154,7 @@ const presetConfigSchema = z.object({
154
154
  title: titleSchema,
155
155
  version: majorVersionSchema.optional(),
156
156
  description: descriptionSchema,
157
- tags: tagsSchema.optional(),
157
+ tags: tagsSchema,
158
158
  features: featuresSchema.optional(),
159
159
  license: licenseSchema,
160
160
  platform: platformIdSchema,
@@ -495,4 +495,4 @@ function normalizeBundlePath(value) {
495
495
  }
496
496
 
497
497
  //#endregion
498
- export { AGENT_RULES_DIR, API_ENDPOINTS, COMMON_LICENSES, LATEST_VERSION, PLATFORMS, PLATFORM_IDS, PLATFORM_ID_TUPLE, PRESET_CONFIG_FILENAME, PRESET_SCHEMA_URL, STATIC_BUNDLE_DIR, buildPresetPublishInput, buildPresetRegistry, bundledFileSchema, cleanInstallMessage, createDiffPreview, decodeBundledFile, decodeUtf8, descriptionSchema, encodeItemName, encodeUtf8, fetchBundle, getPlatformFromDir, isLikelyText, isPlatformDir, isSupportedPlatform, licenseSchema, normalizeBundlePath, normalizePlatformInput, platformIdSchema, presetBundleSchema, presetConfigSchema, presetIndexSchema, presetPublishInputSchema, presetSchema, resolvePreset, slugSchema, titleSchema, toPosixPath, toUint8Array, toUtf8String, validatePresetConfig, verifyBundledFileChecksum };
498
+ export { AGENT_RULES_DIR, API_ENDPOINTS, COMMON_LICENSES, LATEST_VERSION, PLATFORMS, PLATFORM_IDS, PLATFORM_ID_TUPLE, PRESET_CONFIG_FILENAME, PRESET_SCHEMA_URL, STATIC_BUNDLE_DIR, buildPresetPublishInput, buildPresetRegistry, bundledFileSchema, cleanInstallMessage, createDiffPreview, decodeBundledFile, decodeUtf8, descriptionSchema, encodeItemName, encodeUtf8, fetchBundle, getPlatformFromDir, isLikelyText, isPlatformDir, isSupportedPlatform, licenseSchema, normalizeBundlePath, normalizePlatformInput, platformIdSchema, presetBundleSchema, presetConfigSchema, presetIndexSchema, presetPublishInputSchema, presetSchema, resolvePreset, slugSchema, tagSchema, tagsSchema, titleSchema, toPosixPath, toUint8Array, toUtf8String, validatePresetConfig, verifyBundledFileChecksum };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentrules/core",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "author": "Brian Cheung <bcheung.dev@gmail.com> (https://github.com/bcheung)",
5
5
  "license": "MIT",
6
6
  "homepage": "https://agentrules.directory",