@singi-labs/sifa-sdk 0.11.9 → 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.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1013,6 +1013,9 @@ var APP_CATEGORY_MAP = {
|
|
|
1013
1013
|
// io.kich.recipe.recipe — authored recipes
|
|
1014
1014
|
margin: "Research",
|
|
1015
1015
|
// at.margin.{note,annotation} — web-annotation notes with a body
|
|
1016
|
+
// Onboard from moll.dev profile audit.
|
|
1017
|
+
recipe: "Recipes",
|
|
1018
|
+
// exchange.recipe.recipe — authored recipes on recipe.exchange
|
|
1016
1019
|
// Web-only (rendered in pills/cards via sifa-web atproto-apps.ts;
|
|
1017
1020
|
// no backend scan collection yet)
|
|
1018
1021
|
linkat: "Links",
|
|
@@ -1963,6 +1966,13 @@ var APP_URL_PATTERNS = Object.freeze({
|
|
|
1963
1966
|
urlPattern: "https://kich.io/recipes/{rkey}",
|
|
1964
1967
|
profileUrlPattern: "https://kich.io"
|
|
1965
1968
|
},
|
|
1969
|
+
recipe: {
|
|
1970
|
+
// recipe.exchange viewer. Verified: GET /recipes/{rkey} returns 200 (rkey
|
|
1971
|
+
// alone; no did needed) and /profiles/{handle} returns 200 for the author
|
|
1972
|
+
// page. /recipe/{rkey} 404s.
|
|
1973
|
+
urlPattern: "https://recipe.exchange/recipes/{rkey}",
|
|
1974
|
+
profileUrlPattern: "https://recipe.exchange/profiles/{handle}"
|
|
1975
|
+
},
|
|
1966
1976
|
aetherdocs: {
|
|
1967
1977
|
// Aether OS is a browser OS — presentations open inside it and there's no
|
|
1968
1978
|
// public per-record viewer. The card embeds the deck from the record; the
|
|
@@ -2033,7 +2043,9 @@ var COLLECTION_TO_APP = [
|
|
|
2033
2043
|
["wiki.lichen.", "lichen"],
|
|
2034
2044
|
// Onboard from aramzs.xyz profile audit.
|
|
2035
2045
|
["os.aether.", "aetherdocs"],
|
|
2036
|
-
["io.kich.recipe.recipe", "kich"]
|
|
2046
|
+
["io.kich.recipe.recipe", "kich"],
|
|
2047
|
+
// Onboard from moll.dev profile audit.
|
|
2048
|
+
["exchange.recipe.recipe", "recipe"]
|
|
2037
2049
|
];
|
|
2038
2050
|
|
|
2039
2051
|
// src/cards/resolve-card-url.ts
|
|
@@ -2173,6 +2185,9 @@ function resolveCardUrl(item) {
|
|
|
2173
2185
|
if (collection === "io.kich.recipe.recipe") {
|
|
2174
2186
|
return patternUrl("kich", { handle: authorHandle, did: authorDid, rkey }, collection);
|
|
2175
2187
|
}
|
|
2188
|
+
if (collection === "exchange.recipe.recipe") {
|
|
2189
|
+
return patternUrl("recipe", { handle: authorHandle, did: authorDid, rkey }, collection);
|
|
2190
|
+
}
|
|
2176
2191
|
const recordUrl = stringOrNull(record.url);
|
|
2177
2192
|
if (recordUrl) return recordUrl;
|
|
2178
2193
|
return patternUrl(appId, { handle: authorHandle, did: authorDid, rkey }, collection);
|
|
@@ -2671,7 +2686,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
2671
2686
|
});
|
|
2672
2687
|
|
|
2673
2688
|
// src/index.ts
|
|
2674
|
-
var SIFA_SDK_VERSION = "0.11.
|
|
2689
|
+
var SIFA_SDK_VERSION = "0.11.10";
|
|
2675
2690
|
|
|
2676
2691
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
2677
2692
|
exports.ACTIVITY_VISIBILITY_RULES = ACTIVITY_VISIBILITY_RULES;
|