@usejunior/safe-docx 0.0.1 → 0.1.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/README.md CHANGED
@@ -1,45 +1,28 @@
1
1
  # @usejunior/safe-docx
2
2
 
3
- ## ⚠️ IMPORTANT NOTICE ⚠️
3
+ [![npm version](https://img.shields.io/npm/v/%40usejunior%2Fsafe-docx)](https://www.npmjs.com/package/@usejunior/safe-docx)
4
+ [![CI](https://github.com/UseJunior/safe-docx/actions/workflows/ci.yml/badge.svg)](https://github.com/UseJunior/safe-docx/actions/workflows/ci.yml)
5
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/UseJunior/safe-docx/blob/main/LICENSE)
4
6
 
5
- **This package is created solely for the purpose of setting up OIDC (OpenID Connect) trusted publishing with npm.**
7
+ Canonical npm install name for Safe Docx MCP workflows.
6
8
 
7
- This is **NOT** a functional package and contains **NO** code or functionality beyond the OIDC setup configuration.
9
+ Use this package when you want coding agents to perform surgical edits on existing Word `.docx` documents with formatting preservation.
8
10
 
9
- ## Purpose
11
+ ## Install and Run
10
12
 
11
- This package exists to:
12
- 1. Configure OIDC trusted publishing for the package name `@usejunior/safe-docx`
13
- 2. Enable secure, token-less publishing from CI/CD workflows
14
- 3. Establish provenance for packages published under this name
13
+ ```bash
14
+ npx -y @usejunior/safe-docx
15
+ ```
15
16
 
16
- ## What is OIDC Trusted Publishing?
17
+ Implementation is provided by `@usejunior/docx-mcp`; this package re-exports the public API and CLI entrypoint under the canonical name.
17
18
 
18
- OIDC trusted publishing allows package maintainers to publish packages directly from their CI/CD workflows without needing to manage npm access tokens. Instead, it uses OpenID Connect to establish trust between the CI/CD provider (like GitHub Actions) and npm.
19
+ ## Scope
19
20
 
20
- ## Setup Instructions
21
+ `@usejunior/safe-docx` is focused on brownfield editing of existing `.docx` files.
21
22
 
22
- To properly configure OIDC trusted publishing for this package:
23
+ If your primary use case is creating new documents from scratch, use generation-oriented packages such as [`docx`](https://www.npmjs.com/package/docx).
23
24
 
24
- 1. Go to [npmjs.com](https://www.npmjs.com/) and navigate to your package settings
25
- 2. Configure the trusted publisher (e.g., GitHub Actions)
26
- 3. Specify the repository and workflow that should be allowed to publish
27
- 4. Use the configured workflow to publish your actual package
25
+ ## Full Docs
28
26
 
29
- ## DO NOT USE THIS PACKAGE
30
-
31
- This package is a placeholder for OIDC configuration only. It:
32
- - Contains no executable code
33
- - Provides no functionality
34
- - Should not be installed as a dependency
35
- - Exists only for administrative purposes
36
-
37
- ## More Information
38
-
39
- For more details about npm's trusted publishing feature, see:
40
- - [npm Trusted Publishing Documentation](https://docs.npmjs.com/generating-provenance-statements)
41
- - [GitHub Actions OIDC Documentation](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect)
42
-
43
- ---
44
-
45
- **Maintained for OIDC setup purposes only**
27
+ - `packages/docx-mcp/README.md`
28
+ - `packages/docx-mcp/docs/tool-reference.generated.md`
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import { runCli } from '@usejunior/docx-mcp';
3
+
4
+ runCli(process.argv).catch((err) => {
5
+ // eslint-disable-next-line no-console
6
+ console.error(err);
7
+ process.exit(1);
8
+ });
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@usejunior/docx-mcp';
package/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from '@usejunior/docx-mcp';
package/package.json CHANGED
@@ -1,10 +1,68 @@
1
1
  {
2
2
  "name": "@usejunior/safe-docx",
3
- "version": "0.0.1",
4
- "description": "OIDC trusted publishing setup package for @usejunior/safe-docx",
3
+ "version": "0.1.1",
4
+ "description": "Canonical npm package for the Safe Docx MCP server and CLI",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./index.d.ts",
11
+ "import": "./index.js",
12
+ "default": "./index.js"
13
+ }
14
+ },
15
+ "scripts": {
16
+ "build": "node -e \"console.log('safe-docx wrapper package: no build step required')\"",
17
+ "lint": "node -e \"process.exit(0)\"",
18
+ "test": "npm run test:run",
19
+ "test:run": "npm run build -w @usejunior/docx-mcp && node ./bin/safe-docx.js --help > /dev/null",
20
+ "prepack": "npm run test:run"
21
+ },
22
+ "bin": {
23
+ "safe-docx": "./bin/safe-docx.js",
24
+ "safedocx": "./bin/safe-docx.js"
25
+ },
26
+ "dependencies": {
27
+ "@usejunior/docx-mcp": "^0.1.1"
28
+ },
29
+ "engines": {
30
+ "node": ">=18.0.0"
31
+ },
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "https://github.com/UseJunior/safe-docx"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "files": [
40
+ "bin",
41
+ "index.js",
42
+ "index.d.ts",
43
+ "README.md"
44
+ ],
45
+ "license": "MIT",
5
46
  "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
47
+ "mcp",
48
+ "mcp-server",
49
+ "model-context-protocol",
50
+ "docx",
51
+ "word",
52
+ "document-editing",
53
+ "tracked-changes",
54
+ "document-comparison",
55
+ "ai",
56
+ "llm",
57
+ "formatting-preservation",
58
+ "ooxml",
59
+ "serverless",
60
+ "cloudflare-workers",
61
+ "edge",
62
+ "vercel"
63
+ ],
64
+ "homepage": "https://github.com/UseJunior/safe-docx/tree/main/packages/safe-docx",
65
+ "bugs": {
66
+ "url": "https://github.com/UseJunior/safe-docx/issues"
67
+ }
10
68
  }