BT

butteredstardust/twaco

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

0 stars 0 forks 품질 66 트렌드 20MIT

A CLI and MCP utility for working with tw and AI agents

개요

ThingWorx keeps a solution's code inside entity XML: every service script sits in a CDATA section of a Thing, ThingTemplate or ThingShape export. That is hard to edit, review, diff or hand to an AI agent. twaco is a single command-line binary that makes the repository the source of truth: - twaco extract writes every service script, DataShape, mashup and DataTable configuration out to sidecar files. twaco sync writes them back byte for byte, touching nothing else in the XML. - twaco check runs every gate in one pass: sidecars in sync, formatting, script traps the Rhino engine punishes, project validation and your own hooks. twaco types --check type-checks every service against the entities' declarations with TypeScript. - twaco deploy bundles per project in dependency order, has the server parse every script, and refuses when someone changed the server since your last deploy.

README

원문 README의 일부입니다. 원문 보기.


ThingWorx keeps a solution’s code inside entity XML, with every service script in a CDATA section. That is hard to edit, review, diff or hand to an AI agent. twaco makes your repository the source of truth: edit scripts as plain files, check them offline, and deploy without overwriting anyone else’s work. It is one binary for Windows, Linux and macOS, with no runtime to install.

What you can do

  • Edit scripts as files. extract writes service scripts, DataShape fields, mashups and DataTable settings to files under src/; sync puts them back, changing nothing else.
  • Start from what you have. init sets up a repository from a folder of exports, or with --from-server from projects on a server; entity pull takes in later server changes.
  • Build without Composer. new creates Things, templates, shapes, DataShapes, DataTables, timers, styles, menus and more; thing edits services, properties and subscriptions; mashup builds mashups from templates, with widgets, bindings and events.
  • Refactor safely. rename, move and copy follow every reference through entities, scripts and mashups, and show the plan first.
  • Understand before you change. catalog shows a service’s signature and script, impact what a change reaches, trace how callers use a service, unused what nothing uses, and docs writes the solution up as Markdown.
  • Catch problems before the server does. check runs every gate in one pass: sidecars in sync, formatting, script traps, mashup bindings, localization tokens, structure against ThingWorx’s export schema, and your own hooks. types --check type-checks scripts.
  • Deploy without clobbering. deploy has the server parse every script, refuses when someone changed an entity since your last deploy, and reads back what it imported.
  • Take in a designer’s work. adopt compares a Composer export with the repository and shows only what really changed.
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →