Repository navigation
feat(cli): experimental icon names each match's meaning import - #12750
josephfarina wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner deciding the sentence this pull request adds to spec:AST-084 FR6, which defines meaningImport, its naming and its choice among several definitions; the current record does not state it. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner), or says what FR6 should state instead. Two code fixes are needed either way:
- A set's own definition never names the meaning import:
meaningRankinpackages/cli/api/icon/search/search.mjsranks only Astryx definitions, so a set that maps the built-incloseand its ownfarewellto one icon answersastryx experimental icon farewellwithimport {XIcon as CloseIcon} …even though the match's reason isdefinition "farewell"; rank the set's own definitions with the query too and add a test with a declared definition. - The aliased line is built inline in
search.mjsinstead of extendingimportLineinpackages/cli/foundation/discovery/icon-ranking.mjs, soimportandmeaningImportcome from two formatters; giveimportLinean optional local name and use it for both branches.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: matches whose set maps the icon for a definition gain a meaning import, printed as a
by meaningline underimport— verified (search code and the new API and CLI tests). - Claim: the import uses the set's module in the project's look, with no alias when the export already has the name — verified (solid-look and
searchtests). - Claim: of several definitions, the query's best match names it, then a built-in one, then the first by name — false for a definition the set declares itself (first finding).
- Claim: ranking, order, the match count, other fields, the no-set answer and the
astryx searchicons block are unchanged — verified (code and the experimental-isolation tests). - Claim: stored-index ranking returns the field too — verified (it calls the same ranking).
- Claim: the label keeps the column width — verified (the formatter pads to the longest label, and
definitionsis always present with it). - Claim: the icon and search tests pass, and the new tests fail without the change — verified (all pass on the head; five of six fail on the base, the sixth guards the absent field).
- Claim: the knowledge check passes — verified.
- Claim: the multi-set measurement and the agent check — not reproduced (author's own runs).
- Claim (changeset): the release note describes the meaning import and its patch bump for an experimental entry — verified.
- Files: the changeset, the three doc files, the type file, the CLI command and both test files are clear; the spec record holds the owner decision;
search.mjscarries both findings.
|
Owner decision (engineering owner, covering this pull request): the |
|
/approve-spec d7c85d2 |
|
Owner decision (engineering owner, covering this pull request): the |
|
/approve-spec b701386 |
There was a problem hiding this comment.
Changes requested: one fix remains. An engineering owner approved the spec:AST-084 FR6 sentence at this head, and the shared importLine change from the last review is in.
- A set's own definition that the query reaches by one of its words still loses the meaning import to a built-in one:
definitionSetinpackages/cli/api/icon/search/search.mjspassesdefinitions: [], so the ranking never reads a set definition'swords, and in a set that mapscloseand its ownfarewell(wordsfarewell,goodbye) to iconx,astryx experimental icon goodbyeprintsby meaning: import {XIcon as CloseIcon} …although the match's reason isword "goodbye"; passdefinitions: docs.map(doc => ({doc}))there and add a test forgoodbyegivingFarewellIcon.
Claims and files checked
Review mode: incremental; reason: none
- Claim: the FR6 record gains one sentence on the meaning import and the verification row names it — verified.
- Claim: matches whose set maps the icon for a definition gain a meaning import, printed as a
by meaningline underimportthat keeps the column — verified (code, tests and a CLI run). - Claim: the import uses the set's module in the project's look, with no alias when the export already has the name — verified (solid-look and
searchtests). - Claim: of several definitions, the query's best match names it, then a built-in one, then the first by name, with the set's own definitions ranked alongside Astryx's — false for a set's own definition reached by its words (finding above); verified when the query names it.
- Claim: ranking, order, the match count, other fields, the no-set answer and the
astryx searchicons block are unchanged — verified (code and the isolation and search tests). - Claim: stored-index ranking returns the field too — verified (same ranking, same answers).
- Claim:
importLinetakes an optional local name, so both lines come from one formatter — verified. - Claim: the icon and search tests pass, and the new tests fail without the change — verified (six of seven fail on the base; the seventh guards the absent field).
- Claim: the knowledge check passes — verified.
- Claim: the multi-set measurement and the agent check — not reproduced (the author's own runs).
- Claim (release note): describes the meaning import with a patch bump for an experimental entry — verified.
- Files: the release note, the spec record, the three doc files, the type file,
icon-ranking.mjs, the CLI command and both test files are clear;search.mjscarries the finding.
b701386 to
a09a40e
Compare
|
Owner decision (engineering owner, covering this pull request): the |
|
/approve-spec a09a40e |
There was a problem hiding this comment.
Changes requested: two fixes remain. The spec:AST-084 FR6 sentence on meaning imports is approved by an engineering owner at this head, so only code changes are needed.
- A set's own definition reached by one of its words never names the meaning import:
definitionSet(packages/cli/api/icon/search/search.mjs:303) passesdefinitions: [], so with the set's ownfarewell(wordsfarewell,goodbye) mapped toxbesideclose,astryx experimental icon goodbyeprintsXIcon as CloseIcon; passdefinitions: docs.map(doc => ({doc}))there and add agoodbyetest. - Miss: the text output prints the
meaningImportfield under the labelby meaning(packages/cli/clients/cli/commands/experimental/icon.mjs:284), which breaksarchitecture:cli-surfaceINV5 ("Text field names mirror JSON keys one to one"), so drop thelabelsoverride and update the CLI test, the command description and the changeset to match.
Everything else checks out: ranking, order and the match count are unchanged, the new tests fail on the base and pass here, and stable output is untouched.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- The FR6 record gains one sentence defining the meaning import: verified (the record at lines 278-284).
- The icon and search tests pass, and the new tests fail without the change: verified; 481 tests pass on this head, and 6 of the 7 new tests fail on the base (the absent-field guard passes on both).
- Each mapped match gains a meaning import, the export under the definition name in PascalCase plus
Icon, from the set's module in the project's look: verified (search.mjs:110-121, the solid-look test). - The text output prints it on a
by meaningline underimport: verified, but the label breaks INV5 (finding 2). - No alias when the export already has the meaning name: verified (
icon-ranking.mjs:93-98, thesearchtest). - Among several definitions the query's best match names it, then a built-in one, then the first by name, with the set's own definitions ranked alongside Astryx's: false for a set's own definition reached by its words (finding 1); true by name.
- JSON gains one optional field; every other field, the order and the match count stay the same: verified (
search.mjs:198-202). rankIconIndex()carries the field too: verified (icon-index.mjs:25uses the same ranking).- The label is no longer than
definitions, so the columns keep their width: verified (10 against 11 characters). - Ranking, unmapped matches, the no-set answer and the icons block of
astryx searchare unchanged: verified (api/search/_icons.mjs:67-80, existing tests). importLinetakes an optional local name, so both lines share one formatter: verified.- The listed before/after cases (close, delete, check, chevron down, home, solid look, a set's own definition by name): verified by the new tests.
- Same icons in the same order across four published sets, and the five-task agent check: not reproduced; order is unchanged in code.
- Writing rubric: the record sentence is present tense and the verification row cites tests: verified.
- Changeset: the command names each mapped match's meaning import in JSON and text: verified; its
by meaningwording changes with finding 2.
Files:
.changeset/icon-search-meaning-import.md: clear apart from the label wording (finding 2).docs/specs/AST-084-icon-sets/spec.md: clear; owner-approved at this head.packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/icon/icon.test.mjs: clear; lacks a test for a word of the set's own definition (finding 1).packages/cli/api/icon/icon.type.mjs: clear.packages/cli/api/icon/search/search.mjs: finding 1.packages/cli/clients/cli/commands/experimental-icon.doc.mjs: names theby meaninglabel (finding 2).packages/cli/clients/cli/commands/experimental/icon.mjs: finding 2.packages/cli/clients/cli/commands/icon.test.mjs: pins theby meaninglabel (finding 2).packages/cli/foundation/discovery/icon-ranking.mjs: clear.packages/cli/foundation/response/response-types.doc.mjs: clear.
|
Owner decision (engineering owner, covering this pull request at its current head): the |
|
/approve-spec acfe88f |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because every commit skips it. Both earlier findings are fixed, and an engineering owner approved the spec:AST-084 FR6 meaning-import sentences at this head.
- Next: rebase onto
main, where the only conflict is the import list ofpackages/cli/api/icon/search/search.mjs(mainaddsdiscoverListsIconSetbeside this branch'siconExportName; keep both), then let CI run and have an engineering owner comment/approve-specagain with the rebased head's SHA, since an approval covers only the head it names.
Claims and files checked
Review mode: full; reason: spec-record
Claims:
- The FR6 record gains sentences that define the meaning import and say which definition names it, and its verification row names meaning imports: verified (the record's FR6 and its FR6–FR8 row).
- The icon and search tests pass, and the new tests fail without the change: verified; 481 tests pass on this head, and 6 of the 7 new tests fail on the base (the absent-field guard passes on both).
- Each mapped match gains a meaning import, the export under the definition name in PascalCase ending in
Iconby the rule a set uses for its export names: verified (search.mjs:122calls the shared export-name helper). - Text prints it on a
meaningImportline underimport, and text labels mirror the JSON keys: verified (experimental/icon.mjs:276, the CLI text test). - The import comes from the set's own module, in the look the project picks: verified (the solid-look test).
- No alias when the export already has the meaning name: verified (the
searchanddwellingcases). - Of several definitions, the query's best match names it, then a built-in one, then the first by name, with the set's own definitions ranked beside Astryx's: verified (
check,chevron down,home;farewell,goodbye,close). - JSON gains one optional field, and every other field, the order and the match count stay the same: verified (
search.mjs:202-206). rankIconIndex()carries the field too: verified (a stored index answersgoodbyewith the set's own meaning name).- Ranking, matches no definition names, the no-set answer and the icons block of
astryx searchare unchanged: verified (api/search/_icons.mjs:70-82, the isolation and search tests). importLinetakes an optional local name, so both lines come from one formatter: verified (icon-ranking.mjs:93-96).- The listed before and after cases (close, delete, several definitions, the solid look, a set's own definition by name and by word): verified by the tests and a CLI run.
- Same icons in the same order across four published sets: verified by construction (
search.mjs:202-206only adds a field to the ranked, cut list); the share of first answers with a meaning import and the five-task agent check are the author's own runs and were not reproduced. - The knowledge check passes: verified (records aligned).
- The description and changes carry no internal context: verified.
- Writing rubric: the record sentences are present tense, the verification row cites tests, and no status line is added: verified.
- Changeset: the command names each mapped match's meaning import, such as
TrashIcon as DeleteIcon: verified.
Files:
.changeset/icon-search-meaning-import.md: clear.docs/specs/AST-084-icon-sets/spec.md: clear; owner-approved at this head.packages/cli/api/icon/icon.doc.mjs: clear.packages/cli/api/icon/icon.test.mjs: clear.packages/cli/api/icon/icon.type.mjs: clear.packages/cli/api/icon/search/search.mjs: clear; conflicts withmainin its import list.packages/cli/clients/cli/commands/experimental-icon.doc.mjs: clear.packages/cli/clients/cli/commands/experimental/icon.mjs: clear.packages/cli/clients/cli/commands/icon.test.mjs: clear.packages/cli/foundation/discovery/icon-ranking.mjs: clear.packages/cli/foundation/response/response-types.doc.mjs: clear.
acfe88f to
96ff68f
Compare
|
Owner decision (engineering owner, covering this pull request at its current head): the |
|
/approve-spec 96ff68f |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because its head commit message carries [skip ci]. A push without it starts CI, and the merge guard waits for it to pass.
An engineering owner approved the new spec:AST-084 FR6 sentences for this head, and the earlier findings are fixed: a set's own definition words now name the meaning import, and both import lines come from importLine. Ranking, matchCount, the no-set answer and the astryx search icons block answer as before.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Changeset:
astryx experimental iconprints, for a match its set maps for a definition, an import under the meaning name (TrashIcon as DeleteIcon) — verified: head transcript fordelete;icon.test.mjs:921-933. - The record gains the
meaningImportfield and the rule for several definitions, and the FR6–FR8 verification row names meaning imports — verified:spec.md:309-316and the FR6–FR8 row. - The icon and search tests pass, and the new tests fail without the change — verified: 481 tests pass; 6 of the 7 new tests fail on the base, and the seventh checks that an unmapped icon has no field, which the base also meets.
- Answers keep the same icons in the same order — verified on 700 queries in five fixture projects, base against head (the published sets were not checked here).
- Text prints a
meaningImportline underimport, and text labels mirror JSON keys — verified:experimental/icon.mjs:319; head transcripts. - The import comes from the set's module, in the look the project picks — verified:
icon.test.mjs:921-933. - No alias when the export already has the meaning name — verified:
icon.test.mjs:847-852and:913-918. - Of several definitions, the query's first names it, then a built-in one, then the first by name, and the set's own definitions rank with Astryx's — verified:
search.mjs:141-155;icon.test.mjs:860-919. - JSON gains an optional field; every other field, the order and
matchCountstay the same — verified: fixture comparison above. rankIconIndex()matches carry the field too — verified:icon-index.mjs:151calls the same ranking.- Unmapped matches, the answer with no set, and the
astryx searchicons block are unchanged — verified: fixture comparison;_icons.mjs:72-82copies its own fields. - Both lines come from one formatter with an optional local name — verified:
icon-ranking.mjs:96,search.mjs:123-127and:274. - Before and after for
closein a set that maps it tox— verified: base and head transcripts. deletewith no mapping answerstrashwith no field — verified:icon.test.mjs:854-858.check,chevron downandhomepickCheckIcon,ChevronDownIconand the first built-in by name — verified:icon.test.mjs:860-879.- A set-declared
farewellnames the import by its name and by its wordgoodbye, andclosestill givesCloseIcon— verified:icon.test.mjs:881-912. - Most first answers on published sets carry a meaning import, and agents used the meaning name in a five-task trial — not reproducible here; on the fixtures most first answers carry the field.
- One capability, no unrelated changes, docs and tests ship with it, no internal context — verified: 11 files; the command, function and response-type docs describe the field; the text scan is clean.
pnpm check:knowledgepasses — verified.- Writing rubric results — verified against the record diff: present tense, no research, status, change references or open questions; the verification row cites tests.
Files:
.changeset/icon-search-meaning-import.md— clear:[experimental]patch.docs/specs/AST-084-icon-sets/spec.md— clear: owner-approved at this head; no approval line changed.packages/cli/api/icon/icon.doc.mjs— clear: matches the code.packages/cli/api/icon/icon.test.mjs— clear: the new FR6 tests.packages/cli/api/icon/icon.type.mjs— clear: optionalmeaningImportonIconMatchEntry.packages/cli/api/icon/search/search.mjs— clear: the field, the definition ranking, and the set's own definition words.packages/cli/clients/cli/commands/experimental-icon.doc.mjs— clear: description only.packages/cli/clients/cli/commands/experimental/icon.mjs— clear: the text field, named as the JSON key.packages/cli/clients/cli/commands/icon.test.mjs— clear: the text test.packages/cli/foundation/discovery/icon-ranking.mjs— clear: optional local name onimportLine.packages/cli/foundation/response/response-types.doc.mjs— clear: description only.
|
Owner decision (engineering owner, covering this pull request at its current head): the |
|
/approve-spec 19e30b3 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because its head commit message carries [skip ci]. A push without it starts CI, and the merge guard waits for it to pass.
An engineering owner approved the new spec:AST-084 FR6 sentences for this head. The new commit makes a name that a set's own definition replaced (planet) name its successor's meaning import (MeteorIcon), matching the match's reason, and its test covers both the live search and a stored index.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Changeset:
astryx experimental iconprints, for a match its set maps for a definition, an import under the meaning name (TrashIcon as DeleteIcon) — verified:icon.test.mjs:954-966; head transcripts. - The record gains the
meaningImportfield and the rule for several definitions, and the FR6–FR8 verification row names meaning imports — verified:spec.md:309-316,:885. - The icon and search tests pass, and the new tests fail without the change — verified: the targeted suites pass; 7 of the 8 new tests fail on the base, the eighth checks that an unmapped icon has no field, which the base also meets, and the replaced-name test fails on the previous revision.
- Answers keep the same icons in the same order across published icon sets — verified on fixtures only: 704 queries in six fixture projects answer as on the base apart from the new field; the published sets were not checked.
- Text prints a
meaningImportline underimport, and text labels mirror JSON keys — verified:experimental/icon.mjs:319;commands/icon.test.mjs:72-79. - The import comes from the set's own module, in the look the project picks — verified:
icon.test.mjs:954-966. - No alias when the export already has the meaning name — verified:
icon.test.mjs:848-853,:914-919. - Of several definitions, the query's first names it, then a built-in one, then the first by name; the set's own definitions rank with Astryx's by name, replaced name and word — verified:
search.mjs:149-166;icon.test.mjs:861-952. - JSON gains an optional field; every other field, the order and
matchCountstay the same — verified: the fixture comparison above. rankIconIndex()matches carry the field too — verified:icon-index.mjs:151calls the same ranking;icon.test.mjs:941-946.- Unmapped matches, the answer with no set, and the
astryx searchicons block are unchanged — verified: the fixture comparison;_icons.mjs:72-82copies its own fields. - Both lines come from one formatter with an optional local name — verified:
icon-ranking.mjs:96,search.mjs:129-133and:285. - Before and after for
closein a set that maps it tox— verified:icon.test.mjs:835-846; head transcript. deletewith no mapping answerstrashwith no field — verified:icon.test.mjs:855-859.check,chevron downandhomepickCheckIcon,ChevronDownIconand the first built-in by name — verified:icon.test.mjs:861-880.- A set-declared
farewellnames the import by its name and by its wordgoodbye, andclosestill givesCloseIcon— verified:icon.test.mjs:882-913. - Most first answers on published sets carry a meaning import, and agents used the meaning name in a five-task trial — not reproducible here; on the fixtures most first answers carry the field.
- One capability, no unrelated changes, docs and tests ship with it, no internal context — verified: 11 files; the command, function and response-type docs describe the field; the text scan is clean.
pnpm check:knowledgepasses — verified.- Writing rubric results — verified against the record diff: present tense, no research, status, change references or open questions; the verification row cites tests.
Files:
.changeset/icon-search-meaning-import.md— clear:[experimental]patch.docs/specs/AST-084-icon-sets/spec.md— clear: owner-approved at this head; no approval line changed.packages/cli/api/icon/icon.doc.mjs— clear: matches the code.packages/cli/api/icon/icon.test.mjs— clear: the new FR6 tests, including replaced names live and from a stored index.packages/cli/api/icon/icon.type.mjs— clear: optionalmeaningImportonIconMatchEntry.packages/cli/api/icon/search/search.mjs— clear: the field, the definition ranking, and the set's own words and replaced names.packages/cli/clients/cli/commands/experimental-icon.doc.mjs— clear: description only.packages/cli/clients/cli/commands/experimental/icon.mjs— clear: the text field, named as the JSON key.packages/cli/clients/cli/commands/icon.test.mjs— clear: the text test.packages/cli/foundation/discovery/icon-ranking.mjs— clear: optional local name onimportLine.packages/cli/foundation/response/response-types.doc.mjs— clear: description only.
…ng import The definition ranking behind the meaning import now carries the set's own old definition names (a live set's aliases, a stored index's replaced names), as the icon ranking does, so an old name gives the successor's name (planet gives XIcon as MeteorIcon) instead of falling back to a built-in one. A test covers the live search and a stored index. [skip ci]
19e30b3 to
f369e6b
Compare
|
Owner decision (engineering owner, covering this pull request at its current head): the |
|
/approve-spec f369e6b |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet, because its head commit message carries [skip ci]. A push without it starts CI, and the merge guard waits for it to pass.
An engineering owner approved the spec:AST-084 FR6 sentences on meaning imports for this head, each new clause has a test that fails without the change, and the earlier inline findings stay fixed. Nothing else is needed from the author.
Claims and files checked
Review mode: full; reason: history
- Claim: FR6 gains two sentences, on
meaningImportand on which definition names it: verified (spec.md:309-316). - Claim: the new tests fail without the change: verified (seven of eight fail on the base; the eighth checks the no-field case, which the base also meets).
- Claim: answers keep the same icons in the same order: verified on fixture projects (every answer equals the base apart from
meaningImport); the published-set measurement was not reproduced. - Claim: text prints a
meaningImportline underimport, labelled as its JSON key: verified (experimental/icon.mjs:319,commands/icon.test.mjs:72-79). - Claim: no alias when the export already has the meaning name: verified (
icon.test.mjs:848-853). - Claim: of several definitions, the query's best names it, then a built-in one, then the first by name, and the set's own definitions rank by name, replaced names and words: verified (
icon.test.mjs:861-952). - Claim: the JSON field is optional and
rankIconIndex()carries it: verified (icon.type.mjs:66,icon.test.mjs:942). - Claim: ranking, unmapped matches, the answer with no set and the icons block of
astryx searchstay unchanged: verified (fixture comparison;_icons.mjs:70-83). - Claim:
importLinetakes an optional local name: verified (icon-ranking.mjs:96-100). - Claim: the project look names its own export: verified (
icon.test.mjs:954-966). - Claim: agents imported under the meaning name with the new output: not reproducible in review; not relied on.
- Claim: the icon, search and knowledge checks pass: verified (482 tests;
pnpm check:knowledge). - Changeset: an
[experimental]patch that namesmeaningImport: verified. - Files:
.changeset/icon-search-meaning-import.md,docs/specs/AST-084-icon-sets/spec.md,packages/cli/api/icon/icon.doc.mjs,packages/cli/api/icon/icon.test.mjs,packages/cli/api/icon/icon.type.mjs,packages/cli/api/icon/search/search.mjs,packages/cli/clients/cli/commands/experimental-icon.doc.mjs,packages/cli/clients/cli/commands/experimental/icon.mjs,packages/cli/clients/cli/commands/icon.test.mjs,packages/cli/foundation/discovery/icon-ranking.mjs,packages/cli/foundation/response/response-types.doc.mjs: each clear.
- #12895 experimental theme: a saved --only on a part styled on its own opens Author: @josephfarina - #12706 fix(cli): template reads ~/ as the home folder, never a folder named ~ Author: @josephfarina - #12750 feat(cli): experimental icon names each match's meaning import Author: @josephfarina - #12307 fix(core): keep anchored layers on screen when their trigger runs past the viewport Author: @josephfarina
|
Landed in #12940. |
Record change:
spec:AST-084FR6 adds two sentences: a match whose icon set maps it for a definition also hasmeaningImport, its import under the meaning name; and, when the set maps the icon for several definitions, which one names it.Checks: the icon and search tests pass locally, and the new tests fail without the change; on a fixed set of agent-style requests across four published icon sets, every answer keeps the same icons in the same order.
User need
App code that imports an icon by its icon set's own export (
TrashIcon) names the glyph, not what it means. When the project moves to another icon set, the name no longer fits (another set draws delete with a different glyph and export), and code copied from templates names the same meaning in another way. Agents paste the import line thatastryx experimental iconprints, so the finder is where the meaning name has to come from.Problem and solution fit
Each
icon.searchmatch whose set maps it for a definition gainsmeaningImport: the match's export imported under the definition's name in PascalCase ending inIcon, the same rule a set uses for its export names. Text prints it on ameaningImportline underimport:The import comes from the icon set's own module, in the look the project picks. When the export already has the meaning name (
SearchIconforsearch), the line has no alias. When the set maps the icon for several definitions, the one that the query ranks first names it, then a built-in one, then the first by name; the set's own definitions rank with Astryx's, by their names, the names they replaced, and their words.Current specification
docs/specs/AST-084-icon-sets/spec.mdFR6 owns theicon.searchanswer and its fields. This PR adds two sentences to FR6 (themeaningImportfield, and which definition names it when several map the icon) and names meaning imports in the FR6–FR8 verification row.Public delta and caller burden
icon.searchmatches gain an optionalmeaningImportstring (experimental). Every other field, the order, andmatchCountstay the same.rankIconIndex()answers asicon()does, so its matches carry the field too.meaningImportline underimportfor each match that a definition names; text labels mirror the JSON keys.astryx search(it prints its own fields).meaningImportline keeps its name when the project changes icon sets.Design and alternatives
map, the data that template copies already map icons with, so the name is the one templates use for that meaning.importstays as it is, so callers that read it keep working. Both lines come from one formatter:importLinetakes an optional local name.import. The caller would still have to build the line.Evidence
experimental icon close, in a project whose set mapsclosetox, prints onlyimport {XIcon} from '…'. After: it also printsmeaningImport: import {XIcon as CloseIcon} from '…'.deleteanswerstrash, which no definition names in the test set, with nomeaningImport.checkgivesCheckIcon,chevron downgivesChevronDownIcon), else the first built-in one by name.experimental.iconVariant: 'solid', the line names the solid export (TrashSolidIcon as DeleteIcon).farewell(wordsfarewell,goodbye) declared by the set and mapped tox, bothfarewellandgoodbyegiveXIcon as FarewellIcon, andclosestill givesCloseIcon.DeleteIcon,CloseIcon,SettingsIcon,ExternalLinkIcon,SearchIcon), and with the old output none did.Scope
Components: cli (
api/icon/search/search.mjs,clients/cli/commands/experimental/icon.mjs, icon docs and types), AST-084 FR6Testing
CI=1 pnpm exec vitest run --project node packages/cli/api/icon packages/cli/clients/cli/commands/icon.test.mjs packages/cli/clients/cli/commands/icon-bare-subcommand.test.mjs packages/cli/api/search/search.icons.test.mjs packages/cli/api/search/search.test.mjs packages/cli/test/experimental-isolation.test.mjspnpm check:knowledgeWriting rubric results
R1 narration: none; the two FR6 sentences state the field and the choice of definition in the present tense.
R2 research: none in the record; the measurement and the agent check stay in this description.
R3 evidence: the FR6–FR8 verification row names meaning imports among what the
experimental icontests cover; it cites tests, not changes.R4 rejected alternatives: none added to the record.
R5 change references: none.
R6 open questions: none touched.
R7 project status: none.
preflight: pass f369e6b