@danieldeusing/seedr 0.1.88 → 0.1.89

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.
@@ -34,6 +34,25 @@ function canonicalAgents(values) {
34
34
  return CANONICAL_AGENTS.filter((a) => present.has(a));
35
35
  }
36
36
 
37
+ // ../registry-ops/src/sourceTypes.ts
38
+ var CANONICAL_SOURCE_TYPES = ["official", "seedr", "community"];
39
+ var SOURCE_TYPE_ALIASES = { toolr: "seedr" };
40
+ var KNOWN_SOURCE_TYPES = [...CANONICAL_SOURCE_TYPES, ...Object.keys(SOURCE_TYPE_ALIASES)];
41
+ function isCanonicalSourceType(value) {
42
+ return typeof value === "string" && CANONICAL_SOURCE_TYPES.includes(value);
43
+ }
44
+ function isLegacySourceType(value) {
45
+ return typeof value === "string" && Object.hasOwn(SOURCE_TYPE_ALIASES, value);
46
+ }
47
+ function canonicalSourceType(value) {
48
+ if (isCanonicalSourceType(value)) return value;
49
+ if (isLegacySourceType(value)) return SOURCE_TYPE_ALIASES[value];
50
+ return null;
51
+ }
52
+ function isFirstParty(sourceType) {
53
+ return canonicalSourceType(sourceType) === "seedr";
54
+ }
55
+
37
56
  // src/utils/slug.ts
38
57
  var SLUG_PATTERN2 = /^[a-z0-9][a-z0-9-]*$/;
39
58
  var MAX_SLUG_LENGTH2 = 100;
@@ -520,7 +539,7 @@ async function getItemFull(item) {
520
539
  return JSON.parse(content);
521
540
  }
522
541
  function getItemBaseUrl(item) {
523
- if (item.sourceType === "toolr") {
542
+ if (isFirstParty(item.sourceType)) {
524
543
  assertValidSlug(item.slug);
525
544
  const typeDir = typeDirName(item.type);
526
545
  return {
@@ -567,7 +586,7 @@ async function fetchItemFile(item, relativePath) {
567
586
  return fetchRemote(`${remote}/${relativePath}`);
568
587
  }
569
588
  function getItemSourcePath(item) {
570
- if (item.sourceType !== "toolr") {
589
+ if (!isFirstParty(item.sourceType)) {
571
590
  return null;
572
591
  }
573
592
  if (!REGISTRY_PATH) {
@@ -628,7 +647,7 @@ async function downloadFileSet(location, fileSet, stagingDir) {
628
647
  async function fetchItemToDestination(item, destPath) {
629
648
  const location = getItemBaseUrl(item);
630
649
  const fileSet = await resolveFileSet(item);
631
- if (fileSet.digest === null && item.sourceType !== "toolr") {
650
+ if (fileSet.digest === null && !isFirstParty(item.sourceType)) {
632
651
  throw integrityError(item, "the registry entry carries no contentDigest; refusing to install unverifiable content");
633
652
  }
634
653
  await mkdir2(dirname2(destPath), { recursive: true });
package/dist/cli.js CHANGED
@@ -56,7 +56,7 @@ import {
56
56
  warn,
57
57
  writeFileAtomic,
58
58
  writeTextFile
59
- } from "./chunk-WJEBBHTL.js";
59
+ } from "./chunk-JC6HFAZU.js";
60
60
 
61
61
  // src/cli.ts
62
62
  import { Command as Command5 } from "commander";
@@ -143,7 +143,7 @@ function isTelemetryDisabled(env = process.env) {
143
143
  return env[TELEMETRY_OPT_OUT_VARIABLE] !== void 0;
144
144
  }
145
145
  function cliVersion() {
146
- return true ? "0.1.88" : "dev";
146
+ return true ? "0.1.89" : "dev";
147
147
  }
148
148
  async function sendEvent(event) {
149
149
  try {
@@ -2096,7 +2096,7 @@ var initCommand = new Command4("init").description("Initialize coding agent conf
2096
2096
  // package.json
2097
2097
  var package_default = {
2098
2098
  name: "@danieldeusing/seedr",
2099
- version: "0.1.88",
2099
+ version: "0.1.89",
2100
2100
  description: "Seed your projects with AI configurations",
2101
2101
  type: "module",
2102
2102
  bin: {
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  loadManifest,
16
16
  searchItems,
17
17
  uninstallSkill
18
- } from "./chunk-WJEBBHTL.js";
18
+ } from "./chunk-JC6HFAZU.js";
19
19
  export {
20
20
  ALL_AGENTS,
21
21
  CODING_AGENTS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danieldeusing/seedr",
3
- "version": "0.1.88",
3
+ "version": "0.1.89",
4
4
  "description": "Seed your projects with AI configurations",
5
5
  "type": "module",
6
6
  "bin": {