Commit Graph

1722 Commits

Author SHA1 Message Date
Jakub Zych
33460607db feat(summer): help, examples and hints for every tool command
- build runs go build under a spinner on a terminal and ends with
  'Built bin/<name> in <time>'; make:* print 'Created <path>' per file
- make:*, plugin:add, new, parity:*, docs:build, docs:sync and every
  delegate get long help and examples; delegates note that global options
  pass through to the application binary
- make:* failures (no summer.yaml, invalid plugin ID or name, existing
  artifact, unknown plugin) explain themselves and suggest a command
- docs:build and docs:sync return bonfire.Reported after the problem list
- TestCommandsDocumented covers the tool commands too
- docs: Upgrading to 0.4, delegates and global options, make: results and
  hints, the checklist for a finished command
2026-10-21 13:25:53 +02:00
Jakub Zych
9d06a78f62 feat: Artisan checklist for application commands, hints and coverage gate
- migrate, migrate:rollback and deferred:purge gain --pretend and --force;
  they and queue:clear confirm only in production on an interactive
  terminal, so deploys over SSH proceed as before
- result lines: Applied N migrations, Rolled back <id> of <plugin>,
  Cleared N jobs from <queue>
- --json for migrate:status, key:generate, route:list, admin:token:create,
  admin:token:list, admin:token:scopes and websockets:health; -q keeps the
  key and the token
- hints for an empty DSN, an unreachable database, an invalid app.key, a
  missing uploads bucket and an application binary run below its root
- flare and websockets:health return bonfire.Reported after printing
- long help and examples for every application command, greeter:hello and
  blog:publish; cmd/summer TestCommandsDocumented fails on any gap
2026-10-21 13:16:21 +02:00
Jakub Zych
168d65cd1b feat(conga,dev): worker and scheduler reports, summer dev runs serve
- queue:work and schedule:run print a startup summary and a shutdown
  report on a terminal, log them as records otherwise, and return nil
  after a clean stop
- schedule:run --once ends with 'Ran N due entries (M failed)'
- summer dev runs bin/<app> serve with the forwarded global options,
  reports through Output, stops the old server before starting the new
  one and prints a dev report on Ctrl+C (exit 0)
- lagoon.DatabaseLabel describes a DSN without its secrets
- Long help and examples for queue:work, schedule:run, dev, docs:serve
2026-10-21 13:04:27 +02:00
Jakub Zych
c38dc1fe48 feat(surf): serve startup summary, shutdown report and http request log
- serve prints a startup summary on a terminal (version, environment, URL,
  admin, database host and name, pending migrations, plugins, drivers) and
  logs it as a 'startup summary' record plus 'listening on <addr>'
- on SIGINT/SIGTERM serve drains, prints and logs a shutdown report and
  returns nil (exit 0), or the drain errors (exit 1)
- the request log is on by default under diary component http with
  request_id; the route pattern, never the path, is logged
- lagoon.PendingMigrations, conga.Worker.Stats, diary.HideOnTTY,
  bonfire.IsTerminal and bonfire.Details back the summary and report
2026-10-21 12:59:07 +02:00
Jakub Zych
f0ee26f39f docs(19.8-02): update roadmap progress after plan 02 2026-10-21 12:33:06 +02:00
Jakub Zych
128d1985a1 docs(19.8-02): complete bonfire console layer plan 2026-10-21 12:32:35 +02:00
Jakub Zych
3f38862b22 feat(bonfire): SSU widgets on charm v2 behind the Output interface
- Spinner, gradient progress bar and the multi-row process view ported
  from SSU to bubbletea v2 (input off, no signal handler, command
  context); boxed tables through lipgloss/table
- Prompts use huh fields and a single-select port of SSU's selector with
  its confirmation screen on an interactive terminal; line prompts off a
  terminal and under --no-ansi are unchanged (piped passwords still work)
- -q hides decoration but keeps data and errors; -n returns defaults and
  Secret fails with a hint on a terminal stdin; --no-ansi and non-TTY
  runs print today's plain lines
- Helpers: GlobalsOf, VerbosityOf, IsQuiet, Interactive, ConfirmProceed,
  Process, Current, Failed, PrintAbove, ItemProgress, ErrAborted
