Skip to content

Instantly share code, notes, and snippets.

View teamdandelion's full-sized avatar
๐Ÿ’ญ
they/them

Dandelion Manรฉ teamdandelion

๐Ÿ’ญ
they/them
View GitHub Profile
@teamdandelion
teamdandelion / mirascope-ui-sync.md
Created May 28, 2025 17:27
mirascope-ui-sync plan

Mirascope Registry Sync Tool Spec

Purpose

Enable consuming projects to maintain automatic synchronization with mirascope/ui as the single source of truth, departing from shadcn's "copy then own" philosophy in favor of "sync and stay current."

Core Philosophy

  • mirascope/ui is SoT: Components should stay in sync with upstream
  • Explicit tracking: Clear visibility into what comes from registry vs local code
  • Automated updates: Enable daily sync checks and PR automation
  • Selective sync: Only update components you've chosen to use
@teamdandelion
teamdandelion / extraction_comparison.py
Last active February 18, 2025 13:22
Mirascope model extraction comparisons
import argparse
import asyncio
import inspect
import json
import logging
import time
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Literal
@teamdandelion
teamdandelion / example.py
Last active February 14, 2025 19:38
Mirascope: Directly using response models, vs generating text then extracting
class PuzzleSolution(BaseModel):
weekly: int
monthly_min: int
monthly_max: int
puzzle = inspect.cleandoc("""A factory produces 5 widgets every
weekday, and 3 widgets per day on weekends, and one extra widget on Mondays.
How many widgets are produced in a week?
Each month has four weeks, and one holiday (which may be any day of the week).
@teamdandelion
teamdandelion / algobots.json
Created April 12, 2021 00:08
Algobot data
[
{
"tokenID": "40000000",
"traits": [
"All Algobots",
"Colour: Orange",
"Headphones: Supra-aural",
"Bodywork: Block",
"Component: X",
"State: Idle"
export type Tag = string;
export type UUID = string;
type EditorNode = {|
+uuid: UUID,
+tags: $ReadOnlyArray<Tag>,
+title: string,
+description: string,
+connections: $ReadOnlyArray<EditorConnection>,
+timestamp: TimestampMs | null,
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"intervalEndpoints":[1569110400000,1569715200000,1570320000000,1570924800000,1571529600000,1572134400000,1572739200000,1573344000000,1573948800000,1574553600000,1575158400000,1575763200000,1576368000000,1576972800000,1577577600000,1578182400000,1578787200000,1579392000000,1579996800000,1580601600000,1581206400000,1581811200000,1582416000000,1583020800000,1583625600000,1584230400000,1584835200000,1585440000000,1586044800000,1586649600000,1587254400000,1587859200000,1588464000000,1589068800000,1589673600000,1590278400000,1590883200000],"orderedEdges":[{"address":["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629411178837442601","680919780412227624"],"credOverTime":null,"dstIndex":5402,"rawWeight":{"backwards":0.0625,"forwards":1},"srcIndex":2,"timestamp":1582414326528,"totalCred":{"backwardFlow":0.039404054025777374,"forwardFlow":0.03337624043255971}},{"address":["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629411178837442601","680919780412227624"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629411717704712192","686598242741387264"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629412800346849302","680997300511965211"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629412800346849302","684949419778375797"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","646826789544394755","682840015826321438"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","646826789544394755","683748121339363346"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","๐Ÿ‘","656207220148797497","691457333154414642"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","๐Ÿ‘","656207220148797497","691457469699981334"],["sourcecred","discord","ADDS_R
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOjMwNDA4NGE2NjhlYzUwZGZlMzI1YzM3N2I3ZmY5MjY1MDc5MTkxOTc="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFlYzg5N2UxMDBjZjAyOGJhZTQ3OWNhYTE4ODBmMWY1OGRiODZlY2Q="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFmZDNiNmVhNmY0NWQ0YjRiNTNmNzg3OTA1ZWM1M2RiZjQ2ZmJiZWY="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmI2YWU5OTc4YTFlNTMwY2Q2NDU1NWI3NTAzZmU3MTRjNDU4ODFiYWI="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","M
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOjMwNDA4NGE2NjhlYzUwZGZlMzI1YzM3N2I3ZmY5MjY1MDc5MTkxOTc="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFlYzg5N2UxMDBjZjAyOGJhZTQ3OWNhYTE4ODBmMWY1OGRiODZlY2Q="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmFmZDNiNmVhNmY0NWQ0YjRiNTNmNzg3OTA1ZWM1M2RiZjQ2ZmJiZWY="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","MDY6Q29tbWl0MjMzMTk1NTEyOmI2YWU5OTc4YTFlNTMwY2Q2NDU1NWI3NTAzZmU3MTRjNDU4ODFiYWI="],["sourcecred","github","AUTHORS","5","sourcecred","github","USERLIKE","USER","Beanow","4","sourcecred","github","COMMIT","M
This file has been truncated, but you can view the full file.
[{"type":"sourcecred/analysis/output","version":"0.3.0"},{"edgeData":{"address":[["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629411178837442601","680919780412227624"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629411717704712192","686598242741387264"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629412800346849302","680997300511965211"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","629412800346849302","684949419778375797"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","646826789544394755","682840015826321438"],["sourcecred","discord","ADDS_REACTION","bot","298673420181438465","๐Ÿ‘","646826789544394755","683748121339363346"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","๐Ÿ‘","656207220148797497","691457333154414642"],["sourcecred","discord","ADDS_REACTION","bot","324631108731928587","๐Ÿ‘","656207220148797497","691457469699981334"],["sourcecred","discord","ADDS_R