@singi-labs/sifa-sdk 0.11.8 → 0.11.9

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.cjs CHANGED
@@ -911,8 +911,10 @@ var APP_CATEGORIES = {
911
911
  Places: { phosphorIcon: "MapPin" },
912
912
  Posts: { phosphorIcon: "ChatCircle" },
913
913
  "Q&A": { phosphorIcon: "Question" },
914
+ Recipes: { phosphorIcon: "CookingPot" },
914
915
  Research: { phosphorIcon: "Path" },
915
916
  Reviews: { phosphorIcon: "Star" },
917
+ Slides: { phosphorIcon: "Presentation" },
916
918
  Social: { phosphorIcon: "UsersThree" },
917
919
  Verification: { phosphorIcon: "Key" },
918
920
  Video: { phosphorIcon: "VideoCamera" }
@@ -1004,12 +1006,18 @@ var APP_CATEGORY_MAP = {
1004
1006
  // tech.waow.* — doodl drawings (dominant), polls, slides
1005
1007
  lichen: "Pages",
1006
1008
  // wiki.lichen — wiki notes + wikis
1009
+ // Onboard from aramzs.xyz profile audit — new named pills.
1010
+ aetherdocs: "Slides",
1011
+ // os.aether.docs.presentation — authored slide decks
1012
+ kich: "Recipes",
1013
+ // io.kich.recipe.recipe — authored recipes
1014
+ margin: "Research",
1015
+ // at.margin.{note,annotation} — web-annotation notes with a body
1007
1016
  // Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
1008
1017
  // no backend scan collection yet)
1009
1018
  linkat: "Links",
1010
1019
  kipclip: "Links",
1011
- statusphere: "Social",
1012
- margin: "Research"
1020
+ statusphere: "Social"
1013
1021
  };
1014
1022
  function isKnownAppId(appId) {
1015
1023
  return Object.prototype.hasOwnProperty.call(APP_CATEGORY_MAP, appId);
@@ -1947,6 +1955,19 @@ var APP_URL_PATTERNS = Object.freeze({
1947
1955
  // /r/{handle}/{rkey} and /u/{handle} both return 200.
1948
1956
  urlPattern: "https://atcr.io/r/{handle}/{rkey}",
1949
1957
  profileUrlPattern: "https://atcr.io/u/{handle}"
1958
+ },
1959
+ kich: {
1960
+ // Kich recipe viewer. Verified: GET /recipes/{rkey} returns 200 (the SPA
1961
+ // renders the recipe by rkey); /recipe/{rkey} 404s. No public per-handle
1962
+ // profile page, so the profile fallback points at the app root.
1963
+ urlPattern: "https://kich.io/recipes/{rkey}",
1964
+ profileUrlPattern: "https://kich.io"
1965
+ },
1966
+ aetherdocs: {
1967
+ // Aether OS is a browser OS — presentations open inside it and there's no
1968
+ // public per-record viewer. The card embeds the deck from the record; the
1969
+ // outbound link points at the author's Aether OS space (mirrors aetheros).
1970
+ profileUrlPattern: "https://aetheros.computer/{handle}"
1950
1971
  }
1951
1972
  });
1952
1973
  var COLLECTION_TO_APP = [
@@ -2009,7 +2030,10 @@ var COLLECTION_TO_APP = [
2009
2030
  ["st.lifepo.", "lifepo"],
2010
2031
  ["stream.thought.", "streamthought"],
2011
2032
  ["tech.waow.", "waow"],
2012
- ["wiki.lichen.", "lichen"]
2033
+ ["wiki.lichen.", "lichen"],
2034
+ // Onboard from aramzs.xyz profile audit.
2035
+ ["os.aether.", "aetherdocs"],
2036
+ ["io.kich.recipe.recipe", "kich"]
2013
2037
  ];
2014
2038
 
2015
2039
  // src/cards/resolve-card-url.ts
@@ -2081,7 +2105,7 @@ function resolveCardUrl(item) {
2081
2105
  if (source) return source;
2082
2106
  return null;
2083
2107
  }
2084
- if (collection === "at.margin.annotation") {
2108
+ if (collection === "at.margin.annotation" || collection === "at.margin.note") {
2085
2109
  const target = record.target;
2086
2110
  if (target != null && typeof target === "object") {
2087
2111
  const source = stringOrNull(target.source);
@@ -2146,6 +2170,9 @@ function resolveCardUrl(item) {
2146
2170
  if (siteUrl && path) return `${siteUrl}${path}`;
2147
2171
  if (siteUrl) return siteUrl;
2148
2172
  }
2173
+ if (collection === "io.kich.recipe.recipe") {
2174
+ return patternUrl("kich", { handle: authorHandle, did: authorDid, rkey }, collection);
2175
+ }
2149
2176
  const recordUrl = stringOrNull(record.url);
2150
2177
  if (recordUrl) return recordUrl;
2151
2178
  return patternUrl(appId, { handle: authorHandle, did: authorDid, rkey }, collection);
@@ -2644,7 +2671,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
2644
2671
  });
2645
2672
 
2646
2673
  // src/index.ts
2647
- var SIFA_SDK_VERSION = "0.11.8";
2674
+ var SIFA_SDK_VERSION = "0.11.9";
2648
2675
 
2649
2676
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
2650
2677
  exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;