@assemblyline-agents/cli 5.0.10 → 6.0.0

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 (93) hide show
  1. package/authoring/skills/assembly-line-authoring/SKILL.md +24 -21
  2. package/dist/add.d.ts +2 -13
  3. package/dist/add.d.ts.map +1 -1
  4. package/dist/add.js +169 -478
  5. package/dist/add.js.map +1 -1
  6. package/dist/args.d.ts.map +1 -1
  7. package/dist/args.js +1 -2
  8. package/dist/args.js.map +1 -1
  9. package/dist/auth.d.ts +1 -2
  10. package/dist/auth.d.ts.map +1 -1
  11. package/dist/auth.js +38 -45
  12. package/dist/auth.js.map +1 -1
  13. package/dist/channels.d.ts +7 -30
  14. package/dist/channels.d.ts.map +1 -1
  15. package/dist/channels.js +21 -161
  16. package/dist/channels.js.map +1 -1
  17. package/dist/deploy-definition.d.ts +1 -8
  18. package/dist/deploy-definition.d.ts.map +1 -1
  19. package/dist/deploy-definition.js +18 -66
  20. package/dist/deploy-definition.js.map +1 -1
  21. package/dist/deploy-migrations.d.ts +15 -0
  22. package/dist/deploy-migrations.d.ts.map +1 -0
  23. package/dist/deploy-migrations.js +72 -0
  24. package/dist/deploy-migrations.js.map +1 -0
  25. package/dist/deploy-preflight.d.ts +6 -0
  26. package/dist/deploy-preflight.d.ts.map +1 -0
  27. package/dist/deploy-preflight.js +40 -0
  28. package/dist/deploy-preflight.js.map +1 -0
  29. package/dist/deploy-receipts.d.ts +9 -0
  30. package/dist/deploy-receipts.d.ts.map +1 -0
  31. package/dist/deploy-receipts.js +45 -0
  32. package/dist/deploy-receipts.js.map +1 -0
  33. package/dist/deploy-sandbox-environments.d.ts +6 -0
  34. package/dist/deploy-sandbox-environments.d.ts.map +1 -0
  35. package/dist/deploy-sandbox-environments.js +109 -0
  36. package/dist/deploy-sandbox-environments.js.map +1 -0
  37. package/dist/deploy-secrets.d.ts +21 -0
  38. package/dist/deploy-secrets.d.ts.map +1 -0
  39. package/dist/deploy-secrets.js +83 -0
  40. package/dist/deploy-secrets.js.map +1 -0
  41. package/dist/deploy.d.ts +5 -31
  42. package/dist/deploy.d.ts.map +1 -1
  43. package/dist/deploy.js +50 -636
  44. package/dist/deploy.js.map +1 -1
  45. package/dist/eval-case-runner.d.ts +1 -1
  46. package/dist/eval-case-runner.d.ts.map +1 -1
  47. package/dist/eval-case-runner.js.map +1 -1
  48. package/dist/help.d.ts.map +1 -1
  49. package/dist/help.js +41 -89
  50. package/dist/help.js.map +1 -1
  51. package/dist/index.d.ts.map +1 -1
  52. package/dist/index.js +89 -32
  53. package/dist/index.js.map +1 -1
  54. package/dist/init.d.ts +1 -3
  55. package/dist/init.d.ts.map +1 -1
  56. package/dist/init.js +36 -39
  57. package/dist/init.js.map +1 -1
  58. package/dist/inspection.d.ts +44 -0
  59. package/dist/inspection.d.ts.map +1 -0
  60. package/dist/inspection.js +144 -0
  61. package/dist/inspection.js.map +1 -0
  62. package/dist/models.d.ts +2 -1
  63. package/dist/models.d.ts.map +1 -1
  64. package/dist/models.js +7 -13
  65. package/dist/models.js.map +1 -1
  66. package/dist/plugin-add.d.ts +36 -0
  67. package/dist/plugin-add.d.ts.map +1 -0
  68. package/dist/plugin-add.js +283 -0
  69. package/dist/plugin-add.js.map +1 -0
  70. package/dist/plugin-init.d.ts +2 -0
  71. package/dist/plugin-init.d.ts.map +1 -0
  72. package/dist/plugin-init.js +34 -0
  73. package/dist/plugin-init.js.map +1 -0
  74. package/dist/provider-deploy.d.ts +7 -0
  75. package/dist/provider-deploy.d.ts.map +1 -0
  76. package/dist/provider-deploy.js +163 -0
  77. package/dist/provider-deploy.js.map +1 -0
  78. package/dist/secrets.d.ts.map +1 -1
  79. package/dist/secrets.js +8 -28
  80. package/dist/secrets.js.map +1 -1
  81. package/package.json +9 -11
  82. package/dist/hosts.d.ts +0 -3
  83. package/dist/hosts.d.ts.map +0 -1
  84. package/dist/hosts.js +0 -60
  85. package/dist/hosts.js.map +0 -1
  86. package/dist/model-providers.d.ts +0 -5
  87. package/dist/model-providers.d.ts.map +0 -1
  88. package/dist/model-providers.js +0 -17
  89. package/dist/model-providers.js.map +0 -1
  90. package/dist/state.d.ts +0 -3
  91. package/dist/state.d.ts.map +0 -1
  92. package/dist/state.js +0 -79
  93. package/dist/state.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: assembly-line-authoring
