oficina / estilo Public

Include shared Lucide and Feather attribution

Co-Authored-By: Codex <noreply@openai.com>
Paul Campbell pushed by paul@keymail.dev f5fa1128b794fcd38c003ee821e45f7de7d992c9 parent 53bb51b
5 files changed, +66 −1
  • cmd/oficina-notices/main.go +4 −0
  • credits/icons.go +13 −0
  • credits/notices/lucide-LICENSE +43 −0
  • credits/notices/lucide-provenance.json +5 −0
  • implementation/open-source-credits.json +1 −1

CI passed — run details

diff --git a/cmd/oficina-notices/main.go b/cmd/oficina-notices/main.go
index 03b1df1..2c844d8 100644
--- a/cmd/oficina-notices/main.go
+++ b/cmd/oficina-notices/main.go
@@ -18,6 +18,7 @@ import (
func main() {
entry := flag.String("package", "", "production Go package")
excludes := flag.String("exclude", "", "comma-separated first-party module paths")
+ lucide := flag.Bool("lucide", false, "include vendored Lucide and Feather notices")
flag.Parse()
if *entry == "" || flag.NArg() != 0 {
fmt.Fprintln(os.Stderr, "oficina-notices: -package is required")
@@ -57,6 +58,9 @@ func main() {
os.Exit(1)
}
inventory.Components = append(inventory.Components, credits.Component{Name: "Go", Version: toolchain.GOVERSION, SourceURL: "https://go.dev/LICENSE", Notices: []credits.Notice{{Name: "LICENSE", Text: string(license)}}})
+ if *lucide {
+ inventory.Components = append(inventory.Components, credits.Lucide())
+ }
sort.Slice(inventory.Components, func(i, j int) bool { return inventory.Components[i].Name < inventory.Components[j].Name })
encoder := json.NewEncoder(os.Stdout)
encoder.SetIndent("", " ")
diff --git a/credits/icons.go b/credits/icons.go
new file mode 100644
index 0000000..601ca55
--- /dev/null
+++ b/credits/icons.go
@@ -0,0 +1,13 @@
+package credits
+
+import _ "embed"
+
+//go:embed notices/lucide-LICENSE
+var lucideNotice string
+
+// Lucide supplies the upstream notice for the suite's vendored Lucide icons,
+// including the Feather-derived icons. No icon-release version is inferred
+// from the revision of the licence file.
+func Lucide() Component {
+ return Component{Name: "Lucide and Feather", SourceURL: "https://lucide.dev/license", Notices: []Notice{{Name: "LICENSE", Text: lucideNotice}}}
+}
diff --git a/credits/notices/lucide-LICENSE b/credits/notices/lucide-LICENSE
new file mode 100644
index 0000000..718bb3f
--- /dev/null
+++ b/credits/notices/lucide-LICENSE
@@ -0,0 +1,43 @@
+ISC License
+
+Copyright (c) 2026 Lucide Icons and Contributors
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+---
+
+The following Lucide icons are derived from the Feather project:
+
+airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
+
+The MIT License (MIT) (for the icons listed above)
+
+Copyright (c) 2013-present Cole Bemis
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/credits/notices/lucide-provenance.json b/credits/notices/lucide-provenance.json
new file mode 100644
index 0000000..6c45c46
--- /dev/null
+++ b/credits/notices/lucide-provenance.json
@@ -0,0 +1,5 @@
+{
+ "source": "https://raw.githubusercontent.com/lucide-icons/lucide/a79b2d131dab2bf20cb224bd0937b439a9c4fa99/LICENSE",
+ "sha256": "b495047bd93a9b06913511076f504daba17d5bbeb3e0650f3bb53a4220329c57",
+ "bytes": 3208
+}
diff --git a/implementation/open-source-credits.json b/implementation/open-source-credits.json
index 17643d5..996932d 100644
--- a/implementation/open-source-credits.json
+++ b/implementation/open-source-credits.json
@@ -7,5 +7,5 @@
"behavior": "Native details list of component name/version, source link, and complete original notice text. No JavaScript. Template autoescapes all notice data and source URL. Bare estilo attributes define wrapping and minimum24px controls. Theme colors remain inherited and unchanged. External source links suppress referrers.",
"verification": "Full Estilo make test passed. Exact Home-rendered page passed native Chromium320/1200px overflow and24px target checks; Enter opens notices while page scripting is disabled. Browser evidence is in oficina-provisioning-20260911/home-credits-browser. Component and catalog tests cover escaping, translated title, bidi, original root/bundled/nested notices, deterministic order, explicit missing notices and invalid source provenance.",
"review": "Pending Claude Fable after quota reset; no merge or deployment. A rendered credits list is not a claim that dependency/license inventory is complete.",
- "inventory": "cmd/oficina-notices reads go list -deps -json for an app production package under the target build environment. It includes that Go toolchain LICENSE, selected module root and package-ancestor notice files, and an explicit missing-notices list. Exclusions are exact named first-party modules. Replacements and unverifiable provenance refuse; this does not claim to inventory separate JavaScript/npm or binary assets."
+ "inventory": "cmd/oficina-notices reads go list -deps -json for an app production package under the target build environment. It includes that Go toolchain LICENSE, selected module root and package-ancestor notice files, and an explicit missing-notices list. Exclusions are exact named first-party modules. Replacements and unverifiable provenance refuse; this does not claim to inventory separate JavaScript/npm or binary assets. Explicit -lucide adds the original upstream ISC/MIT notice for vendored Lucide/Feather glyphs; its upstream file revision/hash are recorded, without inventing an icon version."
}