@singi-labs/sifa-sdk 0.11.8 → 0.11.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.cts CHANGED
@@ -287,12 +287,18 @@ declare const APP_CATEGORIES: {
287
287
  readonly 'Q&A': {
288
288
  readonly phosphorIcon: "Question";
289
289
  };
290
+ readonly Recipes: {
291
+ readonly phosphorIcon: "CookingPot";
292
+ };
290
293
  readonly Research: {
291
294
  readonly phosphorIcon: "Path";
292
295
  };
293
296
  readonly Reviews: {
294
297
  readonly phosphorIcon: "Star";
295
298
  };
299
+ readonly Slides: {
300
+ readonly phosphorIcon: "Presentation";
301
+ };
296
302
  readonly Social: {
297
303
  readonly phosphorIcon: "UsersThree";
298
304
  };
@@ -370,10 +376,13 @@ declare const APP_CATEGORY_MAP: {
370
376
  readonly streamthought: "Posts";
371
377
  readonly waow: "Photos";
372
378
  readonly lichen: "Pages";
379
+ readonly aetherdocs: "Slides";
380
+ readonly kich: "Recipes";
381
+ readonly margin: "Research";
382
+ readonly recipe: "Recipes";
373
383
  readonly linkat: "Links";
374
384
  readonly kipclip: "Links";
375
385
  readonly statusphere: "Social";
376
- readonly margin: "Research";
377
386
  };
378
387
  type KnownAppId = keyof typeof APP_CATEGORY_MAP;
379
388
  declare function isKnownAppId(appId: string): appId is KnownAppId;
package/dist/index.d.ts CHANGED
@@ -287,12 +287,18 @@ declare const APP_CATEGORIES: {
287
287
  readonly 'Q&A': {
288
288
  readonly phosphorIcon: "Question";
289
289
  };
290
+ readonly Recipes: {
291
+ readonly phosphorIcon: "CookingPot";
292
+ };
290
293
  readonly Research: {
291
294
  readonly phosphorIcon: "Path";
292
295
  };
293
296
  readonly Reviews: {
294
297
  readonly phosphorIcon: "Star";
295
298
  };
299
+ readonly Slides: {
300
+ readonly phosphorIcon: "Presentation";
301
+ };
296
302
  readonly Social: {
297
303
  readonly phosphorIcon: "UsersThree";
298
304
  };
@@ -370,10 +376,13 @@ declare const APP_CATEGORY_MAP: {
370
376
  readonly streamthought: "Posts";
371
377
  readonly waow: "Photos";
372
378
  readonly lichen: "Pages";
379
+ readonly aetherdocs: "Slides";
380
+ readonly kich: "Recipes";
381
+ readonly margin: "Research";
382
+ readonly recipe: "Recipes";
373
383
  readonly linkat: "Links";
374
384
  readonly kipclip: "Links";
375
385
  readonly statusphere: "Social";
376
- readonly margin: "Research";
377
386
  };
378
387
  type KnownAppId = keyof typeof APP_CATEGORY_MAP;
379
388
  declare function isKnownAppId(appId: string): appId is KnownAppId;
package/dist/index.js CHANGED
@@ -909,8 +909,10 @@ var APP_CATEGORIES = {
909
909
  Places: { phosphorIcon: "MapPin" },
910
910
  Posts: { phosphorIcon: "ChatCircle" },
911
911
  "Q&A": { phosphorIcon: "Question" },
912
+ Recipes: { phosphorIcon: "CookingPot" },
912
913
  Research: { phosphorIcon: "Path" },
913
914
  Reviews: { phosphorIcon: "Star" },
915
+ Slides: { phosphorIcon: "Presentation" },
914
916
  Social: { phosphorIcon: "UsersThree" },
915
917
  Verification: { phosphorIcon: "Key" },
916
918
  Video: { phosphorIcon: "VideoCamera" }
@@ -1002,12 +1004,21 @@ var APP_CATEGORY_MAP = {
1002
1004
  // tech.waow.* — doodl drawings (dominant), polls, slides
1003
1005
  lichen: "Pages",
1004
1006
  // wiki.lichen — wiki notes + wikis
1007
+ // Onboard from aramzs.xyz profile audit — new named pills.
1008
+ aetherdocs: "Slides",
1009
+ // os.aether.docs.presentation — authored slide decks
1010
+ kich: "Recipes",
1011
+ // io.kich.recipe.recipe — authored recipes
1012
+ margin: "Research",
1013
+ // at.margin.{note,annotation} — web-annotation notes with a body
1014
+ // Onboard from moll.dev profile audit.
1015
+ recipe: "Recipes",
1016
+ // exchange.recipe.recipe — authored recipes on recipe.exchange
1005
1017
  // Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
1006
1018
  // no backend scan collection yet)
1007
1019
  linkat: "Links",
1008
1020
  kipclip: "Links",
1009
- statusphere: "Social",
1010
- margin: "Research"
1021
+ statusphere: "Social"
1011
1022
  };
1012
1023
  function isKnownAppId(appId) {
1013
1024
  return Object.prototype.hasOwnProperty.call(APP_CATEGORY_MAP, appId);
@@ -1945,6 +1956,26 @@ var APP_URL_PATTERNS = Object.freeze({
1945
1956
  // /r/{handle}/{rkey} and /u/{handle} both return 200.
1946
1957
  urlPattern: "https://atcr.io/r/{handle}/{rkey}",
1947
1958
  profileUrlPattern: "https://atcr.io/u/{handle}"
1959
+ },
1960
+ kich: {
1961
+ // Kich recipe viewer. Verified: GET /recipes/{rkey} returns 200 (the SPA
1962
+ // renders the recipe by rkey); /recipe/{rkey} 404s. No public per-handle
1963
+ // profile page, so the profile fallback points at the app root.
1964
+ urlPattern: "https://kich.io/recipes/{rkey}",
1965
+ profileUrlPattern: "https://kich.io"
1966
+ },
1967
+ recipe: {
1968
+ // recipe.exchange viewer. Verified: GET /recipes/{rkey} returns 200 (rkey
1969
+ // alone; no did needed) and /profiles/{handle} returns 200 for the author
1970
+ // page. /recipe/{rkey} 404s.
1971
+ urlPattern: "https://recipe.exchange/recipes/{rkey}",
1972
+ profileUrlPattern: "https://recipe.exchange/profiles/{handle}"
1973
+ },
1974
+ aetherdocs: {
1975
+ // Aether OS is a browser OS — presentations open inside it and there's no
1976
+ // public per-record viewer. The card embeds the deck from the record; the
1977
+ // outbound link points at the author's Aether OS space (mirrors aetheros).
1978
+ profileUrlPattern: "https://aetheros.computer/{handle}"
1948
1979
  }
1949
1980
  });
1950
1981
  var COLLECTION_TO_APP = [
@@ -2007,7 +2038,12 @@ var COLLECTION_TO_APP = [
2007
2038
  ["st.lifepo.", "lifepo"],
2008
2039
  ["stream.thought.", "streamthought"],
2009
2040
  ["tech.waow.", "waow"],
2010
- ["wiki.lichen.", "lichen"]
2041
+ ["wiki.lichen.", "lichen"],
2042
+ // Onboard from aramzs.xyz profile audit.
2043
+ ["os.aether.", "aetherdocs"],
2044
+ ["io.kich.recipe.recipe", "kich"],
2045
+ // Onboard from moll.dev profile audit.
2046
+ ["exchange.recipe.recipe", "recipe"]
2011
2047
  ];
2012
2048
 
2013
2049
  // src/cards/resolve-card-url.ts
@@ -2079,7 +2115,7 @@ function resolveCardUrl(item) {
2079
2115
  if (source) return source;
2080
2116
  return null;
2081
2117
  }
2082
- if (collection === "at.margin.annotation") {
2118
+ if (collection === "at.margin.annotation" || collection === "at.margin.note") {
2083
2119
  const target = record.target;
2084
2120
  if (target != null && typeof target === "object") {
2085
2121
  const source = stringOrNull(target.source);
@@ -2144,6 +2180,12 @@ function resolveCardUrl(item) {
2144
2180
  if (siteUrl && path) return `${siteUrl}${path}`;
2145
2181
  if (siteUrl) return siteUrl;
2146
2182
  }
2183
+ if (collection === "io.kich.recipe.recipe") {
2184
+ return patternUrl("kich", { handle: authorHandle, did: authorDid, rkey }, collection);
2185
+ }
2186
+ if (collection === "exchange.recipe.recipe") {
2187
+ return patternUrl("recipe", { handle: authorHandle, did: authorDid, rkey }, collection);
2188
+ }
2147
2189
  const recordUrl = stringOrNull(record.url);
2148
2190
  if (recordUrl) return recordUrl;
2149
2191
  return patternUrl(appId, { handle: authorHandle, did: authorDid, rkey }, collection);
@@ -2642,7 +2684,7 @@ var ProfileVolunteeringRecordSchema = z.object({
2642
2684
  });
2643
2685
 
2644
2686
  // src/index.ts
2645
- var SIFA_SDK_VERSION = "0.11.8";
2687
+ var SIFA_SDK_VERSION = "0.11.10";
2646
2688
 
2647
2689
  export { ACTIVITY_TIERS, ACTIVITY_VISIBILITY_RULES, ADULT_CONTENT_LABELS, APP_CATEGORIES, APP_CATEGORY_IDS, APP_CATEGORY_MAP, APP_URL_PATTERNS, AtmosphereFeedItemSchema, CALENDAR_EVENT_MODE_LABELS, CALENDAR_EVENT_STATUS_LABELS, CATEGORY_LABELS, CATEGORY_ORDER, COLLECTION_TO_APP, COMPANY_OPTIONAL_EMPLOYMENT_TYPES, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, DIMENSIONS_MAX_SCORE, EMPLOYMENT_TYPE_GROUPS, EMPLOYMENT_TYPE_LABELS, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, FEATURE_FLAGS, FeatureAllowlistEntrySchema, FeedActorSchema, FollowFeedItemSchema, FollowFeedPageSchema, FollowProfilePageSchema, FollowProfileSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, MIN_SKILLS, OPEN_TO_OPTIONS, OPEN_TO_TOKENS, OPEN_TO_TOKEN_TO_VALUE, OPEN_TO_VALUE_TO_TOKEN, PLATFORM_LABELS, PLATFORM_OPTIONS, PRESENTATION_LINK_TYPE_LABELS, PRESENTATION_LINK_TYPE_OPTIONS, PRESENTATION_ROLE_LABELS, PRESENTATION_ROLE_OPTIONS, PUBLISHERS, PresentationDurationSchema, PresentationLinkSchema, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfilePresentationDeliveryRecordSchema, ProfilePresentationRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, STANDARD_PUBLISHER_ID, SifaFeedItemSchema, WORKPLACE_TYPE_LABELS, WORKPLACE_TYPE_OPTIONS, atUriSchema, categoryForApp, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countFilledDimensions, countryCodeToFlag, dateRangeExtractor, datetimeSchema, decodeFeedCursor, dedupeSkills, detectPdsProvider, didSchema, dimensionsFromInputs, durationFromMinutes, encodeFeedCursor, externalRecordRefSchema, findIndustry, formatDistanceToNow, formatLocation, formatPresentationDuration, formatRelativeTime, getActivityTaxonomyVersion, getActivityTier, getAppCategoryIcon, getAppIdForCollection, getCalendarEventModeLabel, getCalendarEventStatusLabel, getContinent, getDisplayLabel, getEmploymentTypeLabel, getFaviconUrl, getFilledDimensionsMap, getHandleStem, getIndustryLabelKey, getLexiconEntry, getOpenToLabelKey, getPdsDisplayName, getPlatformLabel, getPresentationLinkTypeLabel, getPresentationRoleLabel, getPublisherByHost, getPublisherById, getPublisherFromSiteUrl, getTierMeta, getWorkplaceTypeLabel, groupSkillsByCategory, hasAdultContent, isAppCategory, isCompanyRequired, isKnownAppId, isKnownPlatform, isValidRgbColor, isVisibleActivityItem, languageTagSchema, lexiconDateExtractor, limitCombiningMarks, makeGraphFollowRecordSchema, maxGraphemes, meetsContrastAA, normalizeOpenTo, normalizePlatformId, normalizePresentationMode, normalizePresentationRole, normalizeWorkplaceTypes, openToTokenToValue, openToValueToToken, parseIntendedAudiences, parseLocationString, parsePresentationDuration, pdsProviderFromApi, pickPrimaryPosition, presentationCsvRowToRecord, presentationDeliveryCsvRowToRecord, profileToDimensionInputs, relativeLuminance, resolveCardUrl, rgbToString, sanitizeDisplayText, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, stripHtmlToText, strongRefSchema, summarizePresentationDeliveries, truncateGraphemes, uriSchema };
2648
2690
  //# sourceMappingURL=index.js.map