- diary's styled console lines print above a running live view
2026-10-21 12:30:53 +02:00
Jakub Zych
cb38c493ce docs(notes): allow diary as wristband's one framework import 2026-10-21 12:23:51 +02:00
Jakub Zych
fb32886775 feat(bonfire): Artisan help, examples, JSON listing and error hints
- help <command> and <command> --help print Description, Usage,
  Arguments, Options with defaults, Global options, Help and Examples
- Command.Examples and Command.Hidden (appended, additive); list --all
  shows hidden commands, list --format=json prints a bonfire.Listing
- CheckDocs reports commands lacking description, long help, examples or
  argument and option descriptions
- Error block with the ERROR badge, WithHint explanation and Try lines
  ({bin} replaced), cobra suggestions as Try, -v error chain, messages
  scrubbed by sunscreen; Reported errors print nothing and exit 1
2026-10-21 12:21:24 +02:00
Jakub Zych
80fae5c279 docs(19.8): close the duplicate command names todo 2026-10-21 12:13:29 +02:00
Jakub Zych
8d4d7ce7a7 feat(bonfire): global flags, Artisan list and exit codes
- Global options -v/-vv/-vvv, -q, --ansi/--no-ansi, -n and --env on every
  command; PeekGlobals reads them before config loads, OnGlobals hooks
  re-apply them after parsing (diary.ApplyGlobals in the generated main)
- Bare binary, --help and list print the Artisan list with the version
  header from BuildVersion and namespace blocks
- Execute runs the root through fang (no version, man page or completions)
  and returns 0, 1 or 2; Fail renders errors before the root exists
- NewRoot rejects duplicate command names (ErrDuplicateCommand) and flags
  that reuse a global option (ErrReservedFlag)
- Generated main and summer use PeekGlobals, compass.Open with --env,
  diary.FromGlobals and bonfire.Execute; docs checker knows the globals