3
- description: Build, modify, validate, test, or deploy Assembly Line agents. Use for Assembly Line agent folders and compiler diagnostics, including instructions.md, agent.ts, context.ts, gateway.ts, tools, skills, hooks, channels, connections, automations, sandboxes, subagents, instrumentation, evals, plugins, and deployment configuration.
3
+ description: Build, modify, validate, test, or deploy Assembly Line MD-first agents, plugins, skills, channels, automations, subagents, and deployment configuration.
4
4
  ---
5
5
 
6
6
  # Assembly Line Authoring
@@ -42,9 +42,9 @@ every optional directory up front.
42
42
  ## Authoring workflow
43
43
 
44
44
  1. Locate the agent root. If it does not exist, confirm the target path and run
45
- `assembly-line init <agentRoot>`. Read the required `instructions.md` and
46
- `agent.ts`; read `gateway.ts` when present, then only the feature files
47
- relevant to the request.
45
+ `assembly-line init <agentRoot>`. Read `agent.md`, `plugins.lock`, root
46
+ skills, and only the selected plugin/channel/subagent files relevant to the
47
+ request.
48
48
  2. Run `assembly-line docs version --json`. If the binary is not on `PATH`,
49
49
  invoke the project-local binary through its package manager, such as
50
50
  `pnpm exec assembly-line` or `npm exec -- assembly-line`.
@@ -52,8 +52,8 @@ every optional directory up front.
52
52
  page or section with `assembly-line docs read <id[#anchor]>`. Use
53
53
  `--latest` only for an explicit upgrade, a new capability unavailable in the
54
54
  project version, or a request for current behavior.
55
- 4. Before hand-writing a provider integration, search the installed plugin and
56
- connection docs. Use `--latest` to check whether a newer framework release
55
+ 4. Before hand-writing a provider integration, search the installed plugin
56
+ docs. Use `--latest` to check whether a newer framework release
57
57
  supplies the capability, then inspect the upgrade rather than copying its
58
58
  current API into an older project.
59
59
  5. Make the smallest coherent change. Keep orchestration, persistence,
@@ -61,8 +61,8 @@ every optional directory up front.
61
61
  generated `.assembly-line/` artifacts.
62
62
  6. Run `assembly-line validate <agentRoot> --json`. Follow the diagnostic's
63
63
  `docs` link and `fix` hint before searching broadly.
64
- 7. Run `assembly-line capabilities <agentRoot>` when tools, skills,
65
- connections, or subagents changed. Run the narrowest relevant build, test,
64
+ 7. Run `assembly-line capabilities <agentRoot>` and resolved inspection when
65
+ plugins, skills, channels, infrastructure, automations, or subagents changed. Run the narrowest relevant build, test,
66
66
  or eval; use `assembly-line build` for packaging changes and
67
67
  `assembly-line eval` for behavior changes with an existing eval suite.
68
68
  8. Exercise one representative request through the same channel or runtime path
@@ -71,19 +71,20 @@ every optional directory up front.
71
71
 
72
72
  ## File routing
73
73
 
