omp-superagent 0.1.8 → 0.1.9

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 (104) hide show
  1. package/DESIGN.md +6 -2
  2. package/README.ko.md +12 -9
  3. package/README.md +13 -9
  4. package/THIRD_PARTY_NOTICES.md +8 -8
  5. package/docs/OPERATIONS.md +62 -20
  6. package/docs/design/execution.md +79 -14
  7. package/docs/design/messaging.md +66 -15
  8. package/docs/releases/0.1.9.md +18 -0
  9. package/gateway/bin/omp-gateway-darwin-arm64 +0 -0
  10. package/gateway/bin/omp-gateway-darwin-x64 +0 -0
  11. package/gateway/bin/omp-gateway-linux-arm64 +0 -0
  12. package/gateway/bin/omp-gateway-linux-x64 +0 -0
  13. package/host-owner/bin/notices/darwin-arm64/Cargo-LICENSES.txt +2 -0
  14. package/host-owner/bin/notices/darwin-arm64/Cargo-SOURCES.txt +2 -0
  15. package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  16. package/host-owner/bin/notices/darwin-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  17. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  18. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  19. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  20. package/host-owner/bin/notices/darwin-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  21. package/host-owner/bin/notices/darwin-x64/Cargo-LICENSES.txt +2 -0
  22. package/host-owner/bin/notices/darwin-x64/Cargo-SOURCES.txt +2 -0
  23. package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  24. package/host-owner/bin/notices/darwin-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  25. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  26. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  27. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  28. package/host-owner/bin/notices/darwin-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  29. package/host-owner/bin/notices/linux-arm64/Cargo-LICENSES.txt +3 -0
  30. package/host-owner/bin/notices/linux-arm64/Cargo-SOURCES.txt +3 -0
  31. package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  32. package/host-owner/bin/notices/linux-arm64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  33. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
  34. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  35. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  36. package/host-owner/bin/notices/linux-arm64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  37. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  38. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  39. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  40. package/host-owner/bin/notices/linux-arm64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  41. package/host-owner/bin/notices/linux-x64/Cargo-LICENSES.txt +3 -0
  42. package/host-owner/bin/notices/linux-x64/Cargo-SOURCES.txt +3 -0
  43. package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-APACHE +201 -0
  44. package/host-owner/bin/notices/linux-x64/crates/bitflags-2.13.2/LICENSE-MIT +25 -0
  45. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/COPYRIGHT +29 -0
  46. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-APACHE +201 -0
  47. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  48. package/host-owner/bin/notices/linux-x64/crates/linux-raw-sys-0.12.1/LICENSE-MIT +23 -0
  49. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/COPYRIGHT +29 -0
  50. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-APACHE +201 -0
  51. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-Apache-2.0_WITH_LLVM-exception +220 -0
  52. package/host-owner/bin/notices/linux-x64/crates/rustix-1.1.6/LICENSE-MIT +23 -0
  53. package/host-owner/bin/omp-host-owner-darwin-arm64 +0 -0
  54. package/host-owner/bin/omp-host-owner-darwin-x64 +0 -0
  55. package/host-owner/bin/omp-host-owner-linux-arm64 +0 -0
  56. package/host-owner/bin/omp-host-owner-linux-x64 +0 -0
  57. package/package.json +10 -8
  58. package/skills/head/SKILL.md +3 -11
  59. package/skills/head/references/routing.md +23 -17
  60. package/skills/head/references/supervision.md +13 -1
  61. package/skills/lane/references/workflow.md +8 -8
  62. package/src/cli.ts +4 -4
  63. package/src/contracts.ts +71 -7
  64. package/src/discord-command-registration.ts +34 -186
  65. package/src/extension.ts +22 -2
  66. package/src/gateway-client.ts +11 -59
  67. package/src/gateway-protocol.ts +35 -1
  68. package/src/head-recovery.ts +226 -17
  69. package/src/host-extension.ts +82 -9
  70. package/src/host-protocol.ts +5 -9
  71. package/src/lane-models.ts +8 -0
  72. package/src/managed-ulw-probe.ts +22 -20
  73. package/src/messenger-command-catalog.json +6 -3
  74. package/src/messenger-commands.ts +9 -2
  75. package/src/operator.ts +77 -0
  76. package/src/pr-github-schema.ts +2 -0
  77. package/src/pr-intake-automation.ts +1 -2
  78. package/src/pr-intake-comment.ts +1 -2
  79. package/src/pr-intake-fix.ts +1 -2
  80. package/src/pr-intake-github.ts +1 -2
  81. package/src/pr-intake-material.ts +1 -2
  82. package/src/pr-intake-tree.ts +1 -2
  83. package/src/pr-review-models.ts +28 -0
  84. package/src/result-attachment.ts +60 -79
  85. package/src/runtime.ts +1461 -254
  86. package/src/setup-profiles.ts +26 -65
  87. package/src/slack-command-registration.ts +48 -197
  88. package/src/store.ts +265 -45
  89. package/src/superkit-skills.ts +22 -0
  90. package/src/telegram-command-languages.json +17 -0
  91. package/src/telegram-command-registration.ts +32 -134
  92. package/src/worker-bridge.ts +21 -0
  93. package/src/worker-enrollment.ts +2 -1
  94. package/src/worker-host.ts +0 -24
  95. package/src/worker-serve-prepare.ts +19 -0
  96. package/src/worker-service.ts +51 -47
  97. package/scripts/ci.ts +0 -44
  98. package/scripts/release.ts +0 -112
  99. package/scripts/test-omp.sh +0 -44
  100. package/src/discord-commands.ts +0 -29
  101. package/src/discord-markdown.ts +0 -399
  102. package/src/slack-commands.ts +0 -18
  103. package/src/telegram-signal.ts +0 -14
  104. package/src/worker-stdio.ts +0 -61
