omp-worklog 0.19.1 → 0.19.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 733feda424376e57c3f5f55adc5bf5167e727a7a8c2fe0b103836f912234e205
4
- data.tar.gz: 176a9193299e1e681043f49ab9a951e76091d6a8dbbd3007a3e6b0a0699df7f8
3
+ metadata.gz: 72ad13433158b49f216ffe38be0ed161225870fa47b37eadd6d3c2b8894890f5
4
+ data.tar.gz: 5a281e824e6185cdc75bd71201bae38934aba96080730d6e5e497ebbe77a6896
5
5
  SHA512:
6
- metadata.gz: 682cd810d7a5bde2382349b452ccc7d04be7d12f185d20a55658bbb7377f0aafe323bf5fc514654bcde7a0f2cc68ea838a0d521ff216f73848571eb21e85773b
7
- data.tar.gz: 31d744a2b3535ff5b2f630f0e1ccf8da31243bfef7cff697ad6728f4be02d8f37eddc0e27b3b6e3fd6a3771524802177fd5fc298371a4f4f30183aa1222ea087
6
+ metadata.gz: 4ef97e337e7d1db724f8c1728001936deea6ef7b7395bfcb9cc4ee17d5b518c82731bb3157464a87faf0f3439a1dc7054da4ad0d2887c2a2f4138543cf4d1d74
7
+ data.tar.gz: a211d467c1dec13b17ed5c874da613c1c3a5fd21e921ec0edd403f3e27cbdf525721a428a384703ee787fae1da8423dcfbe8fc846ddb6ef17bc0c50e41816349
data/README.md CHANGED
@@ -54,7 +54,7 @@ The `work-entry` command checks for existing or locked entries for its project,
54
54
 
55
55
  ### Live thread time
56
56
 
57
- With OMP Project Time 9.7.0 or newer installed, Worklog shows `Dev TODAY / TOTAL total · Agent TODAY / TOTAL total — project/activity` in normal foreground contrast. The first value is the current local calendar day's observed hours; the second is retained history for this thread and project. **Dev** is prompt-active evidence; **Agent** is agent-run elapsed evidence. Decimal hours use at most one decimal place, omit `.0`, and show positive durations below the rounding threshold as `<0.1h`. Trailing context is shortened before either source's hour values. The display omits seconds, plugin/thread labels, and running/paused markers.
57
+ With OMP Project Time 9.7.0 or newer installed, Worklog shows separate Dev and Agent counters. Each shows today’s hours and the retained total for this thread and project. **Dev** measures prompt-active time; **Agent** measures agent-run elapsed time. Values use at most one decimal place and show positive durations below the rounding threshold as `<0.1h`.
58
58
 
59
59
  Worklog receives versioned live snapshots from Project Time through OMP's extension event bus. It does not run a second activity clock or alter the evidence ledger. Project Time hides its standalone status while Worklog owns presentation, and keeps its standalone display when Worklog is absent. Missing or incompatible daily evidence shows unavailable counters, never lifetime hours relabelled as today. Developer and agent observations remain separate, not a combined total, desk-time certification, cost estimate, or billing approval.
60
60
 
@@ -206,6 +206,15 @@ Version `0.14.3` renames the OMP slash command from `/omp-worklog` to `/worklog`
206
206
  - Reject impossible calendar dates in transform ranges.
207
207
  - Document configuration activation limits, runtime ownership, and private calibration.
208
208
 
209
+ ## Lint changed files
210
+
211
+ Install development dependencies with `npm ci` and `bundle install`. Pass the files you changed to the matching non-fixing checker:
212
+
213
+ ```sh
214
+ npm exec -- oxlint test/live-status.test.js
215
+ bundle exec rubocop lib/omp_worklog/version.rb
216
+ ```
217
+
209
218
  ## Release
210
219
 
211
220
  Before merging a release PR, self-review its complete diff, address every actionable review comment, and rerun focused QA after fixups. Record the review and QA evidence on the PR. Then merge to `main`, build and publish the Ruby gem, install the released OMP plugin from GitHub, and verify it:
@@ -76,10 +76,7 @@ module OmpWorklog
76
76
 
77
77
  emit_result(result)
78
78
  successful_result?(result) ? 0 : 1
79
- rescue InputError => error
80
- emit_failure(@dry_run ? "preflight" : "submit", error.code)
81
- 1
82
- rescue ProviderFailure => error
79
+ rescue InputError, ProviderFailure => error
83
80
  emit_failure(@dry_run ? "preflight" : "submit", error.code)
84
81
  1
85
82
  rescue OptionParser::ParseError
@@ -545,7 +542,8 @@ module OmpWorklog
545
542
  end
546
543
 
547
544
  def numeric_hours?(hours, milliseconds)
548
- hours.is_a?(Numeric) && hours == milliseconds / 3_600_000.0
545
+ # A near match must not reconcile a different provider entry.
546
+ hours.is_a?(Numeric) && hours == milliseconds / 3_600_000.0 # rubocop:disable Lint/FloatComparison
549
547
  end
550
548
 
551
549
  def id_string(value)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OmpWorklog
4
- VERSION = "0.19.1"
4
+ VERSION = "0.19.2"
5
5
  end
data/omp-worklog.rb CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omp-worklog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marlen Brunner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-28 00:00:00.000000000 Z
11
+ date: 2026-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: marlens-harvest-api-v2