74
- - Put durable identity and static policy in `agent.ts`.
75
- - Put trusted always-on guidance in `instructions.md` and occasional procedures
76
- in `skills/<name>/SKILL.md`. A skill folder may carry supporting
77
- `references/`, `scripts/`, `schemas/`, and `assets/` files next to its
78
- SKILL.md; multi-skill plugin bundles live at `skills/<bundle>/` with
79
- `.assembly-line-plugin/plugin.json`, shared resources, and `skills/<name>/SKILL.md`
80
- entries.
81
- - Core default tools need no authored file. Put each additional typed action in
82
- its own `tools/<name>.ts` file, and require approval for durable or external
83
- side effects.
84
- - Put infrastructure selection in `gateway.ts`, ingress in `channels/`, and
85
- external capability declarations in `connections/`.
86
- - Put repeatable scheduled or event-triggered work in `automations/`.
74
+ - Put identity, static policy, trusted guidance, explicit channels,
75
+ infrastructure profiles, plugin selections, automations, composition, and
76
+ subagents in `agent.md`.
77
+ - Root `skills/<name>/SKILL.md` folders are auto-discovered and may carry
78
+ `references/`, `scripts/`, `schemas/`, and `assets/` resources.
79
+ - Published plugins are selected by stable ID and pinned in `plugins.lock`.
80
+ Local plugins are auto-discovered under `plugins/<name>/` when they contain
81
+ an Agent Plugins v1 `plugin.json` and `ai.assemblyline/` entry.
82
+ - Plugin-owned tools, connections, channel providers, infrastructure
83
+ providers, and lifecycle hook implementations are activated through the
84
+ plugin contract. Do not create root `tools/`, `hooks/`, or `connections/`
85
+ folders.
86
+ - Put schedules and event-triggered work inline in `agent.md`; use a
87
+ plugin-owned implementation when lifecycle behavior becomes real code.
87
88
  - Put production behavior checks in `evals/` and keep fixtures deterministic.
88
89
 
89
90
  ## Guardrails
@@ -96,6 +97,8 @@ every optional directory up front.
96
97
  generated examples.
97
98
  - Preserve explicit provider, model, deployment, and approval choices unless
98
99
  the request changes them.
100
+ - Treat `plugins.lock` as source: never accept an unpinned, ambiguous, or
101
+ integrity-drifted plugin.
99
102
  - Do not overwrite existing coding-agent instructions or skills without an
100
103
  explicit update operation.
101
104
  - Treat skill bundle resource files as data: bundled scripts are files the
package/dist/add.d.ts CHANGED
@@ -1,27 +1,16 @@
1
- import { type AdapterProviderMetadata, type ToolPackPluginMetadata } from "@assemblyline-agents/core";
2
- /**
3
- * `assembly-line add <kind|package>` — install a plugin package and wire its provider
4
- * contribution into the agent folder (gateway slot or channel file).
5
- * File edits are targeted string surgery; when a file cannot be edited with
6
- * confidence the exact snippet is printed instead so files are never corrupted.
7
- */
8
1
  export interface AddCommandOptions {
9
2
  thing: string;
10
3
  agentRoot: string;
11
4
  role?: string | undefined;
12
5
  pmOverride?: string | undefined;
13
- /** false with --no-install: print the install command instead of running it. */
14
6
  install: boolean;
7
+ confirmUpgrade?: boolean;
15
8
  runCommand(command: string, args: string[], options?: {
16
9
  cwd?: string;
17
10
  }): Promise<{
18
11
  exitCode: number;
19
12
  }>;
20
13
  }
21
- type AddContributionMetadata = AdapterProviderMetadata | ToolPackPluginMetadata;
14
+ /** Install, inspect, lock, and select a plugin using only its own declaration. */
22
15
  export declare function runAddCommand(options: AddCommandOptions): Promise<void>;
23
- export declare function copyPluginSkills(metadata: AddContributionMetadata, agentRoot: string, installDir: string): string[];
24
- /** The default gateway scaffold shared by `assembly-line init` and `assembly-line add`. */
25
- export declare function gatewayScaffoldSource(overrides?: Record<string, string>): string;
26
- export {};
27
16
  //# sourceMappingURL=add.d.ts.map
package/dist/add.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../src/add.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,KAAK,uBAAuB,EAG5B,KAAK,sBAAsB,EAC5B,MAAM,2BAA2B,CAAC;AAGnC;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,gFAAgF;IAChF,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxG;AAOD,KAAK,uBAAuB,GAAG,uBAAuB,GAAG,sBAAsB,CAAC;AAYhF,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmB7E;AAwPD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CA2BnH;AAyKD,2FAA2F;AAC3F,wBAAgB,qBAAqB,CAAC,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,MAAM,CAkBpF"}
1
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../src/add.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxG;AASD,kFAAkF;AAClF,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8B7E"}