@n24q02m/workspace 0.9.0 → 0.9.1-beta.1

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.
Files changed (55) hide show
  1. package/NOTICE +11 -5
  2. package/bin/cli.mjs +52 -52
  3. package/build/src/cli/tools.integration.test.js +26 -5
  4. package/build/src/cli/tools.integration.test.js.map +1 -1
  5. package/build/src/docs/docs.md +5 -1
  6. package/build/src/docs/overview.md +14 -0
  7. package/build/src/services/FormsService.d.ts +4 -4
  8. package/build/src/services/FormsService.js +4 -4
  9. package/build/src/services/FormsService.test.js +3 -3
  10. package/build/src/services/FormsService.test.js.map +1 -1
  11. package/build/src/tools/domains/error-payload.test.d.ts +2 -0
  12. package/build/src/tools/domains/error-payload.test.d.ts.map +1 -0
  13. package/build/src/tools/domains/error-payload.test.js +94 -0
  14. package/build/src/tools/domains/error-payload.test.js.map +1 -0
  15. package/build/src/tools/domains/factory.d.ts.map +1 -1
  16. package/build/src/tools/domains/factory.js +27 -1
  17. package/build/src/tools/domains/factory.js.map +1 -1
  18. package/build/src/tools/domains/factory.test.js +41 -0
  19. package/build/src/tools/domains/factory.test.js.map +1 -1
  20. package/build/src/vendored/services/CalendarService.d.ts.map +1 -1
  21. package/build/src/vendored/services/CalendarService.js +19 -15
  22. package/build/src/vendored/services/CalendarService.js.map +1 -1
  23. package/build/src/vendored/services/CalendarService.test.d.ts +2 -0
  24. package/build/src/vendored/services/CalendarService.test.d.ts.map +1 -0
  25. package/build/src/vendored/services/CalendarService.test.js +1227 -0
  26. package/build/src/vendored/services/CalendarService.test.js.map +1 -0
  27. package/build/src/vendored/services/CalendarValidation.test.d.ts +2 -0
  28. package/build/src/vendored/services/CalendarValidation.test.d.ts.map +1 -0
  29. package/build/src/vendored/services/CalendarValidation.test.js +312 -0
  30. package/build/src/vendored/services/CalendarValidation.test.js.map +1 -0
  31. package/build/src/vendored/services/ChatService.test.d.ts +2 -0
  32. package/build/src/vendored/services/ChatService.test.d.ts.map +1 -0
  33. package/build/src/vendored/services/ChatService.test.js +505 -0
  34. package/build/src/vendored/services/ChatService.test.js.map +1 -0
  35. package/build/src/vendored/services/DocsService.d.ts.map +1 -1
  36. package/build/src/vendored/services/DocsService.js +6 -1
  37. package/build/src/vendored/services/DocsService.js.map +1 -1
  38. package/build/src/vendored/services/DocsService.test.js +943 -5
  39. package/build/src/vendored/services/DocsService.test.js.map +1 -1
  40. package/build/src/vendored/services/DriveService.test.js +797 -9
  41. package/build/src/vendored/services/DriveService.test.js.map +1 -1
  42. package/build/src/vendored/services/SheetsService.test.js +328 -0
  43. package/build/src/vendored/services/SheetsService.test.js.map +1 -1
  44. package/build/src/vendored/utils/MimeHelper.test.js +329 -0
  45. package/build/src/vendored/utils/MimeHelper.test.js.map +1 -1
  46. package/build/src/vendored/utils/validation.d.ts.map +1 -1
  47. package/build/src/vendored/utils/validation.js +10 -1
  48. package/build/src/vendored/utils/validation.js.map +1 -1
  49. package/build/src/vendored/utils/validation.test.d.ts +2 -0
  50. package/build/src/vendored/utils/validation.test.d.ts.map +1 -0
  51. package/build/src/vendored/utils/validation.test.js +260 -0
  52. package/build/src/vendored/utils/validation.test.js.map +1 -0
  53. package/build/tsconfig.tsbuildinfo +1 -1
  54. package/npm-shrinkwrap.json +2 -2
  55. package/package.json +1 -1
package/NOTICE CHANGED
@@ -11,9 +11,9 @@ src/vendored/ is listed in exactly one section (a test enforces it). The script
11
11
  list is unparseable or names a file that is not on disk -- an empty list would otherwise read as
12
12
  "nothing is protected" and overwrite every fork in silence.
13
13
 
14
- `vitest.config.ts` reads the same lists: the files that are ours (the last two sections) count
15
- toward the 95% coverage gate; byte-identical and forked files do not, since most of their code is
16
- still upstream's.
14
+ `vitest.config.ts` reads the same lists: forked files and the files that are ours (the last two
15
+ sections) count toward the 95% coverage gate; byte-identical files do not, since every sync
16
+ overwrites them.
17
17
 
18
18
  ## Files kept byte-identical with upstream
19
19
 
@@ -36,11 +36,15 @@ as CONFLICT and leaves them alone; whoever syncs merges them by hand:
36
36
 
37
37
  - src/vendored/services/DocsService.ts — BOUNDS: `getText` caps the returned text
38
38
  (20,000 characters by default, 1–100,000 via `limit`, 2,000 via `preview`) and ends a cut body with the
39
- shared truncation marker that names its true size.
39
+ shared truncation marker that names its true size. FIX: `formatText` looked the style up in
40
+ lower case, so the `normalText` key never matched and `normalText` was silently ignored;
41
+ `replaceText` rejects an empty `findText`, which matched at every index and never advanced.
40
42
  - src/vendored/services/DriveService.ts — SECURITY: Prevent path traversal in relative localPath; BOUNDS:
41
43
  `getComments` takes `pageSize`/`pageToken` and returns `nextPageToken` instead of a bare array that
42
44
  dropped the cursor.
43
45
  - src/vendored/services/CalendarService.ts — PERFORMANCE: Using Date.parse() instead of new Date().getTime() skips object allocation and reduces GC pressure; BOUNDS: `listEvents` takes `maxResults`/`pageToken` and returns `{events, nextPageToken}` instead of a bare array that dropped the cursor.
46
+ FIX: Google error text no longer prints `undefined` for a field error without a message, and
47
+ keeps the top-level message when no field error carries any text.
44
48
  - src/vendored/utils/MimeHelper.ts — the multipart boundary suffix could be empty
45
49
  (`.substring(7)` on a short `Math.random().toString(36)`, e.g. 0.5 -> "0.i"), so two messages
46
50
  built in the same millisecond collided on their boundary. Now a randomUUID-derived suffix.
@@ -48,7 +52,9 @@ as CONFLICT and leaves them alone; whoever syncs merges them by hand:
48
52
  - src/vendored/services/SheetsService.ts — getText read N tabs in N `values.get` calls; now one
49
53
  `values.batchGet` with a per-range fallback that preserves partial success. Sheet names are
50
54
  also quote-escaped so a tab named `It's here` yields a parseable A1 range.
51
- - src/vendored/utils/validation.ts — optimization: Date.parse vs new Date().getTime()
55
+ - src/vendored/utils/validation.ts — optimization: Date.parse vs new Date().getTime(); FIX:
56
+ `iso8601DateTimeSchema` rejects a day past the end of its month (`2026-02-30`), which
57
+ Date.parse rolled over into the next month.
52
58
  - src/vendored/services/ChatService.ts — BOUNDS: `listSpaces` takes `pageSize`/`pageToken` and returns
53
59
  `{spaces, nextPageToken}` instead of a bare array that dropped the cursor.
54
60