@@ -195,6 +195,27 @@ not spend a saved reset or retry the original input; later inputs keep their
195
195
  durable order. The quota and credential contracts were checked against the
196
196
  [pinned OMP SDK](../../DESIGN.md#stock-omp-and-verification-scope).
197
197
 
198
+ Any other settled HEAD failure (`prompt_result` status `error`) whose exact
199
+ native run journal contains only its single prompt, failed model replies without
200
+ tool calls, native `provider_refusal` entries and usage records closes as
201
+ cancelled at settlement, with a failure notice and without replay. The same
202
+ receipt identity, run ordinal, session and file binding as the quota rule
203
+ applies. Automatic closure requires that the native session still be idle
204
+ after reading its journal and that every output have a terminal delivery
205
+ state. An outstanding native confirmation retains its original owner route
206
+ and delays settlement until the native dialog is answered or cancelled. An
207
+ input already held after a restart closes the same way during reconciliation;
208
+ after the settled receipt only usage records and native or extension `custom`
209
+ entries (for example `session_exit`) are tolerated, never a later message, run
210
+ or tool start.
211
+ A started tool, a steered follow-up, an unknown journal entry, an unreadable
212
+ journal, or a quota or quota-like refusal (even after a restart `session_exit`,
213
+ model change, or without a quota reader) keeps the input uncertain. That failure
214
+ notice names the exact `/resolve <input-id>`, and the first new owner message
215
+ held behind it atomically persists one hold notice and its marker naming the
216
+ blocking input. Later held messages receive no further notice for the same
217
+ blocker.
218
+
198
219
  `/resolve [input-id]` (`!resolve` in Slack) manually closes an uncertain head
199
220
  input as cancelled. A stalled lane exposes its exact input ID and queue blocker
200
221
  through `/status` or `lane_inspect`. Only the operator in the bound topic can use
@@ -295,10 +316,18 @@ See the [operations guide](../OPERATIONS.md#4-명령과-일상-사용) for comma
295
316
  threads, not edits, quoted text or attachments. DM and other adapters retain
296
317
  their existing topic behavior.
297
318
  - `/head <request>` explicitly addresses the shared coordination model (Slack:
298
- `!head` or `/superagent-head`). Its manager handoffs keep the original review
299
- path. Bound-topic commentary and final answers instead pass through the
300
- controller's source-bound outbox without a synthesis turn. Approval cards
301
- also stay with their original native session and authorized route.
319
+ `!head` or `/superagent-head`). Manager handoffs keep HEAD's review path.
320
+ When HEAD explicitly uses `lane_message` to continue an existing physical
321
+ Discord work thread from its exact authorized guild parent, the controller
322
+ records that thread as the handoff's progress and final report route. It
323
+ does not change the original input or borrow its parent message as a thread
324
+ reply. Replays preserve the recorded destination and do not send a parent
325
+ copy. Native approvals during HEAD's review still use the original parent
326
+ route, not the report's destination. Other routes, logical topics and
327
+ `/resume` retain their existing rules. Bound-topic commentary and final
328
+ answers instead pass through the controller's source-bound outbox without a
329
+ synthesis turn. Approval cards stay with their original native session and
330
+ authorized route.
302
331
  - Thread-first work sends a short kickoff to the selected topic. The durable
303
332
  `sent` receipt gates new lane dispatch and steering for that input. A missing
304
333
  or uncertain delivery is not a successful kickoff.
@@ -316,10 +345,12 @@ See the [operations guide](../OPERATIONS.md#4-명령과-일상-사용) for comma
316
345
  If a follow-up arrives before the native start event, that event rechecks
317
346
  pending inputs. An idle destination receives a new prompt.
318
347
  Match the full route including account, authority, thread and topic. A bound
319
- reply can join the kickoff initiated elsewhere only if the existing verified
320
- delivery route is this exact thread. A manager handoff keeps its HEAD review
321
- mode, with the verified reply route fixed for the joined run, including logical
322
- topics backed by native threads. Keep each source and native receipt distinct
348
+ reply can join a manager run initiated elsewhere only if its verified delivery
349
+ route is this exact thread. When steering another manager handoff into or from
350
+ a parent-origin thread follow-up, both source conversations and report routes
351
+ must match. A manager handoff keeps its HEAD review mode, with the verified
352
+ reply route fixed for the joined run, including logical topics backed by native
353
+ threads. Keep each source and native receipt distinct
323
354
  and deliver one result for a jointly handled cohort. History lookup verifies
324
355
  a joined reply's topic ownership and its own completed native receipt, not the
325
356
  manager's instructions or completion.
@@ -348,10 +379,25 @@ is not a native mutation receipt. The head requires the recorded sent receipt
348
379
  for the exact card before changing settings. Unselected cards expire after five
349
380
  minutes, on Gateway restart, or when a new menu of the same kind replaces them
350
381
  on the same route.
382
+ On Discord, the model card shows two selects: the destination (HEAD or the
383
+ lane bound to the opening conversation) and the provider/model browser. With
384
+ both destinations available the operator must pick one; without a bound lane
385
+ only HEAD is offered. Browsing providers or changing the destination is not a
386
+ model change. The card uses the lane's saved model for its checkmark, omitting
387
+ it when uncertain; browsing does not wait for a lane Host. Remote lanes offer
388
+ only identifiers their worker accepts; manual PR review lanes offer only
389
+ static-review-compatible models. Neither restriction filters the HEAD list.
390
+ The final model selection carries the destination with the saved card and
391
+ option indices. A stale lane selection cannot fall back to HEAD.
351
392
  The interaction pattern was compared with [Hermes Agent at 242315ce](https://github.com/NousResearch/hermes-agent/blob/242315ce571cde721e717a544cf8ae6c343315cf/gateway/slash_commands_model.py#L516-L567);
352
393
  the catalogue and mutation remain native OMP, and no upstream picker code is used.
353
394
 
354
- `/usage reset` chooses an exact linked account from the configured OMP profile.
395
+ The reset picker chooses an exact linked account from the configured OMP profile.
396
+ Discord accepts the argumentless `/usage-reset` command in its picker and in
397
+ authorized messages. `/usage` only reads quotas. The Gateway rejects stale
398
+ `/usage` interactions carrying options; HEAD refuses legacy `/usage reset`
399
+ messages as invalid controls, not model or lane requests. Edits cannot open
400
+ the reset picker. Telegram and Slack keep their existing reset syntax.
355
401
  The first click only changes the displayed card revision; Confirm on that
356
402
  revision is the only action that admits a reset request. Cancel closes the card
357
403
  without admitting any request. The head checks the original sent card and live
@@ -479,6 +525,9 @@ approval.
479
525
  API routes and metadata. Do not persist or surface credential URLs or
480
526
  follow redirects on private file downloads. Enforce byte limits end to end;
481
527
  an unknown size is not zero and a known size must match the bytes received.
528
+ Rust stages the authorized batch under the instance's private attachments
529
+ directory. The head receives file receipts, not a second copy of every
530
+ download over the Gateway socket; it still constructs the native image input.
482
531
  The adapters preserve audio metadata; they do not transcribe attachments.
483
532
  - An owner can authorize one specific result file with a standalone leading
484
533
  `attach: workspace/relative-file.ext` line. `result_attach` stages the exact
@@ -490,9 +539,11 @@ approval.
490
539
  hard links, dot paths and managed private state are excluded. Delivery uses
491
540
  the original authorized topic and stable outbox identity, with no destination
492
541
  override and no replay of uncertain sends. Restricted group rooms cannot
493
- use this feature. The private controller outbox stores the bounded immutable
494
- bytes; the Gateway attempt ledger stores their fingerprint and the receipt,
495
- not a second copy of the file.
542
+ use this feature. New outbox rows refer to a private snapshot made before
543
+ admission. The Gateway verifies its recorded identity and contents rather
544
+ than reopening the workspace path. Older queued inline attachments retain
545
+ their original delivery identity; moving the bytes does not authorize a
546
+ second upload after an uncertain send.
496
547
  - Long outputs use a single bounded text attachment where supported. Discord
497
548
  first splits an over-limit reply at paragraph, line, then space boundaries
498
549
  into at most five ordered messages of up to 2,000 UTF-16 units, closing and
@@ -554,9 +605,9 @@ approval.
554
605
  An Image needs a valid HTTPS URL. A spec that is
555
606
  invalid, uses another component, reuses an element or exceeds Discord's embed
556
607
  limits stays verbatim as its code block, which is also what Telegram and Slack
557
- show. The [Rust renderer](../../gateway/src/discord/embeds.rs) and
558
- [`extractDiscordCards`](../../src/discord-markdown.ts) share one
559
- [fixture](../../test/fixtures/discord-cards.json).
608
+ show. The [Rust renderer](../../gateway/src/discord/embeds.rs) and the
609
+ [test-only Bun renderer](../../test/oracles/bun-gateway/discord-markdown.ts)
610
+ share one [fixture](../../test/fixtures/discord-cards.json).
560
611
 
561
612
  ## Discord voice
562
613
 
@@ -0,0 +1,18 @@
1
+ # omp-superagent 0.1.9
2
+
3
+ - **Change the model for a Discord work thread.** Open `/model` and select HEAD or the lane bound to that thread. A verified lane quota failure pauses that lane's queue and notifies the original conversation without starting a HEAD turn or replaying the failed request. OMP's temporary retry fallback does not overwrite the lane's configured choice (#50).
4
+ - **A tool-free HEAD failure no longer stalls the queue.** When the exact native journal proves the request failed before any tool started, HEAD can close it without replay and move on. Quota failures still require recovery evidence. For uncertain effects, the notice identifies the exact `/resolve <input-id>` to use after checking what happened (#54).
5
+ - **Discord now uses `/usage-reset`.** `/usage` is read-only and takes no options. `/usage-reset` opens the account picker; spending a ticket still requires confirmation. Telegram and Slack command syntax is unchanged. Reopened lane work sends progress and the final answer to the original work thread while keeping the original approval route (#52, #53).
6
+ - **Native Gateway handles more I/O.** Avatar updates, messenger command registration, SSH relay, and attachment staging move to Rust. Inbound attachments are staged in a private directory and checked against Gateway receipts before use. The npm package still includes native binaries for macOS and Linux on arm64 and x64.
7
+ - **Current omp-superkit layouts install cleanly.** Managed setup checks canonical `super` and `super-*` skills and their command pointers while preserving valid legacy revisions.
8
+
9
+ ## Install or upgrade
10
+
11
+ ```sh
12
+ bun add --global --trust omp-superagent@0.1.9
13
+ omp-sa --help
14
+ ```
15
+
16
+ Alternatively, use `npm install --global omp-superagent@0.1.9` with Bun 1.4.4 or later on `PATH`. OMP is installed separately; CI uses stock OMP 19.1.1. Installing does not restart a running Gateway. Before re-registering Discord commands, update both Gateway and HEAD, then check that Discord `/help` lists `/usage-reset`.
17
+
18
+ [Changes since 0.1.8](https://github.com/dbc-hbin/omp-superagent/compare/v0.1.8...v0.1.9) · [Operations guide](https://github.com/dbc-hbin/omp-superagent/blob/v0.1.9/docs/OPERATIONS.md)
Binary file
Binary file
Binary file
@@ -1,5 +1,6 @@
1
1
  anyhow-1.0.104: MIT OR Apache-2.0
2
2
  base64-0.22.1: MIT OR Apache-2.0
3
+ bitflags-2.13.2: MIT OR Apache-2.0
3
4
  bytes-1.12.2: MIT
4
5
  cfg-if-1.0.5: MIT OR Apache-2.0
5
6
  equivalent-1.0.3: Apache-2.0 OR MIT
@@ -15,6 +16,7 @@ mio-1.2.5: MIT
15
16
  pin-project-lite-0.2.18: Apache-2.0 OR MIT
16
17
  proc-macro2-1.0.107: MIT OR Apache-2.0
17
18
  quote-1.0.47: MIT OR Apache-2.0
19
+ rustix-1.1.6: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
18
20
  serde-1.0.229: MIT OR Apache-2.0
19
21
  serde_core-1.0.229: MIT OR Apache-2.0
20
22
  serde_derive-1.0.229: MIT OR Apache-2.0
@@ -1,5 +1,6 @@
1
1
  anyhow-1.0.104: https://static.crates.io/crates/anyhow/anyhow-1.0.104.crate
2
2
  base64-0.22.1: https://static.crates.io/crates/base64/base64-0.22.1.crate
3
+ bitflags-2.13.2: https://static.crates.io/crates/bitflags/bitflags-2.13.2.crate
3
4
  bytes-1.12.2: https://static.crates.io/crates/bytes/bytes-1.12.2.crate
4
5
  cfg-if-1.0.5: https://static.crates.io/crates/cfg-if/cfg-if-1.0.5.crate
5
6
  equivalent-1.0.3: https://static.crates.io/crates/equivalent/equivalent-1.0.3.crate
@@ -15,6 +16,7 @@ mio-1.2.5: https://static.crates.io/crates/mio/mio-1.2.5.crate
15
16
  pin-project-lite-0.2.18: https://static.crates.io/crates/pin-project-lite/pin-project-lite-0.2.18.crate
16
17
  proc-macro2-1.0.107: https://static.crates.io/crates/proc-macro2/proc-macro2-1.0.107.crate
17
18
  quote-1.0.47: https://static.crates.io/crates/quote/quote-1.0.47.crate
19
+ rustix-1.1.6: https://static.crates.io/crates/rustix/rustix-1.1.6.crate
18
20
  serde-1.0.229: https://static.crates.io/crates/serde/serde-1.0.229.crate
19
21
  serde_core-1.0.229: https://static.crates.io/crates/serde_core/serde_core-1.0.229.crate
20
22
  serde_derive-1.0.229: https://static.crates.io/crates/serde_derive/serde_derive-1.0.229.crate
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,25 @@
1
+ Copyright (c) 2014 The Rust Project Developers
2
+
3
+ Permission is hereby granted, free of charge, to any
4
+ person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the
6
+ Software without restriction, including without
7
+ limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software
10
+ is furnished to do so, subject to the following
11
+ conditions:
12
+
13
+ The above copyright notice and this permission notice
14
+ shall be included in all copies or substantial portions
15
+ of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
+ DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ Short version for non-lawyers:
2
+
3
+ `rustix` is triple-licensed under Apache 2.0 with the LLVM Exception,
4
+ Apache 2.0, and MIT terms.
5
+
6
+
7
+ Longer version:
8
+
9
+ Copyrights in the `rustix` project are retained by their contributors.
10
+ No copyright assignment is required to contribute to the `rustix`
11
+ project.
12
+
13
+ Some files include code derived from Rust's `libstd`; see the comments in
14
+ the code for details.
15
+
16
+ Except as otherwise noted (below and/or in individual files), `rustix`
17
+ is licensed under:
18
+
19
+ - the Apache License, Version 2.0, with the LLVM Exception
20
+ <LICENSE-Apache-2.0_WITH_LLVM-exception> or
21
+ <http://llvm.org/foundation/relicensing/LICENSE.txt>
22
+ - the Apache License, Version 2.0
23
+ <LICENSE-APACHE> or
24
+ <http://www.apache.org/licenses/LICENSE-2.0>,
25
+ - or the MIT license
26
+ <LICENSE-MIT> or
27
+ <http://opensource.org/licenses/MIT>,
28
+
29
+ at your option.
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.