2026-10-21 12:13:23 +02:00
Jakub Zych
b7c07591cb docs(19.8-01): update roadmap progress after plan 01 2026-10-21 12:00:43 +02:00
Jakub Zych
7dbf6d1a45 docs(19.8-01): complete diary logging plan 2026-10-21 11:59:50 +02:00
Jakub Zych
44291adcca refactor: framework modules log through diary components
- Each module logs through diary.For(<package>): cabana, lagoon, attach, cooler, postcard, beachcomber, lighthouse, centrifugo, flare, phrasebook, wristband, bouncer
- App-published *slog.Logger overrides stay first; messages and attributes unchanged
- sunscreen: InstallDefault documented as the compatibility entry point; diary wraps every channel
- READMEs list diary as a dependency; logging docs: plugins use diary.For
2026-10-21 11:58:22 +02:00
Jakub Zych
71b99317ad docs(19.5): gap-closure plan 05 for email-proof auto-link and bm callback view test 2026-10-21 11:53:54 +02:00
Jakub Zych
e6b20e2cb6 feat(conga,lagoon): River and GORM log through diary components
- River's logger is diary.For("river") (warn by default), conga's own lines diary.For("conga"); an app-published logger still wins
- GORM logs through logger.NewSlogLogger(diary.For("db")): warn level, record-not-found ignored, parameterized SQL traces only at verbosity 3
- Smoke tests TestRiverLoggerUsesDiarySmoke and TestGormLoggerUsesDiarySmoke
2026-10-21 11:51:57 +02:00
Jakub Zych
5b09b32512 feat(diary): channels, components and config/log.yaml
- stderr and null drivers; per-component levels from log.components
- SUMMER_LOG__ overrides parse as strings and overlay the defaults key by key
- Validation names the key: driver, format, level, days, stack children and cycles, daily path outside the root
- summer new writes config/log.yaml (stack of console and daily, river warn, http info)
- docs/services/logging.md: channels, config/log.yaml, component loggers, daily files, redaction
- Log keys in the configuration docs; ExampleFor backs the docs snippet
2026-10-21 11:48:25 +02:00
Jakub Zych
e903cc32be feat(diary): component loggers through a redacting console and daily stack
- New diary module: For, Bootstrap, Setup, SetVerbosity, Reset, Close, ParseConfig
- Proxy component handler safe in package vars; styled console handler in bonfire's palette
- Daily writer: one file per day, 0640, lazy open, retention, disables itself on open failure
- Every channel leaf wrapped by sunscreen.Wrap; stack via slog.NewMultiHandler
- bonfire: ColorMode, Palette, DefaultPalette, DetectProfile (lipgloss v2, colorprofile)
- Generated main runs diary.Bootstrap first and diary.Setup after compass.Load
- Ignore /storage/ and /examples/hello/storage/
2026-10-21 11:41:48 +02:00
Jakub Zych
e6039b445f docs(19.8): decide the charm v2 console stack
- Decision note: lipgloss, bubbletea, bubbles, huh, fang v2 and colorprofile, fang used narrowly, own diary console handler, stdlib daily writer
- STACK.md Supporting Libraries rows for the six modules
2026-10-21 11:28:48 +02:00
Jakub Zych
bde7d9fcb7 docs(19.8): create phase plan 2026-10-21 02:54:17 +02:00
Jakub Zych
deff424c4f test(19.5): persist human verification items as UAT 2026-10-21 02:24:58 +02:00
Jakub Zych
a999055cbf docs(19.5): add verification report 2026-10-21 02:24:54 +02:00
Jakub Zych
b73f9d971f docs(19.5): add code review report 2026-10-21 02:24:54 +02:00
Jakub Zych
85f0814e0a docs(phase-19.5): update tracking after wave 4 2026-10-21 02:15:44 +02:00
Jakub Zych
cdd647243c docs(19.5-04): complete unit tests, PHP map, security review and v0.1.1 plan 2026-10-21 02:15:06 +02:00
Jakub Zych
f38713f540 docs(19.5): close T-19.5-38 in the security review 2026-10-21 02:07:44 +02:00
Jakub Zych
1d5dc364dd test(19.5): gate TestPreAccountTakeover 2026-10-21 02:07:44 +02:00
Jakub Zych
cdddaa384f docs(phase-19.8): add pattern map 2026-10-21 02:07:08 +02:00
Jakub Zych
09fd4d0712 docs(phase-19.8): record post-research decisions D-23..D-30 2026-10-21 02:04:31 +02:00
Jakub Zych
e830298862 docs(19.5): security review and validation map 2026-10-21 01:35:09 +02:00
Jakub Zych
2c2ff81abd test(19.5): gate the PHP map
- sociallogin: TestPHPMethodMap
- docker: the five TestPHP* ports and TestChangePassword (the user-plugin
  row of the map)
2026-10-21 01:28:57 +02:00
Jakub Zych
52f17e41fc docs(19.5): capture the OAuth password-bootstrap todo 2026-10-21 01:28:24 +02:00
Jakub Zych
18598c17d7 test(19.5): gate the plugin unit tests
- sociallogin: TestRegistry, TestNormalizeFrontendCallback,
  TestNormalizeReturnTo, TestCodes, TestEmailVerified, TestGothProviders,
  TestErrorMessages
- docker: the eighteen Postgres-backed plugin unit tests, TestNOAuth,
  TestRegisterComplete and TestStateCookie among them
2026-10-21 01:21:10 +02:00
Jakub Zych
63a85a8a65 docs(phase-19.8): add research and validation strategy 2026-10-21 01:14:16 +02:00
Jakub Zych
6b8f0600c8 test(19.5): gate the framework and user-plugin unit tests
- go: TestPullConcurrent, TestPullExpired, TestPullPrefixIsolation
- userplugin: TestOAuthProviders
- docker: TestPullDocker, TestOAuthIdentitiesDestroyRule,
  TestOAuthIdentitiesDestroyRace, TestRegisterUserPasswordLess,
  TestFinishLogin, TestRegistrationExports
2026-10-21 00:51:25 +02:00
Jakub Zych
671d388ca1 test(cooler): Pull concurrency, expiry and prefix isolation
- TestPullConcurrent: 64 concurrent Pulls of one key, one winner, 20 rounds,
  on memory and miniredis
