@sdlcai/setup 1.2.0 → 1.3.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.
- package/LICENSE +21 -0
- package/README.md +11 -8
- package/bin/cli.mjs +6 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Fabio Sabatini
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
# @sdlcai/setup
|
|
2
2
|
|
|
3
|
-
One command to install private **Avanade**
|
|
4
|
-
|
|
3
|
+
One command to install dev-tool assets: private **Avanade** assets (the AVA agents, mnemo, …),
|
|
4
|
+
behind a GitHub login and an org access gate, and public ones such as `memiq-public` (MIT, local only),
|
|
5
|
+
which skip the gate.
|
|
5
6
|
|
|
6
7
|
```bash
|
|
7
8
|
npm i -g @sdlcai/setup # once (public, no auth)
|
|
8
9
|
sdlcai ava-custom-agents
|
|
9
10
|
sdlcai mnemo -- --local --scope user --project acme --yes
|
|
11
|
+
sdlcai memiq-public --yes # public edition: local install only
|
|
10
12
|
# or, where npx is healthy: npx @sdlcai/setup ava-custom-agents
|
|
11
13
|
```
|
|
12
14
|
|
|
13
15
|
## What it does
|
|
14
16
|
1. **GitHub browser login** (via `gh` — passkey / 2FA).
|
|
15
|
-
2. **Verifies access** to the `Avanade-Region-ICEG` org (read-only pre-flight gate).
|
|
17
|
+
2. **Verifies access** to the `Avanade-Region-ICEG` org (read-only pre-flight gate) — private assets only.
|
|
16
18
|
3. **Configures GitHub Packages auth** in your `~/.npmrc`.
|
|
17
19
|
4. **Runs the asset's own installer.**
|
|
18
20
|
|
|
19
|
-
No OAuth App to register, no org-admin actions — `gh` is GitHub's own trusted CLI. The assets
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
No OAuth App to register, no org-admin actions — `gh` is GitHub's own trusted CLI. The private assets
|
|
22
|
+
stay on GitHub Packages; the real security boundary remains each package's own access control.
|
|
23
|
+
The public assets are on GitHub Packages too, so they still need a GitHub account and a token.
|
|
22
24
|
|
|
23
25
|
## Prerequisites
|
|
24
26
|
- **Node.js ≥ 18**
|
|
25
27
|
- **GitHub CLI (`gh`)** — https://cli.github.com (`winget install GitHub.cli` · `brew install gh`)
|
|
26
|
-
- A GitHub account
|
|
28
|
+
- A GitHub account. Private assets also require access to **`Avanade-Region-ICEG`**.
|
|
27
29
|
|
|
28
30
|
## Assets
|
|
29
31
|
| asset | installs |
|
|
30
32
|
|---|---|
|
|
31
33
|
| `ava-custom-agents` (alias `ava-agents`) | `@avanade-region-iceg/ava-agents install` |
|
|
32
34
|
| `mnemo` (alias `ava-mem`, `memiq`) | `@avanade-region-iceg/mnemo-setup` |
|
|
35
|
+
| `memiq-public` | `@fsabatini82/memiq` — public edition (MIT): local install only, rejects `--url`, `--token`, `--demo` |
|
|
33
36
|
| `gh-mnemo` | `@avanade-region-iceg/gh-mnemo` |
|
|
34
|
-
| `ba-agents` | `@fsabatini82/ba-agents install` |
|
|
37
|
+
| `ba-agents` | `@fsabatini82/ba-agents install` (public, MIT) |
|
|
35
38
|
| `meet2spec` | `@avanade-region-iceg/meet2spec` |
|
|
36
39
|
|
|
37
40
|
Everything after the asset name is passed through to its installer (use `--` to separate).
|
package/bin/cli.mjs
CHANGED
|
@@ -27,6 +27,8 @@ const ASSETS = {
|
|
|
27
27
|
'gh-mnemo': { pkg: '@avanade-region-iceg/gh-mnemo', args: [], label: 'mnemo gh extension' },
|
|
28
28
|
'ba-agents': { pkg: '@fsabatini82/ba-agents', scope: '@fsabatini82', args: ['install'], label: 'BA Expert agents', gated: false },
|
|
29
29
|
'meet2spec': { pkg: '@avanade-region-iceg/meet2spec', args: [], label: 'meet2spec (meeting recorder)' },
|
|
30
|
+
// memiq public edition (GitHub Packages, user scope): local install only, no org gate
|
|
31
|
+
'memiq-public': { pkg: '@fsabatini82/memiq', scope: '@fsabatini82', args: ['--local'], forbid: ['--url', '--token', '--demo'], label: 'memiq (AVA memory, local only)', gated: false },
|
|
30
32
|
};
|
|
31
33
|
|
|
32
34
|
const WIN = process.platform === 'win32';
|
|
@@ -128,6 +130,10 @@ function main() {
|
|
|
128
130
|
const rest = argv.slice(1);
|
|
129
131
|
const passthrough = rest[0] === '--' ? rest.slice(1) : rest;
|
|
130
132
|
|
|
133
|
+
// an edition that is local-only refuses cloud flags here, before any login or install
|
|
134
|
+
const refused = (target.forbid || []).filter((f) => passthrough.some((x) => x === f || x.startsWith(`${f}=`)));
|
|
135
|
+
if (refused.length) die(`${asset} installs local only; not allowed: ${refused.join(', ')}`);
|
|
136
|
+
|
|
131
137
|
const scope = target.scope || DEFAULT_SCOPE;
|
|
132
138
|
|
|
133
139
|
ensureGh();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdlcai/setup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "One-command bootstrap for private Avanade dev-tool assets (AVA agents, mnemo, …): GitHub browser login + Avanade-Region-ICEG access gate + install.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|