- TestPullExpired: an expired value is never returned and is gone afterwards
- TestPullPrefixIsolation: Pull touches only its own <prefix>cache:<key>
- TestPullDocker: the same on redis:7-alpine (GETDEL)
2026-10-21 00:45:33 +02:00
Jakub Zych
b4c0e0d2a2 test(19.5): fail-closed phase gate
- scripts/check-phase19.5.sh: go, userplugin, sociallogin, demo, bm,
  fonoteka, docker and docs stages across six repositories
- go test -json detector fails on a failed, skipped, missing or zero test;
  vitest detector requires oauth.test.ts and refuses skips
- additive user-plugin check against 4c5d3b8 and no updates/ change (D-22)
- --self-test proves the detectors and the docker NOT RUN rule
2026-10-21 00:38:55 +02:00
Jakub Zych
bc5a9dbc17 docs(19.8): capture phase context 2026-10-21 00:36:29 +02:00
Jakub Zych
877bf0a425 docs(phase-19.5): update tracking after wave 3
Claude-Session: https://claude.ai/code/session_01Wz3g1um1sz68zQJLpui4Qk
2026-10-21 00:30:31 +02:00
Jakub Zych
0a87d64d4e docs(19.5-03): complete adoption plan
sm-sociallogin-plugin mounted in sm-demo-app and sm-bm-app (Microsoft 365
with the frontend callback, consent and link-ticket views), fonoteka.go
pinned to sm-user-plugin v0.1.4. User setup for the Entra registration;
one unrelated fonoteka route-inventory failure deferred.
2026-10-21 00:30:00 +02:00
Jakub Zych
7f7f5fc171 docs(phase-19.5): update tracking after wave 2
Claude-Session: https://claude.ai/code/session_01Wz3g1um1sz68zQJLpui4Qk
2026-10-21 00:07:56 +02:00
Jakub Zych
ecc77a3f6b docs(19.5-02): complete social sign-in plugin plan
- sm-sociallogin-plugin v0.1.0 (private repo), pinned to summercms v0.3.1
  and sm-user-plugin v0.1.4, all pushed and tagged in D-21 order
- v0.3.1 changelog posted after the User-Agent fix (fix-ua)
2026-10-21 00:07:28 +02:00
Jakub Zych
c996790808 docs(roadmap): renumber console commands overhaul from phase 32 to 19.8 2026-10-21 00:01:24 +02:00
Jakub Zych
5cf5c4f0dc docs(roadmap): add phase 32 console commands overhaul v0.3.1 2026-10-20 23:58:13 +02:00
Jakub Zych
c4e5fef492 docs(phase-19.5): update tracking after wave 1
Claude-Session: https://claude.ai/code/session_01Wz3g1um1sz68zQJLpui4Qk
2026-10-20 23:31:20 +02:00
Jakub Zych
bda982c05b docs(19.5-01): complete social sign-in foundations plan
- goth v1.82.0 package check approved (Task 4 reply recorded)
- commits, exported identifiers for plan 02, Docker test runs, deviations

Claude-Session: https://claude.ai/code/session_01Wz3g1um1sz68zQJLpui4Qk
2026-10-20 23:30:54 +02:00
Jakub Zych
464f7fa0bb docs(19.5): close user-plugin console database todo 2026-10-20 23:07:22 +02:00
Jakub Zych
5e0a04e4da feat(cooler): Cache.Pull returns and removes a value atomically
- Cache.Pull(ctx, key) ([]byte, bool, error), Laravel's Cache::pull
- Redis driver runs GETDEL (Redis 6.2+); memory driver uses otter Compute
  with InvalidateOp under the per-key lock; expired keys report not found
- TestPullSmoke over the memory driver and miniredis, ExampleCache_Pull
- README and docs/services/caching.md ("One-time values")
2026-10-20 22:58:44 +02:00
Jakub Zych
26ebb6c98c docs(19.5): decide goth for social sign-in 2026-10-20 22:55:08 +02:00
Jakub Zych
c1ae1bb571 docs(todos): link the purge-env consumer todo to g15office az6inuma 2026-10-20 22:48:48